From c3485ac78e8c00ab8f3825604845586dc27808ce Mon Sep 17 00:00:00 2001 From: sdk-team Date: Sun, 23 Nov 2025 14:26:42 +0000 Subject: [PATCH 1/4] Support API ChatWithDesensitize. --- dms-enterprise-20181101/ChangeLog.md | 9 + .../__init__.py | 2 +- .../client.py | 1072 ++++-- .../models.py | 3279 ++++++++++++++++- dms-enterprise-20181101/setup.py | 6 +- 5 files changed, 3925 insertions(+), 443 deletions(-) diff --git a/dms-enterprise-20181101/ChangeLog.md b/dms-enterprise-20181101/ChangeLog.md index f2c63f386..718097ae6 100644 --- a/dms-enterprise-20181101/ChangeLog.md +++ b/dms-enterprise-20181101/ChangeLog.md @@ -1,3 +1,12 @@ +2025-11-23 Version: 1.77.0 +- Support API ChatWithDesensitize. +- Support API ListUserOwnedResources. +- Update API DescribeDifyAttribute: add response parameters Body.Root.BillingInstanceId. +- Update API DescribeDifyAttribute: add response parameters Body.Root.ChargeType. +- Update API DescribeDifyAttribute: add response parameters Body.Root.ExpireTime. +- Update API DescribeDifyAttribute: add response parameters Body.Root.StorageType. + + 2025-09-26 Version: 1.76.1 - Update API GetPermApplyOrderDetail: add response parameters Body.PermApplyOrderDetail.Resources.$.RowInfo. - Update API GetPermApplyOrderDetail: add response parameters Body.PermApplyOrderDetail.Resources.$.RowValueInfo. diff --git a/dms-enterprise-20181101/alibabacloud_dms_enterprise20181101/__init__.py b/dms-enterprise-20181101/alibabacloud_dms_enterprise20181101/__init__.py index 3f54ed205..91b9e3db1 100644 --- a/dms-enterprise-20181101/alibabacloud_dms_enterprise20181101/__init__.py +++ b/dms-enterprise-20181101/alibabacloud_dms_enterprise20181101/__init__.py @@ -1 +1 @@ -__version__ = '1.76.1' \ No newline at end of file +__version__ = '1.77.0' \ No newline at end of file diff --git a/dms-enterprise-20181101/alibabacloud_dms_enterprise20181101/client.py b/dms-enterprise-20181101/alibabacloud_dms_enterprise20181101/client.py index a981a9a1c..7f8278dc0 100644 --- a/dms-enterprise-20181101/alibabacloud_dms_enterprise20181101/client.py +++ b/dms-enterprise-20181101/alibabacloud_dms_enterprise20181101/client.py @@ -47,7 +47,7 @@ def add_authority_template_items_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.AddAuthorityTemplateItemsResponse: """ - @summary 添加权限模板资源 + @summary Adds instances, databases, and tables to the specified permission template. @param tmp_req: AddAuthorityTemplateItemsRequest @param runtime: runtime options for this request RuntimeOptions @@ -90,7 +90,7 @@ async def add_authority_template_items_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.AddAuthorityTemplateItemsResponse: """ - @summary 添加权限模板资源 + @summary Adds instances, databases, and tables to the specified permission template. @param tmp_req: AddAuthorityTemplateItemsRequest @param runtime: runtime options for this request RuntimeOptions @@ -132,7 +132,7 @@ def add_authority_template_items( request: dms_enterprise_20181101_models.AddAuthorityTemplateItemsRequest, ) -> dms_enterprise_20181101_models.AddAuthorityTemplateItemsResponse: """ - @summary 添加权限模板资源 + @summary Adds instances, databases, and tables to the specified permission template. @param request: AddAuthorityTemplateItemsRequest @return: AddAuthorityTemplateItemsResponse @@ -145,7 +145,7 @@ async def add_authority_template_items_async( request: dms_enterprise_20181101_models.AddAuthorityTemplateItemsRequest, ) -> dms_enterprise_20181101_models.AddAuthorityTemplateItemsResponse: """ - @summary 添加权限模板资源 + @summary Adds instances, databases, and tables to the specified permission template. @param request: AddAuthorityTemplateItemsRequest @return: AddAuthorityTemplateItemsResponse @@ -285,7 +285,9 @@ def add_instance_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.AddInstanceResponse: """ - @summary 添加实例 + @summary Adds a database instance to Data Management (DMS) and enable security hosting for the instance. + + @description You must be a database administrator (DBA) or a DMS administrator. For more information, see [View system roles](https://help.aliyun.com/document_detail/324212.html). @param request: AddInstanceRequest @param runtime: runtime options for this request RuntimeOptions @@ -376,7 +378,9 @@ async def add_instance_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.AddInstanceResponse: """ - @summary 添加实例 + @summary Adds a database instance to Data Management (DMS) and enable security hosting for the instance. + + @description You must be a database administrator (DBA) or a DMS administrator. For more information, see [View system roles](https://help.aliyun.com/document_detail/324212.html). @param request: AddInstanceRequest @param runtime: runtime options for this request RuntimeOptions @@ -466,7 +470,9 @@ def add_instance( request: dms_enterprise_20181101_models.AddInstanceRequest, ) -> dms_enterprise_20181101_models.AddInstanceResponse: """ - @summary 添加实例 + @summary Adds a database instance to Data Management (DMS) and enable security hosting for the instance. + + @description You must be a database administrator (DBA) or a DMS administrator. For more information, see [View system roles](https://help.aliyun.com/document_detail/324212.html). @param request: AddInstanceRequest @return: AddInstanceResponse @@ -479,7 +485,9 @@ async def add_instance_async( request: dms_enterprise_20181101_models.AddInstanceRequest, ) -> dms_enterprise_20181101_models.AddInstanceResponse: """ - @summary 添加实例 + @summary Adds a database instance to Data Management (DMS) and enable security hosting for the instance. + + @description You must be a database administrator (DBA) or a DMS administrator. For more information, see [View system roles](https://help.aliyun.com/document_detail/324212.html). @param request: AddInstanceRequest @return: AddInstanceResponse @@ -741,7 +749,7 @@ def add_table_to_category_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.AddTableToCategoryResponse: """ - @summary 添加表到资产类目 + @summary Add a table to an asset category. @param request: AddTableToCategoryRequest @param runtime: runtime options for this request RuntimeOptions @@ -784,7 +792,7 @@ async def add_table_to_category_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.AddTableToCategoryResponse: """ - @summary 添加表到资产类目 + @summary Add a table to an asset category. @param request: AddTableToCategoryRequest @param runtime: runtime options for this request RuntimeOptions @@ -826,7 +834,7 @@ def add_table_to_category( request: dms_enterprise_20181101_models.AddTableToCategoryRequest, ) -> dms_enterprise_20181101_models.AddTableToCategoryResponse: """ - @summary 添加表到资产类目 + @summary Add a table to an asset category. @param request: AddTableToCategoryRequest @return: AddTableToCategoryResponse @@ -839,7 +847,7 @@ async def add_table_to_category_async( request: dms_enterprise_20181101_models.AddTableToCategoryRequest, ) -> dms_enterprise_20181101_models.AddTableToCategoryResponse: """ - @summary 添加表到资产类目 + @summary Add a table to an asset category. @param request: AddTableToCategoryRequest @return: AddTableToCategoryResponse @@ -1101,9 +1109,9 @@ def answer_sql_syntax_by_meta_agent_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.AnswerSqlSyntaxByMetaAgentResponse: """ - @summary 根据用户提供的数据库ID,回答对应引擎的语法问题 + @summary Answers the syntax questions of the corresponding engine according to the specified database ID. - @description 根据用户提供的数据库ID,回答对应引擎的语法问题 + @description You can call this operation to answer the syntax questions of the corresponding engine according to the specified database ID. @param request: AnswerSqlSyntaxByMetaAgentRequest @param runtime: runtime options for this request RuntimeOptions @@ -1142,9 +1150,9 @@ async def answer_sql_syntax_by_meta_agent_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.AnswerSqlSyntaxByMetaAgentResponse: """ - @summary 根据用户提供的数据库ID,回答对应引擎的语法问题 + @summary Answers the syntax questions of the corresponding engine according to the specified database ID. - @description 根据用户提供的数据库ID,回答对应引擎的语法问题 + @description You can call this operation to answer the syntax questions of the corresponding engine according to the specified database ID. @param request: AnswerSqlSyntaxByMetaAgentRequest @param runtime: runtime options for this request RuntimeOptions @@ -1182,9 +1190,9 @@ def answer_sql_syntax_by_meta_agent( request: dms_enterprise_20181101_models.AnswerSqlSyntaxByMetaAgentRequest, ) -> dms_enterprise_20181101_models.AnswerSqlSyntaxByMetaAgentResponse: """ - @summary 根据用户提供的数据库ID,回答对应引擎的语法问题 + @summary Answers the syntax questions of the corresponding engine according to the specified database ID. - @description 根据用户提供的数据库ID,回答对应引擎的语法问题 + @description You can call this operation to answer the syntax questions of the corresponding engine according to the specified database ID. @param request: AnswerSqlSyntaxByMetaAgentRequest @return: AnswerSqlSyntaxByMetaAgentResponse @@ -1197,9 +1205,9 @@ async def answer_sql_syntax_by_meta_agent_async( request: dms_enterprise_20181101_models.AnswerSqlSyntaxByMetaAgentRequest, ) -> dms_enterprise_20181101_models.AnswerSqlSyntaxByMetaAgentResponse: """ - @summary 根据用户提供的数据库ID,回答对应引擎的语法问题 + @summary Answers the syntax questions of the corresponding engine according to the specified database ID. - @description 根据用户提供的数据库ID,回答对应引擎的语法问题 + @description You can call this operation to answer the syntax questions of the corresponding engine according to the specified database ID. @param request: AnswerSqlSyntaxByMetaAgentRequest @return: AnswerSqlSyntaxByMetaAgentResponse @@ -1501,7 +1509,7 @@ def batch_create_data_lake_partitions_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.BatchCreateDataLakePartitionsResponse: """ - @summary 批量新建湖仓表分区 + @summary Creates multiple partitions for a table in a data lakehouse at a time. @param tmp_req: BatchCreateDataLakePartitionsRequest @param runtime: runtime options for this request RuntimeOptions @@ -1558,7 +1566,7 @@ async def batch_create_data_lake_partitions_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.BatchCreateDataLakePartitionsResponse: """ - @summary 批量新建湖仓表分区 + @summary Creates multiple partitions for a table in a data lakehouse at a time. @param tmp_req: BatchCreateDataLakePartitionsRequest @param runtime: runtime options for this request RuntimeOptions @@ -1614,7 +1622,7 @@ def batch_create_data_lake_partitions( request: dms_enterprise_20181101_models.BatchCreateDataLakePartitionsRequest, ) -> dms_enterprise_20181101_models.BatchCreateDataLakePartitionsResponse: """ - @summary 批量新建湖仓表分区 + @summary Creates multiple partitions for a table in a data lakehouse at a time. @param request: BatchCreateDataLakePartitionsRequest @return: BatchCreateDataLakePartitionsResponse @@ -1627,7 +1635,7 @@ async def batch_create_data_lake_partitions_async( request: dms_enterprise_20181101_models.BatchCreateDataLakePartitionsRequest, ) -> dms_enterprise_20181101_models.BatchCreateDataLakePartitionsResponse: """ - @summary 批量新建湖仓表分区 + @summary Creates multiple partitions for a table in a data lakehouse at a time. @param request: BatchCreateDataLakePartitionsRequest @return: BatchCreateDataLakePartitionsResponse @@ -1641,7 +1649,7 @@ def batch_delete_data_lake_partitions_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.BatchDeleteDataLakePartitionsResponse: """ - @summary 批量删除湖仓表分区 + @summary Deletes multiple partitions of a table in a data lakehouse at a time. @param request: BatchDeleteDataLakePartitionsRequest @param runtime: runtime options for this request RuntimeOptions @@ -1690,7 +1698,7 @@ async def batch_delete_data_lake_partitions_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.BatchDeleteDataLakePartitionsResponse: """ - @summary 批量删除湖仓表分区 + @summary Deletes multiple partitions of a table in a data lakehouse at a time. @param request: BatchDeleteDataLakePartitionsRequest @param runtime: runtime options for this request RuntimeOptions @@ -1738,7 +1746,7 @@ def batch_delete_data_lake_partitions( request: dms_enterprise_20181101_models.BatchDeleteDataLakePartitionsRequest, ) -> dms_enterprise_20181101_models.BatchDeleteDataLakePartitionsResponse: """ - @summary 批量删除湖仓表分区 + @summary Deletes multiple partitions of a table in a data lakehouse at a time. @param request: BatchDeleteDataLakePartitionsRequest @return: BatchDeleteDataLakePartitionsResponse @@ -1751,7 +1759,7 @@ async def batch_delete_data_lake_partitions_async( request: dms_enterprise_20181101_models.BatchDeleteDataLakePartitionsRequest, ) -> dms_enterprise_20181101_models.BatchDeleteDataLakePartitionsResponse: """ - @summary 批量删除湖仓表分区 + @summary Deletes multiple partitions of a table in a data lakehouse at a time. @param request: BatchDeleteDataLakePartitionsRequest @return: BatchDeleteDataLakePartitionsResponse @@ -1765,7 +1773,7 @@ def batch_update_data_lake_partitions_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.BatchUpdateDataLakePartitionsResponse: """ - @summary 批量更新湖仓表分区 + @summary Updates multiple partitions of a table in a data lakehouse at a time. @param tmp_req: BatchUpdateDataLakePartitionsRequest @param runtime: runtime options for this request RuntimeOptions @@ -1818,7 +1826,7 @@ async def batch_update_data_lake_partitions_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.BatchUpdateDataLakePartitionsResponse: """ - @summary 批量更新湖仓表分区 + @summary Updates multiple partitions of a table in a data lakehouse at a time. @param tmp_req: BatchUpdateDataLakePartitionsRequest @param runtime: runtime options for this request RuntimeOptions @@ -1870,7 +1878,7 @@ def batch_update_data_lake_partitions( request: dms_enterprise_20181101_models.BatchUpdateDataLakePartitionsRequest, ) -> dms_enterprise_20181101_models.BatchUpdateDataLakePartitionsResponse: """ - @summary 批量更新湖仓表分区 + @summary Updates multiple partitions of a table in a data lakehouse at a time. @param request: BatchUpdateDataLakePartitionsRequest @return: BatchUpdateDataLakePartitionsResponse @@ -1883,7 +1891,7 @@ async def batch_update_data_lake_partitions_async( request: dms_enterprise_20181101_models.BatchUpdateDataLakePartitionsRequest, ) -> dms_enterprise_20181101_models.BatchUpdateDataLakePartitionsResponse: """ - @summary 批量更新湖仓表分区 + @summary Updates multiple partitions of a table in a data lakehouse at a time. @param request: BatchUpdateDataLakePartitionsRequest @return: BatchUpdateDataLakePartitionsResponse @@ -2125,7 +2133,7 @@ def change_column_security_level_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ChangeColumnSecurityLevelResponse: """ - @summary 修改字段敏感序列 + @summary Changes the security level of a column. @param request: ChangeColumnSecurityLevelRequest @param runtime: runtime options for this request RuntimeOptions @@ -2172,7 +2180,7 @@ async def change_column_security_level_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ChangeColumnSecurityLevelResponse: """ - @summary 修改字段敏感序列 + @summary Changes the security level of a column. @param request: ChangeColumnSecurityLevelRequest @param runtime: runtime options for this request RuntimeOptions @@ -2218,7 +2226,7 @@ def change_column_security_level( request: dms_enterprise_20181101_models.ChangeColumnSecurityLevelRequest, ) -> dms_enterprise_20181101_models.ChangeColumnSecurityLevelResponse: """ - @summary 修改字段敏感序列 + @summary Changes the security level of a column. @param request: ChangeColumnSecurityLevelRequest @return: ChangeColumnSecurityLevelResponse @@ -2231,7 +2239,7 @@ async def change_column_security_level_async( request: dms_enterprise_20181101_models.ChangeColumnSecurityLevelRequest, ) -> dms_enterprise_20181101_models.ChangeColumnSecurityLevelResponse: """ - @summary 修改字段敏感序列 + @summary Changes the security level of a column. @param request: ChangeColumnSecurityLevelRequest @return: ChangeColumnSecurityLevelResponse @@ -2359,6 +2367,186 @@ async def change_lh_dag_owner_async( runtime = util_models.RuntimeOptions() return await self.change_lh_dag_owner_with_options_async(request, runtime) + def chat_with_desensitize_with_options( + self, + tmp_req: dms_enterprise_20181101_models.ChatWithDesensitizeRequest, + runtime: util_models.RuntimeOptions, + ) -> dms_enterprise_20181101_models.ChatWithDesensitizeResponse: + """ + @summary 带有DMS脱敏能力的聊天API接口 + + @description 带有DMS脱敏能力的聊天API接口 + + @param tmp_req: ChatWithDesensitizeRequest + @param runtime: runtime options for this request RuntimeOptions + @return: ChatWithDesensitizeResponse + """ + UtilClient.validate_model(tmp_req) + request = dms_enterprise_20181101_models.ChatWithDesensitizeShrinkRequest() + OpenApiUtilClient.convert(tmp_req, request) + if not UtilClient.is_unset(tmp_req.messages): + request.messages_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.messages, 'Messages', 'json') + if not UtilClient.is_unset(tmp_req.stop): + request.stop_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.stop, 'Stop', 'json') + query = {} + if not UtilClient.is_unset(request.desensitization_rule): + query['DesensitizationRule'] = request.desensitization_rule + if not UtilClient.is_unset(request.enable_thinking): + query['EnableThinking'] = request.enable_thinking + if not UtilClient.is_unset(request.instance_id): + query['InstanceId'] = request.instance_id + if not UtilClient.is_unset(request.max_tokens): + query['MaxTokens'] = request.max_tokens + if not UtilClient.is_unset(request.model): + query['Model'] = request.model + if not UtilClient.is_unset(request.need_desensitization): + query['NeedDesensitization'] = request.need_desensitization + if not UtilClient.is_unset(request.presence_penalty): + query['PresencePenalty'] = request.presence_penalty + if not UtilClient.is_unset(request.response_format): + query['ResponseFormat'] = request.response_format + if not UtilClient.is_unset(request.seed): + query['Seed'] = request.seed + if not UtilClient.is_unset(request.stop_shrink): + query['Stop'] = request.stop_shrink + if not UtilClient.is_unset(request.temperature): + query['Temperature'] = request.temperature + if not UtilClient.is_unset(request.thinking_budget): + query['ThinkingBudget'] = request.thinking_budget + if not UtilClient.is_unset(request.top_k): + query['TopK'] = request.top_k + if not UtilClient.is_unset(request.top_logprobs): + query['TopLogprobs'] = request.top_logprobs + if not UtilClient.is_unset(request.top_p): + query['TopP'] = request.top_p + body = {} + if not UtilClient.is_unset(request.messages_shrink): + body['Messages'] = request.messages_shrink + req = open_api_models.OpenApiRequest( + query=OpenApiUtilClient.query(query), + body=OpenApiUtilClient.parse_to_map(body) + ) + params = open_api_models.Params( + action='ChatWithDesensitize', + version='2018-11-01', + protocol='HTTPS', + pathname='/', + method='POST', + auth_type='AK', + style='RPC', + req_body_type='formData', + body_type='json' + ) + return TeaCore.from_map( + dms_enterprise_20181101_models.ChatWithDesensitizeResponse(), + self.call_api(params, req, runtime) + ) + + async def chat_with_desensitize_with_options_async( + self, + tmp_req: dms_enterprise_20181101_models.ChatWithDesensitizeRequest, + runtime: util_models.RuntimeOptions, + ) -> dms_enterprise_20181101_models.ChatWithDesensitizeResponse: + """ + @summary 带有DMS脱敏能力的聊天API接口 + + @description 带有DMS脱敏能力的聊天API接口 + + @param tmp_req: ChatWithDesensitizeRequest + @param runtime: runtime options for this request RuntimeOptions + @return: ChatWithDesensitizeResponse + """ + UtilClient.validate_model(tmp_req) + request = dms_enterprise_20181101_models.ChatWithDesensitizeShrinkRequest() + OpenApiUtilClient.convert(tmp_req, request) + if not UtilClient.is_unset(tmp_req.messages): + request.messages_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.messages, 'Messages', 'json') + if not UtilClient.is_unset(tmp_req.stop): + request.stop_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.stop, 'Stop', 'json') + query = {} + if not UtilClient.is_unset(request.desensitization_rule): + query['DesensitizationRule'] = request.desensitization_rule + if not UtilClient.is_unset(request.enable_thinking): + query['EnableThinking'] = request.enable_thinking + if not UtilClient.is_unset(request.instance_id): + query['InstanceId'] = request.instance_id + if not UtilClient.is_unset(request.max_tokens): + query['MaxTokens'] = request.max_tokens + if not UtilClient.is_unset(request.model): + query['Model'] = request.model + if not UtilClient.is_unset(request.need_desensitization): + query['NeedDesensitization'] = request.need_desensitization + if not UtilClient.is_unset(request.presence_penalty): + query['PresencePenalty'] = request.presence_penalty + if not UtilClient.is_unset(request.response_format): + query['ResponseFormat'] = request.response_format + if not UtilClient.is_unset(request.seed): + query['Seed'] = request.seed + if not UtilClient.is_unset(request.stop_shrink): + query['Stop'] = request.stop_shrink + if not UtilClient.is_unset(request.temperature): + query['Temperature'] = request.temperature + if not UtilClient.is_unset(request.thinking_budget): + query['ThinkingBudget'] = request.thinking_budget + if not UtilClient.is_unset(request.top_k): + query['TopK'] = request.top_k + if not UtilClient.is_unset(request.top_logprobs): + query['TopLogprobs'] = request.top_logprobs + if not UtilClient.is_unset(request.top_p): + query['TopP'] = request.top_p + body = {} + if not UtilClient.is_unset(request.messages_shrink): + body['Messages'] = request.messages_shrink + req = open_api_models.OpenApiRequest( + query=OpenApiUtilClient.query(query), + body=OpenApiUtilClient.parse_to_map(body) + ) + params = open_api_models.Params( + action='ChatWithDesensitize', + version='2018-11-01', + protocol='HTTPS', + pathname='/', + method='POST', + auth_type='AK', + style='RPC', + req_body_type='formData', + body_type='json' + ) + return TeaCore.from_map( + dms_enterprise_20181101_models.ChatWithDesensitizeResponse(), + await self.call_api_async(params, req, runtime) + ) + + def chat_with_desensitize( + self, + request: dms_enterprise_20181101_models.ChatWithDesensitizeRequest, + ) -> dms_enterprise_20181101_models.ChatWithDesensitizeResponse: + """ + @summary 带有DMS脱敏能力的聊天API接口 + + @description 带有DMS脱敏能力的聊天API接口 + + @param request: ChatWithDesensitizeRequest + @return: ChatWithDesensitizeResponse + """ + runtime = util_models.RuntimeOptions() + return self.chat_with_desensitize_with_options(request, runtime) + + async def chat_with_desensitize_async( + self, + request: dms_enterprise_20181101_models.ChatWithDesensitizeRequest, + ) -> dms_enterprise_20181101_models.ChatWithDesensitizeResponse: + """ + @summary 带有DMS脱敏能力的聊天API接口 + + @description 带有DMS脱敏能力的聊天API接口 + + @param request: ChatWithDesensitizeRequest + @return: ChatWithDesensitizeResponse + """ + runtime = util_models.RuntimeOptions() + return await self.chat_with_desensitize_with_options_async(request, runtime) + def close_order_with_options( self, request: dms_enterprise_20181101_models.CloseOrderRequest, @@ -2469,7 +2657,7 @@ def create_abac_authorization_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.CreateAbacAuthorizationResponse: """ - @summary 创建权限策略授权 + @summary Attaches a system policy or custom policy to a DMS user or custom role. @param request: CreateAbacAuthorizationRequest @param runtime: runtime options for this request RuntimeOptions @@ -2512,7 +2700,7 @@ async def create_abac_authorization_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.CreateAbacAuthorizationResponse: """ - @summary 创建权限策略授权 + @summary Attaches a system policy or custom policy to a DMS user or custom role. @param request: CreateAbacAuthorizationRequest @param runtime: runtime options for this request RuntimeOptions @@ -2554,7 +2742,7 @@ def create_abac_authorization( request: dms_enterprise_20181101_models.CreateAbacAuthorizationRequest, ) -> dms_enterprise_20181101_models.CreateAbacAuthorizationResponse: """ - @summary 创建权限策略授权 + @summary Attaches a system policy or custom policy to a DMS user or custom role. @param request: CreateAbacAuthorizationRequest @return: CreateAbacAuthorizationResponse @@ -2567,7 +2755,7 @@ async def create_abac_authorization_async( request: dms_enterprise_20181101_models.CreateAbacAuthorizationRequest, ) -> dms_enterprise_20181101_models.CreateAbacAuthorizationResponse: """ - @summary 创建权限策略授权 + @summary Attaches a system policy or custom policy to a DMS user or custom role. @param request: CreateAbacAuthorizationRequest @return: CreateAbacAuthorizationResponse @@ -2581,7 +2769,9 @@ def create_abac_policy_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.CreateAbacPolicyResponse: """ - @summary 创建权限策略 + @summary Creates a policy to manage the permissions on DMS features and data resources managed in DMS in a fine-grained manner. + + @description Currently, this feature is in the phased release phase. Only users who have phased out can use this feature and related APIs. For more information about the policy feature, see [Manage policies](https://help.aliyun.com/document_detail/2848565.html). @param request: CreateAbacPolicyRequest @param runtime: runtime options for this request RuntimeOptions @@ -2622,7 +2812,9 @@ async def create_abac_policy_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.CreateAbacPolicyResponse: """ - @summary 创建权限策略 + @summary Creates a policy to manage the permissions on DMS features and data resources managed in DMS in a fine-grained manner. + + @description Currently, this feature is in the phased release phase. Only users who have phased out can use this feature and related APIs. For more information about the policy feature, see [Manage policies](https://help.aliyun.com/document_detail/2848565.html). @param request: CreateAbacPolicyRequest @param runtime: runtime options for this request RuntimeOptions @@ -2662,7 +2854,9 @@ def create_abac_policy( request: dms_enterprise_20181101_models.CreateAbacPolicyRequest, ) -> dms_enterprise_20181101_models.CreateAbacPolicyResponse: """ - @summary 创建权限策略 + @summary Creates a policy to manage the permissions on DMS features and data resources managed in DMS in a fine-grained manner. + + @description Currently, this feature is in the phased release phase. Only users who have phased out can use this feature and related APIs. For more information about the policy feature, see [Manage policies](https://help.aliyun.com/document_detail/2848565.html). @param request: CreateAbacPolicyRequest @return: CreateAbacPolicyResponse @@ -2675,7 +2869,9 @@ async def create_abac_policy_async( request: dms_enterprise_20181101_models.CreateAbacPolicyRequest, ) -> dms_enterprise_20181101_models.CreateAbacPolicyResponse: """ - @summary 创建权限策略 + @summary Creates a policy to manage the permissions on DMS features and data resources managed in DMS in a fine-grained manner. + + @description Currently, this feature is in the phased release phase. Only users who have phased out can use this feature and related APIs. For more information about the policy feature, see [Manage policies](https://help.aliyun.com/document_detail/2848565.html). @param request: CreateAbacPolicyRequest @return: CreateAbacPolicyResponse @@ -3477,7 +3673,7 @@ def create_data_lake_database_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.CreateDataLakeDatabaseResponse: """ - @summary 新建湖仓数据库 + @summary Creates a database in a data lakehouse. @param tmp_req: CreateDataLakeDatabaseRequest @param runtime: runtime options for this request RuntimeOptions @@ -3530,7 +3726,7 @@ async def create_data_lake_database_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.CreateDataLakeDatabaseResponse: """ - @summary 新建湖仓数据库 + @summary Creates a database in a data lakehouse. @param tmp_req: CreateDataLakeDatabaseRequest @param runtime: runtime options for this request RuntimeOptions @@ -3582,7 +3778,7 @@ def create_data_lake_database( request: dms_enterprise_20181101_models.CreateDataLakeDatabaseRequest, ) -> dms_enterprise_20181101_models.CreateDataLakeDatabaseResponse: """ - @summary 新建湖仓数据库 + @summary Creates a database in a data lakehouse. @param request: CreateDataLakeDatabaseRequest @return: CreateDataLakeDatabaseResponse @@ -3595,7 +3791,7 @@ async def create_data_lake_database_async( request: dms_enterprise_20181101_models.CreateDataLakeDatabaseRequest, ) -> dms_enterprise_20181101_models.CreateDataLakeDatabaseResponse: """ - @summary 新建湖仓数据库 + @summary Creates a database in a data lakehouse. @param request: CreateDataLakeDatabaseRequest @return: CreateDataLakeDatabaseResponse @@ -3609,7 +3805,7 @@ def create_data_lake_function_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.CreateDataLakeFunctionResponse: """ - @summary 新建湖仓自定义函数 + @summary Creates a custom function in a data lakehouse. @param tmp_req: CreateDataLakeFunctionRequest @param runtime: runtime options for this request RuntimeOptions @@ -3660,7 +3856,7 @@ async def create_data_lake_function_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.CreateDataLakeFunctionResponse: """ - @summary 新建湖仓自定义函数 + @summary Creates a custom function in a data lakehouse. @param tmp_req: CreateDataLakeFunctionRequest @param runtime: runtime options for this request RuntimeOptions @@ -3710,7 +3906,7 @@ def create_data_lake_function( request: dms_enterprise_20181101_models.CreateDataLakeFunctionRequest, ) -> dms_enterprise_20181101_models.CreateDataLakeFunctionResponse: """ - @summary 新建湖仓自定义函数 + @summary Creates a custom function in a data lakehouse. @param request: CreateDataLakeFunctionRequest @return: CreateDataLakeFunctionResponse @@ -3723,7 +3919,7 @@ async def create_data_lake_function_async( request: dms_enterprise_20181101_models.CreateDataLakeFunctionRequest, ) -> dms_enterprise_20181101_models.CreateDataLakeFunctionResponse: """ - @summary 新建湖仓自定义函数 + @summary Creates a custom function in a data lakehouse. @param request: CreateDataLakeFunctionRequest @return: CreateDataLakeFunctionResponse @@ -3737,7 +3933,7 @@ def create_data_lake_partition_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.CreateDataLakePartitionResponse: """ - @summary 新建湖仓表分区 + @summary Creates a partition for a table in a data lakehouse. @param tmp_req: CreateDataLakePartitionRequest @param runtime: runtime options for this request RuntimeOptions @@ -3794,7 +3990,7 @@ async def create_data_lake_partition_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.CreateDataLakePartitionResponse: """ - @summary 新建湖仓表分区 + @summary Creates a partition for a table in a data lakehouse. @param tmp_req: CreateDataLakePartitionRequest @param runtime: runtime options for this request RuntimeOptions @@ -3850,7 +4046,7 @@ def create_data_lake_partition( request: dms_enterprise_20181101_models.CreateDataLakePartitionRequest, ) -> dms_enterprise_20181101_models.CreateDataLakePartitionResponse: """ - @summary 新建湖仓表分区 + @summary Creates a partition for a table in a data lakehouse. @param request: CreateDataLakePartitionRequest @return: CreateDataLakePartitionResponse @@ -3863,7 +4059,7 @@ async def create_data_lake_partition_async( request: dms_enterprise_20181101_models.CreateDataLakePartitionRequest, ) -> dms_enterprise_20181101_models.CreateDataLakePartitionResponse: """ - @summary 新建湖仓表分区 + @summary Creates a partition for a table in a data lakehouse. @param request: CreateDataLakePartitionRequest @return: CreateDataLakePartitionResponse @@ -3877,7 +4073,7 @@ def create_data_lake_table_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.CreateDataLakeTableResponse: """ - @summary 新建湖仓表 + @summary Creates a table in a data lakehouse. @param tmp_req: CreateDataLakeTableRequest @param runtime: runtime options for this request RuntimeOptions @@ -3928,7 +4124,7 @@ async def create_data_lake_table_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.CreateDataLakeTableResponse: """ - @summary 新建湖仓表 + @summary Creates a table in a data lakehouse. @param tmp_req: CreateDataLakeTableRequest @param runtime: runtime options for this request RuntimeOptions @@ -3978,7 +4174,7 @@ def create_data_lake_table( request: dms_enterprise_20181101_models.CreateDataLakeTableRequest, ) -> dms_enterprise_20181101_models.CreateDataLakeTableResponse: """ - @summary 新建湖仓表 + @summary Creates a table in a data lakehouse. @param request: CreateDataLakeTableRequest @return: CreateDataLakeTableResponse @@ -3991,7 +4187,7 @@ async def create_data_lake_table_async( request: dms_enterprise_20181101_models.CreateDataLakeTableRequest, ) -> dms_enterprise_20181101_models.CreateDataLakeTableResponse: """ - @summary 新建湖仓表 + @summary Creates a table in a data lakehouse. @param request: CreateDataLakeTableRequest @return: CreateDataLakeTableResponse @@ -5009,7 +5205,7 @@ def create_meta_category_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.CreateMetaCategoryResponse: """ - @summary 创建资产类目 + @summary Create Asset Category @param request: CreateMetaCategoryRequest @param runtime: runtime options for this request RuntimeOptions @@ -5048,7 +5244,7 @@ async def create_meta_category_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.CreateMetaCategoryResponse: """ - @summary 创建资产类目 + @summary Create Asset Category @param request: CreateMetaCategoryRequest @param runtime: runtime options for this request RuntimeOptions @@ -5086,7 +5282,7 @@ def create_meta_category( request: dms_enterprise_20181101_models.CreateMetaCategoryRequest, ) -> dms_enterprise_20181101_models.CreateMetaCategoryResponse: """ - @summary 创建资产类目 + @summary Create Asset Category @param request: CreateMetaCategoryRequest @return: CreateMetaCategoryResponse @@ -5099,7 +5295,7 @@ async def create_meta_category_async( request: dms_enterprise_20181101_models.CreateMetaCategoryRequest, ) -> dms_enterprise_20181101_models.CreateMetaCategoryResponse: """ - @summary 创建资产类目 + @summary Create Asset Category @param request: CreateMetaCategoryRequest @return: CreateMetaCategoryResponse @@ -5265,7 +5461,9 @@ def create_proc_correct_order_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.CreateProcCorrectOrderResponse: """ - @summary 创建可编程对象变更工单 + @summary Creates a programmable object ticket. + + @description You can call this API operation only for database instances that are managed in Security Collaboration mode. @param tmp_req: CreateProcCorrectOrderRequest @param runtime: runtime options for this request RuntimeOptions @@ -5314,7 +5512,9 @@ async def create_proc_correct_order_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.CreateProcCorrectOrderResponse: """ - @summary 创建可编程对象变更工单 + @summary Creates a programmable object ticket. + + @description You can call this API operation only for database instances that are managed in Security Collaboration mode. @param tmp_req: CreateProcCorrectOrderRequest @param runtime: runtime options for this request RuntimeOptions @@ -5362,7 +5562,9 @@ def create_proc_correct_order( request: dms_enterprise_20181101_models.CreateProcCorrectOrderRequest, ) -> dms_enterprise_20181101_models.CreateProcCorrectOrderResponse: """ - @summary 创建可编程对象变更工单 + @summary Creates a programmable object ticket. + + @description You can call this API operation only for database instances that are managed in Security Collaboration mode. @param request: CreateProcCorrectOrderRequest @return: CreateProcCorrectOrderResponse @@ -5375,7 +5577,9 @@ async def create_proc_correct_order_async( request: dms_enterprise_20181101_models.CreateProcCorrectOrderRequest, ) -> dms_enterprise_20181101_models.CreateProcCorrectOrderResponse: """ - @summary 创建可编程对象变更工单 + @summary Creates a programmable object ticket. + + @description You can call this API operation only for database instances that are managed in Security Collaboration mode. @param request: CreateProcCorrectOrderRequest @return: CreateProcCorrectOrderResponse @@ -6677,7 +6881,11 @@ def create_workspace_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.CreateWorkspaceResponse: """ - @summary 创建工作空间 + @summary Creates a workspace. + + @description ## [](#)Prerequisites + A virtual private cloud (VPC) is created. + Log on to the DMS console by using an Alibaba Cloud account or a RAM user that has high permissions, and grant DMS the permissions to access cloud resources (AliyunDMSProcessingDataRolePolicy). @param request: CreateWorkspaceRequest @param runtime: runtime options for this request RuntimeOptions @@ -6722,7 +6930,11 @@ async def create_workspace_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.CreateWorkspaceResponse: """ - @summary 创建工作空间 + @summary Creates a workspace. + + @description ## [](#)Prerequisites + A virtual private cloud (VPC) is created. + Log on to the DMS console by using an Alibaba Cloud account or a RAM user that has high permissions, and grant DMS the permissions to access cloud resources (AliyunDMSProcessingDataRolePolicy). @param request: CreateWorkspaceRequest @param runtime: runtime options for this request RuntimeOptions @@ -6766,7 +6978,11 @@ def create_workspace( request: dms_enterprise_20181101_models.CreateWorkspaceRequest, ) -> dms_enterprise_20181101_models.CreateWorkspaceResponse: """ - @summary 创建工作空间 + @summary Creates a workspace. + + @description ## [](#)Prerequisites + A virtual private cloud (VPC) is created. + Log on to the DMS console by using an Alibaba Cloud account or a RAM user that has high permissions, and grant DMS the permissions to access cloud resources (AliyunDMSProcessingDataRolePolicy). @param request: CreateWorkspaceRequest @return: CreateWorkspaceResponse @@ -6779,7 +6995,11 @@ async def create_workspace_async( request: dms_enterprise_20181101_models.CreateWorkspaceRequest, ) -> dms_enterprise_20181101_models.CreateWorkspaceResponse: """ - @summary 创建工作空间 + @summary Creates a workspace. + + @description ## [](#)Prerequisites + A virtual private cloud (VPC) is created. + Log on to the DMS console by using an Alibaba Cloud account or a RAM user that has high permissions, and grant DMS the permissions to access cloud resources (AliyunDMSProcessingDataRolePolicy). @param request: CreateWorkspaceRequest @return: CreateWorkspaceResponse @@ -6793,7 +7013,7 @@ def delete_abac_authorization_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.DeleteAbacAuthorizationResponse: """ - @summary 删除权限策略授权 + @summary Detaches a policy from a user or role. @param request: DeleteAbacAuthorizationRequest @param runtime: runtime options for this request RuntimeOptions @@ -6832,7 +7052,7 @@ async def delete_abac_authorization_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.DeleteAbacAuthorizationResponse: """ - @summary 删除权限策略授权 + @summary Detaches a policy from a user or role. @param request: DeleteAbacAuthorizationRequest @param runtime: runtime options for this request RuntimeOptions @@ -6870,7 +7090,7 @@ def delete_abac_authorization( request: dms_enterprise_20181101_models.DeleteAbacAuthorizationRequest, ) -> dms_enterprise_20181101_models.DeleteAbacAuthorizationResponse: """ - @summary 删除权限策略授权 + @summary Detaches a policy from a user or role. @param request: DeleteAbacAuthorizationRequest @return: DeleteAbacAuthorizationResponse @@ -6883,7 +7103,7 @@ async def delete_abac_authorization_async( request: dms_enterprise_20181101_models.DeleteAbacAuthorizationRequest, ) -> dms_enterprise_20181101_models.DeleteAbacAuthorizationResponse: """ - @summary 删除权限策略授权 + @summary Detaches a policy from a user or role. @param request: DeleteAbacAuthorizationRequest @return: DeleteAbacAuthorizationResponse @@ -6897,7 +7117,7 @@ def delete_abac_policy_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.DeleteAbacPolicyResponse: """ - @summary 删除权限策略 + @summary Deletes a created permission policy. @param request: DeleteAbacPolicyRequest @param runtime: runtime options for this request RuntimeOptions @@ -6934,7 +7154,7 @@ async def delete_abac_policy_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.DeleteAbacPolicyResponse: """ - @summary 删除权限策略 + @summary Deletes a created permission policy. @param request: DeleteAbacPolicyRequest @param runtime: runtime options for this request RuntimeOptions @@ -6970,7 +7190,7 @@ def delete_abac_policy( request: dms_enterprise_20181101_models.DeleteAbacPolicyRequest, ) -> dms_enterprise_20181101_models.DeleteAbacPolicyResponse: """ - @summary 删除权限策略 + @summary Deletes a created permission policy. @param request: DeleteAbacPolicyRequest @return: DeleteAbacPolicyResponse @@ -6983,7 +7203,7 @@ async def delete_abac_policy_async( request: dms_enterprise_20181101_models.DeleteAbacPolicyRequest, ) -> dms_enterprise_20181101_models.DeleteAbacPolicyResponse: """ - @summary 删除权限策略 + @summary Deletes a created permission policy. @param request: DeleteAbacPolicyRequest @return: DeleteAbacPolicyResponse @@ -6997,7 +7217,7 @@ def delete_authority_template_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.DeleteAuthorityTemplateResponse: """ - @summary 删除权限模版 + @summary Deletes a permission template. @param request: DeleteAuthorityTemplateRequest @param runtime: runtime options for this request RuntimeOptions @@ -7034,7 +7254,7 @@ async def delete_authority_template_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.DeleteAuthorityTemplateResponse: """ - @summary 删除权限模版 + @summary Deletes a permission template. @param request: DeleteAuthorityTemplateRequest @param runtime: runtime options for this request RuntimeOptions @@ -7070,7 +7290,7 @@ def delete_authority_template( request: dms_enterprise_20181101_models.DeleteAuthorityTemplateRequest, ) -> dms_enterprise_20181101_models.DeleteAuthorityTemplateResponse: """ - @summary 删除权限模版 + @summary Deletes a permission template. @param request: DeleteAuthorityTemplateRequest @return: DeleteAuthorityTemplateResponse @@ -7083,7 +7303,7 @@ async def delete_authority_template_async( request: dms_enterprise_20181101_models.DeleteAuthorityTemplateRequest, ) -> dms_enterprise_20181101_models.DeleteAuthorityTemplateResponse: """ - @summary 删除权限模版 + @summary Deletes a permission template. @param request: DeleteAuthorityTemplateRequest @return: DeleteAuthorityTemplateResponse @@ -7097,7 +7317,7 @@ def delete_data_lake_database_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.DeleteDataLakeDatabaseResponse: """ - @summary 删除湖仓数据库 + @summary Deletes a database from a data lakehouse. @param request: DeleteDataLakeDatabaseRequest @param runtime: runtime options for this request RuntimeOptions @@ -7140,7 +7360,7 @@ async def delete_data_lake_database_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.DeleteDataLakeDatabaseResponse: """ - @summary 删除湖仓数据库 + @summary Deletes a database from a data lakehouse. @param request: DeleteDataLakeDatabaseRequest @param runtime: runtime options for this request RuntimeOptions @@ -7182,7 +7402,7 @@ def delete_data_lake_database( request: dms_enterprise_20181101_models.DeleteDataLakeDatabaseRequest, ) -> dms_enterprise_20181101_models.DeleteDataLakeDatabaseResponse: """ - @summary 删除湖仓数据库 + @summary Deletes a database from a data lakehouse. @param request: DeleteDataLakeDatabaseRequest @return: DeleteDataLakeDatabaseResponse @@ -7195,7 +7415,7 @@ async def delete_data_lake_database_async( request: dms_enterprise_20181101_models.DeleteDataLakeDatabaseRequest, ) -> dms_enterprise_20181101_models.DeleteDataLakeDatabaseResponse: """ - @summary 删除湖仓数据库 + @summary Deletes a database from a data lakehouse. @param request: DeleteDataLakeDatabaseRequest @return: DeleteDataLakeDatabaseResponse @@ -7209,7 +7429,7 @@ def delete_data_lake_function_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.DeleteDataLakeFunctionResponse: """ - @summary 删除湖仓自定义函数 + @summary Deletes a user-defined function in a data lakehouse. @param request: DeleteDataLakeFunctionRequest @param runtime: runtime options for this request RuntimeOptions @@ -7254,7 +7474,7 @@ async def delete_data_lake_function_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.DeleteDataLakeFunctionResponse: """ - @summary 删除湖仓自定义函数 + @summary Deletes a user-defined function in a data lakehouse. @param request: DeleteDataLakeFunctionRequest @param runtime: runtime options for this request RuntimeOptions @@ -7298,7 +7518,7 @@ def delete_data_lake_function( request: dms_enterprise_20181101_models.DeleteDataLakeFunctionRequest, ) -> dms_enterprise_20181101_models.DeleteDataLakeFunctionResponse: """ - @summary 删除湖仓自定义函数 + @summary Deletes a user-defined function in a data lakehouse. @param request: DeleteDataLakeFunctionRequest @return: DeleteDataLakeFunctionResponse @@ -7311,7 +7531,7 @@ async def delete_data_lake_function_async( request: dms_enterprise_20181101_models.DeleteDataLakeFunctionRequest, ) -> dms_enterprise_20181101_models.DeleteDataLakeFunctionResponse: """ - @summary 删除湖仓自定义函数 + @summary Deletes a user-defined function in a data lakehouse. @param request: DeleteDataLakeFunctionRequest @return: DeleteDataLakeFunctionResponse @@ -7325,7 +7545,7 @@ def delete_data_lake_partition_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.DeleteDataLakePartitionResponse: """ - @summary 删除湖仓表分区 + @summary Deletes a partition from a table in a data lakehouse. @param tmp_req: DeleteDataLakePartitionRequest @param runtime: runtime options for this request RuntimeOptions @@ -7378,7 +7598,7 @@ async def delete_data_lake_partition_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.DeleteDataLakePartitionResponse: """ - @summary 删除湖仓表分区 + @summary Deletes a partition from a table in a data lakehouse. @param tmp_req: DeleteDataLakePartitionRequest @param runtime: runtime options for this request RuntimeOptions @@ -7430,7 +7650,7 @@ def delete_data_lake_partition( request: dms_enterprise_20181101_models.DeleteDataLakePartitionRequest, ) -> dms_enterprise_20181101_models.DeleteDataLakePartitionResponse: """ - @summary 删除湖仓表分区 + @summary Deletes a partition from a table in a data lakehouse. @param request: DeleteDataLakePartitionRequest @return: DeleteDataLakePartitionResponse @@ -7443,7 +7663,7 @@ async def delete_data_lake_partition_async( request: dms_enterprise_20181101_models.DeleteDataLakePartitionRequest, ) -> dms_enterprise_20181101_models.DeleteDataLakePartitionResponse: """ - @summary 删除湖仓表分区 + @summary Deletes a partition from a table in a data lakehouse. @param request: DeleteDataLakePartitionRequest @return: DeleteDataLakePartitionResponse @@ -7457,7 +7677,7 @@ def delete_data_lake_table_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.DeleteDataLakeTableResponse: """ - @summary 删除湖仓表 + @summary Deletes a table from a data lakehouse. @param request: DeleteDataLakeTableRequest @param runtime: runtime options for this request RuntimeOptions @@ -7502,7 +7722,7 @@ async def delete_data_lake_table_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.DeleteDataLakeTableResponse: """ - @summary 删除湖仓表 + @summary Deletes a table from a data lakehouse. @param request: DeleteDataLakeTableRequest @param runtime: runtime options for this request RuntimeOptions @@ -7546,7 +7766,7 @@ def delete_data_lake_table( request: dms_enterprise_20181101_models.DeleteDataLakeTableRequest, ) -> dms_enterprise_20181101_models.DeleteDataLakeTableResponse: """ - @summary 删除湖仓表 + @summary Deletes a table from a data lakehouse. @param request: DeleteDataLakeTableRequest @return: DeleteDataLakeTableResponse @@ -7559,7 +7779,7 @@ async def delete_data_lake_table_async( request: dms_enterprise_20181101_models.DeleteDataLakeTableRequest, ) -> dms_enterprise_20181101_models.DeleteDataLakeTableResponse: """ - @summary 删除湖仓表 + @summary Deletes a table from a data lakehouse. @param request: DeleteDataLakeTableRequest @return: DeleteDataLakeTableResponse @@ -8121,7 +8341,7 @@ def delete_meta_category_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.DeleteMetaCategoryResponse: """ - @summary 删除资产类目 + @summary Deletes an asset category. @param request: DeleteMetaCategoryRequest @param runtime: runtime options for this request RuntimeOptions @@ -8158,7 +8378,7 @@ async def delete_meta_category_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.DeleteMetaCategoryResponse: """ - @summary 删除资产类目 + @summary Deletes an asset category. @param request: DeleteMetaCategoryRequest @param runtime: runtime options for this request RuntimeOptions @@ -8194,7 +8414,7 @@ def delete_meta_category( request: dms_enterprise_20181101_models.DeleteMetaCategoryRequest, ) -> dms_enterprise_20181101_models.DeleteMetaCategoryResponse: """ - @summary 删除资产类目 + @summary Deletes an asset category. @param request: DeleteMetaCategoryRequest @return: DeleteMetaCategoryResponse @@ -8207,7 +8427,7 @@ async def delete_meta_category_async( request: dms_enterprise_20181101_models.DeleteMetaCategoryRequest, ) -> dms_enterprise_20181101_models.DeleteMetaCategoryResponse: """ - @summary 删除资产类目 + @summary Deletes an asset category. @param request: DeleteMetaCategoryRequest @return: DeleteMetaCategoryResponse @@ -8537,7 +8757,9 @@ def delete_standard_group_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.DeleteStandardGroupResponse: """ - @summary 删除安全规则 + @summary Deletes a security rule set. + + @description Before you call this API operation, make sure that the security rule set is not associated with an instance. @param request: DeleteStandardGroupRequest @param runtime: runtime options for this request RuntimeOptions @@ -8574,7 +8796,9 @@ async def delete_standard_group_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.DeleteStandardGroupResponse: """ - @summary 删除安全规则 + @summary Deletes a security rule set. + + @description Before you call this API operation, make sure that the security rule set is not associated with an instance. @param request: DeleteStandardGroupRequest @param runtime: runtime options for this request RuntimeOptions @@ -8610,7 +8834,9 @@ def delete_standard_group( request: dms_enterprise_20181101_models.DeleteStandardGroupRequest, ) -> dms_enterprise_20181101_models.DeleteStandardGroupResponse: """ - @summary 删除安全规则 + @summary Deletes a security rule set. + + @description Before you call this API operation, make sure that the security rule set is not associated with an instance. @param request: DeleteStandardGroupRequest @return: DeleteStandardGroupResponse @@ -8623,7 +8849,9 @@ async def delete_standard_group_async( request: dms_enterprise_20181101_models.DeleteStandardGroupRequest, ) -> dms_enterprise_20181101_models.DeleteStandardGroupResponse: """ - @summary 删除安全规则 + @summary Deletes a security rule set. + + @description Before you call this API operation, make sure that the security rule set is not associated with an instance. @param request: DeleteStandardGroupRequest @return: DeleteStandardGroupResponse @@ -9069,7 +9297,7 @@ def delete_workspace_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.DeleteWorkspaceResponse: """ - @summary 删除工作空间 + @summary Deletes a workspace. @param request: DeleteWorkspaceRequest @param runtime: runtime options for this request RuntimeOptions @@ -9104,7 +9332,7 @@ async def delete_workspace_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.DeleteWorkspaceResponse: """ - @summary 删除工作空间 + @summary Deletes a workspace. @param request: DeleteWorkspaceRequest @param runtime: runtime options for this request RuntimeOptions @@ -9138,7 +9366,7 @@ def delete_workspace( request: dms_enterprise_20181101_models.DeleteWorkspaceRequest, ) -> dms_enterprise_20181101_models.DeleteWorkspaceResponse: """ - @summary 删除工作空间 + @summary Deletes a workspace. @param request: DeleteWorkspaceRequest @return: DeleteWorkspaceResponse @@ -9151,7 +9379,7 @@ async def delete_workspace_async( request: dms_enterprise_20181101_models.DeleteWorkspaceRequest, ) -> dms_enterprise_20181101_models.DeleteWorkspaceResponse: """ - @summary 删除工作空间 + @summary Deletes a workspace. @param request: DeleteWorkspaceRequest @return: DeleteWorkspaceResponse @@ -10097,7 +10325,9 @@ def edit_meta_knowledge_asset_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.EditMetaKnowledgeAssetResponse: """ - @summary 编辑指定guid的元数据业务知识 + @summary Edits the metadata business knowledge for specified GUIDs. + + @description Edits the business knowledge of the metadata represented by the specified GUID. @param request: EditMetaKnowledgeAssetRequest @param runtime: runtime options for this request RuntimeOptions @@ -10140,7 +10370,9 @@ async def edit_meta_knowledge_asset_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.EditMetaKnowledgeAssetResponse: """ - @summary 编辑指定guid的元数据业务知识 + @summary Edits the metadata business knowledge for specified GUIDs. + + @description Edits the business knowledge of the metadata represented by the specified GUID. @param request: EditMetaKnowledgeAssetRequest @param runtime: runtime options for this request RuntimeOptions @@ -10182,7 +10414,9 @@ def edit_meta_knowledge_asset( request: dms_enterprise_20181101_models.EditMetaKnowledgeAssetRequest, ) -> dms_enterprise_20181101_models.EditMetaKnowledgeAssetResponse: """ - @summary 编辑指定guid的元数据业务知识 + @summary Edits the metadata business knowledge for specified GUIDs. + + @description Edits the business knowledge of the metadata represented by the specified GUID. @param request: EditMetaKnowledgeAssetRequest @return: EditMetaKnowledgeAssetResponse @@ -10195,7 +10429,9 @@ async def edit_meta_knowledge_asset_async( request: dms_enterprise_20181101_models.EditMetaKnowledgeAssetRequest, ) -> dms_enterprise_20181101_models.EditMetaKnowledgeAssetResponse: """ - @summary 编辑指定guid的元数据业务知识 + @summary Edits the metadata business knowledge for specified GUIDs. + + @description Edits the business knowledge of the metadata represented by the specified GUID. @param request: EditMetaKnowledgeAssetRequest @return: EditMetaKnowledgeAssetResponse @@ -10785,9 +11021,9 @@ def fix_sql_by_meta_agent_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.FixSqlByMetaAgentResponse: """ - @summary 根据用户提供的SQL,报错信息和数据库ID,分析SQL报错原因并修复 + @summary Uses the specified SQL statement, error message, and database ID to analyze and fix the SQL error. - @description 根据用户提供的SQL,报错信息和数据库ID,分析SQL报错原因并修复 + @description You can call this operation to analyze and fix SQL errors based on the specified SQL statement, error message, and database ID. @param request: FixSqlByMetaAgentRequest @param runtime: runtime options for this request RuntimeOptions @@ -10830,9 +11066,9 @@ async def fix_sql_by_meta_agent_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.FixSqlByMetaAgentResponse: """ - @summary 根据用户提供的SQL,报错信息和数据库ID,分析SQL报错原因并修复 + @summary Uses the specified SQL statement, error message, and database ID to analyze and fix the SQL error. - @description 根据用户提供的SQL,报错信息和数据库ID,分析SQL报错原因并修复 + @description You can call this operation to analyze and fix SQL errors based on the specified SQL statement, error message, and database ID. @param request: FixSqlByMetaAgentRequest @param runtime: runtime options for this request RuntimeOptions @@ -10874,9 +11110,9 @@ def fix_sql_by_meta_agent( request: dms_enterprise_20181101_models.FixSqlByMetaAgentRequest, ) -> dms_enterprise_20181101_models.FixSqlByMetaAgentResponse: """ - @summary 根据用户提供的SQL,报错信息和数据库ID,分析SQL报错原因并修复 + @summary Uses the specified SQL statement, error message, and database ID to analyze and fix the SQL error. - @description 根据用户提供的SQL,报错信息和数据库ID,分析SQL报错原因并修复 + @description You can call this operation to analyze and fix SQL errors based on the specified SQL statement, error message, and database ID. @param request: FixSqlByMetaAgentRequest @return: FixSqlByMetaAgentResponse @@ -10889,9 +11125,9 @@ async def fix_sql_by_meta_agent_async( request: dms_enterprise_20181101_models.FixSqlByMetaAgentRequest, ) -> dms_enterprise_20181101_models.FixSqlByMetaAgentResponse: """ - @summary 根据用户提供的SQL,报错信息和数据库ID,分析SQL报错原因并修复 + @summary Uses the specified SQL statement, error message, and database ID to analyze and fix the SQL error. - @description 根据用户提供的SQL,报错信息和数据库ID,分析SQL报错原因并修复 + @description You can call this operation to analyze and fix SQL errors based on the specified SQL statement, error message, and database ID. @param request: FixSqlByMetaAgentRequest @return: FixSqlByMetaAgentResponse @@ -11157,7 +11393,7 @@ def get_abac_policy_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.GetAbacPolicyResponse: """ - @summary 获取策略详情 + @summary Queries the details of a policy, including the name, content, and the user who created the policy. @param request: GetAbacPolicyRequest @param runtime: runtime options for this request RuntimeOptions @@ -11196,7 +11432,7 @@ async def get_abac_policy_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.GetAbacPolicyResponse: """ - @summary 获取策略详情 + @summary Queries the details of a policy, including the name, content, and the user who created the policy. @param request: GetAbacPolicyRequest @param runtime: runtime options for this request RuntimeOptions @@ -11234,7 +11470,7 @@ def get_abac_policy( request: dms_enterprise_20181101_models.GetAbacPolicyRequest, ) -> dms_enterprise_20181101_models.GetAbacPolicyResponse: """ - @summary 获取策略详情 + @summary Queries the details of a policy, including the name, content, and the user who created the policy. @param request: GetAbacPolicyRequest @return: GetAbacPolicyResponse @@ -11247,7 +11483,7 @@ async def get_abac_policy_async( request: dms_enterprise_20181101_models.GetAbacPolicyRequest, ) -> dms_enterprise_20181101_models.GetAbacPolicyResponse: """ - @summary 获取策略详情 + @summary Queries the details of a policy, including the name, content, and the user who created the policy. @param request: GetAbacPolicyRequest @return: GetAbacPolicyResponse @@ -11577,7 +11813,7 @@ def get_classification_template_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.GetClassificationTemplateResponse: """ - @summary 获取实例绑定的分类分级模板 + @summary Queries the information about the classification and grading template associated with an instance. @param request: GetClassificationTemplateRequest @param runtime: runtime options for this request RuntimeOptions @@ -11614,7 +11850,7 @@ async def get_classification_template_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.GetClassificationTemplateResponse: """ - @summary 获取实例绑定的分类分级模板 + @summary Queries the information about the classification and grading template associated with an instance. @param request: GetClassificationTemplateRequest @param runtime: runtime options for this request RuntimeOptions @@ -11650,7 +11886,7 @@ def get_classification_template( request: dms_enterprise_20181101_models.GetClassificationTemplateRequest, ) -> dms_enterprise_20181101_models.GetClassificationTemplateResponse: """ - @summary 获取实例绑定的分类分级模板 + @summary Queries the information about the classification and grading template associated with an instance. @param request: GetClassificationTemplateRequest @return: GetClassificationTemplateResponse @@ -11663,7 +11899,7 @@ async def get_classification_template_async( request: dms_enterprise_20181101_models.GetClassificationTemplateRequest, ) -> dms_enterprise_20181101_models.GetClassificationTemplateResponse: """ - @summary 获取实例绑定的分类分级模板 + @summary Queries the information about the classification and grading template associated with an instance. @param request: GetClassificationTemplateRequest @return: GetClassificationTemplateResponse @@ -13233,7 +13469,7 @@ def get_data_lake_catalog_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.GetDataLakeCatalogResponse: """ - @summary 获取uc的数据库目录 + @summary Queries the data catalog of the data lake. @param request: GetDataLakeCatalogRequest @param runtime: runtime options for this request RuntimeOptions @@ -13274,7 +13510,7 @@ async def get_data_lake_catalog_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.GetDataLakeCatalogResponse: """ - @summary 获取uc的数据库目录 + @summary Queries the data catalog of the data lake. @param request: GetDataLakeCatalogRequest @param runtime: runtime options for this request RuntimeOptions @@ -13314,7 +13550,7 @@ def get_data_lake_catalog( request: dms_enterprise_20181101_models.GetDataLakeCatalogRequest, ) -> dms_enterprise_20181101_models.GetDataLakeCatalogResponse: """ - @summary 获取uc的数据库目录 + @summary Queries the data catalog of the data lake. @param request: GetDataLakeCatalogRequest @return: GetDataLakeCatalogResponse @@ -13327,7 +13563,7 @@ async def get_data_lake_catalog_async( request: dms_enterprise_20181101_models.GetDataLakeCatalogRequest, ) -> dms_enterprise_20181101_models.GetDataLakeCatalogResponse: """ - @summary 获取uc的数据库目录 + @summary Queries the data catalog of the data lake. @param request: GetDataLakeCatalogRequest @return: GetDataLakeCatalogResponse @@ -13341,7 +13577,7 @@ def get_data_lake_database_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.GetDataLakeDatabaseResponse: """ - @summary 获取UC的数据库 + @summary Queries the information about the database in the data lake. @param request: GetDataLakeDatabaseRequest @param runtime: runtime options for this request RuntimeOptions @@ -13384,7 +13620,7 @@ async def get_data_lake_database_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.GetDataLakeDatabaseResponse: """ - @summary 获取UC的数据库 + @summary Queries the information about the database in the data lake. @param request: GetDataLakeDatabaseRequest @param runtime: runtime options for this request RuntimeOptions @@ -13426,7 +13662,7 @@ def get_data_lake_database( request: dms_enterprise_20181101_models.GetDataLakeDatabaseRequest, ) -> dms_enterprise_20181101_models.GetDataLakeDatabaseResponse: """ - @summary 获取UC的数据库 + @summary Queries the information about the database in the data lake. @param request: GetDataLakeDatabaseRequest @return: GetDataLakeDatabaseResponse @@ -13439,7 +13675,7 @@ async def get_data_lake_database_async( request: dms_enterprise_20181101_models.GetDataLakeDatabaseRequest, ) -> dms_enterprise_20181101_models.GetDataLakeDatabaseResponse: """ - @summary 获取UC的数据库 + @summary Queries the information about the database in the data lake. @param request: GetDataLakeDatabaseRequest @return: GetDataLakeDatabaseResponse @@ -13453,7 +13689,7 @@ def get_data_lake_function_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.GetDataLakeFunctionResponse: """ - @summary 获取湖仓自定义函数详细信息 + @summary Obtains the details about a user-defined function in a data lakehouse. @param request: GetDataLakeFunctionRequest @param runtime: runtime options for this request RuntimeOptions @@ -13498,7 +13734,7 @@ async def get_data_lake_function_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.GetDataLakeFunctionResponse: """ - @summary 获取湖仓自定义函数详细信息 + @summary Obtains the details about a user-defined function in a data lakehouse. @param request: GetDataLakeFunctionRequest @param runtime: runtime options for this request RuntimeOptions @@ -13542,7 +13778,7 @@ def get_data_lake_function( request: dms_enterprise_20181101_models.GetDataLakeFunctionRequest, ) -> dms_enterprise_20181101_models.GetDataLakeFunctionResponse: """ - @summary 获取湖仓自定义函数详细信息 + @summary Obtains the details about a user-defined function in a data lakehouse. @param request: GetDataLakeFunctionRequest @return: GetDataLakeFunctionResponse @@ -13555,7 +13791,7 @@ async def get_data_lake_function_async( request: dms_enterprise_20181101_models.GetDataLakeFunctionRequest, ) -> dms_enterprise_20181101_models.GetDataLakeFunctionResponse: """ - @summary 获取湖仓自定义函数详细信息 + @summary Obtains the details about a user-defined function in a data lakehouse. @param request: GetDataLakeFunctionRequest @return: GetDataLakeFunctionResponse @@ -13569,7 +13805,7 @@ def get_data_lake_partition_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.GetDataLakePartitionResponse: """ - @summary 获取湖仓表分区详情 + @summary Queries the information about a partition of a table in a data lakehouse. @param tmp_req: GetDataLakePartitionRequest @param runtime: runtime options for this request RuntimeOptions @@ -13620,7 +13856,7 @@ async def get_data_lake_partition_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.GetDataLakePartitionResponse: """ - @summary 获取湖仓表分区详情 + @summary Queries the information about a partition of a table in a data lakehouse. @param tmp_req: GetDataLakePartitionRequest @param runtime: runtime options for this request RuntimeOptions @@ -13670,7 +13906,7 @@ def get_data_lake_partition( request: dms_enterprise_20181101_models.GetDataLakePartitionRequest, ) -> dms_enterprise_20181101_models.GetDataLakePartitionResponse: """ - @summary 获取湖仓表分区详情 + @summary Queries the information about a partition of a table in a data lakehouse. @param request: GetDataLakePartitionRequest @return: GetDataLakePartitionResponse @@ -13683,7 +13919,7 @@ async def get_data_lake_partition_async( request: dms_enterprise_20181101_models.GetDataLakePartitionRequest, ) -> dms_enterprise_20181101_models.GetDataLakePartitionResponse: """ - @summary 获取湖仓表分区详情 + @summary Queries the information about a partition of a table in a data lakehouse. @param request: GetDataLakePartitionRequest @return: GetDataLakePartitionResponse @@ -13697,7 +13933,7 @@ def get_data_lake_table_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.GetDataLakeTableResponse: """ - @summary 获取表信息 + @summary Queries basic information about tables in the data lake. @param request: GetDataLakeTableRequest @param runtime: runtime options for this request RuntimeOptions @@ -13742,7 +13978,7 @@ async def get_data_lake_table_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.GetDataLakeTableResponse: """ - @summary 获取表信息 + @summary Queries basic information about tables in the data lake. @param request: GetDataLakeTableRequest @param runtime: runtime options for this request RuntimeOptions @@ -13786,7 +14022,7 @@ def get_data_lake_table( request: dms_enterprise_20181101_models.GetDataLakeTableRequest, ) -> dms_enterprise_20181101_models.GetDataLakeTableResponse: """ - @summary 获取表信息 + @summary Queries basic information about tables in the data lake. @param request: GetDataLakeTableRequest @return: GetDataLakeTableResponse @@ -13799,7 +14035,7 @@ async def get_data_lake_table_async( request: dms_enterprise_20181101_models.GetDataLakeTableRequest, ) -> dms_enterprise_20181101_models.GetDataLakeTableResponse: """ - @summary 获取表信息 + @summary Queries basic information about tables in the data lake. @param request: GetDataLakeTableRequest @return: GetDataLakeTableResponse @@ -14333,7 +14569,7 @@ def get_db_export_download_urlwith_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.GetDbExportDownloadURLResponse: """ - @summary 获取数据库导出下载地址 + @summary Queries the download URL of the results of a database export ticket. @param request: GetDbExportDownloadURLRequest @param runtime: runtime options for this request RuntimeOptions @@ -14370,7 +14606,7 @@ async def get_db_export_download_urlwith_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.GetDbExportDownloadURLResponse: """ - @summary 获取数据库导出下载地址 + @summary Queries the download URL of the results of a database export ticket. @param request: GetDbExportDownloadURLRequest @param runtime: runtime options for this request RuntimeOptions @@ -14406,7 +14642,7 @@ def get_db_export_download_url( request: dms_enterprise_20181101_models.GetDbExportDownloadURLRequest, ) -> dms_enterprise_20181101_models.GetDbExportDownloadURLResponse: """ - @summary 获取数据库导出下载地址 + @summary Queries the download URL of the results of a database export ticket. @param request: GetDbExportDownloadURLRequest @return: GetDbExportDownloadURLResponse @@ -14419,7 +14655,7 @@ async def get_db_export_download_url_async( request: dms_enterprise_20181101_models.GetDbExportDownloadURLRequest, ) -> dms_enterprise_20181101_models.GetDbExportDownloadURLResponse: """ - @summary 获取数据库导出下载地址 + @summary Queries the download URL of the results of a database export ticket. @param request: GetDbExportDownloadURLRequest @return: GetDbExportDownloadURLResponse @@ -15613,7 +15849,7 @@ def get_paged_instance_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.GetPagedInstanceResponse: """ - @summary 获取数据归档工单任务实例 + @summary Queries the task information about a ticket. @param request: GetPagedInstanceRequest @param runtime: runtime options for this request RuntimeOptions @@ -15646,7 +15882,7 @@ async def get_paged_instance_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.GetPagedInstanceResponse: """ - @summary 获取数据归档工单任务实例 + @summary Queries the task information about a ticket. @param request: GetPagedInstanceRequest @param runtime: runtime options for this request RuntimeOptions @@ -15678,7 +15914,7 @@ def get_paged_instance( request: dms_enterprise_20181101_models.GetPagedInstanceRequest, ) -> dms_enterprise_20181101_models.GetPagedInstanceResponse: """ - @summary 获取数据归档工单任务实例 + @summary Queries the task information about a ticket. @param request: GetPagedInstanceRequest @return: GetPagedInstanceResponse @@ -15691,7 +15927,7 @@ async def get_paged_instance_async( request: dms_enterprise_20181101_models.GetPagedInstanceRequest, ) -> dms_enterprise_20181101_models.GetPagedInstanceResponse: """ - @summary 获取数据归档工单任务实例 + @summary Queries the task information about a ticket. @param request: GetPagedInstanceRequest @return: GetPagedInstanceResponse @@ -16429,7 +16665,7 @@ def get_standard_group_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.GetStandardGroupResponse: """ - @summary 获取安全规则 + @summary Queries the information about security rule sets of a tenant. The information includes the name and description of security rules, and instances associated with security rules. @param request: GetStandardGroupRequest @param runtime: runtime options for this request RuntimeOptions @@ -16466,7 +16702,7 @@ async def get_standard_group_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.GetStandardGroupResponse: """ - @summary 获取安全规则 + @summary Queries the information about security rule sets of a tenant. The information includes the name and description of security rules, and instances associated with security rules. @param request: GetStandardGroupRequest @param runtime: runtime options for this request RuntimeOptions @@ -16502,7 +16738,7 @@ def get_standard_group( request: dms_enterprise_20181101_models.GetStandardGroupRequest, ) -> dms_enterprise_20181101_models.GetStandardGroupResponse: """ - @summary 获取安全规则 + @summary Queries the information about security rule sets of a tenant. The information includes the name and description of security rules, and instances associated with security rules. @param request: GetStandardGroupRequest @return: GetStandardGroupResponse @@ -16515,7 +16751,7 @@ async def get_standard_group_async( request: dms_enterprise_20181101_models.GetStandardGroupRequest, ) -> dms_enterprise_20181101_models.GetStandardGroupResponse: """ - @summary 获取安全规则 + @summary Queries the information about security rule sets of a tenant. The information includes the name and description of security rules, and instances associated with security rules. @param request: GetStandardGroupRequest @return: GetStandardGroupResponse @@ -17249,7 +17485,9 @@ def get_table_knowledge_info_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.GetTableKnowledgeInfoResponse: """ - @summary 获取指定guid的元数据知识 + @summary Gets metadata knowledge for a specified GUID. + + @description This API can be called only for database instances that are enabled for security hosting. @param request: GetTableKnowledgeInfoRequest @param runtime: runtime options for this request RuntimeOptions @@ -17288,7 +17526,9 @@ async def get_table_knowledge_info_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.GetTableKnowledgeInfoResponse: """ - @summary 获取指定guid的元数据知识 + @summary Gets metadata knowledge for a specified GUID. + + @description This API can be called only for database instances that are enabled for security hosting. @param request: GetTableKnowledgeInfoRequest @param runtime: runtime options for this request RuntimeOptions @@ -17326,7 +17566,9 @@ def get_table_knowledge_info( request: dms_enterprise_20181101_models.GetTableKnowledgeInfoRequest, ) -> dms_enterprise_20181101_models.GetTableKnowledgeInfoResponse: """ - @summary 获取指定guid的元数据知识 + @summary Gets metadata knowledge for a specified GUID. + + @description This API can be called only for database instances that are enabled for security hosting. @param request: GetTableKnowledgeInfoRequest @return: GetTableKnowledgeInfoResponse @@ -17339,7 +17581,9 @@ async def get_table_knowledge_info_async( request: dms_enterprise_20181101_models.GetTableKnowledgeInfoRequest, ) -> dms_enterprise_20181101_models.GetTableKnowledgeInfoResponse: """ - @summary 获取指定guid的元数据知识 + @summary Gets metadata knowledge for a specified GUID. + + @description This API can be called only for database instances that are enabled for security hosting. @param request: GetTableKnowledgeInfoRequest @return: GetTableKnowledgeInfoResponse @@ -18157,7 +18401,7 @@ def get_workspace_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.GetWorkspaceResponse: """ - @summary 获取空间描述 + @summary Queries the details of a workspace. @param request: GetWorkspaceRequest @param runtime: runtime options for this request RuntimeOptions @@ -18192,7 +18436,7 @@ async def get_workspace_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.GetWorkspaceResponse: """ - @summary 获取空间描述 + @summary Queries the details of a workspace. @param request: GetWorkspaceRequest @param runtime: runtime options for this request RuntimeOptions @@ -18226,7 +18470,7 @@ def get_workspace( request: dms_enterprise_20181101_models.GetWorkspaceRequest, ) -> dms_enterprise_20181101_models.GetWorkspaceResponse: """ - @summary 获取空间描述 + @summary Queries the details of a workspace. @param request: GetWorkspaceRequest @return: GetWorkspaceResponse @@ -18239,7 +18483,7 @@ async def get_workspace_async( request: dms_enterprise_20181101_models.GetWorkspaceRequest, ) -> dms_enterprise_20181101_models.GetWorkspaceResponse: """ - @summary 获取空间描述 + @summary Queries the details of a workspace. @param request: GetWorkspaceRequest @return: GetWorkspaceResponse @@ -18605,7 +18849,7 @@ def list_abac_authorizations_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListAbacAuthorizationsResponse: """ - @summary 获取权限策略授权列表 + @summary Queries a list of users to which the specified policy is attached and the number of the users. @param request: ListAbacAuthorizationsRequest @param runtime: runtime options for this request RuntimeOptions @@ -18648,7 +18892,7 @@ async def list_abac_authorizations_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListAbacAuthorizationsResponse: """ - @summary 获取权限策略授权列表 + @summary Queries a list of users to which the specified policy is attached and the number of the users. @param request: ListAbacAuthorizationsRequest @param runtime: runtime options for this request RuntimeOptions @@ -18690,7 +18934,7 @@ def list_abac_authorizations( request: dms_enterprise_20181101_models.ListAbacAuthorizationsRequest, ) -> dms_enterprise_20181101_models.ListAbacAuthorizationsResponse: """ - @summary 获取权限策略授权列表 + @summary Queries a list of users to which the specified policy is attached and the number of the users. @param request: ListAbacAuthorizationsRequest @return: ListAbacAuthorizationsResponse @@ -18703,7 +18947,7 @@ async def list_abac_authorizations_async( request: dms_enterprise_20181101_models.ListAbacAuthorizationsRequest, ) -> dms_enterprise_20181101_models.ListAbacAuthorizationsResponse: """ - @summary 获取权限策略授权列表 + @summary Queries a list of users to which the specified policy is attached and the number of the users. @param request: ListAbacAuthorizationsRequest @return: ListAbacAuthorizationsResponse @@ -18717,7 +18961,7 @@ def list_abac_policies_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListAbacPoliciesResponse: """ - @summary 获取权限策略列表 + @summary Queries a list of policies that are created by a user. @param request: ListAbacPoliciesRequest @param runtime: runtime options for this request RuntimeOptions @@ -18758,7 +19002,7 @@ async def list_abac_policies_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListAbacPoliciesResponse: """ - @summary 获取权限策略列表 + @summary Queries a list of policies that are created by a user. @param request: ListAbacPoliciesRequest @param runtime: runtime options for this request RuntimeOptions @@ -18798,7 +19042,7 @@ def list_abac_policies( request: dms_enterprise_20181101_models.ListAbacPoliciesRequest, ) -> dms_enterprise_20181101_models.ListAbacPoliciesResponse: """ - @summary 获取权限策略列表 + @summary Queries a list of policies that are created by a user. @param request: ListAbacPoliciesRequest @return: ListAbacPoliciesResponse @@ -18811,7 +19055,7 @@ async def list_abac_policies_async( request: dms_enterprise_20181101_models.ListAbacPoliciesRequest, ) -> dms_enterprise_20181101_models.ListAbacPoliciesResponse: """ - @summary 获取权限策略列表 + @summary Queries a list of policies that are created by a user. @param request: ListAbacPoliciesRequest @return: ListAbacPoliciesResponse @@ -18825,7 +19069,7 @@ def list_authority_template_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListAuthorityTemplateResponse: """ - @summary 获取权限模版列表 + @summary Queries the information about permission templates, including the template creator, template name, and total number of templates. @param request: ListAuthorityTemplateRequest @param runtime: runtime options for this request RuntimeOptions @@ -18866,7 +19110,7 @@ async def list_authority_template_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListAuthorityTemplateResponse: """ - @summary 获取权限模版列表 + @summary Queries the information about permission templates, including the template creator, template name, and total number of templates. @param request: ListAuthorityTemplateRequest @param runtime: runtime options for this request RuntimeOptions @@ -18906,7 +19150,7 @@ def list_authority_template( request: dms_enterprise_20181101_models.ListAuthorityTemplateRequest, ) -> dms_enterprise_20181101_models.ListAuthorityTemplateResponse: """ - @summary 获取权限模版列表 + @summary Queries the information about permission templates, including the template creator, template name, and total number of templates. @param request: ListAuthorityTemplateRequest @return: ListAuthorityTemplateResponse @@ -18919,7 +19163,7 @@ async def list_authority_template_async( request: dms_enterprise_20181101_models.ListAuthorityTemplateRequest, ) -> dms_enterprise_20181101_models.ListAuthorityTemplateResponse: """ - @summary 获取权限模版列表 + @summary Queries the information about permission templates, including the template creator, template name, and total number of templates. @param request: ListAuthorityTemplateRequest @return: ListAuthorityTemplateResponse @@ -18933,7 +19177,7 @@ def list_authorized_databases_for_user_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListAuthorizedDatabasesForUserResponse: """ - @summary 获取用户有权限的数据库 + @summary Queries the databases on which the specified user has permissions. @param request: ListAuthorizedDatabasesForUserRequest @param runtime: runtime options for this request RuntimeOptions @@ -18982,7 +19226,7 @@ async def list_authorized_databases_for_user_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListAuthorizedDatabasesForUserResponse: """ - @summary 获取用户有权限的数据库 + @summary Queries the databases on which the specified user has permissions. @param request: ListAuthorizedDatabasesForUserRequest @param runtime: runtime options for this request RuntimeOptions @@ -19030,7 +19274,7 @@ def list_authorized_databases_for_user( request: dms_enterprise_20181101_models.ListAuthorizedDatabasesForUserRequest, ) -> dms_enterprise_20181101_models.ListAuthorizedDatabasesForUserResponse: """ - @summary 获取用户有权限的数据库 + @summary Queries the databases on which the specified user has permissions. @param request: ListAuthorizedDatabasesForUserRequest @return: ListAuthorizedDatabasesForUserResponse @@ -19043,7 +19287,7 @@ async def list_authorized_databases_for_user_async( request: dms_enterprise_20181101_models.ListAuthorizedDatabasesForUserRequest, ) -> dms_enterprise_20181101_models.ListAuthorizedDatabasesForUserResponse: """ - @summary 获取用户有权限的数据库 + @summary Queries the databases on which the specified user has permissions. @param request: ListAuthorizedDatabasesForUserRequest @return: ListAuthorizedDatabasesForUserResponse @@ -19057,7 +19301,7 @@ def list_authorized_instances_for_user_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListAuthorizedInstancesForUserResponse: """ - @summary 获取用户有权限的实例 + @summary Queries the instances on which the specified user has permissions. @param request: ListAuthorizedInstancesForUserRequest @param runtime: runtime options for this request RuntimeOptions @@ -19104,7 +19348,7 @@ async def list_authorized_instances_for_user_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListAuthorizedInstancesForUserResponse: """ - @summary 获取用户有权限的实例 + @summary Queries the instances on which the specified user has permissions. @param request: ListAuthorizedInstancesForUserRequest @param runtime: runtime options for this request RuntimeOptions @@ -19150,7 +19394,7 @@ def list_authorized_instances_for_user( request: dms_enterprise_20181101_models.ListAuthorizedInstancesForUserRequest, ) -> dms_enterprise_20181101_models.ListAuthorizedInstancesForUserResponse: """ - @summary 获取用户有权限的实例 + @summary Queries the instances on which the specified user has permissions. @param request: ListAuthorizedInstancesForUserRequest @return: ListAuthorizedInstancesForUserResponse @@ -19163,7 +19407,7 @@ async def list_authorized_instances_for_user_async( request: dms_enterprise_20181101_models.ListAuthorizedInstancesForUserRequest, ) -> dms_enterprise_20181101_models.ListAuthorizedInstancesForUserResponse: """ - @summary 获取用户有权限的实例 + @summary Queries the instances on which the specified user has permissions. @param request: ListAuthorizedInstancesForUserRequest @return: ListAuthorizedInstancesForUserResponse @@ -19177,7 +19421,7 @@ def list_authorized_users_for_database_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListAuthorizedUsersForDatabaseResponse: """ - @summary 查询有数据库权限的用户 + @summary Queries a list of users that have permissions on the specified database. @param request: ListAuthorizedUsersForDatabaseRequest @param runtime: runtime options for this request RuntimeOptions @@ -19222,7 +19466,7 @@ async def list_authorized_users_for_database_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListAuthorizedUsersForDatabaseResponse: """ - @summary 查询有数据库权限的用户 + @summary Queries a list of users that have permissions on the specified database. @param request: ListAuthorizedUsersForDatabaseRequest @param runtime: runtime options for this request RuntimeOptions @@ -19266,7 +19510,7 @@ def list_authorized_users_for_database( request: dms_enterprise_20181101_models.ListAuthorizedUsersForDatabaseRequest, ) -> dms_enterprise_20181101_models.ListAuthorizedUsersForDatabaseResponse: """ - @summary 查询有数据库权限的用户 + @summary Queries a list of users that have permissions on the specified database. @param request: ListAuthorizedUsersForDatabaseRequest @return: ListAuthorizedUsersForDatabaseResponse @@ -19279,7 +19523,7 @@ async def list_authorized_users_for_database_async( request: dms_enterprise_20181101_models.ListAuthorizedUsersForDatabaseRequest, ) -> dms_enterprise_20181101_models.ListAuthorizedUsersForDatabaseResponse: """ - @summary 查询有数据库权限的用户 + @summary Queries a list of users that have permissions on the specified database. @param request: ListAuthorizedUsersForDatabaseRequest @return: ListAuthorizedUsersForDatabaseResponse @@ -19293,7 +19537,7 @@ def list_authorized_users_for_instance_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListAuthorizedUsersForInstanceResponse: """ - @summary 查询有实例权限的用户 + @summary Queries a list of users that have permissions on the specified instance. @param request: ListAuthorizedUsersForInstanceRequest @param runtime: runtime options for this request RuntimeOptions @@ -19336,7 +19580,7 @@ async def list_authorized_users_for_instance_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListAuthorizedUsersForInstanceResponse: """ - @summary 查询有实例权限的用户 + @summary Queries a list of users that have permissions on the specified instance. @param request: ListAuthorizedUsersForInstanceRequest @param runtime: runtime options for this request RuntimeOptions @@ -19378,7 +19622,7 @@ def list_authorized_users_for_instance( request: dms_enterprise_20181101_models.ListAuthorizedUsersForInstanceRequest, ) -> dms_enterprise_20181101_models.ListAuthorizedUsersForInstanceResponse: """ - @summary 查询有实例权限的用户 + @summary Queries a list of users that have permissions on the specified instance. @param request: ListAuthorizedUsersForInstanceRequest @return: ListAuthorizedUsersForInstanceResponse @@ -19391,7 +19635,7 @@ async def list_authorized_users_for_instance_async( request: dms_enterprise_20181101_models.ListAuthorizedUsersForInstanceRequest, ) -> dms_enterprise_20181101_models.ListAuthorizedUsersForInstanceResponse: """ - @summary 查询有实例权限的用户 + @summary Queries a list of users that have permissions on the specified instance. @param request: ListAuthorizedUsersForInstanceRequest @return: ListAuthorizedUsersForInstanceResponse @@ -20505,7 +20749,7 @@ def list_data_lake_catalog_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListDataLakeCatalogResponse: """ - @summary 获取uc的数据库目录列表 + @summary Queries a list of data catalogs in a data lake. @param request: ListDataLakeCatalogRequest @param runtime: runtime options for this request RuntimeOptions @@ -20546,7 +20790,7 @@ async def list_data_lake_catalog_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListDataLakeCatalogResponse: """ - @summary 获取uc的数据库目录列表 + @summary Queries a list of data catalogs in a data lake. @param request: ListDataLakeCatalogRequest @param runtime: runtime options for this request RuntimeOptions @@ -20586,7 +20830,7 @@ def list_data_lake_catalog( request: dms_enterprise_20181101_models.ListDataLakeCatalogRequest, ) -> dms_enterprise_20181101_models.ListDataLakeCatalogResponse: """ - @summary 获取uc的数据库目录列表 + @summary Queries a list of data catalogs in a data lake. @param request: ListDataLakeCatalogRequest @return: ListDataLakeCatalogResponse @@ -20599,7 +20843,7 @@ async def list_data_lake_catalog_async( request: dms_enterprise_20181101_models.ListDataLakeCatalogRequest, ) -> dms_enterprise_20181101_models.ListDataLakeCatalogResponse: """ - @summary 获取uc的数据库目录列表 + @summary Queries a list of data catalogs in a data lake. @param request: ListDataLakeCatalogRequest @return: ListDataLakeCatalogResponse @@ -20613,7 +20857,7 @@ def list_data_lake_database_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListDataLakeDatabaseResponse: """ - @summary 获取数据库列表 + @summary Queries the list of databases in the data lake. @param request: ListDataLakeDatabaseRequest @param runtime: runtime options for this request RuntimeOptions @@ -20660,7 +20904,7 @@ async def list_data_lake_database_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListDataLakeDatabaseResponse: """ - @summary 获取数据库列表 + @summary Queries the list of databases in the data lake. @param request: ListDataLakeDatabaseRequest @param runtime: runtime options for this request RuntimeOptions @@ -20706,7 +20950,7 @@ def list_data_lake_database( request: dms_enterprise_20181101_models.ListDataLakeDatabaseRequest, ) -> dms_enterprise_20181101_models.ListDataLakeDatabaseResponse: """ - @summary 获取数据库列表 + @summary Queries the list of databases in the data lake. @param request: ListDataLakeDatabaseRequest @return: ListDataLakeDatabaseResponse @@ -20719,7 +20963,7 @@ async def list_data_lake_database_async( request: dms_enterprise_20181101_models.ListDataLakeDatabaseRequest, ) -> dms_enterprise_20181101_models.ListDataLakeDatabaseResponse: """ - @summary 获取数据库列表 + @summary Queries the list of databases in the data lake. @param request: ListDataLakeDatabaseRequest @return: ListDataLakeDatabaseResponse @@ -20733,7 +20977,7 @@ def list_data_lake_function_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListDataLakeFunctionResponse: """ - @summary 获取数据湖函数列表 + @summary Queries a list of functions in a data lake. @param request: ListDataLakeFunctionRequest @param runtime: runtime options for this request RuntimeOptions @@ -20782,7 +21026,7 @@ async def list_data_lake_function_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListDataLakeFunctionResponse: """ - @summary 获取数据湖函数列表 + @summary Queries a list of functions in a data lake. @param request: ListDataLakeFunctionRequest @param runtime: runtime options for this request RuntimeOptions @@ -20830,7 +21074,7 @@ def list_data_lake_function( request: dms_enterprise_20181101_models.ListDataLakeFunctionRequest, ) -> dms_enterprise_20181101_models.ListDataLakeFunctionResponse: """ - @summary 获取数据湖函数列表 + @summary Queries a list of functions in a data lake. @param request: ListDataLakeFunctionRequest @return: ListDataLakeFunctionResponse @@ -20843,7 +21087,7 @@ async def list_data_lake_function_async( request: dms_enterprise_20181101_models.ListDataLakeFunctionRequest, ) -> dms_enterprise_20181101_models.ListDataLakeFunctionResponse: """ - @summary 获取数据湖函数列表 + @summary Queries a list of functions in a data lake. @param request: ListDataLakeFunctionRequest @return: ListDataLakeFunctionResponse @@ -20857,7 +21101,7 @@ def list_data_lake_function_name_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListDataLakeFunctionNameResponse: """ - @summary 获取数据湖函数名列表 + @summary Gets a list of data lake function names. @param request: ListDataLakeFunctionNameRequest @param runtime: runtime options for this request RuntimeOptions @@ -20906,7 +21150,7 @@ async def list_data_lake_function_name_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListDataLakeFunctionNameResponse: """ - @summary 获取数据湖函数名列表 + @summary Gets a list of data lake function names. @param request: ListDataLakeFunctionNameRequest @param runtime: runtime options for this request RuntimeOptions @@ -20954,7 +21198,7 @@ def list_data_lake_function_name( request: dms_enterprise_20181101_models.ListDataLakeFunctionNameRequest, ) -> dms_enterprise_20181101_models.ListDataLakeFunctionNameResponse: """ - @summary 获取数据湖函数名列表 + @summary Gets a list of data lake function names. @param request: ListDataLakeFunctionNameRequest @return: ListDataLakeFunctionNameResponse @@ -20967,7 +21211,7 @@ async def list_data_lake_function_name_async( request: dms_enterprise_20181101_models.ListDataLakeFunctionNameRequest, ) -> dms_enterprise_20181101_models.ListDataLakeFunctionNameResponse: """ - @summary 获取数据湖函数名列表 + @summary Gets a list of data lake function names. @param request: ListDataLakeFunctionNameRequest @return: ListDataLakeFunctionNameResponse @@ -20981,7 +21225,7 @@ def list_data_lake_partition_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListDataLakePartitionResponse: """ - @summary 获取数据湖表分区列表 + @summary Queries a list of partitions of a table in a data lake. @param tmp_req: ListDataLakePartitionRequest @param runtime: runtime options for this request RuntimeOptions @@ -21038,7 +21282,7 @@ async def list_data_lake_partition_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListDataLakePartitionResponse: """ - @summary 获取数据湖表分区列表 + @summary Queries a list of partitions of a table in a data lake. @param tmp_req: ListDataLakePartitionRequest @param runtime: runtime options for this request RuntimeOptions @@ -21094,7 +21338,7 @@ def list_data_lake_partition( request: dms_enterprise_20181101_models.ListDataLakePartitionRequest, ) -> dms_enterprise_20181101_models.ListDataLakePartitionResponse: """ - @summary 获取数据湖表分区列表 + @summary Queries a list of partitions of a table in a data lake. @param request: ListDataLakePartitionRequest @return: ListDataLakePartitionResponse @@ -21107,7 +21351,7 @@ async def list_data_lake_partition_async( request: dms_enterprise_20181101_models.ListDataLakePartitionRequest, ) -> dms_enterprise_20181101_models.ListDataLakePartitionResponse: """ - @summary 获取数据湖表分区列表 + @summary Queries a list of partitions of a table in a data lake. @param request: ListDataLakePartitionRequest @return: ListDataLakePartitionResponse @@ -21121,7 +21365,7 @@ def list_data_lake_partition_by_filter_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListDataLakePartitionByFilterResponse: """ - @summary 根据筛选条件获取数据湖表分区列表 + @summary Queries a list of partitions of a table in a data lake based on filter conditions. @param request: ListDataLakePartitionByFilterRequest @param runtime: runtime options for this request RuntimeOptions @@ -21174,7 +21418,7 @@ async def list_data_lake_partition_by_filter_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListDataLakePartitionByFilterResponse: """ - @summary 根据筛选条件获取数据湖表分区列表 + @summary Queries a list of partitions of a table in a data lake based on filter conditions. @param request: ListDataLakePartitionByFilterRequest @param runtime: runtime options for this request RuntimeOptions @@ -21226,7 +21470,7 @@ def list_data_lake_partition_by_filter( request: dms_enterprise_20181101_models.ListDataLakePartitionByFilterRequest, ) -> dms_enterprise_20181101_models.ListDataLakePartitionByFilterResponse: """ - @summary 根据筛选条件获取数据湖表分区列表 + @summary Queries a list of partitions of a table in a data lake based on filter conditions. @param request: ListDataLakePartitionByFilterRequest @return: ListDataLakePartitionByFilterResponse @@ -21239,7 +21483,7 @@ async def list_data_lake_partition_by_filter_async( request: dms_enterprise_20181101_models.ListDataLakePartitionByFilterRequest, ) -> dms_enterprise_20181101_models.ListDataLakePartitionByFilterResponse: """ - @summary 根据筛选条件获取数据湖表分区列表 + @summary Queries a list of partitions of a table in a data lake based on filter conditions. @param request: ListDataLakePartitionByFilterRequest @return: ListDataLakePartitionByFilterResponse @@ -21253,7 +21497,7 @@ def list_data_lake_partition_name_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListDataLakePartitionNameResponse: """ - @summary 获取数据湖表分区名列表 + @summary Queries a list of partition names of a table in a data lake. @param request: ListDataLakePartitionNameRequest @param runtime: runtime options for this request RuntimeOptions @@ -21302,7 +21546,7 @@ async def list_data_lake_partition_name_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListDataLakePartitionNameResponse: """ - @summary 获取数据湖表分区名列表 + @summary Queries a list of partition names of a table in a data lake. @param request: ListDataLakePartitionNameRequest @param runtime: runtime options for this request RuntimeOptions @@ -21350,7 +21594,7 @@ def list_data_lake_partition_name( request: dms_enterprise_20181101_models.ListDataLakePartitionNameRequest, ) -> dms_enterprise_20181101_models.ListDataLakePartitionNameResponse: """ - @summary 获取数据湖表分区名列表 + @summary Queries a list of partition names of a table in a data lake. @param request: ListDataLakePartitionNameRequest @return: ListDataLakePartitionNameResponse @@ -21363,7 +21607,7 @@ async def list_data_lake_partition_name_async( request: dms_enterprise_20181101_models.ListDataLakePartitionNameRequest, ) -> dms_enterprise_20181101_models.ListDataLakePartitionNameResponse: """ - @summary 获取数据湖表分区名列表 + @summary Queries a list of partition names of a table in a data lake. @param request: ListDataLakePartitionNameRequest @return: ListDataLakePartitionNameResponse @@ -21377,7 +21621,7 @@ def list_data_lake_table_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListDataLakeTableResponse: """ - @summary 获取数据湖表列表 + @summary Queries a list of tables in a data lake. @param request: ListDataLakeTableRequest @param runtime: runtime options for this request RuntimeOptions @@ -21428,7 +21672,7 @@ async def list_data_lake_table_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListDataLakeTableResponse: """ - @summary 获取数据湖表列表 + @summary Queries a list of tables in a data lake. @param request: ListDataLakeTableRequest @param runtime: runtime options for this request RuntimeOptions @@ -21478,7 +21722,7 @@ def list_data_lake_table( request: dms_enterprise_20181101_models.ListDataLakeTableRequest, ) -> dms_enterprise_20181101_models.ListDataLakeTableResponse: """ - @summary 获取数据湖表列表 + @summary Queries a list of tables in a data lake. @param request: ListDataLakeTableRequest @return: ListDataLakeTableResponse @@ -21491,7 +21735,7 @@ async def list_data_lake_table_async( request: dms_enterprise_20181101_models.ListDataLakeTableRequest, ) -> dms_enterprise_20181101_models.ListDataLakeTableResponse: """ - @summary 获取数据湖表列表 + @summary Queries a list of tables in a data lake. @param request: ListDataLakeTableRequest @return: ListDataLakeTableResponse @@ -21505,7 +21749,7 @@ def list_data_lake_table_name_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListDataLakeTableNameResponse: """ - @summary 获取数据湖表名列表 + @summary Queries a list of names of tables in a data lake. @param request: ListDataLakeTableNameRequest @param runtime: runtime options for this request RuntimeOptions @@ -21556,7 +21800,7 @@ async def list_data_lake_table_name_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListDataLakeTableNameResponse: """ - @summary 获取数据湖表名列表 + @summary Queries a list of names of tables in a data lake. @param request: ListDataLakeTableNameRequest @param runtime: runtime options for this request RuntimeOptions @@ -21606,7 +21850,7 @@ def list_data_lake_table_name( request: dms_enterprise_20181101_models.ListDataLakeTableNameRequest, ) -> dms_enterprise_20181101_models.ListDataLakeTableNameResponse: """ - @summary 获取数据湖表名列表 + @summary Queries a list of names of tables in a data lake. @param request: ListDataLakeTableNameRequest @return: ListDataLakeTableNameResponse @@ -21619,7 +21863,7 @@ async def list_data_lake_table_name_async( request: dms_enterprise_20181101_models.ListDataLakeTableNameRequest, ) -> dms_enterprise_20181101_models.ListDataLakeTableNameResponse: """ - @summary 获取数据湖表名列表 + @summary Queries a list of names of tables in a data lake. @param request: ListDataLakeTableNameRequest @return: ListDataLakeTableNameResponse @@ -21633,7 +21877,7 @@ def list_data_lake_tablebase_info_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListDataLakeTablebaseInfoResponse: """ - @summary 获取表信息 + @summary Queries basic information about tables in the data lake. @param request: ListDataLakeTablebaseInfoRequest @param runtime: runtime options for this request RuntimeOptions @@ -21682,7 +21926,7 @@ async def list_data_lake_tablebase_info_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListDataLakeTablebaseInfoResponse: """ - @summary 获取表信息 + @summary Queries basic information about tables in the data lake. @param request: ListDataLakeTablebaseInfoRequest @param runtime: runtime options for this request RuntimeOptions @@ -21730,7 +21974,7 @@ def list_data_lake_tablebase_info( request: dms_enterprise_20181101_models.ListDataLakeTablebaseInfoRequest, ) -> dms_enterprise_20181101_models.ListDataLakeTablebaseInfoResponse: """ - @summary 获取表信息 + @summary Queries basic information about tables in the data lake. @param request: ListDataLakeTablebaseInfoRequest @return: ListDataLakeTablebaseInfoResponse @@ -21743,7 +21987,7 @@ async def list_data_lake_tablebase_info_async( request: dms_enterprise_20181101_models.ListDataLakeTablebaseInfoRequest, ) -> dms_enterprise_20181101_models.ListDataLakeTablebaseInfoResponse: """ - @summary 获取表信息 + @summary Queries basic information about tables in the data lake. @param request: ListDataLakeTablebaseInfoRequest @return: ListDataLakeTablebaseInfoResponse @@ -23353,7 +23597,7 @@ def list_meta_category_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListMetaCategoryResponse: """ - @summary 获取资产类目列表 + @summary Queries a list of categories @param request: ListMetaCategoryRequest @param runtime: runtime options for this request RuntimeOptions @@ -23394,7 +23638,7 @@ async def list_meta_category_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListMetaCategoryResponse: """ - @summary 获取资产类目列表 + @summary Queries a list of categories @param request: ListMetaCategoryRequest @param runtime: runtime options for this request RuntimeOptions @@ -23434,7 +23678,7 @@ def list_meta_category( request: dms_enterprise_20181101_models.ListMetaCategoryRequest, ) -> dms_enterprise_20181101_models.ListMetaCategoryResponse: """ - @summary 获取资产类目列表 + @summary Queries a list of categories @param request: ListMetaCategoryRequest @return: ListMetaCategoryResponse @@ -23447,7 +23691,7 @@ async def list_meta_category_async( request: dms_enterprise_20181101_models.ListMetaCategoryRequest, ) -> dms_enterprise_20181101_models.ListMetaCategoryResponse: """ - @summary 获取资产类目列表 + @summary Queries a list of categories @param request: ListMetaCategoryRequest @return: ListMetaCategoryResponse @@ -24361,7 +24605,7 @@ def list_sensitive_column_info_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListSensitiveColumnInfoResponse: """ - @summary 获取敏感字段信息 + @summary Queries the information about a sensitive field. The information includes the masking algorithm ID, masking algorithm name, and field security level. @param request: ListSensitiveColumnInfoRequest @param runtime: runtime options for this request RuntimeOptions @@ -24408,7 +24652,7 @@ async def list_sensitive_column_info_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListSensitiveColumnInfoResponse: """ - @summary 获取敏感字段信息 + @summary Queries the information about a sensitive field. The information includes the masking algorithm ID, masking algorithm name, and field security level. @param request: ListSensitiveColumnInfoRequest @param runtime: runtime options for this request RuntimeOptions @@ -24454,7 +24698,7 @@ def list_sensitive_column_info( request: dms_enterprise_20181101_models.ListSensitiveColumnInfoRequest, ) -> dms_enterprise_20181101_models.ListSensitiveColumnInfoResponse: """ - @summary 获取敏感字段信息 + @summary Queries the information about a sensitive field. The information includes the masking algorithm ID, masking algorithm name, and field security level. @param request: ListSensitiveColumnInfoRequest @return: ListSensitiveColumnInfoResponse @@ -24467,7 +24711,7 @@ async def list_sensitive_column_info_async( request: dms_enterprise_20181101_models.ListSensitiveColumnInfoRequest, ) -> dms_enterprise_20181101_models.ListSensitiveColumnInfoResponse: """ - @summary 获取敏感字段信息 + @summary Queries the information about a sensitive field. The information includes the masking algorithm ID, masking algorithm name, and field security level. @param request: ListSensitiveColumnInfoRequest @return: ListSensitiveColumnInfoResponse @@ -25045,7 +25289,7 @@ def list_table_columns_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListTableColumnsResponse: """ - @summary 获取表字段信息 + @summary Queries the details about fields in a table. @param request: ListTableColumnsRequest @param runtime: runtime options for this request RuntimeOptions @@ -25086,7 +25330,7 @@ async def list_table_columns_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListTableColumnsResponse: """ - @summary 获取表字段信息 + @summary Queries the details about fields in a table. @param request: ListTableColumnsRequest @param runtime: runtime options for this request RuntimeOptions @@ -25126,7 +25370,7 @@ def list_table_columns( request: dms_enterprise_20181101_models.ListTableColumnsRequest, ) -> dms_enterprise_20181101_models.ListTableColumnsResponse: """ - @summary 获取表字段信息 + @summary Queries the details about fields in a table. @param request: ListTableColumnsRequest @return: ListTableColumnsResponse @@ -25139,7 +25383,7 @@ async def list_table_columns_async( request: dms_enterprise_20181101_models.ListTableColumnsRequest, ) -> dms_enterprise_20181101_models.ListTableColumnsResponse: """ - @summary 获取表字段信息 + @summary Queries the details about fields in a table. @param request: ListTableColumnsRequest @return: ListTableColumnsResponse @@ -25281,7 +25525,7 @@ def list_tables_in_category_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListTablesInCategoryResponse: """ - @summary 获取类目下的表列表 + @summary Obtains the list of tables in a category. @param request: ListTablesInCategoryRequest @param runtime: runtime options for this request RuntimeOptions @@ -25322,7 +25566,7 @@ async def list_tables_in_category_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListTablesInCategoryResponse: """ - @summary 获取类目下的表列表 + @summary Obtains the list of tables in a category. @param request: ListTablesInCategoryRequest @param runtime: runtime options for this request RuntimeOptions @@ -25362,7 +25606,7 @@ def list_tables_in_category( request: dms_enterprise_20181101_models.ListTablesInCategoryRequest, ) -> dms_enterprise_20181101_models.ListTablesInCategoryResponse: """ - @summary 获取类目下的表列表 + @summary Obtains the list of tables in a category. @param request: ListTablesInCategoryRequest @return: ListTablesInCategoryResponse @@ -25375,7 +25619,7 @@ async def list_tables_in_category_async( request: dms_enterprise_20181101_models.ListTablesInCategoryRequest, ) -> dms_enterprise_20181101_models.ListTablesInCategoryResponse: """ - @summary 获取类目下的表列表 + @summary Obtains the list of tables in a category. @param request: ListTablesInCategoryRequest @return: ListTablesInCategoryResponse @@ -26251,6 +26495,134 @@ async def list_tasks_in_task_flow_async( runtime = util_models.RuntimeOptions() return await self.list_tasks_in_task_flow_with_options_async(request, runtime) + def list_user_owned_resources_with_options( + self, + request: dms_enterprise_20181101_models.ListUserOwnedResourcesRequest, + runtime: util_models.RuntimeOptions, + ) -> dms_enterprise_20181101_models.ListUserOwnedResourcesResponse: + """ + @summary Obtains + + @param request: ListUserOwnedResourcesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: ListUserOwnedResourcesResponse + """ + UtilClient.validate_model(request) + query = {} + if not UtilClient.is_unset(request.database_name): + query['DatabaseName'] = request.database_name + if not UtilClient.is_unset(request.db_type): + query['DbType'] = request.db_type + if not UtilClient.is_unset(request.env_type): + query['EnvType'] = request.env_type + if not UtilClient.is_unset(request.logic): + query['Logic'] = request.logic + if not UtilClient.is_unset(request.owner_type): + query['OwnerType'] = request.owner_type + if not UtilClient.is_unset(request.page_number): + query['PageNumber'] = request.page_number + if not UtilClient.is_unset(request.page_size): + query['PageSize'] = request.page_size + if not UtilClient.is_unset(request.tid): + query['Tid'] = request.tid + if not UtilClient.is_unset(request.user_id): + query['UserId'] = request.user_id + req = open_api_models.OpenApiRequest( + query=OpenApiUtilClient.query(query) + ) + params = open_api_models.Params( + action='ListUserOwnedResources', + version='2018-11-01', + protocol='HTTPS', + pathname='/', + method='POST', + auth_type='AK', + style='RPC', + req_body_type='formData', + body_type='json' + ) + return TeaCore.from_map( + dms_enterprise_20181101_models.ListUserOwnedResourcesResponse(), + self.call_api(params, req, runtime) + ) + + async def list_user_owned_resources_with_options_async( + self, + request: dms_enterprise_20181101_models.ListUserOwnedResourcesRequest, + runtime: util_models.RuntimeOptions, + ) -> dms_enterprise_20181101_models.ListUserOwnedResourcesResponse: + """ + @summary Obtains + + @param request: ListUserOwnedResourcesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: ListUserOwnedResourcesResponse + """ + UtilClient.validate_model(request) + query = {} + if not UtilClient.is_unset(request.database_name): + query['DatabaseName'] = request.database_name + if not UtilClient.is_unset(request.db_type): + query['DbType'] = request.db_type + if not UtilClient.is_unset(request.env_type): + query['EnvType'] = request.env_type + if not UtilClient.is_unset(request.logic): + query['Logic'] = request.logic + if not UtilClient.is_unset(request.owner_type): + query['OwnerType'] = request.owner_type + if not UtilClient.is_unset(request.page_number): + query['PageNumber'] = request.page_number + if not UtilClient.is_unset(request.page_size): + query['PageSize'] = request.page_size + if not UtilClient.is_unset(request.tid): + query['Tid'] = request.tid + if not UtilClient.is_unset(request.user_id): + query['UserId'] = request.user_id + req = open_api_models.OpenApiRequest( + query=OpenApiUtilClient.query(query) + ) + params = open_api_models.Params( + action='ListUserOwnedResources', + version='2018-11-01', + protocol='HTTPS', + pathname='/', + method='POST', + auth_type='AK', + style='RPC', + req_body_type='formData', + body_type='json' + ) + return TeaCore.from_map( + dms_enterprise_20181101_models.ListUserOwnedResourcesResponse(), + await self.call_api_async(params, req, runtime) + ) + + def list_user_owned_resources( + self, + request: dms_enterprise_20181101_models.ListUserOwnedResourcesRequest, + ) -> dms_enterprise_20181101_models.ListUserOwnedResourcesResponse: + """ + @summary Obtains + + @param request: ListUserOwnedResourcesRequest + @return: ListUserOwnedResourcesResponse + """ + runtime = util_models.RuntimeOptions() + return self.list_user_owned_resources_with_options(request, runtime) + + async def list_user_owned_resources_async( + self, + request: dms_enterprise_20181101_models.ListUserOwnedResourcesRequest, + ) -> dms_enterprise_20181101_models.ListUserOwnedResourcesResponse: + """ + @summary Obtains + + @param request: ListUserOwnedResourcesRequest + @return: ListUserOwnedResourcesResponse + """ + runtime = util_models.RuntimeOptions() + return await self.list_user_owned_resources_with_options_async(request, runtime) + def list_user_permissions_with_options( self, request: dms_enterprise_20181101_models.ListUserPermissionsRequest, @@ -26801,7 +27173,7 @@ def list_workspaces_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListWorkspacesResponse: """ - @summary 搜索工作空间列表 + @summary Queries a list of workspaces of the tenant. @param request: ListWorkspacesRequest @param runtime: runtime options for this request RuntimeOptions @@ -26852,7 +27224,7 @@ async def list_workspaces_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ListWorkspacesResponse: """ - @summary 搜索工作空间列表 + @summary Queries a list of workspaces of the tenant. @param request: ListWorkspacesRequest @param runtime: runtime options for this request RuntimeOptions @@ -26902,7 +27274,7 @@ def list_workspaces( request: dms_enterprise_20181101_models.ListWorkspacesRequest, ) -> dms_enterprise_20181101_models.ListWorkspacesResponse: """ - @summary 搜索工作空间列表 + @summary Queries a list of workspaces of the tenant. @param request: ListWorkspacesRequest @return: ListWorkspacesResponse @@ -26915,7 +27287,7 @@ async def list_workspaces_async( request: dms_enterprise_20181101_models.ListWorkspacesRequest, ) -> dms_enterprise_20181101_models.ListWorkspacesResponse: """ - @summary 搜索工作空间列表 + @summary Queries a list of workspaces of the tenant. @param request: ListWorkspacesRequest @return: ListWorkspacesResponse @@ -27269,7 +27641,7 @@ def modify_instance_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ModifyInstanceResponse: """ - @summary 修改实例信息,同时检查该实例连通性 + @summary Modifies the basic and advanced information about a database instance in Data Management (DMS). The basic information includes the hosting mode of the instance, the instance account username and password, and features that are enabled for the instance. The advanced information includes the environment type, the instance name in DMS, and the timeout period for querying and exporting data. @param request: ModifyInstanceRequest @param runtime: runtime options for this request RuntimeOptions @@ -27362,7 +27734,7 @@ async def modify_instance_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.ModifyInstanceResponse: """ - @summary 修改实例信息,同时检查该实例连通性 + @summary Modifies the basic and advanced information about a database instance in Data Management (DMS). The basic information includes the hosting mode of the instance, the instance account username and password, and features that are enabled for the instance. The advanced information includes the environment type, the instance name in DMS, and the timeout period for querying and exporting data. @param request: ModifyInstanceRequest @param runtime: runtime options for this request RuntimeOptions @@ -27454,7 +27826,7 @@ def modify_instance( request: dms_enterprise_20181101_models.ModifyInstanceRequest, ) -> dms_enterprise_20181101_models.ModifyInstanceResponse: """ - @summary 修改实例信息,同时检查该实例连通性 + @summary Modifies the basic and advanced information about a database instance in Data Management (DMS). The basic information includes the hosting mode of the instance, the instance account username and password, and features that are enabled for the instance. The advanced information includes the environment type, the instance name in DMS, and the timeout period for querying and exporting data. @param request: ModifyInstanceRequest @return: ModifyInstanceResponse @@ -27467,7 +27839,7 @@ async def modify_instance_async( request: dms_enterprise_20181101_models.ModifyInstanceRequest, ) -> dms_enterprise_20181101_models.ModifyInstanceResponse: """ - @summary 修改实例信息,同时检查该实例连通性 + @summary Modifies the basic and advanced information about a database instance in Data Management (DMS). The basic information includes the hosting mode of the instance, the instance account username and password, and features that are enabled for the instance. The advanced information includes the environment type, the instance name in DMS, and the timeout period for querying and exporting data. @param request: ModifyInstanceRequest @return: ModifyInstanceResponse @@ -27685,9 +28057,9 @@ def optimize_sql_by_meta_agent_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.OptimizeSqlByMetaAgentResponse: """ - @summary 根据用户提供的SQL数据库ID,分析SQL性能并优化 + @summary Analyzes and optimizes the SQL statements in the specified database. - @description 根据用户提供的SQL数据库ID,分析SQL性能并优化 + @description You can call this operation to analyze and optimize the SQL statements in the specified database. @param request: OptimizeSqlByMetaAgentRequest @param runtime: runtime options for this request RuntimeOptions @@ -27728,9 +28100,9 @@ async def optimize_sql_by_meta_agent_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.OptimizeSqlByMetaAgentResponse: """ - @summary 根据用户提供的SQL数据库ID,分析SQL性能并优化 + @summary Analyzes and optimizes the SQL statements in the specified database. - @description 根据用户提供的SQL数据库ID,分析SQL性能并优化 + @description You can call this operation to analyze and optimize the SQL statements in the specified database. @param request: OptimizeSqlByMetaAgentRequest @param runtime: runtime options for this request RuntimeOptions @@ -27770,9 +28142,9 @@ def optimize_sql_by_meta_agent( request: dms_enterprise_20181101_models.OptimizeSqlByMetaAgentRequest, ) -> dms_enterprise_20181101_models.OptimizeSqlByMetaAgentResponse: """ - @summary 根据用户提供的SQL数据库ID,分析SQL性能并优化 + @summary Analyzes and optimizes the SQL statements in the specified database. - @description 根据用户提供的SQL数据库ID,分析SQL性能并优化 + @description You can call this operation to analyze and optimize the SQL statements in the specified database. @param request: OptimizeSqlByMetaAgentRequest @return: OptimizeSqlByMetaAgentResponse @@ -27785,9 +28157,9 @@ async def optimize_sql_by_meta_agent_async( request: dms_enterprise_20181101_models.OptimizeSqlByMetaAgentRequest, ) -> dms_enterprise_20181101_models.OptimizeSqlByMetaAgentResponse: """ - @summary 根据用户提供的SQL数据库ID,分析SQL性能并优化 + @summary Analyzes and optimizes the SQL statements in the specified database. - @description 根据用户提供的SQL数据库ID,分析SQL性能并优化 + @description You can call this operation to analyze and optimize the SQL statements in the specified database. @param request: OptimizeSqlByMetaAgentRequest @return: OptimizeSqlByMetaAgentResponse @@ -27917,7 +28289,7 @@ def pause_data_export_job_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.PauseDataExportJobResponse: """ - @summary 终止数据导出任务 + @summary Terminates a SQL result set export task. @param request: PauseDataExportJobRequest @param runtime: runtime options for this request RuntimeOptions @@ -27956,7 +28328,7 @@ async def pause_data_export_job_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.PauseDataExportJobResponse: """ - @summary 终止数据导出任务 + @summary Terminates a SQL result set export task. @param request: PauseDataExportJobRequest @param runtime: runtime options for this request RuntimeOptions @@ -27994,7 +28366,7 @@ def pause_data_export_job( request: dms_enterprise_20181101_models.PauseDataExportJobRequest, ) -> dms_enterprise_20181101_models.PauseDataExportJobResponse: """ - @summary 终止数据导出任务 + @summary Terminates a SQL result set export task. @param request: PauseDataExportJobRequest @return: PauseDataExportJobResponse @@ -28007,7 +28379,7 @@ async def pause_data_export_job_async( request: dms_enterprise_20181101_models.PauseDataExportJobRequest, ) -> dms_enterprise_20181101_models.PauseDataExportJobResponse: """ - @summary 终止数据导出任务 + @summary Terminates a SQL result set export task. @param request: PauseDataExportJobRequest @return: PauseDataExportJobResponse @@ -28021,7 +28393,7 @@ def preview_workflow_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.PreviewWorkflowResponse: """ - @summary 创建工单审批流 + @summary Previews the approval process of a ticket before the ticket is submitted. @param request: PreviewWorkflowRequest @param runtime: runtime options for this request RuntimeOptions @@ -28058,7 +28430,7 @@ async def preview_workflow_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.PreviewWorkflowResponse: """ - @summary 创建工单审批流 + @summary Previews the approval process of a ticket before the ticket is submitted. @param request: PreviewWorkflowRequest @param runtime: runtime options for this request RuntimeOptions @@ -28094,7 +28466,7 @@ def preview_workflow( request: dms_enterprise_20181101_models.PreviewWorkflowRequest, ) -> dms_enterprise_20181101_models.PreviewWorkflowResponse: """ - @summary 创建工单审批流 + @summary Previews the approval process of a ticket before the ticket is submitted. @param request: PreviewWorkflowRequest @return: PreviewWorkflowResponse @@ -28107,7 +28479,7 @@ async def preview_workflow_async( request: dms_enterprise_20181101_models.PreviewWorkflowRequest, ) -> dms_enterprise_20181101_models.PreviewWorkflowResponse: """ - @summary 创建工单审批流 + @summary Previews the approval process of a ticket before the ticket is submitted. @param request: PreviewWorkflowRequest @return: PreviewWorkflowResponse @@ -29117,7 +29489,7 @@ def remove_data_export_job_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.RemoveDataExportJobResponse: """ - @summary 删除数据导出任务 + @summary Deletes a data export task. @param request: RemoveDataExportJobRequest @param runtime: runtime options for this request RuntimeOptions @@ -29156,7 +29528,7 @@ async def remove_data_export_job_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.RemoveDataExportJobResponse: """ - @summary 删除数据导出任务 + @summary Deletes a data export task. @param request: RemoveDataExportJobRequest @param runtime: runtime options for this request RuntimeOptions @@ -29194,7 +29566,7 @@ def remove_data_export_job( request: dms_enterprise_20181101_models.RemoveDataExportJobRequest, ) -> dms_enterprise_20181101_models.RemoveDataExportJobResponse: """ - @summary 删除数据导出任务 + @summary Deletes a data export task. @param request: RemoveDataExportJobRequest @return: RemoveDataExportJobResponse @@ -29207,7 +29579,7 @@ async def remove_data_export_job_async( request: dms_enterprise_20181101_models.RemoveDataExportJobRequest, ) -> dms_enterprise_20181101_models.RemoveDataExportJobResponse: """ - @summary 删除数据导出任务 + @summary Deletes a data export task. @param request: RemoveDataExportJobRequest @return: RemoveDataExportJobResponse @@ -29221,7 +29593,7 @@ def remove_table_from_category_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.RemoveTableFromCategoryResponse: """ - @summary 从资产类目移除表 + @summary Removes table from the asset category. @param request: RemoveTableFromCategoryRequest @param runtime: runtime options for this request RuntimeOptions @@ -29264,7 +29636,7 @@ async def remove_table_from_category_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.RemoveTableFromCategoryResponse: """ - @summary 从资产类目移除表 + @summary Removes table from the asset category. @param request: RemoveTableFromCategoryRequest @param runtime: runtime options for this request RuntimeOptions @@ -29306,7 +29678,7 @@ def remove_table_from_category( request: dms_enterprise_20181101_models.RemoveTableFromCategoryRequest, ) -> dms_enterprise_20181101_models.RemoveTableFromCategoryResponse: """ - @summary 从资产类目移除表 + @summary Removes table from the asset category. @param request: RemoveTableFromCategoryRequest @return: RemoveTableFromCategoryResponse @@ -29319,7 +29691,7 @@ async def remove_table_from_category_async( request: dms_enterprise_20181101_models.RemoveTableFromCategoryRequest, ) -> dms_enterprise_20181101_models.RemoveTableFromCategoryResponse: """ - @summary 从资产类目移除表 + @summary Removes table from the asset category. @param request: RemoveTableFromCategoryRequest @return: RemoveTableFromCategoryResponse @@ -29445,7 +29817,7 @@ def restart_data_export_job_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.RestartDataExportJobResponse: """ - @summary 重启数据导出任务 + @summary Restarts a SQL result set export task. @param request: RestartDataExportJobRequest @param runtime: runtime options for this request RuntimeOptions @@ -29484,7 +29856,7 @@ async def restart_data_export_job_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.RestartDataExportJobResponse: """ - @summary 重启数据导出任务 + @summary Restarts a SQL result set export task. @param request: RestartDataExportJobRequest @param runtime: runtime options for this request RuntimeOptions @@ -29522,7 +29894,7 @@ def restart_data_export_job( request: dms_enterprise_20181101_models.RestartDataExportJobRequest, ) -> dms_enterprise_20181101_models.RestartDataExportJobResponse: """ - @summary 重启数据导出任务 + @summary Restarts a SQL result set export task. @param request: RestartDataExportJobRequest @return: RestartDataExportJobResponse @@ -29535,7 +29907,7 @@ async def restart_data_export_job_async( request: dms_enterprise_20181101_models.RestartDataExportJobRequest, ) -> dms_enterprise_20181101_models.RestartDataExportJobResponse: """ - @summary 重启数据导出任务 + @summary Restarts a SQL result set export task. @param request: RestartDataExportJobRequest @return: RestartDataExportJobResponse @@ -30521,7 +30893,7 @@ def set_workflow_extra_info_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.SetWorkflowExtraInfoResponse: """ - @summary 修改审批流额外信息 + @summary Configures whether the operation buttons, such as Agree, Revoke, and Sign, are displayed in the ticket approval section of the DMS console. @param request: SetWorkflowExtraInfoRequest @param runtime: runtime options for this request RuntimeOptions @@ -30572,7 +30944,7 @@ async def set_workflow_extra_info_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.SetWorkflowExtraInfoResponse: """ - @summary 修改审批流额外信息 + @summary Configures whether the operation buttons, such as Agree, Revoke, and Sign, are displayed in the ticket approval section of the DMS console. @param request: SetWorkflowExtraInfoRequest @param runtime: runtime options for this request RuntimeOptions @@ -30622,7 +30994,7 @@ def set_workflow_extra_info( request: dms_enterprise_20181101_models.SetWorkflowExtraInfoRequest, ) -> dms_enterprise_20181101_models.SetWorkflowExtraInfoResponse: """ - @summary 修改审批流额外信息 + @summary Configures whether the operation buttons, such as Agree, Revoke, and Sign, are displayed in the ticket approval section of the DMS console. @param request: SetWorkflowExtraInfoRequest @return: SetWorkflowExtraInfoResponse @@ -30635,7 +31007,7 @@ async def set_workflow_extra_info_async( request: dms_enterprise_20181101_models.SetWorkflowExtraInfoRequest, ) -> dms_enterprise_20181101_models.SetWorkflowExtraInfoResponse: """ - @summary 修改审批流额外信息 + @summary Configures whether the operation buttons, such as Agree, Revoke, and Sign, are displayed in the ticket approval section of the DMS console. @param request: SetWorkflowExtraInfoRequest @return: SetWorkflowExtraInfoResponse @@ -31185,7 +31557,7 @@ def suspend_data_export_job_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.SuspendDataExportJobResponse: """ - @summary 中断数据导出任务 + @summary Suspends an ongoing or scheduled SQL result set export task. @param request: SuspendDataExportJobRequest @param runtime: runtime options for this request RuntimeOptions @@ -31224,7 +31596,7 @@ async def suspend_data_export_job_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.SuspendDataExportJobResponse: """ - @summary 中断数据导出任务 + @summary Suspends an ongoing or scheduled SQL result set export task. @param request: SuspendDataExportJobRequest @param runtime: runtime options for this request RuntimeOptions @@ -31262,7 +31634,7 @@ def suspend_data_export_job( request: dms_enterprise_20181101_models.SuspendDataExportJobRequest, ) -> dms_enterprise_20181101_models.SuspendDataExportJobResponse: """ - @summary 中断数据导出任务 + @summary Suspends an ongoing or scheduled SQL result set export task. @param request: SuspendDataExportJobRequest @return: SuspendDataExportJobResponse @@ -31275,7 +31647,7 @@ async def suspend_data_export_job_async( request: dms_enterprise_20181101_models.SuspendDataExportJobRequest, ) -> dms_enterprise_20181101_models.SuspendDataExportJobResponse: """ - @summary 中断数据导出任务 + @summary Suspends an ongoing or scheduled SQL result set export task. @param request: SuspendDataExportJobRequest @return: SuspendDataExportJobResponse @@ -31609,7 +31981,12 @@ def try_run_task_flow_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.TryRunTaskFlowResponse: """ - @summary 任务编排试运行 + @summary Tests the task flow of task orchestration. + + @description ### [](#)Usage notes + An edge can be created only when the following conditions are met: + 1. The start and end nodes of the edge exist in the directed acyclic graph (DAG) of the task flow specified by DagId. + 2. After the edge is created, the DAG does not contain loops. @param request: TryRunTaskFlowRequest @param runtime: runtime options for this request RuntimeOptions @@ -31644,7 +32021,12 @@ async def try_run_task_flow_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.TryRunTaskFlowResponse: """ - @summary 任务编排试运行 + @summary Tests the task flow of task orchestration. + + @description ### [](#)Usage notes + An edge can be created only when the following conditions are met: + 1. The start and end nodes of the edge exist in the directed acyclic graph (DAG) of the task flow specified by DagId. + 2. After the edge is created, the DAG does not contain loops. @param request: TryRunTaskFlowRequest @param runtime: runtime options for this request RuntimeOptions @@ -31678,7 +32060,12 @@ def try_run_task_flow( request: dms_enterprise_20181101_models.TryRunTaskFlowRequest, ) -> dms_enterprise_20181101_models.TryRunTaskFlowResponse: """ - @summary 任务编排试运行 + @summary Tests the task flow of task orchestration. + + @description ### [](#)Usage notes + An edge can be created only when the following conditions are met: + 1. The start and end nodes of the edge exist in the directed acyclic graph (DAG) of the task flow specified by DagId. + 2. After the edge is created, the DAG does not contain loops. @param request: TryRunTaskFlowRequest @return: TryRunTaskFlowResponse @@ -31691,7 +32078,12 @@ async def try_run_task_flow_async( request: dms_enterprise_20181101_models.TryRunTaskFlowRequest, ) -> dms_enterprise_20181101_models.TryRunTaskFlowResponse: """ - @summary 任务编排试运行 + @summary Tests the task flow of task orchestration. + + @description ### [](#)Usage notes + An edge can be created only when the following conditions are met: + 1. The start and end nodes of the edge exist in the directed acyclic graph (DAG) of the task flow specified by DagId. + 2. After the edge is created, the DAG does not contain loops. @param request: TryRunTaskFlowRequest @return: TryRunTaskFlowResponse @@ -31705,7 +32097,7 @@ def update_abac_policy_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.UpdateAbacPolicyResponse: """ - @summary 更新权限策略 + @summary Updates the name, description, or content of a policy. @param request: UpdateAbacPolicyRequest @param runtime: runtime options for this request RuntimeOptions @@ -31748,7 +32140,7 @@ async def update_abac_policy_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.UpdateAbacPolicyResponse: """ - @summary 更新权限策略 + @summary Updates the name, description, or content of a policy. @param request: UpdateAbacPolicyRequest @param runtime: runtime options for this request RuntimeOptions @@ -31790,7 +32182,7 @@ def update_abac_policy( request: dms_enterprise_20181101_models.UpdateAbacPolicyRequest, ) -> dms_enterprise_20181101_models.UpdateAbacPolicyResponse: """ - @summary 更新权限策略 + @summary Updates the name, description, or content of a policy. @param request: UpdateAbacPolicyRequest @return: UpdateAbacPolicyResponse @@ -31803,7 +32195,7 @@ async def update_abac_policy_async( request: dms_enterprise_20181101_models.UpdateAbacPolicyRequest, ) -> dms_enterprise_20181101_models.UpdateAbacPolicyResponse: """ - @summary 更新权限策略 + @summary Updates the name, description, or content of a policy. @param request: UpdateAbacPolicyRequest @return: UpdateAbacPolicyResponse @@ -31933,7 +32325,7 @@ def update_data_lake_database_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.UpdateDataLakeDatabaseResponse: """ - @summary 更新湖仓数据库 + @summary Updates the information about a database in a data lakehouse. @param tmp_req: UpdateDataLakeDatabaseRequest @param runtime: runtime options for this request RuntimeOptions @@ -31986,7 +32378,7 @@ async def update_data_lake_database_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.UpdateDataLakeDatabaseResponse: """ - @summary 更新湖仓数据库 + @summary Updates the information about a database in a data lakehouse. @param tmp_req: UpdateDataLakeDatabaseRequest @param runtime: runtime options for this request RuntimeOptions @@ -32038,7 +32430,7 @@ def update_data_lake_database( request: dms_enterprise_20181101_models.UpdateDataLakeDatabaseRequest, ) -> dms_enterprise_20181101_models.UpdateDataLakeDatabaseResponse: """ - @summary 更新湖仓数据库 + @summary Updates the information about a database in a data lakehouse. @param request: UpdateDataLakeDatabaseRequest @return: UpdateDataLakeDatabaseResponse @@ -32051,7 +32443,7 @@ async def update_data_lake_database_async( request: dms_enterprise_20181101_models.UpdateDataLakeDatabaseRequest, ) -> dms_enterprise_20181101_models.UpdateDataLakeDatabaseResponse: """ - @summary 更新湖仓数据库 + @summary Updates the information about a database in a data lakehouse. @param request: UpdateDataLakeDatabaseRequest @return: UpdateDataLakeDatabaseResponse @@ -32065,7 +32457,7 @@ def update_data_lake_function_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.UpdateDataLakeFunctionResponse: """ - @summary 更新湖仓自定义函数 + @summary Updates a user-defined function in a data lakehouse. @param tmp_req: UpdateDataLakeFunctionRequest @param runtime: runtime options for this request RuntimeOptions @@ -32118,7 +32510,7 @@ async def update_data_lake_function_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.UpdateDataLakeFunctionResponse: """ - @summary 更新湖仓自定义函数 + @summary Updates a user-defined function in a data lakehouse. @param tmp_req: UpdateDataLakeFunctionRequest @param runtime: runtime options for this request RuntimeOptions @@ -32170,7 +32562,7 @@ def update_data_lake_function( request: dms_enterprise_20181101_models.UpdateDataLakeFunctionRequest, ) -> dms_enterprise_20181101_models.UpdateDataLakeFunctionResponse: """ - @summary 更新湖仓自定义函数 + @summary Updates a user-defined function in a data lakehouse. @param request: UpdateDataLakeFunctionRequest @return: UpdateDataLakeFunctionResponse @@ -32183,7 +32575,7 @@ async def update_data_lake_function_async( request: dms_enterprise_20181101_models.UpdateDataLakeFunctionRequest, ) -> dms_enterprise_20181101_models.UpdateDataLakeFunctionResponse: """ - @summary 更新湖仓自定义函数 + @summary Updates a user-defined function in a data lakehouse. @param request: UpdateDataLakeFunctionRequest @return: UpdateDataLakeFunctionResponse @@ -32197,7 +32589,7 @@ def update_data_lake_partition_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.UpdateDataLakePartitionResponse: """ - @summary 更新湖仓表分区 + @summary Updates the partition information of a table in a data lakehouse. @param tmp_req: UpdateDataLakePartitionRequest @param runtime: runtime options for this request RuntimeOptions @@ -32250,7 +32642,7 @@ async def update_data_lake_partition_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.UpdateDataLakePartitionResponse: """ - @summary 更新湖仓表分区 + @summary Updates the partition information of a table in a data lakehouse. @param tmp_req: UpdateDataLakePartitionRequest @param runtime: runtime options for this request RuntimeOptions @@ -32302,7 +32694,7 @@ def update_data_lake_partition( request: dms_enterprise_20181101_models.UpdateDataLakePartitionRequest, ) -> dms_enterprise_20181101_models.UpdateDataLakePartitionResponse: """ - @summary 更新湖仓表分区 + @summary Updates the partition information of a table in a data lakehouse. @param request: UpdateDataLakePartitionRequest @return: UpdateDataLakePartitionResponse @@ -32315,7 +32707,7 @@ async def update_data_lake_partition_async( request: dms_enterprise_20181101_models.UpdateDataLakePartitionRequest, ) -> dms_enterprise_20181101_models.UpdateDataLakePartitionResponse: """ - @summary 更新湖仓表分区 + @summary Updates the partition information of a table in a data lakehouse. @param request: UpdateDataLakePartitionRequest @return: UpdateDataLakePartitionResponse @@ -32329,7 +32721,7 @@ def update_data_lake_table_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.UpdateDataLakeTableResponse: """ - @summary 更新湖仓表信息 + @summary Updates the information about a table in a data lakehouse. @param tmp_req: UpdateDataLakeTableRequest @param runtime: runtime options for this request RuntimeOptions @@ -32382,7 +32774,7 @@ async def update_data_lake_table_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.UpdateDataLakeTableResponse: """ - @summary 更新湖仓表信息 + @summary Updates the information about a table in a data lakehouse. @param tmp_req: UpdateDataLakeTableRequest @param runtime: runtime options for this request RuntimeOptions @@ -32434,7 +32826,7 @@ def update_data_lake_table( request: dms_enterprise_20181101_models.UpdateDataLakeTableRequest, ) -> dms_enterprise_20181101_models.UpdateDataLakeTableResponse: """ - @summary 更新湖仓表信息 + @summary Updates the information about a table in a data lakehouse. @param request: UpdateDataLakeTableRequest @return: UpdateDataLakeTableResponse @@ -32447,7 +32839,7 @@ async def update_data_lake_table_async( request: dms_enterprise_20181101_models.UpdateDataLakeTableRequest, ) -> dms_enterprise_20181101_models.UpdateDataLakeTableResponse: """ - @summary 更新湖仓表信息 + @summary Updates the information about a table in a data lakehouse. @param request: UpdateDataLakeTableRequest @return: UpdateDataLakeTableResponse @@ -32661,7 +33053,7 @@ def update_meta_category_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.UpdateMetaCategoryResponse: """ - @summary 更新资产类目信息 + @summary Updates asset category information. @param request: UpdateMetaCategoryRequest @param runtime: runtime options for this request RuntimeOptions @@ -32700,7 +33092,7 @@ async def update_meta_category_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.UpdateMetaCategoryResponse: """ - @summary 更新资产类目信息 + @summary Updates asset category information. @param request: UpdateMetaCategoryRequest @param runtime: runtime options for this request RuntimeOptions @@ -32738,7 +33130,7 @@ def update_meta_category( request: dms_enterprise_20181101_models.UpdateMetaCategoryRequest, ) -> dms_enterprise_20181101_models.UpdateMetaCategoryResponse: """ - @summary 更新资产类目信息 + @summary Updates asset category information. @param request: UpdateMetaCategoryRequest @return: UpdateMetaCategoryResponse @@ -32751,7 +33143,7 @@ async def update_meta_category_async( request: dms_enterprise_20181101_models.UpdateMetaCategoryRequest, ) -> dms_enterprise_20181101_models.UpdateMetaCategoryResponse: """ - @summary 更新资产类目信息 + @summary Updates asset category information. @param request: UpdateMetaCategoryRequest @return: UpdateMetaCategoryResponse @@ -33325,7 +33717,9 @@ def update_task_content_v2with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.UpdateTaskContentV2Response: """ - @summary 大sql更新节点专用 + @summary Updates the node content in large SQL files. + + @description You can call this operation to modify node configurations. @param request: UpdateTaskContentV2Request @param runtime: runtime options for this request RuntimeOptions @@ -33364,7 +33758,9 @@ async def update_task_content_v2with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.UpdateTaskContentV2Response: """ - @summary 大sql更新节点专用 + @summary Updates the node content in large SQL files. + + @description You can call this operation to modify node configurations. @param request: UpdateTaskContentV2Request @param runtime: runtime options for this request RuntimeOptions @@ -33402,7 +33798,9 @@ def update_task_content_v2( request: dms_enterprise_20181101_models.UpdateTaskContentV2Request, ) -> dms_enterprise_20181101_models.UpdateTaskContentV2Response: """ - @summary 大sql更新节点专用 + @summary Updates the node content in large SQL files. + + @description You can call this operation to modify node configurations. @param request: UpdateTaskContentV2Request @return: UpdateTaskContentV2Response @@ -33415,7 +33813,9 @@ async def update_task_content_v2_async( request: dms_enterprise_20181101_models.UpdateTaskContentV2Request, ) -> dms_enterprise_20181101_models.UpdateTaskContentV2Response: """ - @summary 大sql更新节点专用 + @summary Updates the node content in large SQL files. + + @description You can call this operation to modify node configurations. @param request: UpdateTaskContentV2Request @return: UpdateTaskContentV2Response @@ -34933,7 +35333,7 @@ def update_workspace_with_options( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.UpdateWorkspaceResponse: """ - @summary 修改工作空间 + @summary Updates the information about a workspace. @param request: UpdateWorkspaceRequest @param runtime: runtime options for this request RuntimeOptions @@ -34976,7 +35376,7 @@ async def update_workspace_with_options_async( runtime: util_models.RuntimeOptions, ) -> dms_enterprise_20181101_models.UpdateWorkspaceResponse: """ - @summary 修改工作空间 + @summary Updates the information about a workspace. @param request: UpdateWorkspaceRequest @param runtime: runtime options for this request RuntimeOptions @@ -35018,7 +35418,7 @@ def update_workspace( request: dms_enterprise_20181101_models.UpdateWorkspaceRequest, ) -> dms_enterprise_20181101_models.UpdateWorkspaceResponse: """ - @summary 修改工作空间 + @summary Updates the information about a workspace. @param request: UpdateWorkspaceRequest @return: UpdateWorkspaceResponse @@ -35031,7 +35431,7 @@ async def update_workspace_async( request: dms_enterprise_20181101_models.UpdateWorkspaceRequest, ) -> dms_enterprise_20181101_models.UpdateWorkspaceResponse: """ - @summary 修改工作空间 + @summary Updates the information about a workspace. @param request: UpdateWorkspaceRequest @return: UpdateWorkspaceResponse diff --git a/dms-enterprise-20181101/alibabacloud_dms_enterprise20181101/models.py b/dms-enterprise-20181101/alibabacloud_dms_enterprise20181101/models.py index 89c787291..65e04843a 100644 --- a/dms-enterprise-20181101/alibabacloud_dms_enterprise20181101/models.py +++ b/dms-enterprise-20181101/alibabacloud_dms_enterprise20181101/models.py @@ -2031,11 +2031,32 @@ def __init__( resource_type: str = None, table_name: str = None, ): + # The database ID. Databases are divided into physical databases and logical databases. + # + # * To query the ID of a physical database, call the [ListDatabases](https://help.aliyun.com/document_detail/141873.html) or [SearchDatabase](https://help.aliyun.com/document_detail/141876.html) operation. + # * To query the ID of a logical database, call the [ListLogicDatabases](https://help.aliyun.com/document_detail/141874.html) or [SearchDatabase](https://help.aliyun.com/document_detail/141876.html) operation. + # + # > This parameter is required if the ResourceType parameter is set to META_DB, LOGIC_DB, META_TABLE, or LOGIC_TABLE. self.db_id = db_id + # The instance ID. You can call the [ListInstances](https://help.aliyun.com/document_detail/141936.html) or [GetInstance](https://help.aliyun.com/document_detail/141567.html) operation to query the instance ID. + # + # > This parameter is required if the ResourceType parameter is set to INSTANCE. self.instance_id = instance_id + # The permission types. self.permission_types = permission_types + # The type of the resource from which you want to remove tags. Valid values: + # + # * **INSTANCE**: instance + # * **LOGIC_DB**: logical database + # * **META_DB**: physical database + # * **LOGIC_TABLE**: logical table + # * **LOGIC_TABLE**: physical table + # # This parameter is required. self.resource_type = resource_type + # The table name. You can call the [ListTables](https://help.aliyun.com/document_detail/141878.html) operation to query the name of the table. + # + # > This parameter is required if the ResourceType parameter is set to META_TABLE or LOGIC_TABLE. self.table_name = table_name def validate(self): @@ -2081,10 +2102,17 @@ def __init__( template_id: int = None, tid: int = None, ): + # The resources that you want to add to the permission template. + # # This parameter is required. self.items = items + # The ID of the permission template. You can call the [CreateAuthorityTemplate](https://help.aliyun.com/document_detail/600705.html) operation to obtain the value of this parameter. + # # This parameter is required. self.template_id = template_id + # The ID of the tenant. + # + # > To view the tenant ID, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid def validate(self): @@ -2130,10 +2158,17 @@ def __init__( template_id: int = None, tid: int = None, ): + # The resources that you want to add to the permission template. + # # This parameter is required. self.items_shrink = items_shrink + # The ID of the permission template. You can call the [CreateAuthorityTemplate](https://help.aliyun.com/document_detail/600705.html) operation to obtain the value of this parameter. + # # This parameter is required. self.template_id = template_id + # The ID of the tenant. + # + # > To view the tenant ID, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid def validate(self): @@ -2173,10 +2208,18 @@ def __init__( request_id: str = None, success: bool = None, ): + # Indicates whether the resource is added to the permission template. self.data = data + # The error code returned if the request failed. The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. You can use the ID to query logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -2528,46 +2571,159 @@ def __init__( use_ssl: int = None, vpc_id: str = None, ): + # The name of the database link for cross-database queries. + # + # > + # + # * This property must be specified when UseDsql is set to 1. + # + # * The name can contain only lowercase letters and underscores (_). + # + # * The name must be unique within a tenant. self.data_link_name = data_link_name + # The password of the database account. + # # This parameter is required. self.database_password = database_password + # The name of the database account. + # # This parameter is required. self.database_user = database_user + # The ID of the user who assumes the database administrator (DBA) role. You can call the [ListUsers](https://help.aliyun.com/document_detail/141938.html) or [GetInstance](https://help.aliyun.com/document_detail/141567.html) operation to obtain the value of this parameter. self.dba_id = dba_id + # Specifies whether to enable Lock-free Schema Change. Valid values: + # + # * **0**: does not enable lock-free schema change. + # * **1**: uses the native online DDL operations of MySQL first. + # * **2:** uses lock-free schema change first. + # + # > Supported databases include ApsaraDB RDS for MySQL, PolarDB for MySQL, ApsaraDB MyBase for MySQL, and third-party MySQL databases. self.ddl_online = ddl_online + # The ID of the instance. If your instance is a database instance connected by using a database gateway, specify the gateway ID for this parameter. + # + # > This parameter is required if InstanceSource is set to ECS_OWN or GATEWAY. self.ecs_instance_id = ecs_instance_id + # The region in which the ECS instance resides. + # + # > This parameter is required if InstanceSource is set to RDS, ECS_OWN, GATEWAY, or VPC_IDC. self.ecs_region = ecs_region + # Specifies whether to enable Security Collaboration for the database instance. Valid values: + # + # * Y: enables Security Collaboration. + # * N: disables Security Collaboration. self.enable_sell_common = enable_sell_common + # Specifies whether to enable sensitive data protection. Valid values: + # + # * Y: enables the sensitive data protection feature for the database instance. + # * N: disables the sensitive data protection feature for the database instance. self.enable_sell_sitd = enable_sell_sitd + # Specifies whether to enable Stable Change for the database instance. Valid values: + # + # * Y: Enables Stable Change. + # * N: Disables Stable Change. self.enable_sell_stable = enable_sell_stable + # Specifies whether to enable the security hosting feature for the database instance. Valid values: + # + # * Y: enables the security hosting feature for the database instance. + # * N: disables the security hosting feature for the database instance. + # # This parameter is required. self.enable_sell_trust = enable_sell_trust + # The type of the environment to which the database instance belongs. Valid values: + # + # * **product:** the production environment. + # * **dev**: development environment. + # * **pre**: pre-release environment. + # * **test**: test environment. + # * **sit**: system integration testing (SIT) environment. + # * **uat**: user acceptance testing (UAT) environment. + # * **pet**: stress testing environment. + # * **stag**: staging environment. + # # This parameter is required. self.env_type = env_type + # The timeout period for exporting data from the database instance. Unit: seconds. + # # This parameter is required. self.export_timeout = export_timeout + # The endpoint that is used to connect to the database. + # # This parameter is required. self.host = host + # The alias of the database instance. Specify an alias that can help you identify the database instance in DMS. + # # This parameter is required. self.instance_alias = instance_alias + # The source of the database instance. Valid values: + # + # * **PUBLIC_OWN**: a self-managed database instance that is deployed on the Internet. + # * **RDS**: an ApsaraDB RDS instance. + # * **ECS_OWN**: a self-managed database instance that is deployed on an Elastic Compute Service (ECS) instance. + # * **VPC_IDC**: a self-managed database instance that is deployed in a data center connected over a virtual private cloud (VPC). + # * **GATEWAY**: a database instance connected by using a database gateway. + # # This parameter is required. self.instance_source = instance_source + # The type of the database instance. For more information about the valid values of this parameter, see [DbType parameter](https://help.aliyun.com/document_detail/198106.html). + # # This parameter is required. self.instance_type = instance_type + # The network type. Valid values: + # + # * **CLASSIC:** the classic network. + # * **VPC**\ + # # This parameter is required. self.network_type = network_type + # The port that is used to connect to the database. + # # This parameter is required. self.port = port + # The timeout period for querying data from the database instance. Unit: seconds. + # # This parameter is required. self.query_timeout = query_timeout + # The name of the security rule set for the database instance. This parameter is required if Security Collaboration is enabled. You can call the[ListStandardGroups](https://help.aliyun.com/document_detail/465940.html) or [GetInstance](https://help.aliyun.com/document_detail/465826.html) operation to obtain the name of the security rule set from GroupName. self.safe_rule = safe_rule + # The system ID (SID) of the database instance. + # + # > This parameter is required if InstanceType is set to ORACLE. self.sid = sid + # Specifies whether to skip the connectivity test. Valid values: + # + # * **true**\ + # * **false**\ self.skip_test = skip_test + # The ID of the classification and grading template. You can call the [ListClassificationTemplates](https://help.aliyun.com/document_detail/465947.html) operation to query the template ID. self.template_id = template_id + # The type of the classification and grading template. You can call the [ListClassificationTemplates](https://help.aliyun.com/document_detail/465947.html) operation to query the template type. self.template_type = template_type + # The ID of the tenant. + # + # > You can move the pointer over the profile picture in the upper-right corner of the DMS console to obtain the tenant ID. self.tid = tid + # Specifies whether to enable cross-database query for the database instance. Valid values: + # + # * **0: does not enable cross-database query.**\ + # * **1**: enables cross-database query. + # + # > Supported databases include MySQL, SQL Server, PostgreSQL, PolarDB for Oracle, and Redis. self.use_dsql = use_dsql + # Specifies whether to allow Data Management Service (DMS) to connect to the database instance by using SSL connections. Before you use SSL connections, make sure that the SSL encryption feature is enabled for the database instance. Valid values: + # + # * **0** (default): DMS automatically checks whether self-negotiation is enabled for the database instance. DMS automatically checks whether the SSL encryption feature is enabled for the database instance. If the SSL encryption feature is enabled, DMS connects to the database instance by using SSL connections. Otherwise, DMS connects to the database instance without encryption. + # * **1**: DMS connects to the database instance by using SSL connections. This value is invalid if the SSL encryption feature is disabled for the database instance. + # * **-1**: DMS does not connect to the database instance by using SSL connections. + # + # > + # + # * This parameter is available only for a MySQL or Redis database instance. + # + # * SSL encrypts network connections at the transport layer to improve the security and integrity of data in transmission. However, SSL increases the response time of network connections. self.use_ssl = use_ssl + # The ID of the instance connected over a VPC. + # + # > This parameter is required if InstanceSource is set to VPC_IDC. self.vpc_id = vpc_id def validate(self): @@ -2710,9 +2866,16 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The ID of the request. You can use the ID to query logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -3214,13 +3377,21 @@ def __init__( table_schema_name: str = None, tid: int = None, ): + # The ID of the associated category. + # # This parameter is required. self.category_id = category_id + # The ID of a physical database: You can call the [ListDatabases](https://help.aliyun.com/document_detail/141873.html) or [SearchDatabase](https://help.aliyun.com/document_detail/141876.html) operation to obtain the physical database ID. + # # This parameter is required. self.db_id = db_id + # The name of the table. You can call the [ListTables](https://help.aliyun.com/document_detail/141878.html) operation to query the table name. + # # This parameter is required. self.table_name = table_name + # The schema name of the table, which is required only for SQL Server instances. self.table_schema_name = table_schema_name + # The tenant ID. You can call the [GetUserActiveTenant](https://help.aliyun.com/document_detail/198073.html) or [ListUserTenants](https://help.aliyun.com/document_detail/198074.html) operation to obtain the tenant ID. self.tid = tid def validate(self): @@ -3267,9 +3438,16 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -4025,9 +4203,13 @@ def __init__( model: str = None, query: str = None, ): + # The ID of the database. You can call the [ListDatabases](https://help.aliyun.com/document_detail/141873.html) operation to obtain the ID. + # # This parameter is required. self.db_id = db_id + # The name of the selected model. You can use only Qwen series models. self.model = model + # The syntax question. self.query = query def validate(self): @@ -4064,7 +4246,9 @@ def __init__( content: str = None, session_id: str = None, ): + # The answer to the question. self.content = content + # The session ID. self.session_id = session_id def validate(self): @@ -4100,11 +4284,18 @@ def __init__( request_id: str = None, success: bool = None, ): + # The data returned. self.data = data + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message # Id of the request self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -4715,19 +4906,38 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The catalog name. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The name of the database that you want to query. + # # This parameter is required. self.db_name = db_name + # Specifies whether to ignore this exception if the name of the new partition is the same as that of an existing partition. Valid values: + # + # * true: Ignore the exception. + # * false: Do not ignore the exception. self.if_not_exists = if_not_exists + # Specifies whether to return partition information. If the value is true, Partitions is returned. self.need_result = need_result + # The information about the new partitions. + # # This parameter is required. self.partition_inputs = partition_inputs + # The name of the table. + # # This parameter is required. self.table_name = table_name + # The ID of the tenant. + # + # > To view the tenant ID, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -4803,19 +5013,38 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The catalog name. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The name of the database that you want to query. + # # This parameter is required. self.db_name = db_name + # Specifies whether to ignore this exception if the name of the new partition is the same as that of an existing partition. Valid values: + # + # * true: Ignore the exception. + # * false: Do not ignore the exception. self.if_not_exists = if_not_exists + # Specifies whether to return partition information. If the value is true, Partitions is returned. self.need_result = need_result + # The information about the new partitions. + # # This parameter is required. self.partition_inputs_shrink = partition_inputs_shrink + # The name of the table. + # # This parameter is required. self.table_name = table_name + # The ID of the tenant. + # + # > To view the tenant ID, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -4879,10 +5108,18 @@ def __init__( request_id: str = None, success: str = None, ): + # The error code. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The details about the new partitions. This parameter is returned when the NeedResult parameter is set to true. self.partitions = partitions + # The request ID. You can use the ID to query logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request succeeded. + # * **false**: The request failed. self.success = success def validate(self): @@ -4982,18 +5219,33 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The database name. + # # This parameter is required. self.db_name = db_name + # Specifies whether to ignore the exception if the partition that you want to delete does not exist. self.if_exists = if_exists + # The values in a partition key column. + # # This parameter is required. self.partition_values_list = partition_values_list + # The table name. + # # This parameter is required. self.table_name = table_name + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -5053,10 +5305,18 @@ def __init__( request_id: str = None, success: str = None, ): + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The error messages. self.partition_errors = partition_errors + # The request ID. You can use the ID to query logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -5155,17 +5415,31 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data directory. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The name of the database that you want to query. + # # This parameter is required. self.db_name = db_name + # The information about the created partition. + # # This parameter is required. self.partition_inputs = partition_inputs + # The name of the table + # # This parameter is required. self.table_name = table_name + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -5231,17 +5505,31 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data directory. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The name of the database that you want to query. + # # This parameter is required. self.db_name = db_name + # The information about the created partition. + # # This parameter is required. self.partition_inputs_shrink = partition_inputs_shrink + # The name of the table + # # This parameter is required. self.table_name = table_name + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -5297,10 +5585,18 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The error messages. self.partition_errors = partition_errors + # The request ID. You can use the ID to query logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -5755,18 +6051,41 @@ def __init__( table_name: str = None, tid: int = None, ): + # The name of the field. You can call the [ListSensitiveColumns](https://help.aliyun.com/document_detail/188103.html) or [ListColumns](https://help.aliyun.com/document_detail/141870.html) operation to query the column name. + # # This parameter is required. self.column_name = column_name + # The database ID. The database can be a physical database or a logical database. + # + # * The ID of a physical database: You can call the [ListDatabases](https://help.aliyun.com/document_detail/141873.html) or [SearchDatabase](https://help.aliyun.com/document_detail/141876.html) operation to obtain the physical database ID. + # * To obtain the ID of a logical database, call the [ListLogicDatabases](https://help.aliyun.com/document_detail/141874.html) or [SearchDatabase](https://help.aliyun.com/document_detail/141876.html) operation. + # # This parameter is required. self.db_id = db_id + # Specifies whether the database is a logical database. Valid values: + # + # * **true**: The database is a logical database + # * **false**: The database is a physical database. + # # This parameter is required. self.is_logic = is_logic + # The new security level of the column. The valid values are the same as the sensitivity levels of the classification template that is associated with the instance. You can call the [ListSensitivityLevel](https://help.aliyun.com/document_detail/2539519.html) operation to obtain the sensitivity levels of the classification template. + # # This parameter is required. self.new_sensitivity_level = new_sensitivity_level + # The database name. You can call the [ListSensitiveColumns](https://help.aliyun.com/document_detail/188103.html) or [SearchDatabase](https://help.aliyun.com/document_detail/141876.html) operation to query the database name. + # + # > You can call the [ListDatabases](https://help.aliyun.com/document_detail/141873.html) operation to query the name of a physical database and call the [ListLogicDatabases](https://help.aliyun.com/document_detail/141874.html) operation to query the name of a logical database. + # # This parameter is required. self.schema_name = schema_name + # The name of the table. You can call the [ListSensitiveColumns](https://help.aliyun.com/document_detail/188103.html) or [ListTables](https://help.aliyun.com/document_detail/141878.html) operation to query the table name. + # # This parameter is required. self.table_name = table_name + # The ID of the tenant. + # + # > To view the tenant ID, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid def validate(self): @@ -5821,9 +6140,16 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. You can use the request ID to locate logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -6038,6 +6364,507 @@ def from_map(self, m: dict = None): return self +class ChatWithDesensitizeRequest(TeaModel): + def __init__( + self, + desensitization_rule: str = None, + enable_thinking: bool = None, + instance_id: int = None, + max_tokens: int = None, + messages: List[Dict[str, Any]] = None, + model: str = None, + need_desensitization: bool = None, + presence_penalty: float = None, + response_format: str = None, + seed: int = None, + stop: List[str] = None, + temperature: float = None, + thinking_budget: int = None, + top_k: int = None, + top_logprobs: int = None, + top_p: float = None, + ): + self.desensitization_rule = desensitization_rule + self.enable_thinking = enable_thinking + # This parameter is required. + self.instance_id = instance_id + self.max_tokens = max_tokens + # This parameter is required. + self.messages = messages + self.model = model + self.need_desensitization = need_desensitization + self.presence_penalty = presence_penalty + self.response_format = response_format + self.seed = seed + self.stop = stop + self.temperature = temperature + self.thinking_budget = thinking_budget + self.top_k = top_k + self.top_logprobs = top_logprobs + self.top_p = top_p + + def validate(self): + pass + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.desensitization_rule is not None: + result['DesensitizationRule'] = self.desensitization_rule + if self.enable_thinking is not None: + result['EnableThinking'] = self.enable_thinking + if self.instance_id is not None: + result['InstanceId'] = self.instance_id + if self.max_tokens is not None: + result['MaxTokens'] = self.max_tokens + if self.messages is not None: + result['Messages'] = self.messages + if self.model is not None: + result['Model'] = self.model + if self.need_desensitization is not None: + result['NeedDesensitization'] = self.need_desensitization + if self.presence_penalty is not None: + result['PresencePenalty'] = self.presence_penalty + if self.response_format is not None: + result['ResponseFormat'] = self.response_format + if self.seed is not None: + result['Seed'] = self.seed + if self.stop is not None: + result['Stop'] = self.stop + if self.temperature is not None: + result['Temperature'] = self.temperature + if self.thinking_budget is not None: + result['ThinkingBudget'] = self.thinking_budget + if self.top_k is not None: + result['TopK'] = self.top_k + if self.top_logprobs is not None: + result['TopLogprobs'] = self.top_logprobs + if self.top_p is not None: + result['TopP'] = self.top_p + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('DesensitizationRule') is not None: + self.desensitization_rule = m.get('DesensitizationRule') + if m.get('EnableThinking') is not None: + self.enable_thinking = m.get('EnableThinking') + if m.get('InstanceId') is not None: + self.instance_id = m.get('InstanceId') + if m.get('MaxTokens') is not None: + self.max_tokens = m.get('MaxTokens') + if m.get('Messages') is not None: + self.messages = m.get('Messages') + if m.get('Model') is not None: + self.model = m.get('Model') + if m.get('NeedDesensitization') is not None: + self.need_desensitization = m.get('NeedDesensitization') + if m.get('PresencePenalty') is not None: + self.presence_penalty = m.get('PresencePenalty') + if m.get('ResponseFormat') is not None: + self.response_format = m.get('ResponseFormat') + if m.get('Seed') is not None: + self.seed = m.get('Seed') + if m.get('Stop') is not None: + self.stop = m.get('Stop') + if m.get('Temperature') is not None: + self.temperature = m.get('Temperature') + if m.get('ThinkingBudget') is not None: + self.thinking_budget = m.get('ThinkingBudget') + if m.get('TopK') is not None: + self.top_k = m.get('TopK') + if m.get('TopLogprobs') is not None: + self.top_logprobs = m.get('TopLogprobs') + if m.get('TopP') is not None: + self.top_p = m.get('TopP') + return self + + +class ChatWithDesensitizeShrinkRequest(TeaModel): + def __init__( + self, + desensitization_rule: str = None, + enable_thinking: bool = None, + instance_id: int = None, + max_tokens: int = None, + messages_shrink: str = None, + model: str = None, + need_desensitization: bool = None, + presence_penalty: float = None, + response_format: str = None, + seed: int = None, + stop_shrink: str = None, + temperature: float = None, + thinking_budget: int = None, + top_k: int = None, + top_logprobs: int = None, + top_p: float = None, + ): + self.desensitization_rule = desensitization_rule + self.enable_thinking = enable_thinking + # This parameter is required. + self.instance_id = instance_id + self.max_tokens = max_tokens + # This parameter is required. + self.messages_shrink = messages_shrink + self.model = model + self.need_desensitization = need_desensitization + self.presence_penalty = presence_penalty + self.response_format = response_format + self.seed = seed + self.stop_shrink = stop_shrink + self.temperature = temperature + self.thinking_budget = thinking_budget + self.top_k = top_k + self.top_logprobs = top_logprobs + self.top_p = top_p + + def validate(self): + pass + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.desensitization_rule is not None: + result['DesensitizationRule'] = self.desensitization_rule + if self.enable_thinking is not None: + result['EnableThinking'] = self.enable_thinking + if self.instance_id is not None: + result['InstanceId'] = self.instance_id + if self.max_tokens is not None: + result['MaxTokens'] = self.max_tokens + if self.messages_shrink is not None: + result['Messages'] = self.messages_shrink + if self.model is not None: + result['Model'] = self.model + if self.need_desensitization is not None: + result['NeedDesensitization'] = self.need_desensitization + if self.presence_penalty is not None: + result['PresencePenalty'] = self.presence_penalty + if self.response_format is not None: + result['ResponseFormat'] = self.response_format + if self.seed is not None: + result['Seed'] = self.seed + if self.stop_shrink is not None: + result['Stop'] = self.stop_shrink + if self.temperature is not None: + result['Temperature'] = self.temperature + if self.thinking_budget is not None: + result['ThinkingBudget'] = self.thinking_budget + if self.top_k is not None: + result['TopK'] = self.top_k + if self.top_logprobs is not None: + result['TopLogprobs'] = self.top_logprobs + if self.top_p is not None: + result['TopP'] = self.top_p + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('DesensitizationRule') is not None: + self.desensitization_rule = m.get('DesensitizationRule') + if m.get('EnableThinking') is not None: + self.enable_thinking = m.get('EnableThinking') + if m.get('InstanceId') is not None: + self.instance_id = m.get('InstanceId') + if m.get('MaxTokens') is not None: + self.max_tokens = m.get('MaxTokens') + if m.get('Messages') is not None: + self.messages_shrink = m.get('Messages') + if m.get('Model') is not None: + self.model = m.get('Model') + if m.get('NeedDesensitization') is not None: + self.need_desensitization = m.get('NeedDesensitization') + if m.get('PresencePenalty') is not None: + self.presence_penalty = m.get('PresencePenalty') + if m.get('ResponseFormat') is not None: + self.response_format = m.get('ResponseFormat') + if m.get('Seed') is not None: + self.seed = m.get('Seed') + if m.get('Stop') is not None: + self.stop_shrink = m.get('Stop') + if m.get('Temperature') is not None: + self.temperature = m.get('Temperature') + if m.get('ThinkingBudget') is not None: + self.thinking_budget = m.get('ThinkingBudget') + if m.get('TopK') is not None: + self.top_k = m.get('TopK') + if m.get('TopLogprobs') is not None: + self.top_logprobs = m.get('TopLogprobs') + if m.get('TopP') is not None: + self.top_p = m.get('TopP') + return self + + +class ChatWithDesensitizeResponseBodyDataChoicesMessage(TeaModel): + def __init__( + self, + content: str = None, + reasoning_content: str = None, + role: str = None, + ): + self.content = content + self.reasoning_content = reasoning_content + self.role = role + + def validate(self): + pass + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.content is not None: + result['Content'] = self.content + if self.reasoning_content is not None: + result['ReasoningContent'] = self.reasoning_content + if self.role is not None: + result['Role'] = self.role + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('Content') is not None: + self.content = m.get('Content') + if m.get('ReasoningContent') is not None: + self.reasoning_content = m.get('ReasoningContent') + if m.get('Role') is not None: + self.role = m.get('Role') + return self + + +class ChatWithDesensitizeResponseBodyDataChoices(TeaModel): + def __init__( + self, + finish_reason: str = None, + message: ChatWithDesensitizeResponseBodyDataChoicesMessage = None, + ): + self.finish_reason = finish_reason + self.message = message + + def validate(self): + if self.message: + self.message.validate() + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.finish_reason is not None: + result['FinishReason'] = self.finish_reason + if self.message is not None: + result['Message'] = self.message.to_map() + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('FinishReason') is not None: + self.finish_reason = m.get('FinishReason') + if m.get('Message') is not None: + temp_model = ChatWithDesensitizeResponseBodyDataChoicesMessage() + self.message = temp_model.from_map(m['Message']) + return self + + +class ChatWithDesensitizeResponseBodyDataUsage(TeaModel): + def __init__( + self, + completion_tokens: str = None, + prompt_tokens: str = None, + total_tokens: str = None, + ): + self.completion_tokens = completion_tokens + self.prompt_tokens = prompt_tokens + self.total_tokens = total_tokens + + def validate(self): + pass + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.completion_tokens is not None: + result['CompletionTokens'] = self.completion_tokens + if self.prompt_tokens is not None: + result['PromptTokens'] = self.prompt_tokens + if self.total_tokens is not None: + result['TotalTokens'] = self.total_tokens + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('CompletionTokens') is not None: + self.completion_tokens = m.get('CompletionTokens') + if m.get('PromptTokens') is not None: + self.prompt_tokens = m.get('PromptTokens') + if m.get('TotalTokens') is not None: + self.total_tokens = m.get('TotalTokens') + return self + + +class ChatWithDesensitizeResponseBodyData(TeaModel): + def __init__( + self, + choices: List[ChatWithDesensitizeResponseBodyDataChoices] = None, + created: str = None, + model: str = None, + usage: ChatWithDesensitizeResponseBodyDataUsage = None, + ): + self.choices = choices + self.created = created + self.model = model + self.usage = usage + + def validate(self): + if self.choices: + for k in self.choices: + if k: + k.validate() + if self.usage: + self.usage.validate() + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + result['Choices'] = [] + if self.choices is not None: + for k in self.choices: + result['Choices'].append(k.to_map() if k else None) + if self.created is not None: + result['Created'] = self.created + if self.model is not None: + result['Model'] = self.model + if self.usage is not None: + result['Usage'] = self.usage.to_map() + return result + + def from_map(self, m: dict = None): + m = m or dict() + self.choices = [] + if m.get('Choices') is not None: + for k in m.get('Choices'): + temp_model = ChatWithDesensitizeResponseBodyDataChoices() + self.choices.append(temp_model.from_map(k)) + if m.get('Created') is not None: + self.created = m.get('Created') + if m.get('Model') is not None: + self.model = m.get('Model') + if m.get('Usage') is not None: + temp_model = ChatWithDesensitizeResponseBodyDataUsage() + self.usage = temp_model.from_map(m['Usage']) + return self + + +class ChatWithDesensitizeResponseBody(TeaModel): + def __init__( + self, + data: ChatWithDesensitizeResponseBodyData = None, + error_code: str = None, + error_message: str = None, + request_id: str = None, + success: bool = None, + ): + self.data = data + self.error_code = error_code + self.error_message = error_message + self.request_id = request_id + self.success = success + + def validate(self): + if self.data: + self.data.validate() + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.data is not None: + result['Data'] = self.data.to_map() + if self.error_code is not None: + result['ErrorCode'] = self.error_code + if self.error_message is not None: + result['ErrorMessage'] = self.error_message + if self.request_id is not None: + result['RequestId'] = self.request_id + if self.success is not None: + result['Success'] = self.success + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('Data') is not None: + temp_model = ChatWithDesensitizeResponseBodyData() + self.data = temp_model.from_map(m['Data']) + if m.get('ErrorCode') is not None: + self.error_code = m.get('ErrorCode') + if m.get('ErrorMessage') is not None: + self.error_message = m.get('ErrorMessage') + if m.get('RequestId') is not None: + self.request_id = m.get('RequestId') + if m.get('Success') is not None: + self.success = m.get('Success') + return self + + +class ChatWithDesensitizeResponse(TeaModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + body: ChatWithDesensitizeResponseBody = None, + ): + self.headers = headers + self.status_code = status_code + self.body = body + + def validate(self): + if self.body: + self.body.validate() + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.headers is not None: + result['headers'] = self.headers + if self.status_code is not None: + result['statusCode'] = self.status_code + if self.body is not None: + result['body'] = self.body.to_map() + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + if m.get('body') is not None: + temp_model = ChatWithDesensitizeResponseBody() + self.body = temp_model.from_map(m['body']) + return self + + class CloseOrderRequest(TeaModel): def __init__( self, @@ -6185,12 +7012,30 @@ def __init__( tid: int = None, user_id: int = None, ): + # Principal Type. Valid values:**user**or**custom role**. + # + # Valid values: + # + # * USER + # * ROLE + # # This parameter is required. self.identity_type = identity_type + # The ID of the policy. + # # This parameter is required. self.policy_id = policy_id + # The ID of the role. + # + # > If IdentityType is set to ROLE, this parameter is required. self.role_id = role_id + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The ID of the user. You can call the [GetUser](https://help.aliyun.com/document_detail/465816.html) operation to query the user ID. + # + # > If IdentityType is set to USER, this parameter is required. self.user_id = user_id def validate(self): @@ -6238,10 +7083,18 @@ def __init__( result: str = None, success: bool = None, ): + # The error code. self.error_code = error_code + # The error message. self.error_message = error_message + # The request ID. You can use the request ID to query logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the policy is attached. self.result = result + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request succeeded. + # * **false**: The request failed. self.success = success def validate(self): @@ -6329,11 +7182,19 @@ def __init__( abac_policy_name: str = None, tid: int = None, ): + # The content of the policy. Specifies whether the authorized user can access and use the resources and features defined in the policy. + # # This parameter is required. self.abac_policy_content = abac_policy_content + # The description of the policy. self.abac_policy_desc = abac_policy_desc + # The name of the policy. The name must be unique for the tenant. + # # This parameter is required. self.abac_policy_name = abac_policy_name + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the DMS console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid def validate(self): @@ -6377,10 +7238,18 @@ def __init__( request_id: str = None, success: bool = None, ): + # The ID of the policy. self.create_policy_result = create_policy_result + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -8884,17 +9753,31 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The name of the database that you want to query. + # # This parameter is required. self.db_name = db_name + # The description of the database. self.description = description + # The storage path of the database. OSS, S3, and S3A are supported. + # # This parameter is required. self.location = location + # The key-value pairs of the database attributes. self.parameters = parameters + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -8957,17 +9840,31 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The name of the database that you want to query. + # # This parameter is required. self.db_name = db_name + # The description of the database. self.description = description + # The storage path of the database. OSS, S3, and S3A are supported. + # # This parameter is required. self.location = location + # The key-value pairs of the database attributes. self.parameters_shrink = parameters_shrink + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -9026,9 +9923,16 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. You can use the ID to query logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -9114,15 +10018,27 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The database name. + # # This parameter is required. self.db_name = db_name + # The details about the function. + # # This parameter is required. self.function_input = function_input + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -9177,15 +10093,27 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The database name. + # # This parameter is required. self.db_name = db_name + # The details about the function. + # # This parameter is required. self.function_input_shrink = function_input_shrink + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -9237,10 +10165,18 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The details about the function. self.function = function + # The request ID. You can use the ID to query logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -9335,19 +10271,38 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The database name. + # # This parameter is required. self.db_name = db_name + # Specifies whether to ignore the exception if the name of the created partition is the same as the name of an existing partition. self.if_not_exists = if_not_exists + # Specifies whether to return information about the created partition. If the value is true, the Partition parameter is returned. Valid values: + # + # * true: returns information about the created partition. + # * false: does not return information about the created partition. self.need_result = need_result + # The information about the created partition. + # # This parameter is required. self.partition_input = partition_input + # The name of the table + # # This parameter is required. self.table_name = table_name + # The ID of the tenant. + # + # > To view the tenant ID, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -9417,19 +10372,38 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The database name. + # # This parameter is required. self.db_name = db_name + # Specifies whether to ignore the exception if the name of the created partition is the same as the name of an existing partition. self.if_not_exists = if_not_exists + # Specifies whether to return information about the created partition. If the value is true, the Partition parameter is returned. Valid values: + # + # * true: returns information about the created partition. + # * false: does not return information about the created partition. self.need_result = need_result + # The information about the created partition. + # # This parameter is required. self.partition_input_shrink = partition_input_shrink + # The name of the table + # # This parameter is required. self.table_name = table_name + # The ID of the tenant. + # + # > To view the tenant ID, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -9493,10 +10467,18 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The information about the partition. self.partition = partition + # The request ID. You can use the request ID to locate logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -9588,15 +10570,27 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The database name. + # # This parameter is required. self.db_name = db_name + # The information about the table. + # # This parameter is required. self.table_input = table_input + # The ID of the tenant. + # + # > You can move the pointer over the profile picture in the upper-right corner of the DMS console to obtain the tenant ID. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -9651,15 +10645,27 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The database name. + # # This parameter is required. self.db_name = db_name + # The information about the table. + # # This parameter is required. self.table_input_shrink = table_input_shrink + # The ID of the tenant. + # + # > You can move the pointer over the profile picture in the upper-right corner of the DMS console to obtain the tenant ID. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -9711,10 +10717,18 @@ def __init__( success: bool = None, table: DLTable = None, ): + # The error code returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The ID of the request. You can use the request ID to locate logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success + # The information about the table. self.table = table def validate(self): @@ -11861,9 +12875,13 @@ def __init__( parent_category_id: int = None, tid: int = None, ): + # The name of the category. + # # This parameter is required. self.name = name + # The ID of the parent category. The new category is created under this parent category. If this value is left empty, the new category is of the first level. self.parent_category_id = parent_category_id + # The ID of the tenant. You can call the [GetUserActiveTenant](https://help.aliyun.com/document_detail/198073.html) or [ListUserTenants](https://help.aliyun.com/document_detail/198074.html) operation to obtain the tenant ID. self.tid = tid def validate(self): @@ -11903,10 +12921,18 @@ def __init__( request_id: str = None, success: bool = None, ): + # The information about the category. self.category = category + # The error code returned if the request fails. self.error_code = error_code + # The error message returned if the request fails. self.error_message = error_message + # The request ID. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * true: The request was successful. + # * false: The request failed. self.success = success def validate(self): @@ -12261,8 +13287,18 @@ def __init__( db_id: int = None, logic: bool = None, ): + # The database ID. Databases are divided into physical databases and logical databases. + # + # * To query the ID of a physical database, call the [ListDatabases](https://help.aliyun.com/document_detail/141873.html) or [SearchDatabase](https://help.aliyun.com/document_detail/141876.html) operation. + # * To query the ID of a logical database, call the [ListLogicDatabases](https://help.aliyun.com/document_detail/141874.html) or [SearchDatabase](https://help.aliyun.com/document_detail/141876.html) operation. + # # This parameter is required. self.db_id = db_id + # Specifies whether the database is a logical database. Valid values: + # + # * **true**: The database is a logical database. + # * **false**: The database is a physical database. + # # This parameter is required. self.logic = logic @@ -12301,14 +13337,34 @@ def __init__( rollback_sql: str = None, rollback_sql_type: str = None, ): + # The reason for the programmable object change. self.classify = classify + # The information about the database. + # # This parameter is required. self.db_item_list = db_item_list + # The mode in which the data change ticket is executed after the ticket is approved. Valid values: + # + # * **COMMITOR**: The ticket is executed by the user who submits the ticket. + # * **AUTO**: The ticket is automatically executed after the ticket is approved. + # * **LAST_AUDITOR**: The ticket is executed by the last approver of the ticket. self.exec_mode = exec_mode + # The SQL statements for data change. + # # This parameter is required. self.exec_sql = exec_sql + # The key of the attachment that contains the SQL statements used to roll back the data change. You can call the [GetUserUploadFileJob](https://help.aliyun.com/document_detail/206069.html) operation to obtain the attachment key from the value of AttachmentKey. + # + # > This parameter is required if you set **RollbackSqlType** to **ATTACHMENT**. self.rollback_attachment_name = rollback_attachment_name + # The SQL statements for rolling back the data change. + # + # > This parameter is required if you set the **RollbackSqlType** parameter to **TEXT**. self.rollback_sql = rollback_sql + # The format of the SQL statements used to roll back the data change. Valid values: + # + # * **TEXT**\ + # * **ATTACHMENT**\ self.rollback_sql_type = rollback_sql_type def validate(self): @@ -12372,12 +13428,23 @@ def __init__( related_user_list: List[int] = None, tid: int = None, ): + # The key of the attachment for the ticket. The attachment provides more instructions for this operation. + # + # You can call the [GetUserUploadFileJob](https://help.aliyun.com/document_detail/206069.html) operation to query the key of the attachment. self.attachment_key = attachment_key + # The remarks of the ticket. + # # This parameter is required. self.comment = comment + # The parameters of the ticket. + # # This parameter is required. self.param = param + # The operators that are related to the ticket. self.related_user_list = related_user_list + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid def validate(self): @@ -12427,12 +13494,23 @@ def __init__( related_user_list_shrink: str = None, tid: int = None, ): + # The key of the attachment for the ticket. The attachment provides more instructions for this operation. + # + # You can call the [GetUserUploadFileJob](https://help.aliyun.com/document_detail/206069.html) operation to query the key of the attachment. self.attachment_key = attachment_key + # The remarks of the ticket. + # # This parameter is required. self.comment = comment + # The parameters of the ticket. + # # This parameter is required. self.param_shrink = param_shrink + # The operators that are related to the ticket. self.related_user_list_shrink = related_user_list_shrink + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid def validate(self): @@ -12480,10 +13558,18 @@ def __init__( request_id: str = None, success: bool = None, ): + # The ticket IDs. self.create_order_result = create_order_result + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -14905,13 +15991,22 @@ def __init__( vpc_id: str = None, workspace_name: str = None, ): + # The client token that is used to ensure the idempotence of the request. self.client_token = client_token + # The description of the workspace. + # # This parameter is required. self.description = description + # The region to which the workspace belongs. + # # This parameter is required. self.region_id = region_id + # The VPC ID. + # # This parameter is required. self.vpc_id = vpc_id + # The name of the workspace. + # # This parameter is required. self.workspace_name = workspace_name @@ -14958,8 +16053,14 @@ def __init__( success: bool = None, workspace_id: int = None, ): + # The request ID. You can use the request ID to locate logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -15038,10 +16139,22 @@ def __init__( identity_type: str = None, tid: int = None, ): + # The authorization ID. + # # This parameter is required. self.authorization_id = authorization_id + # The type of object to which you want to attach the policy.********\ + # + # Valid values: + # + # * USER + # * ROLE + # # This parameter is required. self.identity_type = identity_type + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid def validate(self): @@ -15081,10 +16194,18 @@ def __init__( result: str = None, success: bool = None, ): + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. You can use the ID to query logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the policy is detached from the user. self.result = result + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -15170,8 +16291,13 @@ def __init__( abac_policy_id: int = None, tid: int = None, ): + # The ID of the policy. + # # This parameter is required. self.abac_policy_id = abac_policy_id + # The ID of the tenant. + # + # > To view the tenant ID, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid def validate(self): @@ -15207,10 +16333,18 @@ def __init__( request_id: str = None, success: bool = None, ): + # Indicates whether the policy is deleted. self.delete_policy_result = delete_policy_result + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. You can use the ID to query logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -15296,8 +16430,11 @@ def __init__( template_id: int = None, tid: int = None, ): + # The ID of the permission template. + # # This parameter is required. self.template_id = template_id + # The tenant ID. You can call the [GetUserActiveTenant](https://help.aliyun.com/document_detail/198073.html) or [ListUserTenants](https://help.aliyun.com/document_detail/198074.html) operation to obtain the tenant ID. self.tid = tid def validate(self): @@ -15333,10 +16470,18 @@ def __init__( success: bool = None, tid: int = None, ): + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. You can use the request ID to locate logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success + # The ID of the tenant. self.tid = tid def validate(self): @@ -15425,13 +16570,23 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data directory. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The name of the database that you want to query. + # # This parameter is required. self.db_name = db_name + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -15478,9 +16633,16 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. You can use the request ID to locate logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -15566,15 +16728,27 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data directory. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The database name. + # # This parameter is required. self.db_name = db_name + # The function name. + # # This parameter is required. self.function_name = function_name + # The ID of the tenant. + # + # > To view the tenant ID, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -15625,9 +16799,16 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code. self.error_code = error_code + # The error message returned if the request failed. self.error_message = error_message + # The request ID. You can use the ID to locate logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the operation was successful. Valid values: + # + # * **true**\ + # * **false**\ self.success = success def validate(self): @@ -15715,18 +16896,33 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The name of the database that you want to query. + # # This parameter is required. self.db_name = db_name + # Specifies whether to ignore the exception if the partition that you want to delete does not exist. self.if_exists = if_exists + # The values in a partition key column. + # # This parameter is required. self.partition_values = partition_values + # The table name. + # # This parameter is required. self.table_name = table_name + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the DMS console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -15789,18 +16985,33 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The name of the database that you want to query. + # # This parameter is required. self.db_name = db_name + # Specifies whether to ignore the exception if the partition that you want to delete does not exist. self.if_exists = if_exists + # The values in a partition key column. + # # This parameter is required. self.partition_values_shrink = partition_values_shrink + # The table name. + # # This parameter is required. self.table_name = table_name + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the DMS console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -15859,9 +17070,16 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. You can use the ID to query logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The partition is deleted. + # * **false**: The partition failed to be deleted. self.success = success def validate(self): @@ -15947,15 +17165,27 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The database name. + # # This parameter is required. self.db_name = db_name + # The name of the table. + # # This parameter is required. self.table_name = table_name + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the DMS console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -16006,9 +17236,16 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. You can use the request ID to locate logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -16852,8 +18089,13 @@ def __init__( category_id: int = None, tid: int = None, ): + # The category ID. + # # This parameter is required. self.category_id = category_id + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the DMS console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid def validate(self): @@ -16888,9 +18130,16 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -17358,8 +18607,13 @@ def __init__( group_id: int = None, tid: int = None, ): + # The security rule set ID. You can call the [ListStandardGroups](https://help.aliyun.com/document_detail/465940.html) operation to obtain the ID of the security rule set. + # # This parameter is required. self.group_id = group_id + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid def validate(self): @@ -17394,9 +18648,16 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The ID of the request. You can use the request ID to locate logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -18024,6 +19285,8 @@ def __init__( self, workspace_id: int = None, ): + # The ID of the DMS workspace. + # # This parameter is required. self.workspace_id = workspace_id @@ -18054,9 +19317,11 @@ def __init__( request_id: str = None, success: bool = None, ): + # Indicates whether the workspace is deleted successfully. self.data = data # Id of the request self.request_id = request_id + # Indicates whether the operation is called successfully. self.success = success def validate(self): @@ -18177,20 +19442,28 @@ class DescribeDifyAttributeResponseBodyRoot(TeaModel): def __init__( self, app_uuid: str = None, + billing_instance_id: str = None, + charge_type: str = None, + expire_time: int = None, replicas: str = None, resource_quota: str = None, security_group_id: str = None, status: str = None, + storage_type: str = None, v_switch_id: str = None, vpc_id: str = None, workspace_id: str = None, zone_id: str = None, ): self.app_uuid = app_uuid + self.billing_instance_id = billing_instance_id + self.charge_type = charge_type + self.expire_time = expire_time self.replicas = replicas self.resource_quota = resource_quota self.security_group_id = security_group_id self.status = status + self.storage_type = storage_type self.v_switch_id = v_switch_id self.vpc_id = vpc_id self.workspace_id = workspace_id @@ -18207,6 +19480,12 @@ def to_map(self): result = dict() if self.app_uuid is not None: result['AppUuid'] = self.app_uuid + if self.billing_instance_id is not None: + result['BillingInstanceId'] = self.billing_instance_id + if self.charge_type is not None: + result['ChargeType'] = self.charge_type + if self.expire_time is not None: + result['ExpireTime'] = self.expire_time if self.replicas is not None: result['Replicas'] = self.replicas if self.resource_quota is not None: @@ -18215,6 +19494,8 @@ def to_map(self): result['SecurityGroupId'] = self.security_group_id if self.status is not None: result['Status'] = self.status + if self.storage_type is not None: + result['StorageType'] = self.storage_type if self.v_switch_id is not None: result['VSwitchId'] = self.v_switch_id if self.vpc_id is not None: @@ -18229,6 +19510,12 @@ def from_map(self, m: dict = None): m = m or dict() if m.get('AppUuid') is not None: self.app_uuid = m.get('AppUuid') + if m.get('BillingInstanceId') is not None: + self.billing_instance_id = m.get('BillingInstanceId') + if m.get('ChargeType') is not None: + self.charge_type = m.get('ChargeType') + if m.get('ExpireTime') is not None: + self.expire_time = m.get('ExpireTime') if m.get('Replicas') is not None: self.replicas = m.get('Replicas') if m.get('ResourceQuota') is not None: @@ -18237,6 +19524,8 @@ def from_map(self, m: dict = None): self.security_group_id = m.get('SecurityGroupId') if m.get('Status') is not None: self.status = m.get('Status') + if m.get('StorageType') is not None: + self.storage_type = m.get('StorageType') if m.get('VSwitchId') is not None: self.v_switch_id = m.get('VSwitchId') if m.get('VpcId') is not None: @@ -19587,13 +20876,21 @@ def __init__( table_name: str = None, table_schema_name: str = None, ): + # Business knowledge content edited by users. + # # This parameter is required. self.asset_description = asset_description + # The name of the field. This parameter is used when the edited content is a field. self.column_name = column_name + # The ID of the physical database. You can call the [SearchDatabase](https://help.aliyun.com/document_detail/141876.html) operation to obtain the ID. + # # This parameter is required. self.db_id = db_id + # The name of the table. + # # This parameter is required. self.table_name = table_name + # The schema name of the table, which is required only for SQL Server instances. self.table_schema_name = table_schema_name def validate(self): @@ -19640,9 +20937,16 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code returned if the request fails. self.error_code = error_code + # The error message returned if the request fails. self.error_message = error_message + # Request ID. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -20653,11 +21957,18 @@ def __init__( query: str = None, sql: str = None, ): + # The ID of the database. You can call the [ListDatabases](https://help.aliyun.com/document_detail/141873.html) operation to obtain the ID. + # # This parameter is required. self.db_id = db_id + # The error message. self.error = error + # The name of the selected model. You can use only Qwen series models. self.model = model + # The remarks. self.query = query + # The SQL statement that reports the error. + # # This parameter is required. self.sql = sql @@ -20703,7 +22014,9 @@ def __init__( content: str = None, session_id: str = None, ): + # The answer. self.content = content + # The session ID. self.session_id = session_id def validate(self): @@ -20739,11 +22052,18 @@ def __init__( request_id: str = None, success: bool = None, ): + # The data returned. self.data = data + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message # Id of the request self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -21305,8 +22625,13 @@ def __init__( abac_policy_name: str = None, tid: int = None, ): + # The ID of the policy. self.abac_policy_id = abac_policy_id + # The name of the policy. self.abac_policy_name = abac_policy_name + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid def validate(self): @@ -21348,12 +22673,19 @@ def __init__( policy_name: str = None, policy_source: str = None, ): + # The number of users or custom roles to which the policy is attached. self.authorized_quantity = authorized_quantity + # The ID of the user who create the policy. self.creator_id = creator_id + # The content of the policy. self.policy_content = policy_content + # The description of the policy. self.policy_desc = policy_desc + # The ID of the policy. self.policy_id = policy_id + # The name of the policy. self.policy_name = policy_name + # The source of the policy. Valid values: self.policy_source = policy_source def validate(self): @@ -21409,10 +22741,18 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The details of the policy. self.policy = policy + # The request ID. You can use the ID to query logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -22599,8 +23939,13 @@ def __init__( instance_id: int = None, tid: int = None, ): + # The ID of the instance. You can call the [ListInstances](https://help.aliyun.com/document_detail/141936.html) or [GetInstance](https://help.aliyun.com/document_detail/141567.html) operation to query the instance ID. + # # This parameter is required. self.instance_id = instance_id + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid def validate(self): @@ -22635,9 +23980,16 @@ def __init__( template_id: int = None, template_type: str = None, ): + # The ID of the resource. The supported resource type is INSTANCE. The resource ID corresponds to the value of InstanceId. You can call the [ListInstances](https://help.aliyun.com/document_detail/141936.html) operation to obtain the value of InstanceId. self.resource_id = resource_id + # The resource type. The value is fixed as **INSTANCE**. self.resource_type = resource_type + # The ID of the classification and grading template. self.template_id = template_id + # The type of the classification and grading template. Valid values: + # + # * **INNER**: a built-in template. + # * **USER_DEFINE**: a custom template. self.template_type = template_type def validate(self): @@ -22681,10 +24033,18 @@ def __init__( request_id: str = None, success: bool = None, ): + # The information about the classification template that is associated to the instance. self.classification_resource_template_map = classification_resource_template_map + # The error code returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. You can use the ID to query logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -27474,11 +28834,17 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The tenant ID. You can call the [GetUserActiveTenant](https://help.aliyun.com/document_detail/198073.html) or [ListUserTenants](https://help.aliyun.com/document_detail/198074.html) operation to obtain the tenant ID. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -27522,10 +28888,18 @@ def __init__( request_id: str = None, success: bool = None, ): + # The information about the catalog. self.catalog = catalog + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. You can use the request ID to locate logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -27616,13 +28990,23 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The database name. + # # This parameter is required. self.name = name + # The ID of the tenant. + # + # > To view the tenant ID, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -27670,10 +29054,18 @@ def __init__( request_id: str = None, success: bool = None, ): + # The database information. self.database = database + # The error code returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -27765,15 +29157,27 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The database name. + # # This parameter is required. self.db_name = db_name + # The function name. + # # This parameter is required. self.function_name = function_name + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the DMS console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -27825,10 +29229,18 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The details about the function. self.function = function + # The request ID. You can use the ID to query logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -27921,17 +29333,31 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The database name. + # # This parameter is required. self.db_name = db_name + # The values in a partition key column. + # # This parameter is required. self.partition_values = partition_values + # The table name. + # # This parameter is required. self.table_name = table_name + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the DMS console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -27989,17 +29415,31 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The database name. + # # This parameter is required. self.db_name = db_name + # The values in a partition key column. + # # This parameter is required. self.partition_values_shrink = partition_values_shrink + # The table name. + # # This parameter is required. self.table_name = table_name + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the DMS console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -28055,10 +29495,18 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The queried partition. self.partition = partition + # The request ID. You can use the request ID to locate logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -28150,15 +29598,25 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The name of the database to which the table belongs. + # # This parameter is required. self.db_name = db_name + # The table name. + # # This parameter is required. self.name = name + # The tenant ID. You can call the [GetUserActiveTenant](https://help.aliyun.com/document_detail/198073.html) or [ListUserTenants](https://help.aliyun.com/document_detail/198074.html) operation to obtain the tenant ID. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -28210,10 +29668,18 @@ def __init__( success: str = None, table: DLTable = None, ): + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. You can use the request ID to locate logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success + # The information of the table. self.table = table def validate(self): @@ -29828,8 +31294,11 @@ def __init__( order_id: int = None, tid: int = None, ): + # The ticket ID. You can call the [ListOrders](https://help.aliyun.com/document_detail/144643.html) operation to obtain the ticket ID. + # # This parameter is required. self.order_id = order_id + # The ID of the tenant. You can call the [GetUserActiveTenant](https://help.aliyun.com/document_detail/198073.html) or [ListUserTenants](https://help.aliyun.com/document_detail/198074.html) operation to obtain the tenant ID. self.tid = tid def validate(self): @@ -29863,8 +31332,14 @@ def __init__( tip_message: str = None, url: str = None, ): + # Indicates whether export results are available for download. Valid values: + # + # * **true**: Export results are available for download. + # * **false**: No export results are available for download. self.has_result = has_result + # The message that indicates an exception. self.tip_message = tip_message + # The download URL of the exported file. self.url = url def validate(self): @@ -29904,10 +31379,18 @@ def __init__( request_id: str = None, success: bool = None, ): + # The download URL of the exported file. self.download_urlresult = download_urlresult + # The error code returned. self.error_code = error_code + # The error message returned if the request fails. self.error_message = error_message + # The request ID. You can use the request ID to locate logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * true: The request succeeded. + # * false: The request failed. self.success = success def validate(self): @@ -33217,8 +34700,13 @@ def __init__( order_id: int = None, tid: int = None, ): + # The ID of data archiving ticket. + # # This parameter is required. self.order_id = order_id + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid def validate(self): @@ -33265,21 +34753,59 @@ def __init__( trigger_type: int = None, version: str = None, ): + # The data timestamp of the task node. self.business_time = business_time + # The state of archived data verification. Valid values: + # + # * **0**: The verification was successful. + # * **1**: Inconsistent data was detected. + # * **2**: The verification was not performed. + # * **3**: The verification is in progress. + # * **4**: The verification was interrupted. self.check_status = check_status + # The unique ID of the task flow. self.dag_id = dag_id + # Indicates whether the source data is deleted. Valid values: + # + # * **true**: deletes the jobs in the application group. + # * **false**\ self.delete = delete + # The time when the task ended. self.end_time = end_time + # The time when the task flow was created. self.gmt_create = gmt_create + # The time when the task flow was last modified. self.gmt_modified = gmt_modified + # The ID of the historical task flow. self.history_dag_id = history_dag_id + # The task flow ID. self.id = id + # The context of the last execution of the task flow. self.last_running_context = last_running_context + # The details of the current task execution. self.msg = msg + # The state of the archiving task. + # + # * **0**: Pending. + # * **1**: Running. + # * **2**: Paused. + # * **3**: Failed. + # * **4**: Succeeded. self.status = status + # The task type. Valid values: + # + # * **1**: data archiving + # * **2**: archived data restoration + # * **3**: archived data verification self.task_type = task_type + # The ID of the tenant. self.tenant_id = tenant_id + # The mode in which the task flow is triggered. Valid values: + # + # * **0**: The task flow was triggered based on a schedule. + # * **1**: The task flow was manually triggered. self.trigger_type = trigger_type + # The version number. self.version = version def validate(self): @@ -33367,6 +34893,7 @@ def __init__( self, instance: List[GetPagedInstanceResponseBodyDataInstance] = None, ): + # The information about the task. self.instance = instance def validate(self): @@ -33410,15 +34937,26 @@ def __init__( total: int = None, trace_id: str = None, ): + # The data returned. self.data = data + # The error code returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The page number. self.page_index = page_index + # The number of entries to return on each page. self.page_size = page_size + # The request ID. You can use the request ID to query logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**\ + # * **false**: The request failed. self.success = success + # The total number of instances. self.total = total - # Id of the request + # The trace ID, which is used to track the request. self.trace_id = trace_id def validate(self): @@ -35758,8 +37296,13 @@ def __init__( group_id: int = None, tid: int = None, ): + # The security rule set ID. You can call the [ListStandardGroups](https://help.aliyun.com/document_detail/465940.html) operation to obtain the ID of the security rule set. + # # This parameter is required. self.group_id = group_id + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the DMS console and move the pointer over the profile picture in the upper-right corner. For more information, see [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid def validate(self): @@ -35796,11 +37339,21 @@ def __init__( group_name: str = None, last_mender_id: int = None, ): + # The engine type. self.db_type = db_type + # The description of the security rule set. self.description = description + # The ID of the security rule set. self.group_id = group_id + # The control mode. Valid values: + # + # * **NONE_CONTROL**: Flexible Management + # * **STABLE**: Stable Change + # * **COMMON**: Security Collaboration self.group_mode = group_mode + # The name of the security rule set. self.group_name = group_name + # The ID of the user who last modified the security rules. self.last_mender_id = last_mender_id def validate(self): @@ -35852,10 +37405,18 @@ def __init__( standard_group: GetStandardGroupResponseBodyStandardGroup = None, success: bool = None, ): + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. You can use the ID to query logs and troubleshoot issues. self.request_id = request_id + # The information about the security rule set. self.standard_group = standard_group + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -38090,10 +39651,15 @@ def __init__( table_name: str = None, table_schema_name: str = None, ): + # The ID of the physical database. You can call the [SearchDatabase](https://help.aliyun.com/document_detail/141876.html) operation to obtain the ID. + # # This parameter is required. self.db_id = db_id + # The name of the table. + # # This parameter is required. self.table_name = table_name + # The schema name of the table, which is required only for SQL Server instances. self.table_schema_name = table_schema_name def validate(self): @@ -38133,10 +39699,18 @@ def __init__( success: bool = None, table: TableKnowledgeInfo = None, ): + # The error code returned if the request failed. self.error_code = error_code + # The error message returned if the request failed. self.error_message = error_message + # The request ID. You can use the request ID to query logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success + # The information about the table. self.table = table def validate(self): @@ -40494,6 +42068,8 @@ def __init__( self, workspace_id: int = None, ): + # The ID of the DMS workspace. + # # This parameter is required. self.workspace_id = workspace_id @@ -40529,13 +42105,23 @@ def __init__( workspace_id: int = None, workspace_name: str = None, ): + # The description of the workspace. self.description = description + # The owner ID. self.owner_id = owner_id + # The ID of the region to which the workspace belongs. self.region_id = region_id + # The ID of the service account. self.service_account_id = service_account_id + # The ID of the tenant. + # + # > To view the tenant ID, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The VPC ID. self.vpc_id = vpc_id + # The workspace ID. self.workspace_id = workspace_id + # The name of the workspace. self.workspace_name = workspace_name def validate(self): @@ -40594,9 +42180,16 @@ def __init__( request_id: str = None, success: bool = None, ): + # The data returned. self.data = data + # The error message that is returned if the request failed. self.message = message + # The request ID. You can use the request ID to locate logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -41192,10 +42785,22 @@ def __init__( policy_source: str = None, tid: int = None, ): + # The page number. self.page_number = page_number + # The number of entries on each page. self.page_size = page_size + # The ID of the policy. self.policy_id = policy_id + # The type of the policy. The value can be custom or system. + # + # Valid values: + # + # * USER_DEFINE + # * SYSTEM self.policy_source = policy_source + # The ID of the tenant. + # + # > To view the tenant ID, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid def validate(self): @@ -41245,12 +42850,19 @@ def __init__( policy_name: str = None, policy_source: str = None, ): + # The authorization ID. self.authorization_id = authorization_id + # The ID of the object to which the policy is attached. self.identity_id = identity_id + # The name of the object to which the policy is attached. self.identity_name = identity_name + # The type of the object to which the policy is attached. self.identity_type = identity_type + # The ID of the policy. self.policy_id = policy_id + # The name of the policy. self.policy_name = policy_name + # The source of the policy. self.policy_source = policy_source def validate(self): @@ -41307,11 +42919,20 @@ def __init__( success: bool = None, total_count: int = None, ): + # The list of users to which the specified policy is attached. self.authorization_list = authorization_list + # The error code that is returned when the request failed. self.error_code = error_code + # The error message that is returned when the request failed. self.error_message = error_message + # The request ID. You can use the ID to query logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success + # The number of objects to which the policy is attached. self.total_count = total_count def validate(self): @@ -41411,9 +43032,15 @@ def __init__( search_key: str = None, tid: int = None, ): + # The page number. self.page_number = page_number + # The number of entries to return on each page. self.page_size = page_size + # The search keyword. Fuzzy match is supported. self.search_key = search_key + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid def validate(self): @@ -41458,11 +43085,17 @@ def __init__( abac_policy_source: str = None, creator_id: int = None, ): + # The content of the policy. self.abac_policy_content = abac_policy_content + # The description of the policy. self.abac_policy_desc = abac_policy_desc + # The ID of the policy. self.abac_policy_id = abac_policy_id + # The name of the policy. self.abac_policy_name = abac_policy_name + # The source of the policy. self.abac_policy_source = abac_policy_source + # The ID of the user who created the policy. self.creator_id = creator_id def validate(self): @@ -41516,12 +43149,22 @@ def __init__( tid: int = None, total_count: int = None, ): + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The details of the permission policies. self.policy_list = policy_list + # The request ID. You can use the request ID to locate logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success + # The ID of the tenant. self.tid = tid + # The total number of policies. self.total_count = total_count def validate(self): @@ -41625,9 +43268,17 @@ def __init__( search_key: str = None, tid: int = None, ): + # The page number. self.page_number = page_number + # The number of entries per page. Valid values: + # + # * 5 + # * 10 + # * 20 self.page_size = page_size + # The keyword that is used to search for permission templates. self.search_key = search_key + # The tenant ID. You can call the [GetUserActiveTenant](https://help.aliyun.com/document_detail/198073.html) or [ListUserTenants](https://help.aliyun.com/document_detail/198074.html) operation to obtain the tenant ID. self.tid = tid def validate(self): @@ -41671,10 +43322,15 @@ def __init__( name: str = None, template_id: int = None, ): + # The time when the permission template was created. The time is in the yyyy-MM-DD HH:mm:ss format. self.create_time = create_time + # The ID of the user who created the permission template. self.creator_id = creator_id + # The description of the permission template. self.description = description + # The name of the permission template. self.name = name + # The ID of the permission template. self.template_id = template_id def validate(self): @@ -41759,12 +43415,22 @@ def __init__( tid: int = None, total_count: int = None, ): + # The permission templates. self.authority_template_view_list = authority_template_view_list + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. You can use the request ID to locate logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success + # The ID of the tenant. self.tid = tid + # The total number of permission templates. self.total_count = total_count def validate(self): @@ -41866,13 +43532,43 @@ def __init__( tid: int = None, user_id: str = None, ): + # The type of databases. Valid values: + # + # * **MySQL**\ + # * **SQLServer**\ + # * **PostgreSQL**\ + # * **Oracle**\ + # * **DRDS**\ + # * **OceanBase**\ + # * **Mongo**\ + # * **Redis**\ self.db_type = db_type + # The type of the environment in which the database instance is deployed. Valid values: + # + # * **product**: production environment. + # * **dev**: development environment. + # * **pre**: pre-release environment. + # * **test**: test environment. + # * **sit**: system integration testing (SIT) environment. + # * **uat**: user acceptance testing (UAT) environment. + # * **pet**: stress testing environment. + # * **stag**: staging environment. self.env_type = env_type + # Specifies whether the database is a logical database. Valid values: + # + # * **true.**: The database is a logical database + # * **false**: The database is a physical database. self.logic = logic + # The page number. self.page_number = page_number + # The number of entries to return on each page. self.page_size = page_size + # The search keyword. self.search_key = search_key + # The ID of the tenant. self.tid = tid + # The ID of the user. You can call the [GetUser](https://help.aliyun.com/document_detail/465816.html) operation to query the user ID. + # # This parameter is required. self.user_id = user_id @@ -41932,9 +43628,17 @@ def __init__( message: str = None, perm_type: str = None, ): + # The type of object on which the operation is performed. self.ds_type = ds_type + # The time when the permissions expire. self.expire_date = expire_date + # If the permission source is a permission policy, the value of this parameter includes the policy name and the operations that are allowed for the user. self.message = message + # The type of the permission. Valid values: + # + # * **QUERY**: the query permission + # * **EXPORT**: the data export permission + # * **CORRECT**: the data change permission self.perm_type = perm_type def validate(self): @@ -41982,14 +43686,26 @@ def __init__( search_name: str = None, user_id: str = None, ): + # The database ID. self.db_id = db_id + # The engine of the database. self.db_type = db_type + # The type of the environment in which the database instance is deployed. self.env_type = env_type + # The ID of the instance. self.instance_id = instance_id + # Indicates whether the database is a logical database. Valid values: + # + # * **true.**: The database is a logical database + # * **false**: The database is a physical database. self.logic = logic + # The details of permissions. The format of the permission details varies with the permission source. For example, if the permission source is a normal permission, the following parameters are returned. self.permission_detail = permission_detail + # The database name. self.schema_name = schema_name + # The name that is used to search for the database. self.search_name = search_name + # The user IDs. self.user_id = user_id def validate(self): @@ -42052,7 +43768,9 @@ def __init__( databases: List[ListAuthorizedDatabasesForUserResponseBodyDatabases] = None, request_id: str = None, ): + # The names of the databases on which the user has permissions. self.databases = databases + # The request ID. You can use the ID to query logs and troubleshoot issues. self.request_id = request_id def validate(self): @@ -42139,12 +43857,42 @@ def __init__( tid: int = None, user_id: str = None, ): + # The type of databases. Valid values: + # + # * **MySQL**\ + # * **SQLServer**\ + # * **PostgreSQL**\ + # * **Oracle**\ + # * **DRDS**\ + # * **OceanBase**\ + # * **Mongo**\ + # * **Redis**\ self.db_type = db_type + # The type of the environment in which the database instance is deployed. Valid values: + # + # * **product**: production environment. + # * **dev**: development environment. + # * **pre**: pre-release environment. + # * **test**: test environment. + # * **sit**: system integration testing (SIT) environment. + # * **uat**: user acceptance testing (UAT) environment. + # * **pet**: stress testing environment. + # * **stag**: staging environment. self.env_type = env_type + # The page number. self.page_number = page_number + # The number of entries to return on each page. self.page_size = page_size + # The search keyword. self.search_key = search_key + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the DMS console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The ID of the user. You can call the [GetUser](https://help.aliyun.com/document_detail/465816.html) operation to query the user ID. + # + # > If IdentityType is set to USER, this parameter is required. + # # This parameter is required. self.user_id = user_id @@ -42200,9 +43948,17 @@ def __init__( message: str = None, perm_type: str = None, ): + # The type of object on which the operation is performed. self.ds_type = ds_type + # The time when the permission expires. self.expire_date = expire_date + # If the permission source is a permission policy, the value of this parameter includes the policy name and the operations that are allowed for the user. self.message = message + # The type of the permission. Valid values: + # + # * **QUERY**: the query permission + # * **EXPORT**: the data export permission + # * **CORRECT**: the data change permission self.perm_type = perm_type def validate(self): @@ -42250,14 +44006,23 @@ def __init__( user_id: str = None, user_name: str = None, ): + # The database engine that the instance runs. self.db_type = db_type + # The type of the environment to which the database instance belongs. self.env_type = env_type + # The endpoint that is used to connect to the instance. self.host = host + # The alias of the instance. self.instance_alias = instance_alias + # The ID of the instance. self.instance_id = instance_id + # The details of permissions. The format of the permission details varies with the permission source. For example, if the permission source is a normal permission, the following parameters are returned. self.permission_detail = permission_detail + # The port number that is used to connect to the instance. self.port = port + # The user IDs. self.user_id = user_id + # The user name. self.user_name = user_name def validate(self): @@ -42320,7 +44085,9 @@ def __init__( instances: List[ListAuthorizedInstancesForUserResponseBodyInstances] = None, request_id: str = None, ): + # The list of instances on which the user has permissions. self.instances = instances + # The request ID. You can use the ID to query logs and troubleshoot issues. self.request_id = request_id def validate(self): @@ -42406,12 +44173,27 @@ def __init__( search_key: str = None, tid: int = None, ): + # The database ID. The database can be a physical database or a logical database. + # + # * To query the ID of a physical database, call the [ListDatabases](https://help.aliyun.com/document_detail/141873.html) or [SearchDatabase](https://help.aliyun.com/document_detail/141876.html) operation. + # * To query the ID of a logical database, call the [ListLogicDatabases](https://help.aliyun.com/document_detail/141874.html) or [SearchDatabase](https://help.aliyun.com/document_detail/141876.html) operation. + # # This parameter is required. self.db_id = db_id + # Specifies whether the database is a logical database. Valid values: + # + # * **true.**: The database is a logical database + # * **false**: The database is a physical database. self.logic = logic + # The page number. self.page_number = page_number + # The number of entries to return on each page. self.page_size = page_size + # The keyword that is used for the search. self.search_key = search_key + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid def validate(self): @@ -42461,8 +44243,11 @@ def __init__( user_id: str = None, user_nick_name: str = None, ): + # The UID of the user\\"s Alibaba Cloud account. self.uid = uid + # The user IDs. self.user_id = user_id + # The nickname of the user. self.user_nick_name = user_nick_name def validate(self): @@ -42499,7 +44284,9 @@ def __init__( request_id: str = None, users: List[ListAuthorizedUsersForDatabaseResponseBodyUsers] = None, ): + # The request ID. You can use the ID to locate logs and troubleshoot issues. self.request_id = request_id + # The list of users that have permissions on the specified instance. self.users = users def validate(self): @@ -42584,11 +44371,19 @@ def __init__( search_key: str = None, tid: int = None, ): + # The ID of the instance. You can call the [ListInstances](https://help.aliyun.com/document_detail/141936.html) or [GetInstance](https://help.aliyun.com/document_detail/141567.html) operation to query the instance ID. + # # This parameter is required. self.instance_id = instance_id + # The page number. self.page_number = page_number + # The number of entries to return on each page. self.page_size = page_size + # The keyword that is used for the search. self.search_key = search_key + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid def validate(self): @@ -42635,9 +44430,13 @@ def __init__( user_nick_name: str = None, user_real_name: str = None, ): + # The UID of the user\\"s Alibaba Cloud account. self.uid = uid + # The ID of the user. self.user_id = user_id + # The nickname of the user. self.user_nick_name = user_nick_name + # The real name of the user. self.user_real_name = user_real_name def validate(self): @@ -42678,7 +44477,9 @@ def __init__( request_id: str = None, users: List[ListAuthorizedUsersForInstanceResponseBodyUsers] = None, ): + # The request ID. You can use the request ID to locate logs and troubleshoot issues. self.request_id = request_id + # The list of users that have permissions on the specified instance. self.users = users def validate(self): @@ -45368,10 +47169,15 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The keyword that is used to search for catalogs. self.search_key = search_key + # The ID of the tenant. You can call the [GetUserActiveTenant](https://help.aliyun.com/document_detail/198073.html) or [ListUserTenants](https://help.aliyun.com/document_detail/198074.html) operation to query the ID of the tenant. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -45415,10 +47221,18 @@ def __init__( request_id: str = None, success: bool = None, ): + # The list of catalogs. self.cata_log_list = cata_log_list + # The error code returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The ID of the request. You can use the request ID to locate logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -45517,14 +47331,28 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. You can view the name of the data catalog in the [DLF console](https://dlf.console.aliyun.com/cn-hangzhou/metadata/catalog?spm=a2c4g.11186623.0.0.5a225658pT4Dkr). + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The number of entries per page. Valid values: 1 to 100. self.max_results = max_results + # The pagination token that is used in the next request to retrieve a new page of results. Valid values: + # + # * If **NextToken** is empty, no next page exists. + # * If a value of **NextToken** is returned, the value indicates the token that is used for the next query. self.next_token = next_token + # The keyword that is used to search for databases. self.search_key = search_key + # The ID of the tenant. + # + # > To view the tenant ID, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -45582,12 +47410,22 @@ def __init__( request_id: str = None, success: bool = None, ): + # The list of databases. self.database_list = database_list + # The error code returned if the call failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The maximum number of entries to be returned in a request. You can use this parameter and NextToken to implement paging. self.max_results = max_results + # The pagination token that is used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists. Set this parameter to the value of NextToken obtained from the previous query. self.next_token = next_token + # The request ID. You can use the ID to locate logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -45695,15 +47533,30 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The name of the database. self.db_name = db_name + # The regular expression that is used to filter the returned function names. self.function_name_pattern = function_name_pattern + # The number of records per page. Valid values: 1 to 100. self.max_results = max_results + # The pagination token that is used in the next request to retrieve a new page of results. Valid values: + # + # * If **NextToken** is empty, there is no next page. + # * If a value of **NextToken** is returned, it indicates the token that is used for the next query. self.next_token = next_token + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the DMS console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -45765,12 +47618,22 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The information about functions. self.function_list = function_list + # The number of records per page. self.max_results = max_results + # The token that determines the start point of the next query. self.next_token = next_token + # The request ID. You can use the ID to query logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -45878,16 +47741,32 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The database name. + # # This parameter is required. self.db_name = db_name + # The regular expression that is used to filter the returned function names. self.function_name_pattern = function_name_pattern + # The number of records per page. Valid values: 1 to 100. self.max_results = max_results + # The pagination token that is used in the next request to retrieve a new page of results. Valid values: + # + # * If **NextToken** is empty, there is no next page. + # * If a value of **NextToken** is returned, it indicates the token that is used for the next query. self.next_token = next_token + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the DMS console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -45949,12 +47828,22 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The information about the list of function names. self.function_name_list = function_name_list + # The number of entries per page. self.max_results = max_results + # The token that determines the start point of the next query. self.next_token = next_token + # The request ID. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -46055,18 +47944,36 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The database name. + # # This parameter is required. self.db_name = db_name + # The number of records per page. Valid values: 0 to 100. self.max_results = max_results + # The pagination token that is used in the next request to retrieve a new page of results. Valid values: + # + # * If **NextToken** is empty, there is no next page. + # * If a value of **NextToken** is returned, it indicates the token that is used for the next query. self.next_token = next_token + # The partition names. self.part_names = part_names + # The table name. + # # This parameter is required. self.table_name = table_name + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -46134,18 +48041,36 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The database name. + # # This parameter is required. self.db_name = db_name + # The number of records per page. Valid values: 0 to 100. self.max_results = max_results + # The pagination token that is used in the next request to retrieve a new page of results. Valid values: + # + # * If **NextToken** is empty, there is no next page. + # * If a value of **NextToken** is returned, it indicates the token that is used for the next query. self.next_token = next_token + # The partition names. self.part_names_shrink = part_names_shrink + # The table name. + # # This parameter is required. self.table_name = table_name + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -46211,12 +48136,22 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The number of records per page. self.max_results = max_results + # The information about the token. self.next_token = next_token + # The queried partitions. self.partition_list = partition_list + # The request ID. You can use the ID to query logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The call was successful. + # * **false**\ self.success = success def validate(self): @@ -46325,19 +48260,43 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The catalog name. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The database name. + # # This parameter is required. self.db_name = db_name + # The expression of the query condition. The following operators are supported: + # + # * Comparison operators: =, <>, ! =, <, <=,>, and >=. Example: ds>20240101. + # * Logical operators: AND, OR, and NOT. Example: ds LIKE \\"20240%\\". + # * BETWEEN operator: Specifies a range. Example: ds BETWEEN 20240101 AND 20241201. + # * IN operator: Specifies a set of values. Example: ds IN (20240101, 20240102). + # # This parameter is required. self.filter = filter + # The number of entries per page. Valid values: 1 to 100. self.max_results = max_results + # The pagination token that is used in the next request to retrieve a new page of results. Valid value: + # + # * If **NextToken** is empty, no next page exists. + # * If a value of **NextToken** is returned, the value indicates the token that is used for the next query. self.next_token = next_token + # The table name. + # # This parameter is required. self.table_name = table_name + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -46403,12 +48362,22 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code returned if the request failed. self.error_code = error_code + # The error message returned if the request failed. self.error_message = error_message + # The number of entries per page. self.max_results = max_results + # The information about the token. self.next_token = next_token + # The queried partitions. self.partition_list = partition_list + # The ID of the request. You can use the ID to locate logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request succeeded. + # * **false**: The request failed. self.success = success def validate(self): @@ -46516,17 +48485,34 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The database name. + # # This parameter is required. self.db_name = db_name + # The number of records per page. Valid values: 1 to 100. self.max_results = max_results + # The pagination token that is used in the next request to retrieve a new page of results. Valid values: + # + # * If **NextToken** is empty, there is no next page. + # * If a value of **NextToken** is returned, the value indicates the token that is used for the next query. self.next_token = next_token + # The name of the table. + # # This parameter is required. self.table_name = table_name + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the DMS console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -46588,12 +48574,22 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The number of records per page. self.max_results = max_results + # The information about the token. self.next_token = next_token + # The partition names. self.partition_name_list = partition_name_list + # The request ID. You can use the request ID to locate logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -46694,17 +48690,40 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The database name. + # # This parameter is required. self.db_name = db_name + # The number of records per page. Valid values: 1 to 100. self.max_results = max_results + # The pagination token that is used in the next request to retrieve a new page of results. Valid values: + # + # * If **NextToken** is empty, there is no next page. + # * If a value of **NextToken** is returned, it indicates the token that is used for the next query. self.next_token = next_token + # The regular expression that is used to match the names of metadata tables. self.table_name_pattern = table_name_pattern + # The type of the data table. Valid values: + # + # * MANAGED_TABLE + # * EXTERNAL_TABLE + # * VIRTUAL_VIEW + # * INDEX_TABLE + # * MATERIALIZED_VIEW self.table_type = table_type + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the DMS console and move the pointer over the profile picture in the upper-right corner. For more information, see [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -46770,12 +48789,22 @@ def __init__( success: bool = None, table_list: List[DLTable] = None, ): + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The number of records per page. self.max_results = max_results + # The information about the token. self.next_token = next_token + # The request ID. You can use the request ID to locate logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success + # The details of the tables. self.table_list = table_list def validate(self): @@ -46884,17 +48913,40 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The database name. + # # This parameter is required. self.db_name = db_name + # The number of records per page. Valid values: 1 to 100. self.max_results = max_results + # The pagination token that is used in the next request to retrieve a new page of results. Valid values: + # + # * If **NextToken** is empty, there is no next page. + # * If a value of **NextToken** is returned, it indicates the token that is used for the next query. self.next_token = next_token + # The regular expression that is used to match the table name. self.table_name_pattern = table_name_pattern + # The type of the data table. Valid values: + # + # * MANAGED_TABLE + # * EXTERNAL_TABLE + # * VIRTUAL_VIEW + # * INDEX_TABLE + # * MATERIALIZED_VIEW self.table_type = table_type + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the DMS console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -46960,12 +49012,22 @@ def __init__( success: bool = None, table_name_list: List[str] = None, ): + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The number of records per page. self.max_results = max_results + # The information about the token. self.next_token = next_token + # The request ID. You can use the ID to query logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success + # The table names. self.table_name_list = table_name_list def validate(self): @@ -47065,16 +49127,27 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog to query. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The name of the database to which the table belongs. + # # This parameter is required. self.db_name = db_name + # The page number. self.page = page + # The number of entries per page. self.rows = rows + # The keyword that is used to search for tables. self.search_key = search_key + # The tenant ID. You can call the [GetUserActiveTenant](https://help.aliyun.com/document_detail/198073.html) operation to query the tenant ID. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -47135,11 +49208,20 @@ def __init__( tablebase_info_list: List[DLTablebaseInfo] = None, total_count: str = None, ): + # The error code returned if the request fails. self.error_code = error_code + # The error message returned if the request failed. self.error_message = error_message + # The request ID. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success + # The list of tables in the data lake. self.tablebase_info_list = tablebase_info_list + # The number of tables that meet the conditions. self.total_count = total_count def validate(self): @@ -52246,11 +54328,17 @@ def __init__( parent_category_id: int = None, tid: int = None, ): + # The number of the page to return. Pages start from page 1. + # # This parameter is required. self.page_number = page_number + # The number of entries to return on each page. + # # This parameter is required. self.page_size = page_size + # The parent category ID. self.parent_category_id = parent_category_id + # The tenant ID. You can call the [GetUserActiveTenant](https://help.aliyun.com/document_detail/198073.html) or [ListUserTenants](https://help.aliyun.com/document_detail/198074.html) operation to query the tenant ID. self.tid = tid def validate(self): @@ -52330,11 +54418,20 @@ def __init__( success: bool = None, total_count: int = None, ): + # The list of categories. self.category_list = category_list + # The error code returned if the request fails. self.error_code = error_code + # The error message returned if the request fails. self.error_message = error_message + # The ID of the request. self.request_id = request_id + # Indicates whether the call was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success + # The total number of entries returned. self.total_count = total_count def validate(self): @@ -54851,13 +56948,29 @@ def __init__( table_name: str = None, tid: int = None, ): + # The name of the sensitive field. You can call the [ListSensitiveColumns](https://help.aliyun.com/document_detail/188103.html) operation to query the name of the sensitive field. + # + # > You can also call the [ListColumns](https://help.aliyun.com/document_detail/141870.html) operation to query the name of the sensitive field. self.column_name = column_name + # The ID of the instance. You can call the [ListInstances](https://help.aliyun.com/document_detail/141936.html) or [GetInstance](https://help.aliyun.com/document_detail/141567.html) operation to query the instance ID. + # # This parameter is required. self.instance_id = instance_id + # The page number of the returned page. self.page_number = page_number + # The number of entries to return on each page. self.page_size = page_size + # The database name. You can also call the [SearchDatabase](https://help.aliyun.com/document_detail/141876.html) operation to query the name of the database. + # + # > You can also call the [ListDatabases](https://help.aliyun.com/document_detail/141873.html) operation to query the value of the SchemaName parameter of a physical database, or the [ListLogicDatabases](https://help.aliyun.com/document_detail/141874.html) operation to query the value of the SchemaName parameter of a logical database. self.schema_name = schema_name + # The name of the table. You can call the [ListSensitiveColumns](https://help.aliyun.com/document_detail/188103.html) operation to query the table name. + # + # > You can also call the [ListTables](https://help.aliyun.com/document_detail/141878.html) operation to query the table name. self.table_name = table_name + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the DMS console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid def validate(self): @@ -54910,7 +57023,9 @@ def __init__( rule_id: int = None, rule_name: str = None, ): + # The masking algorithm ID. self.rule_id = rule_id + # The masking algorithm name. self.rule_name = rule_name def validate(self): @@ -54943,7 +57058,9 @@ def __init__( rule_id: int = None, rule_name: str = None, ): + # The ID of the partial masking algorithm. self.rule_id = rule_id + # The partial masking algorithm name. self.rule_name = rule_name def validate(self): @@ -55020,16 +57137,31 @@ def __init__( table_name: str = None, user_sensitivity_level: str = None, ): + # The name of the category. self.category_name = category_name + # The name of the sensitive field. self.column_name = column_name + # The information about the default masking algorithm. self.default_desensitization_rule = default_desensitization_rule + # The ID of the instance. self.instance_id = instance_id + # Indicates whether the sensitive field is displayed in plaintext. self.is_plain = is_plain + # The sample data. self.sample_data = sample_data + # The name of the database. self.schema_name = schema_name + # The sensitivity level of the field. Valid values: + # + # * Low + # * Medium + # * High self.security_level = security_level + # The list of partial masking algorithms. self.semi_desensitization_rule_list = semi_desensitization_rule_list + # The name of the table. self.table_name = table_name + # The user-defined sensitivity level. self.user_sensitivity_level = user_sensitivity_level def validate(self): @@ -55142,11 +57274,20 @@ def __init__( success: bool = None, total_count: int = None, ): + # The error code returned if the request failed. self.error_code = error_code + # The error message returned if the request failed. self.error_message = error_message + # The request ID. You can use the request ID to locate logs and troubleshoot issues. self.request_id = request_id + # The details of the sensitive field. self.sensitive_column_list = sensitive_column_list + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success + # The total number of entries that are returned. self.total_count = total_count def validate(self): @@ -56641,11 +58782,19 @@ def __init__( table_schema_name: str = None, tid: int = None, ): + # The ID of a physical database: You can call the [ListDatabases](https://help.aliyun.com/document_detail/141873.html) or [SearchDatabase](https://help.aliyun.com/document_detail/141876.html) operation to obtain the physical database ID. + # # This parameter is required. self.db_id = db_id + # The table name. + # + # > You can also call the [ListTables](https://help.aliyun.com/document_detail/141878.html) operation to query the table name. + # # This parameter is required. self.table_name = table_name + # The schema name of the table, which is required only for SQL Server instances. self.table_schema_name = table_schema_name + # The tenant ID. You can call the [GetUserActiveTenant](https://help.aliyun.com/document_detail/198073.html) or [ListUserTenants](https://help.aliyun.com/document_detail/198074.html) operation to obtain the tenant ID. self.tid = tid def validate(self): @@ -56697,18 +58846,49 @@ def __init__( security_level: str = None, sensitive: bool = None, ): + # Indicates whether the field is an auto-increment field. Valid values: + # + # * true: The field is an auto-increment field. + # * false: The field is not an auto-increment field. self.auto_increment = auto_increment + # The ID of the field. self.column_id = column_id + # The field name. self.column_name = column_name + # The data type of the field. self.column_type = column_type + # The length of the field. self.data_length = data_length + # The number of valid digits for the column. self.data_precision = data_precision + # The number of decimal places of the field data. self.data_scale = data_scale + # The default value of the column. self.default_value = default_value + # The description of the field. self.description = description + # The type of the masking algorithm that is used for the field. Valid values: + # + # * null: No masking algorithm is used. + # * DEFAULT: A full masking algorithm is used. + # * FIX_POS: The fixed position is masked. + # * FIX_CHAR: The fixed characters are replaced. self.function_type = function_type + # Indicates whether the field can be empty. Valid values: + # + # * true: The field can be empty. + # * false: The field cannot be empty. self.nullable = nullable + # The security level of the field. Valid values: + # + # * INNER: The field is an internal field but not sensitive. + # * SENSITIVE: The field is sensitive. + # * CONFIDENTIAL: The field is a confidential column. self.security_level = security_level + # Indicates whether the field is a sensitive column. Valid values: + # + # * true: The field is a sensitive field. + # * false: The field is not a sensitive field. self.sensitive = sensitive def validate(self): @@ -56823,10 +59003,18 @@ def __init__( request_id: str = None, success: bool = None, ): + # The details about fields in the table. self.column_list = column_list + # The error code returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -57305,12 +59493,19 @@ def __init__( page_size: int = None, tid: int = None, ): + # The category ID. + # # This parameter is required. self.category_id = category_id + # The page number. + # # This parameter is required. self.page_number = page_number + # The number of entries to return per page. + # # This parameter is required. self.page_size = page_size + # The ID of the tenant. You can call the [GetUserActiveTenant](https://help.aliyun.com/document_detail/198073.html) or [ListUserTenants](https://help.aliyun.com/document_detail/198074.html) operation to obtain the tenant ID. self.tid = tid def validate(self): @@ -57390,11 +59585,20 @@ def __init__( success: bool = None, total_count: int = None, ): + # List of table information associated with the asset category. self.entity_list = entity_list + # The error code returned if the request failed. self.error_code = error_code + # The error message returned if the request failed. self.error_message = error_message + # The request ID. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request succeeded. + # * **false**: The request failed. self.success = success + # The total number of entries returned. self.total_count = total_count def validate(self): @@ -59428,25 +61632,317 @@ def from_map(self, m: dict = None): if m.get('statusCode') is not None: self.status_code = m.get('statusCode') if m.get('body') is not None: - temp_model = ListTaskFlowsByPageResponseBody() + temp_model = ListTaskFlowsByPageResponseBody() + self.body = temp_model.from_map(m['body']) + return self + + +class ListTasksInTaskFlowRequest(TeaModel): + def __init__( + self, + dag_id: int = None, + tid: int = None, + ): + # The ID of the task flow. You can call the [ListTaskFlow](https://help.aliyun.com/document_detail/424565.html) or [ListLhTaskFlowAndScenario](https://help.aliyun.com/document_detail/426672.html) operation to query the task flow ID. + # + # This parameter is required. + self.dag_id = dag_id + # The ID of the tenant. + # + # > To view the ID of the tenant, move the pointer over the profile picture in the upper-right corner of the Data Management (DMS) console. For more information, see [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html). + self.tid = tid + + def validate(self): + pass + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.dag_id is not None: + result['DagId'] = self.dag_id + if self.tid is not None: + result['Tid'] = self.tid + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('DagId') is not None: + self.dag_id = m.get('DagId') + if m.get('Tid') is not None: + self.tid = m.get('Tid') + return self + + +class ListTasksInTaskFlowResponseBodyTasksTask(TeaModel): + def __init__( + self, + graph_param: str = None, + node_config: str = None, + node_content: str = None, + node_id: str = None, + node_name: str = None, + node_output: str = None, + node_type: str = None, + time_variables: str = None, + ): + # The position of the node on the Directed Acyclic Graph (DAG). + self.graph_param = graph_param + # The advanced configuration for the node. + self.node_config = node_config + # The configuration for the node. + self.node_content = node_content + # The ID of the node. + self.node_id = node_id + # The name of the node. + self.node_name = node_name + # The output variables for the task. + self.node_output = node_output + # The type of the node. For more information about the valid values for this parameter, see [NodeType parameter](https://help.aliyun.com/document_detail/424705.html). + self.node_type = node_type + # The time variables configured for the node. + self.time_variables = time_variables + + def validate(self): + pass + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.graph_param is not None: + result['GraphParam'] = self.graph_param + if self.node_config is not None: + result['NodeConfig'] = self.node_config + if self.node_content is not None: + result['NodeContent'] = self.node_content + if self.node_id is not None: + result['NodeId'] = self.node_id + if self.node_name is not None: + result['NodeName'] = self.node_name + if self.node_output is not None: + result['NodeOutput'] = self.node_output + if self.node_type is not None: + result['NodeType'] = self.node_type + if self.time_variables is not None: + result['TimeVariables'] = self.time_variables + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('GraphParam') is not None: + self.graph_param = m.get('GraphParam') + if m.get('NodeConfig') is not None: + self.node_config = m.get('NodeConfig') + if m.get('NodeContent') is not None: + self.node_content = m.get('NodeContent') + if m.get('NodeId') is not None: + self.node_id = m.get('NodeId') + if m.get('NodeName') is not None: + self.node_name = m.get('NodeName') + if m.get('NodeOutput') is not None: + self.node_output = m.get('NodeOutput') + if m.get('NodeType') is not None: + self.node_type = m.get('NodeType') + if m.get('TimeVariables') is not None: + self.time_variables = m.get('TimeVariables') + return self + + +class ListTasksInTaskFlowResponseBodyTasks(TeaModel): + def __init__( + self, + task: List[ListTasksInTaskFlowResponseBodyTasksTask] = None, + ): + self.task = task + + def validate(self): + if self.task: + for k in self.task: + if k: + k.validate() + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + result['Task'] = [] + if self.task is not None: + for k in self.task: + result['Task'].append(k.to_map() if k else None) + return result + + def from_map(self, m: dict = None): + m = m or dict() + self.task = [] + if m.get('Task') is not None: + for k in m.get('Task'): + temp_model = ListTasksInTaskFlowResponseBodyTasksTask() + self.task.append(temp_model.from_map(k)) + return self + + +class ListTasksInTaskFlowResponseBody(TeaModel): + def __init__( + self, + error_code: str = None, + error_message: str = None, + request_id: str = None, + success: bool = None, + tasks: ListTasksInTaskFlowResponseBodyTasks = None, + ): + # The error code returned if the request failed. + self.error_code = error_code + # The error message returned if the request failed. + self.error_message = error_message + # The ID of the request. You can use the ID to locate logs and troubleshoot issues. + self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. + self.success = success + # The tasks in the task flow. + self.tasks = tasks + + def validate(self): + if self.tasks: + self.tasks.validate() + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.error_code is not None: + result['ErrorCode'] = self.error_code + if self.error_message is not None: + result['ErrorMessage'] = self.error_message + if self.request_id is not None: + result['RequestId'] = self.request_id + if self.success is not None: + result['Success'] = self.success + if self.tasks is not None: + result['Tasks'] = self.tasks.to_map() + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('ErrorCode') is not None: + self.error_code = m.get('ErrorCode') + if m.get('ErrorMessage') is not None: + self.error_message = m.get('ErrorMessage') + if m.get('RequestId') is not None: + self.request_id = m.get('RequestId') + if m.get('Success') is not None: + self.success = m.get('Success') + if m.get('Tasks') is not None: + temp_model = ListTasksInTaskFlowResponseBodyTasks() + self.tasks = temp_model.from_map(m['Tasks']) + return self + + +class ListTasksInTaskFlowResponse(TeaModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + body: ListTasksInTaskFlowResponseBody = None, + ): + self.headers = headers + self.status_code = status_code + self.body = body + + def validate(self): + if self.body: + self.body.validate() + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.headers is not None: + result['headers'] = self.headers + if self.status_code is not None: + result['statusCode'] = self.status_code + if self.body is not None: + result['body'] = self.body.to_map() + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + if m.get('body') is not None: + temp_model = ListTasksInTaskFlowResponseBody() self.body = temp_model.from_map(m['body']) return self -class ListTasksInTaskFlowRequest(TeaModel): +class ListUserOwnedResourcesRequest(TeaModel): def __init__( self, - dag_id: int = None, + database_name: str = None, + db_type: str = None, + env_type: str = None, + logic: bool = None, + owner_type: str = None, + page_number: int = None, + page_size: int = None, tid: int = None, + user_id: str = None, ): - # The ID of the task flow. You can call the [ListTaskFlow](https://help.aliyun.com/document_detail/424565.html) or [ListLhTaskFlowAndScenario](https://help.aliyun.com/document_detail/426672.html) operation to query the task flow ID. + # The database name. + self.database_name = database_name + # The type of the database instance. For more information about the valid values of this parameter, see [DbType parameter](https://help.aliyun.com/document_detail/198106.html). + self.db_type = db_type + # The type of the environment in which the database instance is deployed. Valid values: + # + # * **product**: production environment. + # * **dev**: development environment. + # * **pre**: pre-release environment. + # * **test**: test environment. + # * **sit**: system integration testing (SIT) environment. + # * **uat**: user acceptance testing (UAT) environment. + # * **pet**: stress testing environment. + # * **stag**: staging environment. + self.env_type = env_type + # Specifies whether the database is a logical database. Valid values: + # + # * **true.**: The database is a logical database + # * **false**: The database is a physical database. + self.logic = logic + # The type of the owner. Valid values: + # + # * INSTANCE: an owner of an instance. + # * DATABASE: an owner of a physical database. + # * TABLE: an owner of a physical table. # # This parameter is required. - self.dag_id = dag_id + self.owner_type = owner_type + # The page number. + self.page_number = page_number + # The number of entries to return on each page. + self.page_size = page_size # The ID of the tenant. # - # > To view the ID of the tenant, move the pointer over the profile picture in the upper-right corner of the Data Management (DMS) console. For more information, see [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html). + # > To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The ID of the user. + # + # This parameter is required. + self.user_id = user_id def validate(self): pass @@ -59457,49 +61953,95 @@ def to_map(self): return _map result = dict() - if self.dag_id is not None: - result['DagId'] = self.dag_id + if self.database_name is not None: + result['DatabaseName'] = self.database_name + if self.db_type is not None: + result['DbType'] = self.db_type + if self.env_type is not None: + result['EnvType'] = self.env_type + if self.logic is not None: + result['Logic'] = self.logic + if self.owner_type is not None: + result['OwnerType'] = self.owner_type + if self.page_number is not None: + result['PageNumber'] = self.page_number + if self.page_size is not None: + result['PageSize'] = self.page_size if self.tid is not None: result['Tid'] = self.tid + if self.user_id is not None: + result['UserId'] = self.user_id return result def from_map(self, m: dict = None): m = m or dict() - if m.get('DagId') is not None: - self.dag_id = m.get('DagId') + if m.get('DatabaseName') is not None: + self.database_name = m.get('DatabaseName') + if m.get('DbType') is not None: + self.db_type = m.get('DbType') + if m.get('EnvType') is not None: + self.env_type = m.get('EnvType') + if m.get('Logic') is not None: + self.logic = m.get('Logic') + if m.get('OwnerType') is not None: + self.owner_type = m.get('OwnerType') + if m.get('PageNumber') is not None: + self.page_number = m.get('PageNumber') + if m.get('PageSize') is not None: + self.page_size = m.get('PageSize') if m.get('Tid') is not None: self.tid = m.get('Tid') + if m.get('UserId') is not None: + self.user_id = m.get('UserId') return self -class ListTasksInTaskFlowResponseBodyTasksTask(TeaModel): +class ListUserOwnedResourcesResponseBodyDataResourceList(TeaModel): def __init__( self, - graph_param: str = None, - node_config: str = None, - node_content: str = None, - node_id: str = None, - node_name: str = None, - node_output: str = None, - node_type: str = None, - time_variables: str = None, + alias: str = None, + db_id: str = None, + db_instance_id: str = None, + db_type: str = None, + env_type: str = None, + host: str = None, + instance_id: str = None, + logic: bool = None, + port: int = None, + schema_name: str = None, + search_name: str = None, + table_id: str = None, + table_name: str = None, ): - # The position of the node on the Directed Acyclic Graph (DAG). - self.graph_param = graph_param - # The advanced configuration for the node. - self.node_config = node_config - # The configuration for the node. - self.node_content = node_content - # The ID of the node. - self.node_id = node_id - # The name of the node. - self.node_name = node_name - # The output variables for the task. - self.node_output = node_output - # The type of the node. For more information about the valid values for this parameter, see [NodeType parameter](https://help.aliyun.com/document_detail/424705.html). - self.node_type = node_type - # The time variables configured for the node. - self.time_variables = time_variables + # The alias of the instance. + self.alias = alias + # The ID of the database in DMS. + self.db_id = db_id + # The ID of the instance to which the database belongs. + self.db_instance_id = db_instance_id + # The database engine type. For more information about the valid values of the DbType parameter, see [DbType parameter](https://help.aliyun.com/document_detail/198106.html). + self.db_type = db_type + # The type of the environment to which the database instance belongs. + self.env_type = env_type + # The endpoint of the instance to which the database belongs. + self.host = host + # The ID of the instance. + self.instance_id = instance_id + # Indicates whether the database is a logical database. Valid values: + # + # * **true**: The database is a logical database + # * **false**: The database is a physical database. + self.logic = logic + # The connection port of the instance to which the database belongs. + self.port = port + # The name of the database. + self.schema_name = schema_name + # The query name of the database. + self.search_name = search_name + # The table ID. + self.table_id = table_id + # The table name. + self.table_name = table_name def validate(self): pass @@ -59510,55 +62052,75 @@ def to_map(self): return _map result = dict() - if self.graph_param is not None: - result['GraphParam'] = self.graph_param - if self.node_config is not None: - result['NodeConfig'] = self.node_config - if self.node_content is not None: - result['NodeContent'] = self.node_content - if self.node_id is not None: - result['NodeId'] = self.node_id - if self.node_name is not None: - result['NodeName'] = self.node_name - if self.node_output is not None: - result['NodeOutput'] = self.node_output - if self.node_type is not None: - result['NodeType'] = self.node_type - if self.time_variables is not None: - result['TimeVariables'] = self.time_variables + if self.alias is not None: + result['Alias'] = self.alias + if self.db_id is not None: + result['DbId'] = self.db_id + if self.db_instance_id is not None: + result['DbInstanceId'] = self.db_instance_id + if self.db_type is not None: + result['DbType'] = self.db_type + if self.env_type is not None: + result['EnvType'] = self.env_type + if self.host is not None: + result['Host'] = self.host + if self.instance_id is not None: + result['InstanceId'] = self.instance_id + if self.logic is not None: + result['Logic'] = self.logic + if self.port is not None: + result['Port'] = self.port + if self.schema_name is not None: + result['SchemaName'] = self.schema_name + if self.search_name is not None: + result['SearchName'] = self.search_name + if self.table_id is not None: + result['TableId'] = self.table_id + if self.table_name is not None: + result['TableName'] = self.table_name return result def from_map(self, m: dict = None): m = m or dict() - if m.get('GraphParam') is not None: - self.graph_param = m.get('GraphParam') - if m.get('NodeConfig') is not None: - self.node_config = m.get('NodeConfig') - if m.get('NodeContent') is not None: - self.node_content = m.get('NodeContent') - if m.get('NodeId') is not None: - self.node_id = m.get('NodeId') - if m.get('NodeName') is not None: - self.node_name = m.get('NodeName') - if m.get('NodeOutput') is not None: - self.node_output = m.get('NodeOutput') - if m.get('NodeType') is not None: - self.node_type = m.get('NodeType') - if m.get('TimeVariables') is not None: - self.time_variables = m.get('TimeVariables') + if m.get('Alias') is not None: + self.alias = m.get('Alias') + if m.get('DbId') is not None: + self.db_id = m.get('DbId') + if m.get('DbInstanceId') is not None: + self.db_instance_id = m.get('DbInstanceId') + if m.get('DbType') is not None: + self.db_type = m.get('DbType') + if m.get('EnvType') is not None: + self.env_type = m.get('EnvType') + if m.get('Host') is not None: + self.host = m.get('Host') + if m.get('InstanceId') is not None: + self.instance_id = m.get('InstanceId') + if m.get('Logic') is not None: + self.logic = m.get('Logic') + if m.get('Port') is not None: + self.port = m.get('Port') + if m.get('SchemaName') is not None: + self.schema_name = m.get('SchemaName') + if m.get('SearchName') is not None: + self.search_name = m.get('SearchName') + if m.get('TableId') is not None: + self.table_id = m.get('TableId') + if m.get('TableName') is not None: + self.table_name = m.get('TableName') return self -class ListTasksInTaskFlowResponseBodyTasks(TeaModel): +class ListUserOwnedResourcesResponseBodyData(TeaModel): def __init__( self, - task: List[ListTasksInTaskFlowResponseBodyTasksTask] = None, + resource_list: List[ListUserOwnedResourcesResponseBodyDataResourceList] = None, ): - self.task = task + self.resource_list = resource_list def validate(self): - if self.task: - for k in self.task: + if self.resource_list: + for k in self.resource_list: if k: k.validate() @@ -59568,48 +62130,48 @@ def to_map(self): return _map result = dict() - result['Task'] = [] - if self.task is not None: - for k in self.task: - result['Task'].append(k.to_map() if k else None) + result['resourceList'] = [] + if self.resource_list is not None: + for k in self.resource_list: + result['resourceList'].append(k.to_map() if k else None) return result def from_map(self, m: dict = None): m = m or dict() - self.task = [] - if m.get('Task') is not None: - for k in m.get('Task'): - temp_model = ListTasksInTaskFlowResponseBodyTasksTask() - self.task.append(temp_model.from_map(k)) + self.resource_list = [] + if m.get('resourceList') is not None: + for k in m.get('resourceList'): + temp_model = ListUserOwnedResourcesResponseBodyDataResourceList() + self.resource_list.append(temp_model.from_map(k)) return self -class ListTasksInTaskFlowResponseBody(TeaModel): +class ListUserOwnedResourcesResponseBody(TeaModel): def __init__( self, + data: ListUserOwnedResourcesResponseBodyData = None, error_code: str = None, error_message: str = None, request_id: str = None, success: bool = None, - tasks: ListTasksInTaskFlowResponseBodyTasks = None, + total_count: int = None, ): + # Indicates whether the request was successful. Valid values: + self.data = data # The error code returned if the request failed. self.error_code = error_code - # The error message returned if the request failed. + # The error message that is returned if the request failed. self.error_message = error_message - # The ID of the request. You can use the ID to locate logs and troubleshoot issues. + # The request ID. You can use the request ID to locate logs and troubleshoot issues. self.request_id = request_id - # Indicates whether the request was successful. Valid values: - # - # * **true**: The request was successful. - # * **false**: The request failed. + # Indicates whether the request was successful. self.success = success - # The tasks in the task flow. - self.tasks = tasks + # The total number of entries returned. By default, this parameter is not returned. + self.total_count = total_count def validate(self): - if self.tasks: - self.tasks.validate() + if self.data: + self.data.validate() def to_map(self): _map = super().to_map() @@ -59617,6 +62179,8 @@ def to_map(self): return _map result = dict() + if self.data is not None: + result['Data'] = self.data.to_map() if self.error_code is not None: result['ErrorCode'] = self.error_code if self.error_message is not None: @@ -59625,12 +62189,15 @@ def to_map(self): result['RequestId'] = self.request_id if self.success is not None: result['Success'] = self.success - if self.tasks is not None: - result['Tasks'] = self.tasks.to_map() + if self.total_count is not None: + result['TotalCount'] = self.total_count return result def from_map(self, m: dict = None): m = m or dict() + if m.get('Data') is not None: + temp_model = ListUserOwnedResourcesResponseBodyData() + self.data = temp_model.from_map(m['Data']) if m.get('ErrorCode') is not None: self.error_code = m.get('ErrorCode') if m.get('ErrorMessage') is not None: @@ -59639,18 +62206,17 @@ def from_map(self, m: dict = None): self.request_id = m.get('RequestId') if m.get('Success') is not None: self.success = m.get('Success') - if m.get('Tasks') is not None: - temp_model = ListTasksInTaskFlowResponseBodyTasks() - self.tasks = temp_model.from_map(m['Tasks']) + if m.get('TotalCount') is not None: + self.total_count = m.get('TotalCount') return self -class ListTasksInTaskFlowResponse(TeaModel): +class ListUserOwnedResourcesResponse(TeaModel): def __init__( self, headers: Dict[str, str] = None, status_code: int = None, - body: ListTasksInTaskFlowResponseBody = None, + body: ListUserOwnedResourcesResponseBody = None, ): self.headers = headers self.status_code = status_code @@ -59681,7 +62247,7 @@ def from_map(self, m: dict = None): if m.get('statusCode') is not None: self.status_code = m.get('statusCode') if m.get('body') is not None: - temp_model = ListTasksInTaskFlowResponseBody() + temp_model = ListUserOwnedResourcesResponseBody() self.body = temp_model.from_map(m['body']) return self @@ -61547,14 +64113,24 @@ def __init__( vpc_id: str = None, workspace_id: int = None, ): + # Specifies whether the current user has joined the workspace. self.already_joined = already_joined self.owner_id = owner_id + # The page number. self.page_number = page_number + # The number of entries per page. self.page_size = page_size + # The region in which the bucket is located. self.region = region + # The search keyword. Fuzzy match is supported. self.search_key = search_key + # The service account ID. self.service_account_id = service_account_id + # The virtual private cloud (VPC) ID. + # + # > This parameter cannot be used as a filter. self.vpc_id = vpc_id + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -61632,24 +64208,43 @@ def __init__( workspace_id: int = None, workspace_name: str = None, ): + # Whether the current user has joined the workspace. self.already_joined = already_joined + # The ID of the creator. self.creator_id = creator_id + # The nickname of the creator. self.creator_nick_name = creator_nick_name + # The Alibaba Cloud account UID of the creator. self.creator_uid = creator_uid + # The description of the workspace. self.description = description + # The creation time. self.gmt_create = gmt_create + # The update time. self.gmt_modified = gmt_modified + # The name of the workspace. self.name = name + # The owner ID. self.owner_id = owner_id + # The nickname of the owner. self.owner_nick_name = owner_nick_name + # The Alibaba Cloud UID of the owner. self.owner_uid = owner_uid + # The region ID. self.region = region + # The ID of the service account. self.service_account_id = service_account_id + # The nickname of the service account. self.service_account_nick_name = service_account_nick_name + # The Alibaba Cloud account UID of the service account. self.service_account_uid = service_account_uid + # The ID of the tenant to which the workspace belongs. self.tenant_id = tenant_id + # The VPC ID. self.vpc_id = vpc_id + # The workspace ID. self.workspace_id = workspace_id + # The name of the workspace. self.workspace_name = workspace_name def validate(self): @@ -61791,13 +64386,24 @@ def __init__( success: bool = None, total_count: int = None, ): + # The dataset. self.data = data + # The error code. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The total number of workspaces that meet the condition, which is the same as the TotalCount parameter. self.max_results = max_results + # NextToken does not take effect. self.next_token = next_token + # The request ID. self.request_id = request_id + # Indicates whether the call was successful. Valid values: + # + # * **true**: The request succeeded. + # * **false**: The request failed. self.success = success + # The total number of workspaces that meet the conditions. self.total_count = total_count def validate(self): @@ -62427,36 +65033,138 @@ def __init__( use_ssl: int = None, vpc_id: str = None, ): + # The name of the database link for cross-database queries. + # + # > + # + # * This property must be specified when UseDsql is set to 1. + # + # * The name can contain only lowercase letters and underscores (_). + # + # * The name must be unique within a tenant. self.data_link_name = data_link_name + # The password of the account that is used to log on to the database instance. self.database_password = database_password + # The account that is used to log on to the database instance. self.database_user = database_user + # The ID of the user who assumes the database administrator (DBA) role. You can call the [ListUsers](https://help.aliyun.com/document_detail/141938.html) or [GetInstance](https://help.aliyun.com/document_detail/141567.html) operation to obtain the value of this parameter. self.dba_id = dba_id + # Specifies whether to enable lock-free schema change. Valid values: + # + # * **0**: Disable Lock-free Schema Change. + # * **1**: MySQL native online DDL first. + # * **2**: DMS native online DDL first. + # + # > Supported databases include ApsaraDB RDS for MySQL, PolarDB for MySQL, ApsaraDB MyBase for MySQL, and third-party MySQL databases. self.ddl_online = ddl_online + # The ID of the ECS instance. + # + # > This parameter is required if InstanceSource is set to ECS_OWN. self.ecs_instance_id = ecs_instance_id + # The region in which the ECS instance resides. + # + # > This parameter is required if InstanceSource is set to RDS, ECS_OWN, or VPC_IDC. self.ecs_region = ecs_region + # Specifies whether to enable Security Collaboration for the database instance. Valid values: + # + # * Y: Enable. + # * N: Disable. self.enable_sell_common = enable_sell_common + # Specifies whether to enable sensitive data protection. Valid values: + # + # * Y: Enable. + # * N: Disable. self.enable_sell_sitd = enable_sell_sitd + # Specifies whether to enable Stable Change for the database instance. Valid values: + # + # * Y: Enable. + # * N: Disable. self.enable_sell_stable = enable_sell_stable + # Specifies whether to enable the security hosting feature for the database instance. Valid values: + # + # * Y: Enable. + # * N: Disable. self.enable_sell_trust = enable_sell_trust + # The type of the environment in which the database instance is deployed. Valid values: + # + # * **product**: production environment. + # * **dev**: development environment. + # * **pre**: pre-release environment. + # * **test**: test environment. + # * **sit**: system integration testing (SIT) environment. + # * **uat**: user acceptance testing (UAT) environment. + # * **pet**: stress testing environment. + # * **stag**: staging environment. self.env_type = env_type + # The timeout period for exporting data from the database instance. Unit: seconds. self.export_timeout = export_timeout + # The endpoint that is used to connect to the database instance. self.host = host + # The alias of the database instance. Specify an alias that can help you quickly identify the database instance in Data Management (DMS). self.instance_alias = instance_alias + # The ID of the instance. You can call the [ListInstances](https://help.aliyun.com/document_detail/141936.html) or [GetInstance](https://help.aliyun.com/document_detail/141567.html) operation to query the instance ID. + # # This parameter is required. self.instance_id = instance_id + # The source of the database instance. Valid values: + # + # * **PUBLIC_OWN**: a self-managed database instance that is deployed on the Internet. + # * **RDS**: an ApsaraDB RDS instance. + # * **ECS_OWN**: a self-managed database instance that is deployed on an Elastic Compute Service (ECS) instance. + # * **VPC_IDC**: a self-managed database instance that is deployed in a data center connected over a virtual private cloud (VPC). self.instance_source = instance_source + # The type of the database instance. For more information about the valid values of this parameter, see [DbType parameter](https://help.aliyun.com/document_detail/198106.html). self.instance_type = instance_type + # The network type of the database instance. Valid values: + # + # * **CLASSIC**: the classic network. + # * **VPC**: VPC. self.network_type = network_type + # The port that is used to connect to the database instance. self.port = port + # The timeout period for querying data from the database instance. Unit: seconds. self.query_timeout = query_timeout + # The name of the security rule set for the database instance. This parameter is required if Security Collaboration is enabled. You can call the[ListStandardGroups](https://help.aliyun.com/document_detail/465940.html) or [GetInstance](https://help.aliyun.com/document_detail/465826.html) operation to obtain the name of the security rule set from GroupName. self.safe_rule = safe_rule + # The system ID (SID) of the database instance. + # + # > This parameter is required if InstanceType is set to ORACLE. self.sid = sid + # Specifies whether to skip the connectivity test. Valid values: + # + # * **true**\ + # * **false**\ self.skip_test = skip_test + # The ID of the classification and grading template. You can call the [ListClassificationTemplates](https://help.aliyun.com/document_detail/465947.html) operation to query the template ID. self.template_id = template_id + # The type of the classification and grading template. You can call the [ListClassificationTemplates](https://help.aliyun.com/document_detail/465947.html) operation to query the template type. self.template_type = template_type + # The ID of the tenant. + # + # > You can move the pointer over the profile picture in the upper-right corner of the DMS console to obtain the tenant ID. self.tid = tid + # Specifies whether to enable cross-instance query for the database instance. Valid values: + # + # * **0**: Disables cross-database query. + # * **1**: Enables cross-database query. + # + # > Supported databases include MySQL, SQL Server, PostgreSQL, PolarDB for Oracle, and Redis. self.use_dsql = use_dsql + # Specifies whether to allow Data Management Service (DMS) to connect to the database instance by using SSL connections. Before you use SSL connections, make sure that the SSL encryption feature is enabled for the database instance. Valid values: + # + # * **0** (default): DMS automatically checks whether self-negotiation is enabled for the database instance. DMS automatically checks whether the SSL encryption feature is enabled for the database instance. If the SSL encryption feature is enabled, DMS connects to the database instance by using SSL connections. Otherwise, DMS connects to the database instance without encryption. + # * **1**: DMS connects to the database instance by using SSL connections. This value is invalid if the SSL encryption feature is disabled for the database instance. + # * **-1**: DMS does not connect to the database instance by using SSL connections. + # + # > + # + # * This parameter is available only for a MySQL or Redis database instance. + # + # * SSL encrypts network connections at the transport layer to improve the security and integrity of data in transmission. However, SSL increases the response time of network connections. self.use_ssl = use_ssl + # The VPC ID. + # + # > This parameter is required if InstanceSource is set to VPC_IDC. self.vpc_id = vpc_id def validate(self): @@ -62603,9 +65311,16 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. You can use the ID to query logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -62958,10 +65673,16 @@ def __init__( query: str = None, sql: str = None, ): + # The ID of the database. You can call the [ListDatabases](https://help.aliyun.com/document_detail/141873.html) operation to obtain the ID. + # # This parameter is required. self.db_id = db_id + # The name of the selected model. You can use only Qwen series models. self.model = model + # The remarks. self.query = query + # The SQL statement that you want to analyze. + # # This parameter is required. self.sql = sql @@ -63003,7 +65724,9 @@ def __init__( content: str = None, session_id: str = None, ): + # The answer. self.content = content + # The session ID. self.session_id = session_id def validate(self): @@ -63039,11 +65762,18 @@ def __init__( request_id: str = None, success: bool = None, ): + # The data returned. self.data = data + # The error code returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message # Id of the request self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -63283,10 +66013,17 @@ def __init__( order_id: int = None, tid: int = None, ): + # The ID of the SQL result set export task. You can call the [GetDataExportOrderDetail](https://help.aliyun.com/document_detail/465911.html) operation to obtain the value of this parameter. If you set this parameter to Null, no SQL result set export task is suspended. + # # This parameter is required. self.job_id = job_id + # The ticket ID. You can call the [ListOrders](https://help.aliyun.com/document_detail/144643.html) operation to query the ticket ID. + # # This parameter is required. self.order_id = order_id + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the DMS console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid def validate(self): @@ -63325,9 +66062,16 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The ID of the request. You can use the request ID to locate logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -63409,8 +66153,13 @@ def __init__( order_id: int = None, tid: int = None, ): + # The ticket ID. You can call the [ListOrders](https://help.aliyun.com/document_detail/144643.html) operation to query the ticket ID. + # # This parameter is required. self.order_id = order_id + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the DMS console and move the pointer over the profile picture in the upper-right corner. For more information, see [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid def validate(self): @@ -63444,8 +66193,11 @@ def __init__( real_name: str = None, user_id: int = None, ): + # The nickname of the approver. self.nick_name = nick_name + # The name of the approver. self.real_name = real_name + # The ID of the approver. self.user_id = user_id def validate(self): @@ -63519,9 +66271,19 @@ def __init__( node_name: str = None, node_type: str = None, ): + # The approvers. self.audit_user_list = audit_user_list + # The remarks of the approval node. self.comment = comment + # The name of the approval node. self.node_name = node_name + # The type of the approval node. + # + # Valid values: + # + # * USER_LIST: The approval node is created by a user. + # * UNKNOWN: The source of the approval node is unknown. + # * SYS: The approval node is predefined by the system. self.node_type = node_type def validate(self): @@ -63600,8 +66362,11 @@ def __init__( wf_cate_name: str = None, workflow_node_list: PreviewWorkflowResponseBodyWorkflowDetailWorkflowNodeList = None, ): + # The remarks of the approval template. self.comment = comment + # The name of the approval template. self.wf_cate_name = wf_cate_name + # The approval nodes. self.workflow_node_list = workflow_node_list def validate(self): @@ -63643,10 +66408,18 @@ def __init__( success: bool = None, workflow_detail: PreviewWorkflowResponseBodyWorkflowDetail = None, ): + # The error code returned if the request failed. self.error_code = error_code + # The error message returned if the request failed. self.error_message = error_message + # The request ID. You can use the request ID to locate logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success + # The details of the workflow. self.workflow_detail = workflow_detail def validate(self): @@ -65241,10 +68014,17 @@ def __init__( order_id: int = None, tid: int = None, ): + # The ID of the SQL result set export task. You can call the [GetDataExportOrderDetail](https://help.aliyun.com/document_detail/465911.html) operation to obtain the value of this parameter. If you set this parameter to Null, no SQL result set export task is suspended. + # # This parameter is required. self.job_id = job_id + # The ID of the ticket. You can call the [ListOrders](https://help.aliyun.com/document_detail/144643.html) operation to obtain the ticket ID. + # # This parameter is required. self.order_id = order_id + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the DMS console and move the pointer over the profile picture in the upper-right corner. For more information, see [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid def validate(self): @@ -65283,9 +68063,16 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. You can use the request ID to query logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -65370,13 +68157,27 @@ def __init__( table_schema_name: str = None, tid: int = None, ): + # The category ID. + # # This parameter is required. self.category_id = category_id + # The database ID. You can call the [ListDatabases](https://help.aliyun.com/document_detail/141873.html) operation to query the ID of a physical database and the [ListLogicDatabases](https://help.aliyun.com/document_detail/141874.html) operation to query the ID of a logical database. + # + # > The value of DatabaseId is that of DbId. + # # This parameter is required. self.db_id = db_id + # The table name. + # + # > You can also call the [ListTables](https://help.aliyun.com/document_detail/141878.html) operation to query the table name. + # # This parameter is required. self.table_name = table_name + # The schema name of the table, which is required only for SQL Server instances. self.table_schema_name = table_schema_name + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid def validate(self): @@ -65423,9 +68224,16 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code returned if the call failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -65665,10 +68473,17 @@ def __init__( order_id: int = None, tid: int = None, ): + # The ID of the SQL result set export task. You can call the [GetDataExportOrderDetail](https://help.aliyun.com/document_detail/465911.html) operation to obtain the value of this parameter. If you set this parameter to Null, no SQL result set export task is suspended. + # # This parameter is required. self.job_id = job_id + # The ticket ID. You can call the [ListOrders](https://help.aliyun.com/document_detail/144643.html) operation to obtain the ticket ID. + # # This parameter is required. self.order_id = order_id + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the DMS console and move the pointer over the profile picture in the upper-right corner. For more information, see [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid def validate(self): @@ -65707,9 +68522,16 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The ID of the request. You can use the request ID to locate logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -68045,14 +70867,41 @@ def __init__( tid: int = None, workflow_instance_id: int = None, ): + # Specifies whether the Sign button is displayed in the ticket approval section of the DMS console for a third-party approval workflow. Valid values: + # + # * **true** (default): The Sign button is displayed. + # * **false**: The Sign button is not displayed. self.render_add_approval_node = render_add_approval_node + # Specifies whether the Agree button is displayed in the ticket approval section of the DMS console for a third-party approval workflow. Valid values: + # + # * **true** (default): The Agree button is displayed. + # * **false**: The Agree button is not displayed. self.render_agree = render_agree + # Specifies whether the Revoke button is displayed in the ticket approval section of the DMS console for a third-party approval workflow. Valid values: + # + # * **true** (default): The Revoke button is displayed. + # * **false**: The Revoke button is not displayed. self.render_cancel = render_cancel + # Specifies whether the Reject button is displayed in the ticket approval section of the DMS console for a third-party approval workflow. Valid values: + # + # * **true** (default): The Reject button is displayed. + # * **false**: The Reject button is not displayed. self.render_reject = render_reject + # Specifies whether the Forward button is displayed in the ticket approval section of the DMS console for a third-party approval workflow. Valid values: + # + # * **true** (default): The Forward button is displayed. + # * **false**: The Forward button is not displayed. self.render_transfer = render_transfer + # The remarks of approval workflow for third parties. self.thirdparty_workflow_comment = thirdparty_workflow_comment + # The link of approval workflow for third parties. self.thirdparty_workflow_url = thirdparty_workflow_url + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the DMS console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The ID of the approval workflow. You can call the [GetOrderBaseInfo](https://help.aliyun.com/document_detail/144642.html) operation to query the ID of the approval workflow. + # # This parameter is required. self.workflow_instance_id = workflow_instance_id @@ -68117,10 +70966,18 @@ def __init__( request_id: str = None, success: bool = None, ): + # Indicates whether the call was successful. self.data = data + # The error code returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. You can use the ID to query logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -68963,10 +71820,17 @@ def __init__( order_id: int = None, tid: int = None, ): + # The ID of the SQL result set export task. You can call the [GetDataExportOrderDetail](https://help.aliyun.com/document_detail/465911.html) operation to obtain the value of this parameter. If you set this parameter to Null, no SQL result set export task is suspended. + # # This parameter is required. self.job_id = job_id + # The ticket ID. You can call the [ListOrders](https://help.aliyun.com/document_detail/144643.html) operation to query the ticket ID. + # # This parameter is required. self.order_id = order_id + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the DMS console and move the pointer over the profile picture in the upper-right corner. For more information, see [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid def validate(self): @@ -69005,9 +71869,16 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. You can use the request ID to locate logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the operation was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -69507,6 +72378,7 @@ def __init__( self, dag_id: int = None, ): + # The task flow ID. You can call the [ListTaskFlow](https://help.aliyun.com/document_detail/424565.html) or [ListLhTaskFlowAndScenario](https://help.aliyun.com/document_detail/426672.html) operation to query the ID of the task flow. self.dag_id = dag_id def validate(self): @@ -69538,10 +72410,21 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code that is returned if the request failed. Value values: + # + # * If the request was successful, the **ErrorCode** parameter is not returned. + # * If the request failed, **ErrorCode** is returned. For more information, see the **Error codes** section in this topic. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The instance ID of the order. self.instance_id = instance_id + # The request ID. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * true: The request was successful. + # * false: The request failed. self.success = success def validate(self): @@ -69630,11 +72513,19 @@ def __init__( abac_policy_name: str = None, tid: int = None, ): + # The content of the policy. self.abac_policy_content = abac_policy_content + # The description of the policy. self.abac_policy_desc = abac_policy_desc + # The ID of the policy. + # # This parameter is required. self.abac_policy_id = abac_policy_id + # The name of the permission policy. self.abac_policy_name = abac_policy_name + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the DMS console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid def validate(self): @@ -69682,10 +72573,18 @@ def __init__( success: bool = None, update_policy_result: int = None, ): + # The error code that is returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. You can use the ID to query logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success + # Indicates whether the policy is updated. self.update_policy_result = update_policy_result def validate(self): @@ -69994,17 +72893,31 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The catalog name. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The name of the database that you want to query. + # # This parameter is required. self.db_name = db_name + # The description of the database. self.description = description + # The storage path of the database. Supports the OSS, S3, and S3A protocols. + # # This parameter is required. self.location = location + # The key-value pairs of the database attributes. self.parameters = parameters + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -70067,17 +72980,31 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The catalog name. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The name of the database that you want to query. + # # This parameter is required. self.db_name = db_name + # The description of the database. self.description = description + # The storage path of the database. Supports the OSS, S3, and S3A protocols. + # # This parameter is required. self.location = location + # The key-value pairs of the database attributes. self.parameters_shrink = parameters_shrink + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -70137,10 +73064,18 @@ def __init__( request_id: str = None, success: bool = None, ): + # The database details. self.database = database + # The error code returned if the request failed. self.error_code = error_code + # The error message returned if the request failed. self.error_message = error_message + # The request ID. You can use the request ID to locate logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request succeeded. + # * **false**: The request failed. self.success = success def validate(self): @@ -70233,17 +73168,31 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The catalog name. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The name of the database that you want to query. + # # This parameter is required. self.db_name = db_name + # The details about the function. + # # This parameter is required. self.function_input = function_input + # The function name. + # # This parameter is required. self.function_name = function_name + # The ID of the tenant. + # + # > To view the tenant ID, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -70303,17 +73252,31 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The catalog name. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The name of the database that you want to query. + # # This parameter is required. self.db_name = db_name + # The details about the function. + # # This parameter is required. self.function_input_shrink = function_input_shrink + # The function name. + # # This parameter is required. self.function_name = function_name + # The ID of the tenant. + # + # > To view the tenant ID, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -70369,10 +73332,18 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code returned if the request fails. self.error_code = error_code + # The error message returned if the request fails. self.error_message = error_message + # The details about the function. self.function = function + # The request ID. You can use the ID to query logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request succeeded. + # * **false**: The request failed. self.success = success def validate(self): @@ -70465,17 +73436,31 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The name of the database that you want to query. + # # This parameter is required. self.db_name = db_name + # The information about the created partition. + # # This parameter is required. self.partition_input = partition_input + # The name of the table + # # This parameter is required. self.table_name = table_name + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -70535,17 +73520,31 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The name of the database that you want to query. + # # This parameter is required. self.db_name = db_name + # The information about the created partition. + # # This parameter is required. self.partition_input_shrink = partition_input_shrink + # The name of the table + # # This parameter is required. self.table_name = table_name + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -70600,9 +73599,16 @@ def __init__( request_id: str = None, success: bool = None, ): + # The error code returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. You can use the ID to query logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**\ + # * **false**: The request failed. self.success = success def validate(self): @@ -70689,16 +73695,29 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The database name. + # # This parameter is required. self.db_name = db_name + # The information about the table. + # # This parameter is required. self.table_input = table_input + # The name of the updated table. If you do not need to update the table name, set the TableName and TableInput parameters to the same value. self.table_name = table_name + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the DMS console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -70758,16 +73777,29 @@ def __init__( tid: int = None, workspace_id: int = None, ): + # The name of the data catalog. + # # This parameter is required. self.catalog_name = catalog_name + # The region where the data lake resides. + # # This parameter is required. self.data_region = data_region + # The database name. + # # This parameter is required. self.db_name = db_name + # The information about the table. + # # This parameter is required. self.table_input_shrink = table_input_shrink + # The name of the updated table. If you do not need to update the table name, set the TableName and TableInput parameters to the same value. self.table_name = table_name + # The ID of the tenant. + # + # > To view the ID of the tenant, go to the DMS console and move the pointer over the profile picture in the upper-right corner. For more information, see the [View information about the current tenant](https://help.aliyun.com/document_detail/181330.html) section of the "Manage DMS tenants" topic. self.tid = tid + # The workspace ID. self.workspace_id = workspace_id def validate(self): @@ -70823,10 +73855,18 @@ def __init__( success: bool = None, table: DLTable = None, ): + # The error code returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. You can use the request ID to locate logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success + # The information about the table. self.table = table def validate(self): @@ -71274,9 +74314,13 @@ def __init__( name: str = None, tid: int = None, ): + # The category ID. + # # This parameter is required. self.category_id = category_id + # The updated name of the category. self.name = name + # The ID of the tenant. You can call the [GetUserActiveTenant](https://help.aliyun.com/document_detail/198073.html) or [ListUserTenants](https://help.aliyun.com/document_detail/198074.html) operation to obtain the tenant ID. self.tid = tid def validate(self): @@ -71316,10 +74360,18 @@ def __init__( request_id: str = None, success: bool = None, ): + # The information about the category. self.category = category + # The error code returned if the request failed. self.error_code = error_code + # The error message that is returned if the request failed. self.error_message = error_message + # The request ID. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -72310,7 +75362,11 @@ def __init__( node_content: str = None, node_id: str = None, ): + # The node configurations after modification. + # + # > We recommend that you change the SQL type from SELECT to INSERT/CREATE. self.node_content = node_content + # The ID of the task node. You can call the [GetTaskInstanceRelation](https://help.aliyun.com/document_detail/424711.html) operation to query the node ID. self.node_id = node_id def validate(self): @@ -72345,10 +75401,16 @@ def __init__( request_id: str = None, success: str = None, ): + # The error code returned if the request failed. self.error_code = error_code + # The error message returned if the request failed. self.error_message = error_message - # Id of the request + # Id of the request. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): @@ -74708,10 +77770,15 @@ def __init__( workspace_id: int = None, workspace_name: str = None, ): + # The client token that is used to ensure the idempotence of the request. self.client_token = client_token + # The new description of the workspace. self.description = description + # The workspace ID. + # # This parameter is required. self.workspace_id = workspace_id + # The new name of the workspace. self.workspace_name = workspace_name def validate(self): @@ -74753,8 +77820,14 @@ def __init__( request_id: str = None, success: str = None, ): + # Indicates whether the call is successful. self.data = data + # The request ID. You can use the request ID to locate logs and troubleshoot issues. self.request_id = request_id + # Indicates whether the request was successful. Valid values: + # + # * **true**: The request was successful. + # * **false**: The request failed. self.success = success def validate(self): diff --git a/dms-enterprise-20181101/setup.py b/dms-enterprise-20181101/setup.py index 2e988f494..133980b87 100644 --- a/dms-enterprise-20181101/setup.py +++ b/dms-enterprise-20181101/setup.py @@ -22,15 +22,15 @@ from setuptools import setup, find_packages """ -setup module for alibabacloud_dms-enterprise20181101. +setup module for alibabacloud_dms_enterprise20181101. -Created on 26/09/2025 +Created on 23/11/2025 @author: Alibaba Cloud SDK """ PACKAGE = "alibabacloud_dms_enterprise20181101" -NAME = "alibabacloud_dms-enterprise20181101" or "alibabacloud-package" +NAME = "alibabacloud_dms_enterprise20181101" or "alibabacloud-package" DESCRIPTION = "Alibaba Cloud dms-enterprise (20181101) SDK Library for Python" AUTHOR = "Alibaba Cloud SDK" AUTHOR_EMAIL = "sdk-team@alibabacloud.com" From 056fc6ed2bf09a81d8e7ac786d3e43302895c69a Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 24 Nov 2025 03:16:12 +0000 Subject: [PATCH 2/4] Support API DescribeMeshMultiClusterNetwork. --- servicemesh-20200111/.gitignore | 89 +- servicemesh-20200111/ChangeLog.md | 56 + servicemesh-20200111/README-CN.md | 4 +- servicemesh-20200111/README.md | 4 +- .../__init__.py | 2 +- .../client.py | 2937 ++++++++++++++++- .../models.py | 2839 ++++++++++++---- servicemesh-20200111/setup.py | 10 +- 8 files changed, 5242 insertions(+), 699 deletions(-) diff --git a/servicemesh-20200111/.gitignore b/servicemesh-20200111/.gitignore index bf852200a..1fc762297 100644 --- a/servicemesh-20200111/.gitignore +++ b/servicemesh-20200111/.gitignore @@ -1,14 +1,81 @@ -composer.phar -/vendor/ - -# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control -# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file -composer.lock +# OS +.DS_Store -.vscode/ +# IDE .idea -.DS_Store +.settings +.cache/ +.tmp +.vscode/ + +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +pip-wheel-metadata/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.coverage +.hypothesis/ +.pytest_cache/ +pytestdebug.log + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# pyenv +.python-version + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Pyre type checker +.pyre/ -cache/ -*.cache -runtime/ +# pytype static type analyzer +.pytype/ \ No newline at end of file diff --git a/servicemesh-20200111/ChangeLog.md b/servicemesh-20200111/ChangeLog.md index 261fc3696..141ef9fcf 100644 --- a/servicemesh-20200111/ChangeLog.md +++ b/servicemesh-20200111/ChangeLog.md @@ -1,3 +1,59 @@ +2025-11-24 Version: 3.4.0 +- Support API DescribeMeshMultiClusterNetwork. +- Support API ModifyPilotEipResource. +- Support API UpdateGuestClusterConfig. +- Support API UpdateMeshMultiClusterNetwork. +- Update API AddClusterIntoServiceMesh: add request parameters DiscoveryOnly. +- Update API AddClusterIntoServiceMesh: add request parameters Kubeconfig. +- Update API CreateServiceMesh: add request parameters CertChain. +- Update API CreateServiceMesh: add request parameters EnableACMG. +- Update API CreateServiceMesh: add request parameters PlaygroundScene. +- Update API CreateSwimLaneGroup: add request parameters IngressGatewayNamespace. +- Update API DescribeCCMVersion: add response parameters Body.CCMVersions.SLBGracefulDrainSupported. +- Update API DescribeClusterGrafana: add request parameters ReAddPrometheusIntegration. +- Update API DescribeClustersInServiceMesh: add response parameters Body.Clusters.$.GuestClusterConfig. +- Update API DescribeMetadata: add response parameters Body.MetaData.CompatibilityInfoList. +- Update API DescribeMetadata: add response parameters Body.MetaData.PlaygroundScene. +- Update API DescribeNamespaceScopeSidecarConfig: add response parameters Body.ConfigPatches.RuntimeValues. +- Update API DescribeNamespaceScopeSidecarConfig: add response parameters Body.ConfigPatches.SMCConfiguration. +- Update API DescribeNamespaceScopeSidecarConfig: add response parameters Body.ConfigPatches.ScaledSidecarResource. +- Update API DescribeReusableSlb: add request parameters LbType. +- Update API DescribeReusableSlb: add request parameters ServiceMeshId. +- Update API DescribeServiceMeshAdditionalStatus: add response parameters Body.ClusterStatus.CanaryPilotEIPStatus. +- Update API DescribeServiceMeshAdditionalStatus: add response parameters Body.ClusterStatus.PilotEIPStatus. +- Update API DescribeServiceMeshDetail: add response parameters Body.ServiceMesh.Endpoints.IntranetCanaryPilotEndpoint. +- Update API DescribeServiceMeshDetail: add response parameters Body.ServiceMesh.Endpoints.PublicCanaryPilotEndpoint. +- Update API DescribeServiceMeshDetail: add response parameters Body.ServiceMesh.Spec.LoadBalancer.ApiServerPublicEipId. +- Update API DescribeServiceMeshDetail: add response parameters Body.ServiceMesh.Spec.LoadBalancer.CanaryPilotLoadBalancerId. +- Update API DescribeServiceMeshDetail: add response parameters Body.ServiceMesh.Spec.LoadBalancer.CanaryPilotPublicEipId. +- Update API DescribeServiceMeshDetail: add response parameters Body.ServiceMesh.Spec.LoadBalancer.PilotPublicEipId. +- Update API DescribeServiceMeshDetail: add response parameters Body.ServiceMesh.Spec.MeshConfig.ExtraConfiguration.IstiodExtraConfiguration. +- Update API DescribeServiceMeshDetail: add response parameters Body.ServiceMesh.Spec.MeshConfig.ExtraConfiguration.Playground. +- Update API DescribeServiceMeshDetail: add response parameters Body.ServiceMesh.Spec.MeshConfig.LocalityLB.FailoverPriority. +- Update API DescribeServiceMeshes: add response parameters Body.ServiceMeshes.$.Spec.MeshConfig.ExtraConfiguration. +- Update API GetSwimLaneDetail: add response parameters Body.ValidationMessage. +- Update API GetSwimLaneDetail: add response parameters Body.WeightedIngressDestination. +- Update API GetSwimLaneGroupList: add response parameters Body.SwimLaneGroupList.$.IngressRoutingStrategy. +- Update API GetSwimLaneGroupList: add response parameters Body.SwimLaneGroupList.$.ServiceLevelFallbackTarget. +- Update API GetSwimLaneGroupList: add response parameters Body.SwimLaneGroupList.$.WeightedIngressRule. +- Update API GetSwimLaneList: add response parameters Body.SwimLaneList.$.ValidationMessage. +- Update API GetSwimLaneList: add response parameters Body.SwimLaneList.$.WeightedIngressDestinatin. +- Update API UpdateMeshFeature: add request parameters CertChain. +- Update API UpdateMeshFeature: add request parameters ExistingCaCert. +- Update API UpdateMeshFeature: add request parameters ExistingCaKey. +- Update API UpdateMeshFeature: add request parameters ExistingRootCaCert. +- Update API UpdateMeshFeature: add request parameters LabelsForOffloadedWorkloads. +- Update API UpdateMeshFeature: add request parameters PilotEnableQuicListeners. +- Update API UpdateMeshFeature: add request parameters SMCEnabled. +- Update API UpdateMeshFeature: add request parameters TracingOnExtZipkinReplicaCount. +- Update API UpdateNamespaceScopeSidecarConfig: add request parameters RuntimeValues. +- Update API UpdateNamespaceScopeSidecarConfig: add request parameters SMCEnabled. +- Update API UpdateNamespaceScopeSidecarConfig: add request parameters ScaledSidecarResource. +- Update API UpdateSwimLaneGroup: add request parameters IngressRoutingStrategy. +- Update API UpdateSwimLaneGroup: add request parameters ServiceLevelFallbackTarget. +- Update API UpdateSwimLaneGroup: add request parameters WeightedIngressRule. + + 2023-11-13 Version: 3.3.1 - Generated python 2020-01-11 for servicemesh. diff --git a/servicemesh-20200111/README-CN.md b/servicemesh-20200111/README-CN.md index e460041f3..933063e6a 100644 --- a/servicemesh-20200111/README-CN.md +++ b/servicemesh-20200111/README-CN.md @@ -6,7 +6,7 @@ ## 要求 -- Python >= 3.6 +- Python >= 3.7 ## 安装 @@ -29,7 +29,7 @@ pip install alibabacloud_servicemesh20200111 ## 发行说明 -每个版本的详细更改记录在[发行说明](./ChangeLog.md)中。 +每个版本的详细更改记录在[发行说明](https://github.com/aliyun/alibabacloud-python-sdk/blob/master/servicemesh-20200111/ChangeLog.md)中。 ## 相关 diff --git a/servicemesh-20200111/README.md b/servicemesh-20200111/README.md index f3a5a8a4a..7160022e8 100644 --- a/servicemesh-20200111/README.md +++ b/servicemesh-20200111/README.md @@ -5,7 +5,7 @@ English | [简体中文](README-CN.md) ## Requirements -- Python >= 3.6 +- Python >= 3.7 ## Installation @@ -28,7 +28,7 @@ pip install alibabacloud_servicemesh20200111 ## Changelog -Detailed changes for each release are documented in the [release notes](./ChangeLog.md). +Detailed changes for each release are documented in the [release notes](https://github.com/aliyun/alibabacloud-python-sdk/blob/master/servicemesh-20200111/ChangeLog.md). ## References diff --git a/servicemesh-20200111/alibabacloud_servicemesh20200111/__init__.py b/servicemesh-20200111/alibabacloud_servicemesh20200111/__init__.py index 6a394a3d2..401eb0ac2 100644 --- a/servicemesh-20200111/alibabacloud_servicemesh20200111/__init__.py +++ b/servicemesh-20200111/alibabacloud_servicemesh20200111/__init__.py @@ -1 +1 @@ -__version__ = '3.3.1' \ No newline at end of file +__version__ = '3.4.0' \ No newline at end of file diff --git a/servicemesh-20200111/alibabacloud_servicemesh20200111/client.py b/servicemesh-20200111/alibabacloud_servicemesh20200111/client.py index 3210337df..a374bf07a 100644 --- a/servicemesh-20200111/alibabacloud_servicemesh20200111/client.py +++ b/servicemesh-20200111/alibabacloud_servicemesh20200111/client.py @@ -21,7 +21,6 @@ def __init__( config: open_api_models.Config, ): super().__init__(config) - self._signature_algorithm = 'v2' self._endpoint_rule = 'central' self.check_config(config) self._endpoint = self.get_endpoint('servicemesh', self._region_id, self._endpoint_rule, self._network, self._suffix, self._endpoint_map, self._endpoint) @@ -47,12 +46,23 @@ def add_cluster_into_service_mesh_with_options( request: servicemesh_20200111_models.AddClusterIntoServiceMeshRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.AddClusterIntoServiceMeshResponse: + """ + @summary Adds a cluster to an ASM instance. + + @param request: AddClusterIntoServiceMeshRequest + @param runtime: runtime options for this request RuntimeOptions + @return: AddClusterIntoServiceMeshResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.cluster_id): body['ClusterId'] = request.cluster_id + if not UtilClient.is_unset(request.discovery_only): + body['DiscoveryOnly'] = request.discovery_only if not UtilClient.is_unset(request.ignore_namespace_check): body['IgnoreNamespaceCheck'] = request.ignore_namespace_check + if not UtilClient.is_unset(request.kubeconfig): + body['Kubeconfig'] = request.kubeconfig if not UtilClient.is_unset(request.service_mesh_id): body['ServiceMeshId'] = request.service_mesh_id req = open_api_models.OpenApiRequest( @@ -79,12 +89,23 @@ async def add_cluster_into_service_mesh_with_options_async( request: servicemesh_20200111_models.AddClusterIntoServiceMeshRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.AddClusterIntoServiceMeshResponse: + """ + @summary Adds a cluster to an ASM instance. + + @param request: AddClusterIntoServiceMeshRequest + @param runtime: runtime options for this request RuntimeOptions + @return: AddClusterIntoServiceMeshResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.cluster_id): body['ClusterId'] = request.cluster_id + if not UtilClient.is_unset(request.discovery_only): + body['DiscoveryOnly'] = request.discovery_only if not UtilClient.is_unset(request.ignore_namespace_check): body['IgnoreNamespaceCheck'] = request.ignore_namespace_check + if not UtilClient.is_unset(request.kubeconfig): + body['Kubeconfig'] = request.kubeconfig if not UtilClient.is_unset(request.service_mesh_id): body['ServiceMeshId'] = request.service_mesh_id req = open_api_models.OpenApiRequest( @@ -110,6 +131,12 @@ def add_cluster_into_service_mesh( self, request: servicemesh_20200111_models.AddClusterIntoServiceMeshRequest, ) -> servicemesh_20200111_models.AddClusterIntoServiceMeshResponse: + """ + @summary Adds a cluster to an ASM instance. + + @param request: AddClusterIntoServiceMeshRequest + @return: AddClusterIntoServiceMeshResponse + """ runtime = util_models.RuntimeOptions() return self.add_cluster_into_service_mesh_with_options(request, runtime) @@ -117,6 +144,12 @@ async def add_cluster_into_service_mesh_async( self, request: servicemesh_20200111_models.AddClusterIntoServiceMeshRequest, ) -> servicemesh_20200111_models.AddClusterIntoServiceMeshResponse: + """ + @summary Adds a cluster to an ASM instance. + + @param request: AddClusterIntoServiceMeshRequest + @return: AddClusterIntoServiceMeshResponse + """ runtime = util_models.RuntimeOptions() return await self.add_cluster_into_service_mesh_with_options_async(request, runtime) @@ -126,7 +159,9 @@ def add_vminto_service_mesh_with_options( runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.AddVMIntoServiceMeshResponse: """ - @deprecated + @deprecated OpenAPI AddVMIntoServiceMesh is deprecated + + @summary Adds a virtual machine (VM) to a Service Mesh (ASM) instance. @param request: AddVMIntoServiceMeshRequest @param runtime: runtime options for this request RuntimeOptions @@ -164,7 +199,9 @@ async def add_vminto_service_mesh_with_options_async( runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.AddVMIntoServiceMeshResponse: """ - @deprecated + @deprecated OpenAPI AddVMIntoServiceMesh is deprecated + + @summary Adds a virtual machine (VM) to a Service Mesh (ASM) instance. @param request: AddVMIntoServiceMeshRequest @param runtime: runtime options for this request RuntimeOptions @@ -201,7 +238,9 @@ def add_vminto_service_mesh( request: servicemesh_20200111_models.AddVMIntoServiceMeshRequest, ) -> servicemesh_20200111_models.AddVMIntoServiceMeshResponse: """ - @deprecated + @deprecated OpenAPI AddVMIntoServiceMesh is deprecated + + @summary Adds a virtual machine (VM) to a Service Mesh (ASM) instance. @param request: AddVMIntoServiceMeshRequest @return: AddVMIntoServiceMeshResponse @@ -215,7 +254,9 @@ async def add_vminto_service_mesh_async( request: servicemesh_20200111_models.AddVMIntoServiceMeshRequest, ) -> servicemesh_20200111_models.AddVMIntoServiceMeshResponse: """ - @deprecated + @deprecated OpenAPI AddVMIntoServiceMesh is deprecated + + @summary Adds a virtual machine (VM) to a Service Mesh (ASM) instance. @param request: AddVMIntoServiceMeshRequest @return: AddVMIntoServiceMeshResponse @@ -229,6 +270,13 @@ def create_asmgateway_with_options( request: servicemesh_20200111_models.CreateASMGatewayRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.CreateASMGatewayResponse: + """ + @summary Creates a Service Mesh (ASM) gateway. + + @param request: CreateASMGatewayRequest + @param runtime: runtime options for this request RuntimeOptions + @return: CreateASMGatewayResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.body): @@ -261,6 +309,13 @@ async def create_asmgateway_with_options_async( request: servicemesh_20200111_models.CreateASMGatewayRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.CreateASMGatewayResponse: + """ + @summary Creates a Service Mesh (ASM) gateway. + + @param request: CreateASMGatewayRequest + @param runtime: runtime options for this request RuntimeOptions + @return: CreateASMGatewayResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.body): @@ -292,6 +347,12 @@ def create_asmgateway( self, request: servicemesh_20200111_models.CreateASMGatewayRequest, ) -> servicemesh_20200111_models.CreateASMGatewayResponse: + """ + @summary Creates a Service Mesh (ASM) gateway. + + @param request: CreateASMGatewayRequest + @return: CreateASMGatewayResponse + """ runtime = util_models.RuntimeOptions() return self.create_asmgateway_with_options(request, runtime) @@ -299,6 +360,12 @@ async def create_asmgateway_async( self, request: servicemesh_20200111_models.CreateASMGatewayRequest, ) -> servicemesh_20200111_models.CreateASMGatewayResponse: + """ + @summary Creates a Service Mesh (ASM) gateway. + + @param request: CreateASMGatewayRequest + @return: CreateASMGatewayResponse + """ runtime = util_models.RuntimeOptions() return await self.create_asmgateway_with_options_async(request, runtime) @@ -307,6 +374,13 @@ def create_gateway_secret_with_options( request: servicemesh_20200111_models.CreateGatewaySecretRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.CreateGatewaySecretResponse: + """ + @summary Creates a secret for a Service Mesh (ASM) gateway. + + @param request: CreateGatewaySecretRequest + @param runtime: runtime options for this request RuntimeOptions + @return: CreateGatewaySecretResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.cert): @@ -343,6 +417,13 @@ async def create_gateway_secret_with_options_async( request: servicemesh_20200111_models.CreateGatewaySecretRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.CreateGatewaySecretResponse: + """ + @summary Creates a secret for a Service Mesh (ASM) gateway. + + @param request: CreateGatewaySecretRequest + @param runtime: runtime options for this request RuntimeOptions + @return: CreateGatewaySecretResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.cert): @@ -378,6 +459,12 @@ def create_gateway_secret( self, request: servicemesh_20200111_models.CreateGatewaySecretRequest, ) -> servicemesh_20200111_models.CreateGatewaySecretResponse: + """ + @summary Creates a secret for a Service Mesh (ASM) gateway. + + @param request: CreateGatewaySecretRequest + @return: CreateGatewaySecretResponse + """ runtime = util_models.RuntimeOptions() return self.create_gateway_secret_with_options(request, runtime) @@ -385,6 +472,12 @@ async def create_gateway_secret_async( self, request: servicemesh_20200111_models.CreateGatewaySecretRequest, ) -> servicemesh_20200111_models.CreateGatewaySecretResponse: + """ + @summary Creates a secret for a Service Mesh (ASM) gateway. + + @param request: CreateGatewaySecretRequest + @return: CreateGatewaySecretResponse + """ runtime = util_models.RuntimeOptions() return await self.create_gateway_secret_with_options_async(request, runtime) @@ -393,6 +486,13 @@ def create_istio_gateway_domains_with_options( request: servicemesh_20200111_models.CreateIstioGatewayDomainsRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.CreateIstioGatewayDomainsResponse: + """ + @summary Adds domain names for a Service Mesh (ASM) gateway. + + @param request: CreateIstioGatewayDomainsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: CreateIstioGatewayDomainsResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.credential): @@ -439,6 +539,13 @@ async def create_istio_gateway_domains_with_options_async( request: servicemesh_20200111_models.CreateIstioGatewayDomainsRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.CreateIstioGatewayDomainsResponse: + """ + @summary Adds domain names for a Service Mesh (ASM) gateway. + + @param request: CreateIstioGatewayDomainsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: CreateIstioGatewayDomainsResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.credential): @@ -484,6 +591,12 @@ def create_istio_gateway_domains( self, request: servicemesh_20200111_models.CreateIstioGatewayDomainsRequest, ) -> servicemesh_20200111_models.CreateIstioGatewayDomainsResponse: + """ + @summary Adds domain names for a Service Mesh (ASM) gateway. + + @param request: CreateIstioGatewayDomainsRequest + @return: CreateIstioGatewayDomainsResponse + """ runtime = util_models.RuntimeOptions() return self.create_istio_gateway_domains_with_options(request, runtime) @@ -491,6 +604,12 @@ async def create_istio_gateway_domains_async( self, request: servicemesh_20200111_models.CreateIstioGatewayDomainsRequest, ) -> servicemesh_20200111_models.CreateIstioGatewayDomainsResponse: + """ + @summary Adds domain names for a Service Mesh (ASM) gateway. + + @param request: CreateIstioGatewayDomainsRequest + @return: CreateIstioGatewayDomainsResponse + """ runtime = util_models.RuntimeOptions() return await self.create_istio_gateway_domains_with_options_async(request, runtime) @@ -499,6 +618,13 @@ def create_istio_gateway_routes_with_options( tmp_req: servicemesh_20200111_models.CreateIstioGatewayRoutesRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.CreateIstioGatewayRoutesResponse: + """ + @summary Creates a routing rule for a Service Mesh (ASM) gateway. + + @param tmp_req: CreateIstioGatewayRoutesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: CreateIstioGatewayRoutesResponse + """ UtilClient.validate_model(tmp_req) request = servicemesh_20200111_models.CreateIstioGatewayRoutesShrinkRequest() OpenApiUtilClient.convert(tmp_req, request) @@ -541,6 +667,13 @@ async def create_istio_gateway_routes_with_options_async( tmp_req: servicemesh_20200111_models.CreateIstioGatewayRoutesRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.CreateIstioGatewayRoutesResponse: + """ + @summary Creates a routing rule for a Service Mesh (ASM) gateway. + + @param tmp_req: CreateIstioGatewayRoutesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: CreateIstioGatewayRoutesResponse + """ UtilClient.validate_model(tmp_req) request = servicemesh_20200111_models.CreateIstioGatewayRoutesShrinkRequest() OpenApiUtilClient.convert(tmp_req, request) @@ -582,6 +715,12 @@ def create_istio_gateway_routes( self, request: servicemesh_20200111_models.CreateIstioGatewayRoutesRequest, ) -> servicemesh_20200111_models.CreateIstioGatewayRoutesResponse: + """ + @summary Creates a routing rule for a Service Mesh (ASM) gateway. + + @param request: CreateIstioGatewayRoutesRequest + @return: CreateIstioGatewayRoutesResponse + """ runtime = util_models.RuntimeOptions() return self.create_istio_gateway_routes_with_options(request, runtime) @@ -589,6 +728,12 @@ async def create_istio_gateway_routes_async( self, request: servicemesh_20200111_models.CreateIstioGatewayRoutesRequest, ) -> servicemesh_20200111_models.CreateIstioGatewayRoutesResponse: + """ + @summary Creates a routing rule for a Service Mesh (ASM) gateway. + + @param request: CreateIstioGatewayRoutesRequest + @return: CreateIstioGatewayRoutesResponse + """ runtime = util_models.RuntimeOptions() return await self.create_istio_gateway_routes_with_options_async(request, runtime) @@ -597,6 +742,13 @@ def create_service_mesh_with_options( request: servicemesh_20200111_models.CreateServiceMeshRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.CreateServiceMeshResponse: + """ + @summary Creates a Service Mesh (ASM) instance. + + @param request: CreateServiceMeshRequest + @param runtime: runtime options for this request RuntimeOptions + @return: CreateServiceMeshResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.tag): @@ -628,6 +780,8 @@ def create_service_mesh_with_options( body['AutoRenewPeriod'] = request.auto_renew_period if not UtilClient.is_unset(request.craggregation_enabled): body['CRAggregationEnabled'] = request.craggregation_enabled + if not UtilClient.is_unset(request.cert_chain): + body['CertChain'] = request.cert_chain if not UtilClient.is_unset(request.charge_type): body['ChargeType'] = request.charge_type if not UtilClient.is_unset(request.cluster_domain): @@ -652,6 +806,8 @@ def create_service_mesh_with_options( body['DubboFilterEnabled'] = request.dubbo_filter_enabled if not UtilClient.is_unset(request.edition): body['Edition'] = request.edition + if not UtilClient.is_unset(request.enable_acmg): + body['EnableACMG'] = request.enable_acmg if not UtilClient.is_unset(request.enable_ambient): body['EnableAmbient'] = request.enable_ambient if not UtilClient.is_unset(request.enable_audit): @@ -720,6 +876,8 @@ def create_service_mesh_with_options( body['Period'] = request.period if not UtilClient.is_unset(request.pilot_load_balancer_spec): body['PilotLoadBalancerSpec'] = request.pilot_load_balancer_spec + if not UtilClient.is_unset(request.playground_scene): + body['PlaygroundScene'] = request.playground_scene if not UtilClient.is_unset(request.prometheus_url): body['PrometheusUrl'] = request.prometheus_url if not UtilClient.is_unset(request.proxy_limit_cpu): @@ -775,6 +933,13 @@ async def create_service_mesh_with_options_async( request: servicemesh_20200111_models.CreateServiceMeshRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.CreateServiceMeshResponse: + """ + @summary Creates a Service Mesh (ASM) instance. + + @param request: CreateServiceMeshRequest + @param runtime: runtime options for this request RuntimeOptions + @return: CreateServiceMeshResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.tag): @@ -806,6 +971,8 @@ async def create_service_mesh_with_options_async( body['AutoRenewPeriod'] = request.auto_renew_period if not UtilClient.is_unset(request.craggregation_enabled): body['CRAggregationEnabled'] = request.craggregation_enabled + if not UtilClient.is_unset(request.cert_chain): + body['CertChain'] = request.cert_chain if not UtilClient.is_unset(request.charge_type): body['ChargeType'] = request.charge_type if not UtilClient.is_unset(request.cluster_domain): @@ -830,6 +997,8 @@ async def create_service_mesh_with_options_async( body['DubboFilterEnabled'] = request.dubbo_filter_enabled if not UtilClient.is_unset(request.edition): body['Edition'] = request.edition + if not UtilClient.is_unset(request.enable_acmg): + body['EnableACMG'] = request.enable_acmg if not UtilClient.is_unset(request.enable_ambient): body['EnableAmbient'] = request.enable_ambient if not UtilClient.is_unset(request.enable_audit): @@ -898,6 +1067,8 @@ async def create_service_mesh_with_options_async( body['Period'] = request.period if not UtilClient.is_unset(request.pilot_load_balancer_spec): body['PilotLoadBalancerSpec'] = request.pilot_load_balancer_spec + if not UtilClient.is_unset(request.playground_scene): + body['PlaygroundScene'] = request.playground_scene if not UtilClient.is_unset(request.prometheus_url): body['PrometheusUrl'] = request.prometheus_url if not UtilClient.is_unset(request.proxy_limit_cpu): @@ -952,6 +1123,12 @@ def create_service_mesh( self, request: servicemesh_20200111_models.CreateServiceMeshRequest, ) -> servicemesh_20200111_models.CreateServiceMeshResponse: + """ + @summary Creates a Service Mesh (ASM) instance. + + @param request: CreateServiceMeshRequest + @return: CreateServiceMeshResponse + """ runtime = util_models.RuntimeOptions() return self.create_service_mesh_with_options(request, runtime) @@ -959,6 +1136,12 @@ async def create_service_mesh_async( self, request: servicemesh_20200111_models.CreateServiceMeshRequest, ) -> servicemesh_20200111_models.CreateServiceMeshResponse: + """ + @summary Creates a Service Mesh (ASM) instance. + + @param request: CreateServiceMeshRequest + @return: CreateServiceMeshResponse + """ runtime = util_models.RuntimeOptions() return await self.create_service_mesh_with_options_async(request, runtime) @@ -967,6 +1150,13 @@ def create_swim_lane_with_options( request: servicemesh_20200111_models.CreateSwimLaneRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.CreateSwimLaneResponse: + """ + @summary Creates a lane. + + @param request: CreateSwimLaneRequest + @param runtime: runtime options for this request RuntimeOptions + @return: CreateSwimLaneResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.group_name): @@ -1005,6 +1195,13 @@ async def create_swim_lane_with_options_async( request: servicemesh_20200111_models.CreateSwimLaneRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.CreateSwimLaneResponse: + """ + @summary Creates a lane. + + @param request: CreateSwimLaneRequest + @param runtime: runtime options for this request RuntimeOptions + @return: CreateSwimLaneResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.group_name): @@ -1042,6 +1239,12 @@ def create_swim_lane( self, request: servicemesh_20200111_models.CreateSwimLaneRequest, ) -> servicemesh_20200111_models.CreateSwimLaneResponse: + """ + @summary Creates a lane. + + @param request: CreateSwimLaneRequest + @return: CreateSwimLaneResponse + """ runtime = util_models.RuntimeOptions() return self.create_swim_lane_with_options(request, runtime) @@ -1049,6 +1252,12 @@ async def create_swim_lane_async( self, request: servicemesh_20200111_models.CreateSwimLaneRequest, ) -> servicemesh_20200111_models.CreateSwimLaneResponse: + """ + @summary Creates a lane. + + @param request: CreateSwimLaneRequest + @return: CreateSwimLaneResponse + """ runtime = util_models.RuntimeOptions() return await self.create_swim_lane_with_options_async(request, runtime) @@ -1057,12 +1266,21 @@ def create_swim_lane_group_with_options( request: servicemesh_20200111_models.CreateSwimLaneGroupRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.CreateSwimLaneGroupResponse: + """ + @summary Creates a lane group. + + @param request: CreateSwimLaneGroupRequest + @param runtime: runtime options for this request RuntimeOptions + @return: CreateSwimLaneGroupResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.group_name): body['GroupName'] = request.group_name if not UtilClient.is_unset(request.ingress_gateway_name): body['IngressGatewayName'] = request.ingress_gateway_name + if not UtilClient.is_unset(request.ingress_gateway_namespace): + body['IngressGatewayNamespace'] = request.ingress_gateway_namespace if not UtilClient.is_unset(request.ingress_type): body['IngressType'] = request.ingress_type if not UtilClient.is_unset(request.is_permissive): @@ -1099,12 +1317,21 @@ async def create_swim_lane_group_with_options_async( request: servicemesh_20200111_models.CreateSwimLaneGroupRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.CreateSwimLaneGroupResponse: + """ + @summary Creates a lane group. + + @param request: CreateSwimLaneGroupRequest + @param runtime: runtime options for this request RuntimeOptions + @return: CreateSwimLaneGroupResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.group_name): body['GroupName'] = request.group_name if not UtilClient.is_unset(request.ingress_gateway_name): body['IngressGatewayName'] = request.ingress_gateway_name + if not UtilClient.is_unset(request.ingress_gateway_namespace): + body['IngressGatewayNamespace'] = request.ingress_gateway_namespace if not UtilClient.is_unset(request.ingress_type): body['IngressType'] = request.ingress_type if not UtilClient.is_unset(request.is_permissive): @@ -1140,6 +1367,12 @@ def create_swim_lane_group( self, request: servicemesh_20200111_models.CreateSwimLaneGroupRequest, ) -> servicemesh_20200111_models.CreateSwimLaneGroupResponse: + """ + @summary Creates a lane group. + + @param request: CreateSwimLaneGroupRequest + @return: CreateSwimLaneGroupResponse + """ runtime = util_models.RuntimeOptions() return self.create_swim_lane_group_with_options(request, runtime) @@ -1147,6 +1380,12 @@ async def create_swim_lane_group_async( self, request: servicemesh_20200111_models.CreateSwimLaneGroupRequest, ) -> servicemesh_20200111_models.CreateSwimLaneGroupResponse: + """ + @summary Creates a lane group. + + @param request: CreateSwimLaneGroupRequest + @return: CreateSwimLaneGroupResponse + """ runtime = util_models.RuntimeOptions() return await self.create_swim_lane_group_with_options_async(request, runtime) @@ -1155,6 +1394,13 @@ def create_waypoint_with_options( request: servicemesh_20200111_models.CreateWaypointRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.CreateWaypointResponse: + """ + @summary 创建Waypoint + + @param request: CreateWaypointRequest + @param runtime: runtime options for this request RuntimeOptions + @return: CreateWaypointResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.cluster_id): @@ -1211,6 +1457,13 @@ async def create_waypoint_with_options_async( request: servicemesh_20200111_models.CreateWaypointRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.CreateWaypointResponse: + """ + @summary 创建Waypoint + + @param request: CreateWaypointRequest + @param runtime: runtime options for this request RuntimeOptions + @return: CreateWaypointResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.cluster_id): @@ -1266,6 +1519,12 @@ def create_waypoint( self, request: servicemesh_20200111_models.CreateWaypointRequest, ) -> servicemesh_20200111_models.CreateWaypointResponse: + """ + @summary 创建Waypoint + + @param request: CreateWaypointRequest + @return: CreateWaypointResponse + """ runtime = util_models.RuntimeOptions() return self.create_waypoint_with_options(request, runtime) @@ -1273,6 +1532,12 @@ async def create_waypoint_async( self, request: servicemesh_20200111_models.CreateWaypointRequest, ) -> servicemesh_20200111_models.CreateWaypointResponse: + """ + @summary 创建Waypoint + + @param request: CreateWaypointRequest + @return: CreateWaypointResponse + """ runtime = util_models.RuntimeOptions() return await self.create_waypoint_with_options_async(request, runtime) @@ -1281,6 +1546,13 @@ def delete_gateway_route_with_options( request: servicemesh_20200111_models.DeleteGatewayRouteRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DeleteGatewayRouteResponse: + """ + @summary Deletes a routing rule for a Service Mesh (ASM) gateway. + + @param request: DeleteGatewayRouteRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DeleteGatewayRouteResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.istio_gateway_name): @@ -1313,6 +1585,13 @@ async def delete_gateway_route_with_options_async( request: servicemesh_20200111_models.DeleteGatewayRouteRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DeleteGatewayRouteResponse: + """ + @summary Deletes a routing rule for a Service Mesh (ASM) gateway. + + @param request: DeleteGatewayRouteRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DeleteGatewayRouteResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.istio_gateway_name): @@ -1344,6 +1623,12 @@ def delete_gateway_route( self, request: servicemesh_20200111_models.DeleteGatewayRouteRequest, ) -> servicemesh_20200111_models.DeleteGatewayRouteResponse: + """ + @summary Deletes a routing rule for a Service Mesh (ASM) gateway. + + @param request: DeleteGatewayRouteRequest + @return: DeleteGatewayRouteResponse + """ runtime = util_models.RuntimeOptions() return self.delete_gateway_route_with_options(request, runtime) @@ -1351,6 +1636,12 @@ async def delete_gateway_route_async( self, request: servicemesh_20200111_models.DeleteGatewayRouteRequest, ) -> servicemesh_20200111_models.DeleteGatewayRouteResponse: + """ + @summary Deletes a routing rule for a Service Mesh (ASM) gateway. + + @param request: DeleteGatewayRouteRequest + @return: DeleteGatewayRouteResponse + """ runtime = util_models.RuntimeOptions() return await self.delete_gateway_route_with_options_async(request, runtime) @@ -1359,6 +1650,13 @@ def delete_gateway_secret_with_options( request: servicemesh_20200111_models.DeleteGatewaySecretRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DeleteGatewaySecretResponse: + """ + @summary Deletes a secret for a Service Mesh (ASM) gateway. + + @param request: DeleteGatewaySecretRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DeleteGatewaySecretResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.istio_gateway_name): @@ -1391,6 +1689,13 @@ async def delete_gateway_secret_with_options_async( request: servicemesh_20200111_models.DeleteGatewaySecretRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DeleteGatewaySecretResponse: + """ + @summary Deletes a secret for a Service Mesh (ASM) gateway. + + @param request: DeleteGatewaySecretRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DeleteGatewaySecretResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.istio_gateway_name): @@ -1422,6 +1727,12 @@ def delete_gateway_secret( self, request: servicemesh_20200111_models.DeleteGatewaySecretRequest, ) -> servicemesh_20200111_models.DeleteGatewaySecretResponse: + """ + @summary Deletes a secret for a Service Mesh (ASM) gateway. + + @param request: DeleteGatewaySecretRequest + @return: DeleteGatewaySecretResponse + """ runtime = util_models.RuntimeOptions() return self.delete_gateway_secret_with_options(request, runtime) @@ -1429,6 +1740,12 @@ async def delete_gateway_secret_async( self, request: servicemesh_20200111_models.DeleteGatewaySecretRequest, ) -> servicemesh_20200111_models.DeleteGatewaySecretResponse: + """ + @summary Deletes a secret for a Service Mesh (ASM) gateway. + + @param request: DeleteGatewaySecretRequest + @return: DeleteGatewaySecretResponse + """ runtime = util_models.RuntimeOptions() return await self.delete_gateway_secret_with_options_async(request, runtime) @@ -1437,6 +1754,13 @@ def delete_istio_gateway_domains_with_options( request: servicemesh_20200111_models.DeleteIstioGatewayDomainsRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DeleteIstioGatewayDomainsResponse: + """ + @summary Deletes one or more domain names for a Service Mesh (ASM) gateway. + + @param request: DeleteIstioGatewayDomainsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DeleteIstioGatewayDomainsResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.hosts): @@ -1475,6 +1799,13 @@ async def delete_istio_gateway_domains_with_options_async( request: servicemesh_20200111_models.DeleteIstioGatewayDomainsRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DeleteIstioGatewayDomainsResponse: + """ + @summary Deletes one or more domain names for a Service Mesh (ASM) gateway. + + @param request: DeleteIstioGatewayDomainsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DeleteIstioGatewayDomainsResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.hosts): @@ -1512,6 +1843,12 @@ def delete_istio_gateway_domains( self, request: servicemesh_20200111_models.DeleteIstioGatewayDomainsRequest, ) -> servicemesh_20200111_models.DeleteIstioGatewayDomainsResponse: + """ + @summary Deletes one or more domain names for a Service Mesh (ASM) gateway. + + @param request: DeleteIstioGatewayDomainsRequest + @return: DeleteIstioGatewayDomainsResponse + """ runtime = util_models.RuntimeOptions() return self.delete_istio_gateway_domains_with_options(request, runtime) @@ -1519,6 +1856,12 @@ async def delete_istio_gateway_domains_async( self, request: servicemesh_20200111_models.DeleteIstioGatewayDomainsRequest, ) -> servicemesh_20200111_models.DeleteIstioGatewayDomainsResponse: + """ + @summary Deletes one or more domain names for a Service Mesh (ASM) gateway. + + @param request: DeleteIstioGatewayDomainsRequest + @return: DeleteIstioGatewayDomainsResponse + """ runtime = util_models.RuntimeOptions() return await self.delete_istio_gateway_domains_with_options_async(request, runtime) @@ -1527,6 +1870,13 @@ def delete_service_mesh_with_options( request: servicemesh_20200111_models.DeleteServiceMeshRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DeleteServiceMeshResponse: + """ + @summary Deletes a Service Mesh (ASM) instance. + + @param request: DeleteServiceMeshRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DeleteServiceMeshResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.force): @@ -1559,6 +1909,13 @@ async def delete_service_mesh_with_options_async( request: servicemesh_20200111_models.DeleteServiceMeshRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DeleteServiceMeshResponse: + """ + @summary Deletes a Service Mesh (ASM) instance. + + @param request: DeleteServiceMeshRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DeleteServiceMeshResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.force): @@ -1590,6 +1947,12 @@ def delete_service_mesh( self, request: servicemesh_20200111_models.DeleteServiceMeshRequest, ) -> servicemesh_20200111_models.DeleteServiceMeshResponse: + """ + @summary Deletes a Service Mesh (ASM) instance. + + @param request: DeleteServiceMeshRequest + @return: DeleteServiceMeshResponse + """ runtime = util_models.RuntimeOptions() return self.delete_service_mesh_with_options(request, runtime) @@ -1597,6 +1960,12 @@ async def delete_service_mesh_async( self, request: servicemesh_20200111_models.DeleteServiceMeshRequest, ) -> servicemesh_20200111_models.DeleteServiceMeshResponse: + """ + @summary Deletes a Service Mesh (ASM) instance. + + @param request: DeleteServiceMeshRequest + @return: DeleteServiceMeshResponse + """ runtime = util_models.RuntimeOptions() return await self.delete_service_mesh_with_options_async(request, runtime) @@ -1605,6 +1974,13 @@ def delete_swim_lane_with_options( request: servicemesh_20200111_models.DeleteSwimLaneRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DeleteSwimLaneResponse: + """ + @summary Deletes a lane. + + @param request: DeleteSwimLaneRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DeleteSwimLaneResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.group_name): @@ -1637,6 +2013,13 @@ async def delete_swim_lane_with_options_async( request: servicemesh_20200111_models.DeleteSwimLaneRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DeleteSwimLaneResponse: + """ + @summary Deletes a lane. + + @param request: DeleteSwimLaneRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DeleteSwimLaneResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.group_name): @@ -1668,6 +2051,12 @@ def delete_swim_lane( self, request: servicemesh_20200111_models.DeleteSwimLaneRequest, ) -> servicemesh_20200111_models.DeleteSwimLaneResponse: + """ + @summary Deletes a lane. + + @param request: DeleteSwimLaneRequest + @return: DeleteSwimLaneResponse + """ runtime = util_models.RuntimeOptions() return self.delete_swim_lane_with_options(request, runtime) @@ -1675,6 +2064,12 @@ async def delete_swim_lane_async( self, request: servicemesh_20200111_models.DeleteSwimLaneRequest, ) -> servicemesh_20200111_models.DeleteSwimLaneResponse: + """ + @summary Deletes a lane. + + @param request: DeleteSwimLaneRequest + @return: DeleteSwimLaneResponse + """ runtime = util_models.RuntimeOptions() return await self.delete_swim_lane_with_options_async(request, runtime) @@ -1683,6 +2078,13 @@ def delete_swim_lane_group_with_options( request: servicemesh_20200111_models.DeleteSwimLaneGroupRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DeleteSwimLaneGroupResponse: + """ + @summary Deletes a lane group. If a lane group is deleted, the lanes in the group and the traffic routing rules attached to the lanes are deleted. + + @param request: DeleteSwimLaneGroupRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DeleteSwimLaneGroupResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.group_name): @@ -1713,6 +2115,13 @@ async def delete_swim_lane_group_with_options_async( request: servicemesh_20200111_models.DeleteSwimLaneGroupRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DeleteSwimLaneGroupResponse: + """ + @summary Deletes a lane group. If a lane group is deleted, the lanes in the group and the traffic routing rules attached to the lanes are deleted. + + @param request: DeleteSwimLaneGroupRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DeleteSwimLaneGroupResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.group_name): @@ -1742,6 +2151,12 @@ def delete_swim_lane_group( self, request: servicemesh_20200111_models.DeleteSwimLaneGroupRequest, ) -> servicemesh_20200111_models.DeleteSwimLaneGroupResponse: + """ + @summary Deletes a lane group. If a lane group is deleted, the lanes in the group and the traffic routing rules attached to the lanes are deleted. + + @param request: DeleteSwimLaneGroupRequest + @return: DeleteSwimLaneGroupResponse + """ runtime = util_models.RuntimeOptions() return self.delete_swim_lane_group_with_options(request, runtime) @@ -1749,6 +2164,12 @@ async def delete_swim_lane_group_async( self, request: servicemesh_20200111_models.DeleteSwimLaneGroupRequest, ) -> servicemesh_20200111_models.DeleteSwimLaneGroupResponse: + """ + @summary Deletes a lane group. If a lane group is deleted, the lanes in the group and the traffic routing rules attached to the lanes are deleted. + + @param request: DeleteSwimLaneGroupRequest + @return: DeleteSwimLaneGroupResponse + """ runtime = util_models.RuntimeOptions() return await self.delete_swim_lane_group_with_options_async(request, runtime) @@ -1757,6 +2178,13 @@ def delete_waypoint_with_options( request: servicemesh_20200111_models.DeleteWaypointRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DeleteWaypointResponse: + """ + @summary 删除Waypoint资源 + + @param request: DeleteWaypointRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DeleteWaypointResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.cluster_id): @@ -1791,6 +2219,13 @@ async def delete_waypoint_with_options_async( request: servicemesh_20200111_models.DeleteWaypointRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DeleteWaypointResponse: + """ + @summary 删除Waypoint资源 + + @param request: DeleteWaypointRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DeleteWaypointResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.cluster_id): @@ -1824,6 +2259,12 @@ def delete_waypoint( self, request: servicemesh_20200111_models.DeleteWaypointRequest, ) -> servicemesh_20200111_models.DeleteWaypointResponse: + """ + @summary 删除Waypoint资源 + + @param request: DeleteWaypointRequest + @return: DeleteWaypointResponse + """ runtime = util_models.RuntimeOptions() return self.delete_waypoint_with_options(request, runtime) @@ -1831,6 +2272,12 @@ async def delete_waypoint_async( self, request: servicemesh_20200111_models.DeleteWaypointRequest, ) -> servicemesh_20200111_models.DeleteWaypointResponse: + """ + @summary 删除Waypoint资源 + + @param request: DeleteWaypointRequest + @return: DeleteWaypointResponse + """ runtime = util_models.RuntimeOptions() return await self.delete_waypoint_with_options_async(request, runtime) @@ -1839,6 +2286,13 @@ def describe_asmgateway_imported_services_with_options( request: servicemesh_20200111_models.DescribeASMGatewayImportedServicesRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeASMGatewayImportedServicesResponse: + """ + @summary Queries the information about imported services on a Service Mesh (ASM) gateway. + + @param request: DescribeASMGatewayImportedServicesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeASMGatewayImportedServicesResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.asmgateway_name): @@ -1871,6 +2325,13 @@ async def describe_asmgateway_imported_services_with_options_async( request: servicemesh_20200111_models.DescribeASMGatewayImportedServicesRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeASMGatewayImportedServicesResponse: + """ + @summary Queries the information about imported services on a Service Mesh (ASM) gateway. + + @param request: DescribeASMGatewayImportedServicesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeASMGatewayImportedServicesResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.asmgateway_name): @@ -1902,6 +2363,12 @@ def describe_asmgateway_imported_services( self, request: servicemesh_20200111_models.DescribeASMGatewayImportedServicesRequest, ) -> servicemesh_20200111_models.DescribeASMGatewayImportedServicesResponse: + """ + @summary Queries the information about imported services on a Service Mesh (ASM) gateway. + + @param request: DescribeASMGatewayImportedServicesRequest + @return: DescribeASMGatewayImportedServicesResponse + """ runtime = util_models.RuntimeOptions() return self.describe_asmgateway_imported_services_with_options(request, runtime) @@ -1909,6 +2376,12 @@ async def describe_asmgateway_imported_services_async( self, request: servicemesh_20200111_models.DescribeASMGatewayImportedServicesRequest, ) -> servicemesh_20200111_models.DescribeASMGatewayImportedServicesResponse: + """ + @summary Queries the information about imported services on a Service Mesh (ASM) gateway. + + @param request: DescribeASMGatewayImportedServicesRequest + @return: DescribeASMGatewayImportedServicesResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_asmgateway_imported_services_with_options_async(request, runtime) @@ -1917,6 +2390,13 @@ def describe_ccmversion_with_options( request: servicemesh_20200111_models.DescribeCCMVersionRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeCCMVersionResponse: + """ + @summary Queries the versions of the Cloud Controller Manager (CCM) component. + + @param request: DescribeCCMVersionRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeCCMVersionResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.service_mesh_id): @@ -1945,6 +2425,13 @@ async def describe_ccmversion_with_options_async( request: servicemesh_20200111_models.DescribeCCMVersionRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeCCMVersionResponse: + """ + @summary Queries the versions of the Cloud Controller Manager (CCM) component. + + @param request: DescribeCCMVersionRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeCCMVersionResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.service_mesh_id): @@ -1972,6 +2459,12 @@ def describe_ccmversion( self, request: servicemesh_20200111_models.DescribeCCMVersionRequest, ) -> servicemesh_20200111_models.DescribeCCMVersionResponse: + """ + @summary Queries the versions of the Cloud Controller Manager (CCM) component. + + @param request: DescribeCCMVersionRequest + @return: DescribeCCMVersionResponse + """ runtime = util_models.RuntimeOptions() return self.describe_ccmversion_with_options(request, runtime) @@ -1979,6 +2472,12 @@ async def describe_ccmversion_async( self, request: servicemesh_20200111_models.DescribeCCMVersionRequest, ) -> servicemesh_20200111_models.DescribeCCMVersionResponse: + """ + @summary Queries the versions of the Cloud Controller Manager (CCM) component. + + @param request: DescribeCCMVersionRequest + @return: DescribeCCMVersionResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_ccmversion_with_options_async(request, runtime) @@ -1987,6 +2486,13 @@ def describe_cens_with_options( request: servicemesh_20200111_models.DescribeCensRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeCensResponse: + """ + @summary Queries the network connectivity between clusters that are deployed across virtual private clouds (VPCs) in a Service Mesh (ASM) instance. + + @param request: DescribeCensRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeCensResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.service_mesh_id): @@ -2015,6 +2521,13 @@ async def describe_cens_with_options_async( request: servicemesh_20200111_models.DescribeCensRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeCensResponse: + """ + @summary Queries the network connectivity between clusters that are deployed across virtual private clouds (VPCs) in a Service Mesh (ASM) instance. + + @param request: DescribeCensRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeCensResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.service_mesh_id): @@ -2042,6 +2555,12 @@ def describe_cens( self, request: servicemesh_20200111_models.DescribeCensRequest, ) -> servicemesh_20200111_models.DescribeCensResponse: + """ + @summary Queries the network connectivity between clusters that are deployed across virtual private clouds (VPCs) in a Service Mesh (ASM) instance. + + @param request: DescribeCensRequest + @return: DescribeCensResponse + """ runtime = util_models.RuntimeOptions() return self.describe_cens_with_options(request, runtime) @@ -2049,6 +2568,12 @@ async def describe_cens_async( self, request: servicemesh_20200111_models.DescribeCensRequest, ) -> servicemesh_20200111_models.DescribeCensResponse: + """ + @summary Queries the network connectivity between clusters that are deployed across virtual private clouds (VPCs) in a Service Mesh (ASM) instance. + + @param request: DescribeCensRequest + @return: DescribeCensResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_cens_with_options_async(request, runtime) @@ -2057,10 +2582,19 @@ def describe_cluster_grafana_with_options( request: servicemesh_20200111_models.DescribeClusterGrafanaRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeClusterGrafanaResponse: + """ + @summary Queries the information about Grafana dashboards of a cluster in a Service Mesh (ASM) instance. + + @param request: DescribeClusterGrafanaRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeClusterGrafanaResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.k_8s_cluster_id): query['K8sClusterId'] = request.k_8s_cluster_id + if not UtilClient.is_unset(request.re_add_prometheus_integration): + query['ReAddPrometheusIntegration'] = request.re_add_prometheus_integration if not UtilClient.is_unset(request.service_mesh_id): query['ServiceMeshId'] = request.service_mesh_id req = open_api_models.OpenApiRequest( @@ -2087,10 +2621,19 @@ async def describe_cluster_grafana_with_options_async( request: servicemesh_20200111_models.DescribeClusterGrafanaRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeClusterGrafanaResponse: + """ + @summary Queries the information about Grafana dashboards of a cluster in a Service Mesh (ASM) instance. + + @param request: DescribeClusterGrafanaRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeClusterGrafanaResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.k_8s_cluster_id): query['K8sClusterId'] = request.k_8s_cluster_id + if not UtilClient.is_unset(request.re_add_prometheus_integration): + query['ReAddPrometheusIntegration'] = request.re_add_prometheus_integration if not UtilClient.is_unset(request.service_mesh_id): query['ServiceMeshId'] = request.service_mesh_id req = open_api_models.OpenApiRequest( @@ -2116,6 +2659,12 @@ def describe_cluster_grafana( self, request: servicemesh_20200111_models.DescribeClusterGrafanaRequest, ) -> servicemesh_20200111_models.DescribeClusterGrafanaResponse: + """ + @summary Queries the information about Grafana dashboards of a cluster in a Service Mesh (ASM) instance. + + @param request: DescribeClusterGrafanaRequest + @return: DescribeClusterGrafanaResponse + """ runtime = util_models.RuntimeOptions() return self.describe_cluster_grafana_with_options(request, runtime) @@ -2123,6 +2672,12 @@ async def describe_cluster_grafana_async( self, request: servicemesh_20200111_models.DescribeClusterGrafanaRequest, ) -> servicemesh_20200111_models.DescribeClusterGrafanaResponse: + """ + @summary Queries the information about Grafana dashboards of a cluster in a Service Mesh (ASM) instance. + + @param request: DescribeClusterGrafanaRequest + @return: DescribeClusterGrafanaResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_cluster_grafana_with_options_async(request, runtime) @@ -2131,6 +2686,13 @@ def describe_cluster_prometheus_with_options( request: servicemesh_20200111_models.DescribeClusterPrometheusRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeClusterPrometheusResponse: + """ + @summary Queries the public endpoint of the Prometheus service that is used to monitor a cluster in an Alibaba Cloud Service Mesh (ASM) instance. + + @param request: DescribeClusterPrometheusRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeClusterPrometheusResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.k_8s_cluster_id): @@ -2163,6 +2725,13 @@ async def describe_cluster_prometheus_with_options_async( request: servicemesh_20200111_models.DescribeClusterPrometheusRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeClusterPrometheusResponse: + """ + @summary Queries the public endpoint of the Prometheus service that is used to monitor a cluster in an Alibaba Cloud Service Mesh (ASM) instance. + + @param request: DescribeClusterPrometheusRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeClusterPrometheusResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.k_8s_cluster_id): @@ -2194,6 +2763,12 @@ def describe_cluster_prometheus( self, request: servicemesh_20200111_models.DescribeClusterPrometheusRequest, ) -> servicemesh_20200111_models.DescribeClusterPrometheusResponse: + """ + @summary Queries the public endpoint of the Prometheus service that is used to monitor a cluster in an Alibaba Cloud Service Mesh (ASM) instance. + + @param request: DescribeClusterPrometheusRequest + @return: DescribeClusterPrometheusResponse + """ runtime = util_models.RuntimeOptions() return self.describe_cluster_prometheus_with_options(request, runtime) @@ -2201,6 +2776,12 @@ async def describe_cluster_prometheus_async( self, request: servicemesh_20200111_models.DescribeClusterPrometheusRequest, ) -> servicemesh_20200111_models.DescribeClusterPrometheusResponse: + """ + @summary Queries the public endpoint of the Prometheus service that is used to monitor a cluster in an Alibaba Cloud Service Mesh (ASM) instance. + + @param request: DescribeClusterPrometheusRequest + @return: DescribeClusterPrometheusResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_cluster_prometheus_with_options_async(request, runtime) @@ -2209,6 +2790,13 @@ def describe_clusters_in_service_mesh_with_options( request: servicemesh_20200111_models.DescribeClustersInServiceMeshRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeClustersInServiceMeshResponse: + """ + @summary Queries the information about clusters in a Service Mesh (ASM) instance. + + @param request: DescribeClustersInServiceMeshRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeClustersInServiceMeshResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.service_mesh_id): @@ -2237,6 +2825,13 @@ async def describe_clusters_in_service_mesh_with_options_async( request: servicemesh_20200111_models.DescribeClustersInServiceMeshRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeClustersInServiceMeshResponse: + """ + @summary Queries the information about clusters in a Service Mesh (ASM) instance. + + @param request: DescribeClustersInServiceMeshRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeClustersInServiceMeshResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.service_mesh_id): @@ -2264,6 +2859,12 @@ def describe_clusters_in_service_mesh( self, request: servicemesh_20200111_models.DescribeClustersInServiceMeshRequest, ) -> servicemesh_20200111_models.DescribeClustersInServiceMeshResponse: + """ + @summary Queries the information about clusters in a Service Mesh (ASM) instance. + + @param request: DescribeClustersInServiceMeshRequest + @return: DescribeClustersInServiceMeshResponse + """ runtime = util_models.RuntimeOptions() return self.describe_clusters_in_service_mesh_with_options(request, runtime) @@ -2271,6 +2872,12 @@ async def describe_clusters_in_service_mesh_async( self, request: servicemesh_20200111_models.DescribeClustersInServiceMeshRequest, ) -> servicemesh_20200111_models.DescribeClustersInServiceMeshResponse: + """ + @summary Queries the information about clusters in a Service Mesh (ASM) instance. + + @param request: DescribeClustersInServiceMeshRequest + @return: DescribeClustersInServiceMeshResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_clusters_in_service_mesh_with_options_async(request, runtime) @@ -2279,6 +2886,13 @@ def describe_cr_templates_with_options( request: servicemesh_20200111_models.DescribeCrTemplatesRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeCrTemplatesResponse: + """ + @summary Queries the common YAML templates of Istio resources used by Service Mesh (ASM) instances. + + @param request: DescribeCrTemplatesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeCrTemplatesResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.istio_version): @@ -2309,6 +2923,13 @@ async def describe_cr_templates_with_options_async( request: servicemesh_20200111_models.DescribeCrTemplatesRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeCrTemplatesResponse: + """ + @summary Queries the common YAML templates of Istio resources used by Service Mesh (ASM) instances. + + @param request: DescribeCrTemplatesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeCrTemplatesResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.istio_version): @@ -2338,6 +2959,12 @@ def describe_cr_templates( self, request: servicemesh_20200111_models.DescribeCrTemplatesRequest, ) -> servicemesh_20200111_models.DescribeCrTemplatesResponse: + """ + @summary Queries the common YAML templates of Istio resources used by Service Mesh (ASM) instances. + + @param request: DescribeCrTemplatesRequest + @return: DescribeCrTemplatesResponse + """ runtime = util_models.RuntimeOptions() return self.describe_cr_templates_with_options(request, runtime) @@ -2345,6 +2972,12 @@ async def describe_cr_templates_async( self, request: servicemesh_20200111_models.DescribeCrTemplatesRequest, ) -> servicemesh_20200111_models.DescribeCrTemplatesResponse: + """ + @summary Queries the common YAML templates of Istio resources used by Service Mesh (ASM) instances. + + @param request: DescribeCrTemplatesRequest + @return: DescribeCrTemplatesResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_cr_templates_with_options_async(request, runtime) @@ -2353,6 +2986,13 @@ def describe_eip_resources_with_options( request: servicemesh_20200111_models.DescribeEipResourcesRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeEipResourcesResponse: + """ + @summary DescribeEipResources + + @param request: DescribeEipResourcesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeEipResourcesResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.page_num): @@ -2385,6 +3025,13 @@ async def describe_eip_resources_with_options_async( request: servicemesh_20200111_models.DescribeEipResourcesRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeEipResourcesResponse: + """ + @summary DescribeEipResources + + @param request: DescribeEipResourcesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeEipResourcesResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.page_num): @@ -2416,6 +3063,12 @@ def describe_eip_resources( self, request: servicemesh_20200111_models.DescribeEipResourcesRequest, ) -> servicemesh_20200111_models.DescribeEipResourcesResponse: + """ + @summary DescribeEipResources + + @param request: DescribeEipResourcesRequest + @return: DescribeEipResourcesResponse + """ runtime = util_models.RuntimeOptions() return self.describe_eip_resources_with_options(request, runtime) @@ -2423,6 +3076,12 @@ async def describe_eip_resources_async( self, request: servicemesh_20200111_models.DescribeEipResourcesRequest, ) -> servicemesh_20200111_models.DescribeEipResourcesResponse: + """ + @summary DescribeEipResources + + @param request: DescribeEipResourcesRequest + @return: DescribeEipResourcesResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_eip_resources_with_options_async(request, runtime) @@ -2431,6 +3090,13 @@ def describe_gateway_secret_details_with_options( request: servicemesh_20200111_models.DescribeGatewaySecretDetailsRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeGatewaySecretDetailsResponse: + """ + @summary Queries the detailed information about a secret of a Service Mesh (ASM) gateway. + + @param request: DescribeGatewaySecretDetailsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeGatewaySecretDetailsResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.istio_gateway_name): @@ -2461,6 +3127,13 @@ async def describe_gateway_secret_details_with_options_async( request: servicemesh_20200111_models.DescribeGatewaySecretDetailsRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeGatewaySecretDetailsResponse: + """ + @summary Queries the detailed information about a secret of a Service Mesh (ASM) gateway. + + @param request: DescribeGatewaySecretDetailsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeGatewaySecretDetailsResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.istio_gateway_name): @@ -2490,6 +3163,12 @@ def describe_gateway_secret_details( self, request: servicemesh_20200111_models.DescribeGatewaySecretDetailsRequest, ) -> servicemesh_20200111_models.DescribeGatewaySecretDetailsResponse: + """ + @summary Queries the detailed information about a secret of a Service Mesh (ASM) gateway. + + @param request: DescribeGatewaySecretDetailsRequest + @return: DescribeGatewaySecretDetailsResponse + """ runtime = util_models.RuntimeOptions() return self.describe_gateway_secret_details_with_options(request, runtime) @@ -2497,6 +3176,12 @@ async def describe_gateway_secret_details_async( self, request: servicemesh_20200111_models.DescribeGatewaySecretDetailsRequest, ) -> servicemesh_20200111_models.DescribeGatewaySecretDetailsResponse: + """ + @summary Queries the detailed information about a secret of a Service Mesh (ASM) gateway. + + @param request: DescribeGatewaySecretDetailsRequest + @return: DescribeGatewaySecretDetailsResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_gateway_secret_details_with_options_async(request, runtime) @@ -2505,6 +3190,13 @@ def describe_guest_cluster_access_log_dashboards_with_options( request: servicemesh_20200111_models.DescribeGuestClusterAccessLogDashboardsRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeGuestClusterAccessLogDashboardsResponse: + """ + @summary Queries the access log dashboards of a cluster on the data plane. + + @param request: DescribeGuestClusterAccessLogDashboardsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeGuestClusterAccessLogDashboardsResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.k_8s_cluster_id): @@ -2533,6 +3225,13 @@ async def describe_guest_cluster_access_log_dashboards_with_options_async( request: servicemesh_20200111_models.DescribeGuestClusterAccessLogDashboardsRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeGuestClusterAccessLogDashboardsResponse: + """ + @summary Queries the access log dashboards of a cluster on the data plane. + + @param request: DescribeGuestClusterAccessLogDashboardsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeGuestClusterAccessLogDashboardsResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.k_8s_cluster_id): @@ -2560,6 +3259,12 @@ def describe_guest_cluster_access_log_dashboards( self, request: servicemesh_20200111_models.DescribeGuestClusterAccessLogDashboardsRequest, ) -> servicemesh_20200111_models.DescribeGuestClusterAccessLogDashboardsResponse: + """ + @summary Queries the access log dashboards of a cluster on the data plane. + + @param request: DescribeGuestClusterAccessLogDashboardsRequest + @return: DescribeGuestClusterAccessLogDashboardsResponse + """ runtime = util_models.RuntimeOptions() return self.describe_guest_cluster_access_log_dashboards_with_options(request, runtime) @@ -2567,6 +3272,12 @@ async def describe_guest_cluster_access_log_dashboards_async( self, request: servicemesh_20200111_models.DescribeGuestClusterAccessLogDashboardsRequest, ) -> servicemesh_20200111_models.DescribeGuestClusterAccessLogDashboardsResponse: + """ + @summary Queries the access log dashboards of a cluster on the data plane. + + @param request: DescribeGuestClusterAccessLogDashboardsRequest + @return: DescribeGuestClusterAccessLogDashboardsResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_guest_cluster_access_log_dashboards_with_options_async(request, runtime) @@ -2575,6 +3286,13 @@ def describe_guest_cluster_namespaces_with_options( request: servicemesh_20200111_models.DescribeGuestClusterNamespacesRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeGuestClusterNamespacesResponse: + """ + @summary Queries a list of the namespaces of a Kubernetes cluster that is added to a Service Mesh (ASM) instance. + + @param request: DescribeGuestClusterNamespacesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeGuestClusterNamespacesResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.guest_cluster_id): @@ -2607,6 +3325,13 @@ async def describe_guest_cluster_namespaces_with_options_async( request: servicemesh_20200111_models.DescribeGuestClusterNamespacesRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeGuestClusterNamespacesResponse: + """ + @summary Queries a list of the namespaces of a Kubernetes cluster that is added to a Service Mesh (ASM) instance. + + @param request: DescribeGuestClusterNamespacesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeGuestClusterNamespacesResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.guest_cluster_id): @@ -2638,6 +3363,12 @@ def describe_guest_cluster_namespaces( self, request: servicemesh_20200111_models.DescribeGuestClusterNamespacesRequest, ) -> servicemesh_20200111_models.DescribeGuestClusterNamespacesResponse: + """ + @summary Queries a list of the namespaces of a Kubernetes cluster that is added to a Service Mesh (ASM) instance. + + @param request: DescribeGuestClusterNamespacesRequest + @return: DescribeGuestClusterNamespacesResponse + """ runtime = util_models.RuntimeOptions() return self.describe_guest_cluster_namespaces_with_options(request, runtime) @@ -2645,6 +3376,12 @@ async def describe_guest_cluster_namespaces_async( self, request: servicemesh_20200111_models.DescribeGuestClusterNamespacesRequest, ) -> servicemesh_20200111_models.DescribeGuestClusterNamespacesResponse: + """ + @summary Queries a list of the namespaces of a Kubernetes cluster that is added to a Service Mesh (ASM) instance. + + @param request: DescribeGuestClusterNamespacesRequest + @return: DescribeGuestClusterNamespacesResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_guest_cluster_namespaces_with_options_async(request, runtime) @@ -2653,6 +3390,13 @@ def describe_guest_cluster_pods_with_options( request: servicemesh_20200111_models.DescribeGuestClusterPodsRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeGuestClusterPodsResponse: + """ + @summary Queries a list of the pods in a specified namespace of a Kubernetes cluster that is added to a Service Mesh (ASM) instance. + + @param request: DescribeGuestClusterPodsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeGuestClusterPodsResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.guest_cluster_id): @@ -2685,6 +3429,13 @@ async def describe_guest_cluster_pods_with_options_async( request: servicemesh_20200111_models.DescribeGuestClusterPodsRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeGuestClusterPodsResponse: + """ + @summary Queries a list of the pods in a specified namespace of a Kubernetes cluster that is added to a Service Mesh (ASM) instance. + + @param request: DescribeGuestClusterPodsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeGuestClusterPodsResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.guest_cluster_id): @@ -2716,6 +3467,12 @@ def describe_guest_cluster_pods( self, request: servicemesh_20200111_models.DescribeGuestClusterPodsRequest, ) -> servicemesh_20200111_models.DescribeGuestClusterPodsResponse: + """ + @summary Queries a list of the pods in a specified namespace of a Kubernetes cluster that is added to a Service Mesh (ASM) instance. + + @param request: DescribeGuestClusterPodsRequest + @return: DescribeGuestClusterPodsResponse + """ runtime = util_models.RuntimeOptions() return self.describe_guest_cluster_pods_with_options(request, runtime) @@ -2723,6 +3480,12 @@ async def describe_guest_cluster_pods_async( self, request: servicemesh_20200111_models.DescribeGuestClusterPodsRequest, ) -> servicemesh_20200111_models.DescribeGuestClusterPodsResponse: + """ + @summary Queries a list of the pods in a specified namespace of a Kubernetes cluster that is added to a Service Mesh (ASM) instance. + + @param request: DescribeGuestClusterPodsRequest + @return: DescribeGuestClusterPodsResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_guest_cluster_pods_with_options_async(request, runtime) @@ -2731,6 +3494,13 @@ def describe_imported_services_detail_with_options( request: servicemesh_20200111_models.DescribeImportedServicesDetailRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeImportedServicesDetailResponse: + """ + @summary Queries the details of the imported services on a Service Mesh (ASM) gateway. + + @param request: DescribeImportedServicesDetailRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeImportedServicesDetailResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.asmgateway_name): @@ -2763,6 +3533,13 @@ async def describe_imported_services_detail_with_options_async( request: servicemesh_20200111_models.DescribeImportedServicesDetailRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeImportedServicesDetailResponse: + """ + @summary Queries the details of the imported services on a Service Mesh (ASM) gateway. + + @param request: DescribeImportedServicesDetailRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeImportedServicesDetailResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.asmgateway_name): @@ -2794,6 +3571,12 @@ def describe_imported_services_detail( self, request: servicemesh_20200111_models.DescribeImportedServicesDetailRequest, ) -> servicemesh_20200111_models.DescribeImportedServicesDetailResponse: + """ + @summary Queries the details of the imported services on a Service Mesh (ASM) gateway. + + @param request: DescribeImportedServicesDetailRequest + @return: DescribeImportedServicesDetailResponse + """ runtime = util_models.RuntimeOptions() return self.describe_imported_services_detail_with_options(request, runtime) @@ -2801,6 +3584,12 @@ async def describe_imported_services_detail_async( self, request: servicemesh_20200111_models.DescribeImportedServicesDetailRequest, ) -> servicemesh_20200111_models.DescribeImportedServicesDetailResponse: + """ + @summary Queries the details of the imported services on a Service Mesh (ASM) gateway. + + @param request: DescribeImportedServicesDetailRequest + @return: DescribeImportedServicesDetailResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_imported_services_detail_with_options_async(request, runtime) @@ -2809,6 +3598,13 @@ def describe_istio_gateway_domains_with_options( request: servicemesh_20200111_models.DescribeIstioGatewayDomainsRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeIstioGatewayDomainsResponse: + """ + @summary Queries a list of the domain names that are exposed by a Service Mesh (ASM) gateway. + + @param request: DescribeIstioGatewayDomainsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeIstioGatewayDomainsResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.istio_gateway_name): @@ -2843,6 +3639,13 @@ async def describe_istio_gateway_domains_with_options_async( request: servicemesh_20200111_models.DescribeIstioGatewayDomainsRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeIstioGatewayDomainsResponse: + """ + @summary Queries a list of the domain names that are exposed by a Service Mesh (ASM) gateway. + + @param request: DescribeIstioGatewayDomainsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeIstioGatewayDomainsResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.istio_gateway_name): @@ -2876,6 +3679,12 @@ def describe_istio_gateway_domains( self, request: servicemesh_20200111_models.DescribeIstioGatewayDomainsRequest, ) -> servicemesh_20200111_models.DescribeIstioGatewayDomainsResponse: + """ + @summary Queries a list of the domain names that are exposed by a Service Mesh (ASM) gateway. + + @param request: DescribeIstioGatewayDomainsRequest + @return: DescribeIstioGatewayDomainsResponse + """ runtime = util_models.RuntimeOptions() return self.describe_istio_gateway_domains_with_options(request, runtime) @@ -2883,6 +3692,12 @@ async def describe_istio_gateway_domains_async( self, request: servicemesh_20200111_models.DescribeIstioGatewayDomainsRequest, ) -> servicemesh_20200111_models.DescribeIstioGatewayDomainsResponse: + """ + @summary Queries a list of the domain names that are exposed by a Service Mesh (ASM) gateway. + + @param request: DescribeIstioGatewayDomainsRequest + @return: DescribeIstioGatewayDomainsResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_istio_gateway_domains_with_options_async(request, runtime) @@ -2891,6 +3706,13 @@ def describe_istio_gateway_route_detail_with_options( request: servicemesh_20200111_models.DescribeIstioGatewayRouteDetailRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeIstioGatewayRouteDetailResponse: + """ + @summary Queries the detailed information about a routing rule of an Alibaba Cloud Service Mesh (ASM) gateway. + + @param request: DescribeIstioGatewayRouteDetailRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeIstioGatewayRouteDetailResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.istio_gateway_name): @@ -2923,6 +3745,13 @@ async def describe_istio_gateway_route_detail_with_options_async( request: servicemesh_20200111_models.DescribeIstioGatewayRouteDetailRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeIstioGatewayRouteDetailResponse: + """ + @summary Queries the detailed information about a routing rule of an Alibaba Cloud Service Mesh (ASM) gateway. + + @param request: DescribeIstioGatewayRouteDetailRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeIstioGatewayRouteDetailResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.istio_gateway_name): @@ -2954,6 +3783,12 @@ def describe_istio_gateway_route_detail( self, request: servicemesh_20200111_models.DescribeIstioGatewayRouteDetailRequest, ) -> servicemesh_20200111_models.DescribeIstioGatewayRouteDetailResponse: + """ + @summary Queries the detailed information about a routing rule of an Alibaba Cloud Service Mesh (ASM) gateway. + + @param request: DescribeIstioGatewayRouteDetailRequest + @return: DescribeIstioGatewayRouteDetailResponse + """ runtime = util_models.RuntimeOptions() return self.describe_istio_gateway_route_detail_with_options(request, runtime) @@ -2961,6 +3796,12 @@ async def describe_istio_gateway_route_detail_async( self, request: servicemesh_20200111_models.DescribeIstioGatewayRouteDetailRequest, ) -> servicemesh_20200111_models.DescribeIstioGatewayRouteDetailResponse: + """ + @summary Queries the detailed information about a routing rule of an Alibaba Cloud Service Mesh (ASM) gateway. + + @param request: DescribeIstioGatewayRouteDetailRequest + @return: DescribeIstioGatewayRouteDetailResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_istio_gateway_route_detail_with_options_async(request, runtime) @@ -2969,6 +3810,13 @@ def describe_istio_gateway_routes_with_options( request: servicemesh_20200111_models.DescribeIstioGatewayRoutesRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeIstioGatewayRoutesResponse: + """ + @summary Queries the routing rules for a Service Mesh (ASM) gateway. + + @param request: DescribeIstioGatewayRoutesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeIstioGatewayRoutesResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.istio_gateway_name): @@ -2999,6 +3847,13 @@ async def describe_istio_gateway_routes_with_options_async( request: servicemesh_20200111_models.DescribeIstioGatewayRoutesRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeIstioGatewayRoutesResponse: + """ + @summary Queries the routing rules for a Service Mesh (ASM) gateway. + + @param request: DescribeIstioGatewayRoutesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeIstioGatewayRoutesResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.istio_gateway_name): @@ -3028,6 +3883,12 @@ def describe_istio_gateway_routes( self, request: servicemesh_20200111_models.DescribeIstioGatewayRoutesRequest, ) -> servicemesh_20200111_models.DescribeIstioGatewayRoutesResponse: + """ + @summary Queries the routing rules for a Service Mesh (ASM) gateway. + + @param request: DescribeIstioGatewayRoutesRequest + @return: DescribeIstioGatewayRoutesResponse + """ runtime = util_models.RuntimeOptions() return self.describe_istio_gateway_routes_with_options(request, runtime) @@ -3035,37 +3896,36 @@ async def describe_istio_gateway_routes_async( self, request: servicemesh_20200111_models.DescribeIstioGatewayRoutesRequest, ) -> servicemesh_20200111_models.DescribeIstioGatewayRoutesResponse: + """ + @summary Queries the routing rules for a Service Mesh (ASM) gateway. + + @param request: DescribeIstioGatewayRoutesRequest + @return: DescribeIstioGatewayRoutesResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_istio_gateway_routes_with_options_async(request, runtime) - def describe_metadata_with_options( + def describe_mesh_multi_cluster_network_with_options( self, + request: servicemesh_20200111_models.DescribeMeshMultiClusterNetworkRequest, runtime: util_models.RuntimeOptions, - ) -> servicemesh_20200111_models.DescribeMetadataResponse: - req = open_api_models.OpenApiRequest() - params = open_api_models.Params( - action='DescribeMetadata', - version='2020-01-11', - protocol='HTTPS', - pathname='/', - method='POST', - auth_type='AK', - style='RPC', - req_body_type='formData', - body_type='json' - ) - return TeaCore.from_map( - servicemesh_20200111_models.DescribeMetadataResponse(), - self.call_api(params, req, runtime) + ) -> servicemesh_20200111_models.DescribeMeshMultiClusterNetworkResponse: + """ + @summary 获取ASM网格网络分区设置 + + @param request: DescribeMeshMultiClusterNetworkRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeMeshMultiClusterNetworkResponse + """ + UtilClient.validate_model(request) + body = {} + if not UtilClient.is_unset(request.service_mesh_id): + body['ServiceMeshId'] = request.service_mesh_id + req = open_api_models.OpenApiRequest( + body=OpenApiUtilClient.parse_to_map(body) ) - - async def describe_metadata_with_options_async( - self, - runtime: util_models.RuntimeOptions, - ) -> servicemesh_20200111_models.DescribeMetadataResponse: - req = open_api_models.OpenApiRequest() params = open_api_models.Params( - action='DescribeMetadata', + action='DescribeMeshMultiClusterNetwork', version='2020-01-11', protocol='HTTPS', pathname='/', @@ -3076,34 +3936,31 @@ async def describe_metadata_with_options_async( body_type='json' ) return TeaCore.from_map( - servicemesh_20200111_models.DescribeMetadataResponse(), - await self.call_api_async(params, req, runtime) + servicemesh_20200111_models.DescribeMeshMultiClusterNetworkResponse(), + self.call_api(params, req, runtime) ) - def describe_metadata(self) -> servicemesh_20200111_models.DescribeMetadataResponse: - runtime = util_models.RuntimeOptions() - return self.describe_metadata_with_options(runtime) - - async def describe_metadata_async(self) -> servicemesh_20200111_models.DescribeMetadataResponse: - runtime = util_models.RuntimeOptions() - return await self.describe_metadata_with_options_async(runtime) - - def describe_namespace_scope_sidecar_config_with_options( + async def describe_mesh_multi_cluster_network_with_options_async( self, - request: servicemesh_20200111_models.DescribeNamespaceScopeSidecarConfigRequest, + request: servicemesh_20200111_models.DescribeMeshMultiClusterNetworkRequest, runtime: util_models.RuntimeOptions, - ) -> servicemesh_20200111_models.DescribeNamespaceScopeSidecarConfigResponse: + ) -> servicemesh_20200111_models.DescribeMeshMultiClusterNetworkResponse: + """ + @summary 获取ASM网格网络分区设置 + + @param request: DescribeMeshMultiClusterNetworkRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeMeshMultiClusterNetworkResponse + """ UtilClient.validate_model(request) body = {} - if not UtilClient.is_unset(request.namespace): - body['Namespace'] = request.namespace if not UtilClient.is_unset(request.service_mesh_id): body['ServiceMeshId'] = request.service_mesh_id req = open_api_models.OpenApiRequest( body=OpenApiUtilClient.parse_to_map(body) ) params = open_api_models.Params( - action='DescribeNamespaceScopeSidecarConfig', + action='DescribeMeshMultiClusterNetwork', version='2020-01-11', protocol='HTTPS', pathname='/', @@ -3114,15 +3971,159 @@ def describe_namespace_scope_sidecar_config_with_options( body_type='json' ) return TeaCore.from_map( - servicemesh_20200111_models.DescribeNamespaceScopeSidecarConfigResponse(), - self.call_api(params, req, runtime) + servicemesh_20200111_models.DescribeMeshMultiClusterNetworkResponse(), + await self.call_api_async(params, req, runtime) ) - async def describe_namespace_scope_sidecar_config_with_options_async( + def describe_mesh_multi_cluster_network( self, - request: servicemesh_20200111_models.DescribeNamespaceScopeSidecarConfigRequest, + request: servicemesh_20200111_models.DescribeMeshMultiClusterNetworkRequest, + ) -> servicemesh_20200111_models.DescribeMeshMultiClusterNetworkResponse: + """ + @summary 获取ASM网格网络分区设置 + + @param request: DescribeMeshMultiClusterNetworkRequest + @return: DescribeMeshMultiClusterNetworkResponse + """ + runtime = util_models.RuntimeOptions() + return self.describe_mesh_multi_cluster_network_with_options(request, runtime) + + async def describe_mesh_multi_cluster_network_async( + self, + request: servicemesh_20200111_models.DescribeMeshMultiClusterNetworkRequest, + ) -> servicemesh_20200111_models.DescribeMeshMultiClusterNetworkResponse: + """ + @summary 获取ASM网格网络分区设置 + + @param request: DescribeMeshMultiClusterNetworkRequest + @return: DescribeMeshMultiClusterNetworkResponse + """ + runtime = util_models.RuntimeOptions() + return await self.describe_mesh_multi_cluster_network_with_options_async(request, runtime) + + def describe_metadata_with_options( + self, + runtime: util_models.RuntimeOptions, + ) -> servicemesh_20200111_models.DescribeMetadataResponse: + """ + @summary Queries basic information about a Service Mesh (ASM) instance. + + @param request: DescribeMetadataRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeMetadataResponse + """ + req = open_api_models.OpenApiRequest() + params = open_api_models.Params( + action='DescribeMetadata', + version='2020-01-11', + protocol='HTTPS', + pathname='/', + method='POST', + auth_type='AK', + style='RPC', + req_body_type='formData', + body_type='json' + ) + return TeaCore.from_map( + servicemesh_20200111_models.DescribeMetadataResponse(), + self.call_api(params, req, runtime) + ) + + async def describe_metadata_with_options_async( + self, + runtime: util_models.RuntimeOptions, + ) -> servicemesh_20200111_models.DescribeMetadataResponse: + """ + @summary Queries basic information about a Service Mesh (ASM) instance. + + @param request: DescribeMetadataRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeMetadataResponse + """ + req = open_api_models.OpenApiRequest() + params = open_api_models.Params( + action='DescribeMetadata', + version='2020-01-11', + protocol='HTTPS', + pathname='/', + method='POST', + auth_type='AK', + style='RPC', + req_body_type='formData', + body_type='json' + ) + return TeaCore.from_map( + servicemesh_20200111_models.DescribeMetadataResponse(), + await self.call_api_async(params, req, runtime) + ) + + def describe_metadata(self) -> servicemesh_20200111_models.DescribeMetadataResponse: + """ + @summary Queries basic information about a Service Mesh (ASM) instance. + + @return: DescribeMetadataResponse + """ + runtime = util_models.RuntimeOptions() + return self.describe_metadata_with_options(runtime) + + async def describe_metadata_async(self) -> servicemesh_20200111_models.DescribeMetadataResponse: + """ + @summary Queries basic information about a Service Mesh (ASM) instance. + + @return: DescribeMetadataResponse + """ + runtime = util_models.RuntimeOptions() + return await self.describe_metadata_with_options_async(runtime) + + def describe_namespace_scope_sidecar_config_with_options( + self, + request: servicemesh_20200111_models.DescribeNamespaceScopeSidecarConfigRequest, + runtime: util_models.RuntimeOptions, + ) -> servicemesh_20200111_models.DescribeNamespaceScopeSidecarConfigResponse: + """ + @summary Queries the configurations of sidecar proxies at the namespace level. + + @param request: DescribeNamespaceScopeSidecarConfigRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeNamespaceScopeSidecarConfigResponse + """ + UtilClient.validate_model(request) + body = {} + if not UtilClient.is_unset(request.namespace): + body['Namespace'] = request.namespace + if not UtilClient.is_unset(request.service_mesh_id): + body['ServiceMeshId'] = request.service_mesh_id + req = open_api_models.OpenApiRequest( + body=OpenApiUtilClient.parse_to_map(body) + ) + params = open_api_models.Params( + action='DescribeNamespaceScopeSidecarConfig', + version='2020-01-11', + protocol='HTTPS', + pathname='/', + method='POST', + auth_type='AK', + style='RPC', + req_body_type='formData', + body_type='json' + ) + return TeaCore.from_map( + servicemesh_20200111_models.DescribeNamespaceScopeSidecarConfigResponse(), + self.call_api(params, req, runtime) + ) + + async def describe_namespace_scope_sidecar_config_with_options_async( + self, + request: servicemesh_20200111_models.DescribeNamespaceScopeSidecarConfigRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeNamespaceScopeSidecarConfigResponse: + """ + @summary Queries the configurations of sidecar proxies at the namespace level. + + @param request: DescribeNamespaceScopeSidecarConfigRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeNamespaceScopeSidecarConfigResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.namespace): @@ -3152,6 +4153,12 @@ def describe_namespace_scope_sidecar_config( self, request: servicemesh_20200111_models.DescribeNamespaceScopeSidecarConfigRequest, ) -> servicemesh_20200111_models.DescribeNamespaceScopeSidecarConfigResponse: + """ + @summary Queries the configurations of sidecar proxies at the namespace level. + + @param request: DescribeNamespaceScopeSidecarConfigRequest + @return: DescribeNamespaceScopeSidecarConfigResponse + """ runtime = util_models.RuntimeOptions() return self.describe_namespace_scope_sidecar_config_with_options(request, runtime) @@ -3159,6 +4166,12 @@ async def describe_namespace_scope_sidecar_config_async( self, request: servicemesh_20200111_models.DescribeNamespaceScopeSidecarConfigRequest, ) -> servicemesh_20200111_models.DescribeNamespaceScopeSidecarConfigResponse: + """ + @summary Queries the configurations of sidecar proxies at the namespace level. + + @param request: DescribeNamespaceScopeSidecarConfigRequest + @return: DescribeNamespaceScopeSidecarConfigResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_namespace_scope_sidecar_config_with_options_async(request, runtime) @@ -3167,6 +4180,13 @@ def describe_nodes_instance_type_with_options( request: servicemesh_20200111_models.DescribeNodesInstanceTypeRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeNodesInstanceTypeResponse: + """ + @summary Queries the instance types of nodes on the data plane and whether the instance types support Multi-Buffer acceleration. + + @param request: DescribeNodesInstanceTypeRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeNodesInstanceTypeResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.service_mesh_id): @@ -3195,6 +4215,13 @@ async def describe_nodes_instance_type_with_options_async( request: servicemesh_20200111_models.DescribeNodesInstanceTypeRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeNodesInstanceTypeResponse: + """ + @summary Queries the instance types of nodes on the data plane and whether the instance types support Multi-Buffer acceleration. + + @param request: DescribeNodesInstanceTypeRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeNodesInstanceTypeResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.service_mesh_id): @@ -3222,6 +4249,12 @@ def describe_nodes_instance_type( self, request: servicemesh_20200111_models.DescribeNodesInstanceTypeRequest, ) -> servicemesh_20200111_models.DescribeNodesInstanceTypeResponse: + """ + @summary Queries the instance types of nodes on the data plane and whether the instance types support Multi-Buffer acceleration. + + @param request: DescribeNodesInstanceTypeRequest + @return: DescribeNodesInstanceTypeResponse + """ runtime = util_models.RuntimeOptions() return self.describe_nodes_instance_type_with_options(request, runtime) @@ -3229,6 +4262,12 @@ async def describe_nodes_instance_type_async( self, request: servicemesh_20200111_models.DescribeNodesInstanceTypeRequest, ) -> servicemesh_20200111_models.DescribeNodesInstanceTypeResponse: + """ + @summary Queries the instance types of nodes on the data plane and whether the instance types support Multi-Buffer acceleration. + + @param request: DescribeNodesInstanceTypeRequest + @return: DescribeNodesInstanceTypeResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_nodes_instance_type_with_options_async(request, runtime) @@ -3237,12 +4276,23 @@ def describe_reusable_slb_with_options( request: servicemesh_20200111_models.DescribeReusableSlbRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeReusableSlbResponse: + """ + @summary Queries the Server Load Balancer (SLB) instances that can be reused. + + @param request: DescribeReusableSlbRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeReusableSlbResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.k_8s_cluster_id): body['K8sClusterId'] = request.k_8s_cluster_id + if not UtilClient.is_unset(request.lb_type): + body['LbType'] = request.lb_type if not UtilClient.is_unset(request.network_type): body['NetworkType'] = request.network_type + if not UtilClient.is_unset(request.service_mesh_id): + body['ServiceMeshId'] = request.service_mesh_id req = open_api_models.OpenApiRequest( body=OpenApiUtilClient.parse_to_map(body) ) @@ -3267,12 +4317,23 @@ async def describe_reusable_slb_with_options_async( request: servicemesh_20200111_models.DescribeReusableSlbRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeReusableSlbResponse: + """ + @summary Queries the Server Load Balancer (SLB) instances that can be reused. + + @param request: DescribeReusableSlbRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeReusableSlbResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.k_8s_cluster_id): body['K8sClusterId'] = request.k_8s_cluster_id + if not UtilClient.is_unset(request.lb_type): + body['LbType'] = request.lb_type if not UtilClient.is_unset(request.network_type): body['NetworkType'] = request.network_type + if not UtilClient.is_unset(request.service_mesh_id): + body['ServiceMeshId'] = request.service_mesh_id req = open_api_models.OpenApiRequest( body=OpenApiUtilClient.parse_to_map(body) ) @@ -3296,6 +4357,12 @@ def describe_reusable_slb( self, request: servicemesh_20200111_models.DescribeReusableSlbRequest, ) -> servicemesh_20200111_models.DescribeReusableSlbResponse: + """ + @summary Queries the Server Load Balancer (SLB) instances that can be reused. + + @param request: DescribeReusableSlbRequest + @return: DescribeReusableSlbResponse + """ runtime = util_models.RuntimeOptions() return self.describe_reusable_slb_with_options(request, runtime) @@ -3303,6 +4370,12 @@ async def describe_reusable_slb_async( self, request: servicemesh_20200111_models.DescribeReusableSlbRequest, ) -> servicemesh_20200111_models.DescribeReusableSlbResponse: + """ + @summary Queries the Server Load Balancer (SLB) instances that can be reused. + + @param request: DescribeReusableSlbRequest + @return: DescribeReusableSlbResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_reusable_slb_with_options_async(request, runtime) @@ -3311,6 +4384,13 @@ def describe_service_mesh_additional_status_with_options( request: servicemesh_20200111_models.DescribeServiceMeshAdditionalStatusRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeServiceMeshAdditionalStatusResponse: + """ + @summary Queries the check results of a Service Mesh (ASM) instance. + + @param request: DescribeServiceMeshAdditionalStatusRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeServiceMeshAdditionalStatusResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.check_mode): @@ -3341,6 +4421,13 @@ async def describe_service_mesh_additional_status_with_options_async( request: servicemesh_20200111_models.DescribeServiceMeshAdditionalStatusRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeServiceMeshAdditionalStatusResponse: + """ + @summary Queries the check results of a Service Mesh (ASM) instance. + + @param request: DescribeServiceMeshAdditionalStatusRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeServiceMeshAdditionalStatusResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.check_mode): @@ -3370,6 +4457,12 @@ def describe_service_mesh_additional_status( self, request: servicemesh_20200111_models.DescribeServiceMeshAdditionalStatusRequest, ) -> servicemesh_20200111_models.DescribeServiceMeshAdditionalStatusResponse: + """ + @summary Queries the check results of a Service Mesh (ASM) instance. + + @param request: DescribeServiceMeshAdditionalStatusRequest + @return: DescribeServiceMeshAdditionalStatusResponse + """ runtime = util_models.RuntimeOptions() return self.describe_service_mesh_additional_status_with_options(request, runtime) @@ -3377,6 +4470,12 @@ async def describe_service_mesh_additional_status_async( self, request: servicemesh_20200111_models.DescribeServiceMeshAdditionalStatusRequest, ) -> servicemesh_20200111_models.DescribeServiceMeshAdditionalStatusResponse: + """ + @summary Queries the check results of a Service Mesh (ASM) instance. + + @param request: DescribeServiceMeshAdditionalStatusRequest + @return: DescribeServiceMeshAdditionalStatusResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_service_mesh_additional_status_with_options_async(request, runtime) @@ -3385,6 +4484,13 @@ def describe_service_mesh_clusters_with_options( request: servicemesh_20200111_models.DescribeServiceMeshClustersRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeServiceMeshClustersResponse: + """ + @summary Queries the clusters that can be added to a Service Mesh (ASM) instance. + + @param request: DescribeServiceMeshClustersRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeServiceMeshClustersResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.service_mesh_id): @@ -3419,6 +4525,13 @@ async def describe_service_mesh_clusters_with_options_async( request: servicemesh_20200111_models.DescribeServiceMeshClustersRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeServiceMeshClustersResponse: + """ + @summary Queries the clusters that can be added to a Service Mesh (ASM) instance. + + @param request: DescribeServiceMeshClustersRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeServiceMeshClustersResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.service_mesh_id): @@ -3452,6 +4565,12 @@ def describe_service_mesh_clusters( self, request: servicemesh_20200111_models.DescribeServiceMeshClustersRequest, ) -> servicemesh_20200111_models.DescribeServiceMeshClustersResponse: + """ + @summary Queries the clusters that can be added to a Service Mesh (ASM) instance. + + @param request: DescribeServiceMeshClustersRequest + @return: DescribeServiceMeshClustersResponse + """ runtime = util_models.RuntimeOptions() return self.describe_service_mesh_clusters_with_options(request, runtime) @@ -3459,6 +4578,12 @@ async def describe_service_mesh_clusters_async( self, request: servicemesh_20200111_models.DescribeServiceMeshClustersRequest, ) -> servicemesh_20200111_models.DescribeServiceMeshClustersResponse: + """ + @summary Queries the clusters that can be added to a Service Mesh (ASM) instance. + + @param request: DescribeServiceMeshClustersRequest + @return: DescribeServiceMeshClustersResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_service_mesh_clusters_with_options_async(request, runtime) @@ -3467,6 +4592,13 @@ def describe_service_mesh_detail_with_options( request: servicemesh_20200111_models.DescribeServiceMeshDetailRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeServiceMeshDetailResponse: + """ + @summary Queries the details of a Service Mesh (ASM) instance. + + @param request: DescribeServiceMeshDetailRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeServiceMeshDetailResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.service_mesh_id): @@ -3495,6 +4627,13 @@ async def describe_service_mesh_detail_with_options_async( request: servicemesh_20200111_models.DescribeServiceMeshDetailRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeServiceMeshDetailResponse: + """ + @summary Queries the details of a Service Mesh (ASM) instance. + + @param request: DescribeServiceMeshDetailRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeServiceMeshDetailResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.service_mesh_id): @@ -3522,6 +4661,12 @@ def describe_service_mesh_detail( self, request: servicemesh_20200111_models.DescribeServiceMeshDetailRequest, ) -> servicemesh_20200111_models.DescribeServiceMeshDetailResponse: + """ + @summary Queries the details of a Service Mesh (ASM) instance. + + @param request: DescribeServiceMeshDetailRequest + @return: DescribeServiceMeshDetailResponse + """ runtime = util_models.RuntimeOptions() return self.describe_service_mesh_detail_with_options(request, runtime) @@ -3529,6 +4674,12 @@ async def describe_service_mesh_detail_async( self, request: servicemesh_20200111_models.DescribeServiceMeshDetailRequest, ) -> servicemesh_20200111_models.DescribeServiceMeshDetailResponse: + """ + @summary Queries the details of a Service Mesh (ASM) instance. + + @param request: DescribeServiceMeshDetailRequest + @return: DescribeServiceMeshDetailResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_service_mesh_detail_with_options_async(request, runtime) @@ -3537,6 +4688,13 @@ def describe_service_mesh_kubeconfig_with_options( request: servicemesh_20200111_models.DescribeServiceMeshKubeconfigRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeServiceMeshKubeconfigResponse: + """ + @summary Queries the content of the kubeconfig file of a Service Mesh (ASM) instance. + + @param request: DescribeServiceMeshKubeconfigRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeServiceMeshKubeconfigResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.private_ip_address): @@ -3567,6 +4725,13 @@ async def describe_service_mesh_kubeconfig_with_options_async( request: servicemesh_20200111_models.DescribeServiceMeshKubeconfigRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeServiceMeshKubeconfigResponse: + """ + @summary Queries the content of the kubeconfig file of a Service Mesh (ASM) instance. + + @param request: DescribeServiceMeshKubeconfigRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeServiceMeshKubeconfigResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.private_ip_address): @@ -3596,6 +4761,12 @@ def describe_service_mesh_kubeconfig( self, request: servicemesh_20200111_models.DescribeServiceMeshKubeconfigRequest, ) -> servicemesh_20200111_models.DescribeServiceMeshKubeconfigResponse: + """ + @summary Queries the content of the kubeconfig file of a Service Mesh (ASM) instance. + + @param request: DescribeServiceMeshKubeconfigRequest + @return: DescribeServiceMeshKubeconfigResponse + """ runtime = util_models.RuntimeOptions() return self.describe_service_mesh_kubeconfig_with_options(request, runtime) @@ -3603,6 +4774,12 @@ async def describe_service_mesh_kubeconfig_async( self, request: servicemesh_20200111_models.DescribeServiceMeshKubeconfigRequest, ) -> servicemesh_20200111_models.DescribeServiceMeshKubeconfigResponse: + """ + @summary Queries the content of the kubeconfig file of a Service Mesh (ASM) instance. + + @param request: DescribeServiceMeshKubeconfigRequest + @return: DescribeServiceMeshKubeconfigResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_service_mesh_kubeconfig_with_options_async(request, runtime) @@ -3611,6 +4788,13 @@ def describe_service_mesh_logs_with_options( request: servicemesh_20200111_models.DescribeServiceMeshLogsRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeServiceMeshLogsResponse: + """ + @summary Queries the logs of a Service Mesh (ASM) instance. + + @param request: DescribeServiceMeshLogsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeServiceMeshLogsResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.service_mesh_id): @@ -3639,6 +4823,13 @@ async def describe_service_mesh_logs_with_options_async( request: servicemesh_20200111_models.DescribeServiceMeshLogsRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeServiceMeshLogsResponse: + """ + @summary Queries the logs of a Service Mesh (ASM) instance. + + @param request: DescribeServiceMeshLogsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeServiceMeshLogsResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.service_mesh_id): @@ -3666,6 +4857,12 @@ def describe_service_mesh_logs( self, request: servicemesh_20200111_models.DescribeServiceMeshLogsRequest, ) -> servicemesh_20200111_models.DescribeServiceMeshLogsResponse: + """ + @summary Queries the logs of a Service Mesh (ASM) instance. + + @param request: DescribeServiceMeshLogsRequest + @return: DescribeServiceMeshLogsResponse + """ runtime = util_models.RuntimeOptions() return self.describe_service_mesh_logs_with_options(request, runtime) @@ -3673,6 +4870,12 @@ async def describe_service_mesh_logs_async( self, request: servicemesh_20200111_models.DescribeServiceMeshLogsRequest, ) -> servicemesh_20200111_models.DescribeServiceMeshLogsResponse: + """ + @summary Queries the logs of a Service Mesh (ASM) instance. + + @param request: DescribeServiceMeshLogsRequest + @return: DescribeServiceMeshLogsResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_service_mesh_logs_with_options_async(request, runtime) @@ -3681,6 +4884,13 @@ def describe_service_mesh_proxy_status_with_options( request: servicemesh_20200111_models.DescribeServiceMeshProxyStatusRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeServiceMeshProxyStatusResponse: + """ + @summary Queries the status of proxies on the data plane of a Service Mesh (ASM) instance. + + @param request: DescribeServiceMeshProxyStatusRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeServiceMeshProxyStatusResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.service_mesh_id): @@ -3709,6 +4919,13 @@ async def describe_service_mesh_proxy_status_with_options_async( request: servicemesh_20200111_models.DescribeServiceMeshProxyStatusRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeServiceMeshProxyStatusResponse: + """ + @summary Queries the status of proxies on the data plane of a Service Mesh (ASM) instance. + + @param request: DescribeServiceMeshProxyStatusRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeServiceMeshProxyStatusResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.service_mesh_id): @@ -3736,6 +4953,12 @@ def describe_service_mesh_proxy_status( self, request: servicemesh_20200111_models.DescribeServiceMeshProxyStatusRequest, ) -> servicemesh_20200111_models.DescribeServiceMeshProxyStatusResponse: + """ + @summary Queries the status of proxies on the data plane of a Service Mesh (ASM) instance. + + @param request: DescribeServiceMeshProxyStatusRequest + @return: DescribeServiceMeshProxyStatusResponse + """ runtime = util_models.RuntimeOptions() return self.describe_service_mesh_proxy_status_with_options(request, runtime) @@ -3743,6 +4966,12 @@ async def describe_service_mesh_proxy_status_async( self, request: servicemesh_20200111_models.DescribeServiceMeshProxyStatusRequest, ) -> servicemesh_20200111_models.DescribeServiceMeshProxyStatusResponse: + """ + @summary Queries the status of proxies on the data plane of a Service Mesh (ASM) instance. + + @param request: DescribeServiceMeshProxyStatusRequest + @return: DescribeServiceMeshProxyStatusResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_service_mesh_proxy_status_with_options_async(request, runtime) @@ -3751,6 +4980,13 @@ def describe_service_mesh_upgrade_status_with_options( request: servicemesh_20200111_models.DescribeServiceMeshUpgradeStatusRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeServiceMeshUpgradeStatusResponse: + """ + @summary Queries the upgrade details of a Service Mesh (ASM) instance and its ingress gateways. + + @param request: DescribeServiceMeshUpgradeStatusRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeServiceMeshUpgradeStatusResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.service_mesh_id): @@ -3785,6 +5021,13 @@ async def describe_service_mesh_upgrade_status_with_options_async( request: servicemesh_20200111_models.DescribeServiceMeshUpgradeStatusRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeServiceMeshUpgradeStatusResponse: + """ + @summary Queries the upgrade details of a Service Mesh (ASM) instance and its ingress gateways. + + @param request: DescribeServiceMeshUpgradeStatusRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeServiceMeshUpgradeStatusResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.service_mesh_id): @@ -3818,6 +5061,12 @@ def describe_service_mesh_upgrade_status( self, request: servicemesh_20200111_models.DescribeServiceMeshUpgradeStatusRequest, ) -> servicemesh_20200111_models.DescribeServiceMeshUpgradeStatusResponse: + """ + @summary Queries the upgrade details of a Service Mesh (ASM) instance and its ingress gateways. + + @param request: DescribeServiceMeshUpgradeStatusRequest + @return: DescribeServiceMeshUpgradeStatusResponse + """ runtime = util_models.RuntimeOptions() return self.describe_service_mesh_upgrade_status_with_options(request, runtime) @@ -3825,6 +5074,12 @@ async def describe_service_mesh_upgrade_status_async( self, request: servicemesh_20200111_models.DescribeServiceMeshUpgradeStatusRequest, ) -> servicemesh_20200111_models.DescribeServiceMeshUpgradeStatusResponse: + """ + @summary Queries the upgrade details of a Service Mesh (ASM) instance and its ingress gateways. + + @param request: DescribeServiceMeshUpgradeStatusRequest + @return: DescribeServiceMeshUpgradeStatusResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_service_mesh_upgrade_status_with_options_async(request, runtime) @@ -3834,7 +5089,9 @@ def describe_service_mesh_vms_with_options( runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeServiceMeshVMsResponse: """ - @deprecated + @deprecated OpenAPI DescribeServiceMeshVMs is deprecated + + @summary Queries the Elastic Compute Service (ECS) instances that reside in the same virtual private cloud (VPC) as a Service Mesh (ASM) instance. @param request: DescribeServiceMeshVMsRequest @param runtime: runtime options for this request RuntimeOptions @@ -3870,7 +5127,9 @@ async def describe_service_mesh_vms_with_options_async( runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeServiceMeshVMsResponse: """ - @deprecated + @deprecated OpenAPI DescribeServiceMeshVMs is deprecated + + @summary Queries the Elastic Compute Service (ECS) instances that reside in the same virtual private cloud (VPC) as a Service Mesh (ASM) instance. @param request: DescribeServiceMeshVMsRequest @param runtime: runtime options for this request RuntimeOptions @@ -3905,7 +5164,9 @@ def describe_service_mesh_vms( request: servicemesh_20200111_models.DescribeServiceMeshVMsRequest, ) -> servicemesh_20200111_models.DescribeServiceMeshVMsResponse: """ - @deprecated + @deprecated OpenAPI DescribeServiceMeshVMs is deprecated + + @summary Queries the Elastic Compute Service (ECS) instances that reside in the same virtual private cloud (VPC) as a Service Mesh (ASM) instance. @param request: DescribeServiceMeshVMsRequest @return: DescribeServiceMeshVMsResponse @@ -3919,7 +5180,9 @@ async def describe_service_mesh_vms_async( request: servicemesh_20200111_models.DescribeServiceMeshVMsRequest, ) -> servicemesh_20200111_models.DescribeServiceMeshVMsResponse: """ - @deprecated + @deprecated OpenAPI DescribeServiceMeshVMs is deprecated + + @summary Queries the Elastic Compute Service (ECS) instances that reside in the same virtual private cloud (VPC) as a Service Mesh (ASM) instance. @param request: DescribeServiceMeshVMsRequest @return: DescribeServiceMeshVMsResponse @@ -3933,6 +5196,13 @@ def describe_service_meshes_with_options( request: servicemesh_20200111_models.DescribeServiceMeshesRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeServiceMeshesResponse: + """ + @summary Queries ASM instances. + + @param request: DescribeServiceMeshesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeServiceMeshesResponse + """ UtilClient.validate_model(request) query = OpenApiUtilClient.query(UtilClient.to_map(request)) req = open_api_models.OpenApiRequest( @@ -3959,6 +5229,13 @@ async def describe_service_meshes_with_options_async( request: servicemesh_20200111_models.DescribeServiceMeshesRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeServiceMeshesResponse: + """ + @summary Queries ASM instances. + + @param request: DescribeServiceMeshesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeServiceMeshesResponse + """ UtilClient.validate_model(request) query = OpenApiUtilClient.query(UtilClient.to_map(request)) req = open_api_models.OpenApiRequest( @@ -3984,6 +5261,12 @@ def describe_service_meshes( self, request: servicemesh_20200111_models.DescribeServiceMeshesRequest, ) -> servicemesh_20200111_models.DescribeServiceMeshesResponse: + """ + @summary Queries ASM instances. + + @param request: DescribeServiceMeshesRequest + @return: DescribeServiceMeshesResponse + """ runtime = util_models.RuntimeOptions() return self.describe_service_meshes_with_options(request, runtime) @@ -3991,6 +5274,12 @@ async def describe_service_meshes_async( self, request: servicemesh_20200111_models.DescribeServiceMeshesRequest, ) -> servicemesh_20200111_models.DescribeServiceMeshesResponse: + """ + @summary Queries ASM instances. + + @param request: DescribeServiceMeshesRequest + @return: DescribeServiceMeshesResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_service_meshes_with_options_async(request, runtime) @@ -3999,6 +5288,13 @@ def describe_upgrade_version_with_options( request: servicemesh_20200111_models.DescribeUpgradeVersionRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeUpgradeVersionResponse: + """ + @summary Queries the update status of a Service Mesh (ASM) instance. + + @param request: DescribeUpgradeVersionRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeUpgradeVersionResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.service_mesh_id): @@ -4027,6 +5323,13 @@ async def describe_upgrade_version_with_options_async( request: servicemesh_20200111_models.DescribeUpgradeVersionRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeUpgradeVersionResponse: + """ + @summary Queries the update status of a Service Mesh (ASM) instance. + + @param request: DescribeUpgradeVersionRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeUpgradeVersionResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.service_mesh_id): @@ -4054,6 +5357,12 @@ def describe_upgrade_version( self, request: servicemesh_20200111_models.DescribeUpgradeVersionRequest, ) -> servicemesh_20200111_models.DescribeUpgradeVersionResponse: + """ + @summary Queries the update status of a Service Mesh (ASM) instance. + + @param request: DescribeUpgradeVersionRequest + @return: DescribeUpgradeVersionResponse + """ runtime = util_models.RuntimeOptions() return self.describe_upgrade_version_with_options(request, runtime) @@ -4061,6 +5370,12 @@ async def describe_upgrade_version_async( self, request: servicemesh_20200111_models.DescribeUpgradeVersionRequest, ) -> servicemesh_20200111_models.DescribeUpgradeVersionResponse: + """ + @summary Queries the update status of a Service Mesh (ASM) instance. + + @param request: DescribeUpgradeVersionRequest + @return: DescribeUpgradeVersionResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_upgrade_version_with_options_async(request, runtime) @@ -4069,6 +5384,13 @@ def describe_user_permissions_with_options( request: servicemesh_20200111_models.DescribeUserPermissionsRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeUserPermissionsResponse: + """ + @summary Obtains role-based access control (RBAC) permissions. + + @param request: DescribeUserPermissionsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeUserPermissionsResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.sub_account_user_id): @@ -4097,6 +5419,13 @@ async def describe_user_permissions_with_options_async( request: servicemesh_20200111_models.DescribeUserPermissionsRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeUserPermissionsResponse: + """ + @summary Obtains role-based access control (RBAC) permissions. + + @param request: DescribeUserPermissionsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeUserPermissionsResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.sub_account_user_id): @@ -4124,6 +5453,12 @@ def describe_user_permissions( self, request: servicemesh_20200111_models.DescribeUserPermissionsRequest, ) -> servicemesh_20200111_models.DescribeUserPermissionsResponse: + """ + @summary Obtains role-based access control (RBAC) permissions. + + @param request: DescribeUserPermissionsRequest + @return: DescribeUserPermissionsResponse + """ runtime = util_models.RuntimeOptions() return self.describe_user_permissions_with_options(request, runtime) @@ -4131,6 +5466,12 @@ async def describe_user_permissions_async( self, request: servicemesh_20200111_models.DescribeUserPermissionsRequest, ) -> servicemesh_20200111_models.DescribeUserPermissionsResponse: + """ + @summary Obtains role-based access control (RBAC) permissions. + + @param request: DescribeUserPermissionsRequest + @return: DescribeUserPermissionsResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_user_permissions_with_options_async(request, runtime) @@ -4139,6 +5480,13 @@ def describe_users_with_permissions_with_options( request: servicemesh_20200111_models.DescribeUsersWithPermissionsRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeUsersWithPermissionsResponse: + """ + @summary Queries the IDs of all RAM users or RAM roles to which a Role-based Access Control (RBAC) role is assigned. + + @param request: DescribeUsersWithPermissionsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeUsersWithPermissionsResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.user_type): @@ -4167,6 +5515,13 @@ async def describe_users_with_permissions_with_options_async( request: servicemesh_20200111_models.DescribeUsersWithPermissionsRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeUsersWithPermissionsResponse: + """ + @summary Queries the IDs of all RAM users or RAM roles to which a Role-based Access Control (RBAC) role is assigned. + + @param request: DescribeUsersWithPermissionsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeUsersWithPermissionsResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.user_type): @@ -4194,6 +5549,12 @@ def describe_users_with_permissions( self, request: servicemesh_20200111_models.DescribeUsersWithPermissionsRequest, ) -> servicemesh_20200111_models.DescribeUsersWithPermissionsResponse: + """ + @summary Queries the IDs of all RAM users or RAM roles to which a Role-based Access Control (RBAC) role is assigned. + + @param request: DescribeUsersWithPermissionsRequest + @return: DescribeUsersWithPermissionsResponse + """ runtime = util_models.RuntimeOptions() return self.describe_users_with_permissions_with_options(request, runtime) @@ -4201,6 +5562,12 @@ async def describe_users_with_permissions_async( self, request: servicemesh_20200111_models.DescribeUsersWithPermissionsRequest, ) -> servicemesh_20200111_models.DescribeUsersWithPermissionsResponse: + """ + @summary Queries the IDs of all RAM users or RAM roles to which a Role-based Access Control (RBAC) role is assigned. + + @param request: DescribeUsersWithPermissionsRequest + @return: DescribeUsersWithPermissionsResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_users_with_permissions_with_options_async(request, runtime) @@ -4210,7 +5577,9 @@ def describe_vms_in_service_mesh_with_options( runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeVMsInServiceMeshResponse: """ - @deprecated + @deprecated OpenAPI DescribeVMsInServiceMesh is deprecated + + @summary Queries the virtual machines (VMs) that are added to a Service Mesh (ASM) instance. @param request: DescribeVMsInServiceMeshRequest @param runtime: runtime options for this request RuntimeOptions @@ -4246,7 +5615,9 @@ async def describe_vms_in_service_mesh_with_options_async( runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeVMsInServiceMeshResponse: """ - @deprecated + @deprecated OpenAPI DescribeVMsInServiceMesh is deprecated + + @summary Queries the virtual machines (VMs) that are added to a Service Mesh (ASM) instance. @param request: DescribeVMsInServiceMeshRequest @param runtime: runtime options for this request RuntimeOptions @@ -4281,7 +5652,9 @@ def describe_vms_in_service_mesh( request: servicemesh_20200111_models.DescribeVMsInServiceMeshRequest, ) -> servicemesh_20200111_models.DescribeVMsInServiceMeshResponse: """ - @deprecated + @deprecated OpenAPI DescribeVMsInServiceMesh is deprecated + + @summary Queries the virtual machines (VMs) that are added to a Service Mesh (ASM) instance. @param request: DescribeVMsInServiceMeshRequest @return: DescribeVMsInServiceMeshResponse @@ -4295,7 +5668,9 @@ async def describe_vms_in_service_mesh_async( request: servicemesh_20200111_models.DescribeVMsInServiceMeshRequest, ) -> servicemesh_20200111_models.DescribeVMsInServiceMeshResponse: """ - @deprecated + @deprecated OpenAPI DescribeVMsInServiceMesh is deprecated + + @summary Queries the virtual machines (VMs) that are added to a Service Mesh (ASM) instance. @param request: DescribeVMsInServiceMeshRequest @return: DescribeVMsInServiceMeshResponse @@ -4309,6 +5684,13 @@ def describe_vswitches_with_options( request: servicemesh_20200111_models.DescribeVSwitchesRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeVSwitchesResponse: + """ + @summary Queries a list of vSwitches that are deployed in a specified virtual private cloud (VPC) in a region. + + @param request: DescribeVSwitchesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeVSwitchesResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.region_id): @@ -4339,6 +5721,13 @@ async def describe_vswitches_with_options_async( request: servicemesh_20200111_models.DescribeVSwitchesRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeVSwitchesResponse: + """ + @summary Queries a list of vSwitches that are deployed in a specified virtual private cloud (VPC) in a region. + + @param request: DescribeVSwitchesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeVSwitchesResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.region_id): @@ -4368,6 +5757,12 @@ def describe_vswitches( self, request: servicemesh_20200111_models.DescribeVSwitchesRequest, ) -> servicemesh_20200111_models.DescribeVSwitchesResponse: + """ + @summary Queries a list of vSwitches that are deployed in a specified virtual private cloud (VPC) in a region. + + @param request: DescribeVSwitchesRequest + @return: DescribeVSwitchesResponse + """ runtime = util_models.RuntimeOptions() return self.describe_vswitches_with_options(request, runtime) @@ -4375,6 +5770,12 @@ async def describe_vswitches_async( self, request: servicemesh_20200111_models.DescribeVSwitchesRequest, ) -> servicemesh_20200111_models.DescribeVSwitchesResponse: + """ + @summary Queries a list of vSwitches that are deployed in a specified virtual private cloud (VPC) in a region. + + @param request: DescribeVSwitchesRequest + @return: DescribeVSwitchesResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_vswitches_with_options_async(request, runtime) @@ -4382,6 +5783,13 @@ def describe_versions_with_options( self, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeVersionsResponse: + """ + @summary Queries available Service Mesh (ASM) versions when you create an ASM instance. + + @param request: DescribeVersionsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeVersionsResponse + """ req = open_api_models.OpenApiRequest() params = open_api_models.Params( action='DescribeVersions', @@ -4403,6 +5811,13 @@ async def describe_versions_with_options_async( self, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeVersionsResponse: + """ + @summary Queries available Service Mesh (ASM) versions when you create an ASM instance. + + @param request: DescribeVersionsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeVersionsResponse + """ req = open_api_models.OpenApiRequest() params = open_api_models.Params( action='DescribeVersions', @@ -4421,10 +5836,20 @@ async def describe_versions_with_options_async( ) def describe_versions(self) -> servicemesh_20200111_models.DescribeVersionsResponse: + """ + @summary Queries available Service Mesh (ASM) versions when you create an ASM instance. + + @return: DescribeVersionsResponse + """ runtime = util_models.RuntimeOptions() return self.describe_versions_with_options(runtime) async def describe_versions_async(self) -> servicemesh_20200111_models.DescribeVersionsResponse: + """ + @summary Queries available Service Mesh (ASM) versions when you create an ASM instance. + + @return: DescribeVersionsResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_versions_with_options_async(runtime) @@ -4433,6 +5858,13 @@ def describe_vpcs_with_options( request: servicemesh_20200111_models.DescribeVpcsRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeVpcsResponse: + """ + @summary Queries the virtual private clouds (VPCs) that are available in a specified region. + + @param request: DescribeVpcsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeVpcsResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.region_id): @@ -4461,6 +5893,13 @@ async def describe_vpcs_with_options_async( request: servicemesh_20200111_models.DescribeVpcsRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.DescribeVpcsResponse: + """ + @summary Queries the virtual private clouds (VPCs) that are available in a specified region. + + @param request: DescribeVpcsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: DescribeVpcsResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.region_id): @@ -4488,6 +5927,12 @@ def describe_vpcs( self, request: servicemesh_20200111_models.DescribeVpcsRequest, ) -> servicemesh_20200111_models.DescribeVpcsResponse: + """ + @summary Queries the virtual private clouds (VPCs) that are available in a specified region. + + @param request: DescribeVpcsRequest + @return: DescribeVpcsResponse + """ runtime = util_models.RuntimeOptions() return self.describe_vpcs_with_options(request, runtime) @@ -4495,6 +5940,12 @@ async def describe_vpcs_async( self, request: servicemesh_20200111_models.DescribeVpcsRequest, ) -> servicemesh_20200111_models.DescribeVpcsResponse: + """ + @summary Queries the virtual private clouds (VPCs) that are available in a specified region. + + @param request: DescribeVpcsRequest + @return: DescribeVpcsResponse + """ runtime = util_models.RuntimeOptions() return await self.describe_vpcs_with_options_async(request, runtime) @@ -4503,6 +5954,13 @@ def get_ca_cert_with_options( request: servicemesh_20200111_models.GetCaCertRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.GetCaCertResponse: + """ + @summary Obtains a certificate issued by a certificate authority (CA). + + @param request: GetCaCertRequest + @param runtime: runtime options for this request RuntimeOptions + @return: GetCaCertResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.service_mesh_id): @@ -4531,6 +5989,13 @@ async def get_ca_cert_with_options_async( request: servicemesh_20200111_models.GetCaCertRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.GetCaCertResponse: + """ + @summary Obtains a certificate issued by a certificate authority (CA). + + @param request: GetCaCertRequest + @param runtime: runtime options for this request RuntimeOptions + @return: GetCaCertResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.service_mesh_id): @@ -4558,6 +6023,12 @@ def get_ca_cert( self, request: servicemesh_20200111_models.GetCaCertRequest, ) -> servicemesh_20200111_models.GetCaCertResponse: + """ + @summary Obtains a certificate issued by a certificate authority (CA). + + @param request: GetCaCertRequest + @return: GetCaCertResponse + """ runtime = util_models.RuntimeOptions() return self.get_ca_cert_with_options(request, runtime) @@ -4565,6 +6036,12 @@ async def get_ca_cert_async( self, request: servicemesh_20200111_models.GetCaCertRequest, ) -> servicemesh_20200111_models.GetCaCertResponse: + """ + @summary Obtains a certificate issued by a certificate authority (CA). + + @param request: GetCaCertRequest + @return: GetCaCertResponse + """ runtime = util_models.RuntimeOptions() return await self.get_ca_cert_with_options_async(request, runtime) @@ -4573,6 +6050,13 @@ def get_deployment_by_selector_with_options( tmp_req: servicemesh_20200111_models.GetDeploymentBySelectorRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.GetDeploymentBySelectorResponse: + """ + @summary Queries a list of workloads specified by a label selector. + + @param tmp_req: GetDeploymentBySelectorRequest + @param runtime: runtime options for this request RuntimeOptions + @return: GetDeploymentBySelectorResponse + """ UtilClient.validate_model(tmp_req) request = servicemesh_20200111_models.GetDeploymentBySelectorShrinkRequest() OpenApiUtilClient.convert(tmp_req, request) @@ -4615,6 +6099,13 @@ async def get_deployment_by_selector_with_options_async( tmp_req: servicemesh_20200111_models.GetDeploymentBySelectorRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.GetDeploymentBySelectorResponse: + """ + @summary Queries a list of workloads specified by a label selector. + + @param tmp_req: GetDeploymentBySelectorRequest + @param runtime: runtime options for this request RuntimeOptions + @return: GetDeploymentBySelectorResponse + """ UtilClient.validate_model(tmp_req) request = servicemesh_20200111_models.GetDeploymentBySelectorShrinkRequest() OpenApiUtilClient.convert(tmp_req, request) @@ -4656,6 +6147,12 @@ def get_deployment_by_selector( self, request: servicemesh_20200111_models.GetDeploymentBySelectorRequest, ) -> servicemesh_20200111_models.GetDeploymentBySelectorResponse: + """ + @summary Queries a list of workloads specified by a label selector. + + @param request: GetDeploymentBySelectorRequest + @return: GetDeploymentBySelectorResponse + """ runtime = util_models.RuntimeOptions() return self.get_deployment_by_selector_with_options(request, runtime) @@ -4663,6 +6160,12 @@ async def get_deployment_by_selector_async( self, request: servicemesh_20200111_models.GetDeploymentBySelectorRequest, ) -> servicemesh_20200111_models.GetDeploymentBySelectorResponse: + """ + @summary Queries a list of workloads specified by a label selector. + + @param request: GetDeploymentBySelectorRequest + @return: GetDeploymentBySelectorResponse + """ runtime = util_models.RuntimeOptions() return await self.get_deployment_by_selector_with_options_async(request, runtime) @@ -4671,6 +6174,13 @@ def get_grafana_dashboard_url_with_options( request: servicemesh_20200111_models.GetGrafanaDashboardUrlRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.GetGrafanaDashboardUrlResponse: + """ + @summary Queries the Grafana dashboard URL from Application Real-Time Monitoring Service (ARMS). + + @param request: GetGrafanaDashboardUrlRequest + @param runtime: runtime options for this request RuntimeOptions + @return: GetGrafanaDashboardUrlResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.k_8s_cluster_id): @@ -4703,6 +6213,13 @@ async def get_grafana_dashboard_url_with_options_async( request: servicemesh_20200111_models.GetGrafanaDashboardUrlRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.GetGrafanaDashboardUrlResponse: + """ + @summary Queries the Grafana dashboard URL from Application Real-Time Monitoring Service (ARMS). + + @param request: GetGrafanaDashboardUrlRequest + @param runtime: runtime options for this request RuntimeOptions + @return: GetGrafanaDashboardUrlResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.k_8s_cluster_id): @@ -4734,6 +6251,12 @@ def get_grafana_dashboard_url( self, request: servicemesh_20200111_models.GetGrafanaDashboardUrlRequest, ) -> servicemesh_20200111_models.GetGrafanaDashboardUrlResponse: + """ + @summary Queries the Grafana dashboard URL from Application Real-Time Monitoring Service (ARMS). + + @param request: GetGrafanaDashboardUrlRequest + @return: GetGrafanaDashboardUrlResponse + """ runtime = util_models.RuntimeOptions() return self.get_grafana_dashboard_url_with_options(request, runtime) @@ -4741,6 +6264,12 @@ async def get_grafana_dashboard_url_async( self, request: servicemesh_20200111_models.GetGrafanaDashboardUrlRequest, ) -> servicemesh_20200111_models.GetGrafanaDashboardUrlResponse: + """ + @summary Queries the Grafana dashboard URL from Application Real-Time Monitoring Service (ARMS). + + @param request: GetGrafanaDashboardUrlRequest + @return: GetGrafanaDashboardUrlResponse + """ runtime = util_models.RuntimeOptions() return await self.get_grafana_dashboard_url_with_options_async(request, runtime) @@ -4749,6 +6278,13 @@ def get_registered_service_endpoints_with_options( request: servicemesh_20200111_models.GetRegisteredServiceEndpointsRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.GetRegisteredServiceEndpointsResponse: + """ + @summary 描述ServiceEndpoints信息 + + @param request: GetRegisteredServiceEndpointsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: GetRegisteredServiceEndpointsResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.cluster_ids): @@ -4785,6 +6321,13 @@ async def get_registered_service_endpoints_with_options_async( request: servicemesh_20200111_models.GetRegisteredServiceEndpointsRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.GetRegisteredServiceEndpointsResponse: + """ + @summary 描述ServiceEndpoints信息 + + @param request: GetRegisteredServiceEndpointsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: GetRegisteredServiceEndpointsResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.cluster_ids): @@ -4820,6 +6363,12 @@ def get_registered_service_endpoints( self, request: servicemesh_20200111_models.GetRegisteredServiceEndpointsRequest, ) -> servicemesh_20200111_models.GetRegisteredServiceEndpointsResponse: + """ + @summary 描述ServiceEndpoints信息 + + @param request: GetRegisteredServiceEndpointsRequest + @return: GetRegisteredServiceEndpointsResponse + """ runtime = util_models.RuntimeOptions() return self.get_registered_service_endpoints_with_options(request, runtime) @@ -4827,6 +6376,12 @@ async def get_registered_service_endpoints_async( self, request: servicemesh_20200111_models.GetRegisteredServiceEndpointsRequest, ) -> servicemesh_20200111_models.GetRegisteredServiceEndpointsResponse: + """ + @summary 描述ServiceEndpoints信息 + + @param request: GetRegisteredServiceEndpointsRequest + @return: GetRegisteredServiceEndpointsResponse + """ runtime = util_models.RuntimeOptions() return await self.get_registered_service_endpoints_with_options_async(request, runtime) @@ -4835,6 +6390,11 @@ def get_registered_service_namespaces_with_options( request: servicemesh_20200111_models.GetRegisteredServiceNamespacesRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.GetRegisteredServiceNamespacesResponse: + """ + @param request: GetRegisteredServiceNamespacesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: GetRegisteredServiceNamespacesResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.service_mesh_id): @@ -4863,6 +6423,11 @@ async def get_registered_service_namespaces_with_options_async( request: servicemesh_20200111_models.GetRegisteredServiceNamespacesRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.GetRegisteredServiceNamespacesResponse: + """ + @param request: GetRegisteredServiceNamespacesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: GetRegisteredServiceNamespacesResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.service_mesh_id): @@ -4890,6 +6455,10 @@ def get_registered_service_namespaces( self, request: servicemesh_20200111_models.GetRegisteredServiceNamespacesRequest, ) -> servicemesh_20200111_models.GetRegisteredServiceNamespacesResponse: + """ + @param request: GetRegisteredServiceNamespacesRequest + @return: GetRegisteredServiceNamespacesResponse + """ runtime = util_models.RuntimeOptions() return self.get_registered_service_namespaces_with_options(request, runtime) @@ -4897,6 +6466,10 @@ async def get_registered_service_namespaces_async( self, request: servicemesh_20200111_models.GetRegisteredServiceNamespacesRequest, ) -> servicemesh_20200111_models.GetRegisteredServiceNamespacesResponse: + """ + @param request: GetRegisteredServiceNamespacesRequest + @return: GetRegisteredServiceNamespacesResponse + """ runtime = util_models.RuntimeOptions() return await self.get_registered_service_namespaces_with_options_async(request, runtime) @@ -4905,6 +6478,13 @@ def get_swim_lane_detail_with_options( request: servicemesh_20200111_models.GetSwimLaneDetailRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.GetSwimLaneDetailResponse: + """ + @summary Queries detailed information about a lane. + + @param request: GetSwimLaneDetailRequest + @param runtime: runtime options for this request RuntimeOptions + @return: GetSwimLaneDetailResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.group_name): @@ -4937,6 +6517,13 @@ async def get_swim_lane_detail_with_options_async( request: servicemesh_20200111_models.GetSwimLaneDetailRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.GetSwimLaneDetailResponse: + """ + @summary Queries detailed information about a lane. + + @param request: GetSwimLaneDetailRequest + @param runtime: runtime options for this request RuntimeOptions + @return: GetSwimLaneDetailResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.group_name): @@ -4968,6 +6555,12 @@ def get_swim_lane_detail( self, request: servicemesh_20200111_models.GetSwimLaneDetailRequest, ) -> servicemesh_20200111_models.GetSwimLaneDetailResponse: + """ + @summary Queries detailed information about a lane. + + @param request: GetSwimLaneDetailRequest + @return: GetSwimLaneDetailResponse + """ runtime = util_models.RuntimeOptions() return self.get_swim_lane_detail_with_options(request, runtime) @@ -4975,6 +6568,12 @@ async def get_swim_lane_detail_async( self, request: servicemesh_20200111_models.GetSwimLaneDetailRequest, ) -> servicemesh_20200111_models.GetSwimLaneDetailResponse: + """ + @summary Queries detailed information about a lane. + + @param request: GetSwimLaneDetailRequest + @return: GetSwimLaneDetailResponse + """ runtime = util_models.RuntimeOptions() return await self.get_swim_lane_detail_with_options_async(request, runtime) @@ -4983,6 +6582,13 @@ def get_swim_lane_group_list_with_options( request: servicemesh_20200111_models.GetSwimLaneGroupListRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.GetSwimLaneGroupListResponse: + """ + @summary Queries a list of all lane groups in an Alibaba Cloud Service Mesh (ASM) instance. + + @param request: GetSwimLaneGroupListRequest + @param runtime: runtime options for this request RuntimeOptions + @return: GetSwimLaneGroupListResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.service_mesh_id): @@ -5011,6 +6617,13 @@ async def get_swim_lane_group_list_with_options_async( request: servicemesh_20200111_models.GetSwimLaneGroupListRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.GetSwimLaneGroupListResponse: + """ + @summary Queries a list of all lane groups in an Alibaba Cloud Service Mesh (ASM) instance. + + @param request: GetSwimLaneGroupListRequest + @param runtime: runtime options for this request RuntimeOptions + @return: GetSwimLaneGroupListResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.service_mesh_id): @@ -5038,6 +6651,12 @@ def get_swim_lane_group_list( self, request: servicemesh_20200111_models.GetSwimLaneGroupListRequest, ) -> servicemesh_20200111_models.GetSwimLaneGroupListResponse: + """ + @summary Queries a list of all lane groups in an Alibaba Cloud Service Mesh (ASM) instance. + + @param request: GetSwimLaneGroupListRequest + @return: GetSwimLaneGroupListResponse + """ runtime = util_models.RuntimeOptions() return self.get_swim_lane_group_list_with_options(request, runtime) @@ -5045,6 +6664,12 @@ async def get_swim_lane_group_list_async( self, request: servicemesh_20200111_models.GetSwimLaneGroupListRequest, ) -> servicemesh_20200111_models.GetSwimLaneGroupListResponse: + """ + @summary Queries a list of all lane groups in an Alibaba Cloud Service Mesh (ASM) instance. + + @param request: GetSwimLaneGroupListRequest + @return: GetSwimLaneGroupListResponse + """ runtime = util_models.RuntimeOptions() return await self.get_swim_lane_group_list_with_options_async(request, runtime) @@ -5053,6 +6678,13 @@ def get_swim_lane_list_with_options( request: servicemesh_20200111_models.GetSwimLaneListRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.GetSwimLaneListResponse: + """ + @summary Queries a list of all the lanes in a lane group. + + @param request: GetSwimLaneListRequest + @param runtime: runtime options for this request RuntimeOptions + @return: GetSwimLaneListResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.group_name): @@ -5083,6 +6715,13 @@ async def get_swim_lane_list_with_options_async( request: servicemesh_20200111_models.GetSwimLaneListRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.GetSwimLaneListResponse: + """ + @summary Queries a list of all the lanes in a lane group. + + @param request: GetSwimLaneListRequest + @param runtime: runtime options for this request RuntimeOptions + @return: GetSwimLaneListResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.group_name): @@ -5112,6 +6751,12 @@ def get_swim_lane_list( self, request: servicemesh_20200111_models.GetSwimLaneListRequest, ) -> servicemesh_20200111_models.GetSwimLaneListResponse: + """ + @summary Queries a list of all the lanes in a lane group. + + @param request: GetSwimLaneListRequest + @return: GetSwimLaneListResponse + """ runtime = util_models.RuntimeOptions() return self.get_swim_lane_list_with_options(request, runtime) @@ -5119,6 +6764,12 @@ async def get_swim_lane_list_async( self, request: servicemesh_20200111_models.GetSwimLaneListRequest, ) -> servicemesh_20200111_models.GetSwimLaneListResponse: + """ + @summary Queries a list of all the lanes in a lane group. + + @param request: GetSwimLaneListRequest + @return: GetSwimLaneListResponse + """ runtime = util_models.RuntimeOptions() return await self.get_swim_lane_list_with_options_async(request, runtime) @@ -5128,7 +6779,9 @@ def get_vm_app_mesh_info_with_options( runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.GetVmAppMeshInfoResponse: """ - @deprecated + @deprecated OpenAPI GetVmAppMeshInfo is deprecated + + @summary Queries the information about VMs that are added to a Service Mesh (ASM) instance. @param request: GetVmAppMeshInfoRequest @param runtime: runtime options for this request RuntimeOptions @@ -5162,7 +6815,9 @@ async def get_vm_app_mesh_info_with_options_async( runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.GetVmAppMeshInfoResponse: """ - @deprecated + @deprecated OpenAPI GetVmAppMeshInfo is deprecated + + @summary Queries the information about VMs that are added to a Service Mesh (ASM) instance. @param request: GetVmAppMeshInfoRequest @param runtime: runtime options for this request RuntimeOptions @@ -5195,7 +6850,9 @@ def get_vm_app_mesh_info( request: servicemesh_20200111_models.GetVmAppMeshInfoRequest, ) -> servicemesh_20200111_models.GetVmAppMeshInfoResponse: """ - @deprecated + @deprecated OpenAPI GetVmAppMeshInfo is deprecated + + @summary Queries the information about VMs that are added to a Service Mesh (ASM) instance. @param request: GetVmAppMeshInfoRequest @return: GetVmAppMeshInfoResponse @@ -5209,7 +6866,9 @@ async def get_vm_app_mesh_info_async( request: servicemesh_20200111_models.GetVmAppMeshInfoRequest, ) -> servicemesh_20200111_models.GetVmAppMeshInfoResponse: """ - @deprecated + @deprecated OpenAPI GetVmAppMeshInfo is deprecated + + @summary Queries the information about VMs that are added to a Service Mesh (ASM) instance. @param request: GetVmAppMeshInfoRequest @return: GetVmAppMeshInfoResponse @@ -5224,7 +6883,9 @@ def get_vm_meta_with_options( runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.GetVmMetaResponse: """ - @deprecated + @deprecated OpenAPI GetVmMeta is deprecated + + @summary Queries the metadata that is required to add a non-containerized application to a Service Mesh (ASM) instance. @param request: GetVmMetaRequest @param runtime: runtime options for this request RuntimeOptions @@ -5258,7 +6919,9 @@ async def get_vm_meta_with_options_async( runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.GetVmMetaResponse: """ - @deprecated + @deprecated OpenAPI GetVmMeta is deprecated + + @summary Queries the metadata that is required to add a non-containerized application to a Service Mesh (ASM) instance. @param request: GetVmMetaRequest @param runtime: runtime options for this request RuntimeOptions @@ -5291,7 +6954,9 @@ def get_vm_meta( request: servicemesh_20200111_models.GetVmMetaRequest, ) -> servicemesh_20200111_models.GetVmMetaResponse: """ - @deprecated + @deprecated OpenAPI GetVmMeta is deprecated + + @summary Queries the metadata that is required to add a non-containerized application to a Service Mesh (ASM) instance. @param request: GetVmMetaRequest @return: GetVmMetaResponse @@ -5305,7 +6970,9 @@ async def get_vm_meta_async( request: servicemesh_20200111_models.GetVmMetaRequest, ) -> servicemesh_20200111_models.GetVmMetaResponse: """ - @deprecated + @deprecated OpenAPI GetVmMeta is deprecated + + @summary Queries the metadata that is required to add a non-containerized application to a Service Mesh (ASM) instance. @param request: GetVmMetaRequest @return: GetVmMetaResponse @@ -5319,6 +6986,13 @@ def grant_user_permissions_with_options( tmp_req: servicemesh_20200111_models.GrantUserPermissionsRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.GrantUserPermissionsResponse: + """ + @summary Grants permissions to a Resource Access Management (RAM) user. + + @param tmp_req: GrantUserPermissionsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: GrantUserPermissionsResponse + """ UtilClient.validate_model(tmp_req) request = servicemesh_20200111_models.GrantUserPermissionsShrinkRequest() OpenApiUtilClient.convert(tmp_req, request) @@ -5355,6 +7029,13 @@ async def grant_user_permissions_with_options_async( tmp_req: servicemesh_20200111_models.GrantUserPermissionsRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.GrantUserPermissionsResponse: + """ + @summary Grants permissions to a Resource Access Management (RAM) user. + + @param tmp_req: GrantUserPermissionsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: GrantUserPermissionsResponse + """ UtilClient.validate_model(tmp_req) request = servicemesh_20200111_models.GrantUserPermissionsShrinkRequest() OpenApiUtilClient.convert(tmp_req, request) @@ -5390,6 +7071,12 @@ def grant_user_permissions( self, request: servicemesh_20200111_models.GrantUserPermissionsRequest, ) -> servicemesh_20200111_models.GrantUserPermissionsResponse: + """ + @summary Grants permissions to a Resource Access Management (RAM) user. + + @param request: GrantUserPermissionsRequest + @return: GrantUserPermissionsResponse + """ runtime = util_models.RuntimeOptions() return self.grant_user_permissions_with_options(request, runtime) @@ -5397,6 +7084,12 @@ async def grant_user_permissions_async( self, request: servicemesh_20200111_models.GrantUserPermissionsRequest, ) -> servicemesh_20200111_models.GrantUserPermissionsResponse: + """ + @summary Grants permissions to a Resource Access Management (RAM) user. + + @param request: GrantUserPermissionsRequest + @return: GrantUserPermissionsResponse + """ runtime = util_models.RuntimeOptions() return await self.grant_user_permissions_with_options_async(request, runtime) @@ -5405,6 +7098,13 @@ def list_service_accounts_with_options( request: servicemesh_20200111_models.ListServiceAccountsRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.ListServiceAccountsResponse: + """ + @summary 列举所有服务账号 + + @param request: ListServiceAccountsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: ListServiceAccountsResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.cluster_id): @@ -5437,6 +7137,13 @@ async def list_service_accounts_with_options_async( request: servicemesh_20200111_models.ListServiceAccountsRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.ListServiceAccountsResponse: + """ + @summary 列举所有服务账号 + + @param request: ListServiceAccountsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: ListServiceAccountsResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.cluster_id): @@ -5468,6 +7175,12 @@ def list_service_accounts( self, request: servicemesh_20200111_models.ListServiceAccountsRequest, ) -> servicemesh_20200111_models.ListServiceAccountsResponse: + """ + @summary 列举所有服务账号 + + @param request: ListServiceAccountsRequest + @return: ListServiceAccountsResponse + """ runtime = util_models.RuntimeOptions() return self.list_service_accounts_with_options(request, runtime) @@ -5475,6 +7188,12 @@ async def list_service_accounts_async( self, request: servicemesh_20200111_models.ListServiceAccountsRequest, ) -> servicemesh_20200111_models.ListServiceAccountsResponse: + """ + @summary 列举所有服务账号 + + @param request: ListServiceAccountsRequest + @return: ListServiceAccountsResponse + """ runtime = util_models.RuntimeOptions() return await self.list_service_accounts_with_options_async(request, runtime) @@ -5483,6 +7202,13 @@ def list_tag_resources_with_options( request: servicemesh_20200111_models.ListTagResourcesRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.ListTagResourcesResponse: + """ + @summary Queries user tags on a Service Mesh (ASM) instance. + + @param request: ListTagResourcesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: ListTagResourcesResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.next_token): @@ -5519,6 +7245,13 @@ async def list_tag_resources_with_options_async( request: servicemesh_20200111_models.ListTagResourcesRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.ListTagResourcesResponse: + """ + @summary Queries user tags on a Service Mesh (ASM) instance. + + @param request: ListTagResourcesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: ListTagResourcesResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.next_token): @@ -5554,6 +7287,12 @@ def list_tag_resources( self, request: servicemesh_20200111_models.ListTagResourcesRequest, ) -> servicemesh_20200111_models.ListTagResourcesResponse: + """ + @summary Queries user tags on a Service Mesh (ASM) instance. + + @param request: ListTagResourcesRequest + @return: ListTagResourcesResponse + """ runtime = util_models.RuntimeOptions() return self.list_tag_resources_with_options(request, runtime) @@ -5561,6 +7300,12 @@ async def list_tag_resources_async( self, request: servicemesh_20200111_models.ListTagResourcesRequest, ) -> servicemesh_20200111_models.ListTagResourcesResponse: + """ + @summary Queries user tags on a Service Mesh (ASM) instance. + + @param request: ListTagResourcesRequest + @return: ListTagResourcesResponse + """ runtime = util_models.RuntimeOptions() return await self.list_tag_resources_with_options_async(request, runtime) @@ -5569,6 +7314,13 @@ def list_waypoints_with_options( request: servicemesh_20200111_models.ListWaypointsRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.ListWaypointsResponse: + """ + @summary Queries the configurations of all waypoint proxies in a namespace of a cluster on the data plane. + + @param request: ListWaypointsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: ListWaypointsResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.cluster_id): @@ -5607,6 +7359,13 @@ async def list_waypoints_with_options_async( request: servicemesh_20200111_models.ListWaypointsRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.ListWaypointsResponse: + """ + @summary Queries the configurations of all waypoint proxies in a namespace of a cluster on the data plane. + + @param request: ListWaypointsRequest + @param runtime: runtime options for this request RuntimeOptions + @return: ListWaypointsResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.cluster_id): @@ -5644,25 +7403,150 @@ def list_waypoints( self, request: servicemesh_20200111_models.ListWaypointsRequest, ) -> servicemesh_20200111_models.ListWaypointsResponse: + """ + @summary Queries the configurations of all waypoint proxies in a namespace of a cluster on the data plane. + + @param request: ListWaypointsRequest + @return: ListWaypointsResponse + """ + runtime = util_models.RuntimeOptions() + return self.list_waypoints_with_options(request, runtime) + + async def list_waypoints_async( + self, + request: servicemesh_20200111_models.ListWaypointsRequest, + ) -> servicemesh_20200111_models.ListWaypointsResponse: + """ + @summary Queries the configurations of all waypoint proxies in a namespace of a cluster on the data plane. + + @param request: ListWaypointsRequest + @return: ListWaypointsResponse + """ + runtime = util_models.RuntimeOptions() + return await self.list_waypoints_with_options_async(request, runtime) + + def modify_api_server_eip_resource_with_options( + self, + request: servicemesh_20200111_models.ModifyApiServerEipResourceRequest, + runtime: util_models.RuntimeOptions, + ) -> servicemesh_20200111_models.ModifyApiServerEipResourceResponse: + """ + @summary ModifyApiServerEipResource + + @param request: ModifyApiServerEipResourceRequest + @param runtime: runtime options for this request RuntimeOptions + @return: ModifyApiServerEipResourceResponse + """ + UtilClient.validate_model(request) + body = {} + if not UtilClient.is_unset(request.api_server_eip_id): + body['ApiServerEipId'] = request.api_server_eip_id + if not UtilClient.is_unset(request.operation): + body['Operation'] = request.operation + if not UtilClient.is_unset(request.service_mesh_id): + body['ServiceMeshId'] = request.service_mesh_id + req = open_api_models.OpenApiRequest( + body=OpenApiUtilClient.parse_to_map(body) + ) + params = open_api_models.Params( + action='ModifyApiServerEipResource', + version='2020-01-11', + protocol='HTTPS', + pathname='/', + method='POST', + auth_type='AK', + style='RPC', + req_body_type='formData', + body_type='json' + ) + return TeaCore.from_map( + servicemesh_20200111_models.ModifyApiServerEipResourceResponse(), + self.call_api(params, req, runtime) + ) + + async def modify_api_server_eip_resource_with_options_async( + self, + request: servicemesh_20200111_models.ModifyApiServerEipResourceRequest, + runtime: util_models.RuntimeOptions, + ) -> servicemesh_20200111_models.ModifyApiServerEipResourceResponse: + """ + @summary ModifyApiServerEipResource + + @param request: ModifyApiServerEipResourceRequest + @param runtime: runtime options for this request RuntimeOptions + @return: ModifyApiServerEipResourceResponse + """ + UtilClient.validate_model(request) + body = {} + if not UtilClient.is_unset(request.api_server_eip_id): + body['ApiServerEipId'] = request.api_server_eip_id + if not UtilClient.is_unset(request.operation): + body['Operation'] = request.operation + if not UtilClient.is_unset(request.service_mesh_id): + body['ServiceMeshId'] = request.service_mesh_id + req = open_api_models.OpenApiRequest( + body=OpenApiUtilClient.parse_to_map(body) + ) + params = open_api_models.Params( + action='ModifyApiServerEipResource', + version='2020-01-11', + protocol='HTTPS', + pathname='/', + method='POST', + auth_type='AK', + style='RPC', + req_body_type='formData', + body_type='json' + ) + return TeaCore.from_map( + servicemesh_20200111_models.ModifyApiServerEipResourceResponse(), + await self.call_api_async(params, req, runtime) + ) + + def modify_api_server_eip_resource( + self, + request: servicemesh_20200111_models.ModifyApiServerEipResourceRequest, + ) -> servicemesh_20200111_models.ModifyApiServerEipResourceResponse: + """ + @summary ModifyApiServerEipResource + + @param request: ModifyApiServerEipResourceRequest + @return: ModifyApiServerEipResourceResponse + """ runtime = util_models.RuntimeOptions() - return self.list_waypoints_with_options(request, runtime) + return self.modify_api_server_eip_resource_with_options(request, runtime) - async def list_waypoints_async( + async def modify_api_server_eip_resource_async( self, - request: servicemesh_20200111_models.ListWaypointsRequest, - ) -> servicemesh_20200111_models.ListWaypointsResponse: + request: servicemesh_20200111_models.ModifyApiServerEipResourceRequest, + ) -> servicemesh_20200111_models.ModifyApiServerEipResourceResponse: + """ + @summary ModifyApiServerEipResource + + @param request: ModifyApiServerEipResourceRequest + @return: ModifyApiServerEipResourceResponse + """ runtime = util_models.RuntimeOptions() - return await self.list_waypoints_with_options_async(request, runtime) + return await self.modify_api_server_eip_resource_with_options_async(request, runtime) - def modify_api_server_eip_resource_with_options( + def modify_pilot_eip_resource_with_options( self, - request: servicemesh_20200111_models.ModifyApiServerEipResourceRequest, + request: servicemesh_20200111_models.ModifyPilotEipResourceRequest, runtime: util_models.RuntimeOptions, - ) -> servicemesh_20200111_models.ModifyApiServerEipResourceResponse: + ) -> servicemesh_20200111_models.ModifyPilotEipResourceResponse: + """ + @summary ModifyPilotEipResource + + @param request: ModifyPilotEipResourceRequest + @param runtime: runtime options for this request RuntimeOptions + @return: ModifyPilotEipResourceResponse + """ UtilClient.validate_model(request) body = {} - if not UtilClient.is_unset(request.api_server_eip_id): - body['ApiServerEipId'] = request.api_server_eip_id + if not UtilClient.is_unset(request.eip_id): + body['EipId'] = request.eip_id + if not UtilClient.is_unset(request.is_canary): + body['IsCanary'] = request.is_canary if not UtilClient.is_unset(request.operation): body['Operation'] = request.operation if not UtilClient.is_unset(request.service_mesh_id): @@ -5671,7 +7555,7 @@ def modify_api_server_eip_resource_with_options( body=OpenApiUtilClient.parse_to_map(body) ) params = open_api_models.Params( - action='ModifyApiServerEipResource', + action='ModifyPilotEipResource', version='2020-01-11', protocol='HTTPS', pathname='/', @@ -5682,19 +7566,28 @@ def modify_api_server_eip_resource_with_options( body_type='json' ) return TeaCore.from_map( - servicemesh_20200111_models.ModifyApiServerEipResourceResponse(), + servicemesh_20200111_models.ModifyPilotEipResourceResponse(), self.call_api(params, req, runtime) ) - async def modify_api_server_eip_resource_with_options_async( + async def modify_pilot_eip_resource_with_options_async( self, - request: servicemesh_20200111_models.ModifyApiServerEipResourceRequest, + request: servicemesh_20200111_models.ModifyPilotEipResourceRequest, runtime: util_models.RuntimeOptions, - ) -> servicemesh_20200111_models.ModifyApiServerEipResourceResponse: + ) -> servicemesh_20200111_models.ModifyPilotEipResourceResponse: + """ + @summary ModifyPilotEipResource + + @param request: ModifyPilotEipResourceRequest + @param runtime: runtime options for this request RuntimeOptions + @return: ModifyPilotEipResourceResponse + """ UtilClient.validate_model(request) body = {} - if not UtilClient.is_unset(request.api_server_eip_id): - body['ApiServerEipId'] = request.api_server_eip_id + if not UtilClient.is_unset(request.eip_id): + body['EipId'] = request.eip_id + if not UtilClient.is_unset(request.is_canary): + body['IsCanary'] = request.is_canary if not UtilClient.is_unset(request.operation): body['Operation'] = request.operation if not UtilClient.is_unset(request.service_mesh_id): @@ -5703,7 +7596,7 @@ async def modify_api_server_eip_resource_with_options_async( body=OpenApiUtilClient.parse_to_map(body) ) params = open_api_models.Params( - action='ModifyApiServerEipResource', + action='ModifyPilotEipResource', version='2020-01-11', protocol='HTTPS', pathname='/', @@ -5714,29 +7607,48 @@ async def modify_api_server_eip_resource_with_options_async( body_type='json' ) return TeaCore.from_map( - servicemesh_20200111_models.ModifyApiServerEipResourceResponse(), + servicemesh_20200111_models.ModifyPilotEipResourceResponse(), await self.call_api_async(params, req, runtime) ) - def modify_api_server_eip_resource( + def modify_pilot_eip_resource( self, - request: servicemesh_20200111_models.ModifyApiServerEipResourceRequest, - ) -> servicemesh_20200111_models.ModifyApiServerEipResourceResponse: + request: servicemesh_20200111_models.ModifyPilotEipResourceRequest, + ) -> servicemesh_20200111_models.ModifyPilotEipResourceResponse: + """ + @summary ModifyPilotEipResource + + @param request: ModifyPilotEipResourceRequest + @return: ModifyPilotEipResourceResponse + """ runtime = util_models.RuntimeOptions() - return self.modify_api_server_eip_resource_with_options(request, runtime) + return self.modify_pilot_eip_resource_with_options(request, runtime) - async def modify_api_server_eip_resource_async( + async def modify_pilot_eip_resource_async( self, - request: servicemesh_20200111_models.ModifyApiServerEipResourceRequest, - ) -> servicemesh_20200111_models.ModifyApiServerEipResourceResponse: + request: servicemesh_20200111_models.ModifyPilotEipResourceRequest, + ) -> servicemesh_20200111_models.ModifyPilotEipResourceResponse: + """ + @summary ModifyPilotEipResource + + @param request: ModifyPilotEipResourceRequest + @return: ModifyPilotEipResourceResponse + """ runtime = util_models.RuntimeOptions() - return await self.modify_api_server_eip_resource_with_options_async(request, runtime) + return await self.modify_pilot_eip_resource_with_options_async(request, runtime) def modify_service_mesh_name_with_options( self, request: servicemesh_20200111_models.ModifyServiceMeshNameRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.ModifyServiceMeshNameResponse: + """ + @summary Modifies the name of a Service Mesh (ASM) instance. + + @param request: ModifyServiceMeshNameRequest + @param runtime: runtime options for this request RuntimeOptions + @return: ModifyServiceMeshNameResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.name): @@ -5767,6 +7679,13 @@ async def modify_service_mesh_name_with_options_async( request: servicemesh_20200111_models.ModifyServiceMeshNameRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.ModifyServiceMeshNameResponse: + """ + @summary Modifies the name of a Service Mesh (ASM) instance. + + @param request: ModifyServiceMeshNameRequest + @param runtime: runtime options for this request RuntimeOptions + @return: ModifyServiceMeshNameResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.name): @@ -5796,6 +7715,12 @@ def modify_service_mesh_name( self, request: servicemesh_20200111_models.ModifyServiceMeshNameRequest, ) -> servicemesh_20200111_models.ModifyServiceMeshNameResponse: + """ + @summary Modifies the name of a Service Mesh (ASM) instance. + + @param request: ModifyServiceMeshNameRequest + @return: ModifyServiceMeshNameResponse + """ runtime = util_models.RuntimeOptions() return self.modify_service_mesh_name_with_options(request, runtime) @@ -5803,6 +7728,12 @@ async def modify_service_mesh_name_async( self, request: servicemesh_20200111_models.ModifyServiceMeshNameRequest, ) -> servicemesh_20200111_models.ModifyServiceMeshNameResponse: + """ + @summary Modifies the name of a Service Mesh (ASM) instance. + + @param request: ModifyServiceMeshNameRequest + @return: ModifyServiceMeshNameResponse + """ runtime = util_models.RuntimeOptions() return await self.modify_service_mesh_name_with_options_async(request, runtime) @@ -5812,7 +7743,9 @@ def re_activate_audit_with_options( runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.ReActivateAuditResponse: """ - Before you call this operation, make sure that you understand the billing methods of Simple Log Service. For more information, visit the [pricing page](https://www.aliyun.com/price/product?spm=5176.10695662.1119587.4.194c6a67rcPWQH#/sls/detail). + @summary Recreates a project that is used to store audit logs. After mesh audit is enabled, if you delete the log project that stores audit logs by mistake, you can recreate a project for storing audit logs. + + @description Before you call this operation, make sure that you understand the billing methods of Simple Log Service. For more information, visit the [pricing page](https://www.alibabacloud.com/zh/pricing-calculator?_p_lc=1\\&spm=a2796.7960336.3034855210.1.44e6b91aaSp2M7#/commodity/vm_intl). @param request: ReActivateAuditRequest @param runtime: runtime options for this request RuntimeOptions @@ -5849,7 +7782,9 @@ async def re_activate_audit_with_options_async( runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.ReActivateAuditResponse: """ - Before you call this operation, make sure that you understand the billing methods of Simple Log Service. For more information, visit the [pricing page](https://www.aliyun.com/price/product?spm=5176.10695662.1119587.4.194c6a67rcPWQH#/sls/detail). + @summary Recreates a project that is used to store audit logs. After mesh audit is enabled, if you delete the log project that stores audit logs by mistake, you can recreate a project for storing audit logs. + + @description Before you call this operation, make sure that you understand the billing methods of Simple Log Service. For more information, visit the [pricing page](https://www.alibabacloud.com/zh/pricing-calculator?_p_lc=1\\&spm=a2796.7960336.3034855210.1.44e6b91aaSp2M7#/commodity/vm_intl). @param request: ReActivateAuditRequest @param runtime: runtime options for this request RuntimeOptions @@ -5885,7 +7820,9 @@ def re_activate_audit( request: servicemesh_20200111_models.ReActivateAuditRequest, ) -> servicemesh_20200111_models.ReActivateAuditResponse: """ - Before you call this operation, make sure that you understand the billing methods of Simple Log Service. For more information, visit the [pricing page](https://www.aliyun.com/price/product?spm=5176.10695662.1119587.4.194c6a67rcPWQH#/sls/detail). + @summary Recreates a project that is used to store audit logs. After mesh audit is enabled, if you delete the log project that stores audit logs by mistake, you can recreate a project for storing audit logs. + + @description Before you call this operation, make sure that you understand the billing methods of Simple Log Service. For more information, visit the [pricing page](https://www.alibabacloud.com/zh/pricing-calculator?_p_lc=1\\&spm=a2796.7960336.3034855210.1.44e6b91aaSp2M7#/commodity/vm_intl). @param request: ReActivateAuditRequest @return: ReActivateAuditResponse @@ -5898,7 +7835,9 @@ async def re_activate_audit_async( request: servicemesh_20200111_models.ReActivateAuditRequest, ) -> servicemesh_20200111_models.ReActivateAuditResponse: """ - Before you call this operation, make sure that you understand the billing methods of Simple Log Service. For more information, visit the [pricing page](https://www.aliyun.com/price/product?spm=5176.10695662.1119587.4.194c6a67rcPWQH#/sls/detail). + @summary Recreates a project that is used to store audit logs. After mesh audit is enabled, if you delete the log project that stores audit logs by mistake, you can recreate a project for storing audit logs. + + @description Before you call this operation, make sure that you understand the billing methods of Simple Log Service. For more information, visit the [pricing page](https://www.alibabacloud.com/zh/pricing-calculator?_p_lc=1\\&spm=a2796.7960336.3034855210.1.44e6b91aaSp2M7#/commodity/vm_intl). @param request: ReActivateAuditRequest @return: ReActivateAuditResponse @@ -5911,6 +7850,13 @@ def remove_cluster_from_service_mesh_with_options( request: servicemesh_20200111_models.RemoveClusterFromServiceMeshRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.RemoveClusterFromServiceMeshResponse: + """ + @summary Removes a cluster from a Service Mesh (ASM) instance. + + @param request: RemoveClusterFromServiceMeshRequest + @param runtime: runtime options for this request RuntimeOptions + @return: RemoveClusterFromServiceMeshResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.cluster_id): @@ -5943,6 +7889,13 @@ async def remove_cluster_from_service_mesh_with_options_async( request: servicemesh_20200111_models.RemoveClusterFromServiceMeshRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.RemoveClusterFromServiceMeshResponse: + """ + @summary Removes a cluster from a Service Mesh (ASM) instance. + + @param request: RemoveClusterFromServiceMeshRequest + @param runtime: runtime options for this request RuntimeOptions + @return: RemoveClusterFromServiceMeshResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.cluster_id): @@ -5974,6 +7927,12 @@ def remove_cluster_from_service_mesh( self, request: servicemesh_20200111_models.RemoveClusterFromServiceMeshRequest, ) -> servicemesh_20200111_models.RemoveClusterFromServiceMeshResponse: + """ + @summary Removes a cluster from a Service Mesh (ASM) instance. + + @param request: RemoveClusterFromServiceMeshRequest + @return: RemoveClusterFromServiceMeshResponse + """ runtime = util_models.RuntimeOptions() return self.remove_cluster_from_service_mesh_with_options(request, runtime) @@ -5981,6 +7940,12 @@ async def remove_cluster_from_service_mesh_async( self, request: servicemesh_20200111_models.RemoveClusterFromServiceMeshRequest, ) -> servicemesh_20200111_models.RemoveClusterFromServiceMeshResponse: + """ + @summary Removes a cluster from a Service Mesh (ASM) instance. + + @param request: RemoveClusterFromServiceMeshRequest + @return: RemoveClusterFromServiceMeshResponse + """ runtime = util_models.RuntimeOptions() return await self.remove_cluster_from_service_mesh_with_options_async(request, runtime) @@ -5990,7 +7955,9 @@ def remove_vmfrom_service_mesh_with_options( runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.RemoveVMFromServiceMeshResponse: """ - @deprecated + @deprecated OpenAPI RemoveVMFromServiceMesh is deprecated + + @summary Removes a virtual machine (VM) from a Service Mesh (ASM) instance. @param request: RemoveVMFromServiceMeshRequest @param runtime: runtime options for this request RuntimeOptions @@ -6028,7 +7995,9 @@ async def remove_vmfrom_service_mesh_with_options_async( runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.RemoveVMFromServiceMeshResponse: """ - @deprecated + @deprecated OpenAPI RemoveVMFromServiceMesh is deprecated + + @summary Removes a virtual machine (VM) from a Service Mesh (ASM) instance. @param request: RemoveVMFromServiceMeshRequest @param runtime: runtime options for this request RuntimeOptions @@ -6065,7 +8034,9 @@ def remove_vmfrom_service_mesh( request: servicemesh_20200111_models.RemoveVMFromServiceMeshRequest, ) -> servicemesh_20200111_models.RemoveVMFromServiceMeshResponse: """ - @deprecated + @deprecated OpenAPI RemoveVMFromServiceMesh is deprecated + + @summary Removes a virtual machine (VM) from a Service Mesh (ASM) instance. @param request: RemoveVMFromServiceMeshRequest @return: RemoveVMFromServiceMeshResponse @@ -6079,7 +8050,9 @@ async def remove_vmfrom_service_mesh_async( request: servicemesh_20200111_models.RemoveVMFromServiceMeshRequest, ) -> servicemesh_20200111_models.RemoveVMFromServiceMeshResponse: """ - @deprecated + @deprecated OpenAPI RemoveVMFromServiceMesh is deprecated + + @summary Removes a virtual machine (VM) from a Service Mesh (ASM) instance. @param request: RemoveVMFromServiceMeshRequest @return: RemoveVMFromServiceMeshResponse @@ -6093,6 +8066,13 @@ def revoke_kubeconfig_with_options( request: servicemesh_20200111_models.RevokeKubeconfigRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.RevokeKubeconfigResponse: + """ + @summary Revokes the kubeconfig file of a Service Mesh (ASM) instance and generates a new kubeconfig file. + + @param request: RevokeKubeconfigRequest + @param runtime: runtime options for this request RuntimeOptions + @return: RevokeKubeconfigResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.private_ip_address): @@ -6123,6 +8103,13 @@ async def revoke_kubeconfig_with_options_async( request: servicemesh_20200111_models.RevokeKubeconfigRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.RevokeKubeconfigResponse: + """ + @summary Revokes the kubeconfig file of a Service Mesh (ASM) instance and generates a new kubeconfig file. + + @param request: RevokeKubeconfigRequest + @param runtime: runtime options for this request RuntimeOptions + @return: RevokeKubeconfigResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.private_ip_address): @@ -6152,6 +8139,12 @@ def revoke_kubeconfig( self, request: servicemesh_20200111_models.RevokeKubeconfigRequest, ) -> servicemesh_20200111_models.RevokeKubeconfigResponse: + """ + @summary Revokes the kubeconfig file of a Service Mesh (ASM) instance and generates a new kubeconfig file. + + @param request: RevokeKubeconfigRequest + @return: RevokeKubeconfigResponse + """ runtime = util_models.RuntimeOptions() return self.revoke_kubeconfig_with_options(request, runtime) @@ -6159,6 +8152,12 @@ async def revoke_kubeconfig_async( self, request: servicemesh_20200111_models.RevokeKubeconfigRequest, ) -> servicemesh_20200111_models.RevokeKubeconfigResponse: + """ + @summary Revokes the kubeconfig file of a Service Mesh (ASM) instance and generates a new kubeconfig file. + + @param request: RevokeKubeconfigRequest + @return: RevokeKubeconfigResponse + """ runtime = util_models.RuntimeOptions() return await self.revoke_kubeconfig_with_options_async(request, runtime) @@ -6167,6 +8166,13 @@ def tag_resources_with_options( request: servicemesh_20200111_models.TagResourcesRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.TagResourcesResponse: + """ + @summary Adds or modifies user tags on a resource. + + @param request: TagResourcesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: TagResourcesResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.region_id): @@ -6201,6 +8207,13 @@ async def tag_resources_with_options_async( request: servicemesh_20200111_models.TagResourcesRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.TagResourcesResponse: + """ + @summary Adds or modifies user tags on a resource. + + @param request: TagResourcesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: TagResourcesResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.region_id): @@ -6234,6 +8247,12 @@ def tag_resources( self, request: servicemesh_20200111_models.TagResourcesRequest, ) -> servicemesh_20200111_models.TagResourcesResponse: + """ + @summary Adds or modifies user tags on a resource. + + @param request: TagResourcesRequest + @return: TagResourcesResponse + """ runtime = util_models.RuntimeOptions() return self.tag_resources_with_options(request, runtime) @@ -6241,6 +8260,12 @@ async def tag_resources_async( self, request: servicemesh_20200111_models.TagResourcesRequest, ) -> servicemesh_20200111_models.TagResourcesResponse: + """ + @summary Adds or modifies user tags on a resource. + + @param request: TagResourcesRequest + @return: TagResourcesResponse + """ runtime = util_models.RuntimeOptions() return await self.tag_resources_with_options_async(request, runtime) @@ -6249,6 +8274,13 @@ def untag_resources_with_options( request: servicemesh_20200111_models.UntagResourcesRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UntagResourcesResponse: + """ + @summary Deletes user tags on a Service Mesh (ASM) instance. + + @param request: UntagResourcesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UntagResourcesResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.all): @@ -6285,6 +8317,13 @@ async def untag_resources_with_options_async( request: servicemesh_20200111_models.UntagResourcesRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UntagResourcesResponse: + """ + @summary Deletes user tags on a Service Mesh (ASM) instance. + + @param request: UntagResourcesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UntagResourcesResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.all): @@ -6320,6 +8359,12 @@ def untag_resources( self, request: servicemesh_20200111_models.UntagResourcesRequest, ) -> servicemesh_20200111_models.UntagResourcesResponse: + """ + @summary Deletes user tags on a Service Mesh (ASM) instance. + + @param request: UntagResourcesRequest + @return: UntagResourcesResponse + """ runtime = util_models.RuntimeOptions() return self.untag_resources_with_options(request, runtime) @@ -6327,6 +8372,12 @@ async def untag_resources_async( self, request: servicemesh_20200111_models.UntagResourcesRequest, ) -> servicemesh_20200111_models.UntagResourcesResponse: + """ + @summary Deletes user tags on a Service Mesh (ASM) instance. + + @param request: UntagResourcesRequest + @return: UntagResourcesResponse + """ runtime = util_models.RuntimeOptions() return await self.untag_resources_with_options_async(request, runtime) @@ -6335,6 +8386,13 @@ def update_asmgateway_with_options( request: servicemesh_20200111_models.UpdateASMGatewayRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpdateASMGatewayResponse: + """ + @summary Updates a Service Mesh (ASM) gateway. + + @param request: UpdateASMGatewayRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateASMGatewayResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.body): @@ -6367,6 +8425,13 @@ async def update_asmgateway_with_options_async( request: servicemesh_20200111_models.UpdateASMGatewayRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpdateASMGatewayResponse: + """ + @summary Updates a Service Mesh (ASM) gateway. + + @param request: UpdateASMGatewayRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateASMGatewayResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.body): @@ -6398,6 +8463,12 @@ def update_asmgateway( self, request: servicemesh_20200111_models.UpdateASMGatewayRequest, ) -> servicemesh_20200111_models.UpdateASMGatewayResponse: + """ + @summary Updates a Service Mesh (ASM) gateway. + + @param request: UpdateASMGatewayRequest + @return: UpdateASMGatewayResponse + """ runtime = util_models.RuntimeOptions() return self.update_asmgateway_with_options(request, runtime) @@ -6405,6 +8476,12 @@ async def update_asmgateway_async( self, request: servicemesh_20200111_models.UpdateASMGatewayRequest, ) -> servicemesh_20200111_models.UpdateASMGatewayResponse: + """ + @summary Updates a Service Mesh (ASM) gateway. + + @param request: UpdateASMGatewayRequest + @return: UpdateASMGatewayResponse + """ runtime = util_models.RuntimeOptions() return await self.update_asmgateway_with_options_async(request, runtime) @@ -6413,6 +8490,13 @@ def update_asmgateway_imported_services_with_options( request: servicemesh_20200111_models.UpdateASMGatewayImportedServicesRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpdateASMGatewayImportedServicesResponse: + """ + @summary Updates imported services on a Service Mesh (ASM) gateway to import or delete upstream services associated with the gateway. + + @param request: UpdateASMGatewayImportedServicesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateASMGatewayImportedServicesResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.asmgateway_name): @@ -6447,6 +8531,13 @@ async def update_asmgateway_imported_services_with_options_async( request: servicemesh_20200111_models.UpdateASMGatewayImportedServicesRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpdateASMGatewayImportedServicesResponse: + """ + @summary Updates imported services on a Service Mesh (ASM) gateway to import or delete upstream services associated with the gateway. + + @param request: UpdateASMGatewayImportedServicesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateASMGatewayImportedServicesResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.asmgateway_name): @@ -6480,6 +8571,12 @@ def update_asmgateway_imported_services( self, request: servicemesh_20200111_models.UpdateASMGatewayImportedServicesRequest, ) -> servicemesh_20200111_models.UpdateASMGatewayImportedServicesResponse: + """ + @summary Updates imported services on a Service Mesh (ASM) gateway to import or delete upstream services associated with the gateway. + + @param request: UpdateASMGatewayImportedServicesRequest + @return: UpdateASMGatewayImportedServicesResponse + """ runtime = util_models.RuntimeOptions() return self.update_asmgateway_imported_services_with_options(request, runtime) @@ -6487,6 +8584,12 @@ async def update_asmgateway_imported_services_async( self, request: servicemesh_20200111_models.UpdateASMGatewayImportedServicesRequest, ) -> servicemesh_20200111_models.UpdateASMGatewayImportedServicesResponse: + """ + @summary Updates imported services on a Service Mesh (ASM) gateway to import or delete upstream services associated with the gateway. + + @param request: UpdateASMGatewayImportedServicesRequest + @return: UpdateASMGatewayImportedServicesResponse + """ runtime = util_models.RuntimeOptions() return await self.update_asmgateway_imported_services_with_options_async(request, runtime) @@ -6495,6 +8598,13 @@ def update_asmnamespace_from_guest_cluster_with_options( request: servicemesh_20200111_models.UpdateASMNamespaceFromGuestClusterRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpdateASMNamespaceFromGuestClusterResponse: + """ + @summary Synchronizes namespaces of a Kubernetes cluster that is added to a Service Mesh (ASM) instance. + + @param request: UpdateASMNamespaceFromGuestClusterRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateASMNamespaceFromGuestClusterResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.k_8s_cluster_id): @@ -6525,6 +8635,13 @@ async def update_asmnamespace_from_guest_cluster_with_options_async( request: servicemesh_20200111_models.UpdateASMNamespaceFromGuestClusterRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpdateASMNamespaceFromGuestClusterResponse: + """ + @summary Synchronizes namespaces of a Kubernetes cluster that is added to a Service Mesh (ASM) instance. + + @param request: UpdateASMNamespaceFromGuestClusterRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateASMNamespaceFromGuestClusterResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.k_8s_cluster_id): @@ -6554,6 +8671,12 @@ def update_asmnamespace_from_guest_cluster( self, request: servicemesh_20200111_models.UpdateASMNamespaceFromGuestClusterRequest, ) -> servicemesh_20200111_models.UpdateASMNamespaceFromGuestClusterResponse: + """ + @summary Synchronizes namespaces of a Kubernetes cluster that is added to a Service Mesh (ASM) instance. + + @param request: UpdateASMNamespaceFromGuestClusterRequest + @return: UpdateASMNamespaceFromGuestClusterResponse + """ runtime = util_models.RuntimeOptions() return self.update_asmnamespace_from_guest_cluster_with_options(request, runtime) @@ -6561,6 +8684,12 @@ async def update_asmnamespace_from_guest_cluster_async( self, request: servicemesh_20200111_models.UpdateASMNamespaceFromGuestClusterRequest, ) -> servicemesh_20200111_models.UpdateASMNamespaceFromGuestClusterResponse: + """ + @summary Synchronizes namespaces of a Kubernetes cluster that is added to a Service Mesh (ASM) instance. + + @param request: UpdateASMNamespaceFromGuestClusterRequest + @return: UpdateASMNamespaceFromGuestClusterResponse + """ runtime = util_models.RuntimeOptions() return await self.update_asmnamespace_from_guest_cluster_with_options_async(request, runtime) @@ -6569,6 +8698,13 @@ def update_control_plane_log_config_with_options( request: servicemesh_20200111_models.UpdateControlPlaneLogConfigRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpdateControlPlaneLogConfigResponse: + """ + @summary Modifies the configuration for collecting control plane logs. + + @param request: UpdateControlPlaneLogConfigRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateControlPlaneLogConfigResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.enabled): @@ -6603,6 +8739,13 @@ async def update_control_plane_log_config_with_options_async( request: servicemesh_20200111_models.UpdateControlPlaneLogConfigRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpdateControlPlaneLogConfigResponse: + """ + @summary Modifies the configuration for collecting control plane logs. + + @param request: UpdateControlPlaneLogConfigRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateControlPlaneLogConfigResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.enabled): @@ -6617,7 +8760,111 @@ async def update_control_plane_log_config_with_options_async( body=OpenApiUtilClient.parse_to_map(body) ) params = open_api_models.Params( - action='UpdateControlPlaneLogConfig', + action='UpdateControlPlaneLogConfig', + version='2020-01-11', + protocol='HTTPS', + pathname='/', + method='POST', + auth_type='AK', + style='RPC', + req_body_type='formData', + body_type='json' + ) + return TeaCore.from_map( + servicemesh_20200111_models.UpdateControlPlaneLogConfigResponse(), + await self.call_api_async(params, req, runtime) + ) + + def update_control_plane_log_config( + self, + request: servicemesh_20200111_models.UpdateControlPlaneLogConfigRequest, + ) -> servicemesh_20200111_models.UpdateControlPlaneLogConfigResponse: + """ + @summary Modifies the configuration for collecting control plane logs. + + @param request: UpdateControlPlaneLogConfigRequest + @return: UpdateControlPlaneLogConfigResponse + """ + runtime = util_models.RuntimeOptions() + return self.update_control_plane_log_config_with_options(request, runtime) + + async def update_control_plane_log_config_async( + self, + request: servicemesh_20200111_models.UpdateControlPlaneLogConfigRequest, + ) -> servicemesh_20200111_models.UpdateControlPlaneLogConfigResponse: + """ + @summary Modifies the configuration for collecting control plane logs. + + @param request: UpdateControlPlaneLogConfigRequest + @return: UpdateControlPlaneLogConfigResponse + """ + runtime = util_models.RuntimeOptions() + return await self.update_control_plane_log_config_with_options_async(request, runtime) + + def update_guest_cluster_config_with_options( + self, + request: servicemesh_20200111_models.UpdateGuestClusterConfigRequest, + runtime: util_models.RuntimeOptions, + ) -> servicemesh_20200111_models.UpdateGuestClusterConfigResponse: + """ + @summary 更新Guest Cluster配置 + + @param request: UpdateGuestClusterConfigRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateGuestClusterConfigResponse + """ + UtilClient.validate_model(request) + body = {} + if not UtilClient.is_unset(request.guest_cluster_id): + body['GuestClusterId'] = request.guest_cluster_id + if not UtilClient.is_unset(request.smcenabled): + body['SMCEnabled'] = request.smcenabled + if not UtilClient.is_unset(request.service_mesh_id): + body['ServiceMeshId'] = request.service_mesh_id + req = open_api_models.OpenApiRequest( + body=OpenApiUtilClient.parse_to_map(body) + ) + params = open_api_models.Params( + action='UpdateGuestClusterConfig', + version='2020-01-11', + protocol='HTTPS', + pathname='/', + method='POST', + auth_type='AK', + style='RPC', + req_body_type='formData', + body_type='json' + ) + return TeaCore.from_map( + servicemesh_20200111_models.UpdateGuestClusterConfigResponse(), + self.call_api(params, req, runtime) + ) + + async def update_guest_cluster_config_with_options_async( + self, + request: servicemesh_20200111_models.UpdateGuestClusterConfigRequest, + runtime: util_models.RuntimeOptions, + ) -> servicemesh_20200111_models.UpdateGuestClusterConfigResponse: + """ + @summary 更新Guest Cluster配置 + + @param request: UpdateGuestClusterConfigRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateGuestClusterConfigResponse + """ + UtilClient.validate_model(request) + body = {} + if not UtilClient.is_unset(request.guest_cluster_id): + body['GuestClusterId'] = request.guest_cluster_id + if not UtilClient.is_unset(request.smcenabled): + body['SMCEnabled'] = request.smcenabled + if not UtilClient.is_unset(request.service_mesh_id): + body['ServiceMeshId'] = request.service_mesh_id + req = open_api_models.OpenApiRequest( + body=OpenApiUtilClient.parse_to_map(body) + ) + params = open_api_models.Params( + action='UpdateGuestClusterConfig', version='2020-01-11', protocol='HTTPS', pathname='/', @@ -6628,29 +8875,48 @@ async def update_control_plane_log_config_with_options_async( body_type='json' ) return TeaCore.from_map( - servicemesh_20200111_models.UpdateControlPlaneLogConfigResponse(), + servicemesh_20200111_models.UpdateGuestClusterConfigResponse(), await self.call_api_async(params, req, runtime) ) - def update_control_plane_log_config( + def update_guest_cluster_config( self, - request: servicemesh_20200111_models.UpdateControlPlaneLogConfigRequest, - ) -> servicemesh_20200111_models.UpdateControlPlaneLogConfigResponse: + request: servicemesh_20200111_models.UpdateGuestClusterConfigRequest, + ) -> servicemesh_20200111_models.UpdateGuestClusterConfigResponse: + """ + @summary 更新Guest Cluster配置 + + @param request: UpdateGuestClusterConfigRequest + @return: UpdateGuestClusterConfigResponse + """ runtime = util_models.RuntimeOptions() - return self.update_control_plane_log_config_with_options(request, runtime) + return self.update_guest_cluster_config_with_options(request, runtime) - async def update_control_plane_log_config_async( + async def update_guest_cluster_config_async( self, - request: servicemesh_20200111_models.UpdateControlPlaneLogConfigRequest, - ) -> servicemesh_20200111_models.UpdateControlPlaneLogConfigResponse: + request: servicemesh_20200111_models.UpdateGuestClusterConfigRequest, + ) -> servicemesh_20200111_models.UpdateGuestClusterConfigResponse: + """ + @summary 更新Guest Cluster配置 + + @param request: UpdateGuestClusterConfigRequest + @return: UpdateGuestClusterConfigResponse + """ runtime = util_models.RuntimeOptions() - return await self.update_control_plane_log_config_with_options_async(request, runtime) + return await self.update_guest_cluster_config_with_options_async(request, runtime) def update_istio_gateway_routes_with_options( self, tmp_req: servicemesh_20200111_models.UpdateIstioGatewayRoutesRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpdateIstioGatewayRoutesResponse: + """ + @summary Updates a routing rule for a Service Mesh (ASM) gateway. + + @param tmp_req: UpdateIstioGatewayRoutesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateIstioGatewayRoutesResponse + """ UtilClient.validate_model(tmp_req) request = servicemesh_20200111_models.UpdateIstioGatewayRoutesShrinkRequest() OpenApiUtilClient.convert(tmp_req, request) @@ -6693,6 +8959,13 @@ async def update_istio_gateway_routes_with_options_async( tmp_req: servicemesh_20200111_models.UpdateIstioGatewayRoutesRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpdateIstioGatewayRoutesResponse: + """ + @summary Updates a routing rule for a Service Mesh (ASM) gateway. + + @param tmp_req: UpdateIstioGatewayRoutesRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateIstioGatewayRoutesResponse + """ UtilClient.validate_model(tmp_req) request = servicemesh_20200111_models.UpdateIstioGatewayRoutesShrinkRequest() OpenApiUtilClient.convert(tmp_req, request) @@ -6734,6 +9007,12 @@ def update_istio_gateway_routes( self, request: servicemesh_20200111_models.UpdateIstioGatewayRoutesRequest, ) -> servicemesh_20200111_models.UpdateIstioGatewayRoutesResponse: + """ + @summary Updates a routing rule for a Service Mesh (ASM) gateway. + + @param request: UpdateIstioGatewayRoutesRequest + @return: UpdateIstioGatewayRoutesResponse + """ runtime = util_models.RuntimeOptions() return self.update_istio_gateway_routes_with_options(request, runtime) @@ -6741,6 +9020,12 @@ async def update_istio_gateway_routes_async( self, request: servicemesh_20200111_models.UpdateIstioGatewayRoutesRequest, ) -> servicemesh_20200111_models.UpdateIstioGatewayRoutesResponse: + """ + @summary Updates a routing rule for a Service Mesh (ASM) gateway. + + @param request: UpdateIstioGatewayRoutesRequest + @return: UpdateIstioGatewayRoutesResponse + """ runtime = util_models.RuntimeOptions() return await self.update_istio_gateway_routes_with_options_async(request, runtime) @@ -6749,6 +9034,11 @@ def update_istio_injection_config_with_options( request: servicemesh_20200111_models.UpdateIstioInjectionConfigRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpdateIstioInjectionConfigResponse: + """ + @param request: UpdateIstioInjectionConfigRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateIstioInjectionConfigResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.data_plane_mode): @@ -6787,6 +9077,11 @@ async def update_istio_injection_config_with_options_async( request: servicemesh_20200111_models.UpdateIstioInjectionConfigRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpdateIstioInjectionConfigResponse: + """ + @param request: UpdateIstioInjectionConfigRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateIstioInjectionConfigResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.data_plane_mode): @@ -6824,6 +9119,10 @@ def update_istio_injection_config( self, request: servicemesh_20200111_models.UpdateIstioInjectionConfigRequest, ) -> servicemesh_20200111_models.UpdateIstioInjectionConfigResponse: + """ + @param request: UpdateIstioInjectionConfigRequest + @return: UpdateIstioInjectionConfigResponse + """ runtime = util_models.RuntimeOptions() return self.update_istio_injection_config_with_options(request, runtime) @@ -6831,6 +9130,10 @@ async def update_istio_injection_config_async( self, request: servicemesh_20200111_models.UpdateIstioInjectionConfigRequest, ) -> servicemesh_20200111_models.UpdateIstioInjectionConfigResponse: + """ + @param request: UpdateIstioInjectionConfigRequest + @return: UpdateIstioInjectionConfigResponse + """ runtime = util_models.RuntimeOptions() return await self.update_istio_injection_config_with_options_async(request, runtime) @@ -6839,6 +9142,13 @@ def update_istio_route_additional_status_with_options( request: servicemesh_20200111_models.UpdateIstioRouteAdditionalStatusRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpdateIstioRouteAdditionalStatusResponse: + """ + @summary Updates the information about a routing rule for a Service Mesh (ASM) gateway. + + @param request: UpdateIstioRouteAdditionalStatusRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateIstioRouteAdditionalStatusResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.description): @@ -6879,6 +9189,13 @@ async def update_istio_route_additional_status_with_options_async( request: servicemesh_20200111_models.UpdateIstioRouteAdditionalStatusRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpdateIstioRouteAdditionalStatusResponse: + """ + @summary Updates the information about a routing rule for a Service Mesh (ASM) gateway. + + @param request: UpdateIstioRouteAdditionalStatusRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateIstioRouteAdditionalStatusResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.description): @@ -6918,6 +9235,12 @@ def update_istio_route_additional_status( self, request: servicemesh_20200111_models.UpdateIstioRouteAdditionalStatusRequest, ) -> servicemesh_20200111_models.UpdateIstioRouteAdditionalStatusResponse: + """ + @summary Updates the information about a routing rule for a Service Mesh (ASM) gateway. + + @param request: UpdateIstioRouteAdditionalStatusRequest + @return: UpdateIstioRouteAdditionalStatusResponse + """ runtime = util_models.RuntimeOptions() return self.update_istio_route_additional_status_with_options(request, runtime) @@ -6925,6 +9248,12 @@ async def update_istio_route_additional_status_async( self, request: servicemesh_20200111_models.UpdateIstioRouteAdditionalStatusRequest, ) -> servicemesh_20200111_models.UpdateIstioRouteAdditionalStatusResponse: + """ + @summary Updates the information about a routing rule for a Service Mesh (ASM) gateway. + + @param request: UpdateIstioRouteAdditionalStatusRequest + @return: UpdateIstioRouteAdditionalStatusResponse + """ runtime = util_models.RuntimeOptions() return await self.update_istio_route_additional_status_with_options_async(request, runtime) @@ -6933,6 +9262,13 @@ def update_mesh_craggregation_with_options( request: servicemesh_20200111_models.UpdateMeshCRAggregationRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpdateMeshCRAggregationResponse: + """ + @summary Updates the settings of whether to enable the Kubernetes API on the data plane to access Istio resources. + + @param request: UpdateMeshCRAggregationRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateMeshCRAggregationResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.cpulimit): @@ -6973,6 +9309,13 @@ async def update_mesh_craggregation_with_options_async( request: servicemesh_20200111_models.UpdateMeshCRAggregationRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpdateMeshCRAggregationResponse: + """ + @summary Updates the settings of whether to enable the Kubernetes API on the data plane to access Istio resources. + + @param request: UpdateMeshCRAggregationRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateMeshCRAggregationResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.cpulimit): @@ -7012,6 +9355,12 @@ def update_mesh_craggregation( self, request: servicemesh_20200111_models.UpdateMeshCRAggregationRequest, ) -> servicemesh_20200111_models.UpdateMeshCRAggregationResponse: + """ + @summary Updates the settings of whether to enable the Kubernetes API on the data plane to access Istio resources. + + @param request: UpdateMeshCRAggregationRequest + @return: UpdateMeshCRAggregationResponse + """ runtime = util_models.RuntimeOptions() return self.update_mesh_craggregation_with_options(request, runtime) @@ -7019,6 +9368,12 @@ async def update_mesh_craggregation_async( self, request: servicemesh_20200111_models.UpdateMeshCRAggregationRequest, ) -> servicemesh_20200111_models.UpdateMeshCRAggregationResponse: + """ + @summary Updates the settings of whether to enable the Kubernetes API on the data plane to access Istio resources. + + @param request: UpdateMeshCRAggregationRequest + @return: UpdateMeshCRAggregationResponse + """ runtime = util_models.RuntimeOptions() return await self.update_mesh_craggregation_with_options_async(request, runtime) @@ -7027,12 +9382,21 @@ def update_mesh_feature_with_options( request: servicemesh_20200111_models.UpdateMeshFeatureRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpdateMeshFeatureResponse: + """ + @summary Updates the configuration of a Service Mesh (ASM) instance. + + @param request: UpdateMeshFeatureRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateMeshFeatureResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.access_log_gateway_enabled): query['AccessLogGatewayEnabled'] = request.access_log_gateway_enabled if not UtilClient.is_unset(request.access_log_sidecar_enabled): query['AccessLogSidecarEnabled'] = request.access_log_sidecar_enabled + if not UtilClient.is_unset(request.labels_for_offloaded_workloads): + query['LabelsForOffloadedWorkloads'] = request.labels_for_offloaded_workloads body = {} if not UtilClient.is_unset(request.access_log_enabled): body['AccessLogEnabled'] = request.access_log_enabled @@ -7058,6 +9422,8 @@ def update_mesh_feature_with_options( body['AutoInjectionPolicyEnabled'] = request.auto_injection_policy_enabled if not UtilClient.is_unset(request.craggregation_enabled): body['CRAggregationEnabled'] = request.craggregation_enabled + if not UtilClient.is_unset(request.cert_chain): + body['CertChain'] = request.cert_chain if not UtilClient.is_unset(request.cluster_spec): body['ClusterSpec'] = request.cluster_spec if not UtilClient.is_unset(request.cni_enabled): @@ -7100,6 +9466,12 @@ def update_mesh_feature_with_options( body['ExcludeInboundPorts'] = request.exclude_inbound_ports if not UtilClient.is_unset(request.exclude_outbound_ports): body['ExcludeOutboundPorts'] = request.exclude_outbound_ports + if not UtilClient.is_unset(request.existing_ca_cert): + body['ExistingCaCert'] = request.existing_ca_cert + if not UtilClient.is_unset(request.existing_ca_key): + body['ExistingCaKey'] = request.existing_ca_key + if not UtilClient.is_unset(request.existing_root_ca_cert): + body['ExistingRootCaCert'] = request.existing_root_ca_cert if not UtilClient.is_unset(request.filter_gateway_cluster_config): body['FilterGatewayClusterConfig'] = request.filter_gateway_cluster_config if not UtilClient.is_unset(request.gateway_apienabled): @@ -7170,6 +9542,8 @@ def update_mesh_feature_with_options( body['OpenAgentPolicy'] = request.open_agent_policy if not UtilClient.is_unset(request.outbound_traffic_policy): body['OutboundTrafficPolicy'] = request.outbound_traffic_policy + if not UtilClient.is_unset(request.pilot_enable_quic_listeners): + body['PilotEnableQuicListeners'] = request.pilot_enable_quic_listeners if not UtilClient.is_unset(request.prometheus_url): body['PrometheusUrl'] = request.prometheus_url if not UtilClient.is_unset(request.proxy_init_cpuresource_limit): @@ -7192,6 +9566,8 @@ def update_mesh_feature_with_options( body['ProxyStatsMatcher'] = request.proxy_stats_matcher if not UtilClient.is_unset(request.redis_filter_enabled): body['RedisFilterEnabled'] = request.redis_filter_enabled + if not UtilClient.is_unset(request.smcenabled): + body['SMCEnabled'] = request.smcenabled if not UtilClient.is_unset(request.service_mesh_id): body['ServiceMeshId'] = request.service_mesh_id if not UtilClient.is_unset(request.sidecar_injector_limit_cpu): @@ -7222,6 +9598,8 @@ def update_mesh_feature_with_options( body['TracingOnExtZipkinLimitCPU'] = request.tracing_on_ext_zipkin_limit_cpu if not UtilClient.is_unset(request.tracing_on_ext_zipkin_limit_memory): body['TracingOnExtZipkinLimitMemory'] = request.tracing_on_ext_zipkin_limit_memory + if not UtilClient.is_unset(request.tracing_on_ext_zipkin_replica_count): + body['TracingOnExtZipkinReplicaCount'] = request.tracing_on_ext_zipkin_replica_count if not UtilClient.is_unset(request.tracing_on_ext_zipkin_request_cpu): body['TracingOnExtZipkinRequestCPU'] = request.tracing_on_ext_zipkin_request_cpu if not UtilClient.is_unset(request.tracing_on_ext_zipkin_request_memory): @@ -7253,12 +9631,21 @@ async def update_mesh_feature_with_options_async( request: servicemesh_20200111_models.UpdateMeshFeatureRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpdateMeshFeatureResponse: + """ + @summary Updates the configuration of a Service Mesh (ASM) instance. + + @param request: UpdateMeshFeatureRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateMeshFeatureResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.access_log_gateway_enabled): query['AccessLogGatewayEnabled'] = request.access_log_gateway_enabled if not UtilClient.is_unset(request.access_log_sidecar_enabled): query['AccessLogSidecarEnabled'] = request.access_log_sidecar_enabled + if not UtilClient.is_unset(request.labels_for_offloaded_workloads): + query['LabelsForOffloadedWorkloads'] = request.labels_for_offloaded_workloads body = {} if not UtilClient.is_unset(request.access_log_enabled): body['AccessLogEnabled'] = request.access_log_enabled @@ -7284,6 +9671,8 @@ async def update_mesh_feature_with_options_async( body['AutoInjectionPolicyEnabled'] = request.auto_injection_policy_enabled if not UtilClient.is_unset(request.craggregation_enabled): body['CRAggregationEnabled'] = request.craggregation_enabled + if not UtilClient.is_unset(request.cert_chain): + body['CertChain'] = request.cert_chain if not UtilClient.is_unset(request.cluster_spec): body['ClusterSpec'] = request.cluster_spec if not UtilClient.is_unset(request.cni_enabled): @@ -7326,6 +9715,12 @@ async def update_mesh_feature_with_options_async( body['ExcludeInboundPorts'] = request.exclude_inbound_ports if not UtilClient.is_unset(request.exclude_outbound_ports): body['ExcludeOutboundPorts'] = request.exclude_outbound_ports + if not UtilClient.is_unset(request.existing_ca_cert): + body['ExistingCaCert'] = request.existing_ca_cert + if not UtilClient.is_unset(request.existing_ca_key): + body['ExistingCaKey'] = request.existing_ca_key + if not UtilClient.is_unset(request.existing_root_ca_cert): + body['ExistingRootCaCert'] = request.existing_root_ca_cert if not UtilClient.is_unset(request.filter_gateway_cluster_config): body['FilterGatewayClusterConfig'] = request.filter_gateway_cluster_config if not UtilClient.is_unset(request.gateway_apienabled): @@ -7396,6 +9791,8 @@ async def update_mesh_feature_with_options_async( body['OpenAgentPolicy'] = request.open_agent_policy if not UtilClient.is_unset(request.outbound_traffic_policy): body['OutboundTrafficPolicy'] = request.outbound_traffic_policy + if not UtilClient.is_unset(request.pilot_enable_quic_listeners): + body['PilotEnableQuicListeners'] = request.pilot_enable_quic_listeners if not UtilClient.is_unset(request.prometheus_url): body['PrometheusUrl'] = request.prometheus_url if not UtilClient.is_unset(request.proxy_init_cpuresource_limit): @@ -7418,6 +9815,8 @@ async def update_mesh_feature_with_options_async( body['ProxyStatsMatcher'] = request.proxy_stats_matcher if not UtilClient.is_unset(request.redis_filter_enabled): body['RedisFilterEnabled'] = request.redis_filter_enabled + if not UtilClient.is_unset(request.smcenabled): + body['SMCEnabled'] = request.smcenabled if not UtilClient.is_unset(request.service_mesh_id): body['ServiceMeshId'] = request.service_mesh_id if not UtilClient.is_unset(request.sidecar_injector_limit_cpu): @@ -7448,6 +9847,8 @@ async def update_mesh_feature_with_options_async( body['TracingOnExtZipkinLimitCPU'] = request.tracing_on_ext_zipkin_limit_cpu if not UtilClient.is_unset(request.tracing_on_ext_zipkin_limit_memory): body['TracingOnExtZipkinLimitMemory'] = request.tracing_on_ext_zipkin_limit_memory + if not UtilClient.is_unset(request.tracing_on_ext_zipkin_replica_count): + body['TracingOnExtZipkinReplicaCount'] = request.tracing_on_ext_zipkin_replica_count if not UtilClient.is_unset(request.tracing_on_ext_zipkin_request_cpu): body['TracingOnExtZipkinRequestCPU'] = request.tracing_on_ext_zipkin_request_cpu if not UtilClient.is_unset(request.tracing_on_ext_zipkin_request_memory): @@ -7478,6 +9879,12 @@ def update_mesh_feature( self, request: servicemesh_20200111_models.UpdateMeshFeatureRequest, ) -> servicemesh_20200111_models.UpdateMeshFeatureResponse: + """ + @summary Updates the configuration of a Service Mesh (ASM) instance. + + @param request: UpdateMeshFeatureRequest + @return: UpdateMeshFeatureResponse + """ runtime = util_models.RuntimeOptions() return self.update_mesh_feature_with_options(request, runtime) @@ -7485,15 +9892,140 @@ async def update_mesh_feature_async( self, request: servicemesh_20200111_models.UpdateMeshFeatureRequest, ) -> servicemesh_20200111_models.UpdateMeshFeatureResponse: + """ + @summary Updates the configuration of a Service Mesh (ASM) instance. + + @param request: UpdateMeshFeatureRequest + @return: UpdateMeshFeatureResponse + """ runtime = util_models.RuntimeOptions() return await self.update_mesh_feature_with_options_async(request, runtime) + def update_mesh_multi_cluster_network_with_options( + self, + tmp_req: servicemesh_20200111_models.UpdateMeshMultiClusterNetworkRequest, + runtime: util_models.RuntimeOptions, + ) -> servicemesh_20200111_models.UpdateMeshMultiClusterNetworkResponse: + """ + @summary Updates the network configurations of multiple Kubernetes clusters in a Service Mesh (ASM) instance. + + @param tmp_req: UpdateMeshMultiClusterNetworkRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateMeshMultiClusterNetworkResponse + """ + UtilClient.validate_model(tmp_req) + request = servicemesh_20200111_models.UpdateMeshMultiClusterNetworkShrinkRequest() + OpenApiUtilClient.convert(tmp_req, request) + if not UtilClient.is_unset(tmp_req.multi_cluster_networks): + request.multi_cluster_networks_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.multi_cluster_networks, 'MultiClusterNetworks', 'json') + body = {} + if not UtilClient.is_unset(request.multi_cluster_networks_shrink): + body['MultiClusterNetworks'] = request.multi_cluster_networks_shrink + if not UtilClient.is_unset(request.service_mesh_id): + body['ServiceMeshId'] = request.service_mesh_id + req = open_api_models.OpenApiRequest( + body=OpenApiUtilClient.parse_to_map(body) + ) + params = open_api_models.Params( + action='UpdateMeshMultiClusterNetwork', + version='2020-01-11', + protocol='HTTPS', + pathname='/', + method='POST', + auth_type='AK', + style='RPC', + req_body_type='formData', + body_type='json' + ) + return TeaCore.from_map( + servicemesh_20200111_models.UpdateMeshMultiClusterNetworkResponse(), + self.call_api(params, req, runtime) + ) + + async def update_mesh_multi_cluster_network_with_options_async( + self, + tmp_req: servicemesh_20200111_models.UpdateMeshMultiClusterNetworkRequest, + runtime: util_models.RuntimeOptions, + ) -> servicemesh_20200111_models.UpdateMeshMultiClusterNetworkResponse: + """ + @summary Updates the network configurations of multiple Kubernetes clusters in a Service Mesh (ASM) instance. + + @param tmp_req: UpdateMeshMultiClusterNetworkRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateMeshMultiClusterNetworkResponse + """ + UtilClient.validate_model(tmp_req) + request = servicemesh_20200111_models.UpdateMeshMultiClusterNetworkShrinkRequest() + OpenApiUtilClient.convert(tmp_req, request) + if not UtilClient.is_unset(tmp_req.multi_cluster_networks): + request.multi_cluster_networks_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.multi_cluster_networks, 'MultiClusterNetworks', 'json') + body = {} + if not UtilClient.is_unset(request.multi_cluster_networks_shrink): + body['MultiClusterNetworks'] = request.multi_cluster_networks_shrink + if not UtilClient.is_unset(request.service_mesh_id): + body['ServiceMeshId'] = request.service_mesh_id + req = open_api_models.OpenApiRequest( + body=OpenApiUtilClient.parse_to_map(body) + ) + params = open_api_models.Params( + action='UpdateMeshMultiClusterNetwork', + version='2020-01-11', + protocol='HTTPS', + pathname='/', + method='POST', + auth_type='AK', + style='RPC', + req_body_type='formData', + body_type='json' + ) + return TeaCore.from_map( + servicemesh_20200111_models.UpdateMeshMultiClusterNetworkResponse(), + await self.call_api_async(params, req, runtime) + ) + + def update_mesh_multi_cluster_network( + self, + request: servicemesh_20200111_models.UpdateMeshMultiClusterNetworkRequest, + ) -> servicemesh_20200111_models.UpdateMeshMultiClusterNetworkResponse: + """ + @summary Updates the network configurations of multiple Kubernetes clusters in a Service Mesh (ASM) instance. + + @param request: UpdateMeshMultiClusterNetworkRequest + @return: UpdateMeshMultiClusterNetworkResponse + """ + runtime = util_models.RuntimeOptions() + return self.update_mesh_multi_cluster_network_with_options(request, runtime) + + async def update_mesh_multi_cluster_network_async( + self, + request: servicemesh_20200111_models.UpdateMeshMultiClusterNetworkRequest, + ) -> servicemesh_20200111_models.UpdateMeshMultiClusterNetworkResponse: + """ + @summary Updates the network configurations of multiple Kubernetes clusters in a Service Mesh (ASM) instance. + + @param request: UpdateMeshMultiClusterNetworkRequest + @return: UpdateMeshMultiClusterNetworkResponse + """ + runtime = util_models.RuntimeOptions() + return await self.update_mesh_multi_cluster_network_with_options_async(request, runtime) + def update_namespace_scope_sidecar_config_with_options( self, - request: servicemesh_20200111_models.UpdateNamespaceScopeSidecarConfigRequest, + tmp_req: servicemesh_20200111_models.UpdateNamespaceScopeSidecarConfigRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpdateNamespaceScopeSidecarConfigResponse: - UtilClient.validate_model(request) + """ + @summary Updates the configurations of sidecar proxies at the namespace level. + + @param tmp_req: UpdateNamespaceScopeSidecarConfigRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateNamespaceScopeSidecarConfigResponse + """ + UtilClient.validate_model(tmp_req) + request = servicemesh_20200111_models.UpdateNamespaceScopeSidecarConfigShrinkRequest() + OpenApiUtilClient.convert(tmp_req, request) + if not UtilClient.is_unset(tmp_req.scaled_sidecar_resource): + request.scaled_sidecar_resource_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.scaled_sidecar_resource, 'ScaledSidecarResource', 'json') body = {} if not UtilClient.is_unset(request.concurrency): body['Concurrency'] = request.concurrency @@ -7555,6 +10087,12 @@ def update_namespace_scope_sidecar_config_with_options( body['ReadinessInitialDelaySeconds'] = request.readiness_initial_delay_seconds if not UtilClient.is_unset(request.readiness_period_seconds): body['ReadinessPeriodSeconds'] = request.readiness_period_seconds + if not UtilClient.is_unset(request.runtime_values): + body['RuntimeValues'] = request.runtime_values + if not UtilClient.is_unset(request.smcenabled): + body['SMCEnabled'] = request.smcenabled + if not UtilClient.is_unset(request.scaled_sidecar_resource_shrink): + body['ScaledSidecarResource'] = request.scaled_sidecar_resource_shrink if not UtilClient.is_unset(request.service_mesh_id): body['ServiceMeshId'] = request.service_mesh_id if not UtilClient.is_unset(request.sidecar_proxy_ack_slo_cpuresource_limit): @@ -7598,10 +10136,21 @@ def update_namespace_scope_sidecar_config_with_options( async def update_namespace_scope_sidecar_config_with_options_async( self, - request: servicemesh_20200111_models.UpdateNamespaceScopeSidecarConfigRequest, + tmp_req: servicemesh_20200111_models.UpdateNamespaceScopeSidecarConfigRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpdateNamespaceScopeSidecarConfigResponse: - UtilClient.validate_model(request) + """ + @summary Updates the configurations of sidecar proxies at the namespace level. + + @param tmp_req: UpdateNamespaceScopeSidecarConfigRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateNamespaceScopeSidecarConfigResponse + """ + UtilClient.validate_model(tmp_req) + request = servicemesh_20200111_models.UpdateNamespaceScopeSidecarConfigShrinkRequest() + OpenApiUtilClient.convert(tmp_req, request) + if not UtilClient.is_unset(tmp_req.scaled_sidecar_resource): + request.scaled_sidecar_resource_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.scaled_sidecar_resource, 'ScaledSidecarResource', 'json') body = {} if not UtilClient.is_unset(request.concurrency): body['Concurrency'] = request.concurrency @@ -7663,6 +10212,12 @@ async def update_namespace_scope_sidecar_config_with_options_async( body['ReadinessInitialDelaySeconds'] = request.readiness_initial_delay_seconds if not UtilClient.is_unset(request.readiness_period_seconds): body['ReadinessPeriodSeconds'] = request.readiness_period_seconds + if not UtilClient.is_unset(request.runtime_values): + body['RuntimeValues'] = request.runtime_values + if not UtilClient.is_unset(request.smcenabled): + body['SMCEnabled'] = request.smcenabled + if not UtilClient.is_unset(request.scaled_sidecar_resource_shrink): + body['ScaledSidecarResource'] = request.scaled_sidecar_resource_shrink if not UtilClient.is_unset(request.service_mesh_id): body['ServiceMeshId'] = request.service_mesh_id if not UtilClient.is_unset(request.sidecar_proxy_ack_slo_cpuresource_limit): @@ -7708,6 +10263,12 @@ def update_namespace_scope_sidecar_config( self, request: servicemesh_20200111_models.UpdateNamespaceScopeSidecarConfigRequest, ) -> servicemesh_20200111_models.UpdateNamespaceScopeSidecarConfigResponse: + """ + @summary Updates the configurations of sidecar proxies at the namespace level. + + @param request: UpdateNamespaceScopeSidecarConfigRequest + @return: UpdateNamespaceScopeSidecarConfigResponse + """ runtime = util_models.RuntimeOptions() return self.update_namespace_scope_sidecar_config_with_options(request, runtime) @@ -7715,6 +10276,12 @@ async def update_namespace_scope_sidecar_config_async( self, request: servicemesh_20200111_models.UpdateNamespaceScopeSidecarConfigRequest, ) -> servicemesh_20200111_models.UpdateNamespaceScopeSidecarConfigResponse: + """ + @summary Updates the configurations of sidecar proxies at the namespace level. + + @param request: UpdateNamespaceScopeSidecarConfigRequest + @return: UpdateNamespaceScopeSidecarConfigResponse + """ runtime = util_models.RuntimeOptions() return await self.update_namespace_scope_sidecar_config_with_options_async(request, runtime) @@ -7723,6 +10290,13 @@ def update_swim_lane_with_options( request: servicemesh_20200111_models.UpdateSwimLaneRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpdateSwimLaneResponse: + """ + @summary Updates the information about a lane. + + @param request: UpdateSwimLaneRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateSwimLaneResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.group_name): @@ -7761,6 +10335,13 @@ async def update_swim_lane_with_options_async( request: servicemesh_20200111_models.UpdateSwimLaneRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpdateSwimLaneResponse: + """ + @summary Updates the information about a lane. + + @param request: UpdateSwimLaneRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateSwimLaneResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.group_name): @@ -7798,6 +10379,12 @@ def update_swim_lane( self, request: servicemesh_20200111_models.UpdateSwimLaneRequest, ) -> servicemesh_20200111_models.UpdateSwimLaneResponse: + """ + @summary Updates the information about a lane. + + @param request: UpdateSwimLaneRequest + @return: UpdateSwimLaneResponse + """ runtime = util_models.RuntimeOptions() return self.update_swim_lane_with_options(request, runtime) @@ -7805,6 +10392,12 @@ async def update_swim_lane_async( self, request: servicemesh_20200111_models.UpdateSwimLaneRequest, ) -> servicemesh_20200111_models.UpdateSwimLaneResponse: + """ + @summary Updates the information about a lane. + + @param request: UpdateSwimLaneRequest + @return: UpdateSwimLaneResponse + """ runtime = util_models.RuntimeOptions() return await self.update_swim_lane_with_options_async(request, runtime) @@ -7813,16 +10406,29 @@ def update_swim_lane_group_with_options( request: servicemesh_20200111_models.UpdateSwimLaneGroupRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpdateSwimLaneGroupResponse: + """ + @summary Updates the information of a lane group. + + @param request: UpdateSwimLaneGroupRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateSwimLaneGroupResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.fallback_target): body['FallbackTarget'] = request.fallback_target if not UtilClient.is_unset(request.group_name): body['GroupName'] = request.group_name + if not UtilClient.is_unset(request.ingress_routing_strategy): + body['IngressRoutingStrategy'] = request.ingress_routing_strategy + if not UtilClient.is_unset(request.service_level_fallback_target): + body['ServiceLevelFallbackTarget'] = request.service_level_fallback_target if not UtilClient.is_unset(request.service_mesh_id): body['ServiceMeshId'] = request.service_mesh_id if not UtilClient.is_unset(request.services_list): body['ServicesList'] = request.services_list + if not UtilClient.is_unset(request.weighted_ingress_rule): + body['WeightedIngressRule'] = request.weighted_ingress_rule req = open_api_models.OpenApiRequest( body=OpenApiUtilClient.parse_to_map(body) ) @@ -7847,16 +10453,29 @@ async def update_swim_lane_group_with_options_async( request: servicemesh_20200111_models.UpdateSwimLaneGroupRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpdateSwimLaneGroupResponse: + """ + @summary Updates the information of a lane group. + + @param request: UpdateSwimLaneGroupRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateSwimLaneGroupResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.fallback_target): body['FallbackTarget'] = request.fallback_target if not UtilClient.is_unset(request.group_name): body['GroupName'] = request.group_name + if not UtilClient.is_unset(request.ingress_routing_strategy): + body['IngressRoutingStrategy'] = request.ingress_routing_strategy + if not UtilClient.is_unset(request.service_level_fallback_target): + body['ServiceLevelFallbackTarget'] = request.service_level_fallback_target if not UtilClient.is_unset(request.service_mesh_id): body['ServiceMeshId'] = request.service_mesh_id if not UtilClient.is_unset(request.services_list): body['ServicesList'] = request.services_list + if not UtilClient.is_unset(request.weighted_ingress_rule): + body['WeightedIngressRule'] = request.weighted_ingress_rule req = open_api_models.OpenApiRequest( body=OpenApiUtilClient.parse_to_map(body) ) @@ -7880,6 +10499,12 @@ def update_swim_lane_group( self, request: servicemesh_20200111_models.UpdateSwimLaneGroupRequest, ) -> servicemesh_20200111_models.UpdateSwimLaneGroupResponse: + """ + @summary Updates the information of a lane group. + + @param request: UpdateSwimLaneGroupRequest + @return: UpdateSwimLaneGroupResponse + """ runtime = util_models.RuntimeOptions() return self.update_swim_lane_group_with_options(request, runtime) @@ -7887,6 +10512,12 @@ async def update_swim_lane_group_async( self, request: servicemesh_20200111_models.UpdateSwimLaneGroupRequest, ) -> servicemesh_20200111_models.UpdateSwimLaneGroupResponse: + """ + @summary Updates the information of a lane group. + + @param request: UpdateSwimLaneGroupRequest + @return: UpdateSwimLaneGroupResponse + """ runtime = util_models.RuntimeOptions() return await self.update_swim_lane_group_with_options_async(request, runtime) @@ -7895,6 +10526,13 @@ def update_waypoint_with_options( request: servicemesh_20200111_models.UpdateWaypointRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpdateWaypointResponse: + """ + @summary 更新Waypoint + + @param request: UpdateWaypointRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateWaypointResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.cluster_id): @@ -7951,6 +10589,13 @@ async def update_waypoint_with_options_async( request: servicemesh_20200111_models.UpdateWaypointRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpdateWaypointResponse: + """ + @summary 更新Waypoint + + @param request: UpdateWaypointRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpdateWaypointResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.cluster_id): @@ -8006,6 +10651,12 @@ def update_waypoint( self, request: servicemesh_20200111_models.UpdateWaypointRequest, ) -> servicemesh_20200111_models.UpdateWaypointResponse: + """ + @summary 更新Waypoint + + @param request: UpdateWaypointRequest + @return: UpdateWaypointResponse + """ runtime = util_models.RuntimeOptions() return self.update_waypoint_with_options(request, runtime) @@ -8013,6 +10664,12 @@ async def update_waypoint_async( self, request: servicemesh_20200111_models.UpdateWaypointRequest, ) -> servicemesh_20200111_models.UpdateWaypointResponse: + """ + @summary 更新Waypoint + + @param request: UpdateWaypointRequest + @return: UpdateWaypointResponse + """ runtime = util_models.RuntimeOptions() return await self.update_waypoint_with_options_async(request, runtime) @@ -8021,6 +10678,13 @@ def upgrade_mesh_edition_partially_with_options( request: servicemesh_20200111_models.UpgradeMeshEditionPartiallyRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpgradeMeshEditionPartiallyResponse: + """ + @summary Upgrades a Service Mesh (ASM) instance to Professional Edition that is commercially released. + + @param request: UpgradeMeshEditionPartiallyRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpgradeMeshEditionPartiallyResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.asmgateway_continue): @@ -8059,6 +10723,13 @@ async def upgrade_mesh_edition_partially_with_options_async( request: servicemesh_20200111_models.UpgradeMeshEditionPartiallyRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpgradeMeshEditionPartiallyResponse: + """ + @summary Upgrades a Service Mesh (ASM) instance to Professional Edition that is commercially released. + + @param request: UpgradeMeshEditionPartiallyRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpgradeMeshEditionPartiallyResponse + """ UtilClient.validate_model(request) body = {} if not UtilClient.is_unset(request.asmgateway_continue): @@ -8096,6 +10767,12 @@ def upgrade_mesh_edition_partially( self, request: servicemesh_20200111_models.UpgradeMeshEditionPartiallyRequest, ) -> servicemesh_20200111_models.UpgradeMeshEditionPartiallyResponse: + """ + @summary Upgrades a Service Mesh (ASM) instance to Professional Edition that is commercially released. + + @param request: UpgradeMeshEditionPartiallyRequest + @return: UpgradeMeshEditionPartiallyResponse + """ runtime = util_models.RuntimeOptions() return self.upgrade_mesh_edition_partially_with_options(request, runtime) @@ -8103,6 +10780,12 @@ async def upgrade_mesh_edition_partially_async( self, request: servicemesh_20200111_models.UpgradeMeshEditionPartiallyRequest, ) -> servicemesh_20200111_models.UpgradeMeshEditionPartiallyResponse: + """ + @summary Upgrades a Service Mesh (ASM) instance to Professional Edition that is commercially released. + + @param request: UpgradeMeshEditionPartiallyRequest + @return: UpgradeMeshEditionPartiallyResponse + """ runtime = util_models.RuntimeOptions() return await self.upgrade_mesh_edition_partially_with_options_async(request, runtime) @@ -8111,6 +10794,13 @@ def upgrade_mesh_version_with_options( request: servicemesh_20200111_models.UpgradeMeshVersionRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpgradeMeshVersionResponse: + """ + @summary Updates the version of a Service Mesh (ASM) instance. + + @param request: UpgradeMeshVersionRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpgradeMeshVersionResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.pre_check): @@ -8141,6 +10831,13 @@ async def upgrade_mesh_version_with_options_async( request: servicemesh_20200111_models.UpgradeMeshVersionRequest, runtime: util_models.RuntimeOptions, ) -> servicemesh_20200111_models.UpgradeMeshVersionResponse: + """ + @summary Updates the version of a Service Mesh (ASM) instance. + + @param request: UpgradeMeshVersionRequest + @param runtime: runtime options for this request RuntimeOptions + @return: UpgradeMeshVersionResponse + """ UtilClient.validate_model(request) query = {} if not UtilClient.is_unset(request.pre_check): @@ -8170,6 +10867,12 @@ def upgrade_mesh_version( self, request: servicemesh_20200111_models.UpgradeMeshVersionRequest, ) -> servicemesh_20200111_models.UpgradeMeshVersionResponse: + """ + @summary Updates the version of a Service Mesh (ASM) instance. + + @param request: UpgradeMeshVersionRequest + @return: UpgradeMeshVersionResponse + """ runtime = util_models.RuntimeOptions() return self.upgrade_mesh_version_with_options(request, runtime) @@ -8177,5 +10880,11 @@ async def upgrade_mesh_version_async( self, request: servicemesh_20200111_models.UpgradeMeshVersionRequest, ) -> servicemesh_20200111_models.UpgradeMeshVersionResponse: + """ + @summary Updates the version of a Service Mesh (ASM) instance. + + @param request: UpgradeMeshVersionRequest + @return: UpgradeMeshVersionResponse + """ runtime = util_models.RuntimeOptions() return await self.upgrade_mesh_version_with_options_async(request, runtime) diff --git a/servicemesh-20200111/alibabacloud_servicemesh20200111/models.py b/servicemesh-20200111/alibabacloud_servicemesh20200111/models.py index a009f40ab..7dd72d27f 100644 --- a/servicemesh-20200111/alibabacloud_servicemesh20200111/models.py +++ b/servicemesh-20200111/alibabacloud_servicemesh20200111/models.py @@ -99,15 +99,26 @@ def __init__( self, query_state: str = None, version: str = None, - slbgraceful_drain_support: bool = None, + slbgraceful_drain_supported: bool = None, cluster_id: str = None, message: str = None, + slbgraceful_drain_support: bool = None, ): + # The status of the query. Valid values: + # + # * `time_out`: The query times out. + # * `failed`: The query fails. + # * `Empty string`: The query is successful. self.query_state = query_state + # The CCM version. self.version = version - self.slbgraceful_drain_support = slbgraceful_drain_support + # Indicates whether Classic Load Balancer (CLB) graceful shutdown is supported. + self.slbgraceful_drain_supported = slbgraceful_drain_supported + # The ID of the cluster instance on the data plane. self.cluster_id = cluster_id + # The additional information that is returned when the query fails. This parameter is empty if the query is successful. self.message = message + self.slbgraceful_drain_support = slbgraceful_drain_support def validate(self): pass @@ -122,12 +133,14 @@ def to_map(self): result['QueryState'] = self.query_state if self.version is not None: result['Version'] = self.version - if self.slbgraceful_drain_support is not None: - result['SLBGracefulDrainSupport'] = self.slbgraceful_drain_support + if self.slbgraceful_drain_supported is not None: + result['SLBGracefulDrainSupported'] = self.slbgraceful_drain_supported if self.cluster_id is not None: result['ClusterId'] = self.cluster_id if self.message is not None: result['Message'] = self.message + if self.slbgraceful_drain_support is not None: + result['SLBGracefulDrainSupport'] = self.slbgraceful_drain_support return result def from_map(self, m: dict = None): @@ -136,12 +149,59 @@ def from_map(self, m: dict = None): self.query_state = m.get('QueryState') if m.get('Version') is not None: self.version = m.get('Version') - if m.get('SLBGracefulDrainSupport') is not None: - self.slbgraceful_drain_support = m.get('SLBGracefulDrainSupport') + if m.get('SLBGracefulDrainSupported') is not None: + self.slbgraceful_drain_supported = m.get('SLBGracefulDrainSupported') if m.get('ClusterId') is not None: self.cluster_id = m.get('ClusterId') if m.get('Message') is not None: self.message = m.get('Message') + if m.get('SLBGracefulDrainSupport') is not None: + self.slbgraceful_drain_support = m.get('SLBGracefulDrainSupport') + return self + + +class MultiClusterNetworksValue(TeaModel): + def __init__( + self, + network: str = None, + enable_gateway: bool = None, + custom_gateway_address: str = None, + gateway_name: str = None, + ): + self.network = network + self.enable_gateway = enable_gateway + self.custom_gateway_address = custom_gateway_address + self.gateway_name = gateway_name + + def validate(self): + pass + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.network is not None: + result['Network'] = self.network + if self.enable_gateway is not None: + result['EnableGateway'] = self.enable_gateway + if self.custom_gateway_address is not None: + result['CustomGatewayAddress'] = self.custom_gateway_address + if self.gateway_name is not None: + result['GatewayName'] = self.gateway_name + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('Network') is not None: + self.network = m.get('Network') + if m.get('EnableGateway') is not None: + self.enable_gateway = m.get('EnableGateway') + if m.get('CustomGatewayAddress') is not None: + self.custom_gateway_address = m.get('CustomGatewayAddress') + if m.get('GatewayName') is not None: + self.gateway_name = m.get('GatewayName') return self @@ -198,11 +258,24 @@ class AddClusterIntoServiceMeshRequest(TeaModel): def __init__( self, cluster_id: str = None, + discovery_only: bool = None, ignore_namespace_check: bool = None, + kubeconfig: str = None, service_mesh_id: str = None, ): + # The ID of the cluster to be added. + # + # This parameter is required. self.cluster_id = cluster_id + # Indicates whether to add the cluster to an ASM instance in only service discovery mode. + self.discovery_only = discovery_only + # Specifies whether to check that the cluster you want to add to the ASM instance belongs to the istio-system namespace. This parameter is often used in scenarios where you migrate traffic from self-managed open source Istio to ASM. Valid values: true and false. self.ignore_namespace_check = ignore_namespace_check + # The cluster certificate. + self.kubeconfig = kubeconfig + # The ID of the Service Mesh (ASM) instance. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -216,8 +289,12 @@ def to_map(self): result = dict() if self.cluster_id is not None: result['ClusterId'] = self.cluster_id + if self.discovery_only is not None: + result['DiscoveryOnly'] = self.discovery_only if self.ignore_namespace_check is not None: result['IgnoreNamespaceCheck'] = self.ignore_namespace_check + if self.kubeconfig is not None: + result['Kubeconfig'] = self.kubeconfig if self.service_mesh_id is not None: result['ServiceMeshId'] = self.service_mesh_id return result @@ -226,8 +303,12 @@ def from_map(self, m: dict = None): m = m or dict() if m.get('ClusterId') is not None: self.cluster_id = m.get('ClusterId') + if m.get('DiscoveryOnly') is not None: + self.discovery_only = m.get('DiscoveryOnly') if m.get('IgnoreNamespaceCheck') is not None: self.ignore_namespace_check = m.get('IgnoreNamespaceCheck') + if m.get('Kubeconfig') is not None: + self.kubeconfig = m.get('Kubeconfig') if m.get('ServiceMeshId') is not None: self.service_mesh_id = m.get('ServiceMeshId') return self @@ -240,8 +321,11 @@ def __init__( message: str = None, request_id: str = None, ): + # The returned status code. self.code = code + # The returned message. self.message = message + # The request ID. self.request_id = request_id def validate(self): @@ -284,9 +368,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -323,8 +404,12 @@ def __init__( service_mesh_id: str = None, ): # The ID of the ECS instance. + # + # This parameter is required. self.ecs_id = ecs_id # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -391,9 +476,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -435,6 +517,8 @@ def __init__( # The name of the ASM gateway. self.istio_gateway_name = istio_gateway_name # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -505,9 +589,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -555,6 +636,8 @@ def __init__( # The name of the secret. self.secret_name = secret_name # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -648,9 +731,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -702,20 +782,32 @@ def __init__( # * `false`: does not forcibly use TLS to protect connection security. self.force_https = force_https # The one or more domain names that are exposed by the ASM gateway. Separate multiple domain names with commas (,). + # + # This parameter is required. self.hosts = hosts # The name of the ASM gateway. + # + # This parameter is required. self.istio_gateway_name = istio_gateway_name # The maximum number of ASM gateways to query. self.limit = limit # The name of the namespace. self.namespace = namespace # The port that is provided by the ASM gateway. + # + # This parameter is required. self.number = number # The name of the port. + # + # This parameter is required. self.port_name = port_name # The type of the protocol. Valid values: `HTTP`, `HTTPS`, `GRPC`, `HTTP2`, `MONGO`, `TCP`, and `TLS`. + # + # This parameter is required. self.protocol = protocol # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -814,9 +906,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -1780,6 +1869,8 @@ def __init__( # The priority of the routing rule. The value of this parameter is an integer. A smaller value indicates a higher priority. self.priority = priority # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id # The status of the routing rule. Valid values: # @@ -1849,6 +1940,8 @@ def __init__( # The priority of the routing rule. The value of this parameter is an integer. A smaller value indicates a higher priority. self.priority = priority # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id # The status of the routing rule. Valid values: # @@ -1937,9 +2030,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -2020,6 +2110,7 @@ def __init__( auto_renew: bool = None, auto_renew_period: int = None, craggregation_enabled: bool = None, + cert_chain: str = None, charge_type: str = None, cluster_domain: str = None, cluster_spec: str = None, @@ -2032,6 +2123,7 @@ def __init__( dnsproxying_enabled: bool = None, dubbo_filter_enabled: bool = None, edition: str = None, + enable_acmg: bool = None, enable_ambient: bool = None, enable_audit: bool = None, enable_crhistory: bool = None, @@ -2066,6 +2158,7 @@ def __init__( open_agent_policy: bool = None, period: int = None, pilot_load_balancer_spec: str = None, + playground_scene: str = None, prometheus_url: str = None, proxy_limit_cpu: str = None, proxy_limit_memory: str = None, @@ -2106,11 +2199,11 @@ def __init__( # # Default value: `false`. self.access_log_service_enabled = access_log_service_enabled - # The endpoint of Envoy\"s gRPC ALS. + # The endpoint of Envoy\\"s gRPC ALS. self.access_log_service_host = access_log_service_host - # The port of Envoy\"s gRPC ALS. + # The port of Envoy\\"s gRPC ALS. self.access_log_service_port = access_log_service_port - # The type of the CLB instance that is bound to Istio Pilot. Valid values: `slb.s1.small`, `slb.s2.small`, `slb.s2.medium`, `slb.s3.small`, `slb.s3.medium`, and `slb.s3.large`. + # The type of the Classic Load Balancer (CLB) instance that is bound to the API server. Valid values: `slb.s1.small`, `slb.s2.small`, `slb.s2.medium`, `slb.s3.small`, `slb.s3.medium`, and `slb.s3.large`. self.api_server_load_balancer_spec = api_server_load_balancer_spec # Specifies whether to expose the API server to the Internet. Valid values: # @@ -2127,11 +2220,10 @@ def __init__( self.audit_project = audit_project # Specifies whether to enable auto-renewal for the CLB instance if the CLB instance uses the subscription billing method. Valid values: # - # - true - # - # - false + # * `true` + # * `false` self.auto_renew = auto_renew - # The auto-renewal period of the CLB instance. This parameter is valid only if the `ChargeType` parameter is set to `PrePay`. If the original subscription period of the CLB instance is less than one year, the value of this parameter indicates the number of months for auto-renewal. If the original subscription period of the CLB instance is more than one year, the value of this parameter indicates the number of years for auto-renewal. + # The auto-renewal period of the subscription CLB instance. This parameter is valid only if `ChargeType` is set to `PrePay`. If the original subscription period of the CLB instance is less than one year, the value of this parameter indicates the number of months for auto-renewal. If the original subscription period of the CLB instance is more than one year, the value of this parameter indicates the number of years for auto-renewal. self.auto_renew_period = auto_renew_period # Specifies whether to allow the Kubernetes API of clusters on the data plane to access Istio resources. The version of the ASM instance must be V1.9.7.93 or later. Valid values: # @@ -2140,11 +2232,14 @@ def __init__( # # Default value: `false`. self.craggregation_enabled = craggregation_enabled + # The certificate chain from the CA certificate to the root certificate. At least two certificates are included in the chain. + self.cert_chain = cert_chain # The billing method of the CLB instance. Valid values: # - # * `PayOnDemand`: pay-as-you-go. - # * `PrePay`: subscription. + # * `PayOnDemand`: pay-as-you-go + # * `PrePay`: subscription self.charge_type = charge_type + # ASM cluster domain. self.cluster_domain = cluster_domain # The edition of the ASM instance. Valid values: # @@ -2202,6 +2297,8 @@ def __init__( self.dubbo_filter_enabled = dubbo_filter_enabled # The edition of the ASM instance. self.edition = edition + # Specifies whether to enable the ACMG mode for the ASM instance. + self.enable_acmg = enable_acmg # Specifies whether to enable the Ambient Mesh mode for the ASM instance. self.enable_ambient = enable_ambient # Specifies whether to enable the mesh audit feature. To enable this feature, make sure that you have activated [Log Service](https://sls.console.aliyun.com/). Valid values: @@ -2237,7 +2334,7 @@ def __init__( self.existing_ca_key = existing_ca_key # The type of the existing CA certificate. Valid values: # - # * 1: Self-signed certificate generated by istiod. The certificate corresponds to the secret named istio-ca-secret in the istio-system namespace. If you use this type of certificate, you must set the `ExistingCaCert` and `ExsitingCaKey` parameters. + # * 1: Self-signed certificate generated by istiod. The certificate corresponds to the secret named istio-ca-secret in the istio-system namespace. If you use this type of certificate, you must set the `ExistingCaCert` and `ExistingCaKey` parameters. # * 2: Administrator-specified certificate. For more information, see [plugin ca cert](https://istio.io/latest/docs/tasks/security/cert-management/plugin-ca-cert/). In most cases, the certificate corresponds to the secret named cacerts in the istio-system namespace. If you use this type of certificate, you must set the `ExisingRootCaCert` and `ExisingRootCaKey` parameters. self.existing_ca_type = existing_ca_type # The existing root certificate, which is encoded in Base64. @@ -2331,10 +2428,14 @@ def __init__( # # Default value: `false`. self.open_agent_policy = open_agent_policy - # The auto-renewal period of the CLB instance. This parameter is valid only if `ChargeType` is set to `PrePaid`. The value of this parameter indicates the purchased month of the CLB instance when the subscription billing method is used. For example, if the subscription period is one year, set this parameter to 12. + # The subscription period of the CLB instance. This parameter is valid only if `ChargeType` is set to `PrePay`. The value of this parameter indicates the subscription period of the CLB instance. Unit: month. For example, if the subscription period is one year, set this parameter to 12. self.period = period # The type of the CLB instance that is bound to Istio Pilot. Valid values: `slb.s1.small`, `slb.s2.small`, `slb.s2.medium`, `slb.s3.small`, `slb.s3.medium`, and `slb.s3.large`. self.pilot_load_balancer_spec = pilot_load_balancer_spec + # The playground scenario. If you specify this parameter, an ASM playground instance is created. Valid values: + # + # * ewmaLb: the exponentially weighted moving average (EWMA) load balancing algorithm. + self.playground_scene = playground_scene # The endpoint of the custom Prometheus instance. self.prometheus_url = prometheus_url # The maximum number of CPU cores that are available to the proxy container. @@ -2353,6 +2454,8 @@ def __init__( # Default value: `false`. self.redis_filter_enabled = redis_filter_enabled # The ID of the region in which the ASM instance resides. + # + # This parameter is required. self.region_id = region_id # Tag of the ASM instance. A tag contains the following information: # @@ -2385,8 +2488,12 @@ def __init__( # Specifies whether to use an existing CA certificate and private key. self.use_existing_ca = use_existing_ca # The ID of the vSwitch to which the ASM instance is connected. + # + # This parameter is required. self.v_switches = v_switches # The ID of the virtual private cloud (VPC) in which the ASM instance resides. + # + # This parameter is required. self.vpc_id = vpc_id # Specifies whether to enable WebAssembly Filter. Valid values: # @@ -2434,6 +2541,8 @@ def to_map(self): result['AutoRenewPeriod'] = self.auto_renew_period if self.craggregation_enabled is not None: result['CRAggregationEnabled'] = self.craggregation_enabled + if self.cert_chain is not None: + result['CertChain'] = self.cert_chain if self.charge_type is not None: result['ChargeType'] = self.charge_type if self.cluster_domain is not None: @@ -2458,6 +2567,8 @@ def to_map(self): result['DubboFilterEnabled'] = self.dubbo_filter_enabled if self.edition is not None: result['Edition'] = self.edition + if self.enable_acmg is not None: + result['EnableACMG'] = self.enable_acmg if self.enable_ambient is not None: result['EnableAmbient'] = self.enable_ambient if self.enable_audit is not None: @@ -2526,6 +2637,8 @@ def to_map(self): result['Period'] = self.period if self.pilot_load_balancer_spec is not None: result['PilotLoadBalancerSpec'] = self.pilot_load_balancer_spec + if self.playground_scene is not None: + result['PlaygroundScene'] = self.playground_scene if self.prometheus_url is not None: result['PrometheusUrl'] = self.prometheus_url if self.proxy_limit_cpu is not None: @@ -2590,6 +2703,8 @@ def from_map(self, m: dict = None): self.auto_renew_period = m.get('AutoRenewPeriod') if m.get('CRAggregationEnabled') is not None: self.craggregation_enabled = m.get('CRAggregationEnabled') + if m.get('CertChain') is not None: + self.cert_chain = m.get('CertChain') if m.get('ChargeType') is not None: self.charge_type = m.get('ChargeType') if m.get('ClusterDomain') is not None: @@ -2614,6 +2729,8 @@ def from_map(self, m: dict = None): self.dubbo_filter_enabled = m.get('DubboFilterEnabled') if m.get('Edition') is not None: self.edition = m.get('Edition') + if m.get('EnableACMG') is not None: + self.enable_acmg = m.get('EnableACMG') if m.get('EnableAmbient') is not None: self.enable_ambient = m.get('EnableAmbient') if m.get('EnableAudit') is not None: @@ -2682,6 +2799,8 @@ def from_map(self, m: dict = None): self.period = m.get('Period') if m.get('PilotLoadBalancerSpec') is not None: self.pilot_load_balancer_spec = m.get('PilotLoadBalancerSpec') + if m.get('PlaygroundScene') is not None: + self.playground_scene = m.get('PlaygroundScene') if m.get('PrometheusUrl') is not None: self.prometheus_url = m.get('PrometheusUrl') if m.get('ProxyLimitCPU') is not None: @@ -2767,9 +2886,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -2816,6 +2932,8 @@ def __init__( # The label value of the associated service workload.`` self.label_selector_value = label_selector_value # The ID of the Service Mesh (ASM) instance. + # + # This parameter is required. self.service_mesh_id = service_mesh_id # The list of services associated with the lane. The value is a JSON array. The format of a single service is `$Cluster name/$Cluster ID/$Namespace/$Service name`. self.services_list = services_list @@ -2902,9 +3020,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -2939,6 +3054,7 @@ def __init__( self, group_name: str = None, ingress_gateway_name: str = None, + ingress_gateway_namespace: str = None, ingress_type: str = None, is_permissive: bool = None, route_header: str = None, @@ -2947,17 +3063,31 @@ def __init__( trace_header: str = None, ): # The name of the lane group. + # + # This parameter is required. self.group_name = group_name # The name of the ingress gateway. + # + # This parameter is required. self.ingress_gateway_name = ingress_gateway_name + self.ingress_gateway_namespace = ingress_gateway_namespace # The type of the gateway for ingress traffic. Only ASM ingress gateways are supported. + # + # This parameter is required. self.ingress_type = ingress_type + # Specifies whether the permissive mode is enabled for the lane group to be created. self.is_permissive = is_permissive + # The request routing header of the lane group if you plan to create a lane group in permissive mode. This parameter must be specified when IsPermissive is set to true. self.route_header = route_header # The ID of the Alibaba Cloud Service Mesh (ASM) instance. + # + # This parameter is required. self.service_mesh_id = service_mesh_id # A list of services associated with the lane group. The value is a JSON array. The format of a service is `$Cluster name/$Cluster ID/$Namespace/$Service name`. + # + # This parameter is required. self.services_list = services_list + # The end-to-end (E2E) pass-through request header of the lane group if you plan to create a lane group in permissive mode. This parameter must be specified when IsPermissive is set to true. self.trace_header = trace_header def validate(self): @@ -2973,6 +3103,8 @@ def to_map(self): result['GroupName'] = self.group_name if self.ingress_gateway_name is not None: result['IngressGatewayName'] = self.ingress_gateway_name + if self.ingress_gateway_namespace is not None: + result['IngressGatewayNamespace'] = self.ingress_gateway_namespace if self.ingress_type is not None: result['IngressType'] = self.ingress_type if self.is_permissive is not None: @@ -2993,6 +3125,8 @@ def from_map(self, m: dict = None): self.group_name = m.get('GroupName') if m.get('IngressGatewayName') is not None: self.ingress_gateway_name = m.get('IngressGatewayName') + if m.get('IngressGatewayNamespace') is not None: + self.ingress_gateway_namespace = m.get('IngressGatewayNamespace') if m.get('IngressType') is not None: self.ingress_type = m.get('IngressType') if m.get('IsPermissive') is not None: @@ -3048,9 +3182,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -3100,6 +3231,8 @@ def __init__( service_mesh_id: str = None, ): # The ID of the cluster on the data plane. + # + # This parameter is required. self.cluster_id = cluster_id # Specifies whether to enable Horizontal Pod Autoscaling (HPA). self.hpaenabled = hpaenabled @@ -3116,6 +3249,8 @@ def __init__( # The maximum size of the memory that is available to the waypoint proxy pods. self.limit_memory = limit_memory # The namespace. + # + # This parameter is required. self.namespace = namespace # Specifies whether to deploy waypoint proxy pods based on Elastic Container Instance (ECI). self.prefer_eci = prefer_eci @@ -3128,6 +3263,8 @@ def __init__( # The service account on which the waypoint proxy takes effect. If you do not specify this parameter, the waypoint proxy takes effect for the entire namespace. self.service_account = service_account # The Service Mesh (ASM) instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -3246,9 +3383,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -3290,6 +3424,8 @@ def __init__( # The name of the routing rule. self.route_name = route_name # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -3360,9 +3496,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -3404,6 +3537,8 @@ def __init__( # The name of the secret. self.secret_name = secret_name # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -3489,9 +3624,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -3542,6 +3674,8 @@ def __init__( # The port name. self.port_name = port_name # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -3624,9 +3758,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -3673,6 +3804,8 @@ def __init__( # A JSON string that can be parsed into a string array. You can use this JSON string to specify the IDs of the resource instances that need to be retained when the ASM instance is deleted. self.retain_resources = retain_resources # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -3743,9 +3876,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -3785,6 +3915,8 @@ def __init__( # The name of the lane group. self.group_name = group_name # The ID of the Service Mesh (ASM) instance. + # + # This parameter is required. self.service_mesh_id = service_mesh_id # The name of the lane. self.swim_lane_name = swim_lane_name @@ -3857,9 +3989,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -3898,6 +4027,8 @@ def __init__( # The name of the lane group. self.group_name = group_name # The ID of the Service Mesh (ASM) instance. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -3964,9 +4095,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -4005,12 +4133,20 @@ def __init__( service_mesh_id: str = None, ): # The ID of the cluster on the data plane. + # + # This parameter is required. self.cluster_id = cluster_id - # Waypoint名称。 + # Waypoint name. + # + # This parameter is required. self.name = name # The namespace. + # + # This parameter is required. self.namespace = namespace # The Service Mesh (ASM) instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -4085,9 +4221,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -4127,6 +4260,8 @@ def __init__( # The name of the ASM gateway. self.asmgateway_name = asmgateway_name # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id # The namespace in which the services reside. self.service_namespace = service_namespace @@ -4249,9 +4384,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -4286,7 +4418,9 @@ def __init__( self, service_mesh_id: str = None, ): - # The versions of the CCM component in all clusters on the data plane. + # The ID of the Service Mesh (ASM) instance. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -4315,8 +4449,9 @@ def __init__( ccmversions: Dict[str, CCMVersionsValue] = None, request_id: str = None, ): - # The ID of the request. + # The versions of the CCM component in all clusters on the data plane. self.ccmversions = ccmversions + # The request ID. self.request_id = request_id def validate(self): @@ -4363,9 +4498,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -4400,7 +4532,7 @@ def __init__( self, service_mesh_id: str = None, ): - # The ASM instance ID. + # The ID of the ASM instance. self.service_mesh_id = service_mesh_id def validate(self): @@ -4470,9 +4602,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -4506,11 +4635,18 @@ class DescribeClusterGrafanaRequest(TeaModel): def __init__( self, k_8s_cluster_id: str = None, + re_add_prometheus_integration: str = None, service_mesh_id: str = None, ): # The ID of the cluster on the data plane. + # + # This parameter is required. self.k_8s_cluster_id = k_8s_cluster_id + # Specifies whether to integrate Managed Service for Prometheus for the cluster on the data plane. + self.re_add_prometheus_integration = re_add_prometheus_integration # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -4524,6 +4660,8 @@ def to_map(self): result = dict() if self.k_8s_cluster_id is not None: result['K8sClusterId'] = self.k_8s_cluster_id + if self.re_add_prometheus_integration is not None: + result['ReAddPrometheusIntegration'] = self.re_add_prometheus_integration if self.service_mesh_id is not None: result['ServiceMeshId'] = self.service_mesh_id return result @@ -4532,6 +4670,8 @@ def from_map(self, m: dict = None): m = m or dict() if m.get('K8sClusterId') is not None: self.k_8s_cluster_id = m.get('K8sClusterId') + if m.get('ReAddPrometheusIntegration') is not None: + self.re_add_prometheus_integration = m.get('ReAddPrometheusIntegration') if m.get('ServiceMeshId') is not None: self.service_mesh_id = m.get('ServiceMeshId') return self @@ -4545,7 +4685,7 @@ def __init__( ): # The title of the Grafana dashboard. self.title = title - # The endpoint of a Grafana dashboard. + # The endpoint of the Grafana dashboard. self.url = url def validate(self): @@ -4578,7 +4718,7 @@ def __init__( dashboards: List[DescribeClusterGrafanaResponseBodyDashboards] = None, request_id: str = None, ): - # The information of Grafana dashboards. + # The information about Grafana dashboards. self.dashboards = dashboards # The request ID. self.request_id = request_id @@ -4627,9 +4767,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -4748,9 +4885,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -4786,6 +4920,8 @@ def __init__( service_mesh_id: str = None, ): # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -4843,6 +4979,62 @@ def from_map(self, m: dict = None): return self +class DescribeClustersInServiceMeshResponseBodyClustersGuestClusterConfigSMC(TeaModel): + def __init__( + self, + enabled: bool = None, + ): + self.enabled = enabled + + def validate(self): + pass + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.enabled is not None: + result['Enabled'] = self.enabled + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('Enabled') is not None: + self.enabled = m.get('Enabled') + return self + + +class DescribeClustersInServiceMeshResponseBodyClustersGuestClusterConfig(TeaModel): + def __init__( + self, + smc: DescribeClustersInServiceMeshResponseBodyClustersGuestClusterConfigSMC = None, + ): + self.smc = smc + + def validate(self): + if self.smc: + self.smc.validate() + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.smc is not None: + result['SMC'] = self.smc.to_map() + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('SMC') is not None: + temp_model = DescribeClustersInServiceMeshResponseBodyClustersGuestClusterConfigSMC() + self.smc = temp_model.from_map(m['SMC']) + return self + + class DescribeClustersInServiceMeshResponseBodyClusters(TeaModel): def __init__( self, @@ -4852,6 +5044,7 @@ def __init__( cluster_type: str = None, creation_time: str = None, error_message: str = None, + guest_cluster_config: DescribeClustersInServiceMeshResponseBodyClustersGuestClusterConfig = None, logtail_installed_state: str = None, name: str = None, region_id: str = None, @@ -4873,11 +5066,12 @@ def __init__( self.creation_time = creation_time # The error message. self.error_message = error_message + self.guest_cluster_config = guest_cluster_config # Indicates whether the Logtail component is installed in the cluster. Valid values: # # * `logtail_installed`: The Logtail component is installed. # - # \-`logtail_uninstalled`: The Logtail component is not installed. + # \\-`logtail_uninstalled`: The Logtail component is not installed. # # * `logtail_state_get_error`: The Logtail component failed to be installed. self.logtail_installed_state = logtail_installed_state @@ -4901,6 +5095,8 @@ def validate(self): for k in self.access_log_dashboards: if k: k.validate() + if self.guest_cluster_config: + self.guest_cluster_config.validate() def to_map(self): _map = super().to_map() @@ -4922,6 +5118,8 @@ def to_map(self): result['CreationTime'] = self.creation_time if self.error_message is not None: result['ErrorMessage'] = self.error_message + if self.guest_cluster_config is not None: + result['GuestClusterConfig'] = self.guest_cluster_config.to_map() if self.logtail_installed_state is not None: result['LogtailInstalledState'] = self.logtail_installed_state if self.name is not None: @@ -4957,6 +5155,9 @@ def from_map(self, m: dict = None): self.creation_time = m.get('CreationTime') if m.get('ErrorMessage') is not None: self.error_message = m.get('ErrorMessage') + if m.get('GuestClusterConfig') is not None: + temp_model = DescribeClustersInServiceMeshResponseBodyClustersGuestClusterConfig() + self.guest_cluster_config = temp_model.from_map(m['GuestClusterConfig']) if m.get('LogtailInstalledState') is not None: self.logtail_installed_state = m.get('LogtailInstalledState') if m.get('Name') is not None: @@ -5031,9 +5232,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -5069,7 +5267,9 @@ def __init__( istio_version: str = None, kind: str = None, ): - # The Istio version used in ASM. + # The version of Istio used by the ASM instance. + # + # This parameter is required. self.istio_version = istio_version # The type of Istio resource whose common YAML templates you want to query. Valid values: # @@ -5084,6 +5284,8 @@ def __init__( # * Gateway # * DestinationRule # * VirtualService + # + # This parameter is required. self.kind = kind def validate(self): @@ -5207,9 +5409,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -5450,9 +5649,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -5491,6 +5687,8 @@ def __init__( # The name of the ASM gateway. self.istio_gateway_name = istio_gateway_name # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -5646,9 +5844,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -5684,6 +5879,8 @@ def __init__( k_8s_cluster_id: str = None, ): # The ID of the cluster on the data plane. + # + # This parameter is required. self.k_8s_cluster_id = k_8s_cluster_id def validate(self): @@ -5803,9 +6000,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -5843,8 +6037,12 @@ def __init__( show_ns_labels: bool = None, ): # The ID of the Kubernetes cluster that is added to the ASM instance. + # + # This parameter is required. self.guest_cluster_id = guest_cluster_id # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id # Specifies whether to return the labels of the namespaces. self.show_ns_labels = show_ns_labels @@ -5931,9 +6129,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -5971,10 +6166,16 @@ def __init__( service_mesh_id: str = None, ): # The ID of the Kubernetes cluster that is added to the ASM instance. + # + # This parameter is required. self.guest_cluster_id = guest_cluster_id # The namespace. + # + # This parameter is required. self.namespace = namespace # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -6052,9 +6253,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -6094,6 +6292,8 @@ def __init__( # The name of the ASM gateway. self.asmgateway_name = asmgateway_name # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id # The namespace in which the services reside. self.service_namespace = service_namespace @@ -6308,9 +6508,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -6355,6 +6552,8 @@ def __init__( # The namespace in which the ASM gateway resides. self.namespace = namespace # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -6514,9 +6713,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -6558,6 +6754,8 @@ def __init__( # The name of the routing rule. self.route_name = route_name # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -7565,6 +7763,7 @@ def __init__( route_name: str = None, route_type: str = None, ): + # Domain list. self.domains = domains # The advanced settings for routing HTTP traffic. self.httpadvanced_options = httpadvanced_options @@ -7724,9 +7923,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -7765,6 +7961,8 @@ def __init__( # The name of the ASM gateway. self.istio_gateway_name = istio_gateway_name # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -7934,9 +8132,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -7966,22 +8161,13 @@ def from_map(self, m: dict = None): return self -class DescribeMetadataResponseBodyMetaDataProEdition(TeaModel): +class DescribeMeshMultiClusterNetworkRequest(TeaModel): def __init__( self, - current_version: str = None, - version_crds: List[Dict[str, Any]] = None, - version_registry: List[Dict[str, Any]] = None, - versions: List[str] = None, + service_mesh_id: str = None, ): - # The current version. - self.current_version = current_version - # The CRDs of all ASM versions. - self.version_crds = version_crds - # The Istio versions corresponding to the ASM versions. - self.version_registry = version_registry - # The list of ASM versions. - self.versions = versions + # This parameter is required. + self.service_mesh_id = service_mesh_id def validate(self): pass @@ -7992,55 +8178,32 @@ def to_map(self): return _map result = dict() - if self.current_version is not None: - result['CurrentVersion'] = self.current_version - if self.version_crds is not None: - result['VersionCrds'] = self.version_crds - if self.version_registry is not None: - result['VersionRegistry'] = self.version_registry - if self.versions is not None: - result['Versions'] = self.versions + if self.service_mesh_id is not None: + result['ServiceMeshId'] = self.service_mesh_id return result def from_map(self, m: dict = None): m = m or dict() - if m.get('CurrentVersion') is not None: - self.current_version = m.get('CurrentVersion') - if m.get('VersionCrds') is not None: - self.version_crds = m.get('VersionCrds') - if m.get('VersionRegistry') is not None: - self.version_registry = m.get('VersionRegistry') - if m.get('Versions') is not None: - self.versions = m.get('Versions') + if m.get('ServiceMeshId') is not None: + self.service_mesh_id = m.get('ServiceMeshId') return self -class DescribeMetadataResponseBodyMetaData(TeaModel): +class DescribeMeshMultiClusterNetworkResponseBody(TeaModel): def __init__( self, - current_version: str = None, - pro_edition: DescribeMetadataResponseBodyMetaDataProEdition = None, - regions: List[str] = None, - version_crds: List[Dict[str, Any]] = None, - version_registry: List[Dict[str, Any]] = None, - versions: List[str] = None, + multi_cluster_networks: Dict[str, MultiClusterNetworksValue] = None, + request_id: str = None, ): - # The current version. - self.current_version = current_version - # The version information about ASM of a commercial edition. - self.pro_edition = pro_edition - # The regions where ASM instances can be created. - self.regions = regions - # The custom resource definitions (CRDs) of all ASM versions. - self.version_crds = version_crds - # The Istio versions corresponding to the ASM versions. - self.version_registry = version_registry - # The list of ASM versions. - self.versions = versions + self.multi_cluster_networks = multi_cluster_networks + # Id of the request + self.request_id = request_id def validate(self): - if self.pro_edition: - self.pro_edition.validate() + if self.multi_cluster_networks: + for v in self.multi_cluster_networks.values(): + if v: + v.validate() def to_map(self): _map = super().to_map() @@ -8048,45 +8211,254 @@ def to_map(self): return _map result = dict() - if self.current_version is not None: - result['CurrentVersion'] = self.current_version - if self.pro_edition is not None: - result['ProEdition'] = self.pro_edition.to_map() - if self.regions is not None: - result['Regions'] = self.regions - if self.version_crds is not None: - result['VersionCrds'] = self.version_crds - if self.version_registry is not None: - result['VersionRegistry'] = self.version_registry - if self.versions is not None: - result['Versions'] = self.versions + result['MultiClusterNetworks'] = {} + if self.multi_cluster_networks is not None: + for k, v in self.multi_cluster_networks.items(): + result['MultiClusterNetworks'][k] = v.to_map() + if self.request_id is not None: + result['RequestId'] = self.request_id return result def from_map(self, m: dict = None): m = m or dict() - if m.get('CurrentVersion') is not None: - self.current_version = m.get('CurrentVersion') - if m.get('ProEdition') is not None: - temp_model = DescribeMetadataResponseBodyMetaDataProEdition() - self.pro_edition = temp_model.from_map(m['ProEdition']) - if m.get('Regions') is not None: - self.regions = m.get('Regions') - if m.get('VersionCrds') is not None: - self.version_crds = m.get('VersionCrds') - if m.get('VersionRegistry') is not None: - self.version_registry = m.get('VersionRegistry') - if m.get('Versions') is not None: - self.versions = m.get('Versions') + self.multi_cluster_networks = {} + if m.get('MultiClusterNetworks') is not None: + for k, v in m.get('MultiClusterNetworks').items(): + temp_model = MultiClusterNetworksValue() + self.multi_cluster_networks[k] = temp_model.from_map(v) + if m.get('RequestId') is not None: + self.request_id = m.get('RequestId') return self -class DescribeMetadataResponseBody(TeaModel): +class DescribeMeshMultiClusterNetworkResponse(TeaModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + body: DescribeMeshMultiClusterNetworkResponseBody = None, + ): + self.headers = headers + self.status_code = status_code + self.body = body + + def validate(self): + if self.body: + self.body.validate() + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.headers is not None: + result['headers'] = self.headers + if self.status_code is not None: + result['statusCode'] = self.status_code + if self.body is not None: + result['body'] = self.body.to_map() + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + if m.get('body') is not None: + temp_model = DescribeMeshMultiClusterNetworkResponseBody() + self.body = temp_model.from_map(m['body']) + return self + + +class DescribeMetadataResponseBodyMetaDataPlaygroundScene(TeaModel): + def __init__( + self, + observability: List[str] = None, + other: List[str] = None, + security: List[str] = None, + traffic_management: List[str] = None, + ): + # The observability scenarios. + self.observability = observability + # Other scenarios. + self.other = other + # The security scenarios. + self.security = security + # The traffic management scenarios. + self.traffic_management = traffic_management + + def validate(self): + pass + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.observability is not None: + result['observability'] = self.observability + if self.other is not None: + result['other'] = self.other + if self.security is not None: + result['security'] = self.security + if self.traffic_management is not None: + result['trafficManagement'] = self.traffic_management + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('observability') is not None: + self.observability = m.get('observability') + if m.get('other') is not None: + self.other = m.get('other') + if m.get('security') is not None: + self.security = m.get('security') + if m.get('trafficManagement') is not None: + self.traffic_management = m.get('trafficManagement') + return self + + +class DescribeMetadataResponseBodyMetaDataProEdition(TeaModel): + def __init__( + self, + current_version: str = None, + version_crds: List[Dict[str, Any]] = None, + version_registry: List[Dict[str, Any]] = None, + versions: List[str] = None, + ): + # The current version. + self.current_version = current_version + # The CRDs of all ASM versions. + self.version_crds = version_crds + # The Istio versions corresponding to the ASM versions. + self.version_registry = version_registry + # The list of ASM versions. + self.versions = versions + + def validate(self): + pass + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.current_version is not None: + result['CurrentVersion'] = self.current_version + if self.version_crds is not None: + result['VersionCrds'] = self.version_crds + if self.version_registry is not None: + result['VersionRegistry'] = self.version_registry + if self.versions is not None: + result['Versions'] = self.versions + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('CurrentVersion') is not None: + self.current_version = m.get('CurrentVersion') + if m.get('VersionCrds') is not None: + self.version_crds = m.get('VersionCrds') + if m.get('VersionRegistry') is not None: + self.version_registry = m.get('VersionRegistry') + if m.get('Versions') is not None: + self.versions = m.get('Versions') + return self + + +class DescribeMetadataResponseBodyMetaData(TeaModel): + def __init__( + self, + compatibility_info_list: List[Dict[str, Any]] = None, + current_version: str = None, + playground_scene: DescribeMetadataResponseBodyMetaDataPlaygroundScene = None, + pro_edition: DescribeMetadataResponseBodyMetaDataProEdition = None, + regions: List[str] = None, + version_crds: List[Dict[str, Any]] = None, + version_registry: List[Dict[str, Any]] = None, + versions: List[str] = None, + ): + # The Kubernetes versions compatible with ASM. + self.compatibility_info_list = compatibility_info_list + # The current version. + self.current_version = current_version + # The data of the ASM Playground. + self.playground_scene = playground_scene + # The version information about ASM of a commercial edition. + self.pro_edition = pro_edition + # The regions where ASM instances can be created. + self.regions = regions + # The custom resource definitions (CRDs) of all ASM versions. + self.version_crds = version_crds + # The Istio versions corresponding to the ASM versions. + self.version_registry = version_registry + # The list of ASM versions. + self.versions = versions + + def validate(self): + if self.playground_scene: + self.playground_scene.validate() + if self.pro_edition: + self.pro_edition.validate() + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.compatibility_info_list is not None: + result['CompatibilityInfoList'] = self.compatibility_info_list + if self.current_version is not None: + result['CurrentVersion'] = self.current_version + if self.playground_scene is not None: + result['PlaygroundScene'] = self.playground_scene.to_map() + if self.pro_edition is not None: + result['ProEdition'] = self.pro_edition.to_map() + if self.regions is not None: + result['Regions'] = self.regions + if self.version_crds is not None: + result['VersionCrds'] = self.version_crds + if self.version_registry is not None: + result['VersionRegistry'] = self.version_registry + if self.versions is not None: + result['Versions'] = self.versions + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('CompatibilityInfoList') is not None: + self.compatibility_info_list = m.get('CompatibilityInfoList') + if m.get('CurrentVersion') is not None: + self.current_version = m.get('CurrentVersion') + if m.get('PlaygroundScene') is not None: + temp_model = DescribeMetadataResponseBodyMetaDataPlaygroundScene() + self.playground_scene = temp_model.from_map(m['PlaygroundScene']) + if m.get('ProEdition') is not None: + temp_model = DescribeMetadataResponseBodyMetaDataProEdition() + self.pro_edition = temp_model.from_map(m['ProEdition']) + if m.get('Regions') is not None: + self.regions = m.get('Regions') + if m.get('VersionCrds') is not None: + self.version_crds = m.get('VersionCrds') + if m.get('VersionRegistry') is not None: + self.version_registry = m.get('VersionRegistry') + if m.get('Versions') is not None: + self.versions = m.get('Versions') + return self + + +class DescribeMetadataResponseBody(TeaModel): def __init__( self, meta_data: DescribeMetadataResponseBodyMetaData = None, request_id: str = None, ): - # The metadata of ASM, which contains basic information about ASM. + # The ASM metadata, including the basic information about ASM. self.meta_data = meta_data # The request ID. self.request_id = request_id @@ -8129,9 +8501,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -8170,6 +8539,8 @@ def __init__( # The namespace. self.namespace = namespace # The ID of the ASM instance. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -8238,13 +8609,88 @@ def from_map(self, m: dict = None): return self +class DescribeNamespaceScopeSidecarConfigResponseBodyConfigPatchesSMCConfiguration(TeaModel): + def __init__( + self, + enabled: bool = None, + ): + # Indicates whether the SMC-R optimization feature is enabled. The SMC-R optimization feature uses Alibaba Cloud Linux 3 and elastic remote direct memory access (eRDMA) network devices, which optimizes cross-node communication. + self.enabled = enabled + + def validate(self): + pass + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.enabled is not None: + result['Enabled'] = self.enabled + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('Enabled') is not None: + self.enabled = m.get('Enabled') + return self + + +class DescribeNamespaceScopeSidecarConfigResponseBodyConfigPatchesScaledSidecarResource(TeaModel): + def __init__( + self, + container_ref: str = None, + resource_calculation_strategy: str = None, + resource_percentage: int = None, + ): + self.container_ref = container_ref + self.resource_calculation_strategy = resource_calculation_strategy + self.resource_percentage = resource_percentage + + def validate(self): + pass + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.container_ref is not None: + result['ContainerRef'] = self.container_ref + if self.resource_calculation_strategy is not None: + result['ResourceCalculationStrategy'] = self.resource_calculation_strategy + if self.resource_percentage is not None: + result['ResourcePercentage'] = self.resource_percentage + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('ContainerRef') is not None: + self.container_ref = m.get('ContainerRef') + if m.get('ResourceCalculationStrategy') is not None: + self.resource_calculation_strategy = m.get('ResourceCalculationStrategy') + if m.get('ResourcePercentage') is not None: + self.resource_percentage = m.get('ResourcePercentage') + return self + + class DescribeNamespaceScopeSidecarConfigResponseBodyConfigPatchesSidecarProxyAckSloResource(TeaModel): def __init__( self, limits: Dict[str, str] = None, requests: Dict[str, str] = None, ): + # The maximum size of reclaimed ACK resources that are available to the sidecar proxy container. This configuration item indicates the maximum size of resources that are available to the sidecar proxy container in a pod labeled with `koordinator.sh/qosClass`. The object can contain the following two types of keys, which indicate two types of resources: + # + # * `kubernetes.io/batch-cpu`: CPU resources that can be dynamically overcommitted. Unit: millicore. + # * `kubernetes.io/batch-memory`: memory resources that can be dynamically overcommitted. self.limits = limits + # The minimum size of reclaimed ACK resources that the sidecar proxy container needs to use at runtime. This configuration item indicates the minimum size of reclaimed ACK resources for the sidecar proxy container in a pod labeled with `koordinator.sh/qosClass`. The object can contain the following two types of keys, which indicate two types of resources: + # + # * `kubernetes.io/batch-cpu`: CPU resources that can be dynamically overcommitted. Unit: millicore. + # * `kubernetes.io/batch-memory`: memory resources that can be dynamically overcommitted. self.requests = requests def validate(self): @@ -8277,7 +8723,15 @@ def __init__( limits: Dict[str, str] = None, requests: Dict[str, str] = None, ): + # The maximum size of reclaimed ACK resources that are available to the istio-init container. This configuration item indicates the maximum size of resources that are available to the istio-init container in a pod labeled with `koordinator.sh/qosClass`. The object can contain the following two types of keys, which indicate two types of resources: + # + # * `kubernetes.io/batch-cpu`: CPU resources that can be dynamically overcommitted. Unit: millicore. + # * `kubernetes.io/batch-memory`: memory resources that can be dynamically overcommitted. self.limits = limits + # The minimum size of reclaimed ACK resources that the istio-init container needs to use at runtime. This configuration item indicates the minimum size of reclaimed ACK resources for the istio-init container in a pod labeled with `koordinator.sh/qosClass`. The object can contain the following two types of keys, which indicate two types of resources: + # + # * `kubernetes.io/batch-cpu`: CPU resources that can be dynamically overcommitted. Unit: millicore. + # * `kubernetes.io/batch-memory`: memory resources that can be dynamically overcommitted. self.requests = requests def validate(self): @@ -8512,6 +8966,9 @@ def __init__( readiness_failure_threshold: int = None, readiness_initial_delay_seconds: int = None, readiness_period_seconds: int = None, + runtime_values: Dict[str, str] = None, + smcconfiguration: DescribeNamespaceScopeSidecarConfigResponseBodyConfigPatchesSMCConfiguration = None, + scaled_sidecar_resource: DescribeNamespaceScopeSidecarConfigResponseBodyConfigPatchesScaledSidecarResource = None, sidecar_proxy_ack_slo_resource: DescribeNamespaceScopeSidecarConfigResponseBodyConfigPatchesSidecarProxyAckSloResource = None, sidecar_proxy_init_ack_slo_resource: DescribeNamespaceScopeSidecarConfigResponseBodyConfigPatchesSidecarProxyInitAckSloResource = None, sidecar_proxy_init_resource_limit: DescribeNamespaceScopeSidecarConfigResponseBodyConfigPatchesSidecarProxyInitResourceLimit = None, @@ -8523,6 +8980,10 @@ def __init__( ): # The number of worker threads to run in the istio-proxy container. self.concurrency = concurrency + # Indicates whether the core dump feature is enabled for the sidecar proxy containers. Valid values: + # + # * `true` + # * `false` self.enable_core_dump = enable_core_dump # The inbound ports to be excluded from redirection to the sidecar proxy in the ASM instance. self.exclude_inbound_ports = exclude_inbound_ports @@ -8532,8 +8993,8 @@ def __init__( self.exclude_outbound_ports = exclude_outbound_ports # Indicates whether applications can be started only after the istio-proxy container starts. Valid values: # - # * `true` - # * false + # * `true`: Applications can be started only after the istio-proxy container starts. + # * `false`: Applications can be started before the istio-proxy container starts. self.hold_application_until_proxy_starts = hold_application_until_proxy_starts # The inbound ports for which traffic is to be redirected to the sidecar proxy in the ASM instance. self.include_inbound_ports = include_inbound_ports @@ -8555,14 +9016,28 @@ def __init__( self.lifecycle_str = lifecycle_str # The log level. Valid values: `info`, `debug`, `trace`, and `error`. self.log_level = log_level + # Indicates whether the privileged mode is enabled in the security context of the sidecar proxy containers. Valid values: + # + # * `true`: The privileged mode is enabled, that is, the sidecar proxy containers run in privileged mode. + # * `false`: The privileged mode is not enabled. self.privileged = privileged self.proxy_metadata = proxy_metadata # The custom Envoy statistics that are reported by the sidecar proxy. self.proxy_stats_matcher = proxy_stats_matcher + # The number of readiness check failures required before marking a sidecar proxy container as not ready. self.readiness_failure_threshold = readiness_failure_threshold + # The amount of time to wait before the first readiness check of a sidecar proxy container is performed. Unit: seconds. self.readiness_initial_delay_seconds = readiness_initial_delay_seconds + # The interval between two readiness checks of a sidecar proxy container. Unit: seconds. self.readiness_period_seconds = readiness_period_seconds + # Indicates the runtime parameters of Envoy proxy processes in the sidecar proxy container. + self.runtime_values = runtime_values + # The configurations of the Shared Memory Communications over Remote Direct Memory Access (SMC-R) optimization feature. + self.smcconfiguration = smcconfiguration + self.scaled_sidecar_resource = scaled_sidecar_resource + # The maximum size of reclaimed ACK resources that are available to the sidecar proxy container. This configuration item indicates the maximum size of resources that are available to the sidecar proxy container in a pod labeled with `koordinator.sh/qosClass`. self.sidecar_proxy_ack_slo_resource = sidecar_proxy_ack_slo_resource + # The reclaimed Container Service for Kubernetes (ACK) resources for the istio-init container. This configuration item indicates the resources of the istio-init container in a pod labeled with `koordinator.sh/qosClass`. Reclaimed ACK resources are resources that can be dynamically overcommitted. self.sidecar_proxy_init_ack_slo_resource = sidecar_proxy_init_ack_slo_resource # The maximum size of resources that are available to the istio-init container in the pod into which the sidecar proxy is injected. The istio-init container is used in this topic. self.sidecar_proxy_init_resource_limit = sidecar_proxy_init_resource_limit @@ -8580,6 +9055,10 @@ def __init__( def validate(self): if self.proxy_stats_matcher: self.proxy_stats_matcher.validate() + if self.smcconfiguration: + self.smcconfiguration.validate() + if self.scaled_sidecar_resource: + self.scaled_sidecar_resource.validate() if self.sidecar_proxy_ack_slo_resource: self.sidecar_proxy_ack_slo_resource.validate() if self.sidecar_proxy_init_ack_slo_resource: @@ -8639,6 +9118,12 @@ def to_map(self): result['ReadinessInitialDelaySeconds'] = self.readiness_initial_delay_seconds if self.readiness_period_seconds is not None: result['ReadinessPeriodSeconds'] = self.readiness_period_seconds + if self.runtime_values is not None: + result['RuntimeValues'] = self.runtime_values + if self.smcconfiguration is not None: + result['SMCConfiguration'] = self.smcconfiguration.to_map() + if self.scaled_sidecar_resource is not None: + result['ScaledSidecarResource'] = self.scaled_sidecar_resource.to_map() if self.sidecar_proxy_ack_slo_resource is not None: result['SidecarProxyAckSloResource'] = self.sidecar_proxy_ack_slo_resource.to_map() if self.sidecar_proxy_init_ack_slo_resource is not None: @@ -8698,6 +9183,14 @@ def from_map(self, m: dict = None): self.readiness_initial_delay_seconds = m.get('ReadinessInitialDelaySeconds') if m.get('ReadinessPeriodSeconds') is not None: self.readiness_period_seconds = m.get('ReadinessPeriodSeconds') + if m.get('RuntimeValues') is not None: + self.runtime_values = m.get('RuntimeValues') + if m.get('SMCConfiguration') is not None: + temp_model = DescribeNamespaceScopeSidecarConfigResponseBodyConfigPatchesSMCConfiguration() + self.smcconfiguration = temp_model.from_map(m['SMCConfiguration']) + if m.get('ScaledSidecarResource') is not None: + temp_model = DescribeNamespaceScopeSidecarConfigResponseBodyConfigPatchesScaledSidecarResource() + self.scaled_sidecar_resource = temp_model.from_map(m['ScaledSidecarResource']) if m.get('SidecarProxyAckSloResource') is not None: temp_model = DescribeNamespaceScopeSidecarConfigResponseBodyConfigPatchesSidecarProxyAckSloResource() self.sidecar_proxy_ack_slo_resource = temp_model.from_map(m['SidecarProxyAckSloResource']) @@ -8730,7 +9223,7 @@ def __init__( config_patches: DescribeNamespaceScopeSidecarConfigResponseBodyConfigPatches = None, request_id: str = None, ): - # The namespace-level sidecar proxy configurations. + # The namespace-level sidecar configurations. self.config_patches = config_patches # The request ID. self.request_id = request_id @@ -8773,9 +9266,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -8811,6 +9301,8 @@ def __init__( service_mesh_id: str = None, ): # The ID of the Alibaba Cloud Service Mesh (ASM) instance. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -8841,6 +9333,7 @@ def __init__( node_type: str = None, value: str = None, ): + # The label keys of nodes which have MultiBuffer optimization supported. (Enable optimization only if pod being scheduled to node which have a label key specified by this field and its value equals with the value field) self.key = key # Indicates whether the instance type supports Multi-Buffer acceleration. Valid values: # @@ -8849,6 +9342,7 @@ def __init__( self.multi_buffer_enabled = multi_buffer_enabled # The instance type of the node. self.node_type = node_type + # The label keys of nodes which have MultiBuffer optimization supported. (Enable optimization only if pod being scheduled to node which have a label key specified by the key field and its value equals with this field) self.value = value def validate(self): @@ -8938,9 +9432,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -8974,15 +9465,29 @@ class DescribeReusableSlbRequest(TeaModel): def __init__( self, k_8s_cluster_id: str = None, + lb_type: str = None, network_type: str = None, + service_mesh_id: str = None, ): - # The ID of the Kubernetes cluster on the data plane. + # The ID of the cluster on the data plane. If you specify this parameter, you cannot specify ServiceMeshId. This parameter and ServiceMeshId cannot be left empty at the same time. self.k_8s_cluster_id = k_8s_cluster_id + # Load balancer type, value: + # + # * `clb`: Classic Load Balancer + # + # * `nlb`: Network Load Balancer + # + # default is `clb`. + self.lb_type = lb_type # The network type of the SLB instance. Valid values: # # * `intranet` # * `internet` + # + # This parameter is required. self.network_type = network_type + # The ID of the Service Mesh (ASM) instance. If you specify this parameter, you cannot specify K8sClusterId. This parameter and K8sClusterId cannot be left empty at the same time. + self.service_mesh_id = service_mesh_id def validate(self): pass @@ -8995,16 +9500,24 @@ def to_map(self): result = dict() if self.k_8s_cluster_id is not None: result['K8sClusterId'] = self.k_8s_cluster_id + if self.lb_type is not None: + result['LbType'] = self.lb_type if self.network_type is not None: result['NetworkType'] = self.network_type + if self.service_mesh_id is not None: + result['ServiceMeshId'] = self.service_mesh_id return result def from_map(self, m: dict = None): m = m or dict() if m.get('K8sClusterId') is not None: self.k_8s_cluster_id = m.get('K8sClusterId') + if m.get('LbType') is not None: + self.lb_type = m.get('LbType') if m.get('NetworkType') is not None: self.network_type = m.get('NetworkType') + if m.get('ServiceMeshId') is not None: + self.service_mesh_id = m.get('ServiceMeshId') return self @@ -9098,9 +9611,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -9142,6 +9652,8 @@ def __init__( # * `full`: checks control plane logs, access logs, security groups, and the elastic IP addresses (EIPs) of the API server in addition to the check items in normal mode. self.check_mode = check_mode # The ID of the ASM instance. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -9177,31 +9689,31 @@ def __init__( slbback_end_server_num_status: str = None, slbexist_status: str = None, ): - # Indicates whether the SLB instance is locked. Valid values: + # Indicates whether the CLB instance is locked. Valid values: # # * `true` # * `false` self.locked = locked - # The billing method of the SLB instance. Valid values: + # The billing method of the CLB instance. Valid values: # # * `PrePay`: subscription # * `PayOnDemand`: pay-as-you-go self.pay_type = pay_type - # Indicates whether the SLB instance is reused. Valid values: + # Indicates whether the CLB instance is reused. Valid values: # # * `true` # * `false` self.reused = reused - # The check result of the number of backend servers of the SLB instance created for exposing the API server. Valid values: + # The check results of the number of backend servers of the CLB instance created for exposing Istio Pilot. Valid values: # # * `too_much`: An excessive number of backend servers are created. # * `num_exact`: A proper number of backend servers are created. # * `too_little`: The number of backend servers falls short. self.slbback_end_server_num_status = slbback_end_server_num_status - # The check result of the SLB instance. Valid values: + # The check results of the CLB instance. Valid values: # - # * `exist`: The SLB instance exists. - # * `not_exist`: The SLB instance does not exist. + # * `exist`: The CLB instance exists. + # * `not_exist`: The CLB instance does not exist. # * `conflict`: Conflicts are detected. # * `failed`: The check fails. # * `time_out`: The check times out. @@ -9252,26 +9764,33 @@ def __init__( slbback_end_server_num_status: str = None, slbexist_status: str = None, ): - # Indicates whether the SLB instance is locked due to overdue payments. Valid values: `true` `false` + # Indicates whether the CLB instance is locked due to overdue payments. Valid values: + # + # * `true` + # * `false` self.locked = locked + # The billing method of the CLB instance. Valid values: + # + # * `PrePay`: subscription + # * `PayOnDemand` (default): pay-as-you-go self.pay_type = pay_type - # Indicates whether the SLB instance is reused. Valid values: + # Indicates whether the CLB instance is reused. Valid values: # - # * `true`: The SLB instance is reused. Non-ASM listener configuration is detected in the listener configurations of the SLB instance. - # * `false`: The SLB instance is not reused. + # * `true`: The CLB instance is reused. Non-ASM listener configuration is detected in the listener configurations of the CLB instance. + # * `false`: The CLB instance is not reused. self.reused = reused - # The check result of the number of backend servers of the SLB instance created for exposing Istio Pilot. Valid values: + # The check result of the number of backend servers of the CLB instance created for exposing Istio Pilot. Valid values: # # * `num_exact`: A proper number of backend servers are created. # * `too_much`: An excessive number of backend servers are created. # * `too_little`: The number of backend servers falls short. self.slbback_end_server_num_status = slbback_end_server_num_status - # The check result of the SLB instance. Valid values: + # The check result of the CLB instance. Valid values: # - # * `exist`: The SLB instance exists. - # * `not_exist`: The SLB instance does not exist. + # * `exist`: The CLB instance exists. + # * `not_exist`: The CLB instance does not exist. # * `time_out`: The check times out. - # * `failed`: The SLB instance has expired. + # * `failed`: The CLB instance has expired. self.slbexist_status = slbexist_status def validate(self): @@ -9319,31 +9838,31 @@ def __init__( slbback_end_server_num_status: str = None, slbexist_status: str = None, ): - # Indicates whether the SLB instance is locked. Valid values: + # Indicates whether the CLB instance is locked. Valid values: # # * `true` # * `false` self.locked = locked - # The billing method of the SLB instance. Valid values: + # The billing method of the CLB instance. Valid values: # # * `PrePay`: subscription # * `PayOnDemand`: pay-as-you-go self.pay_type = pay_type - # Indicates whether the SLB instance is reused. Valid values: + # Indicates whether the CLB instance is reused. Valid values: # # * `true` # * `false` self.reused = reused - # The check result of the number of backend servers of the SLB instance created for exposing Istio Pilot. Valid values: + # The check results of the number of backend servers of the CLB instance created for exposing Istio Pilot. Valid values: # # * `too_much`: An excessive number of backend servers are created. # * `num_exact`: A proper number of backend servers are created. # * `too_little`: The number of backend servers falls short. self.slbback_end_server_num_status = slbback_end_server_num_status - # The check result of the SLB instance. Valid values: + # The check results of the CLB instance. Valid values: # - # * `exist`: The SLB instance exists. - # * `not_exist`: The SLB instance does not exist. + # * `exist`: The CLB instance exists. + # * `not_exist`: The CLB instance does not exist. # * `conflict`: Conflicts are detected. # * `failed`: The check fails. # * `time_out`: The check times out. @@ -9392,9 +9911,11 @@ def __init__( api_server_eipstatus: str = None, api_server_load_balancer_status: DescribeServiceMeshAdditionalStatusResponseBodyClusterStatusApiServerLoadBalancerStatus = None, audit_project_status: str = None, + canary_pilot_eipstatus: str = None, canary_pilot_load_balancer_status: DescribeServiceMeshAdditionalStatusResponseBodyClusterStatusCanaryPilotLoadBalancerStatus = None, control_plane_project_status: str = None, logtail_status_record: Dict[str, Any] = None, + pilot_eipstatus: str = None, pilot_load_balancer_status: DescribeServiceMeshAdditionalStatusResponseBodyClusterStatusPilotLoadBalancerStatus = None, ramapplication_status: str = None, sg_status: str = None, @@ -9415,14 +9936,15 @@ def __init__( # * `not_in_use`: The EIP is not associated with the API Server. # * `locked`: The EIP is locked. self.api_server_eipstatus = api_server_eipstatus - # The check results of the SLB instance created for exposing the API server. + # The check results of the CLB instance created for exposing the API server. self.api_server_load_balancer_status = api_server_load_balancer_status # Indicates whether audit logs exist. Valid values: # # * `exist` # * `not exist` self.audit_project_status = audit_project_status - # The check results of the SLB instance that is created for exposing Istio Pilot and used during canary release. + self.canary_pilot_eipstatus = canary_pilot_eipstatus + # The check results of the CLB instance that is created for exposing Istio Pilot and used during canary release. self.canary_pilot_load_balancer_status = canary_pilot_load_balancer_status # Indicates whether control plane logs exist. Valid values: # @@ -9433,7 +9955,16 @@ def __init__( self.control_plane_project_status = control_plane_project_status # Indicates whether Logtail is installed in clusters on the data plane. self.logtail_status_record = logtail_status_record - # The check results of the SLB instance created for exposing Istio Pilot. + # The check result of whether the EIP is associated with the API server. Valid values: + # + # * `exist`: The EIP exists. + # * `not_exist`: The EIP does not exist. + # * `failed`: The check fails. + # * `time_out`: The check is timed out. + # * `not_in_use`: The EIP is not associated with the API server. + # * `locked`: The EIP is locked. + self.pilot_eipstatus = pilot_eipstatus + # The check results of the CLB instance created for exposing Istio Pilot. self.pilot_load_balancer_status = pilot_load_balancer_status # The status of the RAM OAuth application that is integrated with Mesh Topology. Valid values: # @@ -9473,12 +10004,16 @@ def to_map(self): result['ApiServerLoadBalancerStatus'] = self.api_server_load_balancer_status.to_map() if self.audit_project_status is not None: result['AuditProjectStatus'] = self.audit_project_status + if self.canary_pilot_eipstatus is not None: + result['CanaryPilotEIPStatus'] = self.canary_pilot_eipstatus if self.canary_pilot_load_balancer_status is not None: result['CanaryPilotLoadBalancerStatus'] = self.canary_pilot_load_balancer_status.to_map() if self.control_plane_project_status is not None: result['ControlPlaneProjectStatus'] = self.control_plane_project_status if self.logtail_status_record is not None: result['LogtailStatusRecord'] = self.logtail_status_record + if self.pilot_eipstatus is not None: + result['PilotEIPStatus'] = self.pilot_eipstatus if self.pilot_load_balancer_status is not None: result['PilotLoadBalancerStatus'] = self.pilot_load_balancer_status.to_map() if self.ramapplication_status is not None: @@ -9498,6 +10033,8 @@ def from_map(self, m: dict = None): self.api_server_load_balancer_status = temp_model.from_map(m['ApiServerLoadBalancerStatus']) if m.get('AuditProjectStatus') is not None: self.audit_project_status = m.get('AuditProjectStatus') + if m.get('CanaryPilotEIPStatus') is not None: + self.canary_pilot_eipstatus = m.get('CanaryPilotEIPStatus') if m.get('CanaryPilotLoadBalancerStatus') is not None: temp_model = DescribeServiceMeshAdditionalStatusResponseBodyClusterStatusCanaryPilotLoadBalancerStatus() self.canary_pilot_load_balancer_status = temp_model.from_map(m['CanaryPilotLoadBalancerStatus']) @@ -9505,6 +10042,8 @@ def from_map(self, m: dict = None): self.control_plane_project_status = m.get('ControlPlaneProjectStatus') if m.get('LogtailStatusRecord') is not None: self.logtail_status_record = m.get('LogtailStatusRecord') + if m.get('PilotEIPStatus') is not None: + self.pilot_eipstatus = m.get('PilotEIPStatus') if m.get('PilotLoadBalancerStatus') is not None: temp_model = DescribeServiceMeshAdditionalStatusResponseBodyClusterStatusPilotLoadBalancerStatus() self.pilot_load_balancer_status = temp_model.from_map(m['PilotLoadBalancerStatus']) @@ -9521,7 +10060,7 @@ def __init__( cluster_status: DescribeServiceMeshAdditionalStatusResponseBodyClusterStatus = None, request_id: str = None, ): - # The status of the cluster. + # The cluster status. self.cluster_status = cluster_status # The request ID. self.request_id = request_id @@ -9564,9 +10103,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -9808,6 +10344,7 @@ def __init__( ): # The queried clusters. self.clusters = clusters + # The total number of ACK clusters in the current Region. self.number_of_clusters = number_of_clusters # The request ID. self.request_id = request_id @@ -9860,9 +10397,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -9898,6 +10432,8 @@ def __init__( service_mesh_id: str = None, ): # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -9924,16 +10460,22 @@ class DescribeServiceMeshDetailResponseBodyServiceMeshEndpoints(TeaModel): def __init__( self, intranet_api_server_endpoint: str = None, + intranet_canary_pilot_endpoint: str = None, intranet_pilot_endpoint: str = None, public_api_server_endpoint: str = None, + public_canary_pilot_endpoint: str = None, public_pilot_endpoint: str = None, ): # The endpoint that is used to access the API server from the internal network. self.intranet_api_server_endpoint = intranet_api_server_endpoint + # The endpoint that is used to access Istio Pilot from the internal network (Intranet) during canary release. + self.intranet_canary_pilot_endpoint = intranet_canary_pilot_endpoint # The endpoint that is used to access Istio Pilot from the internal network. self.intranet_pilot_endpoint = intranet_pilot_endpoint # The endpoint that is used to access the API server over the Internet. self.public_api_server_endpoint = public_api_server_endpoint + # The endpoint that is used to expose Istio Pilot to the public network (Internet) during canary release. + self.public_canary_pilot_endpoint = public_canary_pilot_endpoint # The endpoint that is used to expose Istio Pilot to the Internet. self.public_pilot_endpoint = public_pilot_endpoint @@ -9948,10 +10490,14 @@ def to_map(self): result = dict() if self.intranet_api_server_endpoint is not None: result['IntranetApiServerEndpoint'] = self.intranet_api_server_endpoint + if self.intranet_canary_pilot_endpoint is not None: + result['IntranetCanaryPilotEndpoint'] = self.intranet_canary_pilot_endpoint if self.intranet_pilot_endpoint is not None: result['IntranetPilotEndpoint'] = self.intranet_pilot_endpoint if self.public_api_server_endpoint is not None: result['PublicApiServerEndpoint'] = self.public_api_server_endpoint + if self.public_canary_pilot_endpoint is not None: + result['PublicCanaryPilotEndpoint'] = self.public_canary_pilot_endpoint if self.public_pilot_endpoint is not None: result['PublicPilotEndpoint'] = self.public_pilot_endpoint return result @@ -9960,10 +10506,14 @@ def from_map(self, m: dict = None): m = m or dict() if m.get('IntranetApiServerEndpoint') is not None: self.intranet_api_server_endpoint = m.get('IntranetApiServerEndpoint') + if m.get('IntranetCanaryPilotEndpoint') is not None: + self.intranet_canary_pilot_endpoint = m.get('IntranetCanaryPilotEndpoint') if m.get('IntranetPilotEndpoint') is not None: self.intranet_pilot_endpoint = m.get('IntranetPilotEndpoint') if m.get('PublicApiServerEndpoint') is not None: self.public_api_server_endpoint = m.get('PublicApiServerEndpoint') + if m.get('PublicCanaryPilotEndpoint') is not None: + self.public_canary_pilot_endpoint = m.get('PublicCanaryPilotEndpoint') if m.get('PublicPilotEndpoint') is not None: self.public_pilot_endpoint = m.get('PublicPilotEndpoint') return self @@ -10061,7 +10611,11 @@ def __init__( self, api_server_loadbalancer_id: str = None, api_server_public_eip: bool = None, + api_server_public_eip_id: str = None, + canary_pilot_load_balancer_id: str = None, + canary_pilot_public_eip_id: str = None, pilot_public_eip: bool = None, + pilot_public_eip_id: str = None, pilot_public_loadbalancer_id: str = None, ): # The ID of the CLB instance that is used when the API server is exposed to the Internet. @@ -10071,11 +10625,19 @@ def __init__( # * `true` # * `false` self.api_server_public_eip = api_server_public_eip + # The ID of the endpoint that is used to expose API server to the Internet. + self.api_server_public_eip_id = api_server_public_eip_id + # The ID of the Classic Load Balancer (CLB) instance that is used during the canary release of Istio Pilot. + self.canary_pilot_load_balancer_id = canary_pilot_load_balancer_id + # The ID of the endpoint that is used to expose Istio Pilot to the Internet during canary release. + self.canary_pilot_public_eip_id = canary_pilot_public_eip_id # Indicates whether Istio Pilot is exposed to the Internet. Valid values: # # * `true` # * `false` self.pilot_public_eip = pilot_public_eip + # The ID of the endpoint that is used to expose Istio Pilot to the Internet. + self.pilot_public_eip_id = pilot_public_eip_id # The ID of the Classic Load Balancer (CLB) instance that is used when Istio Pilot is exposed to the Internet. self.pilot_public_loadbalancer_id = pilot_public_loadbalancer_id @@ -10092,8 +10654,16 @@ def to_map(self): result['ApiServerLoadbalancerId'] = self.api_server_loadbalancer_id if self.api_server_public_eip is not None: result['ApiServerPublicEip'] = self.api_server_public_eip + if self.api_server_public_eip_id is not None: + result['ApiServerPublicEipId'] = self.api_server_public_eip_id + if self.canary_pilot_load_balancer_id is not None: + result['CanaryPilotLoadBalancerId'] = self.canary_pilot_load_balancer_id + if self.canary_pilot_public_eip_id is not None: + result['CanaryPilotPublicEipId'] = self.canary_pilot_public_eip_id if self.pilot_public_eip is not None: result['PilotPublicEip'] = self.pilot_public_eip + if self.pilot_public_eip_id is not None: + result['PilotPublicEipId'] = self.pilot_public_eip_id if self.pilot_public_loadbalancer_id is not None: result['PilotPublicLoadbalancerId'] = self.pilot_public_loadbalancer_id return result @@ -10104,8 +10674,16 @@ def from_map(self, m: dict = None): self.api_server_loadbalancer_id = m.get('ApiServerLoadbalancerId') if m.get('ApiServerPublicEip') is not None: self.api_server_public_eip = m.get('ApiServerPublicEip') + if m.get('ApiServerPublicEipId') is not None: + self.api_server_public_eip_id = m.get('ApiServerPublicEipId') + if m.get('CanaryPilotLoadBalancerId') is not None: + self.canary_pilot_load_balancer_id = m.get('CanaryPilotLoadBalancerId') + if m.get('CanaryPilotPublicEipId') is not None: + self.canary_pilot_public_eip_id = m.get('CanaryPilotPublicEipId') if m.get('PilotPublicEip') is not None: self.pilot_public_eip = m.get('PilotPublicEip') + if m.get('PilotPublicEipId') is not None: + self.pilot_public_eip_id = m.get('PilotPublicEipId') if m.get('PilotPublicLoadbalancerId') is not None: self.pilot_public_loadbalancer_id = m.get('PilotPublicLoadbalancerId') return self @@ -10209,6 +10787,7 @@ def __init__( # * `true` # * `false` self.enabled = enabled + # The time to live (TTL) of the collected control-plane logs. Unit: day. self.log_ttl = log_ttl # The name of the Simple Log Service project that stores control plane logs. self.project = project @@ -10291,9 +10870,11 @@ def __init__( sidecar_enabled: bool = None, sidecar_lifecycle: int = None, ): + # Indicates whether gateway log collection is enabled. self.gateway_enabled = gateway_enabled # The retention period for the access logs of the ingress gateway. Unit: day. The logs are collected by using Simple Log Service. For example, the value 30 indicates that the logs are retained for 30 days. self.gateway_lifecycle = gateway_lifecycle + # Indicates whether sidecar log collection is enabled. self.sidecar_enabled = sidecar_enabled # The retention period for the access logs of sidecar proxies. Unit: day. The logs are collected by using Simple Log Service. For example, the value 30 indicates that the logs are retained for 30 days. self.sidecar_lifecycle = sidecar_lifecycle @@ -10593,6 +11174,40 @@ def from_map(self, m: dict = None): return self +class DescribeServiceMeshDetailResponseBodyServiceMeshSpecMeshConfigExtraConfigurationIstiodExtraConfiguration(TeaModel): + def __init__( + self, + labels_for_offloaded_workloads: str = None, + pilot_enable_quic_listeners: bool = None, + ): + # The labels for isolated workloads. + self.labels_for_offloaded_workloads = labels_for_offloaded_workloads + self.pilot_enable_quic_listeners = pilot_enable_quic_listeners + + def validate(self): + pass + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.labels_for_offloaded_workloads is not None: + result['LabelsForOffloadedWorkloads'] = self.labels_for_offloaded_workloads + if self.pilot_enable_quic_listeners is not None: + result['PilotEnableQuicListeners'] = self.pilot_enable_quic_listeners + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('LabelsForOffloadedWorkloads') is not None: + self.labels_for_offloaded_workloads = m.get('LabelsForOffloadedWorkloads') + if m.get('PilotEnableQuicListeners') is not None: + self.pilot_enable_quic_listeners = m.get('PilotEnableQuicListeners') + return self + + class DescribeServiceMeshDetailResponseBodyServiceMeshSpecMeshConfigExtraConfigurationLifecyclePostStartExec(TeaModel): def __init__( self, @@ -10629,7 +11244,7 @@ def __init__( ): # The name of the HTTP request header. self.name = name - # The value of the HTTP request header field. + # The value of the HTTP request header. self.value = value def validate(self): @@ -10834,7 +11449,7 @@ def __init__( ): # The name of the HTTP request header. self.name = name - # The value of the HTTP request header field. + # The value of the HTTP request header. self.value = value def validate(self): @@ -11049,7 +11664,7 @@ def __init__( enabled: bool = None, poll_delay: str = None, ): - # Indicates whether MulitiBuffer-based TLS acceleration is enabled. Valid values: + # Indicates whether MultiBuffer-based TLS acceleration is enabled. Valid values: # # * `true` # * `false` @@ -11147,6 +11762,33 @@ def from_map(self, m: dict = None): return self +class DescribeServiceMeshDetailResponseBodyServiceMeshSpecMeshConfigExtraConfigurationPlayground(TeaModel): + def __init__( + self, + scene: str = None, + ): + self.scene = scene + + def validate(self): + pass + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.scene is not None: + result['Scene'] = self.scene + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('Scene') is not None: + self.scene = m.get('Scene') + return self + + class DescribeServiceMeshDetailResponseBodyServiceMeshSpecMeshConfigExtraConfigurationSidecarProxyInitResourceLimit(TeaModel): def __init__( self, @@ -11227,10 +11869,12 @@ def __init__( craggregation_enabled: bool = None, discovery_selectors: List[Dict[str, Any]] = None, istio_crhistory: DescribeServiceMeshDetailResponseBodyServiceMeshSpecMeshConfigExtraConfigurationIstioCRHistory = None, + istiod_extra_configuration: DescribeServiceMeshDetailResponseBodyServiceMeshSpecMeshConfigExtraConfigurationIstiodExtraConfiguration = None, lifecycle: DescribeServiceMeshDetailResponseBodyServiceMeshSpecMeshConfigExtraConfigurationLifecycle = None, multi_buffer: DescribeServiceMeshDetailResponseBodyServiceMeshSpecMeshConfigExtraConfigurationMultiBuffer = None, nfdconfiguration: DescribeServiceMeshDetailResponseBodyServiceMeshSpecMeshConfigExtraConfigurationNFDConfiguration = None, opascope_injection: DescribeServiceMeshDetailResponseBodyServiceMeshSpecMeshConfigExtraConfigurationOPAScopeInjection = None, + playground: DescribeServiceMeshDetailResponseBodyServiceMeshSpecMeshConfigExtraConfigurationPlayground = None, sidecar_proxy_init_resource_limit: DescribeServiceMeshDetailResponseBodyServiceMeshSpecMeshConfigExtraConfigurationSidecarProxyInitResourceLimit = None, sidecar_proxy_init_resource_request: DescribeServiceMeshDetailResponseBodyServiceMeshSpecMeshConfigExtraConfigurationSidecarProxyInitResourceRequest = None, termination_drain_duration: str = None, @@ -11252,14 +11896,17 @@ def __init__( self.discovery_selectors = discovery_selectors # The configurations of the rollback feature for Istio resources. self.istio_crhistory = istio_crhistory + # Additional configurations for Istiod. + self.istiod_extra_configuration = istiod_extra_configuration # The lifecycle of Istio Proxy. self.lifecycle = lifecycle - # The information about Transport Layer Security (TLS) acceleration based on MulitiBuffer. + # The information about Transport Layer Security (TLS) acceleration based on MultiBuffer. self.multi_buffer = multi_buffer # The configurations of Node Feature Discovery (NFD). self.nfdconfiguration = nfdconfiguration # The configurations of the feature of controlling the OPA injection scope. self.opascope_injection = opascope_injection + self.playground = playground # The resource limits on the istio-init container. self.sidecar_proxy_init_resource_limit = sidecar_proxy_init_resource_limit # The resources that are required by the istio-init container. @@ -11278,6 +11925,8 @@ def validate(self): self.craggregation_configuration.validate() if self.istio_crhistory: self.istio_crhistory.validate() + if self.istiod_extra_configuration: + self.istiod_extra_configuration.validate() if self.lifecycle: self.lifecycle.validate() if self.multi_buffer: @@ -11286,6 +11935,8 @@ def validate(self): self.nfdconfiguration.validate() if self.opascope_injection: self.opascope_injection.validate() + if self.playground: + self.playground.validate() if self.sidecar_proxy_init_resource_limit: self.sidecar_proxy_init_resource_limit.validate() if self.sidecar_proxy_init_resource_request: @@ -11311,6 +11962,8 @@ def to_map(self): result['DiscoverySelectors'] = self.discovery_selectors if self.istio_crhistory is not None: result['IstioCRHistory'] = self.istio_crhistory.to_map() + if self.istiod_extra_configuration is not None: + result['IstiodExtraConfiguration'] = self.istiod_extra_configuration.to_map() if self.lifecycle is not None: result['Lifecycle'] = self.lifecycle.to_map() if self.multi_buffer is not None: @@ -11319,6 +11972,8 @@ def to_map(self): result['NFDConfiguration'] = self.nfdconfiguration.to_map() if self.opascope_injection is not None: result['OPAScopeInjection'] = self.opascope_injection.to_map() + if self.playground is not None: + result['Playground'] = self.playground.to_map() if self.sidecar_proxy_init_resource_limit is not None: result['SidecarProxyInitResourceLimit'] = self.sidecar_proxy_init_resource_limit.to_map() if self.sidecar_proxy_init_resource_request is not None: @@ -11348,6 +12003,9 @@ def from_map(self, m: dict = None): if m.get('IstioCRHistory') is not None: temp_model = DescribeServiceMeshDetailResponseBodyServiceMeshSpecMeshConfigExtraConfigurationIstioCRHistory() self.istio_crhistory = temp_model.from_map(m['IstioCRHistory']) + if m.get('IstiodExtraConfiguration') is not None: + temp_model = DescribeServiceMeshDetailResponseBodyServiceMeshSpecMeshConfigExtraConfigurationIstiodExtraConfiguration() + self.istiod_extra_configuration = temp_model.from_map(m['IstiodExtraConfiguration']) if m.get('Lifecycle') is not None: temp_model = DescribeServiceMeshDetailResponseBodyServiceMeshSpecMeshConfigExtraConfigurationLifecycle() self.lifecycle = temp_model.from_map(m['Lifecycle']) @@ -11360,6 +12018,9 @@ def from_map(self, m: dict = None): if m.get('OPAScopeInjection') is not None: temp_model = DescribeServiceMeshDetailResponseBodyServiceMeshSpecMeshConfigExtraConfigurationOPAScopeInjection() self.opascope_injection = temp_model.from_map(m['OPAScopeInjection']) + if m.get('Playground') is not None: + temp_model = DescribeServiceMeshDetailResponseBodyServiceMeshSpecMeshConfigExtraConfigurationPlayground() + self.playground = temp_model.from_map(m['Playground']) if m.get('SidecarProxyInitResourceLimit') is not None: temp_model = DescribeServiceMeshDetailResponseBodyServiceMeshSpecMeshConfigExtraConfigurationSidecarProxyInitResourceLimit() self.sidecar_proxy_init_resource_limit = temp_model.from_map(m['SidecarProxyInitResourceLimit']) @@ -11446,6 +12107,7 @@ def __init__( distribute: Dict[str, Any] = None, enabled: bool = None, failover: Dict[str, Any] = None, + failover_priority: Dict[str, Any] = None, ): # The configurations of cross-region traffic distribution. # @@ -11460,6 +12122,7 @@ def __init__( # # > Either Failover or `Distribute` can be set. If you set `Failover`, you cannot set `Distribute`. self.failover = failover + self.failover_priority = failover_priority def validate(self): pass @@ -11476,6 +12139,8 @@ def to_map(self): result['Enabled'] = self.enabled if self.failover is not None: result['Failover'] = self.failover + if self.failover_priority is not None: + result['FailoverPriority'] = self.failover_priority return result def from_map(self, m: dict = None): @@ -11486,6 +12151,8 @@ def from_map(self, m: dict = None): self.enabled = m.get('Enabled') if m.get('Failover') is not None: self.failover = m.get('Failover') + if m.get('FailoverPriority') is not None: + self.failover_priority = m.get('FailoverPriority') return self @@ -11998,7 +12665,7 @@ def __init__( self.request_memory = request_memory # The number of component replicas that are used for sidecar proxy injection. Default value: `1`. self.sidecar_injector_num = sidecar_injector_num - # Other configurations of automatic sidecar proxy injection, in the YAML format. For more information, see [Enable automatic sidecar proxy injection](~~186136~~). + # Other configurations of automatic sidecar proxy injection, in the YAML format. For more information, see [Enable automatic sidecar proxy injection](https://help.aliyun.com/document_detail/186136.html). self.sidecar_injector_webhook_as_yaml = sidecar_injector_webhook_as_yaml def validate(self): @@ -12119,7 +12786,7 @@ def __init__( self.access_log = access_log # The information about mesh audit. self.audit = audit - # The configurations of control plane log collection. + # The configurations of control-plane log collection. self.control_plane_log_info = control_plane_log_info # Indicates whether a custom Zipkin system is used. Valid values: # @@ -12393,7 +13060,7 @@ def __init__( mesh_config: DescribeServiceMeshDetailResponseBodyServiceMeshSpecMeshConfig = None, network: DescribeServiceMeshDetailResponseBodyServiceMeshSpecNetwork = None, ): - # The information about load balancing. + # The information about the load balancer. self.load_balancer = load_balancer # The configurations of the ASM instance. self.mesh_config = mesh_config @@ -12529,7 +13196,7 @@ def __init__( ): # The request ID. self.request_id = request_id - # The details of the ASM instance. + # The information about the ASM instance. self.service_mesh = service_mesh def validate(self): @@ -12570,9 +13237,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -12611,6 +13275,8 @@ def __init__( # Specifies whether to query the kubeconfig file that is used for Internet access or internal network access. self.private_ip_address = private_ip_address # The ID of the ASM instance. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -12691,9 +13357,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -12729,6 +13392,8 @@ def __init__( service_mesh_id: str = None, ): # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -12848,9 +13513,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -12886,6 +13548,8 @@ def __init__( service_mesh_id: str = None, ): # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -13086,9 +13750,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -13130,6 +13791,8 @@ def __init__( # The IDs of the clusters on the data plane of the ASM instance. Separate multiple clusters with commas (,). self.guest_cluster_ids = guest_cluster_ids # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -13270,9 +13933,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -13308,6 +13968,8 @@ def __init__( service_mesh_id: str = None, ): # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -13462,9 +14124,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -13500,7 +14159,9 @@ def __init__( key: str = None, value: str = None, ): + # The tag key. self.key = key + # The tag value. self.value = value def validate(self): @@ -13532,6 +14193,7 @@ def __init__( self, tag: List[DescribeServiceMeshesRequestTag] = None, ): + # The tags. self.tag = tag def validate(self): @@ -13577,9 +14239,9 @@ def __init__( self.intranet_pilot_endpoint = intranet_pilot_endpoint # The endpoint that is used to access the API server over the Internet. self.public_api_server_endpoint = public_api_server_endpoint - # The endpoint that is used to expose Istio Pilot to the Internet. + # The public endpoint of the Pilot of the ASM instance. self.public_pilot_endpoint = public_pilot_endpoint - # The endpoint of the reverse tunnel. + # The endpoint of the reverse tunnel (Deprecated). self.reverse_tunnel_endpoint = reverse_tunnel_endpoint def validate(self): @@ -13633,7 +14295,7 @@ def __init__( ): # The time when the ASM instance was created. self.creation_time = creation_time - # The error message. + # The returned error message. self.error_message = error_message # The name of the ASM instance. self.name = name @@ -13713,7 +14375,7 @@ def __init__( pilot_public_eip: bool = None, pilot_public_loadbalancer_id: str = None, ): - # The ID of the SLB instance that is used when the API server is exposed to the Internet. + # The ID of the CLB instance that is used when the API server is exposed to the Internet. self.api_server_loadbalancer_id = api_server_loadbalancer_id # Indicates whether the API server is exposed to the Internet. Valid values: # @@ -13725,7 +14387,7 @@ def __init__( # * `true` # * `false` self.pilot_public_eip = pilot_public_eip - # The ID of the Server Load Balancer (SLB) instance that is used when Istio Pilot is exposed to the Internet. + # The ID of the Classic Load Balancer (CLB) instance that is used when Istio Pilot is exposed to the Internet. self.pilot_public_loadbalancer_id = pilot_public_loadbalancer_id def validate(self): @@ -13760,6 +14422,64 @@ def from_map(self, m: dict = None): return self +class DescribeServiceMeshesResponseBodyServiceMeshesSpecMeshConfigExtraConfigurationPlayground(TeaModel): + def __init__( + self, + scene: str = None, + ): + # The ID of the ASM Playground scenario. + self.scene = scene + + def validate(self): + pass + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.scene is not None: + result['Scene'] = self.scene + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('Scene') is not None: + self.scene = m.get('Scene') + return self + + +class DescribeServiceMeshesResponseBodyServiceMeshesSpecMeshConfigExtraConfiguration(TeaModel): + def __init__( + self, + playground: DescribeServiceMeshesResponseBodyServiceMeshesSpecMeshConfigExtraConfigurationPlayground = None, + ): + # The configurations of the ASM Playground (valid only for ASM Playground instances). + self.playground = playground + + def validate(self): + if self.playground: + self.playground.validate() + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.playground is not None: + result['Playground'] = self.playground.to_map() + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('Playground') is not None: + temp_model = DescribeServiceMeshesResponseBodyServiceMeshesSpecMeshConfigExtraConfigurationPlayground() + self.playground = temp_model.from_map(m['Playground']) + return self + + class DescribeServiceMeshesResponseBodyServiceMeshesSpecMeshConfigPilot(TeaModel): def __init__( self, @@ -13771,7 +14491,7 @@ def __init__( # * `true` # * `false` self.http_10enabled = http_10enabled - # The sampling rate when Tracing Analysis is enabled. + # The sampling rate when Managed Service for OpenTelemetry is enabled. self.trace_sampling = trace_sampling def validate(self): @@ -13809,7 +14529,7 @@ def __init__( # * `true` # * `false` self.enabled = enabled - # The namespace for which sidecar proxy injection is disabled. + # The namespaces in which the CNI plug-in does not check the pods. self.exclude_namespaces = exclude_namespaces def validate(self): @@ -13886,6 +14606,7 @@ def from_map(self, m: dict = None): class DescribeServiceMeshesResponseBodyServiceMeshesSpecMeshConfig(TeaModel): def __init__( self, + extra_configuration: DescribeServiceMeshesResponseBodyServiceMeshesSpecMeshConfigExtraConfiguration = None, mtls: bool = None, outbound_traffic_policy: str = None, pilot: DescribeServiceMeshesResponseBodyServiceMeshesSpecMeshConfigPilot = None, @@ -13894,6 +14615,8 @@ def __init__( telemetry: bool = None, tracing: bool = None, ): + # The extended configurations of the ASM instance. + self.extra_configuration = extra_configuration # Indicates whether nearby access is enabled. Valid values: # # * `true` @@ -13915,13 +14638,15 @@ def __init__( # * `true` # * `false` self.telemetry = telemetry - # Indicates whether the tracing feature is enabled. This feature can be enabled only after Tracing Analysis is activated. Valid values: + # Indicates whether the tracing feature is enabled. This feature can be enabled only after Managed Service for OpenTelemetry is activated. Valid values: # # * `true` # * `false` self.tracing = tracing def validate(self): + if self.extra_configuration: + self.extra_configuration.validate() if self.pilot: self.pilot.validate() if self.sidecar_injector: @@ -13933,6 +14658,8 @@ def to_map(self): return _map result = dict() + if self.extra_configuration is not None: + result['ExtraConfiguration'] = self.extra_configuration.to_map() if self.mtls is not None: result['Mtls'] = self.mtls if self.outbound_traffic_policy is not None: @@ -13951,6 +14678,9 @@ def to_map(self): def from_map(self, m: dict = None): m = m or dict() + if m.get('ExtraConfiguration') is not None: + temp_model = DescribeServiceMeshesResponseBodyServiceMeshesSpecMeshConfigExtraConfiguration() + self.extra_configuration = temp_model.from_map(m['ExtraConfiguration']) if m.get('Mtls') is not None: self.mtls = m.get('Mtls') if m.get('OutboundTrafficPolicy') is not None: @@ -14068,7 +14798,9 @@ def __init__( key: str = None, value: str = None, ): + # The tag key. self.key = key + # The tag value. self.value = value def validate(self): @@ -14116,7 +14848,7 @@ def __init__( self.cluster_spec = cluster_spec # The clusters. self.clusters = clusters - # The information about all endpoints of the ASM instances. + # The information about all endpoints of the ASM instance. self.endpoints = endpoints # The ID of the Alibaba Cloud service instance for which the ASM instance is created. self.owner_id = owner_id @@ -14129,7 +14861,9 @@ def __init__( self.service_mesh_info = service_mesh_info # The specifications of the ASM instance. self.spec = spec + # The details about the tags. self.tag = tag + # Indicates whether the ASM instance can be upgraded. self.upgradable = upgradable def validate(self): @@ -14209,7 +14943,7 @@ def __init__( ): # The request ID. self.request_id = request_id - # The information about the ASM instances. + # The information about the ASM instance. self.service_meshes = service_meshes def validate(self): @@ -14256,9 +14990,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -14294,6 +15025,8 @@ def __init__( service_mesh_id: str = None, ): # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -14407,9 +15140,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -14445,6 +15175,8 @@ def __init__( sub_account_user_id: str = None, ): # The ID of a RAM user or RAM role. + # + # This parameter is required. self.sub_account_user_id = sub_account_user_id def validate(self): @@ -14589,9 +15321,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -14630,6 +15359,8 @@ def __init__( # # * `SubUser`: Query the IDs of all RAM users to which an RBAC role is assigned. # * `RamRole`: Query the IDs of all RAM roles to which an RBAC role is assigned. + # + # This parameter is required. self.user_type = user_type def validate(self): @@ -14699,9 +15430,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -14737,6 +15465,8 @@ def __init__( service_mesh_id: str = None, ): # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -14884,9 +15614,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -14923,8 +15650,12 @@ def __init__( vpc_id: str = None, ): # The region ID. + # + # This parameter is required. self.region_id = region_id # The VPC ID. + # + # This parameter is required. self.vpc_id = vpc_id def validate(self): @@ -15032,6 +15763,8 @@ def __init__( # The maximum number of entries returned. self.max_results = max_results # A pagination token. It can be used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists. + # + # This parameter is required. self.next_token = next_token # The request ID. self.request_id = request_id @@ -15096,9 +15829,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -15221,9 +15951,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -15259,6 +15986,8 @@ def __init__( region_id: str = None, ): # The region ID. + # + # This parameter is required. self.region_id = region_id def validate(self): @@ -15348,6 +16077,8 @@ def __init__( # The maximum number of entries returned on a single page. self.max_results = max_results # The token that marks the end of the current returned page. If this parameter is empty, it indicates that you have retrieved all the data. + # + # This parameter is required. self.next_token = next_token # The request ID. self.request_id = request_id @@ -15412,9 +16143,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -15450,6 +16178,8 @@ def __init__( service_mesh_id: str = None, ): # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -15519,9 +16249,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -15572,6 +16299,8 @@ def __init__( # The namespace. self.name_space = name_space # The ID of the Alibaba Cloud Service Mesh (ASM) instance. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -15635,6 +16364,8 @@ def __init__( # The namespace. self.name_space = name_space # The ID of the Alibaba Cloud Service Mesh (ASM) instance. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -15731,9 +16462,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -15771,10 +16499,16 @@ def __init__( title: str = None, ): # The ID of the Container Service for Kubernetes (ACK) or ACK Serverless cluster. + # + # This parameter is required. self.k_8s_cluster_id = k_8s_cluster_id # The ID of the Service Mesh (ASM) instance. + # + # This parameter is required. self.service_mesh_id = service_mesh_id # The name of the dashboard. + # + # This parameter is required. self.title = title def validate(self): @@ -15895,9 +16629,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -15946,6 +16677,8 @@ def __init__( # The IDs of clusters in the ASM instance. Separate multiple cluster IDs with commas (,). self.namespace = namespace # The name of the namespace. + # + # This parameter is required. self.service_mesh_id = service_mesh_id # The endpoints of the registered service. self.service_type = service_type @@ -16211,9 +16944,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -16249,6 +16979,8 @@ def __init__( service_mesh_id: str = None, ): # The ID of the ASM instance. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -16318,9 +17050,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -16360,6 +17089,8 @@ def __init__( # The name of the lane group. self.group_name = group_name # The ID of the Service Mesh (ASM) instance. + # + # This parameter is required. self.service_mesh_id = service_mesh_id # The name of the lane. self.swim_lane_name = swim_lane_name @@ -16401,6 +17132,8 @@ def __init__( label_selector_value: str = None, request_id: str = None, services_list: str = None, + validation_message: str = None, + weighted_ingress_destination: str = None, ): # The traffic routing rule that routes traffic to the lane by using the ingress gateway. The traffic routing rule contains one or more custom routes. self.ingress_rule = ingress_rule @@ -16414,6 +17147,10 @@ def __init__( self.request_id = request_id # A list of services associated with the lane. self.services_list = services_list + # The status of the swimlane. If the configuration is successful and takes effect, a `null` is returned. Otherwise, an error message is returned. + self.validation_message = validation_message + # This parameter is returned only when the IngressRoutingStrategy parameter is set to weighted. This parameter indicates the domain name of Services in each lane and the request routing weight. The value of this parameter is a serialized JSON string. + self.weighted_ingress_destination = weighted_ingress_destination def validate(self): pass @@ -16436,6 +17173,10 @@ def to_map(self): result['RequestId'] = self.request_id if self.services_list is not None: result['ServicesList'] = self.services_list + if self.validation_message is not None: + result['ValidationMessage'] = self.validation_message + if self.weighted_ingress_destination is not None: + result['WeightedIngressDestination'] = self.weighted_ingress_destination return result def from_map(self, m: dict = None): @@ -16452,6 +17193,10 @@ def from_map(self, m: dict = None): self.request_id = m.get('RequestId') if m.get('ServicesList') is not None: self.services_list = m.get('ServicesList') + if m.get('ValidationMessage') is not None: + self.validation_message = m.get('ValidationMessage') + if m.get('WeightedIngressDestination') is not None: + self.weighted_ingress_destination = m.get('WeightedIngressDestination') return self @@ -16467,9 +17212,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -16505,6 +17247,8 @@ def __init__( service_mesh_id: str = None, ): # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -16533,26 +17277,42 @@ def __init__( fallback_target: str = None, group_name: str = None, ingress_gateway_name: str = None, + ingress_routing_strategy: str = None, ingress_type: str = None, is_permissive: bool = None, route_header: str = None, + service_level_fallback_target: str = None, service_list: str = None, swim_lane_labels: str = None, trace_header: str = None, + weighted_ingress_rule: str = None, ): + # The name of the baseline lane of the lane group in permissive mode. This parameter is valid only for a lane group in permissive mode. self.fallback_target = fallback_target # The name of a lane group. self.group_name = group_name - # The name of the ingress gateway. + # The name of the ASM ingress gateway. self.ingress_gateway_name = ingress_gateway_name - # The ingress type. Traffic routing rules can be configured only in an ingress gateway. + # The policy used to route requests among multiple lanes in a lane group. Valid values: + # + # * weighted: a weight-based request routing policy. Requests are matched based on uniform rules and then routed to different lanes in a lane group at a specified ratio. + # * rule-based: a rule-based request routing policy. Each lane is configured with request routing rules. Only requests that match the request routing rules of a specific lane are routed to the lane. + self.ingress_routing_strategy = ingress_routing_strategy + # The type of gateways in which you can configure request routing rules. You can configure request routing rules only in ASM gateways. self.ingress_type = ingress_type + # Indicates whether the lane group is in permissive mode. self.is_permissive = is_permissive + # The request routing header of the lane group. It is valid only for a lane group in permissive mode. self.route_header = route_header - # A list of services associated with the lane group. + self.service_level_fallback_target = service_level_fallback_target + # The Services associated with the lane group. self.service_list = service_list + # A serialized JSON string. The keys of the JSON object are the keys of the labels owned by all services in the lane group, and the values of the JSON object are arrays of all possible label values of the services in the lane group. self.swim_lane_labels = swim_lane_labels + # The end-to-end (E2E) pass-through request header of the lane group. It is valid only for a lane group in permissive mode. self.trace_header = trace_header + # The weight-based request routing rules for a lane group. This parameter is returned only when the IngressRoutingStrategy parameter is set to weighted. + self.weighted_ingress_rule = weighted_ingress_rule def validate(self): pass @@ -16569,18 +17329,24 @@ def to_map(self): result['GroupName'] = self.group_name if self.ingress_gateway_name is not None: result['IngressGatewayName'] = self.ingress_gateway_name + if self.ingress_routing_strategy is not None: + result['IngressRoutingStrategy'] = self.ingress_routing_strategy if self.ingress_type is not None: result['IngressType'] = self.ingress_type if self.is_permissive is not None: result['IsPermissive'] = self.is_permissive if self.route_header is not None: result['RouteHeader'] = self.route_header + if self.service_level_fallback_target is not None: + result['ServiceLevelFallbackTarget'] = self.service_level_fallback_target if self.service_list is not None: result['ServiceList'] = self.service_list if self.swim_lane_labels is not None: result['SwimLaneLabels'] = self.swim_lane_labels if self.trace_header is not None: result['TraceHeader'] = self.trace_header + if self.weighted_ingress_rule is not None: + result['WeightedIngressRule'] = self.weighted_ingress_rule return result def from_map(self, m: dict = None): @@ -16591,18 +17357,24 @@ def from_map(self, m: dict = None): self.group_name = m.get('GroupName') if m.get('IngressGatewayName') is not None: self.ingress_gateway_name = m.get('IngressGatewayName') + if m.get('IngressRoutingStrategy') is not None: + self.ingress_routing_strategy = m.get('IngressRoutingStrategy') if m.get('IngressType') is not None: self.ingress_type = m.get('IngressType') if m.get('IsPermissive') is not None: self.is_permissive = m.get('IsPermissive') if m.get('RouteHeader') is not None: self.route_header = m.get('RouteHeader') + if m.get('ServiceLevelFallbackTarget') is not None: + self.service_level_fallback_target = m.get('ServiceLevelFallbackTarget') if m.get('ServiceList') is not None: self.service_list = m.get('ServiceList') if m.get('SwimLaneLabels') is not None: self.swim_lane_labels = m.get('SwimLaneLabels') if m.get('TraceHeader') is not None: self.trace_header = m.get('TraceHeader') + if m.get('WeightedIngressRule') is not None: + self.weighted_ingress_rule = m.get('WeightedIngressRule') return self @@ -16614,7 +17386,7 @@ def __init__( ): # The request ID. self.request_id = request_id - # The information about the lane groups. + # The information about the lane group. self.swim_lane_group_list = swim_lane_group_list def validate(self): @@ -16661,9 +17433,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -16702,6 +17471,8 @@ def __init__( # The name of the lane group. self.group_name = group_name # The ID of the Service Mesh (ASM) instance. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -16738,21 +17509,27 @@ def __init__( label_selector_value: str = None, name: str = None, service_list: str = None, + validation_message: str = None, + weighted_ingress_destinatin: str = None, ): - # The name of the lane group. + # The name of a lane group. self.group_name = group_name - # The traffic routing rule associated with the lane. + # The request routing rules. self.ingress_rule = ingress_rule # This parameter is deprecated. self.ingress_service = ingress_service # The label key of the associated service workload. The value is fixed as `ASM_TRAFFIC_TAG`. self.label_selector_key = label_selector_key - # The label value of the associated service workload.`` + # The label value of the associated service workload. The value is fixed as `ASM_TRAFFIC_TAG`. self.label_selector_value = label_selector_value - # The name of a lane. + # The name of the lane. self.name = name - # A list of services associated with the lane. + # Services associated with the lane. self.service_list = service_list + # The verification messages of the lane group. If the service does not exist in the lane group, the verification message is displayed in the verification messages of the lane group. + self.validation_message = validation_message + # This parameter is returned only when the IngressRoutingStrategy parameter is set to weighted. This parameter indicates the domain name of Services in each lane and the request routing weight. The value of this parameter is a serialized JSON string. + self.weighted_ingress_destinatin = weighted_ingress_destinatin def validate(self): pass @@ -16777,6 +17554,10 @@ def to_map(self): result['Name'] = self.name if self.service_list is not None: result['ServiceList'] = self.service_list + if self.validation_message is not None: + result['ValidationMessage'] = self.validation_message + if self.weighted_ingress_destinatin is not None: + result['WeightedIngressDestinatin'] = self.weighted_ingress_destinatin return result def from_map(self, m: dict = None): @@ -16795,6 +17576,10 @@ def from_map(self, m: dict = None): self.name = m.get('Name') if m.get('ServiceList') is not None: self.service_list = m.get('ServiceList') + if m.get('ValidationMessage') is not None: + self.validation_message = m.get('ValidationMessage') + if m.get('WeightedIngressDestinatin') is not None: + self.weighted_ingress_destinatin = m.get('WeightedIngressDestinatin') return self @@ -16806,7 +17591,7 @@ def __init__( ): # The request ID. self.request_id = request_id - # A list of all the lanes in the lane group. + # The swimlanes. self.swim_lane_list = swim_lane_list def validate(self): @@ -16853,9 +17638,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -16891,6 +17673,8 @@ def __init__( service_mesh_id: str = None, ): # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -16960,9 +17744,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -17005,6 +17786,8 @@ def __init__( # The service account. This parameter is valid only after you set the Namespace and the ServiceAccount parameters. self.service_account = service_account # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id # The trusted domain. Default value: cluster.local. This parameter is valid only after you set the Namespace and the ServiceAccount parameters. self.trust_domain = trust_domain @@ -17132,9 +17915,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -17298,9 +18078,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -17337,8 +18114,15 @@ def __init__( namespace: str = None, service_mesh_id: str = None, ): + # The ID of the cluster on the data plane. + # + # This parameter is required. self.cluster_id = cluster_id + # The namespace. self.namespace = namespace + # The ID of the Service Mesh (ASM) instance. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -17375,7 +18159,9 @@ def __init__( name: str = None, namespace: str = None, ): + # The name of the service account. self.name = name + # The namespace where the service account resides. self.namespace = namespace def validate(self): @@ -17408,7 +18194,9 @@ def __init__( request_id: str = None, service_accounts: List[ListServiceAccountsResponseBodyServiceAccounts] = None, ): + # The request ID. self.request_id = request_id + # The list of service accounts. self.service_accounts = service_accounts def validate(self): @@ -17455,9 +18243,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -17540,10 +18325,14 @@ def __init__( # A pagination token. It can be used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists. self.next_token = next_token # The region ID of the ASM instance. + # + # This parameter is required. self.region_id = region_id # The IDs of the ASM instances. self.resource_id = resource_id # The resource type. Set the value to `servicemesh`. + # + # This parameter is required. self.resource_type = resource_type # The tags. A maximum of 20 tags are supported. self.tag = tag @@ -17703,9 +18492,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -17746,13 +18532,20 @@ def __init__( service_mesh_id: str = None, ): # The ID of the cluster on the data plane. + # + # This parameter is required. self.cluster_id = cluster_id + # Used in conjunction with Limit, it is used to query waypoints starting from a specified offset. When calling for the first time, no need to care abount it. If the Continue in the returned result is not empty, it means that there is still data that has not been returned, and you need to continue the call with the returned Continue. self.continue_ = continue_ + # Limit the number of waypoints returned. self.limit = limit + # Waypoint which you want to get. If empty, return all waypoints. self.name = name # The namespace. self.namespace = namespace # The Service Mesh (ASM) instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -17823,23 +18616,23 @@ def __init__( self.hpatarget_cpu = hpatarget_cpu # The expected memory usage when HPA is enabled. self.hpatarget_memory = hpatarget_memory - # The maximum number of CPU cores that are available to the waypoint proxy pods. + # The maximum amount of CPU resources that are available to the waypoint proxy pods. self.limit_cpu = limit_cpu - # The maximum size of the memory that is available to the waypoint proxy pods. + # The maximum amount of memory resources that are available to the waypoint proxy pods. self.limit_memory = limit_memory - # The name of the gateway resource corresponding to the waypoint proxy. If the waypoint proxy takes effect on a service account, the name is the service account name. If the waypoint proxy takes effect for the entire namespace, the name is "namespace". + # The name of the gateway resource for the waypoint proxy. If the waypoint proxy applies to a service account, the name is the service account name. If the waypoint proxy applies to the entire namespace, the name is `namespace`. self.name = name # The namespace. self.namespace = namespace - # Indicates whether waypoint proxy pods are deployed based on Elastic Container Instance (ECI). + # Indicates whether waypoint proxy pods are preferentially scheduled to elastic container instances. self.prefer_eci = prefer_eci # The number of waypoint proxy pods. self.replicas = replicas - # The number of CPU cores requested by the waypoint proxy pods. + # The amount of CPU resources requested by the waypoint proxy pods. self.request_cpu = request_cpu - # The size of the memory requested by the waypoint proxy pods. + # The amount of memory resources requested by the waypoint proxy pods. self.request_memory = request_memory - # The service account on which the waypoint proxy takes effect. If this parameter is not specified, the waypoint proxy takes effect for the entire namespace. + # The service account to which the waypoint proxy applies. If no value is returned for this parameter, the waypoint proxy applies to the entire namespace. self.service_account = service_account def validate(self): @@ -17921,10 +18714,11 @@ def __init__( request_id: str = None, waypoints: List[ListWaypointsResponseBodyWaypoints] = None, ): + # Base64 encoded string. If it is empty, it means that all waypoints have been obtained; if it is not empty, this value should be included in the next list, and you can continue to obtain it from the offset that ends this time. self.continue_ = continue_ # The request ID. self.request_id = request_id - # The list of waypoint proxy configurations. + # The configurations of waypoint proxies. self.waypoints = waypoints def validate(self): @@ -17975,9 +18769,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -18092,9 +18883,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -18124,6 +18912,127 @@ def from_map(self, m: dict = None): return self +class ModifyPilotEipResourceRequest(TeaModel): + def __init__( + self, + eip_id: str = None, + is_canary: bool = None, + operation: str = None, + service_mesh_id: str = None, + ): + self.eip_id = eip_id + # The type of the Istio Pilot with which you want to associate the EIPs. Valid values: + # + # * `true`: Bind an EIP to the Istio Pilot during canary release (only valid during the canary release). + # * `false`: Bind an EIP to the Istio Pilot in stable state. + self.is_canary = is_canary + # The type of the operation that you want to perform. Valid values: + # + # * `UnBindEip`: unbinds an elastic IP address (EIP) from the Istio Pilot. + # * `BindEip`: binds an EIP to the Istio Pilot. + self.operation = operation + self.service_mesh_id = service_mesh_id + + def validate(self): + pass + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.eip_id is not None: + result['EipId'] = self.eip_id + if self.is_canary is not None: + result['IsCanary'] = self.is_canary + if self.operation is not None: + result['Operation'] = self.operation + if self.service_mesh_id is not None: + result['ServiceMeshId'] = self.service_mesh_id + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('EipId') is not None: + self.eip_id = m.get('EipId') + if m.get('IsCanary') is not None: + self.is_canary = m.get('IsCanary') + if m.get('Operation') is not None: + self.operation = m.get('Operation') + if m.get('ServiceMeshId') is not None: + self.service_mesh_id = m.get('ServiceMeshId') + return self + + +class ModifyPilotEipResourceResponseBody(TeaModel): + def __init__( + self, + request_id: str = None, + ): + self.request_id = request_id + + def validate(self): + pass + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.request_id is not None: + result['RequestId'] = self.request_id + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('RequestId') is not None: + self.request_id = m.get('RequestId') + return self + + +class ModifyPilotEipResourceResponse(TeaModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + body: ModifyPilotEipResourceResponseBody = None, + ): + self.headers = headers + self.status_code = status_code + self.body = body + + def validate(self): + if self.body: + self.body.validate() + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.headers is not None: + result['headers'] = self.headers + if self.status_code is not None: + result['statusCode'] = self.status_code + if self.body is not None: + result['body'] = self.body.to_map() + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + if m.get('body') is not None: + temp_model = ModifyPilotEipResourceResponseBody() + self.body = temp_model.from_map(m['body']) + return self + + class ModifyServiceMeshNameRequest(TeaModel): def __init__( self, @@ -18131,8 +19040,12 @@ def __init__( service_mesh_id: str = None, ): # The new name of the ASM instance. + # + # This parameter is required. self.name = name # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -18199,9 +19112,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -18243,6 +19153,8 @@ def __init__( # * false: does not recreate a project. self.enable_audit = enable_audit # The ID of the Service Mesh (ASM) instance. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -18316,9 +19228,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -18355,8 +19264,15 @@ def __init__( reserve_namespace: bool = None, service_mesh_id: str = None, ): + # The ID of the cluster that you want to delete. + # + # This parameter is required. self.cluster_id = cluster_id + # Specifies whether to reserve the istio-system namespace when you delete the cluster. Valid values: true and false. self.reserve_namespace = reserve_namespace + # The ID of the Service Mesh (ASM) instance. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -18394,8 +19310,11 @@ def __init__( message: str = None, request_id: str = None, ): + # The returned status code. self.code = code + # The returned message. self.message = message + # The request ID. self.request_id = request_id def validate(self): @@ -18438,9 +19357,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -18477,8 +19393,12 @@ def __init__( service_mesh_id: str = None, ): # The ID of the ECS instance. + # + # This parameter is required. self.ecs_id = ecs_id # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -18545,9 +19465,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -18589,6 +19506,8 @@ def __init__( # * `false`: returns the kubeconfig file for public access. self.private_ip_address = private_ip_address # The ID of the ASM instance for which you want to revoke its kubeconfig file. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -18662,9 +19581,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -18709,6 +19625,8 @@ def __init__( # * The tag key can be up to 128 characters in length. # * The tag key cannot start with `aliyun` or `acs:`. # * The tag key cannot contain `http://` or `https://`. + # + # This parameter is required. self.key = key # The tag values. # @@ -18718,6 +19636,8 @@ def __init__( # * Valid values of N: 1 to 20. # * The tag value can be up to 128 characters in length. # * The tag value cannot contain `http://` or `https://`. + # + # This parameter is required. self.value = value def validate(self): @@ -18753,12 +19673,20 @@ def __init__( tag: List[TagResourcesRequestTag] = None, ): # The region ID of the Service Mesh (ASM) instance. + # + # This parameter is required. self.region_id = region_id # The IDs of the ASM instances. + # + # This parameter is required. self.resource_id = resource_id # The resource type. Set the value to `servicemesh`. + # + # This parameter is required. self.resource_type = resource_type # The tags. + # + # This parameter is required. self.tag = tag def validate(self): @@ -18841,9 +19769,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -18890,10 +19815,16 @@ def __init__( # Default value: false. self.all = all # The region ID of the ASM instance. + # + # This parameter is required. self.region_id = region_id # The IDs of the ASM instances. + # + # This parameter is required. self.resource_id = resource_id # The resource type. Set the value to `servicemesh`. + # + # This parameter is required. self.resource_type = resource_type # The tag keys. self.tag_key = tag_key @@ -18974,9 +19905,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -19018,6 +19946,8 @@ def __init__( # The name of the ASM gateway. self.istio_gateway_name = istio_gateway_name # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -19088,9 +20018,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -19131,6 +20058,8 @@ def __init__( # The name of the ASM gateway. self.asmgateway_name = asmgateway_name # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id # The names of the services. Separate multiple service names with commas (,). Example: reviews,sleep. self.service_names = service_names @@ -19209,9 +20138,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -19248,8 +20174,12 @@ def __init__( service_mesh_id: str = None, ): # The ID of the Kubernetes cluster whose namespace information you want to synchronize to ASM. The Kubernetes cluster is added to the ASM instance that is specified by the ServiceMeshId parameter. + # + # This parameter is required. self.k_8s_cluster_id = k_8s_cluster_id # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -19316,9 +20246,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -19357,12 +20284,16 @@ def __init__( service_mesh_id: str = None, ): # Specifies whether to collect control plane logs to Simple Log Service. + # + # This parameter is required. self.enabled = enabled # The time to live (TTL) period of the collected logs. Unit: day. self.log_ttlin_day = log_ttlin_day # The name of the Simple Log Service project to which control plane logs are collected. self.project = project # The ID of the Service Mesh (ASM) instance. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -19437,9 +20368,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -19469,6 +20397,115 @@ def from_map(self, m: dict = None): return self +class UpdateGuestClusterConfigRequest(TeaModel): + def __init__( + self, + guest_cluster_id: str = None, + smcenabled: bool = None, + service_mesh_id: str = None, + ): + self.guest_cluster_id = guest_cluster_id + self.smcenabled = smcenabled + # This parameter is required. + self.service_mesh_id = service_mesh_id + + def validate(self): + pass + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.guest_cluster_id is not None: + result['GuestClusterId'] = self.guest_cluster_id + if self.smcenabled is not None: + result['SMCEnabled'] = self.smcenabled + if self.service_mesh_id is not None: + result['ServiceMeshId'] = self.service_mesh_id + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('GuestClusterId') is not None: + self.guest_cluster_id = m.get('GuestClusterId') + if m.get('SMCEnabled') is not None: + self.smcenabled = m.get('SMCEnabled') + if m.get('ServiceMeshId') is not None: + self.service_mesh_id = m.get('ServiceMeshId') + return self + + +class UpdateGuestClusterConfigResponseBody(TeaModel): + def __init__( + self, + request_id: str = None, + ): + # Id of the request + self.request_id = request_id + + def validate(self): + pass + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.request_id is not None: + result['RequestId'] = self.request_id + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('RequestId') is not None: + self.request_id = m.get('RequestId') + return self + + +class UpdateGuestClusterConfigResponse(TeaModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + body: UpdateGuestClusterConfigResponseBody = None, + ): + self.headers = headers + self.status_code = status_code + self.body = body + + def validate(self): + if self.body: + self.body.validate() + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.headers is not None: + result['headers'] = self.headers + if self.status_code is not None: + result['statusCode'] = self.status_code + if self.body is not None: + result['body'] = self.body.to_map() + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + if m.get('body') is not None: + temp_model = UpdateGuestClusterConfigResponseBody() + self.body = temp_model.from_map(m['body']) + return self + + class UpdateIstioGatewayRoutesRequestGatewayRouteHTTPAdvancedOptionsDelegate(TeaModel): def __init__( self, @@ -20405,6 +21442,8 @@ def __init__( # The priority of the routing rule. The value of this parameter is an integer. A smaller value indicates a higher priority. self.priority = priority # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id # The status of the routing rule. Valid values: # @@ -20474,6 +21513,8 @@ def __init__( # The priority of the routing rule. The value of this parameter is an integer. A smaller value indicates a higher priority. self.priority = priority # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id # The status of the routing rule. Valid values: # @@ -20562,9 +21603,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -20616,8 +21654,12 @@ def __init__( # Specifies the version to be injected into the namespace. This parameter is valid only when the ASM instance performs a canary release. When IstioRev is not empty, you must not specify EnableIstioInjection and EnableSidecarSetInjection. self.istio_rev = istio_rev # The namespace for which you want to modify the sidecar injection setting. + # + # This parameter is required. self.namespace = namespace # The ID of the ASM instance. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -20700,9 +21742,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -20751,6 +21790,8 @@ def __init__( # The name of the routing rule. self.route_name = route_name # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id # The status of the routing rule. Valid values: 0: The routing rule is valid. 1: The routing rule is invalid. 2: An error occurs during the creation or update of the routing rule. self.status = status @@ -20835,9 +21876,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -20892,6 +21930,8 @@ def __init__( # The size of the memory that is requested by the components installed in the ACK cluster on the data plane if you enable the Kubernetes API to access Istio resources in the ASM instance. You can specify the parameter value in the standard quantity representation used by Kubernetes. 1 Mi equals 1,024 KB. self.memory_requirement = memory_requirement # The Service Mesh (ASM) instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id # Specifies whether the Kubernetes API on the data plane uses the public endpoint of the API server to access Istio resources in the ASM instance. Valid values: # @@ -20985,9 +22025,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -21034,6 +22071,7 @@ def __init__( audit_project: str = None, auto_injection_policy_enabled: bool = None, craggregation_enabled: bool = None, + cert_chain: str = None, cluster_spec: str = None, cni_enabled: bool = None, cni_exclude_namespaces: str = None, @@ -21055,6 +22093,9 @@ def __init__( exclude_ipranges: str = None, exclude_inbound_ports: str = None, exclude_outbound_ports: str = None, + existing_ca_cert: str = None, + existing_ca_key: str = None, + existing_root_ca_cert: str = None, filter_gateway_cluster_config: bool = None, gateway_apienabled: bool = None, hold_application_until_proxy_starts: bool = None, @@ -21067,6 +22108,7 @@ def __init__( kiali_arms_auth_tokens: str = None, kiali_enabled: bool = None, kiali_service_annotations: str = None, + labels_for_offloaded_workloads: str = None, lifecycle: str = None, locality_lbconf: str = None, locality_load_balancing: bool = None, @@ -21090,6 +22132,7 @@ def __init__( opa_enabled: bool = None, open_agent_policy: bool = None, outbound_traffic_policy: str = None, + pilot_enable_quic_listeners: bool = None, prometheus_url: str = None, proxy_init_cpuresource_limit: str = None, proxy_init_cpuresource_request: str = None, @@ -21101,6 +22144,7 @@ def __init__( proxy_request_memory: str = None, proxy_stats_matcher: str = None, redis_filter_enabled: bool = None, + smcenabled: bool = None, service_mesh_id: str = None, sidecar_injector_limit_cpu: str = None, sidecar_injector_limit_memory: str = None, @@ -21116,6 +22160,7 @@ def __init__( tracing: bool = None, tracing_on_ext_zipkin_limit_cpu: str = None, tracing_on_ext_zipkin_limit_memory: str = None, + tracing_on_ext_zipkin_replica_count: str = None, tracing_on_ext_zipkin_request_cpu: str = None, tracing_on_ext_zipkin_request_memory: str = None, web_assembly_filter_enabled: bool = None, @@ -21134,6 +22179,7 @@ def __init__( self.access_log_file = access_log_file # The custom format of access logs. To set this parameter, make sure that you have enabled access log collection. The value must be a JSON string. The following key names must be contained: authority_for, bytes_received, bytes_sent, downstream_local_address, downstream_remote_address, duration, istio_policy_status, method, path, protocol, requested_server_name, response_code, response_flags, route_name, start_time, trace_id, upstream_cluster, upstream_host, upstream_local_address, upstream_service_time, upstream_transport_failure_reason, user_agent, and x_forwarded_for. self.access_log_format = access_log_format + # Specifies whether to enable the collection of access logs of ASM gateways to Simple Log Service. self.access_log_gateway_enabled = access_log_gateway_enabled # The retention period for the access logs of the sidecar proxy. Unit: day. The logs are collected by using Log Service. For example, `30` indicates 30 days. self.access_log_gateway_lifecycle = access_log_gateway_lifecycle @@ -21150,6 +22196,7 @@ def __init__( self.access_log_service_host = access_log_service_host # The port of gRPC ALS for Envoy. self.access_log_service_port = access_log_service_port + # Specifies whether to enable the collection of access logs of sidecar proxies to Simple Log Service. self.access_log_sidecar_enabled = access_log_sidecar_enabled # Specifies whether to enable automatic diagnostics for the ASM instance. If you enable this feature, the ASM instance is automatically diagnosed when you modify Istio resources in the ASM instance. self.access_log_sidecar_lifecycle = access_log_sidecar_lifecycle @@ -21166,6 +22213,8 @@ def __init__( self.auto_injection_policy_enabled = auto_injection_policy_enabled # Specifies whether to use the Kubernetes API of clusters on the data plane to access Istio resources. To use this feature, the version of the ASM instance must be V1.9.7.93 or later. self.craggregation_enabled = craggregation_enabled + # The certificate chain from the CA certificate to the root certificate. At least two certificates are included in the chain. + self.cert_chain = cert_chain # Specifies whether to enable the feature of controlling the OPA injection scope. Valid values: # # * `true`: enables the feature. @@ -21218,7 +22267,7 @@ def __init__( # # * Modifying the value of this parameter is a high-risk operation. The modification will cause all components on the data plane of ASM to restart. Exercise caution before modifying the value of this parameter. # - # * The configurations specified by this parameter do not apply to the ASM gateway. You can configure gateway-specific scheduling on the ASM gateway. + # * The configurations specified by this parameter do not apply to ASM gateways. You can configure gateway-specific scheduling on ASM gateways. self.default_components_schedule_config = default_components_schedule_config # The label selectors used to specify the namespaces of the clusters on the data plane for selective service discovery. self.discovery_selectors = discovery_selectors @@ -21262,6 +22311,12 @@ def __init__( self.exclude_inbound_ports = exclude_inbound_ports # The ports for which outbound traffic is not redirected to the sidecar proxy. Separate multiple ports with commas (,). self.exclude_outbound_ports = exclude_outbound_ports + # The updated certificate authority (CA) certificate. You can modify this parameter only if you use a custom certificate when you create an ASM instance. + self.existing_ca_cert = existing_ca_cert + # The updated CA certificate key. You can modify this parameter only if you use a custom certificate when you create an ASM instance. + self.existing_ca_key = existing_ca_key + # The updated root certificate. You can modify this parameter only if you use a custom certificate when you create a Service Mesh (ASM) instance. + self.existing_root_ca_cert = existing_root_ca_cert # Specifies whether to enable gateway configuration filtering. Valid values: # # * `true`: enables gateway configuration filtering. @@ -21291,7 +22346,7 @@ def __init__( self.include_inbound_ports = include_inbound_ports # The log level of the sidecar proxy on the data plane. Log levels include `none`, `error`, `warn`, `info`, and `debug`. The levels correspond to different amounts of information reported by the logs. For example, none-level logs report the least information, while debug-level logs report the most information. self.include_outbound_ports = include_outbound_ports - # Specifies whether to enable Node Feature Discovery (NFD). + # Specifies whether to create a Classic Load Balancer (CLB) instance for accessing Mesh Topology of Service Mesh (ASM). self.integrate_kiali = integrate_kiali # Specifies whether to load the bootstrap configuration before the sidecar proxy is started. self.interception_mode = interception_mode @@ -21313,6 +22368,8 @@ def __init__( # # For more information about how to configure CLB instances by using annotations, see [Add annotations to the YAML file of a Service to configure CLB instances](https://www.alibabacloud.com/help/container-service-for-kubernetes/latest/use-annotations-to-configure-load-balancing-1). self.kiali_service_annotations = kiali_service_annotations + # The labels for isolated workloads. + self.labels_for_offloaded_workloads = labels_for_offloaded_workloads # The lifecycle of the sidecar proxy. self.lifecycle = lifecycle # The configurations of cross-region load balancing. Valid values: @@ -21353,10 +22410,10 @@ def __init__( self.locality_load_balancing = locality_load_balancing # The number of worker threads used by the sidecar proxy on the data plane. self.log_level = log_level - # Specifies whether to enable Microservice Engine (MSE). Valid values: + # Specifies whether to enable Microservices Engine (MSE). Valid values: # - # * `true`: enables MSE. - # * `false`: disables MSE. + # * `true` + # * `false` # # Default value: `false`. self.mseenabled = mseenabled @@ -21420,6 +22477,8 @@ def __init__( # * `ALLOW_ANY`: allows access to all external services. # * `REGISTRY_ONLY`: allows access to only the external services that are defined in the ServiceEntry of the ASM instance. self.outbound_traffic_policy = outbound_traffic_policy + # Specifies whether to support HTTP/3. + self.pilot_enable_quic_listeners = pilot_enable_quic_listeners # The endpoint of Prometheus monitoring. If you use ARMS Prometheus, set this parameter to the endpoint of Prometheus provided by ARMS. self.prometheus_url = prometheus_url # The maximum number of CPU cores that are available to the istio-init container. @@ -21450,7 +22509,11 @@ def __init__( # # Default value: `false`. self.redis_filter_enabled = redis_filter_enabled + # Specifies whether to enable SMC optimization. + self.smcenabled = smcenabled # The ID of the ASM instance. + # + # This parameter is required. self.service_mesh_id = service_mesh_id # The maximum number of CPU cores that are available to the pod where a sidecar proxy injector resides. self.sidecar_injector_limit_cpu = sidecar_injector_limit_cpu @@ -21505,10 +22568,10 @@ def __init__( self.trace_max_path_tag_length = trace_max_path_tag_length # The sampling percentage of Tracing Analysis. self.trace_sampling = trace_sampling - # Specifies whether to enable the Tracing Analysis feature. To enable this feature, make sure that you have activated [Tracing Analysis](https://tracing-analysis.console.aliyun.com/). Valid values: + # Specifies whether to enable Managed Service for OpenTelemetry. (Before you enable [Managed Service for OpenTelemetry](https://tracing-analysis.console.aliyun.com/), make sure that you have activated it.) Valid values: # - # * `true`: enables the Tracing Analysis feature. - # * `false`: disables the Tracing Analysis feature. + # * `true` + # * `false` # # Default value: `false`. self.tracing = tracing @@ -21516,6 +22579,8 @@ def __init__( self.tracing_on_ext_zipkin_limit_cpu = tracing_on_ext_zipkin_limit_cpu # The retention period for the access logs of the ingress gateway. Unit: day. The logs are collected by using Log Service. For example, `30` indicates 30 days. self.tracing_on_ext_zipkin_limit_memory = tracing_on_ext_zipkin_limit_memory + # The number of replicas that are available to the proxy service that exports Managed Service for OpenTelemetry data. + self.tracing_on_ext_zipkin_replica_count = tracing_on_ext_zipkin_replica_count # The minimum size of the memory requested by the proxy service that exports Tracing Analysis data. For example, `1Mi` indicates 1 MB. self.tracing_on_ext_zipkin_request_cpu = tracing_on_ext_zipkin_request_cpu # The maximum number of CPU cores that are available to the proxy service that exports Tracing Analysis data. For example, `1000m` indicates one CPU core. @@ -21565,6 +22630,8 @@ def to_map(self): result['AutoInjectionPolicyEnabled'] = self.auto_injection_policy_enabled if self.craggregation_enabled is not None: result['CRAggregationEnabled'] = self.craggregation_enabled + if self.cert_chain is not None: + result['CertChain'] = self.cert_chain if self.cluster_spec is not None: result['ClusterSpec'] = self.cluster_spec if self.cni_enabled is not None: @@ -21607,6 +22674,12 @@ def to_map(self): result['ExcludeInboundPorts'] = self.exclude_inbound_ports if self.exclude_outbound_ports is not None: result['ExcludeOutboundPorts'] = self.exclude_outbound_ports + if self.existing_ca_cert is not None: + result['ExistingCaCert'] = self.existing_ca_cert + if self.existing_ca_key is not None: + result['ExistingCaKey'] = self.existing_ca_key + if self.existing_root_ca_cert is not None: + result['ExistingRootCaCert'] = self.existing_root_ca_cert if self.filter_gateway_cluster_config is not None: result['FilterGatewayClusterConfig'] = self.filter_gateway_cluster_config if self.gateway_apienabled is not None: @@ -21631,6 +22704,8 @@ def to_map(self): result['KialiEnabled'] = self.kiali_enabled if self.kiali_service_annotations is not None: result['KialiServiceAnnotations'] = self.kiali_service_annotations + if self.labels_for_offloaded_workloads is not None: + result['LabelsForOffloadedWorkloads'] = self.labels_for_offloaded_workloads if self.lifecycle is not None: result['Lifecycle'] = self.lifecycle if self.locality_lbconf is not None: @@ -21677,6 +22752,8 @@ def to_map(self): result['OpenAgentPolicy'] = self.open_agent_policy if self.outbound_traffic_policy is not None: result['OutboundTrafficPolicy'] = self.outbound_traffic_policy + if self.pilot_enable_quic_listeners is not None: + result['PilotEnableQuicListeners'] = self.pilot_enable_quic_listeners if self.prometheus_url is not None: result['PrometheusUrl'] = self.prometheus_url if self.proxy_init_cpuresource_limit is not None: @@ -21699,6 +22776,8 @@ def to_map(self): result['ProxyStatsMatcher'] = self.proxy_stats_matcher if self.redis_filter_enabled is not None: result['RedisFilterEnabled'] = self.redis_filter_enabled + if self.smcenabled is not None: + result['SMCEnabled'] = self.smcenabled if self.service_mesh_id is not None: result['ServiceMeshId'] = self.service_mesh_id if self.sidecar_injector_limit_cpu is not None: @@ -21729,6 +22808,8 @@ def to_map(self): result['TracingOnExtZipkinLimitCPU'] = self.tracing_on_ext_zipkin_limit_cpu if self.tracing_on_ext_zipkin_limit_memory is not None: result['TracingOnExtZipkinLimitMemory'] = self.tracing_on_ext_zipkin_limit_memory + if self.tracing_on_ext_zipkin_replica_count is not None: + result['TracingOnExtZipkinReplicaCount'] = self.tracing_on_ext_zipkin_replica_count if self.tracing_on_ext_zipkin_request_cpu is not None: result['TracingOnExtZipkinRequestCPU'] = self.tracing_on_ext_zipkin_request_cpu if self.tracing_on_ext_zipkin_request_memory is not None: @@ -21767,6 +22848,8 @@ def from_map(self, m: dict = None): self.auto_injection_policy_enabled = m.get('AutoInjectionPolicyEnabled') if m.get('CRAggregationEnabled') is not None: self.craggregation_enabled = m.get('CRAggregationEnabled') + if m.get('CertChain') is not None: + self.cert_chain = m.get('CertChain') if m.get('ClusterSpec') is not None: self.cluster_spec = m.get('ClusterSpec') if m.get('CniEnabled') is not None: @@ -21809,6 +22892,12 @@ def from_map(self, m: dict = None): self.exclude_inbound_ports = m.get('ExcludeInboundPorts') if m.get('ExcludeOutboundPorts') is not None: self.exclude_outbound_ports = m.get('ExcludeOutboundPorts') + if m.get('ExistingCaCert') is not None: + self.existing_ca_cert = m.get('ExistingCaCert') + if m.get('ExistingCaKey') is not None: + self.existing_ca_key = m.get('ExistingCaKey') + if m.get('ExistingRootCaCert') is not None: + self.existing_root_ca_cert = m.get('ExistingRootCaCert') if m.get('FilterGatewayClusterConfig') is not None: self.filter_gateway_cluster_config = m.get('FilterGatewayClusterConfig') if m.get('GatewayAPIEnabled') is not None: @@ -21833,6 +22922,8 @@ def from_map(self, m: dict = None): self.kiali_enabled = m.get('KialiEnabled') if m.get('KialiServiceAnnotations') is not None: self.kiali_service_annotations = m.get('KialiServiceAnnotations') + if m.get('LabelsForOffloadedWorkloads') is not None: + self.labels_for_offloaded_workloads = m.get('LabelsForOffloadedWorkloads') if m.get('Lifecycle') is not None: self.lifecycle = m.get('Lifecycle') if m.get('LocalityLBConf') is not None: @@ -21879,6 +22970,8 @@ def from_map(self, m: dict = None): self.open_agent_policy = m.get('OpenAgentPolicy') if m.get('OutboundTrafficPolicy') is not None: self.outbound_traffic_policy = m.get('OutboundTrafficPolicy') + if m.get('PilotEnableQuicListeners') is not None: + self.pilot_enable_quic_listeners = m.get('PilotEnableQuicListeners') if m.get('PrometheusUrl') is not None: self.prometheus_url = m.get('PrometheusUrl') if m.get('ProxyInitCPUResourceLimit') is not None: @@ -21901,6 +22994,8 @@ def from_map(self, m: dict = None): self.proxy_stats_matcher = m.get('ProxyStatsMatcher') if m.get('RedisFilterEnabled') is not None: self.redis_filter_enabled = m.get('RedisFilterEnabled') + if m.get('SMCEnabled') is not None: + self.smcenabled = m.get('SMCEnabled') if m.get('ServiceMeshId') is not None: self.service_mesh_id = m.get('ServiceMeshId') if m.get('SidecarInjectorLimitCPU') is not None: @@ -21931,6 +23026,8 @@ def from_map(self, m: dict = None): self.tracing_on_ext_zipkin_limit_cpu = m.get('TracingOnExtZipkinLimitCPU') if m.get('TracingOnExtZipkinLimitMemory') is not None: self.tracing_on_ext_zipkin_limit_memory = m.get('TracingOnExtZipkinLimitMemory') + if m.get('TracingOnExtZipkinReplicaCount') is not None: + self.tracing_on_ext_zipkin_replica_count = m.get('TracingOnExtZipkinReplicaCount') if m.get('TracingOnExtZipkinRequestCPU') is not None: self.tracing_on_ext_zipkin_request_cpu = m.get('TracingOnExtZipkinRequestCPU') if m.get('TracingOnExtZipkinRequestMemory') is not None: @@ -21980,9 +23077,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -22012,128 +23106,710 @@ def from_map(self, m: dict = None): return self -class UpdateNamespaceScopeSidecarConfigRequest(TeaModel): +class UpdateMeshMultiClusterNetworkRequest(TeaModel): def __init__( self, - concurrency: int = None, - enable_core_dump: bool = None, - exclude_ipranges: str = None, - exclude_inbound_ports: str = None, - exclude_outbound_ports: str = None, - hold_application_until_proxy_starts: bool = None, - include_ipranges: str = None, - include_inbound_ports: str = None, - include_outbound_ports: str = None, - interception_mode: str = None, - istio_dnsproxy_enabled: bool = None, - lifecycle: str = None, - log_level: str = None, - namespace: str = None, - post_start: str = None, - pre_stop: str = None, - privileged: bool = None, - proxy_init_ack_slo_cpuresource_limit: str = None, - proxy_init_ack_slo_cpuresource_request: str = None, - proxy_init_ack_slo_memory_resource_limit: str = None, - proxy_init_ack_slo_memory_resource_request: str = None, - proxy_init_cpuresource_limit: str = None, - proxy_init_cpuresource_request: str = None, - proxy_init_memory_resource_limit: str = None, - proxy_init_memory_resource_request: str = None, - proxy_metadata: str = None, - proxy_stats_matcher: str = None, - readiness_failure_threshold: int = None, - readiness_initial_delay_seconds: int = None, - readiness_period_seconds: int = None, + multi_cluster_networks: Dict[str, MultiClusterNetworksValue] = None, service_mesh_id: str = None, - sidecar_proxy_ack_slo_cpuresource_limit: str = None, - sidecar_proxy_ack_slo_cpuresource_request: str = None, - sidecar_proxy_ack_slo_memory_resource_limit: str = None, - sidecar_proxy_ack_slo_memory_resource_request: str = None, - sidecar_proxy_cpuresource_limit: str = None, - sidecar_proxy_cpuresource_request: str = None, - sidecar_proxy_memory_resource_limit: str = None, - sidecar_proxy_memory_resource_request: str = None, - termination_drain_duration: str = None, - tracing: str = None, ): - # The number of worker threads to run in Istio Proxy. - self.concurrency = concurrency - self.enable_core_dump = enable_core_dump - # The range of IP addresses that are allowed to access external services. (`global.proxy.excludelPRanges`) - self.exclude_ipranges = exclude_ipranges - # The port that the inbound traffic of the sidecar proxy does not pass through. - self.exclude_inbound_ports = exclude_inbound_ports - # The port that the outbound traffic of the sidecar proxy does not pass through. - self.exclude_outbound_ports = exclude_outbound_ports - # Specifies whether applications can be started only after Istio Proxy starts. Valid values: - # - # * `true`: Applications can be started only after Istio Proxy starts. - # * `false`: Applications can be started before Istio Proxy starts. - self.hold_application_until_proxy_starts = hold_application_until_proxy_starts - # The range of IP addresses that are denied to access external services. (`global.proxy.includelPRanges`) - self.include_ipranges = include_ipranges - # The port that the inbound traffic of the sidecar proxy passes through. - self.include_inbound_ports = include_inbound_ports - # The port that the outbound traffic of the sidecar proxy passes through. - self.include_outbound_ports = include_outbound_ports - # The mode in which the sidecar proxy intercepts inbound traffic. Valid values: - # - # * `REDIRECT`: The sidecar proxy intercepts inbound traffic in the REDIRECT mode. - # * `TPROXY`: The sidecar proxy intercepts inbound traffic in the TPROXY mode. - self.interception_mode = interception_mode - # Specifies whether to enable the Domain Name System (DNS) proxy feature. Valid values: - # - # * `true`: The DNS proxy feature is enabled. - # * `false`: The DNS proxy feature is disabled. - self.istio_dnsproxy_enabled = istio_dnsproxy_enabled - # The lifecycle of the sidecar proxy. - self.lifecycle = lifecycle - # The log level. Valid values: `info`, `debug`, `tracing`, and `error`. - self.log_level = log_level - # The namespace for which you want to update the sidecar proxy configurations. - self.namespace = namespace - # The post-start parameters of Istio Proxy. - self.post_start = post_start - # The pre-close parameters of Istio Proxy. - self.pre_stop = pre_stop - self.privileged = privileged - self.proxy_init_ack_slo_cpuresource_limit = proxy_init_ack_slo_cpuresource_limit - self.proxy_init_ack_slo_cpuresource_request = proxy_init_ack_slo_cpuresource_request - self.proxy_init_ack_slo_memory_resource_limit = proxy_init_ack_slo_memory_resource_limit - self.proxy_init_ack_slo_memory_resource_request = proxy_init_ack_slo_memory_resource_request - # The maximum number of CPU cores that are available to the sidecar proxy init container. - self.proxy_init_cpuresource_limit = proxy_init_cpuresource_limit - # The minimum number of CPU cores that are requested by the sidecar proxy init container. - self.proxy_init_cpuresource_request = proxy_init_cpuresource_request - # The maximum size of memory that is available to the sidecar proxy init container. - self.proxy_init_memory_resource_limit = proxy_init_memory_resource_limit - # The minimum size of memory that is requested by the sidecar proxy init container. - self.proxy_init_memory_resource_request = proxy_init_memory_resource_request - # The environment variables that are added to a sidecar proxy. The environment variables are represented as JSON objects. The keys and values in the JSON objects represent the keys and values added to the environment variables of the sidecar proxy. - self.proxy_metadata = proxy_metadata - # The monitoring metrics for data collected by Envoy proxies. The value is in the JSON format. - self.proxy_stats_matcher = proxy_stats_matcher - self.readiness_failure_threshold = readiness_failure_threshold - self.readiness_initial_delay_seconds = readiness_initial_delay_seconds - self.readiness_period_seconds = readiness_period_seconds + # The network configuration descriptions of multiple Kubernetes clusters. The key in the map is the ID of a Kubernetes cluster, and the value is the network configuration of the cluster. + self.multi_cluster_networks = multi_cluster_networks # The ID of the ASM instance. - self.service_mesh_id = service_mesh_id - self.sidecar_proxy_ack_slo_cpuresource_limit = sidecar_proxy_ack_slo_cpuresource_limit - self.sidecar_proxy_ack_slo_cpuresource_request = sidecar_proxy_ack_slo_cpuresource_request - self.sidecar_proxy_ack_slo_memory_resource_limit = sidecar_proxy_ack_slo_memory_resource_limit - self.sidecar_proxy_ack_slo_memory_resource_request = sidecar_proxy_ack_slo_memory_resource_request - # The maximum number of CPU cores that are available to the sidecar proxy container. - self.sidecar_proxy_cpuresource_limit = sidecar_proxy_cpuresource_limit - # The minimum number of CPU cores that are requested by the sidecar proxy container. - self.sidecar_proxy_cpuresource_request = sidecar_proxy_cpuresource_request - # The maximum size of memory that is available to the sidecar proxy container. - self.sidecar_proxy_memory_resource_limit = sidecar_proxy_memory_resource_limit - # The minimum size of memory that is requested by the sidecar proxy container. - self.sidecar_proxy_memory_resource_request = sidecar_proxy_memory_resource_request - # The maximum period of time that the sidecar proxy waits for a request to end. - self.termination_drain_duration = termination_drain_duration - # The custom configurations of Tracing Analysis. The configurations must be serialized into JSON strings. The configurations contain the following parameters: + # + # This parameter is required. + self.service_mesh_id = service_mesh_id + + def validate(self): + if self.multi_cluster_networks: + for v in self.multi_cluster_networks.values(): + if v: + v.validate() + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + result['MultiClusterNetworks'] = {} + if self.multi_cluster_networks is not None: + for k, v in self.multi_cluster_networks.items(): + result['MultiClusterNetworks'][k] = v.to_map() + if self.service_mesh_id is not None: + result['ServiceMeshId'] = self.service_mesh_id + return result + + def from_map(self, m: dict = None): + m = m or dict() + self.multi_cluster_networks = {} + if m.get('MultiClusterNetworks') is not None: + for k, v in m.get('MultiClusterNetworks').items(): + temp_model = MultiClusterNetworksValue() + self.multi_cluster_networks[k] = temp_model.from_map(v) + if m.get('ServiceMeshId') is not None: + self.service_mesh_id = m.get('ServiceMeshId') + return self + + +class UpdateMeshMultiClusterNetworkShrinkRequest(TeaModel): + def __init__( + self, + multi_cluster_networks_shrink: str = None, + service_mesh_id: str = None, + ): + # The network configuration descriptions of multiple Kubernetes clusters. The key in the map is the ID of a Kubernetes cluster, and the value is the network configuration of the cluster. + self.multi_cluster_networks_shrink = multi_cluster_networks_shrink + # The ID of the ASM instance. + # + # This parameter is required. + self.service_mesh_id = service_mesh_id + + def validate(self): + pass + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.multi_cluster_networks_shrink is not None: + result['MultiClusterNetworks'] = self.multi_cluster_networks_shrink + if self.service_mesh_id is not None: + result['ServiceMeshId'] = self.service_mesh_id + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('MultiClusterNetworks') is not None: + self.multi_cluster_networks_shrink = m.get('MultiClusterNetworks') + if m.get('ServiceMeshId') is not None: + self.service_mesh_id = m.get('ServiceMeshId') + return self + + +class UpdateMeshMultiClusterNetworkResponseBody(TeaModel): + def __init__( + self, + request_id: str = None, + ): + # Id of the request + self.request_id = request_id + + def validate(self): + pass + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.request_id is not None: + result['RequestId'] = self.request_id + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('RequestId') is not None: + self.request_id = m.get('RequestId') + return self + + +class UpdateMeshMultiClusterNetworkResponse(TeaModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + body: UpdateMeshMultiClusterNetworkResponseBody = None, + ): + self.headers = headers + self.status_code = status_code + self.body = body + + def validate(self): + if self.body: + self.body.validate() + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.headers is not None: + result['headers'] = self.headers + if self.status_code is not None: + result['statusCode'] = self.status_code + if self.body is not None: + result['body'] = self.body.to_map() + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + if m.get('body') is not None: + temp_model = UpdateMeshMultiClusterNetworkResponseBody() + self.body = temp_model.from_map(m['body']) + return self + + +class UpdateNamespaceScopeSidecarConfigRequestScaledSidecarResource(TeaModel): + def __init__( + self, + container_ref: str = None, + resource_calculation_strategy: str = None, + resource_percentage: int = None, + ): + self.container_ref = container_ref + self.resource_calculation_strategy = resource_calculation_strategy + self.resource_percentage = resource_percentage + + def validate(self): + pass + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.container_ref is not None: + result['ContainerRef'] = self.container_ref + if self.resource_calculation_strategy is not None: + result['ResourceCalculationStrategy'] = self.resource_calculation_strategy + if self.resource_percentage is not None: + result['ResourcePercentage'] = self.resource_percentage + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('ContainerRef') is not None: + self.container_ref = m.get('ContainerRef') + if m.get('ResourceCalculationStrategy') is not None: + self.resource_calculation_strategy = m.get('ResourceCalculationStrategy') + if m.get('ResourcePercentage') is not None: + self.resource_percentage = m.get('ResourcePercentage') + return self + + +class UpdateNamespaceScopeSidecarConfigRequest(TeaModel): + def __init__( + self, + concurrency: int = None, + enable_core_dump: bool = None, + exclude_ipranges: str = None, + exclude_inbound_ports: str = None, + exclude_outbound_ports: str = None, + hold_application_until_proxy_starts: bool = None, + include_ipranges: str = None, + include_inbound_ports: str = None, + include_outbound_ports: str = None, + interception_mode: str = None, + istio_dnsproxy_enabled: bool = None, + lifecycle: str = None, + log_level: str = None, + namespace: str = None, + post_start: str = None, + pre_stop: str = None, + privileged: bool = None, + proxy_init_ack_slo_cpuresource_limit: str = None, + proxy_init_ack_slo_cpuresource_request: str = None, + proxy_init_ack_slo_memory_resource_limit: str = None, + proxy_init_ack_slo_memory_resource_request: str = None, + proxy_init_cpuresource_limit: str = None, + proxy_init_cpuresource_request: str = None, + proxy_init_memory_resource_limit: str = None, + proxy_init_memory_resource_request: str = None, + proxy_metadata: str = None, + proxy_stats_matcher: str = None, + readiness_failure_threshold: int = None, + readiness_initial_delay_seconds: int = None, + readiness_period_seconds: int = None, + runtime_values: str = None, + smcenabled: bool = None, + scaled_sidecar_resource: UpdateNamespaceScopeSidecarConfigRequestScaledSidecarResource = None, + service_mesh_id: str = None, + sidecar_proxy_ack_slo_cpuresource_limit: str = None, + sidecar_proxy_ack_slo_cpuresource_request: str = None, + sidecar_proxy_ack_slo_memory_resource_limit: str = None, + sidecar_proxy_ack_slo_memory_resource_request: str = None, + sidecar_proxy_cpuresource_limit: str = None, + sidecar_proxy_cpuresource_request: str = None, + sidecar_proxy_memory_resource_limit: str = None, + sidecar_proxy_memory_resource_request: str = None, + termination_drain_duration: str = None, + tracing: str = None, + ): + # The number of worker threads to run in Istio Proxy. + self.concurrency = concurrency + # Specifies whether to enable the core dump feature for the sidecar proxy containers. Valid values: + # + # * `true` + # * `false` + self.enable_core_dump = enable_core_dump + # The range of IP addresses that are allowed to access external services. (`global.proxy.excludelPRanges`) + self.exclude_ipranges = exclude_ipranges + # The port that the inbound traffic of the sidecar proxy does not pass through. + self.exclude_inbound_ports = exclude_inbound_ports + # The port that the outbound traffic of the sidecar proxy does not pass through. + self.exclude_outbound_ports = exclude_outbound_ports + # Specifies whether applications can be started only after Istio Proxy starts. Valid values: + # + # * `true`: Applications can be started only after Istio Proxy starts. + # * `false`: Applications can be started before Istio Proxy starts. + self.hold_application_until_proxy_starts = hold_application_until_proxy_starts + # The range of IP addresses that are denied to access external services. (`global.proxy.includelPRanges`) + self.include_ipranges = include_ipranges + # The port that the inbound traffic of the sidecar proxy passes through. + self.include_inbound_ports = include_inbound_ports + # The port that the outbound traffic of the sidecar proxy passes through. + self.include_outbound_ports = include_outbound_ports + # The mode in which the sidecar proxy intercepts inbound traffic. Valid values: + # + # * `REDIRECT`: The sidecar proxy intercepts inbound traffic in the REDIRECT mode. + # * `TPROXY`: The sidecar proxy intercepts inbound traffic in the TPROXY mode. + self.interception_mode = interception_mode + # Specifies whether to enable the Domain Name System (DNS) proxy feature. Valid values: + # + # * `true`: The DNS proxy feature is enabled. + # * `false`: The DNS proxy feature is disabled. + self.istio_dnsproxy_enabled = istio_dnsproxy_enabled + # The lifecycle of the sidecar proxy. + self.lifecycle = lifecycle + # The log level. Valid values: `info`, `debug`, `tracing`, and `error`. + self.log_level = log_level + # The namespace for which you want to update the sidecar proxy configurations. + self.namespace = namespace + # The post-start parameters of Istio Proxy. + self.post_start = post_start + # The pre-close parameters of Istio Proxy. + self.pre_stop = pre_stop + # Specifies whether to enable the privileged mode in the security context of the sidecar proxy containers. Valid values: + # + # * `true`: enables the privileged mode. This means that the sidecar proxy containers run in privileged mode. + # * `false`: does not enable the privileged mode. + self.privileged = privileged + # The maximum number of reclaimed CPU cores provided by Container Service for Kubernetes (ACK) that are available to the istio-init container. Reclaimed resources, including CPU cores and memory, are resources that can be dynamically overcommitted. This configuration item is used to set the maximum number of CPU cores that are available to the istio-init container in a pod labeled with `koordinator.sh/qosClass`. Unit: millicore. + self.proxy_init_ack_slo_cpuresource_limit = proxy_init_ack_slo_cpuresource_limit + # The minimum number of reclaimed CPU cores provided by ACK that the istio-init container requires at runtime. This configuration item is used to set the minimum number of reclaimed CPU cores for the istio-init container in a pod labeled with `koordinator.sh/qosClass`. Unit: millicore. + self.proxy_init_ack_slo_cpuresource_request = proxy_init_ack_slo_cpuresource_request + # The maximum size of reclaimed memory resources provided by ACK that are available to the istio-init container. This configuration item is used to set the maximum size of memory that is available to the istio-init container in a pod labeled with `koordinator.sh/qosClass`. + self.proxy_init_ack_slo_memory_resource_limit = proxy_init_ack_slo_memory_resource_limit + # The minimum size of reclaimed memory provided by ACK that the istio-init container requires at runtime. This configuration item is used to set the minimum size of reclaimed memory for the istio-init container in a pod labeled with `koordinator.sh/qosClass`. + self.proxy_init_ack_slo_memory_resource_request = proxy_init_ack_slo_memory_resource_request + # The maximum number of CPU cores that are available to the sidecar proxy init container. + self.proxy_init_cpuresource_limit = proxy_init_cpuresource_limit + # The minimum number of CPU cores that are requested by the sidecar proxy init container. + self.proxy_init_cpuresource_request = proxy_init_cpuresource_request + # The maximum size of memory that is available to the sidecar proxy init container. + self.proxy_init_memory_resource_limit = proxy_init_memory_resource_limit + # The minimum size of memory that is requested by the sidecar proxy init container. + self.proxy_init_memory_resource_request = proxy_init_memory_resource_request + # The environment variables that are added to a sidecar proxy. The environment variables are represented as JSON objects. The keys and values in the JSON objects represent the keys and values added to the environment variables of the sidecar proxy. + self.proxy_metadata = proxy_metadata + # The monitoring metrics for data collected by Envoy proxies. The value is in the JSON format. + self.proxy_stats_matcher = proxy_stats_matcher + # The number of readiness check failures required before marking a sidecar proxy container as not ready. + self.readiness_failure_threshold = readiness_failure_threshold + # The amount of time to wait before the first readiness check of a sidecar proxy container is performed. Unit: seconds. + self.readiness_initial_delay_seconds = readiness_initial_delay_seconds + # The interval between two readiness checks of a sidecar proxy container. Unit: seconds. + self.readiness_period_seconds = readiness_period_seconds + # Indicates the runtime parameters of Envoy proxy processes in the sidecar proxy container. This parameter is a serialized JSON string. The keys and values of a JSON object are the keys and the values of a Envoy Runtime Parameter respectively. + # + # Valid values: + # + # * global_downstream_max_connections: indicates that the limits on the number of connections from downstream to Envoy. + self.runtime_values = runtime_values + # Specifies whether to enable Shared Memory Communications over Remote Direct Memory Access (SMC-R) optimization. The SMC-R optimization feature uses Alibaba Cloud Linux 3 and elastic remote direct memory access (eRDMA) network devices, which optimizes cross-node communication. + self.smcenabled = smcenabled + self.scaled_sidecar_resource = scaled_sidecar_resource + # The ID of the ASM instance. + # + # This parameter is required. + self.service_mesh_id = service_mesh_id + # The maximum number of reclaimed CPU cores provided by ACK that are available to the sidecar proxy container. This configuration item is used to set the maximum number of CPU cores that are available to the sidecar proxy container in a pod labeled with `koordinator.sh/qosClass`. Unit: millicore. + self.sidecar_proxy_ack_slo_cpuresource_limit = sidecar_proxy_ack_slo_cpuresource_limit + # The minimum number of reclaimed CPU cores provided by ACK that the sidecar proxy container requires at runtime. This configuration item is used to set the minimum number of reclaimed CPU cores for the sidecar proxy container in a pod labeled with `koordinator.sh/qosClass`. Unit: millicore. + self.sidecar_proxy_ack_slo_cpuresource_request = sidecar_proxy_ack_slo_cpuresource_request + # The maximum size of reclaimed memory resources provided by ACK that are available to the sidecar proxy container. This configuration item is used to set the maximum size of memory that is available to the sidecar proxy container in a pod labeled with `koordinator.sh/qosClass`. + self.sidecar_proxy_ack_slo_memory_resource_limit = sidecar_proxy_ack_slo_memory_resource_limit + # The minimum size of reclaimed memory provided by ACK that the sidecar proxy container requires at runtime. This configuration item is used to set the minimum size of reclaimed memory for the sidecar proxy container in a pod labeled with `koordinator.sh/qosClass`. + self.sidecar_proxy_ack_slo_memory_resource_request = sidecar_proxy_ack_slo_memory_resource_request + # The maximum number of CPU cores that are available to the sidecar proxy container. + self.sidecar_proxy_cpuresource_limit = sidecar_proxy_cpuresource_limit + # The minimum number of CPU cores that are requested by the sidecar proxy container. + self.sidecar_proxy_cpuresource_request = sidecar_proxy_cpuresource_request + # The maximum size of memory that is available to the sidecar proxy container. + self.sidecar_proxy_memory_resource_limit = sidecar_proxy_memory_resource_limit + # The minimum size of memory that is requested by the sidecar proxy container. + self.sidecar_proxy_memory_resource_request = sidecar_proxy_memory_resource_request + # The maximum period of time that the sidecar proxy waits for a request to end. + self.termination_drain_duration = termination_drain_duration + # The custom configurations of Tracing Analysis. The configurations must be serialized into JSON strings. The configurations contain the following parameters: + # + # * `sampling`: The sampling rate, which is of the DOUBLE type. + # + # * `custom_tags`: The custom tags added to reported spans, which are of the MAP type. The key of a tag is of the string type. The value of a tag is in the JSON format. A custom tag can belong to one of the following types: + # + # * `literal`: The tag value is a fixed value in the JSON format. This tag must contain the `value` field that specifies a literal. Example: `{"value":"test"}`. + # * `header`: The tag value is a request header in the JSON format. This tag must contain the `name` field and `defaultValue` field.The name field indicates the name of the request header. The defaultValue field indicates the default value that is used when no request header is available. Example: `{"name":"test","defaultValue":"test"}`. + # * `environment`: The tag value is an environment variable in the JSON format. This tag must contain the `name` field and `defaultValue` field. The name field indicates the name of the environment variable. The defaultValue field indicates the environment variable that is used when no environment variable is available. Example: `{"name":"test","defaultValue":"test"}`. + self.tracing = tracing + + def validate(self): + if self.scaled_sidecar_resource: + self.scaled_sidecar_resource.validate() + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.concurrency is not None: + result['Concurrency'] = self.concurrency + if self.enable_core_dump is not None: + result['EnableCoreDump'] = self.enable_core_dump + if self.exclude_ipranges is not None: + result['ExcludeIPRanges'] = self.exclude_ipranges + if self.exclude_inbound_ports is not None: + result['ExcludeInboundPorts'] = self.exclude_inbound_ports + if self.exclude_outbound_ports is not None: + result['ExcludeOutboundPorts'] = self.exclude_outbound_ports + if self.hold_application_until_proxy_starts is not None: + result['HoldApplicationUntilProxyStarts'] = self.hold_application_until_proxy_starts + if self.include_ipranges is not None: + result['IncludeIPRanges'] = self.include_ipranges + if self.include_inbound_ports is not None: + result['IncludeInboundPorts'] = self.include_inbound_ports + if self.include_outbound_ports is not None: + result['IncludeOutboundPorts'] = self.include_outbound_ports + if self.interception_mode is not None: + result['InterceptionMode'] = self.interception_mode + if self.istio_dnsproxy_enabled is not None: + result['IstioDNSProxyEnabled'] = self.istio_dnsproxy_enabled + if self.lifecycle is not None: + result['Lifecycle'] = self.lifecycle + if self.log_level is not None: + result['LogLevel'] = self.log_level + if self.namespace is not None: + result['Namespace'] = self.namespace + if self.post_start is not None: + result['PostStart'] = self.post_start + if self.pre_stop is not None: + result['PreStop'] = self.pre_stop + if self.privileged is not None: + result['Privileged'] = self.privileged + if self.proxy_init_ack_slo_cpuresource_limit is not None: + result['ProxyInitAckSloCPUResourceLimit'] = self.proxy_init_ack_slo_cpuresource_limit + if self.proxy_init_ack_slo_cpuresource_request is not None: + result['ProxyInitAckSloCPUResourceRequest'] = self.proxy_init_ack_slo_cpuresource_request + if self.proxy_init_ack_slo_memory_resource_limit is not None: + result['ProxyInitAckSloMemoryResourceLimit'] = self.proxy_init_ack_slo_memory_resource_limit + if self.proxy_init_ack_slo_memory_resource_request is not None: + result['ProxyInitAckSloMemoryResourceRequest'] = self.proxy_init_ack_slo_memory_resource_request + if self.proxy_init_cpuresource_limit is not None: + result['ProxyInitCPUResourceLimit'] = self.proxy_init_cpuresource_limit + if self.proxy_init_cpuresource_request is not None: + result['ProxyInitCPUResourceRequest'] = self.proxy_init_cpuresource_request + if self.proxy_init_memory_resource_limit is not None: + result['ProxyInitMemoryResourceLimit'] = self.proxy_init_memory_resource_limit + if self.proxy_init_memory_resource_request is not None: + result['ProxyInitMemoryResourceRequest'] = self.proxy_init_memory_resource_request + if self.proxy_metadata is not None: + result['ProxyMetadata'] = self.proxy_metadata + if self.proxy_stats_matcher is not None: + result['ProxyStatsMatcher'] = self.proxy_stats_matcher + if self.readiness_failure_threshold is not None: + result['ReadinessFailureThreshold'] = self.readiness_failure_threshold + if self.readiness_initial_delay_seconds is not None: + result['ReadinessInitialDelaySeconds'] = self.readiness_initial_delay_seconds + if self.readiness_period_seconds is not None: + result['ReadinessPeriodSeconds'] = self.readiness_period_seconds + if self.runtime_values is not None: + result['RuntimeValues'] = self.runtime_values + if self.smcenabled is not None: + result['SMCEnabled'] = self.smcenabled + if self.scaled_sidecar_resource is not None: + result['ScaledSidecarResource'] = self.scaled_sidecar_resource.to_map() + if self.service_mesh_id is not None: + result['ServiceMeshId'] = self.service_mesh_id + if self.sidecar_proxy_ack_slo_cpuresource_limit is not None: + result['SidecarProxyAckSloCPUResourceLimit'] = self.sidecar_proxy_ack_slo_cpuresource_limit + if self.sidecar_proxy_ack_slo_cpuresource_request is not None: + result['SidecarProxyAckSloCPUResourceRequest'] = self.sidecar_proxy_ack_slo_cpuresource_request + if self.sidecar_proxy_ack_slo_memory_resource_limit is not None: + result['SidecarProxyAckSloMemoryResourceLimit'] = self.sidecar_proxy_ack_slo_memory_resource_limit + if self.sidecar_proxy_ack_slo_memory_resource_request is not None: + result['SidecarProxyAckSloMemoryResourceRequest'] = self.sidecar_proxy_ack_slo_memory_resource_request + if self.sidecar_proxy_cpuresource_limit is not None: + result['SidecarProxyCPUResourceLimit'] = self.sidecar_proxy_cpuresource_limit + if self.sidecar_proxy_cpuresource_request is not None: + result['SidecarProxyCPUResourceRequest'] = self.sidecar_proxy_cpuresource_request + if self.sidecar_proxy_memory_resource_limit is not None: + result['SidecarProxyMemoryResourceLimit'] = self.sidecar_proxy_memory_resource_limit + if self.sidecar_proxy_memory_resource_request is not None: + result['SidecarProxyMemoryResourceRequest'] = self.sidecar_proxy_memory_resource_request + if self.termination_drain_duration is not None: + result['TerminationDrainDuration'] = self.termination_drain_duration + if self.tracing is not None: + result['Tracing'] = self.tracing + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('Concurrency') is not None: + self.concurrency = m.get('Concurrency') + if m.get('EnableCoreDump') is not None: + self.enable_core_dump = m.get('EnableCoreDump') + if m.get('ExcludeIPRanges') is not None: + self.exclude_ipranges = m.get('ExcludeIPRanges') + if m.get('ExcludeInboundPorts') is not None: + self.exclude_inbound_ports = m.get('ExcludeInboundPorts') + if m.get('ExcludeOutboundPorts') is not None: + self.exclude_outbound_ports = m.get('ExcludeOutboundPorts') + if m.get('HoldApplicationUntilProxyStarts') is not None: + self.hold_application_until_proxy_starts = m.get('HoldApplicationUntilProxyStarts') + if m.get('IncludeIPRanges') is not None: + self.include_ipranges = m.get('IncludeIPRanges') + if m.get('IncludeInboundPorts') is not None: + self.include_inbound_ports = m.get('IncludeInboundPorts') + if m.get('IncludeOutboundPorts') is not None: + self.include_outbound_ports = m.get('IncludeOutboundPorts') + if m.get('InterceptionMode') is not None: + self.interception_mode = m.get('InterceptionMode') + if m.get('IstioDNSProxyEnabled') is not None: + self.istio_dnsproxy_enabled = m.get('IstioDNSProxyEnabled') + if m.get('Lifecycle') is not None: + self.lifecycle = m.get('Lifecycle') + if m.get('LogLevel') is not None: + self.log_level = m.get('LogLevel') + if m.get('Namespace') is not None: + self.namespace = m.get('Namespace') + if m.get('PostStart') is not None: + self.post_start = m.get('PostStart') + if m.get('PreStop') is not None: + self.pre_stop = m.get('PreStop') + if m.get('Privileged') is not None: + self.privileged = m.get('Privileged') + if m.get('ProxyInitAckSloCPUResourceLimit') is not None: + self.proxy_init_ack_slo_cpuresource_limit = m.get('ProxyInitAckSloCPUResourceLimit') + if m.get('ProxyInitAckSloCPUResourceRequest') is not None: + self.proxy_init_ack_slo_cpuresource_request = m.get('ProxyInitAckSloCPUResourceRequest') + if m.get('ProxyInitAckSloMemoryResourceLimit') is not None: + self.proxy_init_ack_slo_memory_resource_limit = m.get('ProxyInitAckSloMemoryResourceLimit') + if m.get('ProxyInitAckSloMemoryResourceRequest') is not None: + self.proxy_init_ack_slo_memory_resource_request = m.get('ProxyInitAckSloMemoryResourceRequest') + if m.get('ProxyInitCPUResourceLimit') is not None: + self.proxy_init_cpuresource_limit = m.get('ProxyInitCPUResourceLimit') + if m.get('ProxyInitCPUResourceRequest') is not None: + self.proxy_init_cpuresource_request = m.get('ProxyInitCPUResourceRequest') + if m.get('ProxyInitMemoryResourceLimit') is not None: + self.proxy_init_memory_resource_limit = m.get('ProxyInitMemoryResourceLimit') + if m.get('ProxyInitMemoryResourceRequest') is not None: + self.proxy_init_memory_resource_request = m.get('ProxyInitMemoryResourceRequest') + if m.get('ProxyMetadata') is not None: + self.proxy_metadata = m.get('ProxyMetadata') + if m.get('ProxyStatsMatcher') is not None: + self.proxy_stats_matcher = m.get('ProxyStatsMatcher') + if m.get('ReadinessFailureThreshold') is not None: + self.readiness_failure_threshold = m.get('ReadinessFailureThreshold') + if m.get('ReadinessInitialDelaySeconds') is not None: + self.readiness_initial_delay_seconds = m.get('ReadinessInitialDelaySeconds') + if m.get('ReadinessPeriodSeconds') is not None: + self.readiness_period_seconds = m.get('ReadinessPeriodSeconds') + if m.get('RuntimeValues') is not None: + self.runtime_values = m.get('RuntimeValues') + if m.get('SMCEnabled') is not None: + self.smcenabled = m.get('SMCEnabled') + if m.get('ScaledSidecarResource') is not None: + temp_model = UpdateNamespaceScopeSidecarConfigRequestScaledSidecarResource() + self.scaled_sidecar_resource = temp_model.from_map(m['ScaledSidecarResource']) + if m.get('ServiceMeshId') is not None: + self.service_mesh_id = m.get('ServiceMeshId') + if m.get('SidecarProxyAckSloCPUResourceLimit') is not None: + self.sidecar_proxy_ack_slo_cpuresource_limit = m.get('SidecarProxyAckSloCPUResourceLimit') + if m.get('SidecarProxyAckSloCPUResourceRequest') is not None: + self.sidecar_proxy_ack_slo_cpuresource_request = m.get('SidecarProxyAckSloCPUResourceRequest') + if m.get('SidecarProxyAckSloMemoryResourceLimit') is not None: + self.sidecar_proxy_ack_slo_memory_resource_limit = m.get('SidecarProxyAckSloMemoryResourceLimit') + if m.get('SidecarProxyAckSloMemoryResourceRequest') is not None: + self.sidecar_proxy_ack_slo_memory_resource_request = m.get('SidecarProxyAckSloMemoryResourceRequest') + if m.get('SidecarProxyCPUResourceLimit') is not None: + self.sidecar_proxy_cpuresource_limit = m.get('SidecarProxyCPUResourceLimit') + if m.get('SidecarProxyCPUResourceRequest') is not None: + self.sidecar_proxy_cpuresource_request = m.get('SidecarProxyCPUResourceRequest') + if m.get('SidecarProxyMemoryResourceLimit') is not None: + self.sidecar_proxy_memory_resource_limit = m.get('SidecarProxyMemoryResourceLimit') + if m.get('SidecarProxyMemoryResourceRequest') is not None: + self.sidecar_proxy_memory_resource_request = m.get('SidecarProxyMemoryResourceRequest') + if m.get('TerminationDrainDuration') is not None: + self.termination_drain_duration = m.get('TerminationDrainDuration') + if m.get('Tracing') is not None: + self.tracing = m.get('Tracing') + return self + + +class UpdateNamespaceScopeSidecarConfigShrinkRequest(TeaModel): + def __init__( + self, + concurrency: int = None, + enable_core_dump: bool = None, + exclude_ipranges: str = None, + exclude_inbound_ports: str = None, + exclude_outbound_ports: str = None, + hold_application_until_proxy_starts: bool = None, + include_ipranges: str = None, + include_inbound_ports: str = None, + include_outbound_ports: str = None, + interception_mode: str = None, + istio_dnsproxy_enabled: bool = None, + lifecycle: str = None, + log_level: str = None, + namespace: str = None, + post_start: str = None, + pre_stop: str = None, + privileged: bool = None, + proxy_init_ack_slo_cpuresource_limit: str = None, + proxy_init_ack_slo_cpuresource_request: str = None, + proxy_init_ack_slo_memory_resource_limit: str = None, + proxy_init_ack_slo_memory_resource_request: str = None, + proxy_init_cpuresource_limit: str = None, + proxy_init_cpuresource_request: str = None, + proxy_init_memory_resource_limit: str = None, + proxy_init_memory_resource_request: str = None, + proxy_metadata: str = None, + proxy_stats_matcher: str = None, + readiness_failure_threshold: int = None, + readiness_initial_delay_seconds: int = None, + readiness_period_seconds: int = None, + runtime_values: str = None, + smcenabled: bool = None, + scaled_sidecar_resource_shrink: str = None, + service_mesh_id: str = None, + sidecar_proxy_ack_slo_cpuresource_limit: str = None, + sidecar_proxy_ack_slo_cpuresource_request: str = None, + sidecar_proxy_ack_slo_memory_resource_limit: str = None, + sidecar_proxy_ack_slo_memory_resource_request: str = None, + sidecar_proxy_cpuresource_limit: str = None, + sidecar_proxy_cpuresource_request: str = None, + sidecar_proxy_memory_resource_limit: str = None, + sidecar_proxy_memory_resource_request: str = None, + termination_drain_duration: str = None, + tracing: str = None, + ): + # The number of worker threads to run in Istio Proxy. + self.concurrency = concurrency + # Specifies whether to enable the core dump feature for the sidecar proxy containers. Valid values: + # + # * `true` + # * `false` + self.enable_core_dump = enable_core_dump + # The range of IP addresses that are allowed to access external services. (`global.proxy.excludelPRanges`) + self.exclude_ipranges = exclude_ipranges + # The port that the inbound traffic of the sidecar proxy does not pass through. + self.exclude_inbound_ports = exclude_inbound_ports + # The port that the outbound traffic of the sidecar proxy does not pass through. + self.exclude_outbound_ports = exclude_outbound_ports + # Specifies whether applications can be started only after Istio Proxy starts. Valid values: + # + # * `true`: Applications can be started only after Istio Proxy starts. + # * `false`: Applications can be started before Istio Proxy starts. + self.hold_application_until_proxy_starts = hold_application_until_proxy_starts + # The range of IP addresses that are denied to access external services. (`global.proxy.includelPRanges`) + self.include_ipranges = include_ipranges + # The port that the inbound traffic of the sidecar proxy passes through. + self.include_inbound_ports = include_inbound_ports + # The port that the outbound traffic of the sidecar proxy passes through. + self.include_outbound_ports = include_outbound_ports + # The mode in which the sidecar proxy intercepts inbound traffic. Valid values: + # + # * `REDIRECT`: The sidecar proxy intercepts inbound traffic in the REDIRECT mode. + # * `TPROXY`: The sidecar proxy intercepts inbound traffic in the TPROXY mode. + self.interception_mode = interception_mode + # Specifies whether to enable the Domain Name System (DNS) proxy feature. Valid values: + # + # * `true`: The DNS proxy feature is enabled. + # * `false`: The DNS proxy feature is disabled. + self.istio_dnsproxy_enabled = istio_dnsproxy_enabled + # The lifecycle of the sidecar proxy. + self.lifecycle = lifecycle + # The log level. Valid values: `info`, `debug`, `tracing`, and `error`. + self.log_level = log_level + # The namespace for which you want to update the sidecar proxy configurations. + self.namespace = namespace + # The post-start parameters of Istio Proxy. + self.post_start = post_start + # The pre-close parameters of Istio Proxy. + self.pre_stop = pre_stop + # Specifies whether to enable the privileged mode in the security context of the sidecar proxy containers. Valid values: + # + # * `true`: enables the privileged mode. This means that the sidecar proxy containers run in privileged mode. + # * `false`: does not enable the privileged mode. + self.privileged = privileged + # The maximum number of reclaimed CPU cores provided by Container Service for Kubernetes (ACK) that are available to the istio-init container. Reclaimed resources, including CPU cores and memory, are resources that can be dynamically overcommitted. This configuration item is used to set the maximum number of CPU cores that are available to the istio-init container in a pod labeled with `koordinator.sh/qosClass`. Unit: millicore. + self.proxy_init_ack_slo_cpuresource_limit = proxy_init_ack_slo_cpuresource_limit + # The minimum number of reclaimed CPU cores provided by ACK that the istio-init container requires at runtime. This configuration item is used to set the minimum number of reclaimed CPU cores for the istio-init container in a pod labeled with `koordinator.sh/qosClass`. Unit: millicore. + self.proxy_init_ack_slo_cpuresource_request = proxy_init_ack_slo_cpuresource_request + # The maximum size of reclaimed memory resources provided by ACK that are available to the istio-init container. This configuration item is used to set the maximum size of memory that is available to the istio-init container in a pod labeled with `koordinator.sh/qosClass`. + self.proxy_init_ack_slo_memory_resource_limit = proxy_init_ack_slo_memory_resource_limit + # The minimum size of reclaimed memory provided by ACK that the istio-init container requires at runtime. This configuration item is used to set the minimum size of reclaimed memory for the istio-init container in a pod labeled with `koordinator.sh/qosClass`. + self.proxy_init_ack_slo_memory_resource_request = proxy_init_ack_slo_memory_resource_request + # The maximum number of CPU cores that are available to the sidecar proxy init container. + self.proxy_init_cpuresource_limit = proxy_init_cpuresource_limit + # The minimum number of CPU cores that are requested by the sidecar proxy init container. + self.proxy_init_cpuresource_request = proxy_init_cpuresource_request + # The maximum size of memory that is available to the sidecar proxy init container. + self.proxy_init_memory_resource_limit = proxy_init_memory_resource_limit + # The minimum size of memory that is requested by the sidecar proxy init container. + self.proxy_init_memory_resource_request = proxy_init_memory_resource_request + # The environment variables that are added to a sidecar proxy. The environment variables are represented as JSON objects. The keys and values in the JSON objects represent the keys and values added to the environment variables of the sidecar proxy. + self.proxy_metadata = proxy_metadata + # The monitoring metrics for data collected by Envoy proxies. The value is in the JSON format. + self.proxy_stats_matcher = proxy_stats_matcher + # The number of readiness check failures required before marking a sidecar proxy container as not ready. + self.readiness_failure_threshold = readiness_failure_threshold + # The amount of time to wait before the first readiness check of a sidecar proxy container is performed. Unit: seconds. + self.readiness_initial_delay_seconds = readiness_initial_delay_seconds + # The interval between two readiness checks of a sidecar proxy container. Unit: seconds. + self.readiness_period_seconds = readiness_period_seconds + # Indicates the runtime parameters of Envoy proxy processes in the sidecar proxy container. This parameter is a serialized JSON string. The keys and values of a JSON object are the keys and the values of a Envoy Runtime Parameter respectively. + # + # Valid values: + # + # * global_downstream_max_connections: indicates that the limits on the number of connections from downstream to Envoy. + self.runtime_values = runtime_values + # Specifies whether to enable Shared Memory Communications over Remote Direct Memory Access (SMC-R) optimization. The SMC-R optimization feature uses Alibaba Cloud Linux 3 and elastic remote direct memory access (eRDMA) network devices, which optimizes cross-node communication. + self.smcenabled = smcenabled + self.scaled_sidecar_resource_shrink = scaled_sidecar_resource_shrink + # The ID of the ASM instance. + # + # This parameter is required. + self.service_mesh_id = service_mesh_id + # The maximum number of reclaimed CPU cores provided by ACK that are available to the sidecar proxy container. This configuration item is used to set the maximum number of CPU cores that are available to the sidecar proxy container in a pod labeled with `koordinator.sh/qosClass`. Unit: millicore. + self.sidecar_proxy_ack_slo_cpuresource_limit = sidecar_proxy_ack_slo_cpuresource_limit + # The minimum number of reclaimed CPU cores provided by ACK that the sidecar proxy container requires at runtime. This configuration item is used to set the minimum number of reclaimed CPU cores for the sidecar proxy container in a pod labeled with `koordinator.sh/qosClass`. Unit: millicore. + self.sidecar_proxy_ack_slo_cpuresource_request = sidecar_proxy_ack_slo_cpuresource_request + # The maximum size of reclaimed memory resources provided by ACK that are available to the sidecar proxy container. This configuration item is used to set the maximum size of memory that is available to the sidecar proxy container in a pod labeled with `koordinator.sh/qosClass`. + self.sidecar_proxy_ack_slo_memory_resource_limit = sidecar_proxy_ack_slo_memory_resource_limit + # The minimum size of reclaimed memory provided by ACK that the sidecar proxy container requires at runtime. This configuration item is used to set the minimum size of reclaimed memory for the sidecar proxy container in a pod labeled with `koordinator.sh/qosClass`. + self.sidecar_proxy_ack_slo_memory_resource_request = sidecar_proxy_ack_slo_memory_resource_request + # The maximum number of CPU cores that are available to the sidecar proxy container. + self.sidecar_proxy_cpuresource_limit = sidecar_proxy_cpuresource_limit + # The minimum number of CPU cores that are requested by the sidecar proxy container. + self.sidecar_proxy_cpuresource_request = sidecar_proxy_cpuresource_request + # The maximum size of memory that is available to the sidecar proxy container. + self.sidecar_proxy_memory_resource_limit = sidecar_proxy_memory_resource_limit + # The minimum size of memory that is requested by the sidecar proxy container. + self.sidecar_proxy_memory_resource_request = sidecar_proxy_memory_resource_request + # The maximum period of time that the sidecar proxy waits for a request to end. + self.termination_drain_duration = termination_drain_duration + # The custom configurations of Tracing Analysis. The configurations must be serialized into JSON strings. The configurations contain the following parameters: # # * `sampling`: The sampling rate, which is of the DOUBLE type. # @@ -22213,6 +23889,12 @@ def to_map(self): result['ReadinessInitialDelaySeconds'] = self.readiness_initial_delay_seconds if self.readiness_period_seconds is not None: result['ReadinessPeriodSeconds'] = self.readiness_period_seconds + if self.runtime_values is not None: + result['RuntimeValues'] = self.runtime_values + if self.smcenabled is not None: + result['SMCEnabled'] = self.smcenabled + if self.scaled_sidecar_resource_shrink is not None: + result['ScaledSidecarResource'] = self.scaled_sidecar_resource_shrink if self.service_mesh_id is not None: result['ServiceMeshId'] = self.service_mesh_id if self.sidecar_proxy_ack_slo_cpuresource_limit is not None: @@ -22299,6 +23981,12 @@ def from_map(self, m: dict = None): self.readiness_initial_delay_seconds = m.get('ReadinessInitialDelaySeconds') if m.get('ReadinessPeriodSeconds') is not None: self.readiness_period_seconds = m.get('ReadinessPeriodSeconds') + if m.get('RuntimeValues') is not None: + self.runtime_values = m.get('RuntimeValues') + if m.get('SMCEnabled') is not None: + self.smcenabled = m.get('SMCEnabled') + if m.get('ScaledSidecarResource') is not None: + self.scaled_sidecar_resource_shrink = m.get('ScaledSidecarResource') if m.get('ServiceMeshId') is not None: self.service_mesh_id = m.get('ServiceMeshId') if m.get('SidecarProxyAckSloCPUResourceLimit') is not None: @@ -22364,9 +24052,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -22413,6 +24098,8 @@ def __init__( # The label value of the associated service workload.`` self.label_selector_value = label_selector_value # The ID of the Service Mesh (ASM) instance. + # + # This parameter is required. self.service_mesh_id = service_mesh_id # A list of services associated with the lane. self.services_list = services_list @@ -22499,9 +24186,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -22536,16 +24220,30 @@ def __init__( self, fallback_target: str = None, group_name: str = None, + ingress_routing_strategy: str = None, + service_level_fallback_target: str = None, service_mesh_id: str = None, services_list: str = None, + weighted_ingress_rule: str = None, ): + # The name of the baseline lane in the lane group if the lane group is in permissive mode. This parameter is valid only for a lane group in permissive mode. self.fallback_target = fallback_target # The name of the lane group. self.group_name = group_name + # The policy used to route requests among multiple lanes in a lane group. Valid values: + # + # * weighted: a weight-based request routing policy. Requests are matched based on uniform rules and then routed to different lanes in a lane group at a specified ratio. + # * rule-based: a rule-based request routing policy. Each lane is configured with request routing rules. Only requests that match the request routing rules of a specific lane are routed to the lane. + self.ingress_routing_strategy = ingress_routing_strategy + self.service_level_fallback_target = service_level_fallback_target # The Service Mesh (ASM) instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id # A list of services associated with the lane group. self.services_list = services_list + # The weight-based request routing rules for a lane group. You can specify this parameter only when the IngressRoutingStrategy parameter is set to weighted. + self.weighted_ingress_rule = weighted_ingress_rule def validate(self): pass @@ -22560,10 +24258,16 @@ def to_map(self): result['FallbackTarget'] = self.fallback_target if self.group_name is not None: result['GroupName'] = self.group_name + if self.ingress_routing_strategy is not None: + result['IngressRoutingStrategy'] = self.ingress_routing_strategy + if self.service_level_fallback_target is not None: + result['ServiceLevelFallbackTarget'] = self.service_level_fallback_target if self.service_mesh_id is not None: result['ServiceMeshId'] = self.service_mesh_id if self.services_list is not None: result['ServicesList'] = self.services_list + if self.weighted_ingress_rule is not None: + result['WeightedIngressRule'] = self.weighted_ingress_rule return result def from_map(self, m: dict = None): @@ -22572,10 +24276,16 @@ def from_map(self, m: dict = None): self.fallback_target = m.get('FallbackTarget') if m.get('GroupName') is not None: self.group_name = m.get('GroupName') + if m.get('IngressRoutingStrategy') is not None: + self.ingress_routing_strategy = m.get('IngressRoutingStrategy') + if m.get('ServiceLevelFallbackTarget') is not None: + self.service_level_fallback_target = m.get('ServiceLevelFallbackTarget') if m.get('ServiceMeshId') is not None: self.service_mesh_id = m.get('ServiceMeshId') if m.get('ServicesList') is not None: self.services_list = m.get('ServicesList') + if m.get('WeightedIngressRule') is not None: + self.weighted_ingress_rule = m.get('WeightedIngressRule') return self @@ -22619,9 +24329,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -22671,6 +24378,8 @@ def __init__( service_mesh_id: str = None, ): # The ID of the cluster on the data plane. + # + # This parameter is required. self.cluster_id = cluster_id # Specifies whether to enable Horizontal Pod Autoscaling (HPA). self.hpaenabled = hpaenabled @@ -22687,8 +24396,12 @@ def __init__( # The maximum size of the memory that is available to the waypoint proxy pods. self.limit_memory = limit_memory # Waypoint名称。 + # + # This parameter is required. self.name = name # The namespace. + # + # This parameter is required. self.namespace = namespace # Specifies whether to deploy waypoint proxy pods based on Elastic Container Instance (ECI). self.prefer_eci = prefer_eci @@ -22699,6 +24412,8 @@ def __init__( # The size of the memory requested by the waypoint proxy pods. self.request_memory = request_memory # The Service Mesh (ASM) instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -22817,9 +24532,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -22864,10 +24576,13 @@ def __init__( # * `true` # * `false` self.asmgateway_continue = asmgateway_continue + # The expected version that desired to be upgraded to. self.expected_version = expected_version # Specifies whether to perform an upgrade check. If the value of this parameter is set to true, only the upgrade check is performed and the ASM instance is not upgraded. self.pre_check = pre_check # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id # Specifies whether to upgrade the ASM instance to Professional Edition. Valid values: # @@ -22957,9 +24672,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() @@ -22998,6 +24710,8 @@ def __init__( # Specifies whether to perform a precheck. Default value: false. If this parameter is set to true, this call only checks whether the current ASM instance meets the upgrade conditions and does not actually perform an upgrade. self.pre_check = pre_check # The ASM instance ID. + # + # This parameter is required. self.service_mesh_id = service_mesh_id def validate(self): @@ -23064,9 +24778,6 @@ def __init__( self.body = body def validate(self): - self.validate_required(self.headers, 'headers') - self.validate_required(self.status_code, 'status_code') - self.validate_required(self.body, 'body') if self.body: self.body.validate() diff --git a/servicemesh-20200111/setup.py b/servicemesh-20200111/setup.py index 2a803d868..b323bd4f7 100644 --- a/servicemesh-20200111/setup.py +++ b/servicemesh-20200111/setup.py @@ -24,7 +24,7 @@ """ setup module for alibabacloud_servicemesh20200111. -Created on 13/11/2023 +Created on 24/11/2025 @author: Alibaba Cloud SDK """ @@ -37,10 +37,10 @@ URL = "https://github.com/aliyun/alibabacloud-python-sdk" VERSION = __import__(PACKAGE).__version__ REQUIRES = [ - "alibabacloud_tea_util>=0.3.11, <1.0.0", - "alibabacloud_tea_openapi>=0.3.6, <1.0.0", - "alibabacloud_openapi_util>=0.2.1, <1.0.0", - "alibabacloud_endpoint_util>=0.0.3, <1.0.0" + "alibabacloud_tea_util>=0.3.13, <1.0.0", + "alibabacloud_tea_openapi>=0.3.16, <1.0.0", + "alibabacloud_openapi_util>=0.2.2, <1.0.0", + "alibabacloud_endpoint_util>=0.0.4, <1.0.0" ] LONG_DESCRIPTION = '' From c2b616f582ee72dc582ca39c4183c13218b3740f Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 24 Nov 2025 05:39:42 +0000 Subject: [PATCH 3/4] Support API DeleteSandbox. --- agentrun-20250910/ChangeLog.md | 7 ++ .../alibabacloud_agentrun20250910/__init__.py | 2 +- .../alibabacloud_agentrun20250910/client.py | 114 +++++++++++++++-- .../alibabacloud_agentrun20250910/models.py | 116 ++++++++++++++++-- agentrun-20250910/setup.py | 2 +- 5 files changed, 223 insertions(+), 18 deletions(-) diff --git a/agentrun-20250910/ChangeLog.md b/agentrun-20250910/ChangeLog.md index fea81882b..93059eb58 100644 --- a/agentrun-20250910/ChangeLog.md +++ b/agentrun-20250910/ChangeLog.md @@ -1,3 +1,10 @@ +2025-11-24 Version: 4.0.0 +- Support API DeleteSandbox. +- Update API ListTemplates: add request parameters status. +- Update API ListTemplates: add request parameters templateName. +- Update API StopSandbox: update response parameters Body' ref has changed. + + 2025-11-20 Version: 3.1.0 - Support API ActivateTemplateMCP. - Support API CreateCredential. diff --git a/agentrun-20250910/alibabacloud_agentrun20250910/__init__.py b/agentrun-20250910/alibabacloud_agentrun20250910/__init__.py index 18df594f2..dc5e3f7d4 100644 --- a/agentrun-20250910/alibabacloud_agentrun20250910/__init__.py +++ b/agentrun-20250910/alibabacloud_agentrun20250910/__init__.py @@ -1 +1 @@ -__version__ = '3.1.0' \ No newline at end of file +__version__ = '4.0.0' \ No newline at end of file diff --git a/agentrun-20250910/alibabacloud_agentrun20250910/client.py b/agentrun-20250910/alibabacloud_agentrun20250910/client.py index 8258aef60..3d1324c86 100644 --- a/agentrun-20250910/alibabacloud_agentrun20250910/client.py +++ b/agentrun-20250910/alibabacloud_agentrun20250910/client.py @@ -2059,6 +2059,96 @@ async def delete_model_service_async( headers = {} return await self.delete_model_service_with_options_async(model_service_name, headers, runtime) + def delete_sandbox_with_options( + self, + sandbox_id: str, + headers: Dict[str, str], + runtime: util_models.RuntimeOptions, + ) -> agent_run_20250910_models.DeleteSandboxResponse: + """ + @summary 删除Sandbox + + @param headers: map + @param runtime: runtime options for this request RuntimeOptions + @return: DeleteSandboxResponse + """ + req = open_api_models.OpenApiRequest( + headers=headers + ) + params = open_api_models.Params( + action='DeleteSandbox', + version='2025-09-10', + protocol='HTTPS', + pathname=f'/2025-09-10/sandboxes/{OpenApiUtilClient.get_encode_param(sandbox_id)}', + method='DELETE', + auth_type='AK', + style='ROA', + req_body_type='json', + body_type='json' + ) + return TeaCore.from_map( + agent_run_20250910_models.DeleteSandboxResponse(), + self.call_api(params, req, runtime) + ) + + async def delete_sandbox_with_options_async( + self, + sandbox_id: str, + headers: Dict[str, str], + runtime: util_models.RuntimeOptions, + ) -> agent_run_20250910_models.DeleteSandboxResponse: + """ + @summary 删除Sandbox + + @param headers: map + @param runtime: runtime options for this request RuntimeOptions + @return: DeleteSandboxResponse + """ + req = open_api_models.OpenApiRequest( + headers=headers + ) + params = open_api_models.Params( + action='DeleteSandbox', + version='2025-09-10', + protocol='HTTPS', + pathname=f'/2025-09-10/sandboxes/{OpenApiUtilClient.get_encode_param(sandbox_id)}', + method='DELETE', + auth_type='AK', + style='ROA', + req_body_type='json', + body_type='json' + ) + return TeaCore.from_map( + agent_run_20250910_models.DeleteSandboxResponse(), + await self.call_api_async(params, req, runtime) + ) + + def delete_sandbox( + self, + sandbox_id: str, + ) -> agent_run_20250910_models.DeleteSandboxResponse: + """ + @summary 删除Sandbox + + @return: DeleteSandboxResponse + """ + runtime = util_models.RuntimeOptions() + headers = {} + return self.delete_sandbox_with_options(sandbox_id, headers, runtime) + + async def delete_sandbox_async( + self, + sandbox_id: str, + ) -> agent_run_20250910_models.DeleteSandboxResponse: + """ + @summary 删除Sandbox + + @return: DeleteSandboxResponse + """ + runtime = util_models.RuntimeOptions() + headers = {} + return await self.delete_sandbox_with_options_async(sandbox_id, headers, runtime) + def delete_template_with_options( self, template_name: str, @@ -5085,6 +5175,10 @@ def list_templates_with_options( query['pageNumber'] = request.page_number if not UtilClient.is_unset(request.page_size): query['pageSize'] = request.page_size + if not UtilClient.is_unset(request.status): + query['status'] = request.status + if not UtilClient.is_unset(request.template_name): + query['templateName'] = request.template_name if not UtilClient.is_unset(request.template_type): query['templateType'] = request.template_type req = open_api_models.OpenApiRequest( @@ -5129,6 +5223,10 @@ async def list_templates_with_options_async( query['pageNumber'] = request.page_number if not UtilClient.is_unset(request.page_size): query['pageSize'] = request.page_size + if not UtilClient.is_unset(request.status): + query['status'] = request.status + if not UtilClient.is_unset(request.template_name): + query['templateName'] = request.template_name if not UtilClient.is_unset(request.template_type): query['templateType'] = request.template_type req = open_api_models.OpenApiRequest( @@ -5424,7 +5522,7 @@ def stop_sandbox_with_options( runtime: util_models.RuntimeOptions, ) -> agent_run_20250910_models.StopSandboxResponse: """ - @summary 停止沙箱 + @summary 删除沙箱 @description 停止指定的沙箱实例。停止后,沙箱将进入TERMINATED状态。 @@ -5439,8 +5537,8 @@ def stop_sandbox_with_options( action='StopSandbox', version='2025-09-10', protocol='HTTPS', - pathname=f'/2025-09-10/sandboxes/{OpenApiUtilClient.get_encode_param(sandbox_id)}', - method='DELETE', + pathname=f'/2025-09-10/sandboxes/{OpenApiUtilClient.get_encode_param(sandbox_id)}/stop', + method='POST', auth_type='AK', style='ROA', req_body_type='json', @@ -5458,7 +5556,7 @@ async def stop_sandbox_with_options_async( runtime: util_models.RuntimeOptions, ) -> agent_run_20250910_models.StopSandboxResponse: """ - @summary 停止沙箱 + @summary 删除沙箱 @description 停止指定的沙箱实例。停止后,沙箱将进入TERMINATED状态。 @@ -5473,8 +5571,8 @@ async def stop_sandbox_with_options_async( action='StopSandbox', version='2025-09-10', protocol='HTTPS', - pathname=f'/2025-09-10/sandboxes/{OpenApiUtilClient.get_encode_param(sandbox_id)}', - method='DELETE', + pathname=f'/2025-09-10/sandboxes/{OpenApiUtilClient.get_encode_param(sandbox_id)}/stop', + method='POST', auth_type='AK', style='ROA', req_body_type='json', @@ -5490,7 +5588,7 @@ def stop_sandbox( sandbox_id: str, ) -> agent_run_20250910_models.StopSandboxResponse: """ - @summary 停止沙箱 + @summary 删除沙箱 @description 停止指定的沙箱实例。停止后,沙箱将进入TERMINATED状态。 @@ -5505,7 +5603,7 @@ async def stop_sandbox_async( sandbox_id: str, ) -> agent_run_20250910_models.StopSandboxResponse: """ - @summary 停止沙箱 + @summary 删除沙箱 @description 停止指定的沙箱实例。停止后,沙箱将进入TERMINATED状态。 diff --git a/agentrun-20250910/alibabacloud_agentrun20250910/models.py b/agentrun-20250910/alibabacloud_agentrun20250910/models.py index 3026e0fac..c145ec156 100644 --- a/agentrun-20250910/alibabacloud_agentrun20250910/models.py +++ b/agentrun-20250910/alibabacloud_agentrun20250910/models.py @@ -4132,9 +4132,11 @@ def from_map(self, m: dict = None): class CreateSandboxInput(TeaModel): def __init__( self, + sandbox_id: str = None, sandbox_idle_timeout_seconds: int = None, template_name: str = None, ): + self.sandbox_id = sandbox_id # 沙箱空闲超时时间(秒) self.sandbox_idle_timeout_seconds = sandbox_idle_timeout_seconds # 模板名称(系统内部通过 templateName 查询 template_id) @@ -4151,6 +4153,8 @@ def to_map(self): return _map result = dict() + if self.sandbox_id is not None: + result['sandboxId'] = self.sandbox_id if self.sandbox_idle_timeout_seconds is not None: result['sandboxIdleTimeoutSeconds'] = self.sandbox_idle_timeout_seconds if self.template_name is not None: @@ -4159,6 +4163,8 @@ def to_map(self): def from_map(self, m: dict = None): m = m or dict() + if m.get('sandboxId') is not None: + self.sandbox_id = m.get('sandboxId') if m.get('sandboxIdleTimeoutSeconds') is not None: self.sandbox_idle_timeout_seconds = m.get('sandboxIdleTimeoutSeconds') if m.get('templateName') is not None: @@ -5309,19 +5315,18 @@ def from_map(self, m: dict = None): class Sandbox(TeaModel): def __init__( self, - sandbox_idle_ttlin_seconds: int = None, created_at: str = None, ended_at: str = None, last_updated_at: str = None, metadata: Dict[str, Any] = None, sandbox_arn: str = None, sandbox_id: str = None, + sandbox_idle_ttlin_seconds: int = None, sandbox_idle_timeout_seconds: int = None, status: str = None, template_id: str = None, template_name: str = None, ): - self.sandbox_idle_ttlin_seconds = sandbox_idle_ttlin_seconds # 沙箱创建时间 # # This parameter is required. @@ -5333,6 +5338,7 @@ def __init__( self.sandbox_arn = sandbox_arn # This parameter is required. self.sandbox_id = sandbox_id + self.sandbox_idle_ttlin_seconds = sandbox_idle_ttlin_seconds # 沙箱空闲超时时间(秒) self.sandbox_idle_timeout_seconds = sandbox_idle_timeout_seconds # This parameter is required. @@ -5350,8 +5356,6 @@ def to_map(self): return _map result = dict() - if self.sandbox_idle_ttlin_seconds is not None: - result['SandboxIdleTTLInSeconds'] = self.sandbox_idle_ttlin_seconds if self.created_at is not None: result['createdAt'] = self.created_at if self.ended_at is not None: @@ -5364,6 +5368,8 @@ def to_map(self): result['sandboxArn'] = self.sandbox_arn if self.sandbox_id is not None: result['sandboxId'] = self.sandbox_id + if self.sandbox_idle_ttlin_seconds is not None: + result['sandboxIdleTTLInSeconds'] = self.sandbox_idle_ttlin_seconds if self.sandbox_idle_timeout_seconds is not None: result['sandboxIdleTimeoutSeconds'] = self.sandbox_idle_timeout_seconds if self.status is not None: @@ -5376,8 +5382,6 @@ def to_map(self): def from_map(self, m: dict = None): m = m or dict() - if m.get('SandboxIdleTTLInSeconds') is not None: - self.sandbox_idle_ttlin_seconds = m.get('SandboxIdleTTLInSeconds') if m.get('createdAt') is not None: self.created_at = m.get('createdAt') if m.get('endedAt') is not None: @@ -5390,6 +5394,8 @@ def from_map(self, m: dict = None): self.sandbox_arn = m.get('sandboxArn') if m.get('sandboxId') is not None: self.sandbox_id = m.get('sandboxId') + if m.get('sandboxIdleTTLInSeconds') is not None: + self.sandbox_idle_ttlin_seconds = m.get('sandboxIdleTTLInSeconds') if m.get('sandboxIdleTimeoutSeconds') is not None: self.sandbox_idle_timeout_seconds = m.get('sandboxIdleTimeoutSeconds') if m.get('status') is not None: @@ -8879,6 +8885,47 @@ def from_map(self, m: dict = None): return self +class StopSandboxResult(TeaModel): + def __init__( + self, + code: str = None, + data: Sandbox = None, + request_id: str = None, + ): + self.code = code + self.data = data + self.request_id = request_id + + def validate(self): + if self.data: + self.data.validate() + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.code is not None: + result['code'] = self.code + if self.data is not None: + result['data'] = self.data.to_map() + if self.request_id is not None: + result['requestId'] = self.request_id + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('code') is not None: + self.code = m.get('code') + if m.get('data') is not None: + temp_model = Sandbox() + self.data = temp_model.from_map(m['data']) + if m.get('requestId') is not None: + self.request_id = m.get('requestId') + return self + + class Target(TeaModel): def __init__( self, @@ -11352,6 +11399,47 @@ def from_map(self, m: dict = None): return self +class DeleteSandboxResponse(TeaModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + body: DeleteSandboxResult = None, + ): + self.headers = headers + self.status_code = status_code + self.body = body + + def validate(self): + if self.body: + self.body.validate() + + def to_map(self): + _map = super().to_map() + if _map is not None: + return _map + + result = dict() + if self.headers is not None: + result['headers'] = self.headers + if self.status_code is not None: + result['statusCode'] = self.status_code + if self.body is not None: + result['body'] = self.body.to_map() + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + if m.get('body') is not None: + temp_model = DeleteSandboxResult() + self.body = temp_model.from_map(m['body']) + return self + + class DeleteTemplateResponse(TeaModel): def __init__( self, @@ -13941,12 +14029,16 @@ def __init__( self, page_number: int = None, page_size: int = None, + status: str = None, + template_name: str = None, template_type: str = None, ): # 当前页码,从1开始计数 self.page_number = page_number # 每页返回的记录数量 self.page_size = page_size + self.status = status + self.template_name = template_name # 按模板类型过滤 self.template_type = template_type @@ -13963,6 +14055,10 @@ def to_map(self): result['pageNumber'] = self.page_number if self.page_size is not None: result['pageSize'] = self.page_size + if self.status is not None: + result['status'] = self.status + if self.template_name is not None: + result['templateName'] = self.template_name if self.template_type is not None: result['templateType'] = self.template_type return result @@ -13973,6 +14069,10 @@ def from_map(self, m: dict = None): self.page_number = m.get('pageNumber') if m.get('pageSize') is not None: self.page_size = m.get('pageSize') + if m.get('status') is not None: + self.status = m.get('status') + if m.get('templateName') is not None: + self.template_name = m.get('templateName') if m.get('templateType') is not None: self.template_type = m.get('templateType') return self @@ -14310,7 +14410,7 @@ def __init__( self, headers: Dict[str, str] = None, status_code: int = None, - body: DeleteSandboxResult = None, + body: StopSandboxResult = None, ): self.headers = headers self.status_code = status_code @@ -14341,7 +14441,7 @@ def from_map(self, m: dict = None): if m.get('statusCode') is not None: self.status_code = m.get('statusCode') if m.get('body') is not None: - temp_model = DeleteSandboxResult() + temp_model = StopSandboxResult() self.body = temp_model.from_map(m['body']) return self diff --git a/agentrun-20250910/setup.py b/agentrun-20250910/setup.py index f420e9fad..4cc8af2eb 100644 --- a/agentrun-20250910/setup.py +++ b/agentrun-20250910/setup.py @@ -24,7 +24,7 @@ """ setup module for alibabacloud_agentrun20250910. -Created on 20/11/2025 +Created on 24/11/2025 @author: Alibaba Cloud SDK """ From 78075cdcb2827069875776bf8a991e6a40b26123 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 24 Nov 2025 08:00:16 +0000 Subject: [PATCH 4/4] Generated python 2024-11-11 for IQS. --- iqs-20241111/ChangeLog.md | 3 +++ iqs-20241111/alibabacloud_iqs20241111/__init__.py | 2 +- iqs-20241111/alibabacloud_iqs20241111/models.py | 12 ++++++++++++ iqs-20241111/setup.py | 2 +- 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/iqs-20241111/ChangeLog.md b/iqs-20241111/ChangeLog.md index 9328340ce..81e42b710 100644 --- a/iqs-20241111/ChangeLog.md +++ b/iqs-20241111/ChangeLog.md @@ -1,3 +1,6 @@ +2025-11-24 Version: 1.6.1 +- Generated python 2024-11-11 for IQS. + 2025-10-29 Version: 1.6.0 - Support API ReadPageScrape. - Update API GenericSearch: add request parameters advancedParams. diff --git a/iqs-20241111/alibabacloud_iqs20241111/__init__.py b/iqs-20241111/alibabacloud_iqs20241111/__init__.py index a8b59de7f..5c14ca998 100644 --- a/iqs-20241111/alibabacloud_iqs20241111/__init__.py +++ b/iqs-20241111/alibabacloud_iqs20241111/__init__.py @@ -1 +1 @@ -__version__ = '1.6.0' \ No newline at end of file +__version__ = '1.6.1' \ No newline at end of file diff --git a/iqs-20241111/alibabacloud_iqs20241111/models.py b/iqs-20241111/alibabacloud_iqs20241111/models.py index f1f60bcec..f6f1ca3b1 100644 --- a/iqs-20241111/alibabacloud_iqs20241111/models.py +++ b/iqs-20241111/alibabacloud_iqs20241111/models.py @@ -135,6 +135,7 @@ def __init__( snippet: str = None, summary: str = None, title: str = None, + website_authority_score: int = None, ): # This parameter is required. self.card_type = card_type @@ -163,6 +164,7 @@ def __init__( self.summary = summary # This parameter is required. self.title = title + self.website_authority_score = website_authority_score def validate(self): if self.images: @@ -218,6 +220,8 @@ def to_map(self): result['summary'] = self.summary if self.title is not None: result['title'] = self.title + if self.website_authority_score is not None: + result['websiteAuthorityScore'] = self.website_authority_score return result def from_map(self, m: dict = None): @@ -265,6 +269,8 @@ def from_map(self, m: dict = None): self.summary = m.get('summary') if m.get('title') is not None: self.title = m.get('title') + if m.get('websiteAuthorityScore') is not None: + self.website_authority_score = m.get('websiteAuthorityScore') return self @@ -1472,6 +1478,7 @@ def __init__( snippet: str = None, summary: str = None, title: str = None, + website_authority_score: int = None, ): self.host_authority_score = host_authority_score self.host_logo = host_logo @@ -1486,6 +1493,7 @@ def __init__( self.snippet = snippet self.summary = summary self.title = title + self.website_authority_score = website_authority_score def validate(self): pass @@ -1522,6 +1530,8 @@ def to_map(self): result['summary'] = self.summary if self.title is not None: result['title'] = self.title + if self.website_authority_score is not None: + result['websiteAuthorityScore'] = self.website_authority_score return result def from_map(self, m: dict = None): @@ -1552,6 +1562,8 @@ def from_map(self, m: dict = None): self.summary = m.get('summary') if m.get('title') is not None: self.title = m.get('title') + if m.get('websiteAuthorityScore') is not None: + self.website_authority_score = m.get('websiteAuthorityScore') return self diff --git a/iqs-20241111/setup.py b/iqs-20241111/setup.py index 95803a7b5..0e9867d8d 100644 --- a/iqs-20241111/setup.py +++ b/iqs-20241111/setup.py @@ -24,7 +24,7 @@ """ setup module for alibabacloud_iqs20241111. -Created on 29/10/2025 +Created on 24/11/2025 @author: Alibaba Cloud SDK """