diff --git a/CHANGELOG.md b/CHANGELOG.md index c1f702aa83..386e71f499 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,265 @@ +# 3.1.117 2024-10-10 + +### HuaweiCloud SDK AAD + +- _API Version_ + - V1 +- _Features_ + - Support the APIs `AssociateIpToPolicyAndPackage`, `DisassociateIpFromPolicyAndPackage` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK CCE + +- _API Version_ + - V3 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowAutopilotCluster** + - changes of response param + - `+ spec.deletionProtection` + - **UpdateAutopilotCluster** + - changes of response param + - `+ spec.deletionProtection` + - **DeleteAutopilotCluster** + - changes of response param + - `+ spec.deletionProtection` + - **CreateAutopilotCluster** + - changes of request param + - `+ spec.deletionProtection` + - changes of response param + - `+ spec.deletionProtection` + - **ListAutopilotClusters** + - changes of response param + - `+ items.spec.deletionProtection` + +### HuaweiCloud SDK DataArtsStudio + +- _API Version_ + - V1 +- _Features_ + - Support the API `CreateLineageInfo` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK DGC + +- _API Version_ + - V1 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowJob** + - changes of response param + - `+ downstreamJobs` + +### HuaweiCloud SDK DRS + +- _API Version_ + - V3 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **BatchListJobDetails** + - changes of response param + - `* results.node_num: string -> int32` + +### HuaweiCloud SDK DRS + +- _API Version_ + - V5 +- _Features_ + - Support the following APIs: + - `ListReplicationJobs` + - `CreateReplicationJob` + - `ShowReplicationJob` + - `UpdateReplicationJob` + - `DeleteReplicationJob` + - `ChangeToPeriod` + - `ListConnections` + - `CreateConnection` + - `ModifyConnection` + - `DeleteConnection` + - `ListJobDdls` + - `CleanAlarms` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK ELB + +- _API Version_ + - V2 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListMembers** + - changes of request param + - `+ enterprise_project_id` + +### HuaweiCloud SDK EVS + +- _API Version_ + - V2 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowVolume** + - changes of response param + - `- volume.snapshot_policy_id` + - **ListVolumes** + - changes of request param + - `- snapshot_policy_id` + - changes of response param + - `- volumes.snapshot_policy_id` + +### HuaweiCloud SDK GaussDB + +- _API Version_ + - V3 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CreateStarrocksInstance** + - changes of request param + - `+ security_group_id` + - **CheckStarrocksParams** + - changes of response param + - `+ differences` + - `- check_starrocks_params_responce` + +### HuaweiCloud SDK MetaStudio + +- _API Version_ + - V1 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ExecuteSmartLiveCommand** + - changes of request param + - `+ command: enum value [CLEAN_UP_INSERT_COMMAND]` + - changes of response param + - `+ command: enum value [CLEAN_UP_INSERT_COMMAND]` + - **ShowAsset** + - changes of response param + - `+ system_properties.key: enum value [DIGITAL_HUMAN_2D_VIDEO,DIGITAL_HUMAN_3D_VIDEO,PHOTO_VIDEO,TRANSLATED_VIDEO]` + - `+ asset_extra_meta.voice_model_meta.voice_capability.conversion_rate` + - `+ asset_extra_meta.voice_model_meta.voice_capability.conversion_rate_en` + - **UpdateDigitalAsset** + - changes of request param + - `+ system_properties.key: enum value [DIGITAL_HUMAN_2D_VIDEO,DIGITAL_HUMAN_3D_VIDEO,PHOTO_VIDEO,TRANSLATED_VIDEO]` + - `+ asset_extra_meta.voice_model_meta.voice_capability.conversion_rate` + - `+ asset_extra_meta.voice_model_meta.voice_capability.conversion_rate_en` + - changes of response param + - `+ system_properties.key: enum value [DIGITAL_HUMAN_2D_VIDEO,DIGITAL_HUMAN_3D_VIDEO,PHOTO_VIDEO,TRANSLATED_VIDEO]` + - `+ asset_extra_meta.voice_model_meta.voice_capability.conversion_rate` + - `+ asset_extra_meta.voice_model_meta.voice_capability.conversion_rate_en` + - **CreateDigitalAsset** + - changes of request param + - `+ system_properties` + - `+ asset_extra_meta.voice_model_meta.voice_capability.conversion_rate` + - `+ asset_extra_meta.voice_model_meta.voice_capability.conversion_rate_en` + - **ListAssets** + - changes of response param + - `+ assets.system_properties.key: enum value [DIGITAL_HUMAN_2D_VIDEO,DIGITAL_HUMAN_3D_VIDEO,PHOTO_VIDEO,TRANSLATED_VIDEO]` + - `+ assets.asset_extra_meta.voice_model_meta.voice_capability.conversion_rate` + - `+ assets.asset_extra_meta.voice_model_meta.voice_capability.conversion_rate_en` + - **CreateSmartLiveRoom** + - changes of request param + - `+ interaction_config` + - `+ interaction_rules.trigger.play_type` + - **ShowSmartLiveRoom** + - changes of response param + - `+ interaction_config` + - `+ interaction_rules.trigger.play_type` + - **UpdateSmartLiveRoom** + - changes of request param + - `+ interaction_config` + - `+ interaction_rules.trigger.play_type` + - changes of response param + - `+ interaction_config` + - `+ interaction_rules.trigger.play_type` + - **UpdateInteractionRuleGroup** + - changes of request param + - `+ interaction_rules.trigger.play_type` + - changes of response param + - `+ interaction_rules.trigger.play_type` + - **CreateInteractionRuleGroup** + - changes of request param + - `+ interaction_rules.trigger.play_type` + - **ListInteractionRuleGroups** + - changes of response param + - `+ interaction_rule_groups.interaction_rules.trigger.play_type` + +### HuaweiCloud SDK RDS + +- _API Version_ + - V3 +- _Features_ + - Support the APIs `ShowRecoveryTimeWindow`, `UpdateToPeriod` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK WAF + +- _API Version_ + - V1 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowWhiteBlackIpRule** + - changes of response param + - `+ start` + - `+ terminal` + - **UpdateWhiteblackipRule** + - changes of request param + - `+ time_mode` + - `+ start` + - `+ terminal` + - changes of response param + - `+ start` + - `+ terminal` + - **DeleteWhiteBlackIpRule** + - changes of response param + - `+ start` + - `+ terminal` + - **CreateWhiteblackipRule** + - changes of request param + - `+ time_mode` + - `+ start` + - `+ terminal` + - changes of response param + - `+ start` + - `+ terminal` + - **ListWhiteblackipRule** + - changes of response param + - `+ items.start` + - `+ items.terminal` + # 3.1.116 2024-09-26 ### HuaweiCloud SDK BSS diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index b94e300ef1..6d8c2da1ec 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,265 @@ +# 3.1.117 2024-10-10 + +### HuaweiCloud SDK AAD + +- _接口版本_ + - V1 +- _新增特性_ + - 支持接口`AssociateIpToPolicyAndPackage`、`DisassociateIpFromPolicyAndPackage` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK CCE + +- _接口版本_ + - V3 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowAutopilotCluster** + - 响应参数变更 + - `+ spec.deletionProtection` + - **UpdateAutopilotCluster** + - 响应参数变更 + - `+ spec.deletionProtection` + - **DeleteAutopilotCluster** + - 响应参数变更 + - `+ spec.deletionProtection` + - **CreateAutopilotCluster** + - 请求参数变更 + - `+ spec.deletionProtection` + - 响应参数变更 + - `+ spec.deletionProtection` + - **ListAutopilotClusters** + - 响应参数变更 + - `+ items.spec.deletionProtection` + +### HuaweiCloud SDK DataArtsStudio + +- _接口版本_ + - V1 +- _新增特性_ + - 支持接口`CreateLineageInfo` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK DGC + +- _接口版本_ + - V1 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowJob** + - 响应参数变更 + - `+ downstreamJobs` + +### HuaweiCloud SDK DRS + +- _接口版本_ + - V3 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **BatchListJobDetails** + - 响应参数变更 + - `* results.node_num: string -> int32` + +### HuaweiCloud SDK DRS + +- _接口版本_ + - V5 +- _新增特性_ + - 支持以下接口: + - `ListReplicationJobs` + - `CreateReplicationJob` + - `ShowReplicationJob` + - `UpdateReplicationJob` + - `DeleteReplicationJob` + - `ChangeToPeriod` + - `ListConnections` + - `CreateConnection` + - `ModifyConnection` + - `DeleteConnection` + - `ListJobDdls` + - `CleanAlarms` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK ELB + +- _接口版本_ + - V2 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListMembers** + - 请求参数变更 + - `+ enterprise_project_id` + +### HuaweiCloud SDK EVS + +- _接口版本_ + - V2 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowVolume** + - 响应参数变更 + - `- volume.snapshot_policy_id` + - **ListVolumes** + - 请求参数变更 + - `- snapshot_policy_id` + - 响应参数变更 + - `- volumes.snapshot_policy_id` + +### HuaweiCloud SDK GaussDB + +- _接口版本_ + - V3 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CreateStarrocksInstance** + - 请求参数变更 + - `+ security_group_id` + - **CheckStarrocksParams** + - 响应参数变更 + - `+ differences` + - `- check_starrocks_params_responce` + +### HuaweiCloud SDK MetaStudio + +- _接口版本_ + - V1 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ExecuteSmartLiveCommand** + - 请求参数变更 + - `+ command: enum value [CLEAN_UP_INSERT_COMMAND]` + - 响应参数变更 + - `+ command: enum value [CLEAN_UP_INSERT_COMMAND]` + - **ShowAsset** + - 响应参数变更 + - `+ system_properties.key: enum value [DIGITAL_HUMAN_2D_VIDEO,DIGITAL_HUMAN_3D_VIDEO,PHOTO_VIDEO,TRANSLATED_VIDEO]` + - `+ asset_extra_meta.voice_model_meta.voice_capability.conversion_rate` + - `+ asset_extra_meta.voice_model_meta.voice_capability.conversion_rate_en` + - **UpdateDigitalAsset** + - 请求参数变更 + - `+ system_properties.key: enum value [DIGITAL_HUMAN_2D_VIDEO,DIGITAL_HUMAN_3D_VIDEO,PHOTO_VIDEO,TRANSLATED_VIDEO]` + - `+ asset_extra_meta.voice_model_meta.voice_capability.conversion_rate` + - `+ asset_extra_meta.voice_model_meta.voice_capability.conversion_rate_en` + - 响应参数变更 + - `+ system_properties.key: enum value [DIGITAL_HUMAN_2D_VIDEO,DIGITAL_HUMAN_3D_VIDEO,PHOTO_VIDEO,TRANSLATED_VIDEO]` + - `+ asset_extra_meta.voice_model_meta.voice_capability.conversion_rate` + - `+ asset_extra_meta.voice_model_meta.voice_capability.conversion_rate_en` + - **CreateDigitalAsset** + - 请求参数变更 + - `+ system_properties` + - `+ asset_extra_meta.voice_model_meta.voice_capability.conversion_rate` + - `+ asset_extra_meta.voice_model_meta.voice_capability.conversion_rate_en` + - **ListAssets** + - 响应参数变更 + - `+ assets.system_properties.key: enum value [DIGITAL_HUMAN_2D_VIDEO,DIGITAL_HUMAN_3D_VIDEO,PHOTO_VIDEO,TRANSLATED_VIDEO]` + - `+ assets.asset_extra_meta.voice_model_meta.voice_capability.conversion_rate` + - `+ assets.asset_extra_meta.voice_model_meta.voice_capability.conversion_rate_en` + - **CreateSmartLiveRoom** + - 请求参数变更 + - `+ interaction_config` + - `+ interaction_rules.trigger.play_type` + - **ShowSmartLiveRoom** + - 响应参数变更 + - `+ interaction_config` + - `+ interaction_rules.trigger.play_type` + - **UpdateSmartLiveRoom** + - 请求参数变更 + - `+ interaction_config` + - `+ interaction_rules.trigger.play_type` + - 响应参数变更 + - `+ interaction_config` + - `+ interaction_rules.trigger.play_type` + - **UpdateInteractionRuleGroup** + - 请求参数变更 + - `+ interaction_rules.trigger.play_type` + - 响应参数变更 + - `+ interaction_rules.trigger.play_type` + - **CreateInteractionRuleGroup** + - 请求参数变更 + - `+ interaction_rules.trigger.play_type` + - **ListInteractionRuleGroups** + - 响应参数变更 + - `+ interaction_rule_groups.interaction_rules.trigger.play_type` + +### HuaweiCloud SDK RDS + +- _接口版本_ + - V3 +- _新增特性_ + - 支持接口`ShowRecoveryTimeWindow`、`UpdateToPeriod` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK WAF + +- _接口版本_ + - V1 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowWhiteBlackIpRule** + - 响应参数变更 + - `+ start` + - `+ terminal` + - **UpdateWhiteblackipRule** + - 请求参数变更 + - `+ time_mode` + - `+ start` + - `+ terminal` + - 响应参数变更 + - `+ start` + - `+ terminal` + - **DeleteWhiteBlackIpRule** + - 响应参数变更 + - `+ start` + - `+ terminal` + - **CreateWhiteblackipRule** + - 请求参数变更 + - `+ time_mode` + - `+ start` + - `+ terminal` + - 响应参数变更 + - `+ start` + - `+ terminal` + - **ListWhiteblackipRule** + - 响应参数变更 + - `+ items.start` + - `+ items.terminal` + # 3.1.116 2024-09-26 ### HuaweiCloud SDK BSS diff --git a/VERSION b/VERSION index 4f092be4a3..14a3dc3859 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.116 +3.1.117 diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/__init__.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/__init__.py index 7bde399ee4..83b08f2a23 100644 --- a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/__init__.py +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/__init__.py @@ -10,6 +10,8 @@ from huaweicloudsdkaad.v1.model.add_policy_black_and_white_ip_list_request import AddPolicyBlackAndWhiteIpListRequest from huaweicloudsdkaad.v1.model.add_policy_black_and_white_ip_list_response import AddPolicyBlackAndWhiteIpListResponse from huaweicloudsdkaad.v1.model.alarm_body import AlarmBody +from huaweicloudsdkaad.v1.model.associate_ip_to_policy_and_package_request import AssociateIpToPolicyAndPackageRequest +from huaweicloudsdkaad.v1.model.associate_ip_to_policy_and_package_response import AssociateIpToPolicyAndPackageResponse from huaweicloudsdkaad.v1.model.associate_ip_to_policy_request import AssociateIpToPolicyRequest from huaweicloudsdkaad.v1.model.associate_ip_to_policy_response import AssociateIpToPolicyResponse from huaweicloudsdkaad.v1.model.batch_create_instance_ip_rule_request import BatchCreateInstanceIpRuleRequest @@ -37,6 +39,8 @@ from huaweicloudsdkaad.v1.model.delete_policy_black_and_white_ip_list_response import DeletePolicyBlackAndWhiteIpListResponse from huaweicloudsdkaad.v1.model.delete_policy_request import DeletePolicyRequest from huaweicloudsdkaad.v1.model.delete_policy_response import DeletePolicyResponse +from huaweicloudsdkaad.v1.model.disassociate_ip_from_policy_and_package_request import DisassociateIpFromPolicyAndPackageRequest +from huaweicloudsdkaad.v1.model.disassociate_ip_from_policy_and_package_response import DisassociateIpFromPolicyAndPackageResponse from huaweicloudsdkaad.v1.model.disassociate_ip_from_policy_request import DisassociateIpFromPolicyRequest from huaweicloudsdkaad.v1.model.disassociate_ip_from_policy_response import DisassociateIpFromPolicyResponse from huaweicloudsdkaad.v1.model.domain_info import DomainInfo @@ -48,6 +52,7 @@ from huaweicloudsdkaad.v1.model.instance_info import InstanceInfo from huaweicloudsdkaad.v1.model.instance_ip_info import InstanceIpInfo from huaweicloudsdkaad.v1.model.ip_binding_body import IpBindingBody +from huaweicloudsdkaad.v1.model.ip_binding_v3_body import IpBindingV3Body from huaweicloudsdkaad.v1.model.ip_status_detail import IpStatusDetail from huaweicloudsdkaad.v1.model.list_block_ips_request import ListBlockIpsRequest from huaweicloudsdkaad.v1.model.list_block_ips_response import ListBlockIpsResponse diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/aad_async_client.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/aad_async_client.py index 7d46b883cc..0b47106227 100644 --- a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/aad_async_client.py +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/aad_async_client.py @@ -231,6 +231,73 @@ def _associate_ip_to_policy_http_info(self, request): return http_info + def associate_ip_to_policy_and_package_async(self, request): + """策略和防护包绑定防护对象 + + 策略和防护包绑定防护对象 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for AssociateIpToPolicyAndPackage + :type request: :class:`huaweicloudsdkaad.v1.AssociateIpToPolicyAndPackageRequest` + :rtype: :class:`huaweicloudsdkaad.v1.AssociateIpToPolicyAndPackageResponse` + """ + http_info = self._associate_ip_to_policy_and_package_http_info(request) + return self._call_api(**http_info) + + def associate_ip_to_policy_and_package_async_invoker(self, request): + http_info = self._associate_ip_to_policy_and_package_http_info(request) + return AsyncInvoker(self, http_info) + + def _associate_ip_to_policy_and_package_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v3/cnad/policies/{policy_id}/bind", + "request_type": request.__class__.__name__, + "response_type": "AssociateIpToPolicyAndPackageResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def batch_create_instance_ip_rule_async(self, request): """批量创建高防实例IP的转发规则 @@ -826,6 +893,73 @@ def _disassociate_ip_from_policy_http_info(self, request): return http_info + def disassociate_ip_from_policy_and_package_async(self, request): + """策略和防护包解绑防护对象 + + 策略和防护包解绑防护对象 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DisassociateIpFromPolicyAndPackage + :type request: :class:`huaweicloudsdkaad.v1.DisassociateIpFromPolicyAndPackageRequest` + :rtype: :class:`huaweicloudsdkaad.v1.DisassociateIpFromPolicyAndPackageResponse` + """ + http_info = self._disassociate_ip_from_policy_and_package_http_info(request) + return self._call_api(**http_info) + + def disassociate_ip_from_policy_and_package_async_invoker(self, request): + http_info = self._disassociate_ip_from_policy_and_package_http_info(request) + return AsyncInvoker(self, http_info) + + def _disassociate_ip_from_policy_and_package_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v3/cnad/policies/{policy_id}/unbind", + "request_type": request.__class__.__name__, + "response_type": "DisassociateIpFromPolicyAndPackageResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_domain_async(self, request): """查询域名列表 diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/aad_client.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/aad_client.py index b134f93a7a..271dfbaf52 100644 --- a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/aad_client.py +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/aad_client.py @@ -231,6 +231,73 @@ def _associate_ip_to_policy_http_info(cls, request): return http_info + def associate_ip_to_policy_and_package(self, request): + """策略和防护包绑定防护对象 + + 策略和防护包绑定防护对象 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for AssociateIpToPolicyAndPackage + :type request: :class:`huaweicloudsdkaad.v1.AssociateIpToPolicyAndPackageRequest` + :rtype: :class:`huaweicloudsdkaad.v1.AssociateIpToPolicyAndPackageResponse` + """ + http_info = self._associate_ip_to_policy_and_package_http_info(request) + return self._call_api(**http_info) + + def associate_ip_to_policy_and_package_invoker(self, request): + http_info = self._associate_ip_to_policy_and_package_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _associate_ip_to_policy_and_package_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v3/cnad/policies/{policy_id}/bind", + "request_type": request.__class__.__name__, + "response_type": "AssociateIpToPolicyAndPackageResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def batch_create_instance_ip_rule(self, request): """批量创建高防实例IP的转发规则 @@ -826,6 +893,73 @@ def _disassociate_ip_from_policy_http_info(cls, request): return http_info + def disassociate_ip_from_policy_and_package(self, request): + """策略和防护包解绑防护对象 + + 策略和防护包解绑防护对象 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DisassociateIpFromPolicyAndPackage + :type request: :class:`huaweicloudsdkaad.v1.DisassociateIpFromPolicyAndPackageRequest` + :rtype: :class:`huaweicloudsdkaad.v1.DisassociateIpFromPolicyAndPackageResponse` + """ + http_info = self._disassociate_ip_from_policy_and_package_http_info(request) + return self._call_api(**http_info) + + def disassociate_ip_from_policy_and_package_invoker(self, request): + http_info = self._disassociate_ip_from_policy_and_package_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _disassociate_ip_from_policy_and_package_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v3/cnad/policies/{policy_id}/unbind", + "request_type": request.__class__.__name__, + "response_type": "DisassociateIpFromPolicyAndPackageResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_domain(self, request): """查询域名列表 diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/__init__.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/__init__.py index de8df86158..1f48c7d389 100644 --- a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/__init__.py +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/__init__.py @@ -8,6 +8,8 @@ from huaweicloudsdkaad.v1.model.add_policy_black_and_white_ip_list_request import AddPolicyBlackAndWhiteIpListRequest from huaweicloudsdkaad.v1.model.add_policy_black_and_white_ip_list_response import AddPolicyBlackAndWhiteIpListResponse from huaweicloudsdkaad.v1.model.alarm_body import AlarmBody +from huaweicloudsdkaad.v1.model.associate_ip_to_policy_and_package_request import AssociateIpToPolicyAndPackageRequest +from huaweicloudsdkaad.v1.model.associate_ip_to_policy_and_package_response import AssociateIpToPolicyAndPackageResponse from huaweicloudsdkaad.v1.model.associate_ip_to_policy_request import AssociateIpToPolicyRequest from huaweicloudsdkaad.v1.model.associate_ip_to_policy_response import AssociateIpToPolicyResponse from huaweicloudsdkaad.v1.model.batch_create_instance_ip_rule_request import BatchCreateInstanceIpRuleRequest @@ -35,6 +37,8 @@ from huaweicloudsdkaad.v1.model.delete_policy_black_and_white_ip_list_response import DeletePolicyBlackAndWhiteIpListResponse from huaweicloudsdkaad.v1.model.delete_policy_request import DeletePolicyRequest from huaweicloudsdkaad.v1.model.delete_policy_response import DeletePolicyResponse +from huaweicloudsdkaad.v1.model.disassociate_ip_from_policy_and_package_request import DisassociateIpFromPolicyAndPackageRequest +from huaweicloudsdkaad.v1.model.disassociate_ip_from_policy_and_package_response import DisassociateIpFromPolicyAndPackageResponse from huaweicloudsdkaad.v1.model.disassociate_ip_from_policy_request import DisassociateIpFromPolicyRequest from huaweicloudsdkaad.v1.model.disassociate_ip_from_policy_response import DisassociateIpFromPolicyResponse from huaweicloudsdkaad.v1.model.domain_info import DomainInfo @@ -46,6 +50,7 @@ from huaweicloudsdkaad.v1.model.instance_info import InstanceInfo from huaweicloudsdkaad.v1.model.instance_ip_info import InstanceIpInfo from huaweicloudsdkaad.v1.model.ip_binding_body import IpBindingBody +from huaweicloudsdkaad.v1.model.ip_binding_v3_body import IpBindingV3Body from huaweicloudsdkaad.v1.model.ip_status_detail import IpStatusDetail from huaweicloudsdkaad.v1.model.list_block_ips_request import ListBlockIpsRequest from huaweicloudsdkaad.v1.model.list_block_ips_response import ListBlockIpsResponse diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/associate_ip_to_policy_and_package_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/associate_ip_to_policy_and_package_request.py new file mode 100644 index 0000000000..c4d24490f7 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/associate_ip_to_policy_and_package_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AssociateIpToPolicyAndPackageRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'policy_id': 'str', + 'body': 'IpBindingV3Body' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'body': 'body' + } + + def __init__(self, policy_id=None, body=None): + """AssociateIpToPolicyAndPackageRequest + + The model defined in huaweicloud sdk + + :param policy_id: 策略id + :type policy_id: str + :param body: Body of the AssociateIpToPolicyAndPackageRequest + :type body: :class:`huaweicloudsdkaad.v1.IpBindingV3Body` + """ + + + + self._policy_id = None + self._body = None + self.discriminator = None + + self.policy_id = policy_id + if body is not None: + self.body = body + + @property + def policy_id(self): + """Gets the policy_id of this AssociateIpToPolicyAndPackageRequest. + + 策略id + + :return: The policy_id of this AssociateIpToPolicyAndPackageRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this AssociateIpToPolicyAndPackageRequest. + + 策略id + + :param policy_id: The policy_id of this AssociateIpToPolicyAndPackageRequest. + :type policy_id: str + """ + self._policy_id = policy_id + + @property + def body(self): + """Gets the body of this AssociateIpToPolicyAndPackageRequest. + + :return: The body of this AssociateIpToPolicyAndPackageRequest. + :rtype: :class:`huaweicloudsdkaad.v1.IpBindingV3Body` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this AssociateIpToPolicyAndPackageRequest. + + :param body: The body of this AssociateIpToPolicyAndPackageRequest. + :type body: :class:`huaweicloudsdkaad.v1.IpBindingV3Body` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AssociateIpToPolicyAndPackageRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/associate_ip_to_policy_and_package_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/associate_ip_to_policy_and_package_response.py new file mode 100644 index 0000000000..a38e9c69d1 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/associate_ip_to_policy_and_package_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AssociateIpToPolicyAndPackageResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """AssociateIpToPolicyAndPackageResponse + + The model defined in huaweicloud sdk + + """ + + super(AssociateIpToPolicyAndPackageResponse, self).__init__() + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AssociateIpToPolicyAndPackageResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/disassociate_ip_from_policy_and_package_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/disassociate_ip_from_policy_and_package_request.py new file mode 100644 index 0000000000..a2e9dcede6 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/disassociate_ip_from_policy_and_package_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DisassociateIpFromPolicyAndPackageRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'policy_id': 'str', + 'body': 'IpBindingV3Body' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'body': 'body' + } + + def __init__(self, policy_id=None, body=None): + """DisassociateIpFromPolicyAndPackageRequest + + The model defined in huaweicloud sdk + + :param policy_id: 策略id + :type policy_id: str + :param body: Body of the DisassociateIpFromPolicyAndPackageRequest + :type body: :class:`huaweicloudsdkaad.v1.IpBindingV3Body` + """ + + + + self._policy_id = None + self._body = None + self.discriminator = None + + self.policy_id = policy_id + if body is not None: + self.body = body + + @property + def policy_id(self): + """Gets the policy_id of this DisassociateIpFromPolicyAndPackageRequest. + + 策略id + + :return: The policy_id of this DisassociateIpFromPolicyAndPackageRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this DisassociateIpFromPolicyAndPackageRequest. + + 策略id + + :param policy_id: The policy_id of this DisassociateIpFromPolicyAndPackageRequest. + :type policy_id: str + """ + self._policy_id = policy_id + + @property + def body(self): + """Gets the body of this DisassociateIpFromPolicyAndPackageRequest. + + :return: The body of this DisassociateIpFromPolicyAndPackageRequest. + :rtype: :class:`huaweicloudsdkaad.v1.IpBindingV3Body` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DisassociateIpFromPolicyAndPackageRequest. + + :param body: The body of this DisassociateIpFromPolicyAndPackageRequest. + :type body: :class:`huaweicloudsdkaad.v1.IpBindingV3Body` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DisassociateIpFromPolicyAndPackageRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/disassociate_ip_from_policy_and_package_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/disassociate_ip_from_policy_and_package_response.py new file mode 100644 index 0000000000..e5a702cf54 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/disassociate_ip_from_policy_and_package_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DisassociateIpFromPolicyAndPackageResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """DisassociateIpFromPolicyAndPackageResponse + + The model defined in huaweicloud sdk + + """ + + super(DisassociateIpFromPolicyAndPackageResponse, self).__init__() + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DisassociateIpFromPolicyAndPackageResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/ip_binding_v3_body.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/ip_binding_v3_body.py new file mode 100644 index 0000000000..10b562b733 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/ip_binding_v3_body.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class IpBindingV3Body: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'ip_list': 'list[str]' + } + + attribute_map = { + 'ip_list': 'ip_list' + } + + def __init__(self, ip_list=None): + """IpBindingV3Body + + The model defined in huaweicloud sdk + + :param ip_list: 防护ip列表 + :type ip_list: list[str] + """ + + + + self._ip_list = None + self.discriminator = None + + self.ip_list = ip_list + + @property + def ip_list(self): + """Gets the ip_list of this IpBindingV3Body. + + 防护ip列表 + + :return: The ip_list of this IpBindingV3Body. + :rtype: list[str] + """ + return self._ip_list + + @ip_list.setter + def ip_list(self, ip_list): + """Sets the ip_list of this IpBindingV3Body. + + 防护ip列表 + + :param ip_list: The ip_list of this IpBindingV3Body. + :type ip_list: list[str] + """ + self._ip_list = ip_list + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, IpBindingV3Body): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/__init__.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/__init__.py new file mode 100644 index 0000000000..707168dc28 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/__init__.py @@ -0,0 +1,77 @@ +# coding: utf-8 + +from __future__ import absolute_import + +from huaweicloudsdkaad.v2.aad_client import AadClient +from huaweicloudsdkaad.v2.aad_async_client import AadAsyncClient + +from huaweicloudsdkaad.v2.model.action_info import ActionInfo +from huaweicloudsdkaad.v2.model.backend import Backend +from huaweicloudsdkaad.v2.model.black_white_list_rule import BlackWhiteListRule +from huaweicloudsdkaad.v2.model.bw_list_ips import BwListIps +from huaweicloudsdkaad.v2.model.cert_info import CertInfo +from huaweicloudsdkaad.v2.model.condition import Condition +from huaweicloudsdkaad.v2.model.create_aad_domain_request_body import CreateAadDomainRequestBody +from huaweicloudsdkaad.v2.model.create_domain_request import CreateDomainRequest +from huaweicloudsdkaad.v2.model.create_domain_response import CreateDomainResponse +from huaweicloudsdkaad.v2.model.curve import Curve +from huaweicloudsdkaad.v2.model.delete_domain_request import DeleteDomainRequest +from huaweicloudsdkaad.v2.model.delete_domain_response import DeleteDomainResponse +from huaweicloudsdkaad.v2.model.delete_domain_v2_request_body import DeleteDomainV2RequestBody +from huaweicloudsdkaad.v2.model.detail_info import DetailInfo +from huaweicloudsdkaad.v2.model.empty_json_response import EmptyJsonResponse +from huaweicloudsdkaad.v2.model.flow_bps import FlowBps +from huaweicloudsdkaad.v2.model.flow_pps import FlowPps +from huaweicloudsdkaad.v2.model.frequency_control_rule import FrequencyControlRule +from huaweicloudsdkaad.v2.model.instance_domain_item import InstanceDomainItem +from huaweicloudsdkaad.v2.model.ips import Ips +from huaweicloudsdkaad.v2.model.list_connection_number_data import ListConnectionNumberData +from huaweicloudsdkaad.v2.model.list_connection_number_data_list import ListConnectionNumberDataList +from huaweicloudsdkaad.v2.model.list_d_do_s_attack_event_request import ListDDoSAttackEventRequest +from huaweicloudsdkaad.v2.model.list_d_do_s_attack_event_request_body import ListDDoSAttackEventRequestBody +from huaweicloudsdkaad.v2.model.list_d_do_s_attack_event_response import ListDDoSAttackEventResponse +from huaweicloudsdkaad.v2.model.list_d_do_s_connection_number_request import ListDDoSConnectionNumberRequest +from huaweicloudsdkaad.v2.model.list_d_do_s_connection_number_response import ListDDoSConnectionNumberResponse +from huaweicloudsdkaad.v2.model.list_d_do_s_event_data import ListDDoSEventData +from huaweicloudsdkaad.v2.model.list_d_do_s_flow_request import ListDDoSFlowRequest +from huaweicloudsdkaad.v2.model.list_d_do_s_flow_response import ListDDoSFlowResponse +from huaweicloudsdkaad.v2.model.list_frequency_control_rule_request import ListFrequencyControlRuleRequest +from huaweicloudsdkaad.v2.model.list_frequency_control_rule_response import ListFrequencyControlRuleResponse +from huaweicloudsdkaad.v2.model.list_instance_domains_request import ListInstanceDomainsRequest +from huaweicloudsdkaad.v2.model.list_instance_domains_response import ListInstanceDomainsResponse +from huaweicloudsdkaad.v2.model.list_waf_attack_event_request import ListWafAttackEventRequest +from huaweicloudsdkaad.v2.model.list_waf_attack_event_response import ListWafAttackEventResponse +from huaweicloudsdkaad.v2.model.list_waf_attack_eventlist import ListWafAttackEventlist +from huaweicloudsdkaad.v2.model.list_waf_bandwidth_request import ListWafBandwidthRequest +from huaweicloudsdkaad.v2.model.list_waf_bandwidth_response import ListWafBandwidthResponse +from huaweicloudsdkaad.v2.model.list_waf_custom_rule_request import ListWafCustomRuleRequest +from huaweicloudsdkaad.v2.model.list_waf_custom_rule_response import ListWafCustomRuleResponse +from huaweicloudsdkaad.v2.model.list_waf_geo_ip_rule_request import ListWafGeoIpRuleRequest +from huaweicloudsdkaad.v2.model.list_waf_geo_ip_rule_response import ListWafGeoIpRuleResponse +from huaweicloudsdkaad.v2.model.list_waf_qps_request import ListWafQpsRequest +from huaweicloudsdkaad.v2.model.list_waf_qps_response import ListWafQpsResponse +from huaweicloudsdkaad.v2.model.list_waf_white_ip_rule_request import ListWafWhiteIpRuleRequest +from huaweicloudsdkaad.v2.model.list_waf_white_ip_rule_response import ListWafWhiteIpRuleResponse +from huaweicloudsdkaad.v2.model.list_white_black_ip_rule_request import ListWhiteBlackIpRuleRequest +from huaweicloudsdkaad.v2.model.list_white_black_ip_rule_response import ListWhiteBlackIpRuleResponse +from huaweicloudsdkaad.v2.model.page_resp_info import PageRespInfo +from huaweicloudsdkaad.v2.model.point import Point +from huaweicloudsdkaad.v2.model.show_domain_certificate_request import ShowDomainCertificateRequest +from huaweicloudsdkaad.v2.model.show_domain_certificate_response import ShowDomainCertificateResponse +from huaweicloudsdkaad.v2.model.show_flow_block_request import ShowFlowBlockRequest +from huaweicloudsdkaad.v2.model.show_flow_block_response import ShowFlowBlockResponse +from huaweicloudsdkaad.v2.model.show_waf_policy_request import ShowWafPolicyRequest +from huaweicloudsdkaad.v2.model.show_waf_policy_response import ShowWafPolicyResponse +from huaweicloudsdkaad.v2.model.show_waf_qps_request import ShowWafQpsRequest +from huaweicloudsdkaad.v2.model.show_waf_qps_response import ShowWafQpsResponse +from huaweicloudsdkaad.v2.model.tag_condition import TagCondition +from huaweicloudsdkaad.v2.model.upgrade_instance_data import UpgradeInstanceData +from huaweicloudsdkaad.v2.model.upgrade_instance_spec_request import UpgradeInstanceSpecRequest +from huaweicloudsdkaad.v2.model.upgrade_instance_spec_response import UpgradeInstanceSpecResponse +from huaweicloudsdkaad.v2.model.upgrade_instance_spec_v2_request_body import UpgradeInstanceSpecV2RequestBody +from huaweicloudsdkaad.v2.model.waf_custom_condition import WafCustomCondition +from huaweicloudsdkaad.v2.model.waf_custom_rule import WafCustomRule +from huaweicloudsdkaad.v2.model.waf_custom_rule_action import WafCustomRuleAction +from huaweicloudsdkaad.v2.model.waf_geo_ip_rule import WafGeoIpRule +from huaweicloudsdkaad.v2.model.waf_policy_options import WafPolicyOptions + diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/aad_async_client.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/aad_async_client.py new file mode 100644 index 0000000000..221db01f6a --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/aad_async_client.py @@ -0,0 +1,1385 @@ +# coding: utf-8 + +from __future__ import absolute_import + +import importlib +import warnings + +from huaweicloudsdkcore.client import Client, ClientBuilder +from huaweicloudsdkcore.utils import http_utils +from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest +try: + from huaweicloudsdkcore.invoker.invoker import AsyncInvoker +except ImportError as e: + warnings.warn(str(e) + ", please check if you are using the same versions of 'huaweicloudsdkcore' and 'huaweicloudsdkaad'") + + +class AadAsyncClient(Client): + def __init__(self): + super(AadAsyncClient, self).__init__() + self.model_package = importlib.import_module("huaweicloudsdkaad.v2.model") + + @classmethod + def new_builder(cls, clazz=None): + if not clazz: + client_builder = ClientBuilder(cls, "GlobalCredentials") + else: + if clazz.__name__ != "AadAsyncClient": + raise TypeError("client type error, support client type is AadAsyncClient") + client_builder = ClientBuilder(clazz, "GlobalCredentials") + + + + return client_builder + + def create_domain_async(self, request): + """创建防护域名 + + 创建防护域名 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateDomain + :type request: :class:`huaweicloudsdkaad.v2.CreateDomainRequest` + :rtype: :class:`huaweicloudsdkaad.v2.CreateDomainResponse` + """ + http_info = self._create_domain_http_info(request) + return self._call_api(**http_info) + + def create_domain_async_invoker(self, request): + http_info = self._create_domain_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_domain_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v2/aad/domains", + "request_type": request.__class__.__name__, + "response_type": "CreateDomainResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_d_do_s_attack_event_async(self, request): + """查询DDoS攻击事件列表 + + 查询DDoS攻击事件列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListDDoSAttackEvent + :type request: :class:`huaweicloudsdkaad.v2.ListDDoSAttackEventRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ListDDoSAttackEventResponse` + """ + http_info = self._list_d_do_s_attack_event_http_info(request) + return self._call_api(**http_info) + + def list_d_do_s_attack_event_async_invoker(self, request): + http_info = self._list_d_do_s_attack_event_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_d_do_s_attack_event_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v2/aad/instances/{instance_id}/ddos-info/attack/events", + "request_type": request.__class__.__name__, + "response_type": "ListDDoSAttackEventResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_d_do_s_connection_number_async(self, request): + """查询新建连接数和并发连接数 + + 查询新建连接数和并发连接数 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListDDoSConnectionNumber + :type request: :class:`huaweicloudsdkaad.v2.ListDDoSConnectionNumberRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ListDDoSConnectionNumberResponse` + """ + http_info = self._list_d_do_s_connection_number_http_info(request) + return self._call_api(**http_info) + + def list_d_do_s_connection_number_async_invoker(self, request): + http_info = self._list_d_do_s_connection_number_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_d_do_s_connection_number_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/instances/{instance_id}/ddos-info/flow/connection-numbers", + "request_type": request.__class__.__name__, + "response_type": "ListDDoSConnectionNumberResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + if 'ip' in local_var_params: + query_params.append(('ip', local_var_params['ip'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_d_do_s_flow_async(self, request): + """查询DDoS攻击防护BPS/PPS流量 + + 查询DDoS攻击防护BPS/PPS流量 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListDDoSFlow + :type request: :class:`huaweicloudsdkaad.v2.ListDDoSFlowRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ListDDoSFlowResponse` + """ + http_info = self._list_d_do_s_flow_http_info(request) + return self._call_api(**http_info) + + def list_d_do_s_flow_async_invoker(self, request): + http_info = self._list_d_do_s_flow_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_d_do_s_flow_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/instances/{instance_id}/ddos-info/flow", + "request_type": request.__class__.__name__, + "response_type": "ListDDoSFlowResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + if 'ip' in local_var_params: + query_params.append(('ip', local_var_params['ip'])) + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_frequency_control_rule_async(self, request): + """查询频率控制规则列表 + + 查询频率控制规则列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListFrequencyControlRule + :type request: :class:`huaweicloudsdkaad.v2.ListFrequencyControlRuleRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ListFrequencyControlRuleResponse` + """ + http_info = self._list_frequency_control_rule_http_info(request) + return self._call_api(**http_info) + + def list_frequency_control_rule_async_invoker(self, request): + http_info = self._list_frequency_control_rule_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_frequency_control_rule_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/policies/waf/frequency-control-rule", + "request_type": request.__class__.__name__, + "response_type": "ListFrequencyControlRuleResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'domain_name' in local_var_params: + query_params.append(('domain_name', local_var_params['domain_name'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_instance_domains_async(self, request): + """查询实例关联的域名信息 + + 查询实例关联的域名信息 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListInstanceDomains + :type request: :class:`huaweicloudsdkaad.v2.ListInstanceDomainsRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ListInstanceDomainsResponse` + """ + http_info = self._list_instance_domains_http_info(request) + return self._call_api(**http_info) + + def list_instance_domains_async_invoker(self, request): + http_info = self._list_instance_domains_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_instance_domains_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/instances/{instance_id}/domains", + "request_type": request.__class__.__name__, + "response_type": "ListInstanceDomainsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_waf_attack_event_async(self, request): + """查询攻击事件列表 + + 查询攻击事件列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListWafAttackEvent + :type request: :class:`huaweicloudsdkaad.v2.ListWafAttackEventRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ListWafAttackEventResponse` + """ + http_info = self._list_waf_attack_event_http_info(request) + return self._call_api(**http_info) + + def list_waf_attack_event_async_invoker(self, request): + http_info = self._list_waf_attack_event_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_waf_attack_event_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/domains/waf-info/attack/event", + "request_type": request.__class__.__name__, + "response_type": "ListWafAttackEventResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'domains' in local_var_params: + query_params.append(('domains', local_var_params['domains'])) + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + if 'recent' in local_var_params: + query_params.append(('recent', local_var_params['recent'])) + if 'overseas_type' in local_var_params: + query_params.append(('overseas_type', local_var_params['overseas_type'])) + if 'sip' in local_var_params: + query_params.append(('sip', local_var_params['sip'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_waf_bandwidth_async(self, request): + """带宽曲线 + + 带宽曲线 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListWafBandwidth + :type request: :class:`huaweicloudsdkaad.v2.ListWafBandwidthRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ListWafBandwidthResponse` + """ + http_info = self._list_waf_bandwidth_http_info(request) + return self._call_api(**http_info) + + def list_waf_bandwidth_async_invoker(self, request): + http_info = self._list_waf_bandwidth_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_waf_bandwidth_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/domains/waf-info/flow/bandwidth", + "request_type": request.__class__.__name__, + "response_type": "ListWafBandwidthResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'domains' in local_var_params: + query_params.append(('domains', local_var_params['domains'])) + if 'value_type' in local_var_params: + query_params.append(('value_type', local_var_params['value_type'])) + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + if 'recent' in local_var_params: + query_params.append(('recent', local_var_params['recent'])) + if 'overseas_type' in local_var_params: + query_params.append(('overseas_type', local_var_params['overseas_type'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_waf_custom_rule_async(self, request): + """查询精准防护规则 + + 查询精准防护规则 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListWafCustomRule + :type request: :class:`huaweicloudsdkaad.v2.ListWafCustomRuleRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ListWafCustomRuleResponse` + """ + http_info = self._list_waf_custom_rule_http_info(request) + return self._call_api(**http_info) + + def list_waf_custom_rule_async_invoker(self, request): + http_info = self._list_waf_custom_rule_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_waf_custom_rule_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/policies/waf/custom-rule", + "request_type": request.__class__.__name__, + "response_type": "ListWafCustomRuleResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'domain_name' in local_var_params: + query_params.append(('domain_name', local_var_params['domain_name'])) + if 'overseas_type' in local_var_params: + query_params.append(('overseas_type', local_var_params['overseas_type'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_waf_geo_ip_rule_async(self, request): + """查询区域封禁规则 + + 查询区域封禁规则 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListWafGeoIpRule + :type request: :class:`huaweicloudsdkaad.v2.ListWafGeoIpRuleRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ListWafGeoIpRuleResponse` + """ + http_info = self._list_waf_geo_ip_rule_http_info(request) + return self._call_api(**http_info) + + def list_waf_geo_ip_rule_async_invoker(self, request): + http_info = self._list_waf_geo_ip_rule_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_waf_geo_ip_rule_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/policies/waf/geoip-rule", + "request_type": request.__class__.__name__, + "response_type": "ListWafGeoIpRuleResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'domain_name' in local_var_params: + query_params.append(('domain_name', local_var_params['domain_name'])) + if 'overseas_type' in local_var_params: + query_params.append(('overseas_type', local_var_params['overseas_type'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_waf_qps_async(self, request): + """查询请求QPS + + 查询请求QPS + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListWafQps + :type request: :class:`huaweicloudsdkaad.v2.ListWafQpsRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ListWafQpsResponse` + """ + http_info = self._list_waf_qps_http_info(request) + return self._call_api(**http_info) + + def list_waf_qps_async_invoker(self, request): + http_info = self._list_waf_qps_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_waf_qps_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/domains/waf-info/flow/qps", + "request_type": request.__class__.__name__, + "response_type": "ListWafQpsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'domains' in local_var_params: + query_params.append(('domains', local_var_params['domains'])) + if 'value_type' in local_var_params: + query_params.append(('value_type', local_var_params['value_type'])) + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + if 'recent' in local_var_params: + query_params.append(('recent', local_var_params['recent'])) + if 'overseas_type' in local_var_params: + query_params.append(('overseas_type', local_var_params['overseas_type'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_waf_white_ip_rule_async(self, request): + """防护策略web-cc黑白名单-查询黑白名单规则 + + 防护策略web-cc黑白名单-查询黑白名单规则 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListWafWhiteIpRule + :type request: :class:`huaweicloudsdkaad.v2.ListWafWhiteIpRuleRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ListWafWhiteIpRuleResponse` + """ + http_info = self._list_waf_white_ip_rule_http_info(request) + return self._call_api(**http_info) + + def list_waf_white_ip_rule_async_invoker(self, request): + http_info = self._list_waf_white_ip_rule_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_waf_white_ip_rule_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/policies/waf/blackwhite-list", + "request_type": request.__class__.__name__, + "response_type": "ListWafWhiteIpRuleResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'domain_name' in local_var_params: + query_params.append(('domain_name', local_var_params['domain_name'])) + if 'overseas_type' in local_var_params: + query_params.append(('overseas_type', local_var_params['overseas_type'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_white_black_ip_rule_async(self, request): + """查询DDoS攻击防护的黑白名单列表 + + 查询DDoS攻击防护的黑白名单列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListWhiteBlackIpRule + :type request: :class:`huaweicloudsdkaad.v2.ListWhiteBlackIpRuleRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ListWhiteBlackIpRuleResponse` + """ + http_info = self._list_white_black_ip_rule_http_info(request) + return self._call_api(**http_info) + + def list_white_black_ip_rule_async_invoker(self, request): + http_info = self._list_white_black_ip_rule_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_white_black_ip_rule_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/policies/ddos/blackwhite-list", + "request_type": request.__class__.__name__, + "response_type": "ListWhiteBlackIpRuleResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + if 'instance_id' in local_var_params: + query_params.append(('instance_id', local_var_params['instance_id'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_domain_certificate_async(self, request): + """查询域名关联的证书信息 + + 查询域名关联的证书信息 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowDomainCertificate + :type request: :class:`huaweicloudsdkaad.v2.ShowDomainCertificateRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ShowDomainCertificateResponse` + """ + http_info = self._show_domain_certificate_http_info(request) + return self._call_api(**http_info) + + def show_domain_certificate_async_invoker(self, request): + http_info = self._show_domain_certificate_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_domain_certificate_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/domains/{domain_id}/certificate", + "request_type": request.__class__.__name__, + "response_type": "ShowDomainCertificateResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'domain_id' in local_var_params: + path_params['domain_id'] = local_var_params['domain_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_flow_block_async(self, request): + """查询流量封禁信息 + + 查询流量封禁信息 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowFlowBlock + :type request: :class:`huaweicloudsdkaad.v2.ShowFlowBlockRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ShowFlowBlockResponse` + """ + http_info = self._show_flow_block_http_info(request) + return self._call_api(**http_info) + + def show_flow_block_async_invoker(self, request): + http_info = self._show_flow_block_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_flow_block_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/policies/ddos/flow-block", + "request_type": request.__class__.__name__, + "response_type": "ShowFlowBlockResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'instance_id' in local_var_params: + query_params.append(('instance_id', local_var_params['instance_id'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_waf_policy_async(self, request): + """查询WEB防护策略配置 + + 查询WEB防护策略配置 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowWafPolicy + :type request: :class:`huaweicloudsdkaad.v2.ShowWafPolicyRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ShowWafPolicyResponse` + """ + http_info = self._show_waf_policy_http_info(request) + return self._call_api(**http_info) + + def show_waf_policy_async_invoker(self, request): + http_info = self._show_waf_policy_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_waf_policy_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/policies/waf", + "request_type": request.__class__.__name__, + "response_type": "ShowWafPolicyResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'domain_name' in local_var_params: + query_params.append(('domain_name', local_var_params['domain_name'])) + if 'overseas_type' in local_var_params: + query_params.append(('overseas_type', local_var_params['overseas_type'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_waf_qps_async(self, request): + """查询CC攻击防护请求QPS + + 查询CC攻击防护请求QPS + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowWafQps + :type request: :class:`huaweicloudsdkaad.v2.ShowWafQpsRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ShowWafQpsResponse` + """ + http_info = self._show_waf_qps_http_info(request) + return self._call_api(**http_info) + + def show_waf_qps_async_invoker(self, request): + http_info = self._show_waf_qps_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_waf_qps_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/domains/waf-info/flow/request/peak", + "request_type": request.__class__.__name__, + "response_type": "ShowWafQpsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'recent' in local_var_params: + query_params.append(('recent', local_var_params['recent'])) + if 'domains' in local_var_params: + query_params.append(('domains', local_var_params['domains'])) + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + if 'overseas_type' in local_var_params: + query_params.append(('overseas_type', local_var_params['overseas_type'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def upgrade_instance_spec_async(self, request): + """修改实例规格 + + 修改实例规格 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpgradeInstanceSpec + :type request: :class:`huaweicloudsdkaad.v2.UpgradeInstanceSpecRequest` + :rtype: :class:`huaweicloudsdkaad.v2.UpgradeInstanceSpecResponse` + """ + http_info = self._upgrade_instance_spec_http_info(request) + return self._call_api(**http_info) + + def upgrade_instance_spec_async_invoker(self, request): + http_info = self._upgrade_instance_spec_http_info(request) + return AsyncInvoker(self, http_info) + + def _upgrade_instance_spec_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v2/aad/instance", + "request_type": request.__class__.__name__, + "response_type": "UpgradeInstanceSpecResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def delete_domain_async(self, request): + """删除防护域名 + + 删除防护域名 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteDomain + :type request: :class:`huaweicloudsdkaad.v2.DeleteDomainRequest` + :rtype: :class:`huaweicloudsdkaad.v2.DeleteDomainResponse` + """ + http_info = self._delete_domain_http_info(request) + return self._call_api(**http_info) + + def delete_domain_async_invoker(self, request): + http_info = self._delete_domain_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_domain_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v2/aad/domains", + "request_type": request.__class__.__name__, + "response_type": "DeleteDomainResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def _call_api(self, **kwargs): + try: + kwargs["async_request"] = True + return self.do_http_request(**kwargs) + except TypeError: + import inspect + params = inspect.signature(self.do_http_request).parameters + http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs} + return self.do_http_request(**http_info) + + def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, + post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None, + collection_formats=None, request_type=None): + """Makes the HTTP request and returns deserialized data. + + :param resource_path: Path to method endpoint. + :param method: Method to call. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param cname: Used for obs endpoint. + :param auth_settings: Auth Settings names for the request. + :param response_type: Response data type. + :param response_headers: Header should be added to response data. + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :param request_type: Request data type. + :return: + Return the response directly. + """ + return self.do_http_request( + method=method, + resource_path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body, + post_params=post_params, + cname=cname, + response_type=response_type, + response_headers=response_headers, + collection_formats=collection_formats, + request_type=request_type, + async_request=True) diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/aad_client.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/aad_client.py new file mode 100644 index 0000000000..1b88855a8c --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/aad_client.py @@ -0,0 +1,1382 @@ +# coding: utf-8 + +from __future__ import absolute_import + +import importlib +import warnings + +from huaweicloudsdkcore.client import Client, ClientBuilder +from huaweicloudsdkcore.utils import http_utils +from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest +try: + from huaweicloudsdkcore.invoker.invoker import SyncInvoker +except ImportError as e: + warnings.warn(str(e) + ", please check if you are using the same versions of 'huaweicloudsdkcore' and 'huaweicloudsdkaad'") + + +class AadClient(Client): + def __init__(self): + super(AadClient, self).__init__() + self.model_package = importlib.import_module("huaweicloudsdkaad.v2.model") + + @classmethod + def new_builder(cls, clazz=None): + if not clazz: + client_builder = ClientBuilder(cls, "GlobalCredentials") + else: + if clazz.__name__ != "AadClient": + raise TypeError("client type error, support client type is AadClient") + client_builder = ClientBuilder(clazz, "GlobalCredentials") + + + + return client_builder + + def create_domain(self, request): + """创建防护域名 + + 创建防护域名 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateDomain + :type request: :class:`huaweicloudsdkaad.v2.CreateDomainRequest` + :rtype: :class:`huaweicloudsdkaad.v2.CreateDomainResponse` + """ + http_info = self._create_domain_http_info(request) + return self._call_api(**http_info) + + def create_domain_invoker(self, request): + http_info = self._create_domain_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_domain_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v2/aad/domains", + "request_type": request.__class__.__name__, + "response_type": "CreateDomainResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_d_do_s_attack_event(self, request): + """查询DDoS攻击事件列表 + + 查询DDoS攻击事件列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListDDoSAttackEvent + :type request: :class:`huaweicloudsdkaad.v2.ListDDoSAttackEventRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ListDDoSAttackEventResponse` + """ + http_info = self._list_d_do_s_attack_event_http_info(request) + return self._call_api(**http_info) + + def list_d_do_s_attack_event_invoker(self, request): + http_info = self._list_d_do_s_attack_event_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_d_do_s_attack_event_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v2/aad/instances/{instance_id}/ddos-info/attack/events", + "request_type": request.__class__.__name__, + "response_type": "ListDDoSAttackEventResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_d_do_s_connection_number(self, request): + """查询新建连接数和并发连接数 + + 查询新建连接数和并发连接数 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListDDoSConnectionNumber + :type request: :class:`huaweicloudsdkaad.v2.ListDDoSConnectionNumberRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ListDDoSConnectionNumberResponse` + """ + http_info = self._list_d_do_s_connection_number_http_info(request) + return self._call_api(**http_info) + + def list_d_do_s_connection_number_invoker(self, request): + http_info = self._list_d_do_s_connection_number_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_d_do_s_connection_number_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/instances/{instance_id}/ddos-info/flow/connection-numbers", + "request_type": request.__class__.__name__, + "response_type": "ListDDoSConnectionNumberResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + if 'ip' in local_var_params: + query_params.append(('ip', local_var_params['ip'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_d_do_s_flow(self, request): + """查询DDoS攻击防护BPS/PPS流量 + + 查询DDoS攻击防护BPS/PPS流量 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListDDoSFlow + :type request: :class:`huaweicloudsdkaad.v2.ListDDoSFlowRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ListDDoSFlowResponse` + """ + http_info = self._list_d_do_s_flow_http_info(request) + return self._call_api(**http_info) + + def list_d_do_s_flow_invoker(self, request): + http_info = self._list_d_do_s_flow_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_d_do_s_flow_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/instances/{instance_id}/ddos-info/flow", + "request_type": request.__class__.__name__, + "response_type": "ListDDoSFlowResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + if 'ip' in local_var_params: + query_params.append(('ip', local_var_params['ip'])) + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_frequency_control_rule(self, request): + """查询频率控制规则列表 + + 查询频率控制规则列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListFrequencyControlRule + :type request: :class:`huaweicloudsdkaad.v2.ListFrequencyControlRuleRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ListFrequencyControlRuleResponse` + """ + http_info = self._list_frequency_control_rule_http_info(request) + return self._call_api(**http_info) + + def list_frequency_control_rule_invoker(self, request): + http_info = self._list_frequency_control_rule_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_frequency_control_rule_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/policies/waf/frequency-control-rule", + "request_type": request.__class__.__name__, + "response_type": "ListFrequencyControlRuleResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'domain_name' in local_var_params: + query_params.append(('domain_name', local_var_params['domain_name'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_instance_domains(self, request): + """查询实例关联的域名信息 + + 查询实例关联的域名信息 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListInstanceDomains + :type request: :class:`huaweicloudsdkaad.v2.ListInstanceDomainsRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ListInstanceDomainsResponse` + """ + http_info = self._list_instance_domains_http_info(request) + return self._call_api(**http_info) + + def list_instance_domains_invoker(self, request): + http_info = self._list_instance_domains_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_instance_domains_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/instances/{instance_id}/domains", + "request_type": request.__class__.__name__, + "response_type": "ListInstanceDomainsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_waf_attack_event(self, request): + """查询攻击事件列表 + + 查询攻击事件列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListWafAttackEvent + :type request: :class:`huaweicloudsdkaad.v2.ListWafAttackEventRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ListWafAttackEventResponse` + """ + http_info = self._list_waf_attack_event_http_info(request) + return self._call_api(**http_info) + + def list_waf_attack_event_invoker(self, request): + http_info = self._list_waf_attack_event_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_waf_attack_event_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/domains/waf-info/attack/event", + "request_type": request.__class__.__name__, + "response_type": "ListWafAttackEventResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'domains' in local_var_params: + query_params.append(('domains', local_var_params['domains'])) + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + if 'recent' in local_var_params: + query_params.append(('recent', local_var_params['recent'])) + if 'overseas_type' in local_var_params: + query_params.append(('overseas_type', local_var_params['overseas_type'])) + if 'sip' in local_var_params: + query_params.append(('sip', local_var_params['sip'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_waf_bandwidth(self, request): + """带宽曲线 + + 带宽曲线 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListWafBandwidth + :type request: :class:`huaweicloudsdkaad.v2.ListWafBandwidthRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ListWafBandwidthResponse` + """ + http_info = self._list_waf_bandwidth_http_info(request) + return self._call_api(**http_info) + + def list_waf_bandwidth_invoker(self, request): + http_info = self._list_waf_bandwidth_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_waf_bandwidth_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/domains/waf-info/flow/bandwidth", + "request_type": request.__class__.__name__, + "response_type": "ListWafBandwidthResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'domains' in local_var_params: + query_params.append(('domains', local_var_params['domains'])) + if 'value_type' in local_var_params: + query_params.append(('value_type', local_var_params['value_type'])) + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + if 'recent' in local_var_params: + query_params.append(('recent', local_var_params['recent'])) + if 'overseas_type' in local_var_params: + query_params.append(('overseas_type', local_var_params['overseas_type'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_waf_custom_rule(self, request): + """查询精准防护规则 + + 查询精准防护规则 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListWafCustomRule + :type request: :class:`huaweicloudsdkaad.v2.ListWafCustomRuleRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ListWafCustomRuleResponse` + """ + http_info = self._list_waf_custom_rule_http_info(request) + return self._call_api(**http_info) + + def list_waf_custom_rule_invoker(self, request): + http_info = self._list_waf_custom_rule_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_waf_custom_rule_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/policies/waf/custom-rule", + "request_type": request.__class__.__name__, + "response_type": "ListWafCustomRuleResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'domain_name' in local_var_params: + query_params.append(('domain_name', local_var_params['domain_name'])) + if 'overseas_type' in local_var_params: + query_params.append(('overseas_type', local_var_params['overseas_type'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_waf_geo_ip_rule(self, request): + """查询区域封禁规则 + + 查询区域封禁规则 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListWafGeoIpRule + :type request: :class:`huaweicloudsdkaad.v2.ListWafGeoIpRuleRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ListWafGeoIpRuleResponse` + """ + http_info = self._list_waf_geo_ip_rule_http_info(request) + return self._call_api(**http_info) + + def list_waf_geo_ip_rule_invoker(self, request): + http_info = self._list_waf_geo_ip_rule_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_waf_geo_ip_rule_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/policies/waf/geoip-rule", + "request_type": request.__class__.__name__, + "response_type": "ListWafGeoIpRuleResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'domain_name' in local_var_params: + query_params.append(('domain_name', local_var_params['domain_name'])) + if 'overseas_type' in local_var_params: + query_params.append(('overseas_type', local_var_params['overseas_type'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_waf_qps(self, request): + """查询请求QPS + + 查询请求QPS + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListWafQps + :type request: :class:`huaweicloudsdkaad.v2.ListWafQpsRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ListWafQpsResponse` + """ + http_info = self._list_waf_qps_http_info(request) + return self._call_api(**http_info) + + def list_waf_qps_invoker(self, request): + http_info = self._list_waf_qps_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_waf_qps_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/domains/waf-info/flow/qps", + "request_type": request.__class__.__name__, + "response_type": "ListWafQpsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'domains' in local_var_params: + query_params.append(('domains', local_var_params['domains'])) + if 'value_type' in local_var_params: + query_params.append(('value_type', local_var_params['value_type'])) + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + if 'recent' in local_var_params: + query_params.append(('recent', local_var_params['recent'])) + if 'overseas_type' in local_var_params: + query_params.append(('overseas_type', local_var_params['overseas_type'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_waf_white_ip_rule(self, request): + """防护策略web-cc黑白名单-查询黑白名单规则 + + 防护策略web-cc黑白名单-查询黑白名单规则 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListWafWhiteIpRule + :type request: :class:`huaweicloudsdkaad.v2.ListWafWhiteIpRuleRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ListWafWhiteIpRuleResponse` + """ + http_info = self._list_waf_white_ip_rule_http_info(request) + return self._call_api(**http_info) + + def list_waf_white_ip_rule_invoker(self, request): + http_info = self._list_waf_white_ip_rule_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_waf_white_ip_rule_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/policies/waf/blackwhite-list", + "request_type": request.__class__.__name__, + "response_type": "ListWafWhiteIpRuleResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'domain_name' in local_var_params: + query_params.append(('domain_name', local_var_params['domain_name'])) + if 'overseas_type' in local_var_params: + query_params.append(('overseas_type', local_var_params['overseas_type'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_white_black_ip_rule(self, request): + """查询DDoS攻击防护的黑白名单列表 + + 查询DDoS攻击防护的黑白名单列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListWhiteBlackIpRule + :type request: :class:`huaweicloudsdkaad.v2.ListWhiteBlackIpRuleRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ListWhiteBlackIpRuleResponse` + """ + http_info = self._list_white_black_ip_rule_http_info(request) + return self._call_api(**http_info) + + def list_white_black_ip_rule_invoker(self, request): + http_info = self._list_white_black_ip_rule_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_white_black_ip_rule_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/policies/ddos/blackwhite-list", + "request_type": request.__class__.__name__, + "response_type": "ListWhiteBlackIpRuleResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + if 'instance_id' in local_var_params: + query_params.append(('instance_id', local_var_params['instance_id'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_domain_certificate(self, request): + """查询域名关联的证书信息 + + 查询域名关联的证书信息 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowDomainCertificate + :type request: :class:`huaweicloudsdkaad.v2.ShowDomainCertificateRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ShowDomainCertificateResponse` + """ + http_info = self._show_domain_certificate_http_info(request) + return self._call_api(**http_info) + + def show_domain_certificate_invoker(self, request): + http_info = self._show_domain_certificate_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_domain_certificate_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/domains/{domain_id}/certificate", + "request_type": request.__class__.__name__, + "response_type": "ShowDomainCertificateResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'domain_id' in local_var_params: + path_params['domain_id'] = local_var_params['domain_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_flow_block(self, request): + """查询流量封禁信息 + + 查询流量封禁信息 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowFlowBlock + :type request: :class:`huaweicloudsdkaad.v2.ShowFlowBlockRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ShowFlowBlockResponse` + """ + http_info = self._show_flow_block_http_info(request) + return self._call_api(**http_info) + + def show_flow_block_invoker(self, request): + http_info = self._show_flow_block_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_flow_block_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/policies/ddos/flow-block", + "request_type": request.__class__.__name__, + "response_type": "ShowFlowBlockResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'instance_id' in local_var_params: + query_params.append(('instance_id', local_var_params['instance_id'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_waf_policy(self, request): + """查询WEB防护策略配置 + + 查询WEB防护策略配置 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowWafPolicy + :type request: :class:`huaweicloudsdkaad.v2.ShowWafPolicyRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ShowWafPolicyResponse` + """ + http_info = self._show_waf_policy_http_info(request) + return self._call_api(**http_info) + + def show_waf_policy_invoker(self, request): + http_info = self._show_waf_policy_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_waf_policy_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/policies/waf", + "request_type": request.__class__.__name__, + "response_type": "ShowWafPolicyResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'domain_name' in local_var_params: + query_params.append(('domain_name', local_var_params['domain_name'])) + if 'overseas_type' in local_var_params: + query_params.append(('overseas_type', local_var_params['overseas_type'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_waf_qps(self, request): + """查询CC攻击防护请求QPS + + 查询CC攻击防护请求QPS + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowWafQps + :type request: :class:`huaweicloudsdkaad.v2.ShowWafQpsRequest` + :rtype: :class:`huaweicloudsdkaad.v2.ShowWafQpsResponse` + """ + http_info = self._show_waf_qps_http_info(request) + return self._call_api(**http_info) + + def show_waf_qps_invoker(self, request): + http_info = self._show_waf_qps_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_waf_qps_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/aad/domains/waf-info/flow/request/peak", + "request_type": request.__class__.__name__, + "response_type": "ShowWafQpsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'recent' in local_var_params: + query_params.append(('recent', local_var_params['recent'])) + if 'domains' in local_var_params: + query_params.append(('domains', local_var_params['domains'])) + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + if 'overseas_type' in local_var_params: + query_params.append(('overseas_type', local_var_params['overseas_type'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def upgrade_instance_spec(self, request): + """修改实例规格 + + 修改实例规格 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpgradeInstanceSpec + :type request: :class:`huaweicloudsdkaad.v2.UpgradeInstanceSpecRequest` + :rtype: :class:`huaweicloudsdkaad.v2.UpgradeInstanceSpecResponse` + """ + http_info = self._upgrade_instance_spec_http_info(request) + return self._call_api(**http_info) + + def upgrade_instance_spec_invoker(self, request): + http_info = self._upgrade_instance_spec_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _upgrade_instance_spec_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v2/aad/instance", + "request_type": request.__class__.__name__, + "response_type": "UpgradeInstanceSpecResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def delete_domain(self, request): + """删除防护域名 + + 删除防护域名 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteDomain + :type request: :class:`huaweicloudsdkaad.v2.DeleteDomainRequest` + :rtype: :class:`huaweicloudsdkaad.v2.DeleteDomainResponse` + """ + http_info = self._delete_domain_http_info(request) + return self._call_api(**http_info) + + def delete_domain_invoker(self, request): + http_info = self._delete_domain_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_domain_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v2/aad/domains", + "request_type": request.__class__.__name__, + "response_type": "DeleteDomainResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def _call_api(self, **kwargs): + try: + return self.do_http_request(**kwargs) + except TypeError: + import inspect + params = inspect.signature(self.do_http_request).parameters + http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs} + return self.do_http_request(**http_info) + + def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, + post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None, + collection_formats=None, request_type=None): + """Makes the HTTP request and returns deserialized data. + + :param resource_path: Path to method endpoint. + :param method: Method to call. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be placed in the request header. + :param body: Request body. + :param post_params: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param cname: Used for obs endpoint. + :param auth_settings: Auth Settings names for the request. + :param response_type: Response data type. + :param response_headers: Header should be added to response data. + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :param request_type: Request data type. + :return: + Return the response directly. + """ + return self.do_http_request( + method=method, + resource_path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body, + post_params=post_params, + cname=cname, + response_type=response_type, + response_headers=response_headers, + collection_formats=collection_formats, + request_type=request_type) diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/__init__.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/__init__.py new file mode 100644 index 0000000000..1ac960c81c --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/__init__.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +from __future__ import absolute_import + +# import models into model package +from huaweicloudsdkaad.v2.model.action_info import ActionInfo +from huaweicloudsdkaad.v2.model.backend import Backend +from huaweicloudsdkaad.v2.model.black_white_list_rule import BlackWhiteListRule +from huaweicloudsdkaad.v2.model.bw_list_ips import BwListIps +from huaweicloudsdkaad.v2.model.cert_info import CertInfo +from huaweicloudsdkaad.v2.model.condition import Condition +from huaweicloudsdkaad.v2.model.create_aad_domain_request_body import CreateAadDomainRequestBody +from huaweicloudsdkaad.v2.model.create_domain_request import CreateDomainRequest +from huaweicloudsdkaad.v2.model.create_domain_response import CreateDomainResponse +from huaweicloudsdkaad.v2.model.curve import Curve +from huaweicloudsdkaad.v2.model.delete_domain_request import DeleteDomainRequest +from huaweicloudsdkaad.v2.model.delete_domain_response import DeleteDomainResponse +from huaweicloudsdkaad.v2.model.delete_domain_v2_request_body import DeleteDomainV2RequestBody +from huaweicloudsdkaad.v2.model.detail_info import DetailInfo +from huaweicloudsdkaad.v2.model.empty_json_response import EmptyJsonResponse +from huaweicloudsdkaad.v2.model.flow_bps import FlowBps +from huaweicloudsdkaad.v2.model.flow_pps import FlowPps +from huaweicloudsdkaad.v2.model.frequency_control_rule import FrequencyControlRule +from huaweicloudsdkaad.v2.model.instance_domain_item import InstanceDomainItem +from huaweicloudsdkaad.v2.model.ips import Ips +from huaweicloudsdkaad.v2.model.list_connection_number_data import ListConnectionNumberData +from huaweicloudsdkaad.v2.model.list_connection_number_data_list import ListConnectionNumberDataList +from huaweicloudsdkaad.v2.model.list_d_do_s_attack_event_request import ListDDoSAttackEventRequest +from huaweicloudsdkaad.v2.model.list_d_do_s_attack_event_request_body import ListDDoSAttackEventRequestBody +from huaweicloudsdkaad.v2.model.list_d_do_s_attack_event_response import ListDDoSAttackEventResponse +from huaweicloudsdkaad.v2.model.list_d_do_s_connection_number_request import ListDDoSConnectionNumberRequest +from huaweicloudsdkaad.v2.model.list_d_do_s_connection_number_response import ListDDoSConnectionNumberResponse +from huaweicloudsdkaad.v2.model.list_d_do_s_event_data import ListDDoSEventData +from huaweicloudsdkaad.v2.model.list_d_do_s_flow_request import ListDDoSFlowRequest +from huaweicloudsdkaad.v2.model.list_d_do_s_flow_response import ListDDoSFlowResponse +from huaweicloudsdkaad.v2.model.list_frequency_control_rule_request import ListFrequencyControlRuleRequest +from huaweicloudsdkaad.v2.model.list_frequency_control_rule_response import ListFrequencyControlRuleResponse +from huaweicloudsdkaad.v2.model.list_instance_domains_request import ListInstanceDomainsRequest +from huaweicloudsdkaad.v2.model.list_instance_domains_response import ListInstanceDomainsResponse +from huaweicloudsdkaad.v2.model.list_waf_attack_event_request import ListWafAttackEventRequest +from huaweicloudsdkaad.v2.model.list_waf_attack_event_response import ListWafAttackEventResponse +from huaweicloudsdkaad.v2.model.list_waf_attack_eventlist import ListWafAttackEventlist +from huaweicloudsdkaad.v2.model.list_waf_bandwidth_request import ListWafBandwidthRequest +from huaweicloudsdkaad.v2.model.list_waf_bandwidth_response import ListWafBandwidthResponse +from huaweicloudsdkaad.v2.model.list_waf_custom_rule_request import ListWafCustomRuleRequest +from huaweicloudsdkaad.v2.model.list_waf_custom_rule_response import ListWafCustomRuleResponse +from huaweicloudsdkaad.v2.model.list_waf_geo_ip_rule_request import ListWafGeoIpRuleRequest +from huaweicloudsdkaad.v2.model.list_waf_geo_ip_rule_response import ListWafGeoIpRuleResponse +from huaweicloudsdkaad.v2.model.list_waf_qps_request import ListWafQpsRequest +from huaweicloudsdkaad.v2.model.list_waf_qps_response import ListWafQpsResponse +from huaweicloudsdkaad.v2.model.list_waf_white_ip_rule_request import ListWafWhiteIpRuleRequest +from huaweicloudsdkaad.v2.model.list_waf_white_ip_rule_response import ListWafWhiteIpRuleResponse +from huaweicloudsdkaad.v2.model.list_white_black_ip_rule_request import ListWhiteBlackIpRuleRequest +from huaweicloudsdkaad.v2.model.list_white_black_ip_rule_response import ListWhiteBlackIpRuleResponse +from huaweicloudsdkaad.v2.model.page_resp_info import PageRespInfo +from huaweicloudsdkaad.v2.model.point import Point +from huaweicloudsdkaad.v2.model.show_domain_certificate_request import ShowDomainCertificateRequest +from huaweicloudsdkaad.v2.model.show_domain_certificate_response import ShowDomainCertificateResponse +from huaweicloudsdkaad.v2.model.show_flow_block_request import ShowFlowBlockRequest +from huaweicloudsdkaad.v2.model.show_flow_block_response import ShowFlowBlockResponse +from huaweicloudsdkaad.v2.model.show_waf_policy_request import ShowWafPolicyRequest +from huaweicloudsdkaad.v2.model.show_waf_policy_response import ShowWafPolicyResponse +from huaweicloudsdkaad.v2.model.show_waf_qps_request import ShowWafQpsRequest +from huaweicloudsdkaad.v2.model.show_waf_qps_response import ShowWafQpsResponse +from huaweicloudsdkaad.v2.model.tag_condition import TagCondition +from huaweicloudsdkaad.v2.model.upgrade_instance_data import UpgradeInstanceData +from huaweicloudsdkaad.v2.model.upgrade_instance_spec_request import UpgradeInstanceSpecRequest +from huaweicloudsdkaad.v2.model.upgrade_instance_spec_response import UpgradeInstanceSpecResponse +from huaweicloudsdkaad.v2.model.upgrade_instance_spec_v2_request_body import UpgradeInstanceSpecV2RequestBody +from huaweicloudsdkaad.v2.model.waf_custom_condition import WafCustomCondition +from huaweicloudsdkaad.v2.model.waf_custom_rule import WafCustomRule +from huaweicloudsdkaad.v2.model.waf_custom_rule_action import WafCustomRuleAction +from huaweicloudsdkaad.v2.model.waf_geo_ip_rule import WafGeoIpRule +from huaweicloudsdkaad.v2.model.waf_policy_options import WafPolicyOptions diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/action_info.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/action_info.py new file mode 100644 index 0000000000..212d38f24d --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/action_info.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ActionInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'category': 'str', + 'detail': 'DetailInfo' + } + + attribute_map = { + 'category': 'category', + 'detail': 'detail' + } + + def __init__(self, category=None, detail=None): + """ActionInfo + + The model defined in huaweicloud sdk + + :param category: 动作类型:block:阻断,captcha:人机验证;log: 仅记录;dynamic_block:动态阻断 + :type category: str + :param detail: + :type detail: :class:`huaweicloudsdkaad.v2.DetailInfo` + """ + + + + self._category = None + self._detail = None + self.discriminator = None + + if category is not None: + self.category = category + if detail is not None: + self.detail = detail + + @property + def category(self): + """Gets the category of this ActionInfo. + + 动作类型:block:阻断,captcha:人机验证;log: 仅记录;dynamic_block:动态阻断 + + :return: The category of this ActionInfo. + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this ActionInfo. + + 动作类型:block:阻断,captcha:人机验证;log: 仅记录;dynamic_block:动态阻断 + + :param category: The category of this ActionInfo. + :type category: str + """ + self._category = category + + @property + def detail(self): + """Gets the detail of this ActionInfo. + + :return: The detail of this ActionInfo. + :rtype: :class:`huaweicloudsdkaad.v2.DetailInfo` + """ + return self._detail + + @detail.setter + def detail(self, detail): + """Sets the detail of this ActionInfo. + + :param detail: The detail of this ActionInfo. + :type detail: :class:`huaweicloudsdkaad.v2.DetailInfo` + """ + self._detail = detail + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ActionInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/backend.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/backend.py new file mode 100644 index 0000000000..66f113da1b --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/backend.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Backend: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'protocol': 'str', + 'port': 'int', + 'host': 'str' + } + + attribute_map = { + 'protocol': 'protocol', + 'port': 'port', + 'host': 'host' + } + + def __init__(self, protocol=None, port=None, host=None): + """Backend + + The model defined in huaweicloud sdk + + :param protocol: 当前后端协议 + :type protocol: str + :param port: 当前后端端口 + :type port: int + :param host: 当前后端 Host 值 + :type host: str + """ + + + + self._protocol = None + self._port = None + self._host = None + self.discriminator = None + + if protocol is not None: + self.protocol = protocol + if port is not None: + self.port = port + if host is not None: + self.host = host + + @property + def protocol(self): + """Gets the protocol of this Backend. + + 当前后端协议 + + :return: The protocol of this Backend. + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this Backend. + + 当前后端协议 + + :param protocol: The protocol of this Backend. + :type protocol: str + """ + self._protocol = protocol + + @property + def port(self): + """Gets the port of this Backend. + + 当前后端端口 + + :return: The port of this Backend. + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """Sets the port of this Backend. + + 当前后端端口 + + :param port: The port of this Backend. + :type port: int + """ + self._port = port + + @property + def host(self): + """Gets the host of this Backend. + + 当前后端 Host 值 + + :return: The host of this Backend. + :rtype: str + """ + return self._host + + @host.setter + def host(self, host): + """Sets the host of this Backend. + + 当前后端 Host 值 + + :param host: The host of this Backend. + :type host: str + """ + self._host = host + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Backend): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/black_white_list_rule.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/black_white_list_rule.py new file mode 100644 index 0000000000..5636232c17 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/black_white_list_rule.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BlackWhiteListRule: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'type': 'int', + 'ip': 'str', + 'domain_id': 'str' + } + + attribute_map = { + 'id': 'id', + 'type': 'type', + 'ip': 'ip', + 'domain_id': 'domain_id' + } + + def __init__(self, id=None, type=None, ip=None, domain_id=None): + """BlackWhiteListRule + + The model defined in huaweicloud sdk + + :param id: id + :type id: str + :param type: 0-黑名单,1-白名单 + :type type: int + :param ip: ip + :type ip: str + :param domain_id: 域名id + :type domain_id: str + """ + + + + self._id = None + self._type = None + self._ip = None + self._domain_id = None + self.discriminator = None + + if id is not None: + self.id = id + if type is not None: + self.type = type + if ip is not None: + self.ip = ip + if domain_id is not None: + self.domain_id = domain_id + + @property + def id(self): + """Gets the id of this BlackWhiteListRule. + + id + + :return: The id of this BlackWhiteListRule. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this BlackWhiteListRule. + + id + + :param id: The id of this BlackWhiteListRule. + :type id: str + """ + self._id = id + + @property + def type(self): + """Gets the type of this BlackWhiteListRule. + + 0-黑名单,1-白名单 + + :return: The type of this BlackWhiteListRule. + :rtype: int + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this BlackWhiteListRule. + + 0-黑名单,1-白名单 + + :param type: The type of this BlackWhiteListRule. + :type type: int + """ + self._type = type + + @property + def ip(self): + """Gets the ip of this BlackWhiteListRule. + + ip + + :return: The ip of this BlackWhiteListRule. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this BlackWhiteListRule. + + ip + + :param ip: The ip of this BlackWhiteListRule. + :type ip: str + """ + self._ip = ip + + @property + def domain_id(self): + """Gets the domain_id of this BlackWhiteListRule. + + 域名id + + :return: The domain_id of this BlackWhiteListRule. + :rtype: str + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this BlackWhiteListRule. + + 域名id + + :param domain_id: The domain_id of this BlackWhiteListRule. + :type domain_id: str + """ + self._domain_id = domain_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BlackWhiteListRule): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/bw_list_ips.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/bw_list_ips.py new file mode 100644 index 0000000000..fa1a50388d --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/bw_list_ips.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BwListIps: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'ip': 'str', + 'desc': 'str' + } + + attribute_map = { + 'ip': 'ip', + 'desc': 'desc' + } + + def __init__(self, ip=None, desc=None): + """BwListIps + + The model defined in huaweicloud sdk + + :param ip: 黑白名单ip + :type ip: str + :param desc: 描述 + :type desc: str + """ + + + + self._ip = None + self._desc = None + self.discriminator = None + + if ip is not None: + self.ip = ip + if desc is not None: + self.desc = desc + + @property + def ip(self): + """Gets the ip of this BwListIps. + + 黑白名单ip + + :return: The ip of this BwListIps. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this BwListIps. + + 黑白名单ip + + :param ip: The ip of this BwListIps. + :type ip: str + """ + self._ip = ip + + @property + def desc(self): + """Gets the desc of this BwListIps. + + 描述 + + :return: The desc of this BwListIps. + :rtype: str + """ + return self._desc + + @desc.setter + def desc(self, desc): + """Sets the desc of this BwListIps. + + 描述 + + :param desc: The desc of this BwListIps. + :type desc: str + """ + self._desc = desc + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BwListIps): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/cert_info.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/cert_info.py new file mode 100644 index 0000000000..94c82776d6 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/cert_info.py @@ -0,0 +1,226 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CertInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'cert_name': 'str', + 'id': 'str', + 'apply_domain': 'str', + 'expire_time': 'int', + 'expire_status': 'int' + } + + attribute_map = { + 'cert_name': 'cert_name', + 'id': 'id', + 'apply_domain': 'apply_domain', + 'expire_time': 'expire_time', + 'expire_status': 'expire_status' + } + + def __init__(self, cert_name=None, id=None, apply_domain=None, expire_time=None, expire_status=None): + """CertInfo + + The model defined in huaweicloud sdk + + :param cert_name: 证书名称 + :type cert_name: str + :param id: 证书id + :type id: str + :param apply_domain: 适用域名 + :type apply_domain: str + :param expire_time: 过期时间 + :type expire_time: int + :param expire_status: 过期状态 + :type expire_status: int + """ + + + + self._cert_name = None + self._id = None + self._apply_domain = None + self._expire_time = None + self._expire_status = None + self.discriminator = None + + self.cert_name = cert_name + self.id = id + self.apply_domain = apply_domain + self.expire_time = expire_time + self.expire_status = expire_status + + @property + def cert_name(self): + """Gets the cert_name of this CertInfo. + + 证书名称 + + :return: The cert_name of this CertInfo. + :rtype: str + """ + return self._cert_name + + @cert_name.setter + def cert_name(self, cert_name): + """Sets the cert_name of this CertInfo. + + 证书名称 + + :param cert_name: The cert_name of this CertInfo. + :type cert_name: str + """ + self._cert_name = cert_name + + @property + def id(self): + """Gets the id of this CertInfo. + + 证书id + + :return: The id of this CertInfo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CertInfo. + + 证书id + + :param id: The id of this CertInfo. + :type id: str + """ + self._id = id + + @property + def apply_domain(self): + """Gets the apply_domain of this CertInfo. + + 适用域名 + + :return: The apply_domain of this CertInfo. + :rtype: str + """ + return self._apply_domain + + @apply_domain.setter + def apply_domain(self, apply_domain): + """Sets the apply_domain of this CertInfo. + + 适用域名 + + :param apply_domain: The apply_domain of this CertInfo. + :type apply_domain: str + """ + self._apply_domain = apply_domain + + @property + def expire_time(self): + """Gets the expire_time of this CertInfo. + + 过期时间 + + :return: The expire_time of this CertInfo. + :rtype: int + """ + return self._expire_time + + @expire_time.setter + def expire_time(self, expire_time): + """Sets the expire_time of this CertInfo. + + 过期时间 + + :param expire_time: The expire_time of this CertInfo. + :type expire_time: int + """ + self._expire_time = expire_time + + @property + def expire_status(self): + """Gets the expire_status of this CertInfo. + + 过期状态 + + :return: The expire_status of this CertInfo. + :rtype: int + """ + return self._expire_status + + @expire_status.setter + def expire_status(self, expire_status): + """Sets the expire_status of this CertInfo. + + 过期状态 + + :param expire_status: The expire_status of this CertInfo. + :type expire_status: int + """ + self._expire_status = expire_status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CertInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/condition.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/condition.py new file mode 100644 index 0000000000..246dcdc9e5 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/condition.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Condition: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'category': 'str', + 'contents': 'list[str]', + 'index': 'str', + 'logic_operation': 'str' + } + + attribute_map = { + 'category': 'category', + 'contents': 'contents', + 'index': 'index', + 'logic_operation': 'logic_operation' + } + + def __init__(self, category=None, contents=None, index=None, logic_operation=None): + """Condition + + The model defined in huaweicloud sdk + + :param category: 字段类型 url:路径 ip:IPv4 ipv6:IPv6 params:Params cookie:Cookie header:Header response_code:Response Code + :type category: str + :param contents: 条件列表逻辑匹配内容。 当匹配逻辑为exist或not_exist时,contents必须为空,其他情况下contents必填且长度不超过2048 当category为response_code时,contents状态码为200~599,正则为 ^(?:[2-5]\\d{2})$ 当匹配逻辑包含\"len\"时,contents必须为0~65535的整数;当匹配逻辑包含\"num\"时,contents必须为0~512的整数 + :type contents: list[str] + :param index: 子字段 当字段类型为ip或ipv6时,index必填且必须为:client-ip:客户端IP、x-forwarded-for:X-Forwarded-For、TCP连接IP: $remote_addr 当字段类型(category)选择“params”、“cookie”、“header”时,请根据实际需求配置子字段且该参数必填。 当匹配逻辑为num_greater、num_less、num_equal、num_not_equal时,子字段必须为空 当子字段不为空时,最大长度不超过2048 + :type index: str + :param logic_operation: 条件列表匹配逻辑。 如果字段类型category是url,匹配逻辑可以为:contain、 not_contain、 equal、 not_equal、 prefix、 not_prefix、 suffix、 not_suffix、 len_greater、 len_less、len_equal或者len_not_equal 如果字段类型category是ip、ipv6或response_code,匹配逻辑可以为: equal、not_equal 如果字段类型category是params、cookie或者header, 匹配逻辑可以为:contain、 not_contain、 equal、 not_equal、 prefix、 not_prefix、 suffix、 not_suffix、 len_greater、 len_less、len_equal、len_not_equal、num_greater、num_less、num_equal、num_not_equal、exist或者not_exist + :type logic_operation: str + """ + + + + self._category = None + self._contents = None + self._index = None + self._logic_operation = None + self.discriminator = None + + if category is not None: + self.category = category + if contents is not None: + self.contents = contents + if index is not None: + self.index = index + if logic_operation is not None: + self.logic_operation = logic_operation + + @property + def category(self): + """Gets the category of this Condition. + + 字段类型 url:路径 ip:IPv4 ipv6:IPv6 params:Params cookie:Cookie header:Header response_code:Response Code + + :return: The category of this Condition. + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this Condition. + + 字段类型 url:路径 ip:IPv4 ipv6:IPv6 params:Params cookie:Cookie header:Header response_code:Response Code + + :param category: The category of this Condition. + :type category: str + """ + self._category = category + + @property + def contents(self): + """Gets the contents of this Condition. + + 条件列表逻辑匹配内容。 当匹配逻辑为exist或not_exist时,contents必须为空,其他情况下contents必填且长度不超过2048 当category为response_code时,contents状态码为200~599,正则为 ^(?:[2-5]\\d{2})$ 当匹配逻辑包含\"len\"时,contents必须为0~65535的整数;当匹配逻辑包含\"num\"时,contents必须为0~512的整数 + + :return: The contents of this Condition. + :rtype: list[str] + """ + return self._contents + + @contents.setter + def contents(self, contents): + """Sets the contents of this Condition. + + 条件列表逻辑匹配内容。 当匹配逻辑为exist或not_exist时,contents必须为空,其他情况下contents必填且长度不超过2048 当category为response_code时,contents状态码为200~599,正则为 ^(?:[2-5]\\d{2})$ 当匹配逻辑包含\"len\"时,contents必须为0~65535的整数;当匹配逻辑包含\"num\"时,contents必须为0~512的整数 + + :param contents: The contents of this Condition. + :type contents: list[str] + """ + self._contents = contents + + @property + def index(self): + """Gets the index of this Condition. + + 子字段 当字段类型为ip或ipv6时,index必填且必须为:client-ip:客户端IP、x-forwarded-for:X-Forwarded-For、TCP连接IP: $remote_addr 当字段类型(category)选择“params”、“cookie”、“header”时,请根据实际需求配置子字段且该参数必填。 当匹配逻辑为num_greater、num_less、num_equal、num_not_equal时,子字段必须为空 当子字段不为空时,最大长度不超过2048 + + :return: The index of this Condition. + :rtype: str + """ + return self._index + + @index.setter + def index(self, index): + """Sets the index of this Condition. + + 子字段 当字段类型为ip或ipv6时,index必填且必须为:client-ip:客户端IP、x-forwarded-for:X-Forwarded-For、TCP连接IP: $remote_addr 当字段类型(category)选择“params”、“cookie”、“header”时,请根据实际需求配置子字段且该参数必填。 当匹配逻辑为num_greater、num_less、num_equal、num_not_equal时,子字段必须为空 当子字段不为空时,最大长度不超过2048 + + :param index: The index of this Condition. + :type index: str + """ + self._index = index + + @property + def logic_operation(self): + """Gets the logic_operation of this Condition. + + 条件列表匹配逻辑。 如果字段类型category是url,匹配逻辑可以为:contain、 not_contain、 equal、 not_equal、 prefix、 not_prefix、 suffix、 not_suffix、 len_greater、 len_less、len_equal或者len_not_equal 如果字段类型category是ip、ipv6或response_code,匹配逻辑可以为: equal、not_equal 如果字段类型category是params、cookie或者header, 匹配逻辑可以为:contain、 not_contain、 equal、 not_equal、 prefix、 not_prefix、 suffix、 not_suffix、 len_greater、 len_less、len_equal、len_not_equal、num_greater、num_less、num_equal、num_not_equal、exist或者not_exist + + :return: The logic_operation of this Condition. + :rtype: str + """ + return self._logic_operation + + @logic_operation.setter + def logic_operation(self, logic_operation): + """Sets the logic_operation of this Condition. + + 条件列表匹配逻辑。 如果字段类型category是url,匹配逻辑可以为:contain、 not_contain、 equal、 not_equal、 prefix、 not_prefix、 suffix、 not_suffix、 len_greater、 len_less、len_equal或者len_not_equal 如果字段类型category是ip、ipv6或response_code,匹配逻辑可以为: equal、not_equal 如果字段类型category是params、cookie或者header, 匹配逻辑可以为:contain、 not_contain、 equal、 not_equal、 prefix、 not_prefix、 suffix、 not_suffix、 len_greater、 len_less、len_equal、len_not_equal、num_greater、num_less、num_equal、num_not_equal、exist或者not_exist + + :param logic_operation: The logic_operation of this Condition. + :type logic_operation: str + """ + self._logic_operation = logic_operation + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Condition): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/create_aad_domain_request_body.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/create_aad_domain_request_body.py new file mode 100644 index 0000000000..90889be549 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/create_aad_domain_request_body.py @@ -0,0 +1,369 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateAadDomainRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'domain_name': 'str', + 'enterprise_project_id': 'str', + 'ips': 'list[str]', + 'real_server_type': 'int', + 'port_http': 'list[int]', + 'port_https': 'list[int]', + 'real_server': 'str', + 'overseas_type': 'str', + 'cert_name': 'str', + 'waf_switch': 'str' + } + + attribute_map = { + 'domain_name': 'domain_name', + 'enterprise_project_id': 'enterprise_project_id', + 'ips': 'ips', + 'real_server_type': 'real_server_type', + 'port_http': 'port_http', + 'port_https': 'port_https', + 'real_server': 'real_server', + 'overseas_type': 'overseas_type', + 'cert_name': 'cert_name', + 'waf_switch': 'waf_switch' + } + + def __init__(self, domain_name=None, enterprise_project_id=None, ips=None, real_server_type=None, port_http=None, port_https=None, real_server=None, overseas_type=None, cert_name=None, waf_switch=None): + """CreateAadDomainRequestBody + + The model defined in huaweicloud sdk + + :param domain_name: 域名 + :type domain_name: str + :param enterprise_project_id: 企业项目id,与接入的高防实例所属企业项目保持一致。可在华为云EPS服务中查看企业项目id,default企业项目id为\"0\"。 + :type enterprise_project_id: str + :param ips: 高防实例ip列表。多个高防实例ip必须属于同一企业项目。 + :type ips: list[str] + :param real_server_type: 源站类型。 0 - 源站IP, 1 - 源站域名。 + :type real_server_type: int + :param port_http: HTTP端口,与port_https不能同时为空。DDoS高防支持的HTTP端口可在控制台查看。 + :type port_http: list[int] + :param port_https: HTTPS端口,与port_http不能同时为空。DDoS高防支持的HTTPS端口可在控制台查看。 + :type port_https: list[int] + :param real_server: 源站(源站ip/源站域名) + :type real_server: str + :param overseas_type: 防护区域,0-大陆,1-海外 + :type overseas_type: str + :param cert_name: 证书名称(必须是已经存在的证书) + :type cert_name: str + :param waf_switch: 开启0,关闭1 + :type waf_switch: str + """ + + + + self._domain_name = None + self._enterprise_project_id = None + self._ips = None + self._real_server_type = None + self._port_http = None + self._port_https = None + self._real_server = None + self._overseas_type = None + self._cert_name = None + self._waf_switch = None + self.discriminator = None + + self.domain_name = domain_name + self.enterprise_project_id = enterprise_project_id + self.ips = ips + self.real_server_type = real_server_type + self.port_http = port_http + if port_https is not None: + self.port_https = port_https + self.real_server = real_server + self.overseas_type = overseas_type + if cert_name is not None: + self.cert_name = cert_name + if waf_switch is not None: + self.waf_switch = waf_switch + + @property + def domain_name(self): + """Gets the domain_name of this CreateAadDomainRequestBody. + + 域名 + + :return: The domain_name of this CreateAadDomainRequestBody. + :rtype: str + """ + return self._domain_name + + @domain_name.setter + def domain_name(self, domain_name): + """Sets the domain_name of this CreateAadDomainRequestBody. + + 域名 + + :param domain_name: The domain_name of this CreateAadDomainRequestBody. + :type domain_name: str + """ + self._domain_name = domain_name + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this CreateAadDomainRequestBody. + + 企业项目id,与接入的高防实例所属企业项目保持一致。可在华为云EPS服务中查看企业项目id,default企业项目id为\"0\"。 + + :return: The enterprise_project_id of this CreateAadDomainRequestBody. + :rtype: str + """ + return self._enterprise_project_id + + @enterprise_project_id.setter + def enterprise_project_id(self, enterprise_project_id): + """Sets the enterprise_project_id of this CreateAadDomainRequestBody. + + 企业项目id,与接入的高防实例所属企业项目保持一致。可在华为云EPS服务中查看企业项目id,default企业项目id为\"0\"。 + + :param enterprise_project_id: The enterprise_project_id of this CreateAadDomainRequestBody. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def ips(self): + """Gets the ips of this CreateAadDomainRequestBody. + + 高防实例ip列表。多个高防实例ip必须属于同一企业项目。 + + :return: The ips of this CreateAadDomainRequestBody. + :rtype: list[str] + """ + return self._ips + + @ips.setter + def ips(self, ips): + """Sets the ips of this CreateAadDomainRequestBody. + + 高防实例ip列表。多个高防实例ip必须属于同一企业项目。 + + :param ips: The ips of this CreateAadDomainRequestBody. + :type ips: list[str] + """ + self._ips = ips + + @property + def real_server_type(self): + """Gets the real_server_type of this CreateAadDomainRequestBody. + + 源站类型。 0 - 源站IP, 1 - 源站域名。 + + :return: The real_server_type of this CreateAadDomainRequestBody. + :rtype: int + """ + return self._real_server_type + + @real_server_type.setter + def real_server_type(self, real_server_type): + """Sets the real_server_type of this CreateAadDomainRequestBody. + + 源站类型。 0 - 源站IP, 1 - 源站域名。 + + :param real_server_type: The real_server_type of this CreateAadDomainRequestBody. + :type real_server_type: int + """ + self._real_server_type = real_server_type + + @property + def port_http(self): + """Gets the port_http of this CreateAadDomainRequestBody. + + HTTP端口,与port_https不能同时为空。DDoS高防支持的HTTP端口可在控制台查看。 + + :return: The port_http of this CreateAadDomainRequestBody. + :rtype: list[int] + """ + return self._port_http + + @port_http.setter + def port_http(self, port_http): + """Sets the port_http of this CreateAadDomainRequestBody. + + HTTP端口,与port_https不能同时为空。DDoS高防支持的HTTP端口可在控制台查看。 + + :param port_http: The port_http of this CreateAadDomainRequestBody. + :type port_http: list[int] + """ + self._port_http = port_http + + @property + def port_https(self): + """Gets the port_https of this CreateAadDomainRequestBody. + + HTTPS端口,与port_http不能同时为空。DDoS高防支持的HTTPS端口可在控制台查看。 + + :return: The port_https of this CreateAadDomainRequestBody. + :rtype: list[int] + """ + return self._port_https + + @port_https.setter + def port_https(self, port_https): + """Sets the port_https of this CreateAadDomainRequestBody. + + HTTPS端口,与port_http不能同时为空。DDoS高防支持的HTTPS端口可在控制台查看。 + + :param port_https: The port_https of this CreateAadDomainRequestBody. + :type port_https: list[int] + """ + self._port_https = port_https + + @property + def real_server(self): + """Gets the real_server of this CreateAadDomainRequestBody. + + 源站(源站ip/源站域名) + + :return: The real_server of this CreateAadDomainRequestBody. + :rtype: str + """ + return self._real_server + + @real_server.setter + def real_server(self, real_server): + """Sets the real_server of this CreateAadDomainRequestBody. + + 源站(源站ip/源站域名) + + :param real_server: The real_server of this CreateAadDomainRequestBody. + :type real_server: str + """ + self._real_server = real_server + + @property + def overseas_type(self): + """Gets the overseas_type of this CreateAadDomainRequestBody. + + 防护区域,0-大陆,1-海外 + + :return: The overseas_type of this CreateAadDomainRequestBody. + :rtype: str + """ + return self._overseas_type + + @overseas_type.setter + def overseas_type(self, overseas_type): + """Sets the overseas_type of this CreateAadDomainRequestBody. + + 防护区域,0-大陆,1-海外 + + :param overseas_type: The overseas_type of this CreateAadDomainRequestBody. + :type overseas_type: str + """ + self._overseas_type = overseas_type + + @property + def cert_name(self): + """Gets the cert_name of this CreateAadDomainRequestBody. + + 证书名称(必须是已经存在的证书) + + :return: The cert_name of this CreateAadDomainRequestBody. + :rtype: str + """ + return self._cert_name + + @cert_name.setter + def cert_name(self, cert_name): + """Sets the cert_name of this CreateAadDomainRequestBody. + + 证书名称(必须是已经存在的证书) + + :param cert_name: The cert_name of this CreateAadDomainRequestBody. + :type cert_name: str + """ + self._cert_name = cert_name + + @property + def waf_switch(self): + """Gets the waf_switch of this CreateAadDomainRequestBody. + + 开启0,关闭1 + + :return: The waf_switch of this CreateAadDomainRequestBody. + :rtype: str + """ + return self._waf_switch + + @waf_switch.setter + def waf_switch(self, waf_switch): + """Sets the waf_switch of this CreateAadDomainRequestBody. + + 开启0,关闭1 + + :param waf_switch: The waf_switch of this CreateAadDomainRequestBody. + :type waf_switch: str + """ + self._waf_switch = waf_switch + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAadDomainRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/create_domain_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/create_domain_request.py new file mode 100644 index 0000000000..bed318b9d9 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/create_domain_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDomainRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'CreateAadDomainRequestBody' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateDomainRequest + + The model defined in huaweicloud sdk + + :param body: Body of the CreateDomainRequest + :type body: :class:`huaweicloudsdkaad.v2.CreateAadDomainRequestBody` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateDomainRequest. + + :return: The body of this CreateDomainRequest. + :rtype: :class:`huaweicloudsdkaad.v2.CreateAadDomainRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateDomainRequest. + + :param body: The body of this CreateDomainRequest. + :type body: :class:`huaweicloudsdkaad.v2.CreateAadDomainRequestBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateDomainRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/create_domain_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/create_domain_response.py new file mode 100644 index 0000000000..07a5bb7804 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/create_domain_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDomainResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'cname': 'str', + 'domain_id': 'str' + } + + attribute_map = { + 'cname': 'cname', + 'domain_id': 'domain_id' + } + + def __init__(self, cname=None, domain_id=None): + """CreateDomainResponse + + The model defined in huaweicloud sdk + + :param cname: 高防提供的CNAME地址 + :type cname: str + :param domain_id: 域名id + :type domain_id: str + """ + + super(CreateDomainResponse, self).__init__() + + self._cname = None + self._domain_id = None + self.discriminator = None + + if cname is not None: + self.cname = cname + if domain_id is not None: + self.domain_id = domain_id + + @property + def cname(self): + """Gets the cname of this CreateDomainResponse. + + 高防提供的CNAME地址 + + :return: The cname of this CreateDomainResponse. + :rtype: str + """ + return self._cname + + @cname.setter + def cname(self, cname): + """Sets the cname of this CreateDomainResponse. + + 高防提供的CNAME地址 + + :param cname: The cname of this CreateDomainResponse. + :type cname: str + """ + self._cname = cname + + @property + def domain_id(self): + """Gets the domain_id of this CreateDomainResponse. + + 域名id + + :return: The domain_id of this CreateDomainResponse. + :rtype: str + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this CreateDomainResponse. + + 域名id + + :param domain_id: The domain_id of this CreateDomainResponse. + :type domain_id: str + """ + self._domain_id = domain_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateDomainResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/curve.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/curve.py new file mode 100644 index 0000000000..a9cfab1f66 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/curve.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Curve: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + '_in': 'float', + 'out': 'float', + 'time': 'int' + } + + attribute_map = { + '_in': 'in', + 'out': 'out', + 'time': 'time' + } + + def __init__(self, _in=None, out=None, time=None): + """Curve + + The model defined in huaweicloud sdk + + :param _in: 入带宽 + :type _in: float + :param out: 出带宽 + :type out: float + :param time: 时间戳 + :type time: int + """ + + + + self.__in = None + self._out = None + self._time = None + self.discriminator = None + + if _in is not None: + self._in = _in + if out is not None: + self.out = out + if time is not None: + self.time = time + + @property + def _in(self): + """Gets the _in of this Curve. + + 入带宽 + + :return: The _in of this Curve. + :rtype: float + """ + return self.__in + + @_in.setter + def _in(self, _in): + """Sets the _in of this Curve. + + 入带宽 + + :param _in: The _in of this Curve. + :type _in: float + """ + self.__in = _in + + @property + def out(self): + """Gets the out of this Curve. + + 出带宽 + + :return: The out of this Curve. + :rtype: float + """ + return self._out + + @out.setter + def out(self, out): + """Sets the out of this Curve. + + 出带宽 + + :param out: The out of this Curve. + :type out: float + """ + self._out = out + + @property + def time(self): + """Gets the time of this Curve. + + 时间戳 + + :return: The time of this Curve. + :rtype: int + """ + return self._time + + @time.setter + def time(self, time): + """Sets the time of this Curve. + + 时间戳 + + :param time: The time of this Curve. + :type time: int + """ + self._time = time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Curve): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/delete_domain_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/delete_domain_request.py new file mode 100644 index 0000000000..7636067629 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/delete_domain_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteDomainRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'DeleteDomainV2RequestBody' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """DeleteDomainRequest + + The model defined in huaweicloud sdk + + :param body: Body of the DeleteDomainRequest + :type body: :class:`huaweicloudsdkaad.v2.DeleteDomainV2RequestBody` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this DeleteDomainRequest. + + :return: The body of this DeleteDomainRequest. + :rtype: :class:`huaweicloudsdkaad.v2.DeleteDomainV2RequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteDomainRequest. + + :param body: The body of this DeleteDomainRequest. + :type body: :class:`huaweicloudsdkaad.v2.DeleteDomainV2RequestBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteDomainRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/delete_domain_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/delete_domain_response.py new file mode 100644 index 0000000000..9c7b288dcb --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/delete_domain_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteDomainResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'object' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """DeleteDomainResponse + + The model defined in huaweicloud sdk + + :param body: + :type body: object + """ + + super(DeleteDomainResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this DeleteDomainResponse. + + :return: The body of this DeleteDomainResponse. + :rtype: object + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteDomainResponse. + + :param body: The body of this DeleteDomainResponse. + :type body: object + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteDomainResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/delete_domain_v2_request_body.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/delete_domain_v2_request_body.py new file mode 100644 index 0000000000..1f2ee29b34 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/delete_domain_v2_request_body.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteDomainV2RequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'domain_id': 'list[str]' + } + + attribute_map = { + 'domain_id': 'domain_id' + } + + def __init__(self, domain_id=None): + """DeleteDomainV2RequestBody + + The model defined in huaweicloud sdk + + :param domain_id: 域名id列表 + :type domain_id: list[str] + """ + + + + self._domain_id = None + self.discriminator = None + + self.domain_id = domain_id + + @property + def domain_id(self): + """Gets the domain_id of this DeleteDomainV2RequestBody. + + 域名id列表 + + :return: The domain_id of this DeleteDomainV2RequestBody. + :rtype: list[str] + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this DeleteDomainV2RequestBody. + + 域名id列表 + + :param domain_id: The domain_id of this DeleteDomainV2RequestBody. + :type domain_id: list[str] + """ + self._domain_id = domain_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteDomainV2RequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/detail_info.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/detail_info.py new file mode 100644 index 0000000000..92f9c9be02 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/detail_info.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DetailInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'response': 'PageRespInfo' + } + + attribute_map = { + 'response': 'response' + } + + def __init__(self, response=None): + """DetailInfo + + The model defined in huaweicloud sdk + + :param response: + :type response: :class:`huaweicloudsdkaad.v2.PageRespInfo` + """ + + + + self._response = None + self.discriminator = None + + if response is not None: + self.response = response + + @property + def response(self): + """Gets the response of this DetailInfo. + + :return: The response of this DetailInfo. + :rtype: :class:`huaweicloudsdkaad.v2.PageRespInfo` + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this DetailInfo. + + :param response: The response of this DetailInfo. + :type response: :class:`huaweicloudsdkaad.v2.PageRespInfo` + """ + self._response = response + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DetailInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/empty_json_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/empty_json_response.py new file mode 100644 index 0000000000..5680d72f0b --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/empty_json_response.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class EmptyJsonResponse: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """EmptyJsonResponse + + The model defined in huaweicloud sdk + + """ + + + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EmptyJsonResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/flow_bps.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/flow_bps.py new file mode 100644 index 0000000000..55fbe1aeb4 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/flow_bps.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class FlowBps: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'utime': 'int', + 'attack_bps': 'int', + 'normal_bps': 'int' + } + + attribute_map = { + 'utime': 'utime', + 'attack_bps': 'attack_bps', + 'normal_bps': 'normal_bps' + } + + def __init__(self, utime=None, attack_bps=None, normal_bps=None): + """FlowBps + + The model defined in huaweicloud sdk + + :param utime: 数据时间 + :type utime: int + :param attack_bps: 攻击流量 + :type attack_bps: int + :param normal_bps: 正常流量 + :type normal_bps: int + """ + + + + self._utime = None + self._attack_bps = None + self._normal_bps = None + self.discriminator = None + + if utime is not None: + self.utime = utime + if attack_bps is not None: + self.attack_bps = attack_bps + if normal_bps is not None: + self.normal_bps = normal_bps + + @property + def utime(self): + """Gets the utime of this FlowBps. + + 数据时间 + + :return: The utime of this FlowBps. + :rtype: int + """ + return self._utime + + @utime.setter + def utime(self, utime): + """Sets the utime of this FlowBps. + + 数据时间 + + :param utime: The utime of this FlowBps. + :type utime: int + """ + self._utime = utime + + @property + def attack_bps(self): + """Gets the attack_bps of this FlowBps. + + 攻击流量 + + :return: The attack_bps of this FlowBps. + :rtype: int + """ + return self._attack_bps + + @attack_bps.setter + def attack_bps(self, attack_bps): + """Sets the attack_bps of this FlowBps. + + 攻击流量 + + :param attack_bps: The attack_bps of this FlowBps. + :type attack_bps: int + """ + self._attack_bps = attack_bps + + @property + def normal_bps(self): + """Gets the normal_bps of this FlowBps. + + 正常流量 + + :return: The normal_bps of this FlowBps. + :rtype: int + """ + return self._normal_bps + + @normal_bps.setter + def normal_bps(self, normal_bps): + """Sets the normal_bps of this FlowBps. + + 正常流量 + + :param normal_bps: The normal_bps of this FlowBps. + :type normal_bps: int + """ + self._normal_bps = normal_bps + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FlowBps): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/flow_pps.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/flow_pps.py new file mode 100644 index 0000000000..927c8764e4 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/flow_pps.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class FlowPps: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'utime': 'int', + 'attack_pps': 'int', + 'normal_pps': 'int' + } + + attribute_map = { + 'utime': 'utime', + 'attack_pps': 'attack_pps', + 'normal_pps': 'normal_pps' + } + + def __init__(self, utime=None, attack_pps=None, normal_pps=None): + """FlowPps + + The model defined in huaweicloud sdk + + :param utime: 数据时间 + :type utime: int + :param attack_pps: 攻击包速率 + :type attack_pps: int + :param normal_pps: 正常包速率 + :type normal_pps: int + """ + + + + self._utime = None + self._attack_pps = None + self._normal_pps = None + self.discriminator = None + + if utime is not None: + self.utime = utime + if attack_pps is not None: + self.attack_pps = attack_pps + if normal_pps is not None: + self.normal_pps = normal_pps + + @property + def utime(self): + """Gets the utime of this FlowPps. + + 数据时间 + + :return: The utime of this FlowPps. + :rtype: int + """ + return self._utime + + @utime.setter + def utime(self, utime): + """Sets the utime of this FlowPps. + + 数据时间 + + :param utime: The utime of this FlowPps. + :type utime: int + """ + self._utime = utime + + @property + def attack_pps(self): + """Gets the attack_pps of this FlowPps. + + 攻击包速率 + + :return: The attack_pps of this FlowPps. + :rtype: int + """ + return self._attack_pps + + @attack_pps.setter + def attack_pps(self, attack_pps): + """Sets the attack_pps of this FlowPps. + + 攻击包速率 + + :param attack_pps: The attack_pps of this FlowPps. + :type attack_pps: int + """ + self._attack_pps = attack_pps + + @property + def normal_pps(self): + """Gets the normal_pps of this FlowPps. + + 正常包速率 + + :return: The normal_pps of this FlowPps. + :rtype: int + """ + return self._normal_pps + + @normal_pps.setter + def normal_pps(self, normal_pps): + """Sets the normal_pps of this FlowPps. + + 正常包速率 + + :param normal_pps: The normal_pps of this FlowPps. + :type normal_pps: int + """ + self._normal_pps = normal_pps + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FlowPps): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/frequency_control_rule.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/frequency_control_rule.py new file mode 100644 index 0000000000..c864c5223b --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/frequency_control_rule.py @@ -0,0 +1,600 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class FrequencyControlRule: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'producer': 'int', + 'name': 'str', + 'url': 'str', + 'limit_num': 'str', + 'limit_period': 'str', + 'lock_time': 'str', + 'tag_type': 'str', + 'tag_index': 'str', + 'tag_condition': 'TagCondition', + 'action': 'ActionInfo', + 'mode': 'str', + 'conditions': 'list[Condition]', + 'unlock_num': 'int', + 'domain_aggregation': 'bool', + 'region_aggregation': 'bool', + 'captcha_lock_time': 'int', + 'grayscale_time': 'bool' + } + + attribute_map = { + 'id': 'id', + 'producer': 'producer', + 'name': 'name', + 'url': 'url', + 'limit_num': 'limit_num', + 'limit_period': 'limit_period', + 'lock_time': 'lock_time', + 'tag_type': 'tag_type', + 'tag_index': 'tag_index', + 'tag_condition': 'tag_condition', + 'action': 'action', + 'mode': 'mode', + 'conditions': 'conditions', + 'unlock_num': 'unlock_num', + 'domain_aggregation': 'domain_aggregation', + 'region_aggregation': 'region_aggregation', + 'captcha_lock_time': 'captcha_lock_time', + 'grayscale_time': 'grayscale_time' + } + + def __init__(self, id=None, producer=None, name=None, url=None, limit_num=None, limit_period=None, lock_time=None, tag_type=None, tag_index=None, tag_condition=None, action=None, mode=None, conditions=None, unlock_num=None, domain_aggregation=None, region_aggregation=None, captcha_lock_time=None, grayscale_time=None): + """FrequencyControlRule + + The model defined in huaweicloud sdk + + :param id: id + :type id: str + :param producer: 判断是否是智能cc生成的规则 + :type producer: int + :param name: 规则名称 + :type name: str + :param url: 规则应用的url + :type url: str + :param limit_num: 限速频率,单位为次,范围为1~2147483647 + :type limit_num: str + :param limit_period: 限速周期,单位为秒,范围1~3600 + :type limit_period: str + :param lock_time: 阻断时间,单位为秒,范围为0~65535 + :type lock_time: str + :param tag_type: 限速模式:ip、cookie、header、other、policy、domain、url。 源限速:ip:IP限速,根据IP区分单个Web访问者。cookie:用户限速,根据Cookie键值区分单个Web访问者。header:用户限速,根据Header区分单个Web访问者。other:根据Referer(自定义请求访问的来源)字段区分单个Web访问者。-目的限速:policy: 策略限速、domain: 域名限速、url: url限速 + :type tag_type: str + :param tag_index: 用户标识,当限速模式为用户限速(cookie或header)时 + :type tag_index: str + :param tag_condition: + :type tag_condition: :class:`huaweicloudsdkaad.v2.TagCondition` + :param action: + :type action: :class:`huaweicloudsdkaad.v2.ActionInfo` + :param mode: cc规则防护模式,0:标准(老版本),只支持对域名的防护路径做限制。1:高级(新版本),支持对路径、IP、Cookie、Header、Params字段做限制。修改CC规则时必须传mode + :type mode: str + :param conditions: cc规则防护规则限速条件 + :type conditions: list[:class:`huaweicloudsdkaad.v2.Condition`] + :param unlock_num: 放行频率,单位为次,范围为0~2147483647 + :type unlock_num: int + :param domain_aggregation: 域名聚合统计 + :type domain_aggregation: bool + :param region_aggregation: 全局计数 + :type region_aggregation: bool + :param captcha_lock_time: 锁定验证时间 + :type captcha_lock_time: int + :param grayscale_time: 是否灰度生效 + :type grayscale_time: bool + """ + + + + self._id = None + self._producer = None + self._name = None + self._url = None + self._limit_num = None + self._limit_period = None + self._lock_time = None + self._tag_type = None + self._tag_index = None + self._tag_condition = None + self._action = None + self._mode = None + self._conditions = None + self._unlock_num = None + self._domain_aggregation = None + self._region_aggregation = None + self._captcha_lock_time = None + self._grayscale_time = None + self.discriminator = None + + if id is not None: + self.id = id + if producer is not None: + self.producer = producer + if name is not None: + self.name = name + if url is not None: + self.url = url + if limit_num is not None: + self.limit_num = limit_num + if limit_period is not None: + self.limit_period = limit_period + if lock_time is not None: + self.lock_time = lock_time + if tag_type is not None: + self.tag_type = tag_type + if tag_index is not None: + self.tag_index = tag_index + if tag_condition is not None: + self.tag_condition = tag_condition + if action is not None: + self.action = action + if mode is not None: + self.mode = mode + if conditions is not None: + self.conditions = conditions + if unlock_num is not None: + self.unlock_num = unlock_num + if domain_aggregation is not None: + self.domain_aggregation = domain_aggregation + if region_aggregation is not None: + self.region_aggregation = region_aggregation + if captcha_lock_time is not None: + self.captcha_lock_time = captcha_lock_time + if grayscale_time is not None: + self.grayscale_time = grayscale_time + + @property + def id(self): + """Gets the id of this FrequencyControlRule. + + id + + :return: The id of this FrequencyControlRule. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this FrequencyControlRule. + + id + + :param id: The id of this FrequencyControlRule. + :type id: str + """ + self._id = id + + @property + def producer(self): + """Gets the producer of this FrequencyControlRule. + + 判断是否是智能cc生成的规则 + + :return: The producer of this FrequencyControlRule. + :rtype: int + """ + return self._producer + + @producer.setter + def producer(self, producer): + """Sets the producer of this FrequencyControlRule. + + 判断是否是智能cc生成的规则 + + :param producer: The producer of this FrequencyControlRule. + :type producer: int + """ + self._producer = producer + + @property + def name(self): + """Gets the name of this FrequencyControlRule. + + 规则名称 + + :return: The name of this FrequencyControlRule. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this FrequencyControlRule. + + 规则名称 + + :param name: The name of this FrequencyControlRule. + :type name: str + """ + self._name = name + + @property + def url(self): + """Gets the url of this FrequencyControlRule. + + 规则应用的url + + :return: The url of this FrequencyControlRule. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this FrequencyControlRule. + + 规则应用的url + + :param url: The url of this FrequencyControlRule. + :type url: str + """ + self._url = url + + @property + def limit_num(self): + """Gets the limit_num of this FrequencyControlRule. + + 限速频率,单位为次,范围为1~2147483647 + + :return: The limit_num of this FrequencyControlRule. + :rtype: str + """ + return self._limit_num + + @limit_num.setter + def limit_num(self, limit_num): + """Sets the limit_num of this FrequencyControlRule. + + 限速频率,单位为次,范围为1~2147483647 + + :param limit_num: The limit_num of this FrequencyControlRule. + :type limit_num: str + """ + self._limit_num = limit_num + + @property + def limit_period(self): + """Gets the limit_period of this FrequencyControlRule. + + 限速周期,单位为秒,范围1~3600 + + :return: The limit_period of this FrequencyControlRule. + :rtype: str + """ + return self._limit_period + + @limit_period.setter + def limit_period(self, limit_period): + """Sets the limit_period of this FrequencyControlRule. + + 限速周期,单位为秒,范围1~3600 + + :param limit_period: The limit_period of this FrequencyControlRule. + :type limit_period: str + """ + self._limit_period = limit_period + + @property + def lock_time(self): + """Gets the lock_time of this FrequencyControlRule. + + 阻断时间,单位为秒,范围为0~65535 + + :return: The lock_time of this FrequencyControlRule. + :rtype: str + """ + return self._lock_time + + @lock_time.setter + def lock_time(self, lock_time): + """Sets the lock_time of this FrequencyControlRule. + + 阻断时间,单位为秒,范围为0~65535 + + :param lock_time: The lock_time of this FrequencyControlRule. + :type lock_time: str + """ + self._lock_time = lock_time + + @property + def tag_type(self): + """Gets the tag_type of this FrequencyControlRule. + + 限速模式:ip、cookie、header、other、policy、domain、url。 源限速:ip:IP限速,根据IP区分单个Web访问者。cookie:用户限速,根据Cookie键值区分单个Web访问者。header:用户限速,根据Header区分单个Web访问者。other:根据Referer(自定义请求访问的来源)字段区分单个Web访问者。-目的限速:policy: 策略限速、domain: 域名限速、url: url限速 + + :return: The tag_type of this FrequencyControlRule. + :rtype: str + """ + return self._tag_type + + @tag_type.setter + def tag_type(self, tag_type): + """Sets the tag_type of this FrequencyControlRule. + + 限速模式:ip、cookie、header、other、policy、domain、url。 源限速:ip:IP限速,根据IP区分单个Web访问者。cookie:用户限速,根据Cookie键值区分单个Web访问者。header:用户限速,根据Header区分单个Web访问者。other:根据Referer(自定义请求访问的来源)字段区分单个Web访问者。-目的限速:policy: 策略限速、domain: 域名限速、url: url限速 + + :param tag_type: The tag_type of this FrequencyControlRule. + :type tag_type: str + """ + self._tag_type = tag_type + + @property + def tag_index(self): + """Gets the tag_index of this FrequencyControlRule. + + 用户标识,当限速模式为用户限速(cookie或header)时 + + :return: The tag_index of this FrequencyControlRule. + :rtype: str + """ + return self._tag_index + + @tag_index.setter + def tag_index(self, tag_index): + """Sets the tag_index of this FrequencyControlRule. + + 用户标识,当限速模式为用户限速(cookie或header)时 + + :param tag_index: The tag_index of this FrequencyControlRule. + :type tag_index: str + """ + self._tag_index = tag_index + + @property + def tag_condition(self): + """Gets the tag_condition of this FrequencyControlRule. + + :return: The tag_condition of this FrequencyControlRule. + :rtype: :class:`huaweicloudsdkaad.v2.TagCondition` + """ + return self._tag_condition + + @tag_condition.setter + def tag_condition(self, tag_condition): + """Sets the tag_condition of this FrequencyControlRule. + + :param tag_condition: The tag_condition of this FrequencyControlRule. + :type tag_condition: :class:`huaweicloudsdkaad.v2.TagCondition` + """ + self._tag_condition = tag_condition + + @property + def action(self): + """Gets the action of this FrequencyControlRule. + + :return: The action of this FrequencyControlRule. + :rtype: :class:`huaweicloudsdkaad.v2.ActionInfo` + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this FrequencyControlRule. + + :param action: The action of this FrequencyControlRule. + :type action: :class:`huaweicloudsdkaad.v2.ActionInfo` + """ + self._action = action + + @property + def mode(self): + """Gets the mode of this FrequencyControlRule. + + cc规则防护模式,0:标准(老版本),只支持对域名的防护路径做限制。1:高级(新版本),支持对路径、IP、Cookie、Header、Params字段做限制。修改CC规则时必须传mode + + :return: The mode of this FrequencyControlRule. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this FrequencyControlRule. + + cc规则防护模式,0:标准(老版本),只支持对域名的防护路径做限制。1:高级(新版本),支持对路径、IP、Cookie、Header、Params字段做限制。修改CC规则时必须传mode + + :param mode: The mode of this FrequencyControlRule. + :type mode: str + """ + self._mode = mode + + @property + def conditions(self): + """Gets the conditions of this FrequencyControlRule. + + cc规则防护规则限速条件 + + :return: The conditions of this FrequencyControlRule. + :rtype: list[:class:`huaweicloudsdkaad.v2.Condition`] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """Sets the conditions of this FrequencyControlRule. + + cc规则防护规则限速条件 + + :param conditions: The conditions of this FrequencyControlRule. + :type conditions: list[:class:`huaweicloudsdkaad.v2.Condition`] + """ + self._conditions = conditions + + @property + def unlock_num(self): + """Gets the unlock_num of this FrequencyControlRule. + + 放行频率,单位为次,范围为0~2147483647 + + :return: The unlock_num of this FrequencyControlRule. + :rtype: int + """ + return self._unlock_num + + @unlock_num.setter + def unlock_num(self, unlock_num): + """Sets the unlock_num of this FrequencyControlRule. + + 放行频率,单位为次,范围为0~2147483647 + + :param unlock_num: The unlock_num of this FrequencyControlRule. + :type unlock_num: int + """ + self._unlock_num = unlock_num + + @property + def domain_aggregation(self): + """Gets the domain_aggregation of this FrequencyControlRule. + + 域名聚合统计 + + :return: The domain_aggregation of this FrequencyControlRule. + :rtype: bool + """ + return self._domain_aggregation + + @domain_aggregation.setter + def domain_aggregation(self, domain_aggregation): + """Sets the domain_aggregation of this FrequencyControlRule. + + 域名聚合统计 + + :param domain_aggregation: The domain_aggregation of this FrequencyControlRule. + :type domain_aggregation: bool + """ + self._domain_aggregation = domain_aggregation + + @property + def region_aggregation(self): + """Gets the region_aggregation of this FrequencyControlRule. + + 全局计数 + + :return: The region_aggregation of this FrequencyControlRule. + :rtype: bool + """ + return self._region_aggregation + + @region_aggregation.setter + def region_aggregation(self, region_aggregation): + """Sets the region_aggregation of this FrequencyControlRule. + + 全局计数 + + :param region_aggregation: The region_aggregation of this FrequencyControlRule. + :type region_aggregation: bool + """ + self._region_aggregation = region_aggregation + + @property + def captcha_lock_time(self): + """Gets the captcha_lock_time of this FrequencyControlRule. + + 锁定验证时间 + + :return: The captcha_lock_time of this FrequencyControlRule. + :rtype: int + """ + return self._captcha_lock_time + + @captcha_lock_time.setter + def captcha_lock_time(self, captcha_lock_time): + """Sets the captcha_lock_time of this FrequencyControlRule. + + 锁定验证时间 + + :param captcha_lock_time: The captcha_lock_time of this FrequencyControlRule. + :type captcha_lock_time: int + """ + self._captcha_lock_time = captcha_lock_time + + @property + def grayscale_time(self): + """Gets the grayscale_time of this FrequencyControlRule. + + 是否灰度生效 + + :return: The grayscale_time of this FrequencyControlRule. + :rtype: bool + """ + return self._grayscale_time + + @grayscale_time.setter + def grayscale_time(self, grayscale_time): + """Sets the grayscale_time of this FrequencyControlRule. + + 是否灰度生效 + + :param grayscale_time: The grayscale_time of this FrequencyControlRule. + :type grayscale_time: bool + """ + self._grayscale_time = grayscale_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FrequencyControlRule): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/instance_domain_item.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/instance_domain_item.py new file mode 100644 index 0000000000..92d50e7044 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/instance_domain_item.py @@ -0,0 +1,405 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class InstanceDomainItem: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'domain_id': 'str', + 'domain_name': 'str', + 'cname': 'str', + 'domain_status': 'str', + 'cc_status': 'int', + 'https_cert_status': 'int', + 'cert_name': 'str', + 'protocol_type': 'list[str]', + 'real_server_type': 'int', + 'real_servers': 'str', + 'waf_status': 'int' + } + + attribute_map = { + 'domain_id': 'domain_id', + 'domain_name': 'domain_name', + 'cname': 'cname', + 'domain_status': 'domain_status', + 'cc_status': 'cc_status', + 'https_cert_status': 'https_cert_status', + 'cert_name': 'cert_name', + 'protocol_type': 'protocol_type', + 'real_server_type': 'real_server_type', + 'real_servers': 'real_servers', + 'waf_status': 'waf_status' + } + + def __init__(self, domain_id=None, domain_name=None, cname=None, domain_status=None, cc_status=None, https_cert_status=None, cert_name=None, protocol_type=None, real_server_type=None, real_servers=None, waf_status=None): + """InstanceDomainItem + + The model defined in huaweicloud sdk + + :param domain_id: 域名ID + :type domain_id: str + :param domain_name: 域名 + :type domain_name: str + :param cname: 域名cname + :type cname: str + :param domain_status: 域名状态 NORMAL = '0', FREEZE = '1' + :type domain_status: str + :param cc_status: cc防护状态 + :type cc_status: int + :param https_cert_status: 证书状态:1---已上传 2---未上传 + :type https_cert_status: int + :param cert_name: 证书名称 + :type cert_name: str + :param protocol_type: 域名协议 + :type protocol_type: list[str] + :param real_server_type: 源站类型 + :type real_server_type: int + :param real_servers: 源站 + :type real_servers: str + :param waf_status: waf防护状态 + :type waf_status: int + """ + + + + self._domain_id = None + self._domain_name = None + self._cname = None + self._domain_status = None + self._cc_status = None + self._https_cert_status = None + self._cert_name = None + self._protocol_type = None + self._real_server_type = None + self._real_servers = None + self._waf_status = None + self.discriminator = None + + if domain_id is not None: + self.domain_id = domain_id + if domain_name is not None: + self.domain_name = domain_name + if cname is not None: + self.cname = cname + if domain_status is not None: + self.domain_status = domain_status + if cc_status is not None: + self.cc_status = cc_status + if https_cert_status is not None: + self.https_cert_status = https_cert_status + if cert_name is not None: + self.cert_name = cert_name + if protocol_type is not None: + self.protocol_type = protocol_type + if real_server_type is not None: + self.real_server_type = real_server_type + if real_servers is not None: + self.real_servers = real_servers + if waf_status is not None: + self.waf_status = waf_status + + @property + def domain_id(self): + """Gets the domain_id of this InstanceDomainItem. + + 域名ID + + :return: The domain_id of this InstanceDomainItem. + :rtype: str + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this InstanceDomainItem. + + 域名ID + + :param domain_id: The domain_id of this InstanceDomainItem. + :type domain_id: str + """ + self._domain_id = domain_id + + @property + def domain_name(self): + """Gets the domain_name of this InstanceDomainItem. + + 域名 + + :return: The domain_name of this InstanceDomainItem. + :rtype: str + """ + return self._domain_name + + @domain_name.setter + def domain_name(self, domain_name): + """Sets the domain_name of this InstanceDomainItem. + + 域名 + + :param domain_name: The domain_name of this InstanceDomainItem. + :type domain_name: str + """ + self._domain_name = domain_name + + @property + def cname(self): + """Gets the cname of this InstanceDomainItem. + + 域名cname + + :return: The cname of this InstanceDomainItem. + :rtype: str + """ + return self._cname + + @cname.setter + def cname(self, cname): + """Sets the cname of this InstanceDomainItem. + + 域名cname + + :param cname: The cname of this InstanceDomainItem. + :type cname: str + """ + self._cname = cname + + @property + def domain_status(self): + """Gets the domain_status of this InstanceDomainItem. + + 域名状态 NORMAL = '0', FREEZE = '1' + + :return: The domain_status of this InstanceDomainItem. + :rtype: str + """ + return self._domain_status + + @domain_status.setter + def domain_status(self, domain_status): + """Sets the domain_status of this InstanceDomainItem. + + 域名状态 NORMAL = '0', FREEZE = '1' + + :param domain_status: The domain_status of this InstanceDomainItem. + :type domain_status: str + """ + self._domain_status = domain_status + + @property + def cc_status(self): + """Gets the cc_status of this InstanceDomainItem. + + cc防护状态 + + :return: The cc_status of this InstanceDomainItem. + :rtype: int + """ + return self._cc_status + + @cc_status.setter + def cc_status(self, cc_status): + """Sets the cc_status of this InstanceDomainItem. + + cc防护状态 + + :param cc_status: The cc_status of this InstanceDomainItem. + :type cc_status: int + """ + self._cc_status = cc_status + + @property + def https_cert_status(self): + """Gets the https_cert_status of this InstanceDomainItem. + + 证书状态:1---已上传 2---未上传 + + :return: The https_cert_status of this InstanceDomainItem. + :rtype: int + """ + return self._https_cert_status + + @https_cert_status.setter + def https_cert_status(self, https_cert_status): + """Sets the https_cert_status of this InstanceDomainItem. + + 证书状态:1---已上传 2---未上传 + + :param https_cert_status: The https_cert_status of this InstanceDomainItem. + :type https_cert_status: int + """ + self._https_cert_status = https_cert_status + + @property + def cert_name(self): + """Gets the cert_name of this InstanceDomainItem. + + 证书名称 + + :return: The cert_name of this InstanceDomainItem. + :rtype: str + """ + return self._cert_name + + @cert_name.setter + def cert_name(self, cert_name): + """Sets the cert_name of this InstanceDomainItem. + + 证书名称 + + :param cert_name: The cert_name of this InstanceDomainItem. + :type cert_name: str + """ + self._cert_name = cert_name + + @property + def protocol_type(self): + """Gets the protocol_type of this InstanceDomainItem. + + 域名协议 + + :return: The protocol_type of this InstanceDomainItem. + :rtype: list[str] + """ + return self._protocol_type + + @protocol_type.setter + def protocol_type(self, protocol_type): + """Sets the protocol_type of this InstanceDomainItem. + + 域名协议 + + :param protocol_type: The protocol_type of this InstanceDomainItem. + :type protocol_type: list[str] + """ + self._protocol_type = protocol_type + + @property + def real_server_type(self): + """Gets the real_server_type of this InstanceDomainItem. + + 源站类型 + + :return: The real_server_type of this InstanceDomainItem. + :rtype: int + """ + return self._real_server_type + + @real_server_type.setter + def real_server_type(self, real_server_type): + """Sets the real_server_type of this InstanceDomainItem. + + 源站类型 + + :param real_server_type: The real_server_type of this InstanceDomainItem. + :type real_server_type: int + """ + self._real_server_type = real_server_type + + @property + def real_servers(self): + """Gets the real_servers of this InstanceDomainItem. + + 源站 + + :return: The real_servers of this InstanceDomainItem. + :rtype: str + """ + return self._real_servers + + @real_servers.setter + def real_servers(self, real_servers): + """Sets the real_servers of this InstanceDomainItem. + + 源站 + + :param real_servers: The real_servers of this InstanceDomainItem. + :type real_servers: str + """ + self._real_servers = real_servers + + @property + def waf_status(self): + """Gets the waf_status of this InstanceDomainItem. + + waf防护状态 + + :return: The waf_status of this InstanceDomainItem. + :rtype: int + """ + return self._waf_status + + @waf_status.setter + def waf_status(self, waf_status): + """Sets the waf_status of this InstanceDomainItem. + + waf防护状态 + + :param waf_status: The waf_status of this InstanceDomainItem. + :type waf_status: int + """ + self._waf_status = waf_status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InstanceDomainItem): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/ips.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/ips.py new file mode 100644 index 0000000000..a39aad8982 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/ips.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Ips: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'ip_id': 'str', + 'ip': 'str', + 'isp': 'str', + 'data_center': 'str', + 'foreign_switch_status': 'int', + 'udp_switch_status': 'int' + } + + attribute_map = { + 'ip_id': 'ip_id', + 'ip': 'ip', + 'isp': 'isp', + 'data_center': 'data_center', + 'foreign_switch_status': 'foreign_switch_status', + 'udp_switch_status': 'udp_switch_status' + } + + def __init__(self, ip_id=None, ip=None, isp=None, data_center=None, foreign_switch_status=None, udp_switch_status=None): + """Ips + + The model defined in huaweicloud sdk + + :param ip_id: ip id + :type ip_id: str + :param ip: ip + :type ip: str + :param isp: 线路 + :type isp: str + :param data_center: 数据中心 + :type data_center: str + :param foreign_switch_status: 海外区域封禁状态 0-关闭 1-开启 + :type foreign_switch_status: int + :param udp_switch_status: UDP协议禁用 0-关闭 1-开启 + :type udp_switch_status: int + """ + + + + self._ip_id = None + self._ip = None + self._isp = None + self._data_center = None + self._foreign_switch_status = None + self._udp_switch_status = None + self.discriminator = None + + if ip_id is not None: + self.ip_id = ip_id + if ip is not None: + self.ip = ip + if isp is not None: + self.isp = isp + if data_center is not None: + self.data_center = data_center + if foreign_switch_status is not None: + self.foreign_switch_status = foreign_switch_status + if udp_switch_status is not None: + self.udp_switch_status = udp_switch_status + + @property + def ip_id(self): + """Gets the ip_id of this Ips. + + ip id + + :return: The ip_id of this Ips. + :rtype: str + """ + return self._ip_id + + @ip_id.setter + def ip_id(self, ip_id): + """Sets the ip_id of this Ips. + + ip id + + :param ip_id: The ip_id of this Ips. + :type ip_id: str + """ + self._ip_id = ip_id + + @property + def ip(self): + """Gets the ip of this Ips. + + ip + + :return: The ip of this Ips. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this Ips. + + ip + + :param ip: The ip of this Ips. + :type ip: str + """ + self._ip = ip + + @property + def isp(self): + """Gets the isp of this Ips. + + 线路 + + :return: The isp of this Ips. + :rtype: str + """ + return self._isp + + @isp.setter + def isp(self, isp): + """Sets the isp of this Ips. + + 线路 + + :param isp: The isp of this Ips. + :type isp: str + """ + self._isp = isp + + @property + def data_center(self): + """Gets the data_center of this Ips. + + 数据中心 + + :return: The data_center of this Ips. + :rtype: str + """ + return self._data_center + + @data_center.setter + def data_center(self, data_center): + """Sets the data_center of this Ips. + + 数据中心 + + :param data_center: The data_center of this Ips. + :type data_center: str + """ + self._data_center = data_center + + @property + def foreign_switch_status(self): + """Gets the foreign_switch_status of this Ips. + + 海外区域封禁状态 0-关闭 1-开启 + + :return: The foreign_switch_status of this Ips. + :rtype: int + """ + return self._foreign_switch_status + + @foreign_switch_status.setter + def foreign_switch_status(self, foreign_switch_status): + """Sets the foreign_switch_status of this Ips. + + 海外区域封禁状态 0-关闭 1-开启 + + :param foreign_switch_status: The foreign_switch_status of this Ips. + :type foreign_switch_status: int + """ + self._foreign_switch_status = foreign_switch_status + + @property + def udp_switch_status(self): + """Gets the udp_switch_status of this Ips. + + UDP协议禁用 0-关闭 1-开启 + + :return: The udp_switch_status of this Ips. + :rtype: int + """ + return self._udp_switch_status + + @udp_switch_status.setter + def udp_switch_status(self, udp_switch_status): + """Sets the udp_switch_status of this Ips. + + UDP协议禁用 0-关闭 1-开启 + + :param udp_switch_status: The udp_switch_status of this Ips. + :type udp_switch_status: int + """ + self._udp_switch_status = udp_switch_status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Ips): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_connection_number_data.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_connection_number_data.py new file mode 100644 index 0000000000..b241b95a41 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_connection_number_data.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListConnectionNumberData: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'name': 'str', + 'list': 'list[ListConnectionNumberDataList]' + } + + attribute_map = { + 'name': 'name', + 'list': 'list' + } + + def __init__(self, name=None, list=None): + """ListConnectionNumberData + + The model defined in huaweicloud sdk + + :param name: 连接数名称 + :type name: str + :param list: items + :type list: list[:class:`huaweicloudsdkaad.v2.ListConnectionNumberDataList`] + """ + + + + self._name = None + self._list = None + self.discriminator = None + + if name is not None: + self.name = name + if list is not None: + self.list = list + + @property + def name(self): + """Gets the name of this ListConnectionNumberData. + + 连接数名称 + + :return: The name of this ListConnectionNumberData. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ListConnectionNumberData. + + 连接数名称 + + :param name: The name of this ListConnectionNumberData. + :type name: str + """ + self._name = name + + @property + def list(self): + """Gets the list of this ListConnectionNumberData. + + items + + :return: The list of this ListConnectionNumberData. + :rtype: list[:class:`huaweicloudsdkaad.v2.ListConnectionNumberDataList`] + """ + return self._list + + @list.setter + def list(self, list): + """Sets the list of this ListConnectionNumberData. + + items + + :param list: The list of this ListConnectionNumberData. + :type list: list[:class:`huaweicloudsdkaad.v2.ListConnectionNumberDataList`] + """ + self._list = list + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListConnectionNumberData): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_connection_number_data_list.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_connection_number_data_list.py new file mode 100644 index 0000000000..afd8cec050 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_connection_number_data_list.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListConnectionNumberDataList: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'time': 'int', + 'value': 'int' + } + + attribute_map = { + 'time': 'time', + 'value': 'value' + } + + def __init__(self, time=None, value=None): + """ListConnectionNumberDataList + + The model defined in huaweicloud sdk + + :param time: 时间戳毫秒值 + :type time: int + :param value: 连接数 + :type value: int + """ + + + + self._time = None + self._value = None + self.discriminator = None + + if time is not None: + self.time = time + if value is not None: + self.value = value + + @property + def time(self): + """Gets the time of this ListConnectionNumberDataList. + + 时间戳毫秒值 + + :return: The time of this ListConnectionNumberDataList. + :rtype: int + """ + return self._time + + @time.setter + def time(self, time): + """Sets the time of this ListConnectionNumberDataList. + + 时间戳毫秒值 + + :param time: The time of this ListConnectionNumberDataList. + :type time: int + """ + self._time = time + + @property + def value(self): + """Gets the value of this ListConnectionNumberDataList. + + 连接数 + + :return: The value of this ListConnectionNumberDataList. + :rtype: int + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this ListConnectionNumberDataList. + + 连接数 + + :param value: The value of this ListConnectionNumberDataList. + :type value: int + """ + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListConnectionNumberDataList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_d_do_s_attack_event_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_d_do_s_attack_event_request.py new file mode 100644 index 0000000000..355509fc01 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_d_do_s_attack_event_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDDoSAttackEventRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'body': 'ListDDoSAttackEventRequestBody' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """ListDDoSAttackEventRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例id + :type instance_id: str + :param body: Body of the ListDDoSAttackEventRequest + :type body: :class:`huaweicloudsdkaad.v2.ListDDoSAttackEventRequestBody` + """ + + + + self._instance_id = None + self._body = None + self.discriminator = None + + self.instance_id = instance_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this ListDDoSAttackEventRequest. + + 实例id + + :return: The instance_id of this ListDDoSAttackEventRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ListDDoSAttackEventRequest. + + 实例id + + :param instance_id: The instance_id of this ListDDoSAttackEventRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this ListDDoSAttackEventRequest. + + :return: The body of this ListDDoSAttackEventRequest. + :rtype: :class:`huaweicloudsdkaad.v2.ListDDoSAttackEventRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ListDDoSAttackEventRequest. + + :param body: The body of this ListDDoSAttackEventRequest. + :type body: :class:`huaweicloudsdkaad.v2.ListDDoSAttackEventRequestBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListDDoSAttackEventRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_d_do_s_attack_event_request_body.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_d_do_s_attack_event_request_body.py new file mode 100644 index 0000000000..7b7e16f18a --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_d_do_s_attack_event_request_body.py @@ -0,0 +1,313 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDDoSAttackEventRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'start_time': 'str', + 'end_time': 'str', + 'offset': 'int', + 'limit': 'int', + 'ip': 'str', + 'attack_flow_low': 'str', + 'attack_flow_up': 'str', + 'attack_status': 'str' + } + + attribute_map = { + 'start_time': 'start_time', + 'end_time': 'end_time', + 'offset': 'offset', + 'limit': 'limit', + 'ip': 'ip', + 'attack_flow_low': 'attack_flow_low', + 'attack_flow_up': 'attack_flow_up', + 'attack_status': 'attack_status' + } + + def __init__(self, start_time=None, end_time=None, offset=None, limit=None, ip=None, attack_flow_low=None, attack_flow_up=None, attack_status=None): + """ListDDoSAttackEventRequestBody + + The model defined in huaweicloud sdk + + :param start_time: 开始时间(毫秒时间戳) + :type start_time: str + :param end_time: 结束时间(毫秒时间戳) + :type end_time: str + :param offset: 偏移量 + :type offset: int + :param limit: 限制条数,范围1-100 + :type limit: int + :param ip: 高防ip + :type ip: str + :param attack_flow_low: 攻击流量最小值 + :type attack_flow_low: str + :param attack_flow_up: 攻击流量最大值 + :type attack_flow_up: str + :param attack_status: 攻击状态:attack-攻击; normal-结束攻击 + :type attack_status: str + """ + + + + self._start_time = None + self._end_time = None + self._offset = None + self._limit = None + self._ip = None + self._attack_flow_low = None + self._attack_flow_up = None + self._attack_status = None + self.discriminator = None + + self.start_time = start_time + self.end_time = end_time + self.offset = offset + self.limit = limit + self.ip = ip + if attack_flow_low is not None: + self.attack_flow_low = attack_flow_low + if attack_flow_up is not None: + self.attack_flow_up = attack_flow_up + if attack_status is not None: + self.attack_status = attack_status + + @property + def start_time(self): + """Gets the start_time of this ListDDoSAttackEventRequestBody. + + 开始时间(毫秒时间戳) + + :return: The start_time of this ListDDoSAttackEventRequestBody. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ListDDoSAttackEventRequestBody. + + 开始时间(毫秒时间戳) + + :param start_time: The start_time of this ListDDoSAttackEventRequestBody. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ListDDoSAttackEventRequestBody. + + 结束时间(毫秒时间戳) + + :return: The end_time of this ListDDoSAttackEventRequestBody. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ListDDoSAttackEventRequestBody. + + 结束时间(毫秒时间戳) + + :param end_time: The end_time of this ListDDoSAttackEventRequestBody. + :type end_time: str + """ + self._end_time = end_time + + @property + def offset(self): + """Gets the offset of this ListDDoSAttackEventRequestBody. + + 偏移量 + + :return: The offset of this ListDDoSAttackEventRequestBody. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListDDoSAttackEventRequestBody. + + 偏移量 + + :param offset: The offset of this ListDDoSAttackEventRequestBody. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListDDoSAttackEventRequestBody. + + 限制条数,范围1-100 + + :return: The limit of this ListDDoSAttackEventRequestBody. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListDDoSAttackEventRequestBody. + + 限制条数,范围1-100 + + :param limit: The limit of this ListDDoSAttackEventRequestBody. + :type limit: int + """ + self._limit = limit + + @property + def ip(self): + """Gets the ip of this ListDDoSAttackEventRequestBody. + + 高防ip + + :return: The ip of this ListDDoSAttackEventRequestBody. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this ListDDoSAttackEventRequestBody. + + 高防ip + + :param ip: The ip of this ListDDoSAttackEventRequestBody. + :type ip: str + """ + self._ip = ip + + @property + def attack_flow_low(self): + """Gets the attack_flow_low of this ListDDoSAttackEventRequestBody. + + 攻击流量最小值 + + :return: The attack_flow_low of this ListDDoSAttackEventRequestBody. + :rtype: str + """ + return self._attack_flow_low + + @attack_flow_low.setter + def attack_flow_low(self, attack_flow_low): + """Sets the attack_flow_low of this ListDDoSAttackEventRequestBody. + + 攻击流量最小值 + + :param attack_flow_low: The attack_flow_low of this ListDDoSAttackEventRequestBody. + :type attack_flow_low: str + """ + self._attack_flow_low = attack_flow_low + + @property + def attack_flow_up(self): + """Gets the attack_flow_up of this ListDDoSAttackEventRequestBody. + + 攻击流量最大值 + + :return: The attack_flow_up of this ListDDoSAttackEventRequestBody. + :rtype: str + """ + return self._attack_flow_up + + @attack_flow_up.setter + def attack_flow_up(self, attack_flow_up): + """Sets the attack_flow_up of this ListDDoSAttackEventRequestBody. + + 攻击流量最大值 + + :param attack_flow_up: The attack_flow_up of this ListDDoSAttackEventRequestBody. + :type attack_flow_up: str + """ + self._attack_flow_up = attack_flow_up + + @property + def attack_status(self): + """Gets the attack_status of this ListDDoSAttackEventRequestBody. + + 攻击状态:attack-攻击; normal-结束攻击 + + :return: The attack_status of this ListDDoSAttackEventRequestBody. + :rtype: str + """ + return self._attack_status + + @attack_status.setter + def attack_status(self, attack_status): + """Sets the attack_status of this ListDDoSAttackEventRequestBody. + + 攻击状态:attack-攻击; normal-结束攻击 + + :param attack_status: The attack_status of this ListDDoSAttackEventRequestBody. + :type attack_status: str + """ + self._attack_status = attack_status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListDDoSAttackEventRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_d_do_s_attack_event_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_d_do_s_attack_event_response.py new file mode 100644 index 0000000000..1b52572802 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_d_do_s_attack_event_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDDoSAttackEventResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'total': 'int', + 'data': 'list[ListDDoSEventData]' + } + + attribute_map = { + 'total': 'total', + 'data': 'data' + } + + def __init__(self, total=None, data=None): + """ListDDoSAttackEventResponse + + The model defined in huaweicloud sdk + + :param total: total + :type total: int + :param data: data + :type data: list[:class:`huaweicloudsdkaad.v2.ListDDoSEventData`] + """ + + super(ListDDoSAttackEventResponse, self).__init__() + + self._total = None + self._data = None + self.discriminator = None + + if total is not None: + self.total = total + if data is not None: + self.data = data + + @property + def total(self): + """Gets the total of this ListDDoSAttackEventResponse. + + total + + :return: The total of this ListDDoSAttackEventResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListDDoSAttackEventResponse. + + total + + :param total: The total of this ListDDoSAttackEventResponse. + :type total: int + """ + self._total = total + + @property + def data(self): + """Gets the data of this ListDDoSAttackEventResponse. + + data + + :return: The data of this ListDDoSAttackEventResponse. + :rtype: list[:class:`huaweicloudsdkaad.v2.ListDDoSEventData`] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListDDoSAttackEventResponse. + + data + + :param data: The data of this ListDDoSAttackEventResponse. + :type data: list[:class:`huaweicloudsdkaad.v2.ListDDoSEventData`] + """ + self._data = data + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListDDoSAttackEventResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_d_do_s_connection_number_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_d_do_s_connection_number_request.py new file mode 100644 index 0000000000..a1c7891bcd --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_d_do_s_connection_number_request.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDDoSConnectionNumberRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'start_time': 'str', + 'end_time': 'str', + 'instance_id': 'str', + 'ip': 'str' + } + + attribute_map = { + 'start_time': 'start_time', + 'end_time': 'end_time', + 'instance_id': 'instance_id', + 'ip': 'ip' + } + + def __init__(self, start_time=None, end_time=None, instance_id=None, ip=None): + """ListDDoSConnectionNumberRequest + + The model defined in huaweicloud sdk + + :param start_time: 开始时间(毫秒时间戳) + :type start_time: str + :param end_time: 结束时间(毫秒时间戳) + :type end_time: str + :param instance_id: 实例id + :type instance_id: str + :param ip: 高防ip + :type ip: str + """ + + + + self._start_time = None + self._end_time = None + self._instance_id = None + self._ip = None + self.discriminator = None + + self.start_time = start_time + self.end_time = end_time + self.instance_id = instance_id + self.ip = ip + + @property + def start_time(self): + """Gets the start_time of this ListDDoSConnectionNumberRequest. + + 开始时间(毫秒时间戳) + + :return: The start_time of this ListDDoSConnectionNumberRequest. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ListDDoSConnectionNumberRequest. + + 开始时间(毫秒时间戳) + + :param start_time: The start_time of this ListDDoSConnectionNumberRequest. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ListDDoSConnectionNumberRequest. + + 结束时间(毫秒时间戳) + + :return: The end_time of this ListDDoSConnectionNumberRequest. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ListDDoSConnectionNumberRequest. + + 结束时间(毫秒时间戳) + + :param end_time: The end_time of this ListDDoSConnectionNumberRequest. + :type end_time: str + """ + self._end_time = end_time + + @property + def instance_id(self): + """Gets the instance_id of this ListDDoSConnectionNumberRequest. + + 实例id + + :return: The instance_id of this ListDDoSConnectionNumberRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ListDDoSConnectionNumberRequest. + + 实例id + + :param instance_id: The instance_id of this ListDDoSConnectionNumberRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def ip(self): + """Gets the ip of this ListDDoSConnectionNumberRequest. + + 高防ip + + :return: The ip of this ListDDoSConnectionNumberRequest. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this ListDDoSConnectionNumberRequest. + + 高防ip + + :param ip: The ip of this ListDDoSConnectionNumberRequest. + :type ip: str + """ + self._ip = ip + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListDDoSConnectionNumberRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_d_do_s_connection_number_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_d_do_s_connection_number_response.py new file mode 100644 index 0000000000..2883991eea --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_d_do_s_connection_number_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDDoSConnectionNumberResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'data': 'list[ListConnectionNumberData]' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ListDDoSConnectionNumberResponse + + The model defined in huaweicloud sdk + + :param data: items + :type data: list[:class:`huaweicloudsdkaad.v2.ListConnectionNumberData`] + """ + + super(ListDDoSConnectionNumberResponse, self).__init__() + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """Gets the data of this ListDDoSConnectionNumberResponse. + + items + + :return: The data of this ListDDoSConnectionNumberResponse. + :rtype: list[:class:`huaweicloudsdkaad.v2.ListConnectionNumberData`] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListDDoSConnectionNumberResponse. + + items + + :param data: The data of this ListDDoSConnectionNumberResponse. + :type data: list[:class:`huaweicloudsdkaad.v2.ListConnectionNumberData`] + """ + self._data = data + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListDDoSConnectionNumberResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_d_do_s_event_data.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_d_do_s_event_data.py new file mode 100644 index 0000000000..c62e03ed34 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_d_do_s_event_data.py @@ -0,0 +1,405 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDDoSEventData: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'zone_ip': 'str', + 'start_time': 'str', + 'end_time': 'str', + 'max_drop_kbps': 'str', + 'max_drop_pps': 'str', + 'max_in_kbps': 'str', + 'max_in_pps': 'str', + 'attack_types': 'str', + 'attack_ips': 'str', + 'attack_ips_desc': 'str', + 'attack_status': 'str' + } + + attribute_map = { + 'zone_ip': 'zone_ip', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'max_drop_kbps': 'max_drop_kbps', + 'max_drop_pps': 'max_drop_pps', + 'max_in_kbps': 'max_in_kbps', + 'max_in_pps': 'max_in_pps', + 'attack_types': 'attack_types', + 'attack_ips': 'attack_ips', + 'attack_ips_desc': 'attack_ips_desc', + 'attack_status': 'attack_status' + } + + def __init__(self, zone_ip=None, start_time=None, end_time=None, max_drop_kbps=None, max_drop_pps=None, max_in_kbps=None, max_in_pps=None, attack_types=None, attack_ips=None, attack_ips_desc=None, attack_status=None): + """ListDDoSEventData + + The model defined in huaweicloud sdk + + :param zone_ip: 防护IP + :type zone_ip: str + :param start_time: 开始时间(毫秒时间戳) + :type start_time: str + :param end_time: 结束时间(毫秒时间戳) + :type end_time: str + :param max_drop_kbps: 攻击流量峰值,单位“kbps” + :type max_drop_kbps: str + :param max_drop_pps: 攻击报文数峰值,单位“pps” + :type max_drop_pps: str + :param max_in_kbps: 入流量峰值,单位“kbps” + :type max_in_kbps: str + :param max_in_pps: 入报文数峰值,单位“pps” + :type max_in_pps: str + :param attack_types: 攻击类型 + :type attack_types: str + :param attack_ips: 攻击源IP + :type attack_ips: str + :param attack_ips_desc: 攻击IP描述 + :type attack_ips_desc: str + :param attack_status: 攻击状态 + :type attack_status: str + """ + + + + self._zone_ip = None + self._start_time = None + self._end_time = None + self._max_drop_kbps = None + self._max_drop_pps = None + self._max_in_kbps = None + self._max_in_pps = None + self._attack_types = None + self._attack_ips = None + self._attack_ips_desc = None + self._attack_status = None + self.discriminator = None + + if zone_ip is not None: + self.zone_ip = zone_ip + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if max_drop_kbps is not None: + self.max_drop_kbps = max_drop_kbps + if max_drop_pps is not None: + self.max_drop_pps = max_drop_pps + if max_in_kbps is not None: + self.max_in_kbps = max_in_kbps + if max_in_pps is not None: + self.max_in_pps = max_in_pps + if attack_types is not None: + self.attack_types = attack_types + if attack_ips is not None: + self.attack_ips = attack_ips + if attack_ips_desc is not None: + self.attack_ips_desc = attack_ips_desc + if attack_status is not None: + self.attack_status = attack_status + + @property + def zone_ip(self): + """Gets the zone_ip of this ListDDoSEventData. + + 防护IP + + :return: The zone_ip of this ListDDoSEventData. + :rtype: str + """ + return self._zone_ip + + @zone_ip.setter + def zone_ip(self, zone_ip): + """Sets the zone_ip of this ListDDoSEventData. + + 防护IP + + :param zone_ip: The zone_ip of this ListDDoSEventData. + :type zone_ip: str + """ + self._zone_ip = zone_ip + + @property + def start_time(self): + """Gets the start_time of this ListDDoSEventData. + + 开始时间(毫秒时间戳) + + :return: The start_time of this ListDDoSEventData. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ListDDoSEventData. + + 开始时间(毫秒时间戳) + + :param start_time: The start_time of this ListDDoSEventData. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ListDDoSEventData. + + 结束时间(毫秒时间戳) + + :return: The end_time of this ListDDoSEventData. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ListDDoSEventData. + + 结束时间(毫秒时间戳) + + :param end_time: The end_time of this ListDDoSEventData. + :type end_time: str + """ + self._end_time = end_time + + @property + def max_drop_kbps(self): + """Gets the max_drop_kbps of this ListDDoSEventData. + + 攻击流量峰值,单位“kbps” + + :return: The max_drop_kbps of this ListDDoSEventData. + :rtype: str + """ + return self._max_drop_kbps + + @max_drop_kbps.setter + def max_drop_kbps(self, max_drop_kbps): + """Sets the max_drop_kbps of this ListDDoSEventData. + + 攻击流量峰值,单位“kbps” + + :param max_drop_kbps: The max_drop_kbps of this ListDDoSEventData. + :type max_drop_kbps: str + """ + self._max_drop_kbps = max_drop_kbps + + @property + def max_drop_pps(self): + """Gets the max_drop_pps of this ListDDoSEventData. + + 攻击报文数峰值,单位“pps” + + :return: The max_drop_pps of this ListDDoSEventData. + :rtype: str + """ + return self._max_drop_pps + + @max_drop_pps.setter + def max_drop_pps(self, max_drop_pps): + """Sets the max_drop_pps of this ListDDoSEventData. + + 攻击报文数峰值,单位“pps” + + :param max_drop_pps: The max_drop_pps of this ListDDoSEventData. + :type max_drop_pps: str + """ + self._max_drop_pps = max_drop_pps + + @property + def max_in_kbps(self): + """Gets the max_in_kbps of this ListDDoSEventData. + + 入流量峰值,单位“kbps” + + :return: The max_in_kbps of this ListDDoSEventData. + :rtype: str + """ + return self._max_in_kbps + + @max_in_kbps.setter + def max_in_kbps(self, max_in_kbps): + """Sets the max_in_kbps of this ListDDoSEventData. + + 入流量峰值,单位“kbps” + + :param max_in_kbps: The max_in_kbps of this ListDDoSEventData. + :type max_in_kbps: str + """ + self._max_in_kbps = max_in_kbps + + @property + def max_in_pps(self): + """Gets the max_in_pps of this ListDDoSEventData. + + 入报文数峰值,单位“pps” + + :return: The max_in_pps of this ListDDoSEventData. + :rtype: str + """ + return self._max_in_pps + + @max_in_pps.setter + def max_in_pps(self, max_in_pps): + """Sets the max_in_pps of this ListDDoSEventData. + + 入报文数峰值,单位“pps” + + :param max_in_pps: The max_in_pps of this ListDDoSEventData. + :type max_in_pps: str + """ + self._max_in_pps = max_in_pps + + @property + def attack_types(self): + """Gets the attack_types of this ListDDoSEventData. + + 攻击类型 + + :return: The attack_types of this ListDDoSEventData. + :rtype: str + """ + return self._attack_types + + @attack_types.setter + def attack_types(self, attack_types): + """Sets the attack_types of this ListDDoSEventData. + + 攻击类型 + + :param attack_types: The attack_types of this ListDDoSEventData. + :type attack_types: str + """ + self._attack_types = attack_types + + @property + def attack_ips(self): + """Gets the attack_ips of this ListDDoSEventData. + + 攻击源IP + + :return: The attack_ips of this ListDDoSEventData. + :rtype: str + """ + return self._attack_ips + + @attack_ips.setter + def attack_ips(self, attack_ips): + """Sets the attack_ips of this ListDDoSEventData. + + 攻击源IP + + :param attack_ips: The attack_ips of this ListDDoSEventData. + :type attack_ips: str + """ + self._attack_ips = attack_ips + + @property + def attack_ips_desc(self): + """Gets the attack_ips_desc of this ListDDoSEventData. + + 攻击IP描述 + + :return: The attack_ips_desc of this ListDDoSEventData. + :rtype: str + """ + return self._attack_ips_desc + + @attack_ips_desc.setter + def attack_ips_desc(self, attack_ips_desc): + """Sets the attack_ips_desc of this ListDDoSEventData. + + 攻击IP描述 + + :param attack_ips_desc: The attack_ips_desc of this ListDDoSEventData. + :type attack_ips_desc: str + """ + self._attack_ips_desc = attack_ips_desc + + @property + def attack_status(self): + """Gets the attack_status of this ListDDoSEventData. + + 攻击状态 + + :return: The attack_status of this ListDDoSEventData. + :rtype: str + """ + return self._attack_status + + @attack_status.setter + def attack_status(self, attack_status): + """Sets the attack_status of this ListDDoSEventData. + + 攻击状态 + + :param attack_status: The attack_status of this ListDDoSEventData. + :type attack_status: str + """ + self._attack_status = attack_status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListDDoSEventData): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_d_do_s_flow_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_d_do_s_flow_request.py new file mode 100644 index 0000000000..83d5d6beb5 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_d_do_s_flow_request.py @@ -0,0 +1,226 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDDoSFlowRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'ip': 'str', + 'type': 'str', + 'start_time': 'str', + 'end_time': 'str' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'ip': 'ip', + 'type': 'type', + 'start_time': 'start_time', + 'end_time': 'end_time' + } + + def __init__(self, instance_id=None, ip=None, type=None, start_time=None, end_time=None): + """ListDDoSFlowRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID + :type instance_id: str + :param ip: 高防IP + :type ip: str + :param type: 请求类型 pps、bps + :type type: str + :param start_time: 开始时间(毫秒时间戳) + :type start_time: str + :param end_time: 结束时间(毫秒时间戳) + :type end_time: str + """ + + + + self._instance_id = None + self._ip = None + self._type = None + self._start_time = None + self._end_time = None + self.discriminator = None + + self.instance_id = instance_id + self.ip = ip + self.type = type + self.start_time = start_time + self.end_time = end_time + + @property + def instance_id(self): + """Gets the instance_id of this ListDDoSFlowRequest. + + 实例ID + + :return: The instance_id of this ListDDoSFlowRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ListDDoSFlowRequest. + + 实例ID + + :param instance_id: The instance_id of this ListDDoSFlowRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def ip(self): + """Gets the ip of this ListDDoSFlowRequest. + + 高防IP + + :return: The ip of this ListDDoSFlowRequest. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this ListDDoSFlowRequest. + + 高防IP + + :param ip: The ip of this ListDDoSFlowRequest. + :type ip: str + """ + self._ip = ip + + @property + def type(self): + """Gets the type of this ListDDoSFlowRequest. + + 请求类型 pps、bps + + :return: The type of this ListDDoSFlowRequest. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ListDDoSFlowRequest. + + 请求类型 pps、bps + + :param type: The type of this ListDDoSFlowRequest. + :type type: str + """ + self._type = type + + @property + def start_time(self): + """Gets the start_time of this ListDDoSFlowRequest. + + 开始时间(毫秒时间戳) + + :return: The start_time of this ListDDoSFlowRequest. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ListDDoSFlowRequest. + + 开始时间(毫秒时间戳) + + :param start_time: The start_time of this ListDDoSFlowRequest. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ListDDoSFlowRequest. + + 结束时间(毫秒时间戳) + + :return: The end_time of this ListDDoSFlowRequest. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ListDDoSFlowRequest. + + 结束时间(毫秒时间戳) + + :param end_time: The end_time of this ListDDoSFlowRequest. + :type end_time: str + """ + self._end_time = end_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListDDoSFlowRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_d_do_s_flow_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_d_do_s_flow_response.py new file mode 100644 index 0000000000..92f8f7b915 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_d_do_s_flow_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDDoSFlowResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'flow_bps': 'list[FlowBps]', + 'flow_pps': 'list[FlowPps]' + } + + attribute_map = { + 'flow_bps': 'flow_bps', + 'flow_pps': 'flow_pps' + } + + def __init__(self, flow_bps=None, flow_pps=None): + """ListDDoSFlowResponse + + The model defined in huaweicloud sdk + + :param flow_bps: 当请求type=bps时必返回 + :type flow_bps: list[:class:`huaweicloudsdkaad.v2.FlowBps`] + :param flow_pps: 当请求type=pps时必返回 + :type flow_pps: list[:class:`huaweicloudsdkaad.v2.FlowPps`] + """ + + super(ListDDoSFlowResponse, self).__init__() + + self._flow_bps = None + self._flow_pps = None + self.discriminator = None + + if flow_bps is not None: + self.flow_bps = flow_bps + if flow_pps is not None: + self.flow_pps = flow_pps + + @property + def flow_bps(self): + """Gets the flow_bps of this ListDDoSFlowResponse. + + 当请求type=bps时必返回 + + :return: The flow_bps of this ListDDoSFlowResponse. + :rtype: list[:class:`huaweicloudsdkaad.v2.FlowBps`] + """ + return self._flow_bps + + @flow_bps.setter + def flow_bps(self, flow_bps): + """Sets the flow_bps of this ListDDoSFlowResponse. + + 当请求type=bps时必返回 + + :param flow_bps: The flow_bps of this ListDDoSFlowResponse. + :type flow_bps: list[:class:`huaweicloudsdkaad.v2.FlowBps`] + """ + self._flow_bps = flow_bps + + @property + def flow_pps(self): + """Gets the flow_pps of this ListDDoSFlowResponse. + + 当请求type=pps时必返回 + + :return: The flow_pps of this ListDDoSFlowResponse. + :rtype: list[:class:`huaweicloudsdkaad.v2.FlowPps`] + """ + return self._flow_pps + + @flow_pps.setter + def flow_pps(self, flow_pps): + """Sets the flow_pps of this ListDDoSFlowResponse. + + 当请求type=pps时必返回 + + :param flow_pps: The flow_pps of this ListDDoSFlowResponse. + :type flow_pps: list[:class:`huaweicloudsdkaad.v2.FlowPps`] + """ + self._flow_pps = flow_pps + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListDDoSFlowResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_frequency_control_rule_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_frequency_control_rule_request.py new file mode 100644 index 0000000000..8010bab09b --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_frequency_control_rule_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListFrequencyControlRuleRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'domain_name': 'str' + } + + attribute_map = { + 'domain_name': 'domain_name' + } + + def __init__(self, domain_name=None): + """ListFrequencyControlRuleRequest + + The model defined in huaweicloud sdk + + :param domain_name: 域名 + :type domain_name: str + """ + + + + self._domain_name = None + self.discriminator = None + + self.domain_name = domain_name + + @property + def domain_name(self): + """Gets the domain_name of this ListFrequencyControlRuleRequest. + + 域名 + + :return: The domain_name of this ListFrequencyControlRuleRequest. + :rtype: str + """ + return self._domain_name + + @domain_name.setter + def domain_name(self, domain_name): + """Sets the domain_name of this ListFrequencyControlRuleRequest. + + 域名 + + :param domain_name: The domain_name of this ListFrequencyControlRuleRequest. + :type domain_name: str + """ + self._domain_name = domain_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListFrequencyControlRuleRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_frequency_control_rule_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_frequency_control_rule_response.py new file mode 100644 index 0000000000..c1d848152c --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_frequency_control_rule_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListFrequencyControlRuleResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'total': 'int', + 'items': 'list[FrequencyControlRule]' + } + + attribute_map = { + 'total': 'total', + 'items': 'items' + } + + def __init__(self, total=None, items=None): + """ListFrequencyControlRuleResponse + + The model defined in huaweicloud sdk + + :param total: total + :type total: int + :param items: items + :type items: list[:class:`huaweicloudsdkaad.v2.FrequencyControlRule`] + """ + + super(ListFrequencyControlRuleResponse, self).__init__() + + self._total = None + self._items = None + self.discriminator = None + + if total is not None: + self.total = total + if items is not None: + self.items = items + + @property + def total(self): + """Gets the total of this ListFrequencyControlRuleResponse. + + total + + :return: The total of this ListFrequencyControlRuleResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListFrequencyControlRuleResponse. + + total + + :param total: The total of this ListFrequencyControlRuleResponse. + :type total: int + """ + self._total = total + + @property + def items(self): + """Gets the items of this ListFrequencyControlRuleResponse. + + items + + :return: The items of this ListFrequencyControlRuleResponse. + :rtype: list[:class:`huaweicloudsdkaad.v2.FrequencyControlRule`] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListFrequencyControlRuleResponse. + + items + + :param items: The items of this ListFrequencyControlRuleResponse. + :type items: list[:class:`huaweicloudsdkaad.v2.FrequencyControlRule`] + """ + self._items = items + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListFrequencyControlRuleResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_instance_domains_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_instance_domains_request.py new file mode 100644 index 0000000000..2446c3fe46 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_instance_domains_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListInstanceDomainsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str' + } + + attribute_map = { + 'instance_id': 'instance_id' + } + + def __init__(self, instance_id=None): + """ListInstanceDomainsRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例id + :type instance_id: str + """ + + + + self._instance_id = None + self.discriminator = None + + self.instance_id = instance_id + + @property + def instance_id(self): + """Gets the instance_id of this ListInstanceDomainsRequest. + + 实例id + + :return: The instance_id of this ListInstanceDomainsRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ListInstanceDomainsRequest. + + 实例id + + :param instance_id: The instance_id of this ListInstanceDomainsRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListInstanceDomainsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_instance_domains_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_instance_domains_response.py new file mode 100644 index 0000000000..a084a374e2 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_instance_domains_response.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListInstanceDomainsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'instance_name': 'str', + 'domains': 'list[InstanceDomainItem]' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'instance_name': 'instance_name', + 'domains': 'domains' + } + + def __init__(self, instance_id=None, instance_name=None, domains=None): + """ListInstanceDomainsResponse + + The model defined in huaweicloud sdk + + :param instance_id: 实例id + :type instance_id: str + :param instance_name: 实例名称 + :type instance_name: str + :param domains: 域名信息 + :type domains: list[:class:`huaweicloudsdkaad.v2.InstanceDomainItem`] + """ + + super(ListInstanceDomainsResponse, self).__init__() + + self._instance_id = None + self._instance_name = None + self._domains = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + if instance_name is not None: + self.instance_name = instance_name + if domains is not None: + self.domains = domains + + @property + def instance_id(self): + """Gets the instance_id of this ListInstanceDomainsResponse. + + 实例id + + :return: The instance_id of this ListInstanceDomainsResponse. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ListInstanceDomainsResponse. + + 实例id + + :param instance_id: The instance_id of this ListInstanceDomainsResponse. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def instance_name(self): + """Gets the instance_name of this ListInstanceDomainsResponse. + + 实例名称 + + :return: The instance_name of this ListInstanceDomainsResponse. + :rtype: str + """ + return self._instance_name + + @instance_name.setter + def instance_name(self, instance_name): + """Sets the instance_name of this ListInstanceDomainsResponse. + + 实例名称 + + :param instance_name: The instance_name of this ListInstanceDomainsResponse. + :type instance_name: str + """ + self._instance_name = instance_name + + @property + def domains(self): + """Gets the domains of this ListInstanceDomainsResponse. + + 域名信息 + + :return: The domains of this ListInstanceDomainsResponse. + :rtype: list[:class:`huaweicloudsdkaad.v2.InstanceDomainItem`] + """ + return self._domains + + @domains.setter + def domains(self, domains): + """Sets the domains of this ListInstanceDomainsResponse. + + 域名信息 + + :param domains: The domains of this ListInstanceDomainsResponse. + :type domains: list[:class:`huaweicloudsdkaad.v2.InstanceDomainItem`] + """ + self._domains = domains + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListInstanceDomainsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_attack_event_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_attack_event_request.py new file mode 100644 index 0000000000..30d1cea4ec --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_attack_event_request.py @@ -0,0 +1,318 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListWafAttackEventRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'domains': 'str', + 'start_time': 'str', + 'end_time': 'str', + 'recent': 'str', + 'overseas_type': 'int', + 'sip': 'str', + 'limit': 'int', + 'offset': 'int' + } + + attribute_map = { + 'domains': 'domains', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'recent': 'recent', + 'overseas_type': 'overseas_type', + 'sip': 'sip', + 'limit': 'limit', + 'offset': 'offset' + } + + def __init__(self, domains=None, start_time=None, end_time=None, recent=None, overseas_type=None, sip=None, limit=None, offset=None): + """ListWafAttackEventRequest + + The model defined in huaweicloud sdk + + :param domains: 不传时代表全部域名 + :type domains: str + :param start_time: 开始时间(毫秒时间戳) + :type start_time: str + :param end_time: 结束时间(毫秒时间戳) + :type end_time: str + :param recent: 枚举值:yesterday,today,3days,1week,1month 与开始结束时间不同时为空 + :type recent: str + :param overseas_type: 实例类型,0-大陆,1-海外 + :type overseas_type: int + :param sip: 攻击源IP + :type sip: str + :param limit: limit + :type limit: int + :param offset: offset + :type offset: int + """ + + + + self._domains = None + self._start_time = None + self._end_time = None + self._recent = None + self._overseas_type = None + self._sip = None + self._limit = None + self._offset = None + self.discriminator = None + + if domains is not None: + self.domains = domains + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if recent is not None: + self.recent = recent + if overseas_type is not None: + self.overseas_type = overseas_type + if sip is not None: + self.sip = sip + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset + + @property + def domains(self): + """Gets the domains of this ListWafAttackEventRequest. + + 不传时代表全部域名 + + :return: The domains of this ListWafAttackEventRequest. + :rtype: str + """ + return self._domains + + @domains.setter + def domains(self, domains): + """Sets the domains of this ListWafAttackEventRequest. + + 不传时代表全部域名 + + :param domains: The domains of this ListWafAttackEventRequest. + :type domains: str + """ + self._domains = domains + + @property + def start_time(self): + """Gets the start_time of this ListWafAttackEventRequest. + + 开始时间(毫秒时间戳) + + :return: The start_time of this ListWafAttackEventRequest. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ListWafAttackEventRequest. + + 开始时间(毫秒时间戳) + + :param start_time: The start_time of this ListWafAttackEventRequest. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ListWafAttackEventRequest. + + 结束时间(毫秒时间戳) + + :return: The end_time of this ListWafAttackEventRequest. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ListWafAttackEventRequest. + + 结束时间(毫秒时间戳) + + :param end_time: The end_time of this ListWafAttackEventRequest. + :type end_time: str + """ + self._end_time = end_time + + @property + def recent(self): + """Gets the recent of this ListWafAttackEventRequest. + + 枚举值:yesterday,today,3days,1week,1month 与开始结束时间不同时为空 + + :return: The recent of this ListWafAttackEventRequest. + :rtype: str + """ + return self._recent + + @recent.setter + def recent(self, recent): + """Sets the recent of this ListWafAttackEventRequest. + + 枚举值:yesterday,today,3days,1week,1month 与开始结束时间不同时为空 + + :param recent: The recent of this ListWafAttackEventRequest. + :type recent: str + """ + self._recent = recent + + @property + def overseas_type(self): + """Gets the overseas_type of this ListWafAttackEventRequest. + + 实例类型,0-大陆,1-海外 + + :return: The overseas_type of this ListWafAttackEventRequest. + :rtype: int + """ + return self._overseas_type + + @overseas_type.setter + def overseas_type(self, overseas_type): + """Sets the overseas_type of this ListWafAttackEventRequest. + + 实例类型,0-大陆,1-海外 + + :param overseas_type: The overseas_type of this ListWafAttackEventRequest. + :type overseas_type: int + """ + self._overseas_type = overseas_type + + @property + def sip(self): + """Gets the sip of this ListWafAttackEventRequest. + + 攻击源IP + + :return: The sip of this ListWafAttackEventRequest. + :rtype: str + """ + return self._sip + + @sip.setter + def sip(self, sip): + """Sets the sip of this ListWafAttackEventRequest. + + 攻击源IP + + :param sip: The sip of this ListWafAttackEventRequest. + :type sip: str + """ + self._sip = sip + + @property + def limit(self): + """Gets the limit of this ListWafAttackEventRequest. + + limit + + :return: The limit of this ListWafAttackEventRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListWafAttackEventRequest. + + limit + + :param limit: The limit of this ListWafAttackEventRequest. + :type limit: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this ListWafAttackEventRequest. + + offset + + :return: The offset of this ListWafAttackEventRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListWafAttackEventRequest. + + offset + + :param offset: The offset of this ListWafAttackEventRequest. + :type offset: int + """ + self._offset = offset + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListWafAttackEventRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_attack_event_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_attack_event_response.py new file mode 100644 index 0000000000..5b2cc6b8f8 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_attack_event_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListWafAttackEventResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'total': 'int', + 'list': 'list[ListWafAttackEventlist]' + } + + attribute_map = { + 'total': 'total', + 'list': 'list' + } + + def __init__(self, total=None, list=None): + """ListWafAttackEventResponse + + The model defined in huaweicloud sdk + + :param total: total + :type total: int + :param list: list + :type list: list[:class:`huaweicloudsdkaad.v2.ListWafAttackEventlist`] + """ + + super(ListWafAttackEventResponse, self).__init__() + + self._total = None + self._list = None + self.discriminator = None + + if total is not None: + self.total = total + if list is not None: + self.list = list + + @property + def total(self): + """Gets the total of this ListWafAttackEventResponse. + + total + + :return: The total of this ListWafAttackEventResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListWafAttackEventResponse. + + total + + :param total: The total of this ListWafAttackEventResponse. + :type total: int + """ + self._total = total + + @property + def list(self): + """Gets the list of this ListWafAttackEventResponse. + + list + + :return: The list of this ListWafAttackEventResponse. + :rtype: list[:class:`huaweicloudsdkaad.v2.ListWafAttackEventlist`] + """ + return self._list + + @list.setter + def list(self, list): + """Sets the list of this ListWafAttackEventResponse. + + list + + :param list: The list of this ListWafAttackEventResponse. + :type list: list[:class:`huaweicloudsdkaad.v2.ListWafAttackEventlist`] + """ + self._list = list + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListWafAttackEventResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_attack_eventlist.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_attack_eventlist.py new file mode 100644 index 0000000000..e7159d10e2 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_attack_eventlist.py @@ -0,0 +1,314 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListWafAttackEventlist: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'domain': 'str', + 'time': 'int', + 'sip': 'str', + 'action': 'str', + 'url': 'str', + 'type': 'str', + 'backend': 'Backend' + } + + attribute_map = { + 'id': 'id', + 'domain': 'domain', + 'time': 'time', + 'sip': 'sip', + 'action': 'action', + 'url': 'url', + 'type': 'type', + 'backend': 'backend' + } + + def __init__(self, id=None, domain=None, time=None, sip=None, action=None, url=None, type=None, backend=None): + """ListWafAttackEventlist + + The model defined in huaweicloud sdk + + :param id: id + :type id: str + :param domain: 攻击目标域名 + :type domain: str + :param time: 攻击时间 + :type time: int + :param sip: 攻击源IP + :type sip: str + :param action: 防御动作 + :type action: str + :param url: 攻击url + :type url: str + :param type: 攻击类型 + :type type: str + :param backend: + :type backend: :class:`huaweicloudsdkaad.v2.Backend` + """ + + + + self._id = None + self._domain = None + self._time = None + self._sip = None + self._action = None + self._url = None + self._type = None + self._backend = None + self.discriminator = None + + if id is not None: + self.id = id + if domain is not None: + self.domain = domain + if time is not None: + self.time = time + if sip is not None: + self.sip = sip + if action is not None: + self.action = action + if url is not None: + self.url = url + if type is not None: + self.type = type + if backend is not None: + self.backend = backend + + @property + def id(self): + """Gets the id of this ListWafAttackEventlist. + + id + + :return: The id of this ListWafAttackEventlist. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ListWafAttackEventlist. + + id + + :param id: The id of this ListWafAttackEventlist. + :type id: str + """ + self._id = id + + @property + def domain(self): + """Gets the domain of this ListWafAttackEventlist. + + 攻击目标域名 + + :return: The domain of this ListWafAttackEventlist. + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this ListWafAttackEventlist. + + 攻击目标域名 + + :param domain: The domain of this ListWafAttackEventlist. + :type domain: str + """ + self._domain = domain + + @property + def time(self): + """Gets the time of this ListWafAttackEventlist. + + 攻击时间 + + :return: The time of this ListWafAttackEventlist. + :rtype: int + """ + return self._time + + @time.setter + def time(self, time): + """Sets the time of this ListWafAttackEventlist. + + 攻击时间 + + :param time: The time of this ListWafAttackEventlist. + :type time: int + """ + self._time = time + + @property + def sip(self): + """Gets the sip of this ListWafAttackEventlist. + + 攻击源IP + + :return: The sip of this ListWafAttackEventlist. + :rtype: str + """ + return self._sip + + @sip.setter + def sip(self, sip): + """Sets the sip of this ListWafAttackEventlist. + + 攻击源IP + + :param sip: The sip of this ListWafAttackEventlist. + :type sip: str + """ + self._sip = sip + + @property + def action(self): + """Gets the action of this ListWafAttackEventlist. + + 防御动作 + + :return: The action of this ListWafAttackEventlist. + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this ListWafAttackEventlist. + + 防御动作 + + :param action: The action of this ListWafAttackEventlist. + :type action: str + """ + self._action = action + + @property + def url(self): + """Gets the url of this ListWafAttackEventlist. + + 攻击url + + :return: The url of this ListWafAttackEventlist. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this ListWafAttackEventlist. + + 攻击url + + :param url: The url of this ListWafAttackEventlist. + :type url: str + """ + self._url = url + + @property + def type(self): + """Gets the type of this ListWafAttackEventlist. + + 攻击类型 + + :return: The type of this ListWafAttackEventlist. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ListWafAttackEventlist. + + 攻击类型 + + :param type: The type of this ListWafAttackEventlist. + :type type: str + """ + self._type = type + + @property + def backend(self): + """Gets the backend of this ListWafAttackEventlist. + + :return: The backend of this ListWafAttackEventlist. + :rtype: :class:`huaweicloudsdkaad.v2.Backend` + """ + return self._backend + + @backend.setter + def backend(self, backend): + """Sets the backend of this ListWafAttackEventlist. + + :param backend: The backend of this ListWafAttackEventlist. + :type backend: :class:`huaweicloudsdkaad.v2.Backend` + """ + self._backend = backend + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListWafAttackEventlist): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_bandwidth_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_bandwidth_request.py new file mode 100644 index 0000000000..2f572e0ec3 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_bandwidth_request.py @@ -0,0 +1,259 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListWafBandwidthRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'domains': 'str', + 'value_type': 'str', + 'start_time': 'str', + 'end_time': 'str', + 'recent': 'str', + 'overseas_type': 'int' + } + + attribute_map = { + 'domains': 'domains', + 'value_type': 'value_type', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'recent': 'recent', + 'overseas_type': 'overseas_type' + } + + def __init__(self, domains=None, value_type=None, start_time=None, end_time=None, recent=None, overseas_type=None): + """ListWafBandwidthRequest + + The model defined in huaweicloud sdk + + :param domains: 不传时代表全部域名 + :type domains: str + :param value_type: 平均值 mean、峰值 peak + :type value_type: str + :param start_time: 开始时间(毫秒时间戳) + :type start_time: str + :param end_time: 结束时间(毫秒时间戳) + :type end_time: str + :param recent: 枚举值:yesterday,today,3days,1week,1month 与开始结束时间不同时为空 + :type recent: str + :param overseas_type: 实例类型,0-大陆,1-海外 + :type overseas_type: int + """ + + + + self._domains = None + self._value_type = None + self._start_time = None + self._end_time = None + self._recent = None + self._overseas_type = None + self.discriminator = None + + if domains is not None: + self.domains = domains + self.value_type = value_type + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if recent is not None: + self.recent = recent + if overseas_type is not None: + self.overseas_type = overseas_type + + @property + def domains(self): + """Gets the domains of this ListWafBandwidthRequest. + + 不传时代表全部域名 + + :return: The domains of this ListWafBandwidthRequest. + :rtype: str + """ + return self._domains + + @domains.setter + def domains(self, domains): + """Sets the domains of this ListWafBandwidthRequest. + + 不传时代表全部域名 + + :param domains: The domains of this ListWafBandwidthRequest. + :type domains: str + """ + self._domains = domains + + @property + def value_type(self): + """Gets the value_type of this ListWafBandwidthRequest. + + 平均值 mean、峰值 peak + + :return: The value_type of this ListWafBandwidthRequest. + :rtype: str + """ + return self._value_type + + @value_type.setter + def value_type(self, value_type): + """Sets the value_type of this ListWafBandwidthRequest. + + 平均值 mean、峰值 peak + + :param value_type: The value_type of this ListWafBandwidthRequest. + :type value_type: str + """ + self._value_type = value_type + + @property + def start_time(self): + """Gets the start_time of this ListWafBandwidthRequest. + + 开始时间(毫秒时间戳) + + :return: The start_time of this ListWafBandwidthRequest. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ListWafBandwidthRequest. + + 开始时间(毫秒时间戳) + + :param start_time: The start_time of this ListWafBandwidthRequest. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ListWafBandwidthRequest. + + 结束时间(毫秒时间戳) + + :return: The end_time of this ListWafBandwidthRequest. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ListWafBandwidthRequest. + + 结束时间(毫秒时间戳) + + :param end_time: The end_time of this ListWafBandwidthRequest. + :type end_time: str + """ + self._end_time = end_time + + @property + def recent(self): + """Gets the recent of this ListWafBandwidthRequest. + + 枚举值:yesterday,today,3days,1week,1month 与开始结束时间不同时为空 + + :return: The recent of this ListWafBandwidthRequest. + :rtype: str + """ + return self._recent + + @recent.setter + def recent(self, recent): + """Sets the recent of this ListWafBandwidthRequest. + + 枚举值:yesterday,today,3days,1week,1month 与开始结束时间不同时为空 + + :param recent: The recent of this ListWafBandwidthRequest. + :type recent: str + """ + self._recent = recent + + @property + def overseas_type(self): + """Gets the overseas_type of this ListWafBandwidthRequest. + + 实例类型,0-大陆,1-海外 + + :return: The overseas_type of this ListWafBandwidthRequest. + :rtype: int + """ + return self._overseas_type + + @overseas_type.setter + def overseas_type(self, overseas_type): + """Sets the overseas_type of this ListWafBandwidthRequest. + + 实例类型,0-大陆,1-海外 + + :param overseas_type: The overseas_type of this ListWafBandwidthRequest. + :type overseas_type: int + """ + self._overseas_type = overseas_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListWafBandwidthRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_bandwidth_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_bandwidth_response.py new file mode 100644 index 0000000000..b586495ca7 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_bandwidth_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListWafBandwidthResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'curve': 'list[Curve]' + } + + attribute_map = { + 'curve': 'curve' + } + + def __init__(self, curve=None): + """ListWafBandwidthResponse + + The model defined in huaweicloud sdk + + :param curve: 曲线 + :type curve: list[:class:`huaweicloudsdkaad.v2.Curve`] + """ + + super(ListWafBandwidthResponse, self).__init__() + + self._curve = None + self.discriminator = None + + if curve is not None: + self.curve = curve + + @property + def curve(self): + """Gets the curve of this ListWafBandwidthResponse. + + 曲线 + + :return: The curve of this ListWafBandwidthResponse. + :rtype: list[:class:`huaweicloudsdkaad.v2.Curve`] + """ + return self._curve + + @curve.setter + def curve(self, curve): + """Sets the curve of this ListWafBandwidthResponse. + + 曲线 + + :param curve: The curve of this ListWafBandwidthResponse. + :type curve: list[:class:`huaweicloudsdkaad.v2.Curve`] + """ + self._curve = curve + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListWafBandwidthResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_custom_rule_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_custom_rule_request.py new file mode 100644 index 0000000000..b9163f7f85 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_custom_rule_request.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListWafCustomRuleRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'domain_name': 'str', + 'overseas_type': 'int' + } + + attribute_map = { + 'domain_name': 'domain_name', + 'overseas_type': 'overseas_type' + } + + def __init__(self, domain_name=None, overseas_type=None): + """ListWafCustomRuleRequest + + The model defined in huaweicloud sdk + + :param domain_name: 域名 + :type domain_name: str + :param overseas_type: 防护区域,0-大陆,1-海外 + :type overseas_type: int + """ + + + + self._domain_name = None + self._overseas_type = None + self.discriminator = None + + self.domain_name = domain_name + self.overseas_type = overseas_type + + @property + def domain_name(self): + """Gets the domain_name of this ListWafCustomRuleRequest. + + 域名 + + :return: The domain_name of this ListWafCustomRuleRequest. + :rtype: str + """ + return self._domain_name + + @domain_name.setter + def domain_name(self, domain_name): + """Sets the domain_name of this ListWafCustomRuleRequest. + + 域名 + + :param domain_name: The domain_name of this ListWafCustomRuleRequest. + :type domain_name: str + """ + self._domain_name = domain_name + + @property + def overseas_type(self): + """Gets the overseas_type of this ListWafCustomRuleRequest. + + 防护区域,0-大陆,1-海外 + + :return: The overseas_type of this ListWafCustomRuleRequest. + :rtype: int + """ + return self._overseas_type + + @overseas_type.setter + def overseas_type(self, overseas_type): + """Sets the overseas_type of this ListWafCustomRuleRequest. + + 防护区域,0-大陆,1-海外 + + :param overseas_type: The overseas_type of this ListWafCustomRuleRequest. + :type overseas_type: int + """ + self._overseas_type = overseas_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListWafCustomRuleRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_custom_rule_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_custom_rule_response.py new file mode 100644 index 0000000000..f598cfce1f --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_custom_rule_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListWafCustomRuleResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'total': 'int', + 'items': 'list[WafCustomRule]' + } + + attribute_map = { + 'total': 'total', + 'items': 'items' + } + + def __init__(self, total=None, items=None): + """ListWafCustomRuleResponse + + The model defined in huaweicloud sdk + + :param total: total + :type total: int + :param items: items + :type items: list[:class:`huaweicloudsdkaad.v2.WafCustomRule`] + """ + + super(ListWafCustomRuleResponse, self).__init__() + + self._total = None + self._items = None + self.discriminator = None + + if total is not None: + self.total = total + if items is not None: + self.items = items + + @property + def total(self): + """Gets the total of this ListWafCustomRuleResponse. + + total + + :return: The total of this ListWafCustomRuleResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListWafCustomRuleResponse. + + total + + :param total: The total of this ListWafCustomRuleResponse. + :type total: int + """ + self._total = total + + @property + def items(self): + """Gets the items of this ListWafCustomRuleResponse. + + items + + :return: The items of this ListWafCustomRuleResponse. + :rtype: list[:class:`huaweicloudsdkaad.v2.WafCustomRule`] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListWafCustomRuleResponse. + + items + + :param items: The items of this ListWafCustomRuleResponse. + :type items: list[:class:`huaweicloudsdkaad.v2.WafCustomRule`] + """ + self._items = items + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListWafCustomRuleResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_geo_ip_rule_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_geo_ip_rule_request.py new file mode 100644 index 0000000000..4fc83b5dfd --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_geo_ip_rule_request.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListWafGeoIpRuleRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'domain_name': 'str', + 'overseas_type': 'int' + } + + attribute_map = { + 'domain_name': 'domain_name', + 'overseas_type': 'overseas_type' + } + + def __init__(self, domain_name=None, overseas_type=None): + """ListWafGeoIpRuleRequest + + The model defined in huaweicloud sdk + + :param domain_name: 域名 + :type domain_name: str + :param overseas_type: 防护区域,0-大陆,1-海外 + :type overseas_type: int + """ + + + + self._domain_name = None + self._overseas_type = None + self.discriminator = None + + self.domain_name = domain_name + self.overseas_type = overseas_type + + @property + def domain_name(self): + """Gets the domain_name of this ListWafGeoIpRuleRequest. + + 域名 + + :return: The domain_name of this ListWafGeoIpRuleRequest. + :rtype: str + """ + return self._domain_name + + @domain_name.setter + def domain_name(self, domain_name): + """Sets the domain_name of this ListWafGeoIpRuleRequest. + + 域名 + + :param domain_name: The domain_name of this ListWafGeoIpRuleRequest. + :type domain_name: str + """ + self._domain_name = domain_name + + @property + def overseas_type(self): + """Gets the overseas_type of this ListWafGeoIpRuleRequest. + + 防护区域,0-大陆,1-海外 + + :return: The overseas_type of this ListWafGeoIpRuleRequest. + :rtype: int + """ + return self._overseas_type + + @overseas_type.setter + def overseas_type(self, overseas_type): + """Sets the overseas_type of this ListWafGeoIpRuleRequest. + + 防护区域,0-大陆,1-海外 + + :param overseas_type: The overseas_type of this ListWafGeoIpRuleRequest. + :type overseas_type: int + """ + self._overseas_type = overseas_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListWafGeoIpRuleRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_geo_ip_rule_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_geo_ip_rule_response.py new file mode 100644 index 0000000000..99fddfee44 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_geo_ip_rule_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListWafGeoIpRuleResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'total': 'int', + 'items': 'list[WafGeoIpRule]' + } + + attribute_map = { + 'total': 'total', + 'items': 'items' + } + + def __init__(self, total=None, items=None): + """ListWafGeoIpRuleResponse + + The model defined in huaweicloud sdk + + :param total: total + :type total: int + :param items: items + :type items: list[:class:`huaweicloudsdkaad.v2.WafGeoIpRule`] + """ + + super(ListWafGeoIpRuleResponse, self).__init__() + + self._total = None + self._items = None + self.discriminator = None + + if total is not None: + self.total = total + if items is not None: + self.items = items + + @property + def total(self): + """Gets the total of this ListWafGeoIpRuleResponse. + + total + + :return: The total of this ListWafGeoIpRuleResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListWafGeoIpRuleResponse. + + total + + :param total: The total of this ListWafGeoIpRuleResponse. + :type total: int + """ + self._total = total + + @property + def items(self): + """Gets the items of this ListWafGeoIpRuleResponse. + + items + + :return: The items of this ListWafGeoIpRuleResponse. + :rtype: list[:class:`huaweicloudsdkaad.v2.WafGeoIpRule`] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListWafGeoIpRuleResponse. + + items + + :param items: The items of this ListWafGeoIpRuleResponse. + :type items: list[:class:`huaweicloudsdkaad.v2.WafGeoIpRule`] + """ + self._items = items + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListWafGeoIpRuleResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_qps_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_qps_request.py new file mode 100644 index 0000000000..9766665ba5 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_qps_request.py @@ -0,0 +1,259 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListWafQpsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'domains': 'str', + 'value_type': 'str', + 'start_time': 'str', + 'end_time': 'str', + 'recent': 'str', + 'overseas_type': 'int' + } + + attribute_map = { + 'domains': 'domains', + 'value_type': 'value_type', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'recent': 'recent', + 'overseas_type': 'overseas_type' + } + + def __init__(self, domains=None, value_type=None, start_time=None, end_time=None, recent=None, overseas_type=None): + """ListWafQpsRequest + + The model defined in huaweicloud sdk + + :param domains: 不传时代表全部域名 + :type domains: str + :param value_type: 用于 QPS、带宽: 平均值 mean、峰值 peak;用于 响应状态码: 源站返回值 source 、高防返回值 proxy + :type value_type: str + :param start_time: 开始时间(毫秒时间戳) + :type start_time: str + :param end_time: 结束时间(毫秒时间戳) + :type end_time: str + :param recent: 枚举值:yesterday,today,3days,1week,1month 与开始结束时间不同时为空 + :type recent: str + :param overseas_type: 实例类型,0-大陆,1-海外 + :type overseas_type: int + """ + + + + self._domains = None + self._value_type = None + self._start_time = None + self._end_time = None + self._recent = None + self._overseas_type = None + self.discriminator = None + + if domains is not None: + self.domains = domains + self.value_type = value_type + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if recent is not None: + self.recent = recent + if overseas_type is not None: + self.overseas_type = overseas_type + + @property + def domains(self): + """Gets the domains of this ListWafQpsRequest. + + 不传时代表全部域名 + + :return: The domains of this ListWafQpsRequest. + :rtype: str + """ + return self._domains + + @domains.setter + def domains(self, domains): + """Sets the domains of this ListWafQpsRequest. + + 不传时代表全部域名 + + :param domains: The domains of this ListWafQpsRequest. + :type domains: str + """ + self._domains = domains + + @property + def value_type(self): + """Gets the value_type of this ListWafQpsRequest. + + 用于 QPS、带宽: 平均值 mean、峰值 peak;用于 响应状态码: 源站返回值 source 、高防返回值 proxy + + :return: The value_type of this ListWafQpsRequest. + :rtype: str + """ + return self._value_type + + @value_type.setter + def value_type(self, value_type): + """Sets the value_type of this ListWafQpsRequest. + + 用于 QPS、带宽: 平均值 mean、峰值 peak;用于 响应状态码: 源站返回值 source 、高防返回值 proxy + + :param value_type: The value_type of this ListWafQpsRequest. + :type value_type: str + """ + self._value_type = value_type + + @property + def start_time(self): + """Gets the start_time of this ListWafQpsRequest. + + 开始时间(毫秒时间戳) + + :return: The start_time of this ListWafQpsRequest. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ListWafQpsRequest. + + 开始时间(毫秒时间戳) + + :param start_time: The start_time of this ListWafQpsRequest. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ListWafQpsRequest. + + 结束时间(毫秒时间戳) + + :return: The end_time of this ListWafQpsRequest. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ListWafQpsRequest. + + 结束时间(毫秒时间戳) + + :param end_time: The end_time of this ListWafQpsRequest. + :type end_time: str + """ + self._end_time = end_time + + @property + def recent(self): + """Gets the recent of this ListWafQpsRequest. + + 枚举值:yesterday,today,3days,1week,1month 与开始结束时间不同时为空 + + :return: The recent of this ListWafQpsRequest. + :rtype: str + """ + return self._recent + + @recent.setter + def recent(self, recent): + """Sets the recent of this ListWafQpsRequest. + + 枚举值:yesterday,today,3days,1week,1month 与开始结束时间不同时为空 + + :param recent: The recent of this ListWafQpsRequest. + :type recent: str + """ + self._recent = recent + + @property + def overseas_type(self): + """Gets the overseas_type of this ListWafQpsRequest. + + 实例类型,0-大陆,1-海外 + + :return: The overseas_type of this ListWafQpsRequest. + :rtype: int + """ + return self._overseas_type + + @overseas_type.setter + def overseas_type(self, overseas_type): + """Sets the overseas_type of this ListWafQpsRequest. + + 实例类型,0-大陆,1-海外 + + :param overseas_type: The overseas_type of this ListWafQpsRequest. + :type overseas_type: int + """ + self._overseas_type = overseas_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListWafQpsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_qps_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_qps_response.py new file mode 100644 index 0000000000..aa9ccfcc93 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_qps_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListWafQpsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'curve': 'list[Point]' + } + + attribute_map = { + 'curve': 'curve' + } + + def __init__(self, curve=None): + """ListWafQpsResponse + + The model defined in huaweicloud sdk + + :param curve: curve + :type curve: list[:class:`huaweicloudsdkaad.v2.Point`] + """ + + super(ListWafQpsResponse, self).__init__() + + self._curve = None + self.discriminator = None + + if curve is not None: + self.curve = curve + + @property + def curve(self): + """Gets the curve of this ListWafQpsResponse. + + curve + + :return: The curve of this ListWafQpsResponse. + :rtype: list[:class:`huaweicloudsdkaad.v2.Point`] + """ + return self._curve + + @curve.setter + def curve(self, curve): + """Sets the curve of this ListWafQpsResponse. + + curve + + :param curve: The curve of this ListWafQpsResponse. + :type curve: list[:class:`huaweicloudsdkaad.v2.Point`] + """ + self._curve = curve + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListWafQpsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_white_ip_rule_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_white_ip_rule_request.py new file mode 100644 index 0000000000..18dce5aef6 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_white_ip_rule_request.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListWafWhiteIpRuleRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'domain_name': 'str', + 'overseas_type': 'int' + } + + attribute_map = { + 'domain_name': 'domain_name', + 'overseas_type': 'overseas_type' + } + + def __init__(self, domain_name=None, overseas_type=None): + """ListWafWhiteIpRuleRequest + + The model defined in huaweicloud sdk + + :param domain_name: 域名 + :type domain_name: str + :param overseas_type: 防护区域,0-大陆,1-海外 + :type overseas_type: int + """ + + + + self._domain_name = None + self._overseas_type = None + self.discriminator = None + + self.domain_name = domain_name + self.overseas_type = overseas_type + + @property + def domain_name(self): + """Gets the domain_name of this ListWafWhiteIpRuleRequest. + + 域名 + + :return: The domain_name of this ListWafWhiteIpRuleRequest. + :rtype: str + """ + return self._domain_name + + @domain_name.setter + def domain_name(self, domain_name): + """Sets the domain_name of this ListWafWhiteIpRuleRequest. + + 域名 + + :param domain_name: The domain_name of this ListWafWhiteIpRuleRequest. + :type domain_name: str + """ + self._domain_name = domain_name + + @property + def overseas_type(self): + """Gets the overseas_type of this ListWafWhiteIpRuleRequest. + + 防护区域,0-大陆,1-海外 + + :return: The overseas_type of this ListWafWhiteIpRuleRequest. + :rtype: int + """ + return self._overseas_type + + @overseas_type.setter + def overseas_type(self, overseas_type): + """Sets the overseas_type of this ListWafWhiteIpRuleRequest. + + 防护区域,0-大陆,1-海外 + + :param overseas_type: The overseas_type of this ListWafWhiteIpRuleRequest. + :type overseas_type: int + """ + self._overseas_type = overseas_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListWafWhiteIpRuleRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_white_ip_rule_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_white_ip_rule_response.py new file mode 100644 index 0000000000..d4f3768020 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_waf_white_ip_rule_response.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListWafWhiteIpRuleResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'total': 'int', + 'black': 'list[BlackWhiteListRule]', + 'white': 'list[BlackWhiteListRule]' + } + + attribute_map = { + 'total': 'total', + 'black': 'black', + 'white': 'white' + } + + def __init__(self, total=None, black=None, white=None): + """ListWafWhiteIpRuleResponse + + The model defined in huaweicloud sdk + + :param total: total + :type total: int + :param black: black + :type black: list[:class:`huaweicloudsdkaad.v2.BlackWhiteListRule`] + :param white: white + :type white: list[:class:`huaweicloudsdkaad.v2.BlackWhiteListRule`] + """ + + super(ListWafWhiteIpRuleResponse, self).__init__() + + self._total = None + self._black = None + self._white = None + self.discriminator = None + + if total is not None: + self.total = total + if black is not None: + self.black = black + if white is not None: + self.white = white + + @property + def total(self): + """Gets the total of this ListWafWhiteIpRuleResponse. + + total + + :return: The total of this ListWafWhiteIpRuleResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListWafWhiteIpRuleResponse. + + total + + :param total: The total of this ListWafWhiteIpRuleResponse. + :type total: int + """ + self._total = total + + @property + def black(self): + """Gets the black of this ListWafWhiteIpRuleResponse. + + black + + :return: The black of this ListWafWhiteIpRuleResponse. + :rtype: list[:class:`huaweicloudsdkaad.v2.BlackWhiteListRule`] + """ + return self._black + + @black.setter + def black(self, black): + """Sets the black of this ListWafWhiteIpRuleResponse. + + black + + :param black: The black of this ListWafWhiteIpRuleResponse. + :type black: list[:class:`huaweicloudsdkaad.v2.BlackWhiteListRule`] + """ + self._black = black + + @property + def white(self): + """Gets the white of this ListWafWhiteIpRuleResponse. + + white + + :return: The white of this ListWafWhiteIpRuleResponse. + :rtype: list[:class:`huaweicloudsdkaad.v2.BlackWhiteListRule`] + """ + return self._white + + @white.setter + def white(self, white): + """Sets the white of this ListWafWhiteIpRuleResponse. + + white + + :param white: The white of this ListWafWhiteIpRuleResponse. + :type white: list[:class:`huaweicloudsdkaad.v2.BlackWhiteListRule`] + """ + self._white = white + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListWafWhiteIpRuleResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_white_black_ip_rule_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_white_black_ip_rule_request.py new file mode 100644 index 0000000000..2e3a50647c --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_white_black_ip_rule_request.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListWhiteBlackIpRuleRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'type': 'str', + 'instance_id': 'str' + } + + attribute_map = { + 'type': 'type', + 'instance_id': 'instance_id' + } + + def __init__(self, type=None, instance_id=None): + """ListWhiteBlackIpRuleRequest + + The model defined in huaweicloud sdk + + :param type: white-白名单,black-黑名单 + :type type: str + :param instance_id: instanceId + :type instance_id: str + """ + + + + self._type = None + self._instance_id = None + self.discriminator = None + + self.type = type + self.instance_id = instance_id + + @property + def type(self): + """Gets the type of this ListWhiteBlackIpRuleRequest. + + white-白名单,black-黑名单 + + :return: The type of this ListWhiteBlackIpRuleRequest. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ListWhiteBlackIpRuleRequest. + + white-白名单,black-黑名单 + + :param type: The type of this ListWhiteBlackIpRuleRequest. + :type type: str + """ + self._type = type + + @property + def instance_id(self): + """Gets the instance_id of this ListWhiteBlackIpRuleRequest. + + instanceId + + :return: The instance_id of this ListWhiteBlackIpRuleRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ListWhiteBlackIpRuleRequest. + + instanceId + + :param instance_id: The instance_id of this ListWhiteBlackIpRuleRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListWhiteBlackIpRuleRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_white_black_ip_rule_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_white_black_ip_rule_response.py new file mode 100644 index 0000000000..f03c948e0e --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/list_white_black_ip_rule_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListWhiteBlackIpRuleResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'total': 'int', + 'ips': 'list[BwListIps]' + } + + attribute_map = { + 'total': 'total', + 'ips': 'ips' + } + + def __init__(self, total=None, ips=None): + """ListWhiteBlackIpRuleResponse + + The model defined in huaweicloud sdk + + :param total: total + :type total: int + :param ips: 名单列表 + :type ips: list[:class:`huaweicloudsdkaad.v2.BwListIps`] + """ + + super(ListWhiteBlackIpRuleResponse, self).__init__() + + self._total = None + self._ips = None + self.discriminator = None + + if total is not None: + self.total = total + if ips is not None: + self.ips = ips + + @property + def total(self): + """Gets the total of this ListWhiteBlackIpRuleResponse. + + total + + :return: The total of this ListWhiteBlackIpRuleResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListWhiteBlackIpRuleResponse. + + total + + :param total: The total of this ListWhiteBlackIpRuleResponse. + :type total: int + """ + self._total = total + + @property + def ips(self): + """Gets the ips of this ListWhiteBlackIpRuleResponse. + + 名单列表 + + :return: The ips of this ListWhiteBlackIpRuleResponse. + :rtype: list[:class:`huaweicloudsdkaad.v2.BwListIps`] + """ + return self._ips + + @ips.setter + def ips(self, ips): + """Sets the ips of this ListWhiteBlackIpRuleResponse. + + 名单列表 + + :param ips: The ips of this ListWhiteBlackIpRuleResponse. + :type ips: list[:class:`huaweicloudsdkaad.v2.BwListIps`] + """ + self._ips = ips + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListWhiteBlackIpRuleResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/page_resp_info.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/page_resp_info.py new file mode 100644 index 0000000000..809d4a7f44 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/page_resp_info.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PageRespInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'content_type': 'str', + 'content': 'str' + } + + attribute_map = { + 'content_type': 'content_type', + 'content': 'content' + } + + def __init__(self, content_type=None, content=None): + """PageRespInfo + + The model defined in huaweicloud sdk + + :param content_type: 页面类型 + :type content_type: str + :param content: 页面内容 + :type content: str + """ + + + + self._content_type = None + self._content = None + self.discriminator = None + + if content_type is not None: + self.content_type = content_type + if content is not None: + self.content = content + + @property + def content_type(self): + """Gets the content_type of this PageRespInfo. + + 页面类型 + + :return: The content_type of this PageRespInfo. + :rtype: str + """ + return self._content_type + + @content_type.setter + def content_type(self, content_type): + """Sets the content_type of this PageRespInfo. + + 页面类型 + + :param content_type: The content_type of this PageRespInfo. + :type content_type: str + """ + self._content_type = content_type + + @property + def content(self): + """Gets the content of this PageRespInfo. + + 页面内容 + + :return: The content of this PageRespInfo. + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this PageRespInfo. + + 页面内容 + + :param content: The content of this PageRespInfo. + :type content: str + """ + self._content = content + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PageRespInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/point.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/point.py new file mode 100644 index 0000000000..d286e98c5a --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/point.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Point: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'time': 'int', + 'total': 'int', + 'attack': 'int', + 'basic': 'int', + 'cc': 'int', + 'custom_custom': 'int' + } + + attribute_map = { + 'time': 'time', + 'total': 'total', + 'attack': 'attack', + 'basic': 'basic', + 'cc': 'cc', + 'custom_custom': 'custom_custom' + } + + def __init__(self, time=None, total=None, attack=None, basic=None, cc=None, custom_custom=None): + """Point + + The model defined in huaweicloud sdk + + :param time: 时间戳 + :type time: int + :param total: 请求总量 + :type total: int + :param attack: 攻击总量 + :type attack: int + :param basic: web基础防护 + :type basic: int + :param cc: 频率控制 + :type cc: int + :param custom_custom: 精准防护 + :type custom_custom: int + """ + + + + self._time = None + self._total = None + self._attack = None + self._basic = None + self._cc = None + self._custom_custom = None + self.discriminator = None + + if time is not None: + self.time = time + if total is not None: + self.total = total + if attack is not None: + self.attack = attack + if basic is not None: + self.basic = basic + if cc is not None: + self.cc = cc + if custom_custom is not None: + self.custom_custom = custom_custom + + @property + def time(self): + """Gets the time of this Point. + + 时间戳 + + :return: The time of this Point. + :rtype: int + """ + return self._time + + @time.setter + def time(self, time): + """Sets the time of this Point. + + 时间戳 + + :param time: The time of this Point. + :type time: int + """ + self._time = time + + @property + def total(self): + """Gets the total of this Point. + + 请求总量 + + :return: The total of this Point. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this Point. + + 请求总量 + + :param total: The total of this Point. + :type total: int + """ + self._total = total + + @property + def attack(self): + """Gets the attack of this Point. + + 攻击总量 + + :return: The attack of this Point. + :rtype: int + """ + return self._attack + + @attack.setter + def attack(self, attack): + """Sets the attack of this Point. + + 攻击总量 + + :param attack: The attack of this Point. + :type attack: int + """ + self._attack = attack + + @property + def basic(self): + """Gets the basic of this Point. + + web基础防护 + + :return: The basic of this Point. + :rtype: int + """ + return self._basic + + @basic.setter + def basic(self, basic): + """Sets the basic of this Point. + + web基础防护 + + :param basic: The basic of this Point. + :type basic: int + """ + self._basic = basic + + @property + def cc(self): + """Gets the cc of this Point. + + 频率控制 + + :return: The cc of this Point. + :rtype: int + """ + return self._cc + + @cc.setter + def cc(self, cc): + """Sets the cc of this Point. + + 频率控制 + + :param cc: The cc of this Point. + :type cc: int + """ + self._cc = cc + + @property + def custom_custom(self): + """Gets the custom_custom of this Point. + + 精准防护 + + :return: The custom_custom of this Point. + :rtype: int + """ + return self._custom_custom + + @custom_custom.setter + def custom_custom(self, custom_custom): + """Sets the custom_custom of this Point. + + 精准防护 + + :param custom_custom: The custom_custom of this Point. + :type custom_custom: int + """ + self._custom_custom = custom_custom + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Point): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/show_domain_certificate_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/show_domain_certificate_request.py new file mode 100644 index 0000000000..1d0eb9874a --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/show_domain_certificate_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowDomainCertificateRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'domain_id': 'str' + } + + attribute_map = { + 'domain_id': 'domain_id' + } + + def __init__(self, domain_id=None): + """ShowDomainCertificateRequest + + The model defined in huaweicloud sdk + + :param domain_id: 域名id + :type domain_id: str + """ + + + + self._domain_id = None + self.discriminator = None + + self.domain_id = domain_id + + @property + def domain_id(self): + """Gets the domain_id of this ShowDomainCertificateRequest. + + 域名id + + :return: The domain_id of this ShowDomainCertificateRequest. + :rtype: str + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this ShowDomainCertificateRequest. + + 域名id + + :param domain_id: The domain_id of this ShowDomainCertificateRequest. + :type domain_id: str + """ + self._domain_id = domain_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowDomainCertificateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/show_domain_certificate_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/show_domain_certificate_response.py new file mode 100644 index 0000000000..f22186ecb8 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/show_domain_certificate_response.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowDomainCertificateResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'domain_id': 'str', + 'domain_name': 'str', + 'cert_info': 'CertInfo' + } + + attribute_map = { + 'domain_id': 'domain_id', + 'domain_name': 'domain_name', + 'cert_info': 'cert_info' + } + + def __init__(self, domain_id=None, domain_name=None, cert_info=None): + """ShowDomainCertificateResponse + + The model defined in huaweicloud sdk + + :param domain_id: 域名id + :type domain_id: str + :param domain_name: 域名 + :type domain_name: str + :param cert_info: + :type cert_info: :class:`huaweicloudsdkaad.v2.CertInfo` + """ + + super(ShowDomainCertificateResponse, self).__init__() + + self._domain_id = None + self._domain_name = None + self._cert_info = None + self.discriminator = None + + if domain_id is not None: + self.domain_id = domain_id + if domain_name is not None: + self.domain_name = domain_name + if cert_info is not None: + self.cert_info = cert_info + + @property + def domain_id(self): + """Gets the domain_id of this ShowDomainCertificateResponse. + + 域名id + + :return: The domain_id of this ShowDomainCertificateResponse. + :rtype: str + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this ShowDomainCertificateResponse. + + 域名id + + :param domain_id: The domain_id of this ShowDomainCertificateResponse. + :type domain_id: str + """ + self._domain_id = domain_id + + @property + def domain_name(self): + """Gets the domain_name of this ShowDomainCertificateResponse. + + 域名 + + :return: The domain_name of this ShowDomainCertificateResponse. + :rtype: str + """ + return self._domain_name + + @domain_name.setter + def domain_name(self, domain_name): + """Sets the domain_name of this ShowDomainCertificateResponse. + + 域名 + + :param domain_name: The domain_name of this ShowDomainCertificateResponse. + :type domain_name: str + """ + self._domain_name = domain_name + + @property + def cert_info(self): + """Gets the cert_info of this ShowDomainCertificateResponse. + + :return: The cert_info of this ShowDomainCertificateResponse. + :rtype: :class:`huaweicloudsdkaad.v2.CertInfo` + """ + return self._cert_info + + @cert_info.setter + def cert_info(self, cert_info): + """Sets the cert_info of this ShowDomainCertificateResponse. + + :param cert_info: The cert_info of this ShowDomainCertificateResponse. + :type cert_info: :class:`huaweicloudsdkaad.v2.CertInfo` + """ + self._cert_info = cert_info + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowDomainCertificateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/show_flow_block_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/show_flow_block_request.py new file mode 100644 index 0000000000..978608d9b0 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/show_flow_block_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowFlowBlockRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str' + } + + attribute_map = { + 'instance_id': 'instance_id' + } + + def __init__(self, instance_id=None): + """ShowFlowBlockRequest + + The model defined in huaweicloud sdk + + :param instance_id: instanceId + :type instance_id: str + """ + + + + self._instance_id = None + self.discriminator = None + + self.instance_id = instance_id + + @property + def instance_id(self): + """Gets the instance_id of this ShowFlowBlockRequest. + + instanceId + + :return: The instance_id of this ShowFlowBlockRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowFlowBlockRequest. + + instanceId + + :param instance_id: The instance_id of this ShowFlowBlockRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowFlowBlockRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/show_flow_block_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/show_flow_block_response.py new file mode 100644 index 0000000000..479f4f7b3a --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/show_flow_block_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowFlowBlockResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'total': 'int', + 'ips': 'list[Ips]' + } + + attribute_map = { + 'total': 'total', + 'ips': 'ips' + } + + def __init__(self, total=None, ips=None): + """ShowFlowBlockResponse + + The model defined in huaweicloud sdk + + :param total: total + :type total: int + :param ips: ips + :type ips: list[:class:`huaweicloudsdkaad.v2.Ips`] + """ + + super(ShowFlowBlockResponse, self).__init__() + + self._total = None + self._ips = None + self.discriminator = None + + if total is not None: + self.total = total + if ips is not None: + self.ips = ips + + @property + def total(self): + """Gets the total of this ShowFlowBlockResponse. + + total + + :return: The total of this ShowFlowBlockResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ShowFlowBlockResponse. + + total + + :param total: The total of this ShowFlowBlockResponse. + :type total: int + """ + self._total = total + + @property + def ips(self): + """Gets the ips of this ShowFlowBlockResponse. + + ips + + :return: The ips of this ShowFlowBlockResponse. + :rtype: list[:class:`huaweicloudsdkaad.v2.Ips`] + """ + return self._ips + + @ips.setter + def ips(self, ips): + """Sets the ips of this ShowFlowBlockResponse. + + ips + + :param ips: The ips of this ShowFlowBlockResponse. + :type ips: list[:class:`huaweicloudsdkaad.v2.Ips`] + """ + self._ips = ips + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowFlowBlockResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/show_waf_policy_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/show_waf_policy_request.py new file mode 100644 index 0000000000..f64b0524ec --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/show_waf_policy_request.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowWafPolicyRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'domain_name': 'str', + 'overseas_type': 'int' + } + + attribute_map = { + 'domain_name': 'domain_name', + 'overseas_type': 'overseas_type' + } + + def __init__(self, domain_name=None, overseas_type=None): + """ShowWafPolicyRequest + + The model defined in huaweicloud sdk + + :param domain_name: 域名 + :type domain_name: str + :param overseas_type: 防护区域,0-大陆,1-海外 + :type overseas_type: int + """ + + + + self._domain_name = None + self._overseas_type = None + self.discriminator = None + + self.domain_name = domain_name + self.overseas_type = overseas_type + + @property + def domain_name(self): + """Gets the domain_name of this ShowWafPolicyRequest. + + 域名 + + :return: The domain_name of this ShowWafPolicyRequest. + :rtype: str + """ + return self._domain_name + + @domain_name.setter + def domain_name(self, domain_name): + """Sets the domain_name of this ShowWafPolicyRequest. + + 域名 + + :param domain_name: The domain_name of this ShowWafPolicyRequest. + :type domain_name: str + """ + self._domain_name = domain_name + + @property + def overseas_type(self): + """Gets the overseas_type of this ShowWafPolicyRequest. + + 防护区域,0-大陆,1-海外 + + :return: The overseas_type of this ShowWafPolicyRequest. + :rtype: int + """ + return self._overseas_type + + @overseas_type.setter + def overseas_type(self, overseas_type): + """Sets the overseas_type of this ShowWafPolicyRequest. + + 防护区域,0-大陆,1-海外 + + :param overseas_type: The overseas_type of this ShowWafPolicyRequest. + :type overseas_type: int + """ + self._overseas_type = overseas_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowWafPolicyRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/show_waf_policy_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/show_waf_policy_response.py new file mode 100644 index 0000000000..52f31d9675 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/show_waf_policy_response.py @@ -0,0 +1,228 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowWafPolicyResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'domain_name': 'str', + 'overseas_type': 'int', + 'options': 'WafPolicyOptions', + 'level': 'int', + 'mode': 'int' + } + + attribute_map = { + 'domain_name': 'domain_name', + 'overseas_type': 'overseas_type', + 'options': 'options', + 'level': 'level', + 'mode': 'mode' + } + + def __init__(self, domain_name=None, overseas_type=None, options=None, level=None, mode=None): + """ShowWafPolicyResponse + + The model defined in huaweicloud sdk + + :param domain_name: 域名(包含端口) + :type domain_name: str + :param overseas_type: 0-中国大陆,1-中国大陆外 + :type overseas_type: int + :param options: + :type options: :class:`huaweicloudsdkaad.v2.WafPolicyOptions` + :param level: 智能CC防护等级:[0-宽松,1- 正常, 2- 严格] + :type level: int + :param mode: 智能CC模式:0-预警,1-防护 + :type mode: int + """ + + super(ShowWafPolicyResponse, self).__init__() + + self._domain_name = None + self._overseas_type = None + self._options = None + self._level = None + self._mode = None + self.discriminator = None + + if domain_name is not None: + self.domain_name = domain_name + if overseas_type is not None: + self.overseas_type = overseas_type + if options is not None: + self.options = options + if level is not None: + self.level = level + if mode is not None: + self.mode = mode + + @property + def domain_name(self): + """Gets the domain_name of this ShowWafPolicyResponse. + + 域名(包含端口) + + :return: The domain_name of this ShowWafPolicyResponse. + :rtype: str + """ + return self._domain_name + + @domain_name.setter + def domain_name(self, domain_name): + """Sets the domain_name of this ShowWafPolicyResponse. + + 域名(包含端口) + + :param domain_name: The domain_name of this ShowWafPolicyResponse. + :type domain_name: str + """ + self._domain_name = domain_name + + @property + def overseas_type(self): + """Gets the overseas_type of this ShowWafPolicyResponse. + + 0-中国大陆,1-中国大陆外 + + :return: The overseas_type of this ShowWafPolicyResponse. + :rtype: int + """ + return self._overseas_type + + @overseas_type.setter + def overseas_type(self, overseas_type): + """Sets the overseas_type of this ShowWafPolicyResponse. + + 0-中国大陆,1-中国大陆外 + + :param overseas_type: The overseas_type of this ShowWafPolicyResponse. + :type overseas_type: int + """ + self._overseas_type = overseas_type + + @property + def options(self): + """Gets the options of this ShowWafPolicyResponse. + + :return: The options of this ShowWafPolicyResponse. + :rtype: :class:`huaweicloudsdkaad.v2.WafPolicyOptions` + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ShowWafPolicyResponse. + + :param options: The options of this ShowWafPolicyResponse. + :type options: :class:`huaweicloudsdkaad.v2.WafPolicyOptions` + """ + self._options = options + + @property + def level(self): + """Gets the level of this ShowWafPolicyResponse. + + 智能CC防护等级:[0-宽松,1- 正常, 2- 严格] + + :return: The level of this ShowWafPolicyResponse. + :rtype: int + """ + return self._level + + @level.setter + def level(self, level): + """Sets the level of this ShowWafPolicyResponse. + + 智能CC防护等级:[0-宽松,1- 正常, 2- 严格] + + :param level: The level of this ShowWafPolicyResponse. + :type level: int + """ + self._level = level + + @property + def mode(self): + """Gets the mode of this ShowWafPolicyResponse. + + 智能CC模式:0-预警,1-防护 + + :return: The mode of this ShowWafPolicyResponse. + :rtype: int + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this ShowWafPolicyResponse. + + 智能CC模式:0-预警,1-防护 + + :param mode: The mode of this ShowWafPolicyResponse. + :type mode: int + """ + self._mode = mode + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowWafPolicyResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/show_waf_qps_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/show_waf_qps_request.py new file mode 100644 index 0000000000..6346838915 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/show_waf_qps_request.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowWafQpsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'recent': 'str', + 'domains': 'str', + 'start_time': 'str', + 'end_time': 'str', + 'overseas_type': 'int' + } + + attribute_map = { + 'recent': 'recent', + 'domains': 'domains', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'overseas_type': 'overseas_type' + } + + def __init__(self, recent=None, domains=None, start_time=None, end_time=None, overseas_type=None): + """ShowWafQpsRequest + + The model defined in huaweicloud sdk + + :param recent: 枚举值:yesterday,today,3days,1week,1month 与开始结束时间不同时为空 + :type recent: str + :param domains: 查询域名 + :type domains: str + :param start_time: 开始时间(毫秒时间戳) + :type start_time: str + :param end_time: 结束时间(毫秒时间戳) + :type end_time: str + :param overseas_type: 防护区域,0-大陆,1-海外 + :type overseas_type: int + """ + + + + self._recent = None + self._domains = None + self._start_time = None + self._end_time = None + self._overseas_type = None + self.discriminator = None + + if recent is not None: + self.recent = recent + if domains is not None: + self.domains = domains + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if overseas_type is not None: + self.overseas_type = overseas_type + + @property + def recent(self): + """Gets the recent of this ShowWafQpsRequest. + + 枚举值:yesterday,today,3days,1week,1month 与开始结束时间不同时为空 + + :return: The recent of this ShowWafQpsRequest. + :rtype: str + """ + return self._recent + + @recent.setter + def recent(self, recent): + """Sets the recent of this ShowWafQpsRequest. + + 枚举值:yesterday,today,3days,1week,1month 与开始结束时间不同时为空 + + :param recent: The recent of this ShowWafQpsRequest. + :type recent: str + """ + self._recent = recent + + @property + def domains(self): + """Gets the domains of this ShowWafQpsRequest. + + 查询域名 + + :return: The domains of this ShowWafQpsRequest. + :rtype: str + """ + return self._domains + + @domains.setter + def domains(self, domains): + """Sets the domains of this ShowWafQpsRequest. + + 查询域名 + + :param domains: The domains of this ShowWafQpsRequest. + :type domains: str + """ + self._domains = domains + + @property + def start_time(self): + """Gets the start_time of this ShowWafQpsRequest. + + 开始时间(毫秒时间戳) + + :return: The start_time of this ShowWafQpsRequest. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ShowWafQpsRequest. + + 开始时间(毫秒时间戳) + + :param start_time: The start_time of this ShowWafQpsRequest. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ShowWafQpsRequest. + + 结束时间(毫秒时间戳) + + :return: The end_time of this ShowWafQpsRequest. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ShowWafQpsRequest. + + 结束时间(毫秒时间戳) + + :param end_time: The end_time of this ShowWafQpsRequest. + :type end_time: str + """ + self._end_time = end_time + + @property + def overseas_type(self): + """Gets the overseas_type of this ShowWafQpsRequest. + + 防护区域,0-大陆,1-海外 + + :return: The overseas_type of this ShowWafQpsRequest. + :rtype: int + """ + return self._overseas_type + + @overseas_type.setter + def overseas_type(self, overseas_type): + """Sets the overseas_type of this ShowWafQpsRequest. + + 防护区域,0-大陆,1-海外 + + :param overseas_type: The overseas_type of this ShowWafQpsRequest. + :type overseas_type: int + """ + self._overseas_type = overseas_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowWafQpsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/show_waf_qps_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/show_waf_qps_response.py new file mode 100644 index 0000000000..95ae131677 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/show_waf_qps_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowWafQpsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'qps': 'int' + } + + attribute_map = { + 'qps': 'qps' + } + + def __init__(self, qps=None): + """ShowWafQpsResponse + + The model defined in huaweicloud sdk + + :param qps: qps + :type qps: int + """ + + super(ShowWafQpsResponse, self).__init__() + + self._qps = None + self.discriminator = None + + if qps is not None: + self.qps = qps + + @property + def qps(self): + """Gets the qps of this ShowWafQpsResponse. + + qps + + :return: The qps of this ShowWafQpsResponse. + :rtype: int + """ + return self._qps + + @qps.setter + def qps(self, qps): + """Sets the qps of this ShowWafQpsResponse. + + qps + + :param qps: The qps of this ShowWafQpsResponse. + :type qps: int + """ + self._qps = qps + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowWafQpsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/tag_condition.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/tag_condition.py new file mode 100644 index 0000000000..08584c191c --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/tag_condition.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TagCondition: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'category': 'str', + 'contents': 'list[str]' + } + + attribute_map = { + 'category': 'category', + 'contents': 'contents' + } + + def __init__(self, category=None, contents=None): + """TagCondition + + The model defined in huaweicloud sdk + + :param category: 防护动作 + :type category: str + :param contents: 字段内容 + :type contents: list[str] + """ + + + + self._category = None + self._contents = None + self.discriminator = None + + if category is not None: + self.category = category + if contents is not None: + self.contents = contents + + @property + def category(self): + """Gets the category of this TagCondition. + + 防护动作 + + :return: The category of this TagCondition. + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this TagCondition. + + 防护动作 + + :param category: The category of this TagCondition. + :type category: str + """ + self._category = category + + @property + def contents(self): + """Gets the contents of this TagCondition. + + 字段内容 + + :return: The contents of this TagCondition. + :rtype: list[str] + """ + return self._contents + + @contents.setter + def contents(self, contents): + """Sets the contents of this TagCondition. + + 字段内容 + + :param contents: The contents of this TagCondition. + :type contents: list[str] + """ + self._contents = contents + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TagCondition): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/upgrade_instance_data.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/upgrade_instance_data.py new file mode 100644 index 0000000000..ad63d32a42 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/upgrade_instance_data.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpgradeInstanceData: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'basic_bandwidth': 'str', + 'elastic_bandwidth': 'str', + 'service_bandwidth': 'int', + 'port_num': 'int', + 'bind_domain_num': 'int' + } + + attribute_map = { + 'basic_bandwidth': 'basic_bandwidth', + 'elastic_bandwidth': 'elastic_bandwidth', + 'service_bandwidth': 'service_bandwidth', + 'port_num': 'port_num', + 'bind_domain_num': 'bind_domain_num' + } + + def __init__(self, basic_bandwidth=None, elastic_bandwidth=None, service_bandwidth=None, port_num=None, bind_domain_num=None): + """UpgradeInstanceData + + The model defined in huaweicloud sdk + + :param basic_bandwidth: 保底带宽(G) + :type basic_bandwidth: str + :param elastic_bandwidth: 弹性带宽(G) + :type elastic_bandwidth: str + :param service_bandwidth: 业务带宽 + :type service_bandwidth: int + :param port_num: 端口数 + :type port_num: int + :param bind_domain_num: 域名数 + :type bind_domain_num: int + """ + + + + self._basic_bandwidth = None + self._elastic_bandwidth = None + self._service_bandwidth = None + self._port_num = None + self._bind_domain_num = None + self.discriminator = None + + if basic_bandwidth is not None: + self.basic_bandwidth = basic_bandwidth + if elastic_bandwidth is not None: + self.elastic_bandwidth = elastic_bandwidth + if service_bandwidth is not None: + self.service_bandwidth = service_bandwidth + if port_num is not None: + self.port_num = port_num + if bind_domain_num is not None: + self.bind_domain_num = bind_domain_num + + @property + def basic_bandwidth(self): + """Gets the basic_bandwidth of this UpgradeInstanceData. + + 保底带宽(G) + + :return: The basic_bandwidth of this UpgradeInstanceData. + :rtype: str + """ + return self._basic_bandwidth + + @basic_bandwidth.setter + def basic_bandwidth(self, basic_bandwidth): + """Sets the basic_bandwidth of this UpgradeInstanceData. + + 保底带宽(G) + + :param basic_bandwidth: The basic_bandwidth of this UpgradeInstanceData. + :type basic_bandwidth: str + """ + self._basic_bandwidth = basic_bandwidth + + @property + def elastic_bandwidth(self): + """Gets the elastic_bandwidth of this UpgradeInstanceData. + + 弹性带宽(G) + + :return: The elastic_bandwidth of this UpgradeInstanceData. + :rtype: str + """ + return self._elastic_bandwidth + + @elastic_bandwidth.setter + def elastic_bandwidth(self, elastic_bandwidth): + """Sets the elastic_bandwidth of this UpgradeInstanceData. + + 弹性带宽(G) + + :param elastic_bandwidth: The elastic_bandwidth of this UpgradeInstanceData. + :type elastic_bandwidth: str + """ + self._elastic_bandwidth = elastic_bandwidth + + @property + def service_bandwidth(self): + """Gets the service_bandwidth of this UpgradeInstanceData. + + 业务带宽 + + :return: The service_bandwidth of this UpgradeInstanceData. + :rtype: int + """ + return self._service_bandwidth + + @service_bandwidth.setter + def service_bandwidth(self, service_bandwidth): + """Sets the service_bandwidth of this UpgradeInstanceData. + + 业务带宽 + + :param service_bandwidth: The service_bandwidth of this UpgradeInstanceData. + :type service_bandwidth: int + """ + self._service_bandwidth = service_bandwidth + + @property + def port_num(self): + """Gets the port_num of this UpgradeInstanceData. + + 端口数 + + :return: The port_num of this UpgradeInstanceData. + :rtype: int + """ + return self._port_num + + @port_num.setter + def port_num(self, port_num): + """Sets the port_num of this UpgradeInstanceData. + + 端口数 + + :param port_num: The port_num of this UpgradeInstanceData. + :type port_num: int + """ + self._port_num = port_num + + @property + def bind_domain_num(self): + """Gets the bind_domain_num of this UpgradeInstanceData. + + 域名数 + + :return: The bind_domain_num of this UpgradeInstanceData. + :rtype: int + """ + return self._bind_domain_num + + @bind_domain_num.setter + def bind_domain_num(self, bind_domain_num): + """Sets the bind_domain_num of this UpgradeInstanceData. + + 域名数 + + :param bind_domain_num: The bind_domain_num of this UpgradeInstanceData. + :type bind_domain_num: int + """ + self._bind_domain_num = bind_domain_num + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpgradeInstanceData): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/upgrade_instance_spec_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/upgrade_instance_spec_request.py new file mode 100644 index 0000000000..1d3a79af70 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/upgrade_instance_spec_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpgradeInstanceSpecRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'UpgradeInstanceSpecV2RequestBody' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """UpgradeInstanceSpecRequest + + The model defined in huaweicloud sdk + + :param body: Body of the UpgradeInstanceSpecRequest + :type body: :class:`huaweicloudsdkaad.v2.UpgradeInstanceSpecV2RequestBody` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this UpgradeInstanceSpecRequest. + + :return: The body of this UpgradeInstanceSpecRequest. + :rtype: :class:`huaweicloudsdkaad.v2.UpgradeInstanceSpecV2RequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpgradeInstanceSpecRequest. + + :param body: The body of this UpgradeInstanceSpecRequest. + :type body: :class:`huaweicloudsdkaad.v2.UpgradeInstanceSpecV2RequestBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpgradeInstanceSpecRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/upgrade_instance_spec_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/upgrade_instance_spec_response.py new file mode 100644 index 0000000000..ab52a82d6f --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/upgrade_instance_spec_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpgradeInstanceSpecResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'order_id': 'str' + } + + attribute_map = { + 'order_id': 'order_id' + } + + def __init__(self, order_id=None): + """UpgradeInstanceSpecResponse + + The model defined in huaweicloud sdk + + :param order_id: 订单id + :type order_id: str + """ + + super(UpgradeInstanceSpecResponse, self).__init__() + + self._order_id = None + self.discriminator = None + + if order_id is not None: + self.order_id = order_id + + @property + def order_id(self): + """Gets the order_id of this UpgradeInstanceSpecResponse. + + 订单id + + :return: The order_id of this UpgradeInstanceSpecResponse. + :rtype: str + """ + return self._order_id + + @order_id.setter + def order_id(self, order_id): + """Sets the order_id of this UpgradeInstanceSpecResponse. + + 订单id + + :param order_id: The order_id of this UpgradeInstanceSpecResponse. + :type order_id: str + """ + self._order_id = order_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpgradeInstanceSpecResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/upgrade_instance_spec_v2_request_body.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/upgrade_instance_spec_v2_request_body.py new file mode 100644 index 0000000000..b624cb1080 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/upgrade_instance_spec_v2_request_body.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpgradeInstanceSpecV2RequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'upgrade_data': 'UpgradeInstanceData' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'upgrade_data': 'upgrade_data' + } + + def __init__(self, instance_id=None, upgrade_data=None): + """UpgradeInstanceSpecV2RequestBody + + The model defined in huaweicloud sdk + + :param instance_id: 实例id + :type instance_id: str + :param upgrade_data: + :type upgrade_data: :class:`huaweicloudsdkaad.v2.UpgradeInstanceData` + """ + + + + self._instance_id = None + self._upgrade_data = None + self.discriminator = None + + self.instance_id = instance_id + self.upgrade_data = upgrade_data + + @property + def instance_id(self): + """Gets the instance_id of this UpgradeInstanceSpecV2RequestBody. + + 实例id + + :return: The instance_id of this UpgradeInstanceSpecV2RequestBody. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UpgradeInstanceSpecV2RequestBody. + + 实例id + + :param instance_id: The instance_id of this UpgradeInstanceSpecV2RequestBody. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def upgrade_data(self): + """Gets the upgrade_data of this UpgradeInstanceSpecV2RequestBody. + + :return: The upgrade_data of this UpgradeInstanceSpecV2RequestBody. + :rtype: :class:`huaweicloudsdkaad.v2.UpgradeInstanceData` + """ + return self._upgrade_data + + @upgrade_data.setter + def upgrade_data(self, upgrade_data): + """Sets the upgrade_data of this UpgradeInstanceSpecV2RequestBody. + + :param upgrade_data: The upgrade_data of this UpgradeInstanceSpecV2RequestBody. + :type upgrade_data: :class:`huaweicloudsdkaad.v2.UpgradeInstanceData` + """ + self._upgrade_data = upgrade_data + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpgradeInstanceSpecV2RequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/waf_custom_condition.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/waf_custom_condition.py new file mode 100644 index 0000000000..2cb10804b4 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/waf_custom_condition.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class WafCustomCondition: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'category': 'str', + 'index': 'str', + 'logic_operation': 'str', + 'contents': 'list[str]' + } + + attribute_map = { + 'category': 'category', + 'index': 'index', + 'logic_operation': 'logic_operation', + 'contents': 'contents' + } + + def __init__(self, category=None, index=None, logic_operation=None, contents=None): + """WafCustomCondition + + The model defined in huaweicloud sdk + + :param category: 字段类型 枚举值: url:路径 ip:IPv4 user-agent: User Agent method: Method referer: Referer params:Params cookie:Cookie header:Header request_line: Request Line request: Request + :type category: str + :param index: 子字段 - 当字段类型为url,user-agent、refer、request_line、method、request时,不需要传index参数 - 当字段类型为ip或ipv6时,index必填且必须为以下值: client-ip:客户端IP x-forwarded-for:X-Forwarded-For TCP连接IP: $remote_addr - 当字段类型(category)选择“params”、“cookie”、“header”时,请根据实际需求配置子字段且该参数必填。 - 当匹配逻辑为num_greater、num_less、num_equal、num_not_equal时,子字段必须为空 - 当子字段不为空时,最大长度不超过2048 + :type index: str + :param logic_operation: 条件列表匹配逻辑。 如果字段类型category是url、user-agent或者referer, 匹配逻辑可以为:contain、 not_contain、 equal、 not_equal、 prefix、 not_prefix、 suffix、 not_suffix、 len_greater、 len_less、len_equal或者len_not_equal 如果字段类型category是ip、ipv6或method,匹配逻辑可以为: equal、not_equal 如果字段类型category是request_line或者request, 匹配逻辑可以为: len_greater、len_less、len_equal或者len_not_equal 如果字段类型category是params、cookie或者header, 匹配逻辑可以为:contain、 not_contain、 equal、 not_equal、 prefix、 not_prefix、 suffix、 not_suffix、 len_greater、 len_less、len_equal、len_not_equal、num_greater、num_less、num_equal、num_not_equal、exist或者not_exist + :type logic_operation: str + :param contents: 条件列表逻辑匹配内容。 - 当匹配逻辑为exist或not_exist时,contents必须为空,其他情况下contents必填且长度不超过2048 - 当匹配逻辑包含\"len\"时,contents必须为0~65535的整数;当匹配逻辑包含\"num\"时,contents必须为0~512的整数 - 当category为method时, contents必须是1-64位大写字母 + :type contents: list[str] + """ + + + + self._category = None + self._index = None + self._logic_operation = None + self._contents = None + self.discriminator = None + + self.category = category + if index is not None: + self.index = index + self.logic_operation = logic_operation + self.contents = contents + + @property + def category(self): + """Gets the category of this WafCustomCondition. + + 字段类型 枚举值: url:路径 ip:IPv4 user-agent: User Agent method: Method referer: Referer params:Params cookie:Cookie header:Header request_line: Request Line request: Request + + :return: The category of this WafCustomCondition. + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this WafCustomCondition. + + 字段类型 枚举值: url:路径 ip:IPv4 user-agent: User Agent method: Method referer: Referer params:Params cookie:Cookie header:Header request_line: Request Line request: Request + + :param category: The category of this WafCustomCondition. + :type category: str + """ + self._category = category + + @property + def index(self): + """Gets the index of this WafCustomCondition. + + 子字段 - 当字段类型为url,user-agent、refer、request_line、method、request时,不需要传index参数 - 当字段类型为ip或ipv6时,index必填且必须为以下值: client-ip:客户端IP x-forwarded-for:X-Forwarded-For TCP连接IP: $remote_addr - 当字段类型(category)选择“params”、“cookie”、“header”时,请根据实际需求配置子字段且该参数必填。 - 当匹配逻辑为num_greater、num_less、num_equal、num_not_equal时,子字段必须为空 - 当子字段不为空时,最大长度不超过2048 + + :return: The index of this WafCustomCondition. + :rtype: str + """ + return self._index + + @index.setter + def index(self, index): + """Sets the index of this WafCustomCondition. + + 子字段 - 当字段类型为url,user-agent、refer、request_line、method、request时,不需要传index参数 - 当字段类型为ip或ipv6时,index必填且必须为以下值: client-ip:客户端IP x-forwarded-for:X-Forwarded-For TCP连接IP: $remote_addr - 当字段类型(category)选择“params”、“cookie”、“header”时,请根据实际需求配置子字段且该参数必填。 - 当匹配逻辑为num_greater、num_less、num_equal、num_not_equal时,子字段必须为空 - 当子字段不为空时,最大长度不超过2048 + + :param index: The index of this WafCustomCondition. + :type index: str + """ + self._index = index + + @property + def logic_operation(self): + """Gets the logic_operation of this WafCustomCondition. + + 条件列表匹配逻辑。 如果字段类型category是url、user-agent或者referer, 匹配逻辑可以为:contain、 not_contain、 equal、 not_equal、 prefix、 not_prefix、 suffix、 not_suffix、 len_greater、 len_less、len_equal或者len_not_equal 如果字段类型category是ip、ipv6或method,匹配逻辑可以为: equal、not_equal 如果字段类型category是request_line或者request, 匹配逻辑可以为: len_greater、len_less、len_equal或者len_not_equal 如果字段类型category是params、cookie或者header, 匹配逻辑可以为:contain、 not_contain、 equal、 not_equal、 prefix、 not_prefix、 suffix、 not_suffix、 len_greater、 len_less、len_equal、len_not_equal、num_greater、num_less、num_equal、num_not_equal、exist或者not_exist + + :return: The logic_operation of this WafCustomCondition. + :rtype: str + """ + return self._logic_operation + + @logic_operation.setter + def logic_operation(self, logic_operation): + """Sets the logic_operation of this WafCustomCondition. + + 条件列表匹配逻辑。 如果字段类型category是url、user-agent或者referer, 匹配逻辑可以为:contain、 not_contain、 equal、 not_equal、 prefix、 not_prefix、 suffix、 not_suffix、 len_greater、 len_less、len_equal或者len_not_equal 如果字段类型category是ip、ipv6或method,匹配逻辑可以为: equal、not_equal 如果字段类型category是request_line或者request, 匹配逻辑可以为: len_greater、len_less、len_equal或者len_not_equal 如果字段类型category是params、cookie或者header, 匹配逻辑可以为:contain、 not_contain、 equal、 not_equal、 prefix、 not_prefix、 suffix、 not_suffix、 len_greater、 len_less、len_equal、len_not_equal、num_greater、num_less、num_equal、num_not_equal、exist或者not_exist + + :param logic_operation: The logic_operation of this WafCustomCondition. + :type logic_operation: str + """ + self._logic_operation = logic_operation + + @property + def contents(self): + """Gets the contents of this WafCustomCondition. + + 条件列表逻辑匹配内容。 - 当匹配逻辑为exist或not_exist时,contents必须为空,其他情况下contents必填且长度不超过2048 - 当匹配逻辑包含\"len\"时,contents必须为0~65535的整数;当匹配逻辑包含\"num\"时,contents必须为0~512的整数 - 当category为method时, contents必须是1-64位大写字母 + + :return: The contents of this WafCustomCondition. + :rtype: list[str] + """ + return self._contents + + @contents.setter + def contents(self, contents): + """Sets the contents of this WafCustomCondition. + + 条件列表逻辑匹配内容。 - 当匹配逻辑为exist或not_exist时,contents必须为空,其他情况下contents必填且长度不超过2048 - 当匹配逻辑包含\"len\"时,contents必须为0~65535的整数;当匹配逻辑包含\"num\"时,contents必须为0~512的整数 - 当category为method时, contents必须是1-64位大写字母 + + :param contents: The contents of this WafCustomCondition. + :type contents: list[str] + """ + self._contents = contents + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, WafCustomCondition): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/waf_custom_rule.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/waf_custom_rule.py new file mode 100644 index 0000000000..490c4f0af0 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/waf_custom_rule.py @@ -0,0 +1,370 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class WafCustomRule: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'name': 'str', + 'time': 'bool', + 'start': 'int', + 'terminal': 'int', + 'priority': 'int', + 'conditions': 'list[WafCustomCondition]', + 'action': 'WafCustomRuleAction', + 'domain_name': 'str', + 'overseas_type': 'int' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'time': 'time', + 'start': 'start', + 'terminal': 'terminal', + 'priority': 'priority', + 'conditions': 'conditions', + 'action': 'action', + 'domain_name': 'domain_name', + 'overseas_type': 'overseas_type' + } + + def __init__(self, id=None, name=None, time=None, start=None, terminal=None, priority=None, conditions=None, action=None, domain_name=None, overseas_type=None): + """WafCustomRule + + The model defined in huaweicloud sdk + + :param id: id + :type id: str + :param name: name + :type name: str + :param time: 精准防护规则生效时间。true-自定义生效时间,false-立即生效 + :type time: bool + :param start: 精准防护规则生效的起始时间戳(秒) + :type start: int + :param terminal: 精准防护规则生效的终止时间戳(秒) + :type terminal: int + :param priority: 执行该规则的优先级,值越小,优先级越高。取值范围:0到1000。 + :type priority: int + :param conditions: condition + :type conditions: list[:class:`huaweicloudsdkaad.v2.WafCustomCondition`] + :param action: + :type action: :class:`huaweicloudsdkaad.v2.WafCustomRuleAction` + :param domain_name: 域名 + :type domain_name: str + :param overseas_type: 防护区域,0-大陆,1-海外 + :type overseas_type: int + """ + + + + self._id = None + self._name = None + self._time = None + self._start = None + self._terminal = None + self._priority = None + self._conditions = None + self._action = None + self._domain_name = None + self._overseas_type = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + self.time = time + if start is not None: + self.start = start + if terminal is not None: + self.terminal = terminal + self.priority = priority + if conditions is not None: + self.conditions = conditions + if action is not None: + self.action = action + if domain_name is not None: + self.domain_name = domain_name + if overseas_type is not None: + self.overseas_type = overseas_type + + @property + def id(self): + """Gets the id of this WafCustomRule. + + id + + :return: The id of this WafCustomRule. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this WafCustomRule. + + id + + :param id: The id of this WafCustomRule. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this WafCustomRule. + + name + + :return: The name of this WafCustomRule. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this WafCustomRule. + + name + + :param name: The name of this WafCustomRule. + :type name: str + """ + self._name = name + + @property + def time(self): + """Gets the time of this WafCustomRule. + + 精准防护规则生效时间。true-自定义生效时间,false-立即生效 + + :return: The time of this WafCustomRule. + :rtype: bool + """ + return self._time + + @time.setter + def time(self, time): + """Sets the time of this WafCustomRule. + + 精准防护规则生效时间。true-自定义生效时间,false-立即生效 + + :param time: The time of this WafCustomRule. + :type time: bool + """ + self._time = time + + @property + def start(self): + """Gets the start of this WafCustomRule. + + 精准防护规则生效的起始时间戳(秒) + + :return: The start of this WafCustomRule. + :rtype: int + """ + return self._start + + @start.setter + def start(self, start): + """Sets the start of this WafCustomRule. + + 精准防护规则生效的起始时间戳(秒) + + :param start: The start of this WafCustomRule. + :type start: int + """ + self._start = start + + @property + def terminal(self): + """Gets the terminal of this WafCustomRule. + + 精准防护规则生效的终止时间戳(秒) + + :return: The terminal of this WafCustomRule. + :rtype: int + """ + return self._terminal + + @terminal.setter + def terminal(self, terminal): + """Sets the terminal of this WafCustomRule. + + 精准防护规则生效的终止时间戳(秒) + + :param terminal: The terminal of this WafCustomRule. + :type terminal: int + """ + self._terminal = terminal + + @property + def priority(self): + """Gets the priority of this WafCustomRule. + + 执行该规则的优先级,值越小,优先级越高。取值范围:0到1000。 + + :return: The priority of this WafCustomRule. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this WafCustomRule. + + 执行该规则的优先级,值越小,优先级越高。取值范围:0到1000。 + + :param priority: The priority of this WafCustomRule. + :type priority: int + """ + self._priority = priority + + @property + def conditions(self): + """Gets the conditions of this WafCustomRule. + + condition + + :return: The conditions of this WafCustomRule. + :rtype: list[:class:`huaweicloudsdkaad.v2.WafCustomCondition`] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """Sets the conditions of this WafCustomRule. + + condition + + :param conditions: The conditions of this WafCustomRule. + :type conditions: list[:class:`huaweicloudsdkaad.v2.WafCustomCondition`] + """ + self._conditions = conditions + + @property + def action(self): + """Gets the action of this WafCustomRule. + + :return: The action of this WafCustomRule. + :rtype: :class:`huaweicloudsdkaad.v2.WafCustomRuleAction` + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this WafCustomRule. + + :param action: The action of this WafCustomRule. + :type action: :class:`huaweicloudsdkaad.v2.WafCustomRuleAction` + """ + self._action = action + + @property + def domain_name(self): + """Gets the domain_name of this WafCustomRule. + + 域名 + + :return: The domain_name of this WafCustomRule. + :rtype: str + """ + return self._domain_name + + @domain_name.setter + def domain_name(self, domain_name): + """Sets the domain_name of this WafCustomRule. + + 域名 + + :param domain_name: The domain_name of this WafCustomRule. + :type domain_name: str + """ + self._domain_name = domain_name + + @property + def overseas_type(self): + """Gets the overseas_type of this WafCustomRule. + + 防护区域,0-大陆,1-海外 + + :return: The overseas_type of this WafCustomRule. + :rtype: int + """ + return self._overseas_type + + @overseas_type.setter + def overseas_type(self, overseas_type): + """Sets the overseas_type of this WafCustomRule. + + 防护区域,0-大陆,1-海外 + + :param overseas_type: The overseas_type of this WafCustomRule. + :type overseas_type: int + """ + self._overseas_type = overseas_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, WafCustomRule): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/waf_custom_rule_action.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/waf_custom_rule_action.py new file mode 100644 index 0000000000..e2821aa9c1 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/waf_custom_rule_action.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class WafCustomRuleAction: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'category': 'str' + } + + attribute_map = { + 'category': 'category' + } + + def __init__(self, category=None): + """WafCustomRuleAction + + The model defined in huaweicloud sdk + + :param category: 防护动作。 “block”:拦截。 “pass”:放行。 “log”:仅记录 + :type category: str + """ + + + + self._category = None + self.discriminator = None + + if category is not None: + self.category = category + + @property + def category(self): + """Gets the category of this WafCustomRuleAction. + + 防护动作。 “block”:拦截。 “pass”:放行。 “log”:仅记录 + + :return: The category of this WafCustomRuleAction. + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this WafCustomRuleAction. + + 防护动作。 “block”:拦截。 “pass”:放行。 “log”:仅记录 + + :param category: The category of this WafCustomRuleAction. + :type category: str + """ + self._category = category + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, WafCustomRuleAction): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/waf_geo_ip_rule.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/waf_geo_ip_rule.py new file mode 100644 index 0000000000..aa9d6de8fe --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/waf_geo_ip_rule.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class WafGeoIpRule: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'geoip': 'str', + 'id': 'str', + 'name': 'str', + 'overseas_type': 'int', + 'timestamp': 'int', + 'white': 'int' + } + + attribute_map = { + 'geoip': 'geoip', + 'id': 'id', + 'name': 'name', + 'overseas_type': 'overseas_type', + 'timestamp': 'timestamp', + 'white': 'white' + } + + def __init__(self, geoip=None, id=None, name=None, overseas_type=None, timestamp=None, white=None): + """WafGeoIpRule + + The model defined in huaweicloud sdk + + :param geoip: 地理位置 + :type geoip: str + :param id: id + :type id: str + :param name: 规则名称 + :type name: str + :param overseas_type: 防护区域,0-大陆,1-海外 + :type overseas_type: int + :param timestamp: 添加时间 + :type timestamp: int + :param white: 防护动作 0-阻断,1-放行,2-仅记录 + :type white: int + """ + + + + self._geoip = None + self._id = None + self._name = None + self._overseas_type = None + self._timestamp = None + self._white = None + self.discriminator = None + + if geoip is not None: + self.geoip = geoip + if id is not None: + self.id = id + if name is not None: + self.name = name + if overseas_type is not None: + self.overseas_type = overseas_type + if timestamp is not None: + self.timestamp = timestamp + if white is not None: + self.white = white + + @property + def geoip(self): + """Gets the geoip of this WafGeoIpRule. + + 地理位置 + + :return: The geoip of this WafGeoIpRule. + :rtype: str + """ + return self._geoip + + @geoip.setter + def geoip(self, geoip): + """Sets the geoip of this WafGeoIpRule. + + 地理位置 + + :param geoip: The geoip of this WafGeoIpRule. + :type geoip: str + """ + self._geoip = geoip + + @property + def id(self): + """Gets the id of this WafGeoIpRule. + + id + + :return: The id of this WafGeoIpRule. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this WafGeoIpRule. + + id + + :param id: The id of this WafGeoIpRule. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this WafGeoIpRule. + + 规则名称 + + :return: The name of this WafGeoIpRule. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this WafGeoIpRule. + + 规则名称 + + :param name: The name of this WafGeoIpRule. + :type name: str + """ + self._name = name + + @property + def overseas_type(self): + """Gets the overseas_type of this WafGeoIpRule. + + 防护区域,0-大陆,1-海外 + + :return: The overseas_type of this WafGeoIpRule. + :rtype: int + """ + return self._overseas_type + + @overseas_type.setter + def overseas_type(self, overseas_type): + """Sets the overseas_type of this WafGeoIpRule. + + 防护区域,0-大陆,1-海外 + + :param overseas_type: The overseas_type of this WafGeoIpRule. + :type overseas_type: int + """ + self._overseas_type = overseas_type + + @property + def timestamp(self): + """Gets the timestamp of this WafGeoIpRule. + + 添加时间 + + :return: The timestamp of this WafGeoIpRule. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this WafGeoIpRule. + + 添加时间 + + :param timestamp: The timestamp of this WafGeoIpRule. + :type timestamp: int + """ + self._timestamp = timestamp + + @property + def white(self): + """Gets the white of this WafGeoIpRule. + + 防护动作 0-阻断,1-放行,2-仅记录 + + :return: The white of this WafGeoIpRule. + :rtype: int + """ + return self._white + + @white.setter + def white(self, white): + """Sets the white of this WafGeoIpRule. + + 防护动作 0-阻断,1-放行,2-仅记录 + + :param white: The white of this WafGeoIpRule. + :type white: int + """ + self._white = white + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, WafGeoIpRule): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/waf_policy_options.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/waf_policy_options.py new file mode 100644 index 0000000000..0346e4b472 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/waf_policy_options.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class WafPolicyOptions: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'cc': 'bool', + 'custom': 'bool', + 'geoip': 'bool', + 'whiteblackip': 'bool', + 'modulex_enabled': 'bool' + } + + attribute_map = { + 'cc': 'cc', + 'custom': 'custom', + 'geoip': 'geoip', + 'whiteblackip': 'whiteblackip', + 'modulex_enabled': 'modulex_enabled' + } + + def __init__(self, cc=None, custom=None, geoip=None, whiteblackip=None, modulex_enabled=None): + """WafPolicyOptions + + The model defined in huaweicloud sdk + + :param cc: 是否开启CC(频率控制) + :type cc: bool + :param custom: 是否开启精准访问防护 + :type custom: bool + :param geoip: 是否开启区域封禁防护 + :type geoip: bool + :param whiteblackip: 是否开启黑白名单防护 + :type whiteblackip: bool + :param modulex_enabled: 是否开启智能CC防护 + :type modulex_enabled: bool + """ + + + + self._cc = None + self._custom = None + self._geoip = None + self._whiteblackip = None + self._modulex_enabled = None + self.discriminator = None + + if cc is not None: + self.cc = cc + if custom is not None: + self.custom = custom + if geoip is not None: + self.geoip = geoip + if whiteblackip is not None: + self.whiteblackip = whiteblackip + if modulex_enabled is not None: + self.modulex_enabled = modulex_enabled + + @property + def cc(self): + """Gets the cc of this WafPolicyOptions. + + 是否开启CC(频率控制) + + :return: The cc of this WafPolicyOptions. + :rtype: bool + """ + return self._cc + + @cc.setter + def cc(self, cc): + """Sets the cc of this WafPolicyOptions. + + 是否开启CC(频率控制) + + :param cc: The cc of this WafPolicyOptions. + :type cc: bool + """ + self._cc = cc + + @property + def custom(self): + """Gets the custom of this WafPolicyOptions. + + 是否开启精准访问防护 + + :return: The custom of this WafPolicyOptions. + :rtype: bool + """ + return self._custom + + @custom.setter + def custom(self, custom): + """Sets the custom of this WafPolicyOptions. + + 是否开启精准访问防护 + + :param custom: The custom of this WafPolicyOptions. + :type custom: bool + """ + self._custom = custom + + @property + def geoip(self): + """Gets the geoip of this WafPolicyOptions. + + 是否开启区域封禁防护 + + :return: The geoip of this WafPolicyOptions. + :rtype: bool + """ + return self._geoip + + @geoip.setter + def geoip(self, geoip): + """Sets the geoip of this WafPolicyOptions. + + 是否开启区域封禁防护 + + :param geoip: The geoip of this WafPolicyOptions. + :type geoip: bool + """ + self._geoip = geoip + + @property + def whiteblackip(self): + """Gets the whiteblackip of this WafPolicyOptions. + + 是否开启黑白名单防护 + + :return: The whiteblackip of this WafPolicyOptions. + :rtype: bool + """ + return self._whiteblackip + + @whiteblackip.setter + def whiteblackip(self, whiteblackip): + """Sets the whiteblackip of this WafPolicyOptions. + + 是否开启黑白名单防护 + + :param whiteblackip: The whiteblackip of this WafPolicyOptions. + :type whiteblackip: bool + """ + self._whiteblackip = whiteblackip + + @property + def modulex_enabled(self): + """Gets the modulex_enabled of this WafPolicyOptions. + + 是否开启智能CC防护 + + :return: The modulex_enabled of this WafPolicyOptions. + :rtype: bool + """ + return self._modulex_enabled + + @modulex_enabled.setter + def modulex_enabled(self, modulex_enabled): + """Sets the modulex_enabled of this WafPolicyOptions. + + 是否开启智能CC防护 + + :param modulex_enabled: The modulex_enabled of this WafPolicyOptions. + :type modulex_enabled: bool + """ + self._modulex_enabled = modulex_enabled + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, WafPolicyOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/region/__init__.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/region/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/region/aad_region.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/region/aad_region.py new file mode 100644 index 0000000000..4c7a1b74e1 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/region/aad_region.py @@ -0,0 +1,34 @@ +# coding: utf-8 + +from huaweicloudsdkcore.region.region import Region +from huaweicloudsdkcore.region.provider import RegionProviderChain + +class AadRegion: + _PROVIDER = RegionProviderChain.get_default_region_provider_chain("AAD") + + CN_NORTH_4 = Region("cn-north-4", + "https://aad.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://aad.myhuaweicloud.com") + + static_fields = { + "cn-north-4": CN_NORTH_4, + "ap-southeast-1": AP_SOUTHEAST_1, + } + + @classmethod + def value_of(cls, region_id, static_fields=None): + if not region_id: + raise KeyError("Unexpected empty parameter: region_id") + + fields = static_fields or cls.static_fields + + region = cls._PROVIDER.get_region(region_id) + if region: + return region + + if region_id in fields: + return fields.get(region_id) + + raise KeyError("region_id '%s' is not in the following supported regions of service 'Aad': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-aad/requirements.txt b/huaweicloud-sdk-aad/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-aad/requirements.txt +++ b/huaweicloud-sdk-aad/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-aad/setup.py b/huaweicloud-sdk-aad/setup.py index 833cdf859a..f47cda60ec 100644 --- a/huaweicloud-sdk-aad/setup.py +++ b/huaweicloud-sdk-aad/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkaad" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-all/requirements.txt b/huaweicloud-sdk-all/requirements.txt index c16ffd90f6..db8dfba02e 100644 --- a/huaweicloud-sdk-all/requirements.txt +++ b/huaweicloud-sdk-all/requirements.txt @@ -1,165 +1,165 @@ -huaweicloudsdkcore == 3.1.116 -huaweicloudsdkaad == 3.1.116 -huaweicloudsdkantiddos == 3.1.116 -huaweicloudsdkaom == 3.1.116 -huaweicloudsdkaos == 3.1.116 -huaweicloudsdkapig == 3.1.116 -huaweicloudsdkapm == 3.1.116 -huaweicloudsdkas == 3.1.116 -huaweicloudsdkasm == 3.1.116 -huaweicloudsdkbcs == 3.1.116 -huaweicloudsdkbms == 3.1.116 -huaweicloudsdkbss == 3.1.116 -huaweicloudsdkbssintl == 3.1.116 -huaweicloudsdkcae == 3.1.116 -huaweicloudsdkcampusgo == 3.1.116 -huaweicloudsdkcbh == 3.1.116 -huaweicloudsdkcbr == 3.1.116 -huaweicloudsdkcbs == 3.1.116 -huaweicloudsdkcc == 3.1.116 -huaweicloudsdkcce == 3.1.116 -huaweicloudsdkccm == 3.1.116 -huaweicloudsdkcdm == 3.1.116 -huaweicloudsdkcdn == 3.1.116 -huaweicloudsdkces == 3.1.116 -huaweicloudsdkcfw == 3.1.116 -huaweicloudsdkcgs == 3.1.116 -huaweicloudsdkclassroom == 3.1.116 -huaweicloudsdkcloudide == 3.1.116 -huaweicloudsdkcloudpond == 3.1.116 -huaweicloudsdkcloudrtc == 3.1.116 -huaweicloudsdkcloudtable == 3.1.116 -huaweicloudsdkcloudtest == 3.1.116 -huaweicloudsdkcoc == 3.1.116 -huaweicloudsdkcodeartsartifact == 3.1.116 -huaweicloudsdkcodeartsbuild == 3.1.116 -huaweicloudsdkcodeartscheck == 3.1.116 -huaweicloudsdkcodeartsdeploy == 3.1.116 -huaweicloudsdkcodeartsgovernance == 3.1.116 -huaweicloudsdkcodeartsinspector == 3.1.116 -huaweicloudsdkcodeartspipeline == 3.1.116 -huaweicloudsdkcodecraft == 3.1.116 -huaweicloudsdkcodehub == 3.1.116 -huaweicloudsdkconfig == 3.1.116 -huaweicloudsdkcph == 3.1.116 -huaweicloudsdkcpts == 3.1.116 -huaweicloudsdkcse == 3.1.116 -huaweicloudsdkcsms == 3.1.116 -huaweicloudsdkcss == 3.1.116 -huaweicloudsdkcts == 3.1.116 -huaweicloudsdkdas == 3.1.116 -huaweicloudsdkdataartsstudio == 3.1.116 -huaweicloudsdkdbss == 3.1.116 -huaweicloudsdkdc == 3.1.116 -huaweicloudsdkdcs == 3.1.116 -huaweicloudsdkddm == 3.1.116 -huaweicloudsdkdds == 3.1.116 -huaweicloudsdkdeh == 3.1.116 -huaweicloudsdkdevstar == 3.1.116 -huaweicloudsdkdgc == 3.1.116 -huaweicloudsdkdis == 3.1.116 -huaweicloudsdkdlf == 3.1.116 -huaweicloudsdkdli == 3.1.116 -huaweicloudsdkdns == 3.1.116 -huaweicloudsdkdris == 3.1.116 -huaweicloudsdkdrs == 3.1.116 -huaweicloudsdkdsc == 3.1.116 -huaweicloudsdkdwr == 3.1.116 -huaweicloudsdkdws == 3.1.116 -huaweicloudsdkec == 3.1.116 -huaweicloudsdkecs == 3.1.116 -huaweicloudsdkedgesec == 3.1.116 -huaweicloudsdkeg == 3.1.116 -huaweicloudsdkeihealth == 3.1.116 -huaweicloudsdkeip == 3.1.116 -huaweicloudsdkelb == 3.1.116 -huaweicloudsdkeps == 3.1.116 -huaweicloudsdker == 3.1.116 -huaweicloudsdkevs == 3.1.116 -huaweicloudsdkfrs == 3.1.116 -huaweicloudsdkfunctiongraph == 3.1.116 -huaweicloudsdkga == 3.1.116 -huaweicloudsdkgaussdb == 3.1.116 -huaweicloudsdkgaussdbfornosql == 3.1.116 -huaweicloudsdkgaussdbforopengauss == 3.1.116 -huaweicloudsdkgeip == 3.1.116 -huaweicloudsdkges == 3.1.116 -huaweicloudsdkgsl == 3.1.116 -huaweicloudsdkhilens == 3.1.116 -huaweicloudsdkhss == 3.1.116 -huaweicloudsdkiam == 3.1.116 -huaweicloudsdkiamaccessanalyzer == 3.1.116 -huaweicloudsdkidentitycenter == 3.1.116 -huaweicloudsdkidentitycenterstore == 3.1.116 -huaweicloudsdkidme == 3.1.116 -huaweicloudsdkidmeclassicapi == 3.1.116 -huaweicloudsdkiec == 3.1.116 -huaweicloudsdkief == 3.1.116 -huaweicloudsdkimage == 3.1.116 -huaweicloudsdkimagesearch == 3.1.116 -huaweicloudsdkims == 3.1.116 -huaweicloudsdkiotanalytics == 3.1.116 -huaweicloudsdkiotda == 3.1.116 -huaweicloudsdkiotdm == 3.1.116 -huaweicloudsdkiotedge == 3.1.116 -huaweicloudsdkivs == 3.1.116 -huaweicloudsdkkafka == 3.1.116 -huaweicloudsdkkms == 3.1.116 -huaweicloudsdkkoomessage == 3.1.116 -huaweicloudsdkkps == 3.1.116 -huaweicloudsdklakeformation == 3.1.116 -huaweicloudsdklive == 3.1.116 -huaweicloudsdklts == 3.1.116 -huaweicloudsdkmapds == 3.1.116 -huaweicloudsdkmas == 3.1.116 -huaweicloudsdkmeeting == 3.1.116 -huaweicloudsdkmetastudio == 3.1.116 -huaweicloudsdkmoderation == 3.1.116 -huaweicloudsdkmpc == 3.1.116 -huaweicloudsdkmrs == 3.1.116 -huaweicloudsdkmsgsms == 3.1.116 -huaweicloudsdkmssi == 3.1.116 -huaweicloudsdknat == 3.1.116 -huaweicloudsdknlp == 3.1.116 -huaweicloudsdkobs == 3.1.116 -huaweicloudsdkocr == 3.1.116 -huaweicloudsdkoctopus == 3.1.116 -huaweicloudsdkoms == 3.1.116 -huaweicloudsdkoptverse == 3.1.116 -huaweicloudsdkorganizations == 3.1.116 -huaweicloudsdkorgid == 3.1.116 -huaweicloudsdkoroas == 3.1.116 -huaweicloudsdkosm == 3.1.116 -huaweicloudsdkpangulargemodels == 3.1.116 -huaweicloudsdkprojectman == 3.1.116 -huaweicloudsdkrabbitmq == 3.1.116 -huaweicloudsdkram == 3.1.116 -huaweicloudsdkrds == 3.1.116 -huaweicloudsdkres == 3.1.116 -huaweicloudsdkrgc == 3.1.116 -huaweicloudsdkrms == 3.1.116 -huaweicloudsdkrocketmq == 3.1.116 -huaweicloudsdkroma == 3.1.116 -huaweicloudsdksa == 3.1.116 -huaweicloudsdkscm == 3.1.116 -huaweicloudsdksdrs == 3.1.116 -huaweicloudsdksecmaster == 3.1.116 -huaweicloudsdkservicestage == 3.1.116 -huaweicloudsdksfsturbo == 3.1.116 -huaweicloudsdksis == 3.1.116 -huaweicloudsdksmn == 3.1.116 -huaweicloudsdksms == 3.1.116 -huaweicloudsdksts == 3.1.116 -huaweicloudsdkswr == 3.1.116 -huaweicloudsdktics == 3.1.116 -huaweicloudsdktms == 3.1.116 -huaweicloudsdkugo == 3.1.116 -huaweicloudsdkvas == 3.1.116 -huaweicloudsdkvcm == 3.1.116 -huaweicloudsdkvod == 3.1.116 -huaweicloudsdkvpc == 3.1.116 -huaweicloudsdkvpcep == 3.1.116 -huaweicloudsdkvpn == 3.1.116 -huaweicloudsdkwaf == 3.1.116 -huaweicloudsdkworkspace == 3.1.116 -huaweicloudsdkworkspaceapp == 3.1.116 +huaweicloudsdkcore == 3.1.117 +huaweicloudsdkaad == 3.1.117 +huaweicloudsdkantiddos == 3.1.117 +huaweicloudsdkaom == 3.1.117 +huaweicloudsdkaos == 3.1.117 +huaweicloudsdkapig == 3.1.117 +huaweicloudsdkapm == 3.1.117 +huaweicloudsdkas == 3.1.117 +huaweicloudsdkasm == 3.1.117 +huaweicloudsdkbcs == 3.1.117 +huaweicloudsdkbms == 3.1.117 +huaweicloudsdkbss == 3.1.117 +huaweicloudsdkbssintl == 3.1.117 +huaweicloudsdkcae == 3.1.117 +huaweicloudsdkcampusgo == 3.1.117 +huaweicloudsdkcbh == 3.1.117 +huaweicloudsdkcbr == 3.1.117 +huaweicloudsdkcbs == 3.1.117 +huaweicloudsdkcc == 3.1.117 +huaweicloudsdkcce == 3.1.117 +huaweicloudsdkccm == 3.1.117 +huaweicloudsdkcdm == 3.1.117 +huaweicloudsdkcdn == 3.1.117 +huaweicloudsdkces == 3.1.117 +huaweicloudsdkcfw == 3.1.117 +huaweicloudsdkcgs == 3.1.117 +huaweicloudsdkclassroom == 3.1.117 +huaweicloudsdkcloudide == 3.1.117 +huaweicloudsdkcloudpond == 3.1.117 +huaweicloudsdkcloudrtc == 3.1.117 +huaweicloudsdkcloudtable == 3.1.117 +huaweicloudsdkcloudtest == 3.1.117 +huaweicloudsdkcoc == 3.1.117 +huaweicloudsdkcodeartsartifact == 3.1.117 +huaweicloudsdkcodeartsbuild == 3.1.117 +huaweicloudsdkcodeartscheck == 3.1.117 +huaweicloudsdkcodeartsdeploy == 3.1.117 +huaweicloudsdkcodeartsgovernance == 3.1.117 +huaweicloudsdkcodeartsinspector == 3.1.117 +huaweicloudsdkcodeartspipeline == 3.1.117 +huaweicloudsdkcodecraft == 3.1.117 +huaweicloudsdkcodehub == 3.1.117 +huaweicloudsdkconfig == 3.1.117 +huaweicloudsdkcph == 3.1.117 +huaweicloudsdkcpts == 3.1.117 +huaweicloudsdkcse == 3.1.117 +huaweicloudsdkcsms == 3.1.117 +huaweicloudsdkcss == 3.1.117 +huaweicloudsdkcts == 3.1.117 +huaweicloudsdkdas == 3.1.117 +huaweicloudsdkdataartsstudio == 3.1.117 +huaweicloudsdkdbss == 3.1.117 +huaweicloudsdkdc == 3.1.117 +huaweicloudsdkdcs == 3.1.117 +huaweicloudsdkddm == 3.1.117 +huaweicloudsdkdds == 3.1.117 +huaweicloudsdkdeh == 3.1.117 +huaweicloudsdkdevstar == 3.1.117 +huaweicloudsdkdgc == 3.1.117 +huaweicloudsdkdis == 3.1.117 +huaweicloudsdkdlf == 3.1.117 +huaweicloudsdkdli == 3.1.117 +huaweicloudsdkdns == 3.1.117 +huaweicloudsdkdris == 3.1.117 +huaweicloudsdkdrs == 3.1.117 +huaweicloudsdkdsc == 3.1.117 +huaweicloudsdkdwr == 3.1.117 +huaweicloudsdkdws == 3.1.117 +huaweicloudsdkec == 3.1.117 +huaweicloudsdkecs == 3.1.117 +huaweicloudsdkedgesec == 3.1.117 +huaweicloudsdkeg == 3.1.117 +huaweicloudsdkeihealth == 3.1.117 +huaweicloudsdkeip == 3.1.117 +huaweicloudsdkelb == 3.1.117 +huaweicloudsdkeps == 3.1.117 +huaweicloudsdker == 3.1.117 +huaweicloudsdkevs == 3.1.117 +huaweicloudsdkfrs == 3.1.117 +huaweicloudsdkfunctiongraph == 3.1.117 +huaweicloudsdkga == 3.1.117 +huaweicloudsdkgaussdb == 3.1.117 +huaweicloudsdkgaussdbfornosql == 3.1.117 +huaweicloudsdkgaussdbforopengauss == 3.1.117 +huaweicloudsdkgeip == 3.1.117 +huaweicloudsdkges == 3.1.117 +huaweicloudsdkgsl == 3.1.117 +huaweicloudsdkhilens == 3.1.117 +huaweicloudsdkhss == 3.1.117 +huaweicloudsdkiam == 3.1.117 +huaweicloudsdkiamaccessanalyzer == 3.1.117 +huaweicloudsdkidentitycenter == 3.1.117 +huaweicloudsdkidentitycenterstore == 3.1.117 +huaweicloudsdkidme == 3.1.117 +huaweicloudsdkidmeclassicapi == 3.1.117 +huaweicloudsdkiec == 3.1.117 +huaweicloudsdkief == 3.1.117 +huaweicloudsdkimage == 3.1.117 +huaweicloudsdkimagesearch == 3.1.117 +huaweicloudsdkims == 3.1.117 +huaweicloudsdkiotanalytics == 3.1.117 +huaweicloudsdkiotda == 3.1.117 +huaweicloudsdkiotdm == 3.1.117 +huaweicloudsdkiotedge == 3.1.117 +huaweicloudsdkivs == 3.1.117 +huaweicloudsdkkafka == 3.1.117 +huaweicloudsdkkms == 3.1.117 +huaweicloudsdkkoomessage == 3.1.117 +huaweicloudsdkkps == 3.1.117 +huaweicloudsdklakeformation == 3.1.117 +huaweicloudsdklive == 3.1.117 +huaweicloudsdklts == 3.1.117 +huaweicloudsdkmapds == 3.1.117 +huaweicloudsdkmas == 3.1.117 +huaweicloudsdkmeeting == 3.1.117 +huaweicloudsdkmetastudio == 3.1.117 +huaweicloudsdkmoderation == 3.1.117 +huaweicloudsdkmpc == 3.1.117 +huaweicloudsdkmrs == 3.1.117 +huaweicloudsdkmsgsms == 3.1.117 +huaweicloudsdkmssi == 3.1.117 +huaweicloudsdknat == 3.1.117 +huaweicloudsdknlp == 3.1.117 +huaweicloudsdkobs == 3.1.117 +huaweicloudsdkocr == 3.1.117 +huaweicloudsdkoctopus == 3.1.117 +huaweicloudsdkoms == 3.1.117 +huaweicloudsdkoptverse == 3.1.117 +huaweicloudsdkorganizations == 3.1.117 +huaweicloudsdkorgid == 3.1.117 +huaweicloudsdkoroas == 3.1.117 +huaweicloudsdkosm == 3.1.117 +huaweicloudsdkpangulargemodels == 3.1.117 +huaweicloudsdkprojectman == 3.1.117 +huaweicloudsdkrabbitmq == 3.1.117 +huaweicloudsdkram == 3.1.117 +huaweicloudsdkrds == 3.1.117 +huaweicloudsdkres == 3.1.117 +huaweicloudsdkrgc == 3.1.117 +huaweicloudsdkrms == 3.1.117 +huaweicloudsdkrocketmq == 3.1.117 +huaweicloudsdkroma == 3.1.117 +huaweicloudsdksa == 3.1.117 +huaweicloudsdkscm == 3.1.117 +huaweicloudsdksdrs == 3.1.117 +huaweicloudsdksecmaster == 3.1.117 +huaweicloudsdkservicestage == 3.1.117 +huaweicloudsdksfsturbo == 3.1.117 +huaweicloudsdksis == 3.1.117 +huaweicloudsdksmn == 3.1.117 +huaweicloudsdksms == 3.1.117 +huaweicloudsdksts == 3.1.117 +huaweicloudsdkswr == 3.1.117 +huaweicloudsdktics == 3.1.117 +huaweicloudsdktms == 3.1.117 +huaweicloudsdkugo == 3.1.117 +huaweicloudsdkvas == 3.1.117 +huaweicloudsdkvcm == 3.1.117 +huaweicloudsdkvod == 3.1.117 +huaweicloudsdkvpc == 3.1.117 +huaweicloudsdkvpcep == 3.1.117 +huaweicloudsdkvpn == 3.1.117 +huaweicloudsdkwaf == 3.1.117 +huaweicloudsdkworkspace == 3.1.117 +huaweicloudsdkworkspaceapp == 3.1.117 diff --git a/huaweicloud-sdk-all/setup.py b/huaweicloud-sdk-all/setup.py index 0c10b9aafd..b062c45359 100644 --- a/huaweicloud-sdk-all/setup.py +++ b/huaweicloud-sdk-all/setup.py @@ -23,7 +23,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkall" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -34,171 +34,171 @@ LONG_DESCRIPTION = f.read() INSTALL_REQUIRES = [ - 'huaweicloudsdkcore==3.1.116', - 'huaweicloudsdkaad==3.1.116', - 'huaweicloudsdkantiddos==3.1.116', - 'huaweicloudsdkaom==3.1.116', - 'huaweicloudsdkaos==3.1.116', - 'huaweicloudsdkapig==3.1.116', - 'huaweicloudsdkapm==3.1.116', - 'huaweicloudsdkas==3.1.116', - 'huaweicloudsdkasm==3.1.116', - 'huaweicloudsdkbcs==3.1.116', - 'huaweicloudsdkbms==3.1.116', - 'huaweicloudsdkbss==3.1.116', - 'huaweicloudsdkbssintl==3.1.116', - 'huaweicloudsdkcae==3.1.116', - 'huaweicloudsdkcampusgo==3.1.116', - 'huaweicloudsdkcbh==3.1.116', - 'huaweicloudsdkcbr==3.1.116', - 'huaweicloudsdkcbs==3.1.116', - 'huaweicloudsdkcc==3.1.116', - 'huaweicloudsdkcce==3.1.116', - 'huaweicloudsdkccm==3.1.116', - 'huaweicloudsdkcdm==3.1.116', - 'huaweicloudsdkcdn==3.1.116', - 'huaweicloudsdkces==3.1.116', - 'huaweicloudsdkcfw==3.1.116', - 'huaweicloudsdkcgs==3.1.116', - 'huaweicloudsdkclassroom==3.1.116', - 'huaweicloudsdkcloudide==3.1.116', - 'huaweicloudsdkcloudpond==3.1.116', - 'huaweicloudsdkcloudrtc==3.1.116', - 'huaweicloudsdkcloudtable==3.1.116', - 'huaweicloudsdkcloudtest==3.1.116', - 'huaweicloudsdkcoc==3.1.116', - 'huaweicloudsdkcodeartsartifact==3.1.116', - 'huaweicloudsdkcodeartsbuild==3.1.116', - 'huaweicloudsdkcodeartscheck==3.1.116', - 'huaweicloudsdkcodeartsdeploy==3.1.116', - 'huaweicloudsdkcodeartsgovernance==3.1.116', - 'huaweicloudsdkcodeartsinspector==3.1.116', - 'huaweicloudsdkcodeartspipeline==3.1.116', - 'huaweicloudsdkcodecraft==3.1.116', - 'huaweicloudsdkcodehub==3.1.116', - 'huaweicloudsdkconfig==3.1.116', - 'huaweicloudsdkcph==3.1.116', - 'huaweicloudsdkcpts==3.1.116', - 'huaweicloudsdkcse==3.1.116', - 'huaweicloudsdkcsms==3.1.116', - 'huaweicloudsdkcss==3.1.116', - 'huaweicloudsdkcts==3.1.116', - 'huaweicloudsdkdas==3.1.116', - 'huaweicloudsdkdataartsstudio==3.1.116', - 'huaweicloudsdkdbss==3.1.116', - 'huaweicloudsdkdc==3.1.116', - 'huaweicloudsdkdcs==3.1.116', - 'huaweicloudsdkddm==3.1.116', - 'huaweicloudsdkdds==3.1.116', - 'huaweicloudsdkdeh==3.1.116', - 'huaweicloudsdkdevstar==3.1.116', - 'huaweicloudsdkdgc==3.1.116', - 'huaweicloudsdkdis==3.1.116', - 'huaweicloudsdkdlf==3.1.116', - 'huaweicloudsdkdli==3.1.116', - 'huaweicloudsdkdns==3.1.116', - 'huaweicloudsdkdris==3.1.116', - 'huaweicloudsdkdrs==3.1.116', - 'huaweicloudsdkdsc==3.1.116', - 'huaweicloudsdkdwr==3.1.116', - 'huaweicloudsdkdws==3.1.116', - 'huaweicloudsdkec==3.1.116', - 'huaweicloudsdkecs==3.1.116', - 'huaweicloudsdkedgesec==3.1.116', - 'huaweicloudsdkeg==3.1.116', - 'huaweicloudsdkeihealth==3.1.116', - 'huaweicloudsdkeip==3.1.116', - 'huaweicloudsdkelb==3.1.116', - 'huaweicloudsdkeps==3.1.116', - 'huaweicloudsdker==3.1.116', - 'huaweicloudsdkevs==3.1.116', - 'huaweicloudsdkfrs==3.1.116', - 'huaweicloudsdkfunctiongraph==3.1.116', - 'huaweicloudsdkga==3.1.116', - 'huaweicloudsdkgaussdb==3.1.116', - 'huaweicloudsdkgaussdbfornosql==3.1.116', - 'huaweicloudsdkgaussdbforopengauss==3.1.116', - 'huaweicloudsdkgeip==3.1.116', - 'huaweicloudsdkges==3.1.116', - 'huaweicloudsdkgsl==3.1.116', - 'huaweicloudsdkhilens==3.1.116', - 'huaweicloudsdkhss==3.1.116', - 'huaweicloudsdkiam==3.1.116', - 'huaweicloudsdkiamaccessanalyzer==3.1.116', - 'huaweicloudsdkidentitycenter==3.1.116', - 'huaweicloudsdkidentitycenterstore==3.1.116', - 'huaweicloudsdkidme==3.1.116', - 'huaweicloudsdkidmeclassicapi==3.1.116', - 'huaweicloudsdkiec==3.1.116', - 'huaweicloudsdkief==3.1.116', - 'huaweicloudsdkimage==3.1.116', - 'huaweicloudsdkimagesearch==3.1.116', - 'huaweicloudsdkims==3.1.116', - 'huaweicloudsdkiotanalytics==3.1.116', - 'huaweicloudsdkiotda==3.1.116', - 'huaweicloudsdkiotdm==3.1.116', - 'huaweicloudsdkiotedge==3.1.116', - 'huaweicloudsdkivs==3.1.116', - 'huaweicloudsdkkafka==3.1.116', - 'huaweicloudsdkkms==3.1.116', - 'huaweicloudsdkkoomessage==3.1.116', - 'huaweicloudsdkkps==3.1.116', - 'huaweicloudsdklakeformation==3.1.116', - 'huaweicloudsdklive==3.1.116', - 'huaweicloudsdklts==3.1.116', - 'huaweicloudsdkmapds==3.1.116', - 'huaweicloudsdkmas==3.1.116', - 'huaweicloudsdkmeeting==3.1.116', - 'huaweicloudsdkmetastudio==3.1.116', - 'huaweicloudsdkmoderation==3.1.116', - 'huaweicloudsdkmpc==3.1.116', - 'huaweicloudsdkmrs==3.1.116', - 'huaweicloudsdkmsgsms==3.1.116', - 'huaweicloudsdkmssi==3.1.116', - 'huaweicloudsdknat==3.1.116', - 'huaweicloudsdknlp==3.1.116', - 'huaweicloudsdkobs==3.1.116', - 'huaweicloudsdkocr==3.1.116', - 'huaweicloudsdkoctopus==3.1.116', - 'huaweicloudsdkoms==3.1.116', - 'huaweicloudsdkoptverse==3.1.116', - 'huaweicloudsdkorganizations==3.1.116', - 'huaweicloudsdkorgid==3.1.116', - 'huaweicloudsdkoroas==3.1.116', - 'huaweicloudsdkosm==3.1.116', - 'huaweicloudsdkpangulargemodels==3.1.116', - 'huaweicloudsdkprojectman==3.1.116', - 'huaweicloudsdkrabbitmq==3.1.116', - 'huaweicloudsdkram==3.1.116', - 'huaweicloudsdkrds==3.1.116', - 'huaweicloudsdkres==3.1.116', - 'huaweicloudsdkrgc==3.1.116', - 'huaweicloudsdkrms==3.1.116', - 'huaweicloudsdkrocketmq==3.1.116', - 'huaweicloudsdkroma==3.1.116', - 'huaweicloudsdksa==3.1.116', - 'huaweicloudsdkscm==3.1.116', - 'huaweicloudsdksdrs==3.1.116', - 'huaweicloudsdksecmaster==3.1.116', - 'huaweicloudsdkservicestage==3.1.116', - 'huaweicloudsdksfsturbo==3.1.116', - 'huaweicloudsdksis==3.1.116', - 'huaweicloudsdksmn==3.1.116', - 'huaweicloudsdksms==3.1.116', - 'huaweicloudsdksts==3.1.116', - 'huaweicloudsdkswr==3.1.116', - 'huaweicloudsdktics==3.1.116', - 'huaweicloudsdktms==3.1.116', - 'huaweicloudsdkugo==3.1.116', - 'huaweicloudsdkvas==3.1.116', - 'huaweicloudsdkvcm==3.1.116', - 'huaweicloudsdkvod==3.1.116', - 'huaweicloudsdkvpc==3.1.116', - 'huaweicloudsdkvpcep==3.1.116', - 'huaweicloudsdkvpn==3.1.116', - 'huaweicloudsdkwaf==3.1.116', - 'huaweicloudsdkworkspace==3.1.116', - 'huaweicloudsdkworkspaceapp==3.1.116', + 'huaweicloudsdkcore==3.1.117', + 'huaweicloudsdkaad==3.1.117', + 'huaweicloudsdkantiddos==3.1.117', + 'huaweicloudsdkaom==3.1.117', + 'huaweicloudsdkaos==3.1.117', + 'huaweicloudsdkapig==3.1.117', + 'huaweicloudsdkapm==3.1.117', + 'huaweicloudsdkas==3.1.117', + 'huaweicloudsdkasm==3.1.117', + 'huaweicloudsdkbcs==3.1.117', + 'huaweicloudsdkbms==3.1.117', + 'huaweicloudsdkbss==3.1.117', + 'huaweicloudsdkbssintl==3.1.117', + 'huaweicloudsdkcae==3.1.117', + 'huaweicloudsdkcampusgo==3.1.117', + 'huaweicloudsdkcbh==3.1.117', + 'huaweicloudsdkcbr==3.1.117', + 'huaweicloudsdkcbs==3.1.117', + 'huaweicloudsdkcc==3.1.117', + 'huaweicloudsdkcce==3.1.117', + 'huaweicloudsdkccm==3.1.117', + 'huaweicloudsdkcdm==3.1.117', + 'huaweicloudsdkcdn==3.1.117', + 'huaweicloudsdkces==3.1.117', + 'huaweicloudsdkcfw==3.1.117', + 'huaweicloudsdkcgs==3.1.117', + 'huaweicloudsdkclassroom==3.1.117', + 'huaweicloudsdkcloudide==3.1.117', + 'huaweicloudsdkcloudpond==3.1.117', + 'huaweicloudsdkcloudrtc==3.1.117', + 'huaweicloudsdkcloudtable==3.1.117', + 'huaweicloudsdkcloudtest==3.1.117', + 'huaweicloudsdkcoc==3.1.117', + 'huaweicloudsdkcodeartsartifact==3.1.117', + 'huaweicloudsdkcodeartsbuild==3.1.117', + 'huaweicloudsdkcodeartscheck==3.1.117', + 'huaweicloudsdkcodeartsdeploy==3.1.117', + 'huaweicloudsdkcodeartsgovernance==3.1.117', + 'huaweicloudsdkcodeartsinspector==3.1.117', + 'huaweicloudsdkcodeartspipeline==3.1.117', + 'huaweicloudsdkcodecraft==3.1.117', + 'huaweicloudsdkcodehub==3.1.117', + 'huaweicloudsdkconfig==3.1.117', + 'huaweicloudsdkcph==3.1.117', + 'huaweicloudsdkcpts==3.1.117', + 'huaweicloudsdkcse==3.1.117', + 'huaweicloudsdkcsms==3.1.117', + 'huaweicloudsdkcss==3.1.117', + 'huaweicloudsdkcts==3.1.117', + 'huaweicloudsdkdas==3.1.117', + 'huaweicloudsdkdataartsstudio==3.1.117', + 'huaweicloudsdkdbss==3.1.117', + 'huaweicloudsdkdc==3.1.117', + 'huaweicloudsdkdcs==3.1.117', + 'huaweicloudsdkddm==3.1.117', + 'huaweicloudsdkdds==3.1.117', + 'huaweicloudsdkdeh==3.1.117', + 'huaweicloudsdkdevstar==3.1.117', + 'huaweicloudsdkdgc==3.1.117', + 'huaweicloudsdkdis==3.1.117', + 'huaweicloudsdkdlf==3.1.117', + 'huaweicloudsdkdli==3.1.117', + 'huaweicloudsdkdns==3.1.117', + 'huaweicloudsdkdris==3.1.117', + 'huaweicloudsdkdrs==3.1.117', + 'huaweicloudsdkdsc==3.1.117', + 'huaweicloudsdkdwr==3.1.117', + 'huaweicloudsdkdws==3.1.117', + 'huaweicloudsdkec==3.1.117', + 'huaweicloudsdkecs==3.1.117', + 'huaweicloudsdkedgesec==3.1.117', + 'huaweicloudsdkeg==3.1.117', + 'huaweicloudsdkeihealth==3.1.117', + 'huaweicloudsdkeip==3.1.117', + 'huaweicloudsdkelb==3.1.117', + 'huaweicloudsdkeps==3.1.117', + 'huaweicloudsdker==3.1.117', + 'huaweicloudsdkevs==3.1.117', + 'huaweicloudsdkfrs==3.1.117', + 'huaweicloudsdkfunctiongraph==3.1.117', + 'huaweicloudsdkga==3.1.117', + 'huaweicloudsdkgaussdb==3.1.117', + 'huaweicloudsdkgaussdbfornosql==3.1.117', + 'huaweicloudsdkgaussdbforopengauss==3.1.117', + 'huaweicloudsdkgeip==3.1.117', + 'huaweicloudsdkges==3.1.117', + 'huaweicloudsdkgsl==3.1.117', + 'huaweicloudsdkhilens==3.1.117', + 'huaweicloudsdkhss==3.1.117', + 'huaweicloudsdkiam==3.1.117', + 'huaweicloudsdkiamaccessanalyzer==3.1.117', + 'huaweicloudsdkidentitycenter==3.1.117', + 'huaweicloudsdkidentitycenterstore==3.1.117', + 'huaweicloudsdkidme==3.1.117', + 'huaweicloudsdkidmeclassicapi==3.1.117', + 'huaweicloudsdkiec==3.1.117', + 'huaweicloudsdkief==3.1.117', + 'huaweicloudsdkimage==3.1.117', + 'huaweicloudsdkimagesearch==3.1.117', + 'huaweicloudsdkims==3.1.117', + 'huaweicloudsdkiotanalytics==3.1.117', + 'huaweicloudsdkiotda==3.1.117', + 'huaweicloudsdkiotdm==3.1.117', + 'huaweicloudsdkiotedge==3.1.117', + 'huaweicloudsdkivs==3.1.117', + 'huaweicloudsdkkafka==3.1.117', + 'huaweicloudsdkkms==3.1.117', + 'huaweicloudsdkkoomessage==3.1.117', + 'huaweicloudsdkkps==3.1.117', + 'huaweicloudsdklakeformation==3.1.117', + 'huaweicloudsdklive==3.1.117', + 'huaweicloudsdklts==3.1.117', + 'huaweicloudsdkmapds==3.1.117', + 'huaweicloudsdkmas==3.1.117', + 'huaweicloudsdkmeeting==3.1.117', + 'huaweicloudsdkmetastudio==3.1.117', + 'huaweicloudsdkmoderation==3.1.117', + 'huaweicloudsdkmpc==3.1.117', + 'huaweicloudsdkmrs==3.1.117', + 'huaweicloudsdkmsgsms==3.1.117', + 'huaweicloudsdkmssi==3.1.117', + 'huaweicloudsdknat==3.1.117', + 'huaweicloudsdknlp==3.1.117', + 'huaweicloudsdkobs==3.1.117', + 'huaweicloudsdkocr==3.1.117', + 'huaweicloudsdkoctopus==3.1.117', + 'huaweicloudsdkoms==3.1.117', + 'huaweicloudsdkoptverse==3.1.117', + 'huaweicloudsdkorganizations==3.1.117', + 'huaweicloudsdkorgid==3.1.117', + 'huaweicloudsdkoroas==3.1.117', + 'huaweicloudsdkosm==3.1.117', + 'huaweicloudsdkpangulargemodels==3.1.117', + 'huaweicloudsdkprojectman==3.1.117', + 'huaweicloudsdkrabbitmq==3.1.117', + 'huaweicloudsdkram==3.1.117', + 'huaweicloudsdkrds==3.1.117', + 'huaweicloudsdkres==3.1.117', + 'huaweicloudsdkrgc==3.1.117', + 'huaweicloudsdkrms==3.1.117', + 'huaweicloudsdkrocketmq==3.1.117', + 'huaweicloudsdkroma==3.1.117', + 'huaweicloudsdksa==3.1.117', + 'huaweicloudsdkscm==3.1.117', + 'huaweicloudsdksdrs==3.1.117', + 'huaweicloudsdksecmaster==3.1.117', + 'huaweicloudsdkservicestage==3.1.117', + 'huaweicloudsdksfsturbo==3.1.117', + 'huaweicloudsdksis==3.1.117', + 'huaweicloudsdksmn==3.1.117', + 'huaweicloudsdksms==3.1.117', + 'huaweicloudsdksts==3.1.117', + 'huaweicloudsdkswr==3.1.117', + 'huaweicloudsdktics==3.1.117', + 'huaweicloudsdktms==3.1.117', + 'huaweicloudsdkugo==3.1.117', + 'huaweicloudsdkvas==3.1.117', + 'huaweicloudsdkvcm==3.1.117', + 'huaweicloudsdkvod==3.1.117', + 'huaweicloudsdkvpc==3.1.117', + 'huaweicloudsdkvpcep==3.1.117', + 'huaweicloudsdkvpn==3.1.117', + 'huaweicloudsdkwaf==3.1.117', + 'huaweicloudsdkworkspace==3.1.117', + 'huaweicloudsdkworkspaceapp==3.1.117', ] OPTIONS = { diff --git a/huaweicloud-sdk-antiddos/requirements.txt b/huaweicloud-sdk-antiddos/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-antiddos/requirements.txt +++ b/huaweicloud-sdk-antiddos/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-antiddos/setup.py b/huaweicloud-sdk-antiddos/setup.py index 21b097c100..d684bc1810 100644 --- a/huaweicloud-sdk-antiddos/setup.py +++ b/huaweicloud-sdk-antiddos/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkantiddos" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-aom/requirements.txt b/huaweicloud-sdk-aom/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-aom/requirements.txt +++ b/huaweicloud-sdk-aom/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-aom/setup.py b/huaweicloud-sdk-aom/setup.py index d7f39144ac..b71e79db4c 100644 --- a/huaweicloud-sdk-aom/setup.py +++ b/huaweicloud-sdk-aom/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkaom" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-aos/requirements.txt b/huaweicloud-sdk-aos/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-aos/requirements.txt +++ b/huaweicloud-sdk-aos/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-aos/setup.py b/huaweicloud-sdk-aos/setup.py index c83812beab..fad50173cc 100644 --- a/huaweicloud-sdk-aos/setup.py +++ b/huaweicloud-sdk-aos/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkaos" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-apig/requirements.txt b/huaweicloud-sdk-apig/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-apig/requirements.txt +++ b/huaweicloud-sdk-apig/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-apig/setup.py b/huaweicloud-sdk-apig/setup.py index 14c4e7a49e..7f306a2345 100644 --- a/huaweicloud-sdk-apig/setup.py +++ b/huaweicloud-sdk-apig/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkapig" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-apm/requirements.txt b/huaweicloud-sdk-apm/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-apm/requirements.txt +++ b/huaweicloud-sdk-apm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-apm/setup.py b/huaweicloud-sdk-apm/setup.py index 13c22ba127..54f383362f 100644 --- a/huaweicloud-sdk-apm/setup.py +++ b/huaweicloud-sdk-apm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkapm" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-as/requirements.txt b/huaweicloud-sdk-as/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-as/requirements.txt +++ b/huaweicloud-sdk-as/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-as/setup.py b/huaweicloud-sdk-as/setup.py index 31a4b05c1e..02587328ba 100644 --- a/huaweicloud-sdk-as/setup.py +++ b/huaweicloud-sdk-as/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkas" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-asm/requirements.txt b/huaweicloud-sdk-asm/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-asm/requirements.txt +++ b/huaweicloud-sdk-asm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-asm/setup.py b/huaweicloud-sdk-asm/setup.py index ec2150d599..c08aa2b869 100644 --- a/huaweicloud-sdk-asm/setup.py +++ b/huaweicloud-sdk-asm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkasm" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bcs/requirements.txt b/huaweicloud-sdk-bcs/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-bcs/requirements.txt +++ b/huaweicloud-sdk-bcs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-bcs/setup.py b/huaweicloud-sdk-bcs/setup.py index 4bdf01117d..5371ad4b17 100644 --- a/huaweicloud-sdk-bcs/setup.py +++ b/huaweicloud-sdk-bcs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkbcs" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bms/requirements.txt b/huaweicloud-sdk-bms/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-bms/requirements.txt +++ b/huaweicloud-sdk-bms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-bms/setup.py b/huaweicloud-sdk-bms/setup.py index ee7596f216..0e736d1ea1 100644 --- a/huaweicloud-sdk-bms/setup.py +++ b/huaweicloud-sdk-bms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkbms" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bss/requirements.txt b/huaweicloud-sdk-bss/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-bss/requirements.txt +++ b/huaweicloud-sdk-bss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-bss/setup.py b/huaweicloud-sdk-bss/setup.py index 47d3fb85c5..f8424260fd 100644 --- a/huaweicloud-sdk-bss/setup.py +++ b/huaweicloud-sdk-bss/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkbss" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bssintl/requirements.txt b/huaweicloud-sdk-bssintl/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-bssintl/requirements.txt +++ b/huaweicloud-sdk-bssintl/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-bssintl/setup.py b/huaweicloud-sdk-bssintl/setup.py index 6bf25374a5..e5cee6c981 100644 --- a/huaweicloud-sdk-bssintl/setup.py +++ b/huaweicloud-sdk-bssintl/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkbssintl" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cae/requirements.txt b/huaweicloud-sdk-cae/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-cae/requirements.txt +++ b/huaweicloud-sdk-cae/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-cae/setup.py b/huaweicloud-sdk-cae/setup.py index 8856fc8452..fc081d31fa 100644 --- a/huaweicloud-sdk-cae/setup.py +++ b/huaweicloud-sdk-cae/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcae" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-campusgo/requirements.txt b/huaweicloud-sdk-campusgo/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-campusgo/requirements.txt +++ b/huaweicloud-sdk-campusgo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-campusgo/setup.py b/huaweicloud-sdk-campusgo/setup.py index a5d7832728..d7590a8af9 100644 --- a/huaweicloud-sdk-campusgo/setup.py +++ b/huaweicloud-sdk-campusgo/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcampusgo" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbh/requirements.txt b/huaweicloud-sdk-cbh/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-cbh/requirements.txt +++ b/huaweicloud-sdk-cbh/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-cbh/setup.py b/huaweicloud-sdk-cbh/setup.py index 5685771b77..013c26e69d 100644 --- a/huaweicloud-sdk-cbh/setup.py +++ b/huaweicloud-sdk-cbh/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcbh" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbr/requirements.txt b/huaweicloud-sdk-cbr/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-cbr/requirements.txt +++ b/huaweicloud-sdk-cbr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-cbr/setup.py b/huaweicloud-sdk-cbr/setup.py index c7cc3db805..aee3b1a316 100644 --- a/huaweicloud-sdk-cbr/setup.py +++ b/huaweicloud-sdk-cbr/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcbr" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbs/requirements.txt b/huaweicloud-sdk-cbs/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-cbs/requirements.txt +++ b/huaweicloud-sdk-cbs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-cbs/setup.py b/huaweicloud-sdk-cbs/setup.py index 16b802020c..b8f8e0392b 100644 --- a/huaweicloud-sdk-cbs/setup.py +++ b/huaweicloud-sdk-cbs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcbs" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cc/requirements.txt b/huaweicloud-sdk-cc/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-cc/requirements.txt +++ b/huaweicloud-sdk-cc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-cc/setup.py b/huaweicloud-sdk-cc/setup.py index 958fc9dc35..f77d26351e 100644 --- a/huaweicloud-sdk-cc/setup.py +++ b/huaweicloud-sdk-cc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcc" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/autopilot_cluster_spec.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/autopilot_cluster_spec.py index 792b5af3d4..1218360bfd 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/autopilot_cluster_spec.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/autopilot_cluster_spec.py @@ -39,7 +39,8 @@ class AutopilotClusterSpec: 'kube_proxy_mode': 'str', 'az': 'str', 'extend_param': 'AutopilotClusterExtendParam', - 'configurations_override': 'list[AutopilotPackageConfiguration]' + 'configurations_override': 'list[AutopilotPackageConfiguration]', + 'deletion_protection': 'bool' } attribute_map = { @@ -65,10 +66,11 @@ class AutopilotClusterSpec: 'kube_proxy_mode': 'kubeProxyMode', 'az': 'az', 'extend_param': 'extendParam', - 'configurations_override': 'configurationsOverride' + 'configurations_override': 'configurationsOverride', + 'deletion_protection': 'deletionProtection' } - def __init__(self, category=None, type=None, flavor=None, version=None, platform_version=None, description=None, custom_san=None, enable_snat=None, enable_swr_image_access=None, enable_autopilot=None, ipv6enable=None, host_network=None, container_network=None, eni_network=None, service_network=None, authentication=None, billing_mode=None, kubernetes_svc_ip_range=None, cluster_tags=None, kube_proxy_mode=None, az=None, extend_param=None, configurations_override=None): + def __init__(self, category=None, type=None, flavor=None, version=None, platform_version=None, description=None, custom_san=None, enable_snat=None, enable_swr_image_access=None, enable_autopilot=None, ipv6enable=None, host_network=None, container_network=None, eni_network=None, service_network=None, authentication=None, billing_mode=None, kubernetes_svc_ip_range=None, cluster_tags=None, kube_proxy_mode=None, az=None, extend_param=None, configurations_override=None, deletion_protection=None): """AutopilotClusterSpec The model defined in huaweicloud sdk @@ -119,6 +121,8 @@ def __init__(self, category=None, type=None, flavor=None, version=None, platform :type extend_param: :class:`huaweicloudsdkcce.v3.AutopilotClusterExtendParam` :param configurations_override: 覆盖集群默认组件配置 若指定了不支持的组件或组件不支持的参数,该配置项将被忽略。 当前支持的可配置组件及其参数详见 [[配置管理](https://support.huaweicloud.com/usermanual-cce/cce_10_0213.html)](tag:hws) [[配置管理](https://support.huaweicloud.com/intl/zh-cn/usermanual-cce/cce_10_0213.html)](tag:hws_hk) :type configurations_override: list[:class:`huaweicloudsdkcce.v3.AutopilotPackageConfiguration`] + :param deletion_protection: 集群删除保护,开启后禁止用户通过API或console调用删除集群,true表示开启,默认值false关闭。 + :type deletion_protection: bool """ @@ -146,6 +150,7 @@ def __init__(self, category=None, type=None, flavor=None, version=None, platform self._az = None self._extend_param = None self._configurations_override = None + self._deletion_protection = None self.discriminator = None if category is not None: @@ -191,6 +196,8 @@ def __init__(self, category=None, type=None, flavor=None, version=None, platform self.extend_param = extend_param if configurations_override is not None: self.configurations_override = configurations_override + if deletion_protection is not None: + self.deletion_protection = deletion_protection @property def category(self): @@ -674,6 +681,28 @@ def configurations_override(self, configurations_override): """ self._configurations_override = configurations_override + @property + def deletion_protection(self): + """Gets the deletion_protection of this AutopilotClusterSpec. + + 集群删除保护,开启后禁止用户通过API或console调用删除集群,true表示开启,默认值false关闭。 + + :return: The deletion_protection of this AutopilotClusterSpec. + :rtype: bool + """ + return self._deletion_protection + + @deletion_protection.setter + def deletion_protection(self, deletion_protection): + """Sets the deletion_protection of this AutopilotClusterSpec. + + 集群删除保护,开启后禁止用户通过API或console调用删除集群,true表示开启,默认值false关闭。 + + :param deletion_protection: The deletion_protection of this AutopilotClusterSpec. + :type deletion_protection: bool + """ + self._deletion_protection = deletion_protection + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-cce/requirements.txt b/huaweicloud-sdk-cce/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-cce/requirements.txt +++ b/huaweicloud-sdk-cce/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-cce/setup.py b/huaweicloud-sdk-cce/setup.py index 7c155954f8..4e0e3877d7 100644 --- a/huaweicloud-sdk-cce/setup.py +++ b/huaweicloud-sdk-cce/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcce" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ccm/requirements.txt b/huaweicloud-sdk-ccm/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-ccm/requirements.txt +++ b/huaweicloud-sdk-ccm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-ccm/setup.py b/huaweicloud-sdk-ccm/setup.py index e597f6497e..f6d07cbf9b 100644 --- a/huaweicloud-sdk-ccm/setup.py +++ b/huaweicloud-sdk-ccm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkccm" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cdm/requirements.txt b/huaweicloud-sdk-cdm/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-cdm/requirements.txt +++ b/huaweicloud-sdk-cdm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-cdm/setup.py b/huaweicloud-sdk-cdm/setup.py index 387c7573c7..455a6a3700 100644 --- a/huaweicloud-sdk-cdm/setup.py +++ b/huaweicloud-sdk-cdm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcdm" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cdn/requirements.txt b/huaweicloud-sdk-cdn/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-cdn/requirements.txt +++ b/huaweicloud-sdk-cdn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-cdn/setup.py b/huaweicloud-sdk-cdn/setup.py index 370c08ea87..77e0a3c950 100644 --- a/huaweicloud-sdk-cdn/setup.py +++ b/huaweicloud-sdk-cdn/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcdn" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ces/requirements.txt b/huaweicloud-sdk-ces/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-ces/requirements.txt +++ b/huaweicloud-sdk-ces/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-ces/setup.py b/huaweicloud-sdk-ces/setup.py index 31e8635a07..d488082bee 100644 --- a/huaweicloud-sdk-ces/setup.py +++ b/huaweicloud-sdk-ces/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkces" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cfw/requirements.txt b/huaweicloud-sdk-cfw/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-cfw/requirements.txt +++ b/huaweicloud-sdk-cfw/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-cfw/setup.py b/huaweicloud-sdk-cfw/setup.py index 724be88e76..c543e77a08 100644 --- a/huaweicloud-sdk-cfw/setup.py +++ b/huaweicloud-sdk-cfw/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcfw" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cgs/requirements.txt b/huaweicloud-sdk-cgs/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-cgs/requirements.txt +++ b/huaweicloud-sdk-cgs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-cgs/setup.py b/huaweicloud-sdk-cgs/setup.py index 429c7cdd00..87a36af944 100644 --- a/huaweicloud-sdk-cgs/setup.py +++ b/huaweicloud-sdk-cgs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcgs" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-classroom/requirements.txt b/huaweicloud-sdk-classroom/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-classroom/requirements.txt +++ b/huaweicloud-sdk-classroom/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-classroom/setup.py b/huaweicloud-sdk-classroom/setup.py index 52366e953a..26fa740bcc 100644 --- a/huaweicloud-sdk-classroom/setup.py +++ b/huaweicloud-sdk-classroom/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkclassroom" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudide/requirements.txt b/huaweicloud-sdk-cloudide/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-cloudide/requirements.txt +++ b/huaweicloud-sdk-cloudide/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudide/setup.py b/huaweicloud-sdk-cloudide/setup.py index 7bc3367ff5..3610fc3c2b 100644 --- a/huaweicloud-sdk-cloudide/setup.py +++ b/huaweicloud-sdk-cloudide/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudide" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudpond/requirements.txt b/huaweicloud-sdk-cloudpond/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-cloudpond/requirements.txt +++ b/huaweicloud-sdk-cloudpond/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudpond/setup.py b/huaweicloud-sdk-cloudpond/setup.py index b3c526abd2..2b63d6d188 100644 --- a/huaweicloud-sdk-cloudpond/setup.py +++ b/huaweicloud-sdk-cloudpond/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudpond" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudrtc/requirements.txt b/huaweicloud-sdk-cloudrtc/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-cloudrtc/requirements.txt +++ b/huaweicloud-sdk-cloudrtc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudrtc/setup.py b/huaweicloud-sdk-cloudrtc/setup.py index cec6d376ce..e40eea2e74 100644 --- a/huaweicloud-sdk-cloudrtc/setup.py +++ b/huaweicloud-sdk-cloudrtc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudrtc" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudtable/requirements.txt b/huaweicloud-sdk-cloudtable/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-cloudtable/requirements.txt +++ b/huaweicloud-sdk-cloudtable/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudtable/setup.py b/huaweicloud-sdk-cloudtable/setup.py index 49e9cb1d68..938d692f02 100644 --- a/huaweicloud-sdk-cloudtable/setup.py +++ b/huaweicloud-sdk-cloudtable/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudtable" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudtest/requirements.txt b/huaweicloud-sdk-cloudtest/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-cloudtest/requirements.txt +++ b/huaweicloud-sdk-cloudtest/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudtest/setup.py b/huaweicloud-sdk-cloudtest/setup.py index 13c3764d75..e77974f2f7 100644 --- a/huaweicloud-sdk-cloudtest/setup.py +++ b/huaweicloud-sdk-cloudtest/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudtest" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-coc/requirements.txt b/huaweicloud-sdk-coc/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-coc/requirements.txt +++ b/huaweicloud-sdk-coc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-coc/setup.py b/huaweicloud-sdk-coc/setup.py index cef713c01e..cd14f3dac9 100644 --- a/huaweicloud-sdk-coc/setup.py +++ b/huaweicloud-sdk-coc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcoc" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsartifact/requirements.txt b/huaweicloud-sdk-codeartsartifact/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-codeartsartifact/requirements.txt +++ b/huaweicloud-sdk-codeartsartifact/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsartifact/setup.py b/huaweicloud-sdk-codeartsartifact/setup.py index b80e731dec..09127e93b8 100644 --- a/huaweicloud-sdk-codeartsartifact/setup.py +++ b/huaweicloud-sdk-codeartsartifact/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsartifact" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsbuild/requirements.txt b/huaweicloud-sdk-codeartsbuild/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-codeartsbuild/requirements.txt +++ b/huaweicloud-sdk-codeartsbuild/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsbuild/setup.py b/huaweicloud-sdk-codeartsbuild/setup.py index 38676fcc6b..548dbac13c 100644 --- a/huaweicloud-sdk-codeartsbuild/setup.py +++ b/huaweicloud-sdk-codeartsbuild/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsbuild" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartscheck/requirements.txt b/huaweicloud-sdk-codeartscheck/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-codeartscheck/requirements.txt +++ b/huaweicloud-sdk-codeartscheck/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartscheck/setup.py b/huaweicloud-sdk-codeartscheck/setup.py index f5d9b7c9d1..9659cf42c2 100644 --- a/huaweicloud-sdk-codeartscheck/setup.py +++ b/huaweicloud-sdk-codeartscheck/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartscheck" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsdeploy/requirements.txt b/huaweicloud-sdk-codeartsdeploy/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-codeartsdeploy/requirements.txt +++ b/huaweicloud-sdk-codeartsdeploy/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsdeploy/setup.py b/huaweicloud-sdk-codeartsdeploy/setup.py index b405cd0562..811abe2ac8 100644 --- a/huaweicloud-sdk-codeartsdeploy/setup.py +++ b/huaweicloud-sdk-codeartsdeploy/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsdeploy" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsgovernance/requirements.txt b/huaweicloud-sdk-codeartsgovernance/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-codeartsgovernance/requirements.txt +++ b/huaweicloud-sdk-codeartsgovernance/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsgovernance/setup.py b/huaweicloud-sdk-codeartsgovernance/setup.py index e895147167..93c06bf0a3 100644 --- a/huaweicloud-sdk-codeartsgovernance/setup.py +++ b/huaweicloud-sdk-codeartsgovernance/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsgovernance" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsinspector/requirements.txt b/huaweicloud-sdk-codeartsinspector/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-codeartsinspector/requirements.txt +++ b/huaweicloud-sdk-codeartsinspector/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsinspector/setup.py b/huaweicloud-sdk-codeartsinspector/setup.py index 2bef5321e7..fc0f0c0ac3 100644 --- a/huaweicloud-sdk-codeartsinspector/setup.py +++ b/huaweicloud-sdk-codeartsinspector/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsinspector" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartspipeline/requirements.txt b/huaweicloud-sdk-codeartspipeline/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-codeartspipeline/requirements.txt +++ b/huaweicloud-sdk-codeartspipeline/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartspipeline/setup.py b/huaweicloud-sdk-codeartspipeline/setup.py index 4306860d57..d16a1e3a44 100644 --- a/huaweicloud-sdk-codeartspipeline/setup.py +++ b/huaweicloud-sdk-codeartspipeline/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartspipeline" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codecraft/requirements.txt b/huaweicloud-sdk-codecraft/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-codecraft/requirements.txt +++ b/huaweicloud-sdk-codecraft/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-codecraft/setup.py b/huaweicloud-sdk-codecraft/setup.py index e6d6b1a4f7..a23ad1e2fd 100644 --- a/huaweicloud-sdk-codecraft/setup.py +++ b/huaweicloud-sdk-codecraft/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodecraft" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codehub/requirements.txt b/huaweicloud-sdk-codehub/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-codehub/requirements.txt +++ b/huaweicloud-sdk-codehub/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-codehub/setup.py b/huaweicloud-sdk-codehub/setup.py index 02a45424af..e9f33b28e0 100644 --- a/huaweicloud-sdk-codehub/setup.py +++ b/huaweicloud-sdk-codehub/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodehub" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-config/requirements.txt b/huaweicloud-sdk-config/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-config/requirements.txt +++ b/huaweicloud-sdk-config/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-config/setup.py b/huaweicloud-sdk-config/setup.py index bc4da432a8..c56da54c24 100644 --- a/huaweicloud-sdk-config/setup.py +++ b/huaweicloud-sdk-config/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkconfig" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-core/setup.py b/huaweicloud-sdk-core/setup.py index c0f252c921..3281434945 100644 --- a/huaweicloud-sdk-core/setup.py +++ b/huaweicloud-sdk-core/setup.py @@ -22,7 +22,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcore" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cph/requirements.txt b/huaweicloud-sdk-cph/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-cph/requirements.txt +++ b/huaweicloud-sdk-cph/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-cph/setup.py b/huaweicloud-sdk-cph/setup.py index 122e55b91f..00993fffe7 100644 --- a/huaweicloud-sdk-cph/setup.py +++ b/huaweicloud-sdk-cph/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcph" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cpts/requirements.txt b/huaweicloud-sdk-cpts/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-cpts/requirements.txt +++ b/huaweicloud-sdk-cpts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-cpts/setup.py b/huaweicloud-sdk-cpts/setup.py index e6d9f0ef57..3a6bcdb469 100644 --- a/huaweicloud-sdk-cpts/setup.py +++ b/huaweicloud-sdk-cpts/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcpts" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cse/requirements.txt b/huaweicloud-sdk-cse/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-cse/requirements.txt +++ b/huaweicloud-sdk-cse/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-cse/setup.py b/huaweicloud-sdk-cse/setup.py index 7ec5b41d7d..30de81181d 100644 --- a/huaweicloud-sdk-cse/setup.py +++ b/huaweicloud-sdk-cse/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcse" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-csms/requirements.txt b/huaweicloud-sdk-csms/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-csms/requirements.txt +++ b/huaweicloud-sdk-csms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-csms/setup.py b/huaweicloud-sdk-csms/setup.py index fef7de4a1e..adc28a670f 100644 --- a/huaweicloud-sdk-csms/setup.py +++ b/huaweicloud-sdk-csms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcsms" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-css/requirements.txt b/huaweicloud-sdk-css/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-css/requirements.txt +++ b/huaweicloud-sdk-css/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-css/setup.py b/huaweicloud-sdk-css/setup.py index 4e6d408703..f2d8287df2 100644 --- a/huaweicloud-sdk-css/setup.py +++ b/huaweicloud-sdk-css/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcss" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cts/requirements.txt b/huaweicloud-sdk-cts/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-cts/requirements.txt +++ b/huaweicloud-sdk-cts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-cts/setup.py b/huaweicloud-sdk-cts/setup.py index 7da1e92714..6b5bbc5a31 100644 --- a/huaweicloud-sdk-cts/setup.py +++ b/huaweicloud-sdk-cts/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcts" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-das/requirements.txt b/huaweicloud-sdk-das/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-das/requirements.txt +++ b/huaweicloud-sdk-das/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-das/setup.py b/huaweicloud-sdk-das/setup.py index a0edf9ee32..4405c81000 100644 --- a/huaweicloud-sdk-das/setup.py +++ b/huaweicloud-sdk-das/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdas" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/__init__.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/__init__.py index 3bd0483c20..22282988e2 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/__init__.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/__init__.py @@ -164,6 +164,7 @@ from huaweicloudsdkdataartsstudio.v1.model.column_details import ColumnDetails from huaweicloudsdkdataartsstudio.v1.model.column_info import ColumnInfo from huaweicloudsdkdataartsstudio.v1.model.column_lineage import ColumnLineage +from huaweicloudsdkdataartsstudio.v1.model.column_lineage_v2 import ColumnLineageV2 from huaweicloudsdkdataartsstudio.v1.model.columns_list import ColumnsList from huaweicloudsdkdataartsstudio.v1.model.common_condition_vo import CommonConditionVO from huaweicloudsdkdataartsstudio.v1.model.compound_metric_vo import CompoundMetricVO @@ -227,6 +228,8 @@ from huaweicloudsdkdataartsstudio.v1.model.create_factory_supplement_data_instance_request_body_supplement_data_instance_time import CreateFactorySupplementDataInstanceRequestBodySupplementDataInstanceTime from huaweicloudsdkdataartsstudio.v1.model.create_factory_supplement_data_instance_request_body_supplement_data_run_time import CreateFactorySupplementDataInstanceRequestBodySupplementDataRunTime from huaweicloudsdkdataartsstudio.v1.model.create_factory_supplement_data_instance_response import CreateFactorySupplementDataInstanceResponse +from huaweicloudsdkdataartsstudio.v1.model.create_lineage_info_request import CreateLineageInfoRequest +from huaweicloudsdkdataartsstudio.v1.model.create_lineage_info_response import CreateLineageInfoResponse from huaweicloudsdkdataartsstudio.v1.model.create_manager_work_space_request import CreateManagerWorkSpaceRequest from huaweicloudsdkdataartsstudio.v1.model.create_manager_work_space_response import CreateManagerWorkSpaceResponse from huaweicloudsdkdataartsstudio.v1.model.create_or_update_asset_request import CreateOrUpdateAssetRequest @@ -458,6 +461,7 @@ from huaweicloudsdkdataartsstudio.v1.model.l3 import L3 from huaweicloudsdkdataartsstudio.v1.model.layer_path import LayerPath from huaweicloudsdkdataartsstudio.v1.model.lineage import Lineage +from huaweicloudsdkdataartsstudio.v1.model.lineage_info_request import LineageInfoRequest from huaweicloudsdkdataartsstudio.v1.model.lineage_relation import LineageRelation from huaweicloudsdkdataartsstudio.v1.model.link_attribute_and_element_vo import LinkAttributeAndElementVO from huaweicloudsdkdataartsstudio.v1.model.list_aggregation_logic_tables_request import ListAggregationLogicTablesRequest @@ -969,8 +973,10 @@ from huaweicloudsdkdataartsstudio.v1.model.sync_status_statistic_vo import SyncStatusStatisticVO from huaweicloudsdkdataartsstudio.v1.model.table_column_dto import TableColumnDTO from huaweicloudsdkdataartsstudio.v1.model.table_info import TableInfo +from huaweicloudsdkdataartsstudio.v1.model.table_info_v2 import TableInfoV2 from huaweicloudsdkdataartsstudio.v1.model.table_lineage import TableLineage from huaweicloudsdkdataartsstudio.v1.model.table_lineage_info import TableLineageInfo +from huaweicloudsdkdataartsstudio.v1.model.table_lineage_v2 import TableLineageV2 from huaweicloudsdkdataartsstudio.v1.model.table_mapping_detail_vo import TableMappingDetailVO from huaweicloudsdkdataartsstudio.v1.model.table_mapping_vo import TableMappingVO from huaweicloudsdkdataartsstudio.v1.model.table_model_attribute_vo import TableModelAttributeVO diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_async_client.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_async_client.py index fe83e8fc56..e5a9ed9fd2 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_async_client.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_async_client.py @@ -2898,6 +2898,73 @@ def _create_factory_supplement_data_instance_http_info(self, request): return http_info + def create_lineage_info_async(self, request): + """创建血缘信息 + + 创建血缘信息 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateLineageInfo + :type request: :class:`huaweicloudsdkdataartsstudio.v1.CreateLineageInfoRequest` + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.CreateLineageInfoResponse` + """ + http_info = self._create_lineage_info_http_info(request) + return self._call_api(**http_info) + + def create_lineage_info_async_invoker(self, request): + http_info = self._create_lineage_info_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_lineage_info_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/lineage/lineage-info", + "request_type": request.__class__.__name__, + "response_type": "CreateLineageInfoResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'workspace' in local_var_params: + header_params['workspace'] = local_var_params['workspace'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_manager_work_space_async(self, request): """创建工作空间 diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_client.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_client.py index 52f95a2aa4..f8aac1c87a 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_client.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_client.py @@ -2898,6 +2898,73 @@ def _create_factory_supplement_data_instance_http_info(cls, request): return http_info + def create_lineage_info(self, request): + """创建血缘信息 + + 创建血缘信息 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateLineageInfo + :type request: :class:`huaweicloudsdkdataartsstudio.v1.CreateLineageInfoRequest` + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.CreateLineageInfoResponse` + """ + http_info = self._create_lineage_info_http_info(request) + return self._call_api(**http_info) + + def create_lineage_info_invoker(self, request): + http_info = self._create_lineage_info_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_lineage_info_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/lineage/lineage-info", + "request_type": request.__class__.__name__, + "response_type": "CreateLineageInfoResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'workspace' in local_var_params: + header_params['workspace'] = local_var_params['workspace'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_manager_work_space(self, request): """创建工作空间 diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/__init__.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/__init__.py index fd6b716a05..f07b07513c 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/__init__.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/__init__.py @@ -162,6 +162,7 @@ from huaweicloudsdkdataartsstudio.v1.model.column_details import ColumnDetails from huaweicloudsdkdataartsstudio.v1.model.column_info import ColumnInfo from huaweicloudsdkdataartsstudio.v1.model.column_lineage import ColumnLineage +from huaweicloudsdkdataartsstudio.v1.model.column_lineage_v2 import ColumnLineageV2 from huaweicloudsdkdataartsstudio.v1.model.columns_list import ColumnsList from huaweicloudsdkdataartsstudio.v1.model.common_condition_vo import CommonConditionVO from huaweicloudsdkdataartsstudio.v1.model.compound_metric_vo import CompoundMetricVO @@ -225,6 +226,8 @@ from huaweicloudsdkdataartsstudio.v1.model.create_factory_supplement_data_instance_request_body_supplement_data_instance_time import CreateFactorySupplementDataInstanceRequestBodySupplementDataInstanceTime from huaweicloudsdkdataartsstudio.v1.model.create_factory_supplement_data_instance_request_body_supplement_data_run_time import CreateFactorySupplementDataInstanceRequestBodySupplementDataRunTime from huaweicloudsdkdataartsstudio.v1.model.create_factory_supplement_data_instance_response import CreateFactorySupplementDataInstanceResponse +from huaweicloudsdkdataartsstudio.v1.model.create_lineage_info_request import CreateLineageInfoRequest +from huaweicloudsdkdataartsstudio.v1.model.create_lineage_info_response import CreateLineageInfoResponse from huaweicloudsdkdataartsstudio.v1.model.create_manager_work_space_request import CreateManagerWorkSpaceRequest from huaweicloudsdkdataartsstudio.v1.model.create_manager_work_space_response import CreateManagerWorkSpaceResponse from huaweicloudsdkdataartsstudio.v1.model.create_or_update_asset_request import CreateOrUpdateAssetRequest @@ -456,6 +459,7 @@ from huaweicloudsdkdataartsstudio.v1.model.l3 import L3 from huaweicloudsdkdataartsstudio.v1.model.layer_path import LayerPath from huaweicloudsdkdataartsstudio.v1.model.lineage import Lineage +from huaweicloudsdkdataartsstudio.v1.model.lineage_info_request import LineageInfoRequest from huaweicloudsdkdataartsstudio.v1.model.lineage_relation import LineageRelation from huaweicloudsdkdataartsstudio.v1.model.link_attribute_and_element_vo import LinkAttributeAndElementVO from huaweicloudsdkdataartsstudio.v1.model.list_aggregation_logic_tables_request import ListAggregationLogicTablesRequest @@ -967,8 +971,10 @@ from huaweicloudsdkdataartsstudio.v1.model.sync_status_statistic_vo import SyncStatusStatisticVO from huaweicloudsdkdataartsstudio.v1.model.table_column_dto import TableColumnDTO from huaweicloudsdkdataartsstudio.v1.model.table_info import TableInfo +from huaweicloudsdkdataartsstudio.v1.model.table_info_v2 import TableInfoV2 from huaweicloudsdkdataartsstudio.v1.model.table_lineage import TableLineage from huaweicloudsdkdataartsstudio.v1.model.table_lineage_info import TableLineageInfo +from huaweicloudsdkdataartsstudio.v1.model.table_lineage_v2 import TableLineageV2 from huaweicloudsdkdataartsstudio.v1.model.table_mapping_detail_vo import TableMappingDetailVO from huaweicloudsdkdataartsstudio.v1.model.table_mapping_vo import TableMappingVO from huaweicloudsdkdataartsstudio.v1.model.table_model_attribute_vo import TableModelAttributeVO diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/column_lineage_v2.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/column_lineage_v2.py new file mode 100644 index 0000000000..5e3e0892aa --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/column_lineage_v2.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ColumnLineageV2: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'input_columns': 'list[ColumnDetails]', + 'output_columns': 'list[ColumnDetails]' + } + + attribute_map = { + 'input_columns': 'input_columns', + 'output_columns': 'output_columns' + } + + def __init__(self, input_columns=None, output_columns=None): + """ColumnLineageV2 + + The model defined in huaweicloud sdk + + :param input_columns: 上游血缘字段列表,列表大小:1至100 + :type input_columns: list[:class:`huaweicloudsdkdataartsstudio.v1.ColumnDetails`] + :param output_columns: 下游血缘字段列表,列表大小:1至100 + :type output_columns: list[:class:`huaweicloudsdkdataartsstudio.v1.ColumnDetails`] + """ + + + + self._input_columns = None + self._output_columns = None + self.discriminator = None + + self.input_columns = input_columns + self.output_columns = output_columns + + @property + def input_columns(self): + """Gets the input_columns of this ColumnLineageV2. + + 上游血缘字段列表,列表大小:1至100 + + :return: The input_columns of this ColumnLineageV2. + :rtype: list[:class:`huaweicloudsdkdataartsstudio.v1.ColumnDetails`] + """ + return self._input_columns + + @input_columns.setter + def input_columns(self, input_columns): + """Sets the input_columns of this ColumnLineageV2. + + 上游血缘字段列表,列表大小:1至100 + + :param input_columns: The input_columns of this ColumnLineageV2. + :type input_columns: list[:class:`huaweicloudsdkdataartsstudio.v1.ColumnDetails`] + """ + self._input_columns = input_columns + + @property + def output_columns(self): + """Gets the output_columns of this ColumnLineageV2. + + 下游血缘字段列表,列表大小:1至100 + + :return: The output_columns of this ColumnLineageV2. + :rtype: list[:class:`huaweicloudsdkdataartsstudio.v1.ColumnDetails`] + """ + return self._output_columns + + @output_columns.setter + def output_columns(self, output_columns): + """Sets the output_columns of this ColumnLineageV2. + + 下游血缘字段列表,列表大小:1至100 + + :param output_columns: The output_columns of this ColumnLineageV2. + :type output_columns: list[:class:`huaweicloudsdkdataartsstudio.v1.ColumnDetails`] + """ + self._output_columns = output_columns + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ColumnLineageV2): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/create_lineage_info_request.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/create_lineage_info_request.py new file mode 100644 index 0000000000..d4ff99baf5 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/create_lineage_info_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateLineageInfoRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'workspace': 'str', + 'body': 'LineageInfoRequest' + } + + attribute_map = { + 'workspace': 'workspace', + 'body': 'body' + } + + def __init__(self, workspace=None, body=None): + """CreateLineageInfoRequest + + The model defined in huaweicloud sdk + + :param workspace: 工作空间ID,获取方法请参见[实例ID和工作空间ID](dataartsstudio_02_0350.xml) + :type workspace: str + :param body: Body of the CreateLineageInfoRequest + :type body: :class:`huaweicloudsdkdataartsstudio.v1.LineageInfoRequest` + """ + + + + self._workspace = None + self._body = None + self.discriminator = None + + self.workspace = workspace + if body is not None: + self.body = body + + @property + def workspace(self): + """Gets the workspace of this CreateLineageInfoRequest. + + 工作空间ID,获取方法请参见[实例ID和工作空间ID](dataartsstudio_02_0350.xml) + + :return: The workspace of this CreateLineageInfoRequest. + :rtype: str + """ + return self._workspace + + @workspace.setter + def workspace(self, workspace): + """Sets the workspace of this CreateLineageInfoRequest. + + 工作空间ID,获取方法请参见[实例ID和工作空间ID](dataartsstudio_02_0350.xml) + + :param workspace: The workspace of this CreateLineageInfoRequest. + :type workspace: str + """ + self._workspace = workspace + + @property + def body(self): + """Gets the body of this CreateLineageInfoRequest. + + :return: The body of this CreateLineageInfoRequest. + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.LineageInfoRequest` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateLineageInfoRequest. + + :param body: The body of this CreateLineageInfoRequest. + :type body: :class:`huaweicloudsdkdataartsstudio.v1.LineageInfoRequest` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateLineageInfoRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/create_lineage_info_response.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/create_lineage_info_response.py new file mode 100644 index 0000000000..2caeefafb7 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/create_lineage_info_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateLineageInfoResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'list[ObjectIdInfo]' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateLineageInfoResponse + + The model defined in huaweicloud sdk + + :param body: 血缘导入结果 + :type body: list[:class:`huaweicloudsdkdataartsstudio.v1.ObjectIdInfo`] + """ + + super(CreateLineageInfoResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateLineageInfoResponse. + + 血缘导入结果 + + :return: The body of this CreateLineageInfoResponse. + :rtype: list[:class:`huaweicloudsdkdataartsstudio.v1.ObjectIdInfo`] + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateLineageInfoResponse. + + 血缘导入结果 + + :param body: The body of this CreateLineageInfoResponse. + :type body: list[:class:`huaweicloudsdkdataartsstudio.v1.ObjectIdInfo`] + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateLineageInfoResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/lineage_info_request.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/lineage_info_request.py new file mode 100644 index 0000000000..64eca04383 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/lineage_info_request.py @@ -0,0 +1,314 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class LineageInfoRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'data_source_type': 'str', + 'connection_id': 'str', + 'connection_name': 'str', + 'workspace_id': 'str', + 'job_id': 'str', + 'node_name': 'str', + 'table_lineage': 'TableLineageV2' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'data_source_type': 'data_source_type', + 'connection_id': 'connection_id', + 'connection_name': 'connection_name', + 'workspace_id': 'workspace_id', + 'job_id': 'job_id', + 'node_name': 'node_name', + 'table_lineage': 'table_lineage' + } + + def __init__(self, cluster_id=None, data_source_type=None, connection_id=None, connection_name=None, workspace_id=None, job_id=None, node_name=None, table_lineage=None): + """LineageInfoRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群id + :type cluster_id: str + :param data_source_type: 数据连接类型 + :type data_source_type: str + :param connection_id: 数据连接id + :type connection_id: str + :param connection_name: 数据连接名称 + :type connection_name: str + :param workspace_id: 工作空间id + :type workspace_id: str + :param job_id: 作业id + :type job_id: str + :param node_name: 算子名称 + :type node_name: str + :param table_lineage: + :type table_lineage: :class:`huaweicloudsdkdataartsstudio.v1.TableLineageV2` + """ + + + + self._cluster_id = None + self._data_source_type = None + self._connection_id = None + self._connection_name = None + self._workspace_id = None + self._job_id = None + self._node_name = None + self._table_lineage = None + self.discriminator = None + + if cluster_id is not None: + self.cluster_id = cluster_id + if data_source_type is not None: + self.data_source_type = data_source_type + if connection_id is not None: + self.connection_id = connection_id + if connection_name is not None: + self.connection_name = connection_name + if workspace_id is not None: + self.workspace_id = workspace_id + if job_id is not None: + self.job_id = job_id + if node_name is not None: + self.node_name = node_name + if table_lineage is not None: + self.table_lineage = table_lineage + + @property + def cluster_id(self): + """Gets the cluster_id of this LineageInfoRequest. + + 集群id + + :return: The cluster_id of this LineageInfoRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this LineageInfoRequest. + + 集群id + + :param cluster_id: The cluster_id of this LineageInfoRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def data_source_type(self): + """Gets the data_source_type of this LineageInfoRequest. + + 数据连接类型 + + :return: The data_source_type of this LineageInfoRequest. + :rtype: str + """ + return self._data_source_type + + @data_source_type.setter + def data_source_type(self, data_source_type): + """Sets the data_source_type of this LineageInfoRequest. + + 数据连接类型 + + :param data_source_type: The data_source_type of this LineageInfoRequest. + :type data_source_type: str + """ + self._data_source_type = data_source_type + + @property + def connection_id(self): + """Gets the connection_id of this LineageInfoRequest. + + 数据连接id + + :return: The connection_id of this LineageInfoRequest. + :rtype: str + """ + return self._connection_id + + @connection_id.setter + def connection_id(self, connection_id): + """Sets the connection_id of this LineageInfoRequest. + + 数据连接id + + :param connection_id: The connection_id of this LineageInfoRequest. + :type connection_id: str + """ + self._connection_id = connection_id + + @property + def connection_name(self): + """Gets the connection_name of this LineageInfoRequest. + + 数据连接名称 + + :return: The connection_name of this LineageInfoRequest. + :rtype: str + """ + return self._connection_name + + @connection_name.setter + def connection_name(self, connection_name): + """Sets the connection_name of this LineageInfoRequest. + + 数据连接名称 + + :param connection_name: The connection_name of this LineageInfoRequest. + :type connection_name: str + """ + self._connection_name = connection_name + + @property + def workspace_id(self): + """Gets the workspace_id of this LineageInfoRequest. + + 工作空间id + + :return: The workspace_id of this LineageInfoRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this LineageInfoRequest. + + 工作空间id + + :param workspace_id: The workspace_id of this LineageInfoRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def job_id(self): + """Gets the job_id of this LineageInfoRequest. + + 作业id + + :return: The job_id of this LineageInfoRequest. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this LineageInfoRequest. + + 作业id + + :param job_id: The job_id of this LineageInfoRequest. + :type job_id: str + """ + self._job_id = job_id + + @property + def node_name(self): + """Gets the node_name of this LineageInfoRequest. + + 算子名称 + + :return: The node_name of this LineageInfoRequest. + :rtype: str + """ + return self._node_name + + @node_name.setter + def node_name(self, node_name): + """Sets the node_name of this LineageInfoRequest. + + 算子名称 + + :param node_name: The node_name of this LineageInfoRequest. + :type node_name: str + """ + self._node_name = node_name + + @property + def table_lineage(self): + """Gets the table_lineage of this LineageInfoRequest. + + :return: The table_lineage of this LineageInfoRequest. + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.TableLineageV2` + """ + return self._table_lineage + + @table_lineage.setter + def table_lineage(self, table_lineage): + """Sets the table_lineage of this LineageInfoRequest. + + :param table_lineage: The table_lineage of this LineageInfoRequest. + :type table_lineage: :class:`huaweicloudsdkdataartsstudio.v1.TableLineageV2` + """ + self._table_lineage = table_lineage + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, LineageInfoRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/table_info_v2.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/table_info_v2.py new file mode 100644 index 0000000000..d0d7deb4f9 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/table_info_v2.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TableInfoV2: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'catalog': 'str', + 'database': 'str', + 'schema': 'str', + 'table': 'str' + } + + attribute_map = { + 'catalog': 'catalog', + 'database': 'database', + 'schema': 'schema', + 'table': 'table' + } + + def __init__(self, catalog=None, database=None, schema=None, table=None): + """TableInfoV2 + + The model defined in huaweicloud sdk + + :param catalog: 目录名称 + :type catalog: str + :param database: 数据库名称 + :type database: str + :param schema: 逻辑库名称 + :type schema: str + :param table: 表名称 + :type table: str + """ + + + + self._catalog = None + self._database = None + self._schema = None + self._table = None + self.discriminator = None + + if catalog is not None: + self.catalog = catalog + if database is not None: + self.database = database + if schema is not None: + self.schema = schema + if table is not None: + self.table = table + + @property + def catalog(self): + """Gets the catalog of this TableInfoV2. + + 目录名称 + + :return: The catalog of this TableInfoV2. + :rtype: str + """ + return self._catalog + + @catalog.setter + def catalog(self, catalog): + """Sets the catalog of this TableInfoV2. + + 目录名称 + + :param catalog: The catalog of this TableInfoV2. + :type catalog: str + """ + self._catalog = catalog + + @property + def database(self): + """Gets the database of this TableInfoV2. + + 数据库名称 + + :return: The database of this TableInfoV2. + :rtype: str + """ + return self._database + + @database.setter + def database(self, database): + """Sets the database of this TableInfoV2. + + 数据库名称 + + :param database: The database of this TableInfoV2. + :type database: str + """ + self._database = database + + @property + def schema(self): + """Gets the schema of this TableInfoV2. + + 逻辑库名称 + + :return: The schema of this TableInfoV2. + :rtype: str + """ + return self._schema + + @schema.setter + def schema(self, schema): + """Sets the schema of this TableInfoV2. + + 逻辑库名称 + + :param schema: The schema of this TableInfoV2. + :type schema: str + """ + self._schema = schema + + @property + def table(self): + """Gets the table of this TableInfoV2. + + 表名称 + + :return: The table of this TableInfoV2. + :rtype: str + """ + return self._table + + @table.setter + def table(self, table): + """Sets the table of this TableInfoV2. + + 表名称 + + :param table: The table of this TableInfoV2. + :type table: str + """ + self._table = table + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TableInfoV2): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/table_lineage_v2.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/table_lineage_v2.py new file mode 100644 index 0000000000..5721023d51 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/table_lineage_v2.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TableLineageV2: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'input_tables': 'list[TableInfoV2]', + 'output_tables': 'list[TableInfoV2]', + 'column_lineages': 'list[ColumnLineageV2]' + } + + attribute_map = { + 'input_tables': 'input_tables', + 'output_tables': 'output_tables', + 'column_lineages': 'column_lineages' + } + + def __init__(self, input_tables=None, output_tables=None, column_lineages=None): + """TableLineageV2 + + The model defined in huaweicloud sdk + + :param input_tables: 上游血缘表列表,列表大小:1至100 + :type input_tables: list[:class:`huaweicloudsdkdataartsstudio.v1.TableInfoV2`] + :param output_tables: 下游血缘表列表,列表大小:1至100 + :type output_tables: list[:class:`huaweicloudsdkdataartsstudio.v1.TableInfoV2`] + :param column_lineages: 字段血缘列表,列表大小:0至100 + :type column_lineages: list[:class:`huaweicloudsdkdataartsstudio.v1.ColumnLineageV2`] + """ + + + + self._input_tables = None + self._output_tables = None + self._column_lineages = None + self.discriminator = None + + self.input_tables = input_tables + self.output_tables = output_tables + if column_lineages is not None: + self.column_lineages = column_lineages + + @property + def input_tables(self): + """Gets the input_tables of this TableLineageV2. + + 上游血缘表列表,列表大小:1至100 + + :return: The input_tables of this TableLineageV2. + :rtype: list[:class:`huaweicloudsdkdataartsstudio.v1.TableInfoV2`] + """ + return self._input_tables + + @input_tables.setter + def input_tables(self, input_tables): + """Sets the input_tables of this TableLineageV2. + + 上游血缘表列表,列表大小:1至100 + + :param input_tables: The input_tables of this TableLineageV2. + :type input_tables: list[:class:`huaweicloudsdkdataartsstudio.v1.TableInfoV2`] + """ + self._input_tables = input_tables + + @property + def output_tables(self): + """Gets the output_tables of this TableLineageV2. + + 下游血缘表列表,列表大小:1至100 + + :return: The output_tables of this TableLineageV2. + :rtype: list[:class:`huaweicloudsdkdataartsstudio.v1.TableInfoV2`] + """ + return self._output_tables + + @output_tables.setter + def output_tables(self, output_tables): + """Sets the output_tables of this TableLineageV2. + + 下游血缘表列表,列表大小:1至100 + + :param output_tables: The output_tables of this TableLineageV2. + :type output_tables: list[:class:`huaweicloudsdkdataartsstudio.v1.TableInfoV2`] + """ + self._output_tables = output_tables + + @property + def column_lineages(self): + """Gets the column_lineages of this TableLineageV2. + + 字段血缘列表,列表大小:0至100 + + :return: The column_lineages of this TableLineageV2. + :rtype: list[:class:`huaweicloudsdkdataartsstudio.v1.ColumnLineageV2`] + """ + return self._column_lineages + + @column_lineages.setter + def column_lineages(self, column_lineages): + """Sets the column_lineages of this TableLineageV2. + + 字段血缘列表,列表大小:0至100 + + :param column_lineages: The column_lineages of this TableLineageV2. + :type column_lineages: list[:class:`huaweicloudsdkdataartsstudio.v1.ColumnLineageV2`] + """ + self._column_lineages = column_lineages + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TableLineageV2): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/requirements.txt b/huaweicloud-sdk-dataartsstudio/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-dataartsstudio/requirements.txt +++ b/huaweicloud-sdk-dataartsstudio/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-dataartsstudio/setup.py b/huaweicloud-sdk-dataartsstudio/setup.py index d86f767feb..a358726a67 100644 --- a/huaweicloud-sdk-dataartsstudio/setup.py +++ b/huaweicloud-sdk-dataartsstudio/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdataartsstudio" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dbss/requirements.txt b/huaweicloud-sdk-dbss/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-dbss/requirements.txt +++ b/huaweicloud-sdk-dbss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-dbss/setup.py b/huaweicloud-sdk-dbss/setup.py index 3cb9b0b92d..0fa2a21e62 100644 --- a/huaweicloud-sdk-dbss/setup.py +++ b/huaweicloud-sdk-dbss/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdbss" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dc/requirements.txt b/huaweicloud-sdk-dc/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-dc/requirements.txt +++ b/huaweicloud-sdk-dc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-dc/setup.py b/huaweicloud-sdk-dc/setup.py index 8ad7727535..3dfe7f2fe1 100644 --- a/huaweicloud-sdk-dc/setup.py +++ b/huaweicloud-sdk-dc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdc" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dcs/requirements.txt b/huaweicloud-sdk-dcs/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-dcs/requirements.txt +++ b/huaweicloud-sdk-dcs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-dcs/setup.py b/huaweicloud-sdk-dcs/setup.py index bd9d119aff..8c75429e08 100644 --- a/huaweicloud-sdk-dcs/setup.py +++ b/huaweicloud-sdk-dcs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdcs" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ddm/requirements.txt b/huaweicloud-sdk-ddm/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-ddm/requirements.txt +++ b/huaweicloud-sdk-ddm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-ddm/setup.py b/huaweicloud-sdk-ddm/setup.py index fd9538ebc4..d8b97b0473 100644 --- a/huaweicloud-sdk-ddm/setup.py +++ b/huaweicloud-sdk-ddm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkddm" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dds/requirements.txt b/huaweicloud-sdk-dds/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-dds/requirements.txt +++ b/huaweicloud-sdk-dds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-dds/setup.py b/huaweicloud-sdk-dds/setup.py index 6ccba1bdd2..3127eb6a86 100644 --- a/huaweicloud-sdk-dds/setup.py +++ b/huaweicloud-sdk-dds/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdds" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-deh/requirements.txt b/huaweicloud-sdk-deh/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-deh/requirements.txt +++ b/huaweicloud-sdk-deh/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-deh/setup.py b/huaweicloud-sdk-deh/setup.py index da4cdf0c32..5574efd7a2 100644 --- a/huaweicloud-sdk-deh/setup.py +++ b/huaweicloud-sdk-deh/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdeh" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-devstar/requirements.txt b/huaweicloud-sdk-devstar/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-devstar/requirements.txt +++ b/huaweicloud-sdk-devstar/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-devstar/setup.py b/huaweicloud-sdk-devstar/setup.py index 0ceb7c561c..64d5ffa02d 100644 --- a/huaweicloud-sdk-devstar/setup.py +++ b/huaweicloud-sdk-devstar/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdevstar" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/__init__.py b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/__init__.py index b662a1f304..ce70021c86 100644 --- a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/__init__.py +++ b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/__init__.py @@ -57,6 +57,7 @@ from huaweicloudsdkdgc.v1.model.job_alarm import JobAlarm from huaweicloudsdkdgc.v1.model.job_approver import JobApprover from huaweicloudsdkdgc.v1.model.job_info import JobInfo +from huaweicloudsdkdgc.v1.model.job_information import JobInformation from huaweicloudsdkdgc.v1.model.job_instance import JobInstance from huaweicloudsdkdgc.v1.model.job_param import JobParam from huaweicloudsdkdgc.v1.model.job_resource_info import JobResourceInfo diff --git a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/__init__.py b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/__init__.py index 9c00b352e2..93a99c6e5d 100644 --- a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/__init__.py +++ b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/__init__.py @@ -55,6 +55,7 @@ from huaweicloudsdkdgc.v1.model.job_alarm import JobAlarm from huaweicloudsdkdgc.v1.model.job_approver import JobApprover from huaweicloudsdkdgc.v1.model.job_info import JobInfo +from huaweicloudsdkdgc.v1.model.job_information import JobInformation from huaweicloudsdkdgc.v1.model.job_instance import JobInstance from huaweicloudsdkdgc.v1.model.job_param import JobParam from huaweicloudsdkdgc.v1.model.job_resource_info import JobResourceInfo diff --git a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/job_information.py b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/job_information.py new file mode 100644 index 0000000000..0cfd0c4687 --- /dev/null +++ b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/job_information.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class JobInformation: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'work_space': 'str', + 'job_name': 'str', + 'job_id': 'int' + } + + attribute_map = { + 'work_space': 'workSpace', + 'job_name': 'jobName', + 'job_id': 'jobId' + } + + def __init__(self, work_space=None, job_name=None, job_id=None): + """JobInformation + + The model defined in huaweicloud sdk + + :param work_space: 下游作业的工作空间名称 + :type work_space: str + :param job_name: 下游作业名称 + :type job_name: str + :param job_id: 下游作业ID + :type job_id: int + """ + + + + self._work_space = None + self._job_name = None + self._job_id = None + self.discriminator = None + + if work_space is not None: + self.work_space = work_space + if job_name is not None: + self.job_name = job_name + if job_id is not None: + self.job_id = job_id + + @property + def work_space(self): + """Gets the work_space of this JobInformation. + + 下游作业的工作空间名称 + + :return: The work_space of this JobInformation. + :rtype: str + """ + return self._work_space + + @work_space.setter + def work_space(self, work_space): + """Sets the work_space of this JobInformation. + + 下游作业的工作空间名称 + + :param work_space: The work_space of this JobInformation. + :type work_space: str + """ + self._work_space = work_space + + @property + def job_name(self): + """Gets the job_name of this JobInformation. + + 下游作业名称 + + :return: The job_name of this JobInformation. + :rtype: str + """ + return self._job_name + + @job_name.setter + def job_name(self, job_name): + """Sets the job_name of this JobInformation. + + 下游作业名称 + + :param job_name: The job_name of this JobInformation. + :type job_name: str + """ + self._job_name = job_name + + @property + def job_id(self): + """Gets the job_id of this JobInformation. + + 下游作业ID + + :return: The job_id of this JobInformation. + :rtype: int + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this JobInformation. + + 下游作业ID + + :param job_id: The job_id of this JobInformation. + :type job_id: int + """ + self._job_id = job_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, JobInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/show_job_response.py b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/show_job_response.py index 03f73e56a1..f83652fbb4 100644 --- a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/show_job_response.py +++ b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/show_job_response.py @@ -23,6 +23,7 @@ class ShowJobResponse(SdkResponse): 'schedule': 'Schedule', 'params': 'list[JobParam]', 'directory': 'str', + 'downstream_jobs': 'list[JobInformation]', 'process_type': 'str', 'id': 'int', 'create_time': 'int', @@ -44,6 +45,7 @@ class ShowJobResponse(SdkResponse): 'schedule': 'schedule', 'params': 'params', 'directory': 'directory', + 'downstream_jobs': 'downstreamJobs', 'process_type': 'processType', 'id': 'id', 'create_time': 'createTime', @@ -59,7 +61,7 @@ class ShowJobResponse(SdkResponse): 'version': 'version' } - def __init__(self, name=None, nodes=None, schedule=None, params=None, directory=None, process_type=None, id=None, create_time=None, single_node_job_flag=None, single_node_job_type=None, last_update_user=None, log_path=None, basic_config=None, description=None, clean_overdue_days=None, clean_waiting_job=None, empty_running_job=None, version=None): + def __init__(self, name=None, nodes=None, schedule=None, params=None, directory=None, downstream_jobs=None, process_type=None, id=None, create_time=None, single_node_job_flag=None, single_node_job_type=None, last_update_user=None, log_path=None, basic_config=None, description=None, clean_overdue_days=None, clean_waiting_job=None, empty_running_job=None, version=None): """ShowJobResponse The model defined in huaweicloud sdk @@ -74,6 +76,8 @@ def __init__(self, name=None, nodes=None, schedule=None, params=None, directory= :type params: list[:class:`huaweicloudsdkdgc.v1.JobParam`] :param directory: 作业在目录树上的路径。创建作业时如果路径目录不存在,会自动创建目录,如/dir/a/,默认在根目录/。 :type directory: str + :param downstream_jobs: 下游作业信息 + :type downstream_jobs: list[:class:`huaweicloudsdkdgc.v1.JobInformation`] :param process_type: 作业类型,REAL_TIME: 实时处理,BATCH:批处理 :type process_type: str :param id: 作业Id, 用户查询作业时使用。 @@ -109,6 +113,7 @@ def __init__(self, name=None, nodes=None, schedule=None, params=None, directory= self._schedule = None self._params = None self._directory = None + self._downstream_jobs = None self._process_type = None self._id = None self._create_time = None @@ -134,6 +139,8 @@ def __init__(self, name=None, nodes=None, schedule=None, params=None, directory= self.params = params if directory is not None: self.directory = directory + if downstream_jobs is not None: + self.downstream_jobs = downstream_jobs if process_type is not None: self.process_type = process_type if id is not None: @@ -267,6 +274,28 @@ def directory(self, directory): """ self._directory = directory + @property + def downstream_jobs(self): + """Gets the downstream_jobs of this ShowJobResponse. + + 下游作业信息 + + :return: The downstream_jobs of this ShowJobResponse. + :rtype: list[:class:`huaweicloudsdkdgc.v1.JobInformation`] + """ + return self._downstream_jobs + + @downstream_jobs.setter + def downstream_jobs(self, downstream_jobs): + """Sets the downstream_jobs of this ShowJobResponse. + + 下游作业信息 + + :param downstream_jobs: The downstream_jobs of this ShowJobResponse. + :type downstream_jobs: list[:class:`huaweicloudsdkdgc.v1.JobInformation`] + """ + self._downstream_jobs = downstream_jobs + @property def process_type(self): """Gets the process_type of this ShowJobResponse. diff --git a/huaweicloud-sdk-dgc/requirements.txt b/huaweicloud-sdk-dgc/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-dgc/requirements.txt +++ b/huaweicloud-sdk-dgc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-dgc/setup.py b/huaweicloud-sdk-dgc/setup.py index 5e019f22bc..3ac32b711a 100644 --- a/huaweicloud-sdk-dgc/setup.py +++ b/huaweicloud-sdk-dgc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdgc" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dis/requirements.txt b/huaweicloud-sdk-dis/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-dis/requirements.txt +++ b/huaweicloud-sdk-dis/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-dis/setup.py b/huaweicloud-sdk-dis/setup.py index 277166b4dd..84355da9cd 100644 --- a/huaweicloud-sdk-dis/setup.py +++ b/huaweicloud-sdk-dis/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdis" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dlf/requirements.txt b/huaweicloud-sdk-dlf/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-dlf/requirements.txt +++ b/huaweicloud-sdk-dlf/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-dlf/setup.py b/huaweicloud-sdk-dlf/setup.py index 6cdc440c3d..06153bbf02 100644 --- a/huaweicloud-sdk-dlf/setup.py +++ b/huaweicloud-sdk-dlf/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdlf" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dli/requirements.txt b/huaweicloud-sdk-dli/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-dli/requirements.txt +++ b/huaweicloud-sdk-dli/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-dli/setup.py b/huaweicloud-sdk-dli/setup.py index c9c5881e67..9f23d5fba6 100644 --- a/huaweicloud-sdk-dli/setup.py +++ b/huaweicloud-sdk-dli/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdli" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dns/huaweicloudsdkdns/v2/region/dns_region.py b/huaweicloud-sdk-dns/huaweicloudsdkdns/v2/region/dns_region.py index 029dc7d355..c5b475ddda 100644 --- a/huaweicloud-sdk-dns/huaweicloudsdkdns/v2/region/dns_region.py +++ b/huaweicloud-sdk-dns/huaweicloudsdkdns/v2/region/dns_region.py @@ -46,6 +46,8 @@ class DnsRegion: "https://dns.ae-ad-1.myhuaweicloud.com") RU_MOSCOW_1 = Region("ru-moscow-1", "https://dns.ru-moscow-1.myhuaweicloud.com") + ME_EAST_1 = Region("me-east-1", + "https://dns.me-east-1.myhuaweicloud.com") static_fields = { "cn-east-2": CN_EAST_2, @@ -68,6 +70,7 @@ class DnsRegion: "ap-southeast-4": AP_SOUTHEAST_4, "ae-ad-1": AE_AD_1, "ru-moscow-1": RU_MOSCOW_1, + "me-east-1": ME_EAST_1, } @classmethod diff --git a/huaweicloud-sdk-dns/requirements.txt b/huaweicloud-sdk-dns/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-dns/requirements.txt +++ b/huaweicloud-sdk-dns/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-dns/setup.py b/huaweicloud-sdk-dns/setup.py index 2668506bb6..659c4f631b 100644 --- a/huaweicloud-sdk-dns/setup.py +++ b/huaweicloud-sdk-dns/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdns" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dris/requirements.txt b/huaweicloud-sdk-dris/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-dris/requirements.txt +++ b/huaweicloud-sdk-dris/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-dris/setup.py b/huaweicloud-sdk-dris/setup.py index 3c5782c0f2..4eb7c90de5 100644 --- a/huaweicloud-sdk-dris/setup.py +++ b/huaweicloud-sdk-dris/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdris" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/query_job_resp.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/query_job_resp.py index f00ec3d9ff..99c780237f 100644 --- a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/query_job_resp.py +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/query_job_resp.py @@ -42,7 +42,7 @@ class QueryJobResp: 'filter_ddl_policy': 'str', 'speed_limit': 'list[SpeedLimitInfo]', 'schema_type': 'str', - 'node_num': 'str', + 'node_num': 'int', 'object_switch': 'bool', 'master_job_id': 'str', 'full_mode': 'str', @@ -199,8 +199,8 @@ def __init__(self, id=None, parent_id=None, name=None, status=None, description= :type speed_limit: list[:class:`huaweicloudsdkdrs.v3.SpeedLimitInfo`] :param schema_type: 迁移方案 - Replication-主从复制 - Tungsten-日志解析 - PGBaseBackup-PG备份 :type schema_type: str - :param node_num: 节点个数。 - :type node_num: str + :param node_num: 节点个数。MongoDB数据库时对应源端分片个数,源库为集群时必填,[1-32],MySQL双主灾备时会默认设置为2。 + :type node_num: int :param object_switch: 对象选择开关 :type object_switch: bool :param master_job_id: 主任务Id。 @@ -999,10 +999,10 @@ def schema_type(self, schema_type): def node_num(self): """Gets the node_num of this QueryJobResp. - 节点个数。 + 节点个数。MongoDB数据库时对应源端分片个数,源库为集群时必填,[1-32],MySQL双主灾备时会默认设置为2。 :return: The node_num of this QueryJobResp. - :rtype: str + :rtype: int """ return self._node_num @@ -1010,10 +1010,10 @@ def node_num(self): def node_num(self, node_num): """Sets the node_num of this QueryJobResp. - 节点个数。 + 节点个数。MongoDB数据库时对应源端分片个数,源库为集群时必填,[1-32],MySQL双主灾备时会默认设置为2。 :param node_num: The node_num of this QueryJobResp. - :type node_num: str + :type node_num: int """ self._node_num = node_num diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/__init__.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/__init__.py index 3d1077baa9..752d7ff03e 100644 --- a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/__init__.py +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/__init__.py @@ -18,6 +18,13 @@ from huaweicloudsdkdrs.v5.model.async_create_job_resp import AsyncCreateJobResp from huaweicloudsdkdrs.v5.model.async_job_resp import AsyncJobResp from huaweicloudsdkdrs.v5.model.async_update_job_resp import AsyncUpdateJobResp +from huaweicloudsdkdrs.v5.model.backup_file_info import BackupFileInfo +from huaweicloudsdkdrs.v5.model.backup_file_resp import BackupFileResp +from huaweicloudsdkdrs.v5.model.backup_info import BackupInfo +from huaweicloudsdkdrs.v5.model.backup_info_resp import BackupInfoResp +from huaweicloudsdkdrs.v5.model.backup_job_base_info import BackupJobBaseInfo +from huaweicloudsdkdrs.v5.model.backup_job_endpoint_info import BackupJobEndpointInfo +from huaweicloudsdkdrs.v5.model.backup_restore_option_info import BackupRestoreOptionInfo from huaweicloudsdkdrs.v5.model.base_endpoint import BaseEndpoint from huaweicloudsdkdrs.v5.model.base_endpoint_config import BaseEndpointConfig from huaweicloudsdkdrs.v5.model.base_resp import BaseResp @@ -44,10 +51,14 @@ from huaweicloudsdkdrs.v5.model.batch_stop_jobs_action_response import BatchStopJobsActionResponse from huaweicloudsdkdrs.v5.model.batch_tag_action_request import BatchTagActionRequest from huaweicloudsdkdrs.v5.model.batch_tag_action_response import BatchTagActionResponse +from huaweicloudsdkdrs.v5.model.change_to_period_request import ChangeToPeriodRequest +from huaweicloudsdkdrs.v5.model.change_to_period_response import ChangeToPeriodResponse from huaweicloudsdkdrs.v5.model.check_data_filter_request import CheckDataFilterRequest from huaweicloudsdkdrs.v5.model.check_data_filter_response import CheckDataFilterResponse from huaweicloudsdkdrs.v5.model.check_job_name_req import CheckJobNameReq from huaweicloudsdkdrs.v5.model.children_job_list_resp import ChildrenJobListResp +from huaweicloudsdkdrs.v5.model.clean_alarms_request import CleanAlarmsRequest +from huaweicloudsdkdrs.v5.model.clean_alarms_response import CleanAlarmsResponse from huaweicloudsdkdrs.v5.model.clone_job_req import CloneJobReq from huaweicloudsdkdrs.v5.model.cloud_base_info import CloudBaseInfo from huaweicloudsdkdrs.v5.model.cloud_vpc_info import CloudVpcInfo @@ -65,7 +76,9 @@ from huaweicloudsdkdrs.v5.model.compare_job_info import CompareJobInfo from huaweicloudsdkdrs.v5.model.compare_result_info import CompareResultInfo from huaweicloudsdkdrs.v5.model.compare_task_params import CompareTaskParams +from huaweicloudsdkdrs.v5.model.connection_config import ConnectionConfig from huaweicloudsdkdrs.v5.model.connection_management import ConnectionManagement +from huaweicloudsdkdrs.v5.model.connection_resp import ConnectionResp from huaweicloudsdkdrs.v5.model.content_compare_detail_info import ContentCompareDetailInfo from huaweicloudsdkdrs.v5.model.content_compare_overview_info import ContentCompareOverviewInfo from huaweicloudsdkdrs.v5.model.content_diff_detail_info import ContentDiffDetailInfo @@ -74,9 +87,15 @@ from huaweicloudsdkdrs.v5.model.copy_job_response import CopyJobResponse from huaweicloudsdkdrs.v5.model.count_instance_by_tags_request import CountInstanceByTagsRequest from huaweicloudsdkdrs.v5.model.count_instance_by_tags_response import CountInstanceByTagsResponse +from huaweicloudsdkdrs.v5.model.create_connection_req import CreateConnectionReq +from huaweicloudsdkdrs.v5.model.create_connection_request import CreateConnectionRequest +from huaweicloudsdkdrs.v5.model.create_connection_response import CreateConnectionResponse from huaweicloudsdkdrs.v5.model.create_job_req import CreateJobReq from huaweicloudsdkdrs.v5.model.create_job_request import CreateJobRequest from huaweicloudsdkdrs.v5.model.create_job_response import CreateJobResponse +from huaweicloudsdkdrs.v5.model.create_offline_task_req import CreateOfflineTaskReq +from huaweicloudsdkdrs.v5.model.create_replication_job_request import CreateReplicationJobRequest +from huaweicloudsdkdrs.v5.model.create_replication_job_response import CreateReplicationJobResponse from huaweicloudsdkdrs.v5.model.customized_dns import CustomizedDns from huaweicloudsdkdrs.v5.model.data_filtering_condition import DataFilteringCondition from huaweicloudsdkdrs.v5.model.data_process_info import DataProcessInfo @@ -89,12 +108,17 @@ from huaweicloudsdkdrs.v5.model.db_or_table_rename_rule import DbOrTableRenameRule from huaweicloudsdkdrs.v5.model.db_param import DbParam from huaweicloudsdkdrs.v5.model.db_param_info import DbParamInfo +from huaweicloudsdkdrs.v5.model.ddl_alarm_resp import DdlAlarmResp +from huaweicloudsdkdrs.v5.model.delete_connection_request import DeleteConnectionRequest +from huaweicloudsdkdrs.v5.model.delete_connection_response import DeleteConnectionResponse from huaweicloudsdkdrs.v5.model.delete_driver_req import DeleteDriverReq from huaweicloudsdkdrs.v5.model.delete_jdbc_driver_request import DeleteJdbcDriverRequest from huaweicloudsdkdrs.v5.model.delete_jdbc_driver_response import DeleteJdbcDriverResponse from huaweicloudsdkdrs.v5.model.delete_job_request import DeleteJobRequest from huaweicloudsdkdrs.v5.model.delete_job_resp import DeleteJobResp from huaweicloudsdkdrs.v5.model.delete_job_response import DeleteJobResponse +from huaweicloudsdkdrs.v5.model.delete_replication_job_request import DeleteReplicationJobRequest +from huaweicloudsdkdrs.v5.model.delete_replication_job_response import DeleteReplicationJobResponse from huaweicloudsdkdrs.v5.model.delete_user_driver_req import DeleteUserDriverReq from huaweicloudsdkdrs.v5.model.delete_user_jdbc_driver_request import DeleteUserJdbcDriverRequest from huaweicloudsdkdrs.v5.model.delete_user_jdbc_driver_response import DeleteUserJdbcDriverResponse @@ -137,6 +161,8 @@ from huaweicloudsdkdrs.v5.model.list_async_job_detail_response import ListAsyncJobDetailResponse from huaweicloudsdkdrs.v5.model.list_async_jobs_request import ListAsyncJobsRequest from huaweicloudsdkdrs.v5.model.list_async_jobs_response import ListAsyncJobsResponse +from huaweicloudsdkdrs.v5.model.list_connections_request import ListConnectionsRequest +from huaweicloudsdkdrs.v5.model.list_connections_response import ListConnectionsResponse from huaweicloudsdkdrs.v5.model.list_db_objects_request import ListDbObjectsRequest from huaweicloudsdkdrs.v5.model.list_db_objects_response import ListDbObjectsResponse from huaweicloudsdkdrs.v5.model.list_instance_by_tags_request import ListInstanceByTagsRequest @@ -145,6 +171,8 @@ from huaweicloudsdkdrs.v5.model.list_instance_tags_response import ListInstanceTagsResponse from huaweicloudsdkdrs.v5.model.list_jdbc_drivers_request import ListJdbcDriversRequest from huaweicloudsdkdrs.v5.model.list_jdbc_drivers_response import ListJdbcDriversResponse +from huaweicloudsdkdrs.v5.model.list_job_ddls_request import ListJobDdlsRequest +from huaweicloudsdkdrs.v5.model.list_job_ddls_response import ListJobDdlsResponse from huaweicloudsdkdrs.v5.model.list_job_history_parameter import ListJobHistoryParameter from huaweicloudsdkdrs.v5.model.list_job_history_parameters_request import ListJobHistoryParametersRequest from huaweicloudsdkdrs.v5.model.list_job_history_parameters_response import ListJobHistoryParametersResponse @@ -156,6 +184,8 @@ from huaweicloudsdkdrs.v5.model.list_links_response import ListLinksResponse from huaweicloudsdkdrs.v5.model.list_project_tags_request import ListProjectTagsRequest from huaweicloudsdkdrs.v5.model.list_project_tags_response import ListProjectTagsResponse +from huaweicloudsdkdrs.v5.model.list_replication_jobs_request import ListReplicationJobsRequest +from huaweicloudsdkdrs.v5.model.list_replication_jobs_response import ListReplicationJobsResponse from huaweicloudsdkdrs.v5.model.list_tags_request import ListTagsRequest from huaweicloudsdkdrs.v5.model.list_tags_response import ListTagsResponse from huaweicloudsdkdrs.v5.model.list_user_jdbc_drivers_request import ListUserJdbcDriversRequest @@ -164,6 +194,9 @@ from huaweicloudsdkdrs.v5.model.lists_agency_permissions_response import ListsAgencyPermissionsResponse from huaweicloudsdkdrs.v5.model.migration_object_overview_info import MigrationObjectOverviewInfo from huaweicloudsdkdrs.v5.model.modify_compare_policy_req import ModifyComparePolicyReq +from huaweicloudsdkdrs.v5.model.modify_connection_request import ModifyConnectionRequest +from huaweicloudsdkdrs.v5.model.modify_connection_response import ModifyConnectionResponse +from huaweicloudsdkdrs.v5.model.modify_offline_task_req import ModifyOfflineTaskReq from huaweicloudsdkdrs.v5.model.modify_parameter_req import ModifyParameterReq from huaweicloudsdkdrs.v5.model.modify_start_position_req import ModifyStartPositionReq from huaweicloudsdkdrs.v5.model.modify_tuning_params import ModifyTuningParams @@ -171,6 +204,7 @@ from huaweicloudsdkdrs.v5.model.objects_compare_overview_info import ObjectsCompareOverviewInfo from huaweicloudsdkdrs.v5.model.objects_compare_task_info import ObjectsCompareTaskInfo from huaweicloudsdkdrs.v5.model.objects_health_compare_overview_info import ObjectsHealthCompareOverviewInfo +from huaweicloudsdkdrs.v5.model.offline_task_info import OfflineTaskInfo from huaweicloudsdkdrs.v5.model.parameter_config import ParameterConfig from huaweicloudsdkdrs.v5.model.parameter_info import ParameterInfo from huaweicloudsdkdrs.v5.model.period_order_info import PeriodOrderInfo @@ -252,6 +286,8 @@ from huaweicloudsdkdrs.v5.model.show_progress_data_response import ShowProgressDataResponse from huaweicloudsdkdrs.v5.model.show_replay_results_request import ShowReplayResultsRequest from huaweicloudsdkdrs.v5.model.show_replay_results_response import ShowReplayResultsResponse +from huaweicloudsdkdrs.v5.model.show_replication_job_request import ShowReplicationJobRequest +from huaweicloudsdkdrs.v5.model.show_replication_job_response import ShowReplicationJobResponse from huaweicloudsdkdrs.v5.model.show_support_object_type_request import ShowSupportObjectTypeRequest from huaweicloudsdkdrs.v5.model.show_support_object_type_response import ShowSupportObjectTypeResponse from huaweicloudsdkdrs.v5.model.show_update_object_saving_status_request import ShowUpdateObjectSavingStatusRequest @@ -275,12 +311,14 @@ from huaweicloudsdkdrs.v5.model.tag_match import TagMatch from huaweicloudsdkdrs.v5.model.target_root_db import TargetRootDb from huaweicloudsdkdrs.v5.model.task_log_info import TaskLogInfo +from huaweicloudsdkdrs.v5.model.to_period_req import ToPeriodReq from huaweicloudsdkdrs.v5.model.tuning_param_info import TuningParamInfo from huaweicloudsdkdrs.v5.model.tuning_parameter import TuningParameter from huaweicloudsdkdrs.v5.model.update_batch_async_jobs_request import UpdateBatchAsyncJobsRequest from huaweicloudsdkdrs.v5.model.update_batch_async_jobs_response import UpdateBatchAsyncJobsResponse from huaweicloudsdkdrs.v5.model.update_compare_policy_request import UpdateComparePolicyRequest from huaweicloudsdkdrs.v5.model.update_compare_policy_response import UpdateComparePolicyResponse +from huaweicloudsdkdrs.v5.model.update_connection_req import UpdateConnectionReq from huaweicloudsdkdrs.v5.model.update_data_progress_request import UpdateDataProgressRequest from huaweicloudsdkdrs.v5.model.update_data_progress_response import UpdateDataProgressResponse from huaweicloudsdkdrs.v5.model.update_driver_req import UpdateDriverReq @@ -290,6 +328,8 @@ from huaweicloudsdkdrs.v5.model.update_job_req import UpdateJobReq from huaweicloudsdkdrs.v5.model.update_job_request import UpdateJobRequest from huaweicloudsdkdrs.v5.model.update_job_response import UpdateJobResponse +from huaweicloudsdkdrs.v5.model.update_replication_job_request import UpdateReplicationJobRequest +from huaweicloudsdkdrs.v5.model.update_replication_job_response import UpdateReplicationJobResponse from huaweicloudsdkdrs.v5.model.update_start_position_request import UpdateStartPositionRequest from huaweicloudsdkdrs.v5.model.update_start_position_response import UpdateStartPositionResponse from huaweicloudsdkdrs.v5.model.update_user_driver_req import UpdateUserDriverReq diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/drs_async_client.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/drs_async_client.py index 7954ed548c..5a5666e771 100644 --- a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/drs_async_client.py +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/drs_async_client.py @@ -513,6 +513,75 @@ def _batch_tag_action_http_info(self, request): return http_info + def change_to_period_async(self, request): + """按需转包周期 + + DRS同步和灾备任务按需计费转包周期计费。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ChangeToPeriod + :type request: :class:`huaweicloudsdkdrs.v5.ChangeToPeriodRequest` + :rtype: :class:`huaweicloudsdkdrs.v5.ChangeToPeriodResponse` + """ + http_info = self._change_to_period_http_info(request) + return self._call_api(**http_info) + + def change_to_period_async_invoker(self, request): + http_info = self._change_to_period_http_info(request) + return AsyncInvoker(self, http_info) + + def _change_to_period_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v5/{project_id}/job/{job_id}/change-to-period", + "request_type": request.__class__.__name__, + "response_type": "ChangeToPeriodResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def check_data_filter_async(self, request): """数据过滤规则校验 @@ -582,6 +651,75 @@ def _check_data_filter_http_info(self, request): return http_info + def clean_alarms_async(self, request): + """清除DDL告警 + + 清除DDL告警 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CleanAlarms + :type request: :class:`huaweicloudsdkdrs.v5.CleanAlarmsRequest` + :rtype: :class:`huaweicloudsdkdrs.v5.CleanAlarmsResponse` + """ + http_info = self._clean_alarms_http_info(request) + return self._call_api(**http_info) + + def clean_alarms_async_invoker(self, request): + http_info = self._clean_alarms_http_info(request) + return AsyncInvoker(self, http_info) + + def _clean_alarms_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v5/{project_id}/jobs/{job_id}/alarms/{alarm_id}/clean", + "request_type": request.__class__.__name__, + "response_type": "CleanAlarmsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + if 'alarm_id' in local_var_params: + path_params['alarm_id'] = local_var_params['alarm_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def collect_columns_async(self, request): """采集指定数据库表的列信息 @@ -1076,6 +1214,73 @@ def _count_instance_by_tags_http_info(self, request): return http_info + def create_connection_async(self, request): + """创建连接 + + 创建单个连接,该连接可以为线下自建库或云上RDS等,目前支持的数据库引擎包括MySQL、PostgreSQL、Oracle和MongoDB。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateConnection + :type request: :class:`huaweicloudsdkdrs.v5.CreateConnectionRequest` + :rtype: :class:`huaweicloudsdkdrs.v5.CreateConnectionResponse` + """ + http_info = self._create_connection_http_info(request) + return self._call_api(**http_info) + + def create_connection_async_invoker(self, request): + http_info = self._create_connection_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_connection_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v5/{project_id}/connections", + "request_type": request.__class__.__name__, + "response_type": "CreateConnectionResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_job_async(self, request): """创建任务 @@ -1143,8 +1348,146 @@ def _create_job_http_info(self, request): return http_info + def create_replication_job_async(self, request): + """创建备份迁移任务 + + 该接口主要用于三种常见场景下备份迁移任务的配置。 + 备份迁移支持如下的常见场景: + - 通过OBS桶备份文件进行全量数据迁移。 + - 通过OBS桶备份文件进行全量+增量数据迁移。 + - 通过RDS全量备份进行全量数据迁移。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateReplicationJob + :type request: :class:`huaweicloudsdkdrs.v5.CreateReplicationJobRequest` + :rtype: :class:`huaweicloudsdkdrs.v5.CreateReplicationJobResponse` + """ + http_info = self._create_replication_job_http_info(request) + return self._call_api(**http_info) + + def create_replication_job_async_invoker(self, request): + http_info = self._create_replication_job_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_replication_job_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v5/{project_id}/backup-migration-jobs", + "request_type": request.__class__.__name__, + "response_type": "CreateReplicationJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def delete_connection_async(self, request): + """删除连接 + + 删除租户指定的连接。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteConnection + :type request: :class:`huaweicloudsdkdrs.v5.DeleteConnectionRequest` + :rtype: :class:`huaweicloudsdkdrs.v5.DeleteConnectionResponse` + """ + http_info = self._delete_connection_http_info(request) + return self._call_api(**http_info) + + def delete_connection_async_invoker(self, request): + http_info = self._delete_connection_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_connection_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v5/{project_id}/connections/{connection_id}", + "request_type": request.__class__.__name__, + "response_type": "DeleteConnectionResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'connection_id' in local_var_params: + path_params['connection_id'] = local_var_params['connection_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def delete_jdbc_driver_async(self, request): - """删除驱动文件 + """删除驱动文件(不再推广) 删除驱动文件。 @@ -1277,6 +1620,73 @@ def _delete_job_http_info(self, request): return http_info + def delete_replication_job_async(self, request): + """删除备份迁移任务 + + 对于已经完成的备份迁移任务,可以选择删除迁移任务。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteReplicationJob + :type request: :class:`huaweicloudsdkdrs.v5.DeleteReplicationJobRequest` + :rtype: :class:`huaweicloudsdkdrs.v5.DeleteReplicationJobResponse` + """ + http_info = self._delete_replication_job_http_info(request) + return self._call_api(**http_info) + + def delete_replication_job_async_invoker(self, request): + http_info = self._delete_replication_job_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_replication_job_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v5/{project_id}/backup-migration-jobs/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "DeleteReplicationJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def delete_user_jdbc_driver_async(self, request): """删除驱动文件 @@ -1835,6 +2245,97 @@ def _list_async_jobs_http_info(self, request): return http_info + def list_connections_async(self, request): + """查询连接列表 + + 查询连接列表,可根据连接类型进行查询。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListConnections + :type request: :class:`huaweicloudsdkdrs.v5.ListConnectionsRequest` + :rtype: :class:`huaweicloudsdkdrs.v5.ListConnectionsResponse` + """ + http_info = self._list_connections_http_info(request) + return self._call_api(**http_info) + + def list_connections_async_invoker(self, request): + http_info = self._list_connections_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_connections_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v5/{project_id}/connections", + "request_type": request.__class__.__name__, + "response_type": "ListConnectionsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'connection_id' in local_var_params: + query_params.append(('connection_id', local_var_params['connection_id'])) + if 'db_type' in local_var_params: + query_params.append(('db_type', local_var_params['db_type'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'inst_id' in local_var_params: + query_params.append(('inst_id', local_var_params['inst_id'])) + if 'ip' in local_var_params: + query_params.append(('ip', local_var_params['ip'])) + if 'description' in local_var_params: + query_params.append(('description', local_var_params['description'])) + if 'create_time' in local_var_params: + query_params.append(('create_time', local_var_params['create_time'])) + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'fetch_all' in local_var_params: + query_params.append(('fetch_all', local_var_params['fetch_all'])) + if 'sort_key' in local_var_params: + query_params.append(('sort_key', local_var_params['sort_key'])) + if 'sort_dir' in local_var_params: + query_params.append(('sort_dir', local_var_params['sort_dir'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_db_objects_async(self, request): """查询数据库对象信息 @@ -2053,31 +2554,100 @@ def _list_instance_tags_http_info(self, request): return http_info - def list_jdbc_drivers_async(self, request): - """查询驱动文件列表 + def list_jdbc_drivers_async(self, request): + """查询驱动文件列表(不再推广) + + 查询驱动文件列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListJdbcDrivers + :type request: :class:`huaweicloudsdkdrs.v5.ListJdbcDriversRequest` + :rtype: :class:`huaweicloudsdkdrs.v5.ListJdbcDriversResponse` + """ + http_info = self._list_jdbc_drivers_http_info(request) + return self._call_api(**http_info) + + def list_jdbc_drivers_async_invoker(self, request): + http_info = self._list_jdbc_drivers_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_jdbc_drivers_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v5/{project_id}/jdbc-drivers", + "request_type": request.__class__.__name__, + "response_type": "ListJdbcDriversResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_job_ddls_async(self, request): + """查询增量DDL列表 - 查询驱动文件列表。 + 查询增量DDL列表,可根据status查询 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListJdbcDrivers - :type request: :class:`huaweicloudsdkdrs.v5.ListJdbcDriversRequest` - :rtype: :class:`huaweicloudsdkdrs.v5.ListJdbcDriversResponse` + :param request: Request instance for ListJobDdls + :type request: :class:`huaweicloudsdkdrs.v5.ListJobDdlsRequest` + :rtype: :class:`huaweicloudsdkdrs.v5.ListJobDdlsResponse` """ - http_info = self._list_jdbc_drivers_http_info(request) + http_info = self._list_job_ddls_http_info(request) return self._call_api(**http_info) - def list_jdbc_drivers_async_invoker(self, request): - http_info = self._list_jdbc_drivers_http_info(request) + def list_job_ddls_async_invoker(self, request): + http_info = self._list_job_ddls_http_info(request) return AsyncInvoker(self, http_info) - def _list_jdbc_drivers_http_info(self, request): + def _list_job_ddls_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v5/{project_id}/jdbc-drivers", + "resource_path": "/v5/{project_id}/jobs/{job_id}/ddl", "request_type": request.__class__.__name__, - "response_type": "ListJdbcDriversResponse" + "response_type": "ListJobDdlsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2087,12 +2657,20 @@ def _list_jdbc_drivers_http_info(self, request): collection_formats = {} path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] query_params = [] - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) if 'offset' in local_var_params: query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'start_seq_no' in local_var_params: + query_params.append(('start_seq_no', local_var_params['start_seq_no'])) + if 'end_seq_no' in local_var_params: + query_params.append(('end_seq_no', local_var_params['end_seq_no'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) header_params = {} if 'x_language' in local_var_params: @@ -2502,6 +3080,96 @@ def _list_project_tags_http_info(self, request): return http_info + def list_replication_jobs_async(self, request): + """查询备份迁移任务列表 + + 获取当前备份迁移任务列表,不包含已删除的任务。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListReplicationJobs + :type request: :class:`huaweicloudsdkdrs.v5.ListReplicationJobsRequest` + :rtype: :class:`huaweicloudsdkdrs.v5.ListReplicationJobsResponse` + """ + http_info = self._list_replication_jobs_http_info(request) + return self._call_api(**http_info) + + def list_replication_jobs_async_invoker(self, request): + http_info = self._list_replication_jobs_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_replication_jobs_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v5/{project_id}/backup-migration-jobs", + "request_type": request.__class__.__name__, + "response_type": "ListReplicationJobsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + if 'dbs_instance_ids' in local_var_params: + query_params.append(('dbs_instance_ids', local_var_params['dbs_instance_ids'])) + collection_formats['dbs_instance_ids'] = 'csv' + if 'description' in local_var_params: + query_params.append(('description', local_var_params['description'])) + if 'create_at' in local_var_params: + query_params.append(('create_at', local_var_params['create_at'])) + if 'completed_at' in local_var_params: + query_params.append(('completed_at', local_var_params['completed_at'])) + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'sort_key' in local_var_params: + query_params.append(('sort_key', local_var_params['sort_key'])) + if 'sort_dir' in local_var_params: + query_params.append(('sort_dir', local_var_params['sort_dir'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_tags_async(self, request): """查询项目标签 @@ -2711,6 +3379,75 @@ def _lists_agency_permissions_http_info(self, request): return http_info + def modify_connection_async(self, request): + """修改连接 + + 修改创建的连接信息。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ModifyConnection + :type request: :class:`huaweicloudsdkdrs.v5.ModifyConnectionRequest` + :rtype: :class:`huaweicloudsdkdrs.v5.ModifyConnectionResponse` + """ + http_info = self._modify_connection_http_info(request) + return self._call_api(**http_info) + + def modify_connection_async_invoker(self, request): + http_info = self._modify_connection_http_info(request) + return AsyncInvoker(self, http_info) + + def _modify_connection_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v5/{project_id}/connections/{connection_id}", + "request_type": request.__class__.__name__, + "response_type": "ModifyConnectionResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'connection_id' in local_var_params: + path_params['connection_id'] = local_var_params['connection_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_actions_async(self, request): """获取指定任务操作信息 @@ -4433,6 +5170,73 @@ def _show_replay_results_http_info(self, request): return http_info + def show_replication_job_async(self, request): + """查询备份迁移任务详细信息 + + 获取指定备份迁移任务详细信息。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowReplicationJob + :type request: :class:`huaweicloudsdkdrs.v5.ShowReplicationJobRequest` + :rtype: :class:`huaweicloudsdkdrs.v5.ShowReplicationJobResponse` + """ + http_info = self._show_replication_job_http_info(request) + return self._call_api(**http_info) + + def show_replication_job_async_invoker(self, request): + http_info = self._show_replication_job_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_replication_job_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v5/{project_id}/backup-migration-jobs/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowReplicationJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_support_object_type_async(self, request): """查询是否支持对象选择和列映射 @@ -4639,7 +5443,7 @@ def _stop_job_action_http_info(self, request): return http_info def sync_jdbc_driver_async(self, request): - """同步驱动文件 + """同步驱动文件(不再推广) 同步驱动文件。 @@ -5123,6 +5927,75 @@ def _update_job_configurations_http_info(self, request): return http_info + def update_replication_job_async(self, request): + """修改备份迁移任务信息 + + 修改指定备份迁移任务信息,任务名与任务描述。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateReplicationJob + :type request: :class:`huaweicloudsdkdrs.v5.UpdateReplicationJobRequest` + :rtype: :class:`huaweicloudsdkdrs.v5.UpdateReplicationJobResponse` + """ + http_info = self._update_replication_job_http_info(request) + return self._call_api(**http_info) + + def update_replication_job_async_invoker(self, request): + http_info = self._update_replication_job_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_replication_job_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v5/{project_id}/backup-migration-jobs/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "UpdateReplicationJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def update_start_position_async(self, request): """更新增量任务启动位点 @@ -5267,7 +6140,7 @@ def _upload_db_object_template_http_info(self, request): return http_info def upload_jdbc_driver_async(self, request): - """上传驱动文件 + """上传驱动文件(不再推广) 上传驱动文件。 diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/drs_client.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/drs_client.py index 04e8baee5a..36431c8906 100644 --- a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/drs_client.py +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/drs_client.py @@ -513,6 +513,75 @@ def _batch_tag_action_http_info(cls, request): return http_info + def change_to_period(self, request): + """按需转包周期 + + DRS同步和灾备任务按需计费转包周期计费。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ChangeToPeriod + :type request: :class:`huaweicloudsdkdrs.v5.ChangeToPeriodRequest` + :rtype: :class:`huaweicloudsdkdrs.v5.ChangeToPeriodResponse` + """ + http_info = self._change_to_period_http_info(request) + return self._call_api(**http_info) + + def change_to_period_invoker(self, request): + http_info = self._change_to_period_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _change_to_period_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v5/{project_id}/job/{job_id}/change-to-period", + "request_type": request.__class__.__name__, + "response_type": "ChangeToPeriodResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def check_data_filter(self, request): """数据过滤规则校验 @@ -582,6 +651,75 @@ def _check_data_filter_http_info(cls, request): return http_info + def clean_alarms(self, request): + """清除DDL告警 + + 清除DDL告警 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CleanAlarms + :type request: :class:`huaweicloudsdkdrs.v5.CleanAlarmsRequest` + :rtype: :class:`huaweicloudsdkdrs.v5.CleanAlarmsResponse` + """ + http_info = self._clean_alarms_http_info(request) + return self._call_api(**http_info) + + def clean_alarms_invoker(self, request): + http_info = self._clean_alarms_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _clean_alarms_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v5/{project_id}/jobs/{job_id}/alarms/{alarm_id}/clean", + "request_type": request.__class__.__name__, + "response_type": "CleanAlarmsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + if 'alarm_id' in local_var_params: + path_params['alarm_id'] = local_var_params['alarm_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def collect_columns(self, request): """采集指定数据库表的列信息 @@ -1076,6 +1214,73 @@ def _count_instance_by_tags_http_info(cls, request): return http_info + def create_connection(self, request): + """创建连接 + + 创建单个连接,该连接可以为线下自建库或云上RDS等,目前支持的数据库引擎包括MySQL、PostgreSQL、Oracle和MongoDB。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateConnection + :type request: :class:`huaweicloudsdkdrs.v5.CreateConnectionRequest` + :rtype: :class:`huaweicloudsdkdrs.v5.CreateConnectionResponse` + """ + http_info = self._create_connection_http_info(request) + return self._call_api(**http_info) + + def create_connection_invoker(self, request): + http_info = self._create_connection_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_connection_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v5/{project_id}/connections", + "request_type": request.__class__.__name__, + "response_type": "CreateConnectionResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_job(self, request): """创建任务 @@ -1143,8 +1348,146 @@ def _create_job_http_info(cls, request): return http_info + def create_replication_job(self, request): + """创建备份迁移任务 + + 该接口主要用于三种常见场景下备份迁移任务的配置。 + 备份迁移支持如下的常见场景: + - 通过OBS桶备份文件进行全量数据迁移。 + - 通过OBS桶备份文件进行全量+增量数据迁移。 + - 通过RDS全量备份进行全量数据迁移。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateReplicationJob + :type request: :class:`huaweicloudsdkdrs.v5.CreateReplicationJobRequest` + :rtype: :class:`huaweicloudsdkdrs.v5.CreateReplicationJobResponse` + """ + http_info = self._create_replication_job_http_info(request) + return self._call_api(**http_info) + + def create_replication_job_invoker(self, request): + http_info = self._create_replication_job_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_replication_job_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v5/{project_id}/backup-migration-jobs", + "request_type": request.__class__.__name__, + "response_type": "CreateReplicationJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def delete_connection(self, request): + """删除连接 + + 删除租户指定的连接。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteConnection + :type request: :class:`huaweicloudsdkdrs.v5.DeleteConnectionRequest` + :rtype: :class:`huaweicloudsdkdrs.v5.DeleteConnectionResponse` + """ + http_info = self._delete_connection_http_info(request) + return self._call_api(**http_info) + + def delete_connection_invoker(self, request): + http_info = self._delete_connection_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_connection_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v5/{project_id}/connections/{connection_id}", + "request_type": request.__class__.__name__, + "response_type": "DeleteConnectionResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'connection_id' in local_var_params: + path_params['connection_id'] = local_var_params['connection_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def delete_jdbc_driver(self, request): - """删除驱动文件 + """删除驱动文件(不再推广) 删除驱动文件。 @@ -1277,6 +1620,73 @@ def _delete_job_http_info(cls, request): return http_info + def delete_replication_job(self, request): + """删除备份迁移任务 + + 对于已经完成的备份迁移任务,可以选择删除迁移任务。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteReplicationJob + :type request: :class:`huaweicloudsdkdrs.v5.DeleteReplicationJobRequest` + :rtype: :class:`huaweicloudsdkdrs.v5.DeleteReplicationJobResponse` + """ + http_info = self._delete_replication_job_http_info(request) + return self._call_api(**http_info) + + def delete_replication_job_invoker(self, request): + http_info = self._delete_replication_job_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_replication_job_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v5/{project_id}/backup-migration-jobs/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "DeleteReplicationJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def delete_user_jdbc_driver(self, request): """删除驱动文件 @@ -1835,6 +2245,97 @@ def _list_async_jobs_http_info(cls, request): return http_info + def list_connections(self, request): + """查询连接列表 + + 查询连接列表,可根据连接类型进行查询。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListConnections + :type request: :class:`huaweicloudsdkdrs.v5.ListConnectionsRequest` + :rtype: :class:`huaweicloudsdkdrs.v5.ListConnectionsResponse` + """ + http_info = self._list_connections_http_info(request) + return self._call_api(**http_info) + + def list_connections_invoker(self, request): + http_info = self._list_connections_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_connections_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v5/{project_id}/connections", + "request_type": request.__class__.__name__, + "response_type": "ListConnectionsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'connection_id' in local_var_params: + query_params.append(('connection_id', local_var_params['connection_id'])) + if 'db_type' in local_var_params: + query_params.append(('db_type', local_var_params['db_type'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'inst_id' in local_var_params: + query_params.append(('inst_id', local_var_params['inst_id'])) + if 'ip' in local_var_params: + query_params.append(('ip', local_var_params['ip'])) + if 'description' in local_var_params: + query_params.append(('description', local_var_params['description'])) + if 'create_time' in local_var_params: + query_params.append(('create_time', local_var_params['create_time'])) + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'fetch_all' in local_var_params: + query_params.append(('fetch_all', local_var_params['fetch_all'])) + if 'sort_key' in local_var_params: + query_params.append(('sort_key', local_var_params['sort_key'])) + if 'sort_dir' in local_var_params: + query_params.append(('sort_dir', local_var_params['sort_dir'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_db_objects(self, request): """查询数据库对象信息 @@ -2053,31 +2554,100 @@ def _list_instance_tags_http_info(cls, request): return http_info - def list_jdbc_drivers(self, request): - """查询驱动文件列表 + def list_jdbc_drivers(self, request): + """查询驱动文件列表(不再推广) + + 查询驱动文件列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListJdbcDrivers + :type request: :class:`huaweicloudsdkdrs.v5.ListJdbcDriversRequest` + :rtype: :class:`huaweicloudsdkdrs.v5.ListJdbcDriversResponse` + """ + http_info = self._list_jdbc_drivers_http_info(request) + return self._call_api(**http_info) + + def list_jdbc_drivers_invoker(self, request): + http_info = self._list_jdbc_drivers_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_jdbc_drivers_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v5/{project_id}/jdbc-drivers", + "request_type": request.__class__.__name__, + "response_type": "ListJdbcDriversResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_job_ddls(self, request): + """查询增量DDL列表 - 查询驱动文件列表。 + 查询增量DDL列表,可根据status查询 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListJdbcDrivers - :type request: :class:`huaweicloudsdkdrs.v5.ListJdbcDriversRequest` - :rtype: :class:`huaweicloudsdkdrs.v5.ListJdbcDriversResponse` + :param request: Request instance for ListJobDdls + :type request: :class:`huaweicloudsdkdrs.v5.ListJobDdlsRequest` + :rtype: :class:`huaweicloudsdkdrs.v5.ListJobDdlsResponse` """ - http_info = self._list_jdbc_drivers_http_info(request) + http_info = self._list_job_ddls_http_info(request) return self._call_api(**http_info) - def list_jdbc_drivers_invoker(self, request): - http_info = self._list_jdbc_drivers_http_info(request) + def list_job_ddls_invoker(self, request): + http_info = self._list_job_ddls_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_jdbc_drivers_http_info(cls, request): + def _list_job_ddls_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v5/{project_id}/jdbc-drivers", + "resource_path": "/v5/{project_id}/jobs/{job_id}/ddl", "request_type": request.__class__.__name__, - "response_type": "ListJdbcDriversResponse" + "response_type": "ListJobDdlsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2087,12 +2657,20 @@ def _list_jdbc_drivers_http_info(cls, request): collection_formats = {} path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] query_params = [] - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) if 'offset' in local_var_params: query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'start_seq_no' in local_var_params: + query_params.append(('start_seq_no', local_var_params['start_seq_no'])) + if 'end_seq_no' in local_var_params: + query_params.append(('end_seq_no', local_var_params['end_seq_no'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) header_params = {} if 'x_language' in local_var_params: @@ -2502,6 +3080,96 @@ def _list_project_tags_http_info(cls, request): return http_info + def list_replication_jobs(self, request): + """查询备份迁移任务列表 + + 获取当前备份迁移任务列表,不包含已删除的任务。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListReplicationJobs + :type request: :class:`huaweicloudsdkdrs.v5.ListReplicationJobsRequest` + :rtype: :class:`huaweicloudsdkdrs.v5.ListReplicationJobsResponse` + """ + http_info = self._list_replication_jobs_http_info(request) + return self._call_api(**http_info) + + def list_replication_jobs_invoker(self, request): + http_info = self._list_replication_jobs_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_replication_jobs_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v5/{project_id}/backup-migration-jobs", + "request_type": request.__class__.__name__, + "response_type": "ListReplicationJobsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + if 'dbs_instance_ids' in local_var_params: + query_params.append(('dbs_instance_ids', local_var_params['dbs_instance_ids'])) + collection_formats['dbs_instance_ids'] = 'csv' + if 'description' in local_var_params: + query_params.append(('description', local_var_params['description'])) + if 'create_at' in local_var_params: + query_params.append(('create_at', local_var_params['create_at'])) + if 'completed_at' in local_var_params: + query_params.append(('completed_at', local_var_params['completed_at'])) + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'sort_key' in local_var_params: + query_params.append(('sort_key', local_var_params['sort_key'])) + if 'sort_dir' in local_var_params: + query_params.append(('sort_dir', local_var_params['sort_dir'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_tags(self, request): """查询项目标签 @@ -2711,6 +3379,75 @@ def _lists_agency_permissions_http_info(cls, request): return http_info + def modify_connection(self, request): + """修改连接 + + 修改创建的连接信息。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ModifyConnection + :type request: :class:`huaweicloudsdkdrs.v5.ModifyConnectionRequest` + :rtype: :class:`huaweicloudsdkdrs.v5.ModifyConnectionResponse` + """ + http_info = self._modify_connection_http_info(request) + return self._call_api(**http_info) + + def modify_connection_invoker(self, request): + http_info = self._modify_connection_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _modify_connection_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v5/{project_id}/connections/{connection_id}", + "request_type": request.__class__.__name__, + "response_type": "ModifyConnectionResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'connection_id' in local_var_params: + path_params['connection_id'] = local_var_params['connection_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_actions(self, request): """获取指定任务操作信息 @@ -4433,6 +5170,73 @@ def _show_replay_results_http_info(cls, request): return http_info + def show_replication_job(self, request): + """查询备份迁移任务详细信息 + + 获取指定备份迁移任务详细信息。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowReplicationJob + :type request: :class:`huaweicloudsdkdrs.v5.ShowReplicationJobRequest` + :rtype: :class:`huaweicloudsdkdrs.v5.ShowReplicationJobResponse` + """ + http_info = self._show_replication_job_http_info(request) + return self._call_api(**http_info) + + def show_replication_job_invoker(self, request): + http_info = self._show_replication_job_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_replication_job_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v5/{project_id}/backup-migration-jobs/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowReplicationJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_support_object_type(self, request): """查询是否支持对象选择和列映射 @@ -4639,7 +5443,7 @@ def _stop_job_action_http_info(cls, request): return http_info def sync_jdbc_driver(self, request): - """同步驱动文件 + """同步驱动文件(不再推广) 同步驱动文件。 @@ -5123,6 +5927,75 @@ def _update_job_configurations_http_info(cls, request): return http_info + def update_replication_job(self, request): + """修改备份迁移任务信息 + + 修改指定备份迁移任务信息,任务名与任务描述。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateReplicationJob + :type request: :class:`huaweicloudsdkdrs.v5.UpdateReplicationJobRequest` + :rtype: :class:`huaweicloudsdkdrs.v5.UpdateReplicationJobResponse` + """ + http_info = self._update_replication_job_http_info(request) + return self._call_api(**http_info) + + def update_replication_job_invoker(self, request): + http_info = self._update_replication_job_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_replication_job_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v5/{project_id}/backup-migration-jobs/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "UpdateReplicationJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def update_start_position(self, request): """更新增量任务启动位点 @@ -5267,7 +6140,7 @@ def _upload_db_object_template_http_info(cls, request): return http_info def upload_jdbc_driver(self, request): - """上传驱动文件 + """上传驱动文件(不再推广) 上传驱动文件。 diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/__init__.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/__init__.py index e0a0c96aba..592f830edd 100644 --- a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/__init__.py +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/__init__.py @@ -16,6 +16,13 @@ from huaweicloudsdkdrs.v5.model.async_create_job_resp import AsyncCreateJobResp from huaweicloudsdkdrs.v5.model.async_job_resp import AsyncJobResp from huaweicloudsdkdrs.v5.model.async_update_job_resp import AsyncUpdateJobResp +from huaweicloudsdkdrs.v5.model.backup_file_info import BackupFileInfo +from huaweicloudsdkdrs.v5.model.backup_file_resp import BackupFileResp +from huaweicloudsdkdrs.v5.model.backup_info import BackupInfo +from huaweicloudsdkdrs.v5.model.backup_info_resp import BackupInfoResp +from huaweicloudsdkdrs.v5.model.backup_job_base_info import BackupJobBaseInfo +from huaweicloudsdkdrs.v5.model.backup_job_endpoint_info import BackupJobEndpointInfo +from huaweicloudsdkdrs.v5.model.backup_restore_option_info import BackupRestoreOptionInfo from huaweicloudsdkdrs.v5.model.base_endpoint import BaseEndpoint from huaweicloudsdkdrs.v5.model.base_endpoint_config import BaseEndpointConfig from huaweicloudsdkdrs.v5.model.base_resp import BaseResp @@ -42,10 +49,14 @@ from huaweicloudsdkdrs.v5.model.batch_stop_jobs_action_response import BatchStopJobsActionResponse from huaweicloudsdkdrs.v5.model.batch_tag_action_request import BatchTagActionRequest from huaweicloudsdkdrs.v5.model.batch_tag_action_response import BatchTagActionResponse +from huaweicloudsdkdrs.v5.model.change_to_period_request import ChangeToPeriodRequest +from huaweicloudsdkdrs.v5.model.change_to_period_response import ChangeToPeriodResponse from huaweicloudsdkdrs.v5.model.check_data_filter_request import CheckDataFilterRequest from huaweicloudsdkdrs.v5.model.check_data_filter_response import CheckDataFilterResponse from huaweicloudsdkdrs.v5.model.check_job_name_req import CheckJobNameReq from huaweicloudsdkdrs.v5.model.children_job_list_resp import ChildrenJobListResp +from huaweicloudsdkdrs.v5.model.clean_alarms_request import CleanAlarmsRequest +from huaweicloudsdkdrs.v5.model.clean_alarms_response import CleanAlarmsResponse from huaweicloudsdkdrs.v5.model.clone_job_req import CloneJobReq from huaweicloudsdkdrs.v5.model.cloud_base_info import CloudBaseInfo from huaweicloudsdkdrs.v5.model.cloud_vpc_info import CloudVpcInfo @@ -63,7 +74,9 @@ from huaweicloudsdkdrs.v5.model.compare_job_info import CompareJobInfo from huaweicloudsdkdrs.v5.model.compare_result_info import CompareResultInfo from huaweicloudsdkdrs.v5.model.compare_task_params import CompareTaskParams +from huaweicloudsdkdrs.v5.model.connection_config import ConnectionConfig from huaweicloudsdkdrs.v5.model.connection_management import ConnectionManagement +from huaweicloudsdkdrs.v5.model.connection_resp import ConnectionResp from huaweicloudsdkdrs.v5.model.content_compare_detail_info import ContentCompareDetailInfo from huaweicloudsdkdrs.v5.model.content_compare_overview_info import ContentCompareOverviewInfo from huaweicloudsdkdrs.v5.model.content_diff_detail_info import ContentDiffDetailInfo @@ -72,9 +85,15 @@ from huaweicloudsdkdrs.v5.model.copy_job_response import CopyJobResponse from huaweicloudsdkdrs.v5.model.count_instance_by_tags_request import CountInstanceByTagsRequest from huaweicloudsdkdrs.v5.model.count_instance_by_tags_response import CountInstanceByTagsResponse +from huaweicloudsdkdrs.v5.model.create_connection_req import CreateConnectionReq +from huaweicloudsdkdrs.v5.model.create_connection_request import CreateConnectionRequest +from huaweicloudsdkdrs.v5.model.create_connection_response import CreateConnectionResponse from huaweicloudsdkdrs.v5.model.create_job_req import CreateJobReq from huaweicloudsdkdrs.v5.model.create_job_request import CreateJobRequest from huaweicloudsdkdrs.v5.model.create_job_response import CreateJobResponse +from huaweicloudsdkdrs.v5.model.create_offline_task_req import CreateOfflineTaskReq +from huaweicloudsdkdrs.v5.model.create_replication_job_request import CreateReplicationJobRequest +from huaweicloudsdkdrs.v5.model.create_replication_job_response import CreateReplicationJobResponse from huaweicloudsdkdrs.v5.model.customized_dns import CustomizedDns from huaweicloudsdkdrs.v5.model.data_filtering_condition import DataFilteringCondition from huaweicloudsdkdrs.v5.model.data_process_info import DataProcessInfo @@ -87,12 +106,17 @@ from huaweicloudsdkdrs.v5.model.db_or_table_rename_rule import DbOrTableRenameRule from huaweicloudsdkdrs.v5.model.db_param import DbParam from huaweicloudsdkdrs.v5.model.db_param_info import DbParamInfo +from huaweicloudsdkdrs.v5.model.ddl_alarm_resp import DdlAlarmResp +from huaweicloudsdkdrs.v5.model.delete_connection_request import DeleteConnectionRequest +from huaweicloudsdkdrs.v5.model.delete_connection_response import DeleteConnectionResponse from huaweicloudsdkdrs.v5.model.delete_driver_req import DeleteDriverReq from huaweicloudsdkdrs.v5.model.delete_jdbc_driver_request import DeleteJdbcDriverRequest from huaweicloudsdkdrs.v5.model.delete_jdbc_driver_response import DeleteJdbcDriverResponse from huaweicloudsdkdrs.v5.model.delete_job_request import DeleteJobRequest from huaweicloudsdkdrs.v5.model.delete_job_resp import DeleteJobResp from huaweicloudsdkdrs.v5.model.delete_job_response import DeleteJobResponse +from huaweicloudsdkdrs.v5.model.delete_replication_job_request import DeleteReplicationJobRequest +from huaweicloudsdkdrs.v5.model.delete_replication_job_response import DeleteReplicationJobResponse from huaweicloudsdkdrs.v5.model.delete_user_driver_req import DeleteUserDriverReq from huaweicloudsdkdrs.v5.model.delete_user_jdbc_driver_request import DeleteUserJdbcDriverRequest from huaweicloudsdkdrs.v5.model.delete_user_jdbc_driver_response import DeleteUserJdbcDriverResponse @@ -135,6 +159,8 @@ from huaweicloudsdkdrs.v5.model.list_async_job_detail_response import ListAsyncJobDetailResponse from huaweicloudsdkdrs.v5.model.list_async_jobs_request import ListAsyncJobsRequest from huaweicloudsdkdrs.v5.model.list_async_jobs_response import ListAsyncJobsResponse +from huaweicloudsdkdrs.v5.model.list_connections_request import ListConnectionsRequest +from huaweicloudsdkdrs.v5.model.list_connections_response import ListConnectionsResponse from huaweicloudsdkdrs.v5.model.list_db_objects_request import ListDbObjectsRequest from huaweicloudsdkdrs.v5.model.list_db_objects_response import ListDbObjectsResponse from huaweicloudsdkdrs.v5.model.list_instance_by_tags_request import ListInstanceByTagsRequest @@ -143,6 +169,8 @@ from huaweicloudsdkdrs.v5.model.list_instance_tags_response import ListInstanceTagsResponse from huaweicloudsdkdrs.v5.model.list_jdbc_drivers_request import ListJdbcDriversRequest from huaweicloudsdkdrs.v5.model.list_jdbc_drivers_response import ListJdbcDriversResponse +from huaweicloudsdkdrs.v5.model.list_job_ddls_request import ListJobDdlsRequest +from huaweicloudsdkdrs.v5.model.list_job_ddls_response import ListJobDdlsResponse from huaweicloudsdkdrs.v5.model.list_job_history_parameter import ListJobHistoryParameter from huaweicloudsdkdrs.v5.model.list_job_history_parameters_request import ListJobHistoryParametersRequest from huaweicloudsdkdrs.v5.model.list_job_history_parameters_response import ListJobHistoryParametersResponse @@ -154,6 +182,8 @@ from huaweicloudsdkdrs.v5.model.list_links_response import ListLinksResponse from huaweicloudsdkdrs.v5.model.list_project_tags_request import ListProjectTagsRequest from huaweicloudsdkdrs.v5.model.list_project_tags_response import ListProjectTagsResponse +from huaweicloudsdkdrs.v5.model.list_replication_jobs_request import ListReplicationJobsRequest +from huaweicloudsdkdrs.v5.model.list_replication_jobs_response import ListReplicationJobsResponse from huaweicloudsdkdrs.v5.model.list_tags_request import ListTagsRequest from huaweicloudsdkdrs.v5.model.list_tags_response import ListTagsResponse from huaweicloudsdkdrs.v5.model.list_user_jdbc_drivers_request import ListUserJdbcDriversRequest @@ -162,6 +192,9 @@ from huaweicloudsdkdrs.v5.model.lists_agency_permissions_response import ListsAgencyPermissionsResponse from huaweicloudsdkdrs.v5.model.migration_object_overview_info import MigrationObjectOverviewInfo from huaweicloudsdkdrs.v5.model.modify_compare_policy_req import ModifyComparePolicyReq +from huaweicloudsdkdrs.v5.model.modify_connection_request import ModifyConnectionRequest +from huaweicloudsdkdrs.v5.model.modify_connection_response import ModifyConnectionResponse +from huaweicloudsdkdrs.v5.model.modify_offline_task_req import ModifyOfflineTaskReq from huaweicloudsdkdrs.v5.model.modify_parameter_req import ModifyParameterReq from huaweicloudsdkdrs.v5.model.modify_start_position_req import ModifyStartPositionReq from huaweicloudsdkdrs.v5.model.modify_tuning_params import ModifyTuningParams @@ -169,6 +202,7 @@ from huaweicloudsdkdrs.v5.model.objects_compare_overview_info import ObjectsCompareOverviewInfo from huaweicloudsdkdrs.v5.model.objects_compare_task_info import ObjectsCompareTaskInfo from huaweicloudsdkdrs.v5.model.objects_health_compare_overview_info import ObjectsHealthCompareOverviewInfo +from huaweicloudsdkdrs.v5.model.offline_task_info import OfflineTaskInfo from huaweicloudsdkdrs.v5.model.parameter_config import ParameterConfig from huaweicloudsdkdrs.v5.model.parameter_info import ParameterInfo from huaweicloudsdkdrs.v5.model.period_order_info import PeriodOrderInfo @@ -250,6 +284,8 @@ from huaweicloudsdkdrs.v5.model.show_progress_data_response import ShowProgressDataResponse from huaweicloudsdkdrs.v5.model.show_replay_results_request import ShowReplayResultsRequest from huaweicloudsdkdrs.v5.model.show_replay_results_response import ShowReplayResultsResponse +from huaweicloudsdkdrs.v5.model.show_replication_job_request import ShowReplicationJobRequest +from huaweicloudsdkdrs.v5.model.show_replication_job_response import ShowReplicationJobResponse from huaweicloudsdkdrs.v5.model.show_support_object_type_request import ShowSupportObjectTypeRequest from huaweicloudsdkdrs.v5.model.show_support_object_type_response import ShowSupportObjectTypeResponse from huaweicloudsdkdrs.v5.model.show_update_object_saving_status_request import ShowUpdateObjectSavingStatusRequest @@ -273,12 +309,14 @@ from huaweicloudsdkdrs.v5.model.tag_match import TagMatch from huaweicloudsdkdrs.v5.model.target_root_db import TargetRootDb from huaweicloudsdkdrs.v5.model.task_log_info import TaskLogInfo +from huaweicloudsdkdrs.v5.model.to_period_req import ToPeriodReq from huaweicloudsdkdrs.v5.model.tuning_param_info import TuningParamInfo from huaweicloudsdkdrs.v5.model.tuning_parameter import TuningParameter from huaweicloudsdkdrs.v5.model.update_batch_async_jobs_request import UpdateBatchAsyncJobsRequest from huaweicloudsdkdrs.v5.model.update_batch_async_jobs_response import UpdateBatchAsyncJobsResponse from huaweicloudsdkdrs.v5.model.update_compare_policy_request import UpdateComparePolicyRequest from huaweicloudsdkdrs.v5.model.update_compare_policy_response import UpdateComparePolicyResponse +from huaweicloudsdkdrs.v5.model.update_connection_req import UpdateConnectionReq from huaweicloudsdkdrs.v5.model.update_data_progress_request import UpdateDataProgressRequest from huaweicloudsdkdrs.v5.model.update_data_progress_response import UpdateDataProgressResponse from huaweicloudsdkdrs.v5.model.update_driver_req import UpdateDriverReq @@ -288,6 +326,8 @@ from huaweicloudsdkdrs.v5.model.update_job_req import UpdateJobReq from huaweicloudsdkdrs.v5.model.update_job_request import UpdateJobRequest from huaweicloudsdkdrs.v5.model.update_job_response import UpdateJobResponse +from huaweicloudsdkdrs.v5.model.update_replication_job_request import UpdateReplicationJobRequest +from huaweicloudsdkdrs.v5.model.update_replication_job_response import UpdateReplicationJobResponse from huaweicloudsdkdrs.v5.model.update_start_position_request import UpdateStartPositionRequest from huaweicloudsdkdrs.v5.model.update_start_position_response import UpdateStartPositionResponse from huaweicloudsdkdrs.v5.model.update_user_driver_req import UpdateUserDriverReq diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/backup_file_info.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/backup_file_info.py new file mode 100644 index 0000000000..39b974a9f8 --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/backup_file_info.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BackupFileInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'name': 'str', + 'obs_path': 'str', + 'rds_version': 'str', + 'rds_source_instance_id': 'str' + } + + attribute_map = { + 'name': 'name', + 'obs_path': 'obs_path', + 'rds_version': 'rds_version', + 'rds_source_instance_id': 'rds_source_instance_id' + } + + def __init__(self, name=None, obs_path=None, rds_version=None, rds_source_instance_id=None): + """BackupFileInfo + + The model defined in huaweicloud sdk + + :param name: 备份文件名称。 + :type name: str + :param obs_path: OBS桶中文件路径。 OBS场景:必选 RDS场景:缺省 + :type obs_path: str + :param rds_version: bak文件数据库版本。 OBS场景:缺省 RDS场景:必选 + :type rds_version: str + :param rds_source_instance_id: bak文件所属实例。 OBS场景:缺省 RDS场景:必选 + :type rds_source_instance_id: str + """ + + + + self._name = None + self._obs_path = None + self._rds_version = None + self._rds_source_instance_id = None + self.discriminator = None + + self.name = name + if obs_path is not None: + self.obs_path = obs_path + if rds_version is not None: + self.rds_version = rds_version + if rds_source_instance_id is not None: + self.rds_source_instance_id = rds_source_instance_id + + @property + def name(self): + """Gets the name of this BackupFileInfo. + + 备份文件名称。 + + :return: The name of this BackupFileInfo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this BackupFileInfo. + + 备份文件名称。 + + :param name: The name of this BackupFileInfo. + :type name: str + """ + self._name = name + + @property + def obs_path(self): + """Gets the obs_path of this BackupFileInfo. + + OBS桶中文件路径。 OBS场景:必选 RDS场景:缺省 + + :return: The obs_path of this BackupFileInfo. + :rtype: str + """ + return self._obs_path + + @obs_path.setter + def obs_path(self, obs_path): + """Sets the obs_path of this BackupFileInfo. + + OBS桶中文件路径。 OBS场景:必选 RDS场景:缺省 + + :param obs_path: The obs_path of this BackupFileInfo. + :type obs_path: str + """ + self._obs_path = obs_path + + @property + def rds_version(self): + """Gets the rds_version of this BackupFileInfo. + + bak文件数据库版本。 OBS场景:缺省 RDS场景:必选 + + :return: The rds_version of this BackupFileInfo. + :rtype: str + """ + return self._rds_version + + @rds_version.setter + def rds_version(self, rds_version): + """Sets the rds_version of this BackupFileInfo. + + bak文件数据库版本。 OBS场景:缺省 RDS场景:必选 + + :param rds_version: The rds_version of this BackupFileInfo. + :type rds_version: str + """ + self._rds_version = rds_version + + @property + def rds_source_instance_id(self): + """Gets the rds_source_instance_id of this BackupFileInfo. + + bak文件所属实例。 OBS场景:缺省 RDS场景:必选 + + :return: The rds_source_instance_id of this BackupFileInfo. + :rtype: str + """ + return self._rds_source_instance_id + + @rds_source_instance_id.setter + def rds_source_instance_id(self, rds_source_instance_id): + """Sets the rds_source_instance_id of this BackupFileInfo. + + bak文件所属实例。 OBS场景:缺省 RDS场景:必选 + + :param rds_source_instance_id: The rds_source_instance_id of this BackupFileInfo. + :type rds_source_instance_id: str + """ + self._rds_source_instance_id = rds_source_instance_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BackupFileInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/backup_file_resp.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/backup_file_resp.py new file mode 100644 index 0000000000..ab6c471c1c --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/backup_file_resp.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BackupFileResp: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'file_name': 'str', + 'file_size': 'str', + 'file_last_modify': 'str' + } + + attribute_map = { + 'file_name': 'file_name', + 'file_size': 'file_size', + 'file_last_modify': 'file_last_modify' + } + + def __init__(self, file_name=None, file_size=None, file_last_modify=None): + """BackupFileResp + + The model defined in huaweicloud sdk + + :param file_name: 文件名称。 + :type file_name: str + :param file_size: 备份文件大小。 + :type file_size: str + :param file_last_modify: 备份文件最近修改时间。 + :type file_last_modify: str + """ + + + + self._file_name = None + self._file_size = None + self._file_last_modify = None + self.discriminator = None + + if file_name is not None: + self.file_name = file_name + if file_size is not None: + self.file_size = file_size + if file_last_modify is not None: + self.file_last_modify = file_last_modify + + @property + def file_name(self): + """Gets the file_name of this BackupFileResp. + + 文件名称。 + + :return: The file_name of this BackupFileResp. + :rtype: str + """ + return self._file_name + + @file_name.setter + def file_name(self, file_name): + """Sets the file_name of this BackupFileResp. + + 文件名称。 + + :param file_name: The file_name of this BackupFileResp. + :type file_name: str + """ + self._file_name = file_name + + @property + def file_size(self): + """Gets the file_size of this BackupFileResp. + + 备份文件大小。 + + :return: The file_size of this BackupFileResp. + :rtype: str + """ + return self._file_size + + @file_size.setter + def file_size(self, file_size): + """Sets the file_size of this BackupFileResp. + + 备份文件大小。 + + :param file_size: The file_size of this BackupFileResp. + :type file_size: str + """ + self._file_size = file_size + + @property + def file_last_modify(self): + """Gets the file_last_modify of this BackupFileResp. + + 备份文件最近修改时间。 + + :return: The file_last_modify of this BackupFileResp. + :rtype: str + """ + return self._file_last_modify + + @file_last_modify.setter + def file_last_modify(self, file_last_modify): + """Sets the file_last_modify of this BackupFileResp. + + 备份文件最近修改时间。 + + :param file_last_modify: The file_last_modify of this BackupFileResp. + :type file_last_modify: str + """ + self._file_last_modify = file_last_modify + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BackupFileResp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/backup_info.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/backup_info.py new file mode 100644 index 0000000000..8dc1a5a018 --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/backup_info.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BackupInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'file_source': 'str', + 'bucket_name': 'str', + 'files': 'list[BackupFileInfo]' + } + + attribute_map = { + 'file_source': 'file_source', + 'bucket_name': 'bucket_name', + 'files': 'files' + } + + def __init__(self, file_source=None, bucket_name=None, files=None): + """BackupInfo + + The model defined in huaweicloud sdk + + :param file_source: 备份文件来源:(全部大写) - OBS:存放在OBS中的备份文件。 - RDS:RDS实例的备份文件。 + :type file_source: str + :param bucket_name: OBS桶名称,使用OBS桶备份文件恢复时必填。 约束:长度范围为3~63个字符,仅支持小写字母、数字、中划线(-)、点(.),且只能以字母或数字开头和结尾,禁止使用IP地址。 如果选择从OBS桶获取备份文件必填,参考登录[客户端登录](https://support.huaweicloud.com/clientogw-obs/zh-cn_topic_0045829058.html)OBS Browser客户端,首页为OBS桶列表,可以获取到备份文件所在桶的名称。 + :type bucket_name: str + :param files: 备份文件信息列表。 + :type files: list[:class:`huaweicloudsdkdrs.v5.BackupFileInfo`] + """ + + + + self._file_source = None + self._bucket_name = None + self._files = None + self.discriminator = None + + self.file_source = file_source + if bucket_name is not None: + self.bucket_name = bucket_name + self.files = files + + @property + def file_source(self): + """Gets the file_source of this BackupInfo. + + 备份文件来源:(全部大写) - OBS:存放在OBS中的备份文件。 - RDS:RDS实例的备份文件。 + + :return: The file_source of this BackupInfo. + :rtype: str + """ + return self._file_source + + @file_source.setter + def file_source(self, file_source): + """Sets the file_source of this BackupInfo. + + 备份文件来源:(全部大写) - OBS:存放在OBS中的备份文件。 - RDS:RDS实例的备份文件。 + + :param file_source: The file_source of this BackupInfo. + :type file_source: str + """ + self._file_source = file_source + + @property + def bucket_name(self): + """Gets the bucket_name of this BackupInfo. + + OBS桶名称,使用OBS桶备份文件恢复时必填。 约束:长度范围为3~63个字符,仅支持小写字母、数字、中划线(-)、点(.),且只能以字母或数字开头和结尾,禁止使用IP地址。 如果选择从OBS桶获取备份文件必填,参考登录[客户端登录](https://support.huaweicloud.com/clientogw-obs/zh-cn_topic_0045829058.html)OBS Browser客户端,首页为OBS桶列表,可以获取到备份文件所在桶的名称。 + + :return: The bucket_name of this BackupInfo. + :rtype: str + """ + return self._bucket_name + + @bucket_name.setter + def bucket_name(self, bucket_name): + """Sets the bucket_name of this BackupInfo. + + OBS桶名称,使用OBS桶备份文件恢复时必填。 约束:长度范围为3~63个字符,仅支持小写字母、数字、中划线(-)、点(.),且只能以字母或数字开头和结尾,禁止使用IP地址。 如果选择从OBS桶获取备份文件必填,参考登录[客户端登录](https://support.huaweicloud.com/clientogw-obs/zh-cn_topic_0045829058.html)OBS Browser客户端,首页为OBS桶列表,可以获取到备份文件所在桶的名称。 + + :param bucket_name: The bucket_name of this BackupInfo. + :type bucket_name: str + """ + self._bucket_name = bucket_name + + @property + def files(self): + """Gets the files of this BackupInfo. + + 备份文件信息列表。 + + :return: The files of this BackupInfo. + :rtype: list[:class:`huaweicloudsdkdrs.v5.BackupFileInfo`] + """ + return self._files + + @files.setter + def files(self, files): + """Sets the files of this BackupInfo. + + 备份文件信息列表。 + + :param files: The files of this BackupInfo. + :type files: list[:class:`huaweicloudsdkdrs.v5.BackupFileInfo`] + """ + self._files = files + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BackupInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/backup_info_resp.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/backup_info_resp.py new file mode 100644 index 0000000000..1275af211a --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/backup_info_resp.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BackupInfoResp: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'file_source': 'str', + 'bucket_name': 'str', + 'file_info': 'list[BackupFileResp]' + } + + attribute_map = { + 'file_source': 'file_source', + 'bucket_name': 'bucket_name', + 'file_info': 'file_info' + } + + def __init__(self, file_source=None, bucket_name=None, file_info=None): + """BackupInfoResp + + The model defined in huaweicloud sdk + + :param file_source: 备份文件来源,包括OBS和RDS两种。 + :type file_source: str + :param bucket_name: OBS桶名称。 + :type bucket_name: str + :param file_info: 备份文件列表。 + :type file_info: list[:class:`huaweicloudsdkdrs.v5.BackupFileResp`] + """ + + + + self._file_source = None + self._bucket_name = None + self._file_info = None + self.discriminator = None + + if file_source is not None: + self.file_source = file_source + if bucket_name is not None: + self.bucket_name = bucket_name + if file_info is not None: + self.file_info = file_info + + @property + def file_source(self): + """Gets the file_source of this BackupInfoResp. + + 备份文件来源,包括OBS和RDS两种。 + + :return: The file_source of this BackupInfoResp. + :rtype: str + """ + return self._file_source + + @file_source.setter + def file_source(self, file_source): + """Sets the file_source of this BackupInfoResp. + + 备份文件来源,包括OBS和RDS两种。 + + :param file_source: The file_source of this BackupInfoResp. + :type file_source: str + """ + self._file_source = file_source + + @property + def bucket_name(self): + """Gets the bucket_name of this BackupInfoResp. + + OBS桶名称。 + + :return: The bucket_name of this BackupInfoResp. + :rtype: str + """ + return self._bucket_name + + @bucket_name.setter + def bucket_name(self, bucket_name): + """Sets the bucket_name of this BackupInfoResp. + + OBS桶名称。 + + :param bucket_name: The bucket_name of this BackupInfoResp. + :type bucket_name: str + """ + self._bucket_name = bucket_name + + @property + def file_info(self): + """Gets the file_info of this BackupInfoResp. + + 备份文件列表。 + + :return: The file_info of this BackupInfoResp. + :rtype: list[:class:`huaweicloudsdkdrs.v5.BackupFileResp`] + """ + return self._file_info + + @file_info.setter + def file_info(self, file_info): + """Sets the file_info of this BackupInfoResp. + + 备份文件列表。 + + :param file_info: The file_info of this BackupInfoResp. + :type file_info: list[:class:`huaweicloudsdkdrs.v5.BackupFileResp`] + """ + self._file_info = file_info + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BackupInfoResp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/backup_job_base_info.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/backup_job_base_info.py new file mode 100644 index 0000000000..950ab283ed --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/backup_job_base_info.py @@ -0,0 +1,229 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BackupJobBaseInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'name': 'str', + 'engine_type': 'str', + 'description': 'str', + 'tags': 'list[ResourceTag]', + 'enterprise_project_id': 'str' + } + + attribute_map = { + 'name': 'name', + 'engine_type': 'engine_type', + 'description': 'description', + 'tags': 'tags', + 'enterprise_project_id': 'enterprise_project_id' + } + + def __init__(self, name=None, engine_type=None, description=None, tags=None, enterprise_project_id=None): + """BackupJobBaseInfo + + The model defined in huaweicloud sdk + + :param name: 任务名称。 约束:任务名称在4位到50位之间,不区分大小写,可以包含字母、数字、中划线或下划线,不能包括其他特殊字符。 - 最小长度:4 - 最大长度:50 + :type name: str + :param engine_type: 数据库引擎。 - sqlserver:RDS for SQL Server引擎 + :type engine_type: str + :param description: 任务描述。 + :type description: str + :param tags: 标签信息。 标签的值可以包含任意语种字母、数字、空格和_ . : / = + - @。 + :type tags: list[:class:`huaweicloudsdkdrs.v5.ResourceTag`] + :param enterprise_project_id: 企业项目ID。 + :type enterprise_project_id: str + """ + + + + self._name = None + self._engine_type = None + self._description = None + self._tags = None + self._enterprise_project_id = None + self.discriminator = None + + self.name = name + self.engine_type = engine_type + if description is not None: + self.description = description + if tags is not None: + self.tags = tags + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + + @property + def name(self): + """Gets the name of this BackupJobBaseInfo. + + 任务名称。 约束:任务名称在4位到50位之间,不区分大小写,可以包含字母、数字、中划线或下划线,不能包括其他特殊字符。 - 最小长度:4 - 最大长度:50 + + :return: The name of this BackupJobBaseInfo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this BackupJobBaseInfo. + + 任务名称。 约束:任务名称在4位到50位之间,不区分大小写,可以包含字母、数字、中划线或下划线,不能包括其他特殊字符。 - 最小长度:4 - 最大长度:50 + + :param name: The name of this BackupJobBaseInfo. + :type name: str + """ + self._name = name + + @property + def engine_type(self): + """Gets the engine_type of this BackupJobBaseInfo. + + 数据库引擎。 - sqlserver:RDS for SQL Server引擎 + + :return: The engine_type of this BackupJobBaseInfo. + :rtype: str + """ + return self._engine_type + + @engine_type.setter + def engine_type(self, engine_type): + """Sets the engine_type of this BackupJobBaseInfo. + + 数据库引擎。 - sqlserver:RDS for SQL Server引擎 + + :param engine_type: The engine_type of this BackupJobBaseInfo. + :type engine_type: str + """ + self._engine_type = engine_type + + @property + def description(self): + """Gets the description of this BackupJobBaseInfo. + + 任务描述。 + + :return: The description of this BackupJobBaseInfo. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this BackupJobBaseInfo. + + 任务描述。 + + :param description: The description of this BackupJobBaseInfo. + :type description: str + """ + self._description = description + + @property + def tags(self): + """Gets the tags of this BackupJobBaseInfo. + + 标签信息。 标签的值可以包含任意语种字母、数字、空格和_ . : / = + - @。 + + :return: The tags of this BackupJobBaseInfo. + :rtype: list[:class:`huaweicloudsdkdrs.v5.ResourceTag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this BackupJobBaseInfo. + + 标签信息。 标签的值可以包含任意语种字母、数字、空格和_ . : / = + - @。 + + :param tags: The tags of this BackupJobBaseInfo. + :type tags: list[:class:`huaweicloudsdkdrs.v5.ResourceTag`] + """ + self._tags = tags + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this BackupJobBaseInfo. + + 企业项目ID。 + + :return: The enterprise_project_id of this BackupJobBaseInfo. + :rtype: str + """ + return self._enterprise_project_id + + @enterprise_project_id.setter + def enterprise_project_id(self, enterprise_project_id): + """Sets the enterprise_project_id of this BackupJobBaseInfo. + + 企业项目ID。 + + :param enterprise_project_id: The enterprise_project_id of this BackupJobBaseInfo. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BackupJobBaseInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/backup_job_endpoint_info.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/backup_job_endpoint_info.py new file mode 100644 index 0000000000..edd2adecf4 --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/backup_job_endpoint_info.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BackupJobEndpointInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'target_instance_id': 'str', + 'ms_file_stream_status': 'str', + 'file_id': 'str' + } + + attribute_map = { + 'target_instance_id': 'target_instance_id', + 'ms_file_stream_status': 'ms_file_stream_status', + 'file_id': 'file_id' + } + + def __init__(self, target_instance_id=None, ms_file_stream_status=None, file_id=None): + """BackupJobEndpointInfo + + The model defined in huaweicloud sdk + + :param target_instance_id: 备份迁移任务恢复目标RDS for SQL Server实例ID。 + :type target_instance_id: str + :param ms_file_stream_status: 目标实例是否开启FileStream模式。可通过RDS for SQL Server详情接口获取。 + :type ms_file_stream_status: str + :param file_id: RDS for SQL Server备份文件的文件ID,通过RDS全量恢复时必填。可通过云数据库RDS备份管理页面获取。 + :type file_id: str + """ + + + + self._target_instance_id = None + self._ms_file_stream_status = None + self._file_id = None + self.discriminator = None + + self.target_instance_id = target_instance_id + if ms_file_stream_status is not None: + self.ms_file_stream_status = ms_file_stream_status + if file_id is not None: + self.file_id = file_id + + @property + def target_instance_id(self): + """Gets the target_instance_id of this BackupJobEndpointInfo. + + 备份迁移任务恢复目标RDS for SQL Server实例ID。 + + :return: The target_instance_id of this BackupJobEndpointInfo. + :rtype: str + """ + return self._target_instance_id + + @target_instance_id.setter + def target_instance_id(self, target_instance_id): + """Sets the target_instance_id of this BackupJobEndpointInfo. + + 备份迁移任务恢复目标RDS for SQL Server实例ID。 + + :param target_instance_id: The target_instance_id of this BackupJobEndpointInfo. + :type target_instance_id: str + """ + self._target_instance_id = target_instance_id + + @property + def ms_file_stream_status(self): + """Gets the ms_file_stream_status of this BackupJobEndpointInfo. + + 目标实例是否开启FileStream模式。可通过RDS for SQL Server详情接口获取。 + + :return: The ms_file_stream_status of this BackupJobEndpointInfo. + :rtype: str + """ + return self._ms_file_stream_status + + @ms_file_stream_status.setter + def ms_file_stream_status(self, ms_file_stream_status): + """Sets the ms_file_stream_status of this BackupJobEndpointInfo. + + 目标实例是否开启FileStream模式。可通过RDS for SQL Server详情接口获取。 + + :param ms_file_stream_status: The ms_file_stream_status of this BackupJobEndpointInfo. + :type ms_file_stream_status: str + """ + self._ms_file_stream_status = ms_file_stream_status + + @property + def file_id(self): + """Gets the file_id of this BackupJobEndpointInfo. + + RDS for SQL Server备份文件的文件ID,通过RDS全量恢复时必填。可通过云数据库RDS备份管理页面获取。 + + :return: The file_id of this BackupJobEndpointInfo. + :rtype: str + """ + return self._file_id + + @file_id.setter + def file_id(self, file_id): + """Sets the file_id of this BackupJobEndpointInfo. + + RDS for SQL Server备份文件的文件ID,通过RDS全量恢复时必填。可通过云数据库RDS备份管理页面获取。 + + :param file_id: The file_id of this BackupJobEndpointInfo. + :type file_id: str + """ + self._file_id = file_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BackupJobEndpointInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/backup_restore_option_info.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/backup_restore_option_info.py new file mode 100644 index 0000000000..582768e722 --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/backup_restore_option_info.py @@ -0,0 +1,315 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BackupRestoreOptionInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'is_cover': 'bool', + 'is_default_restore': 'bool', + 'is_last_backup': 'bool', + 'is_precheck': 'bool', + 'recovery_mode': 'str', + 'db_names': 'list[str]', + 'reset_db_name_map': 'dict(str, str)', + 'is_delete_backup_file': 'bool' + } + + attribute_map = { + 'is_cover': 'is_cover', + 'is_default_restore': 'is_default_restore', + 'is_last_backup': 'is_last_backup', + 'is_precheck': 'is_precheck', + 'recovery_mode': 'recovery_mode', + 'db_names': 'db_names', + 'reset_db_name_map': 'reset_db_name_map', + 'is_delete_backup_file': 'is_delete_backup_file' + } + + def __init__(self, is_cover=None, is_default_restore=None, is_last_backup=None, is_precheck=None, recovery_mode=None, db_names=None, reset_db_name_map=None, is_delete_backup_file=None): + """BackupRestoreOptionInfo + + The model defined in huaweicloud sdk + + :param is_cover: 是否覆盖目标数据库,不填默认为false。 值为“true”表示覆盖。 值为“false”表示不覆盖。 + :type is_cover: bool + :param is_default_restore: 是否默认恢复,默认恢复所有数据库。 “true”是代表默认恢复还原备份文件中的全部数据库。 “false”代表需要在db_names这个字段中指定需要恢复的数据库名。 + :type is_default_restore: bool + :param is_last_backup: 一次典型的增量恢复过程,会涉及多次恢复增量备份。每个增量备份恢复均会使目标数据库保持还原中状态,此时数据库不可读写,直至最后一个增量备份恢复完成后,数据库才能变成可用状态。此后数据库将无法继续进行增量恢复,所以确定为最后一个备份的场景有: 一次性全量迁移,后续将不再进行增量恢复时,设置该字段值为“true”。 增量恢复流程中,确定为最后割接阶段的最后一个增量备份时,设置该字段值为“false”。 + :type is_last_backup: bool + :param is_precheck: 是否执行预校验。 true:执行。 false:不执行。 + :type is_precheck: bool + :param recovery_mode: 恢复模式: “full”表示全量迁移。 “incre”表示增量迁移 。 + :type recovery_mode: str + :param db_names: 数据库名称。 + :type db_names: list[str] + :param reset_db_name_map: 该字段为一个map,目前使用格式key是\"\",value是新数据库名字。 该功能将忽略备份文件中原有的数据库名,通过DRS将其恢复为指定的新数据库名。 使用条件: - 备份文件中只有一个数据库。 - 备份文件是全量备份类型(待恢复备份类型选择:全量备份),且是一次性恢复(最后一个备份选择:是)。 + :type reset_db_name_map: dict(str, str) + :param is_delete_backup_file: 该参数控制使用OBS桶中备份文件恢复时,当任务结束时是否删除下载到RDS for SQL server磁盘中的OBS备份文件,默认删除。 - true 删除 - false 不删除 + :type is_delete_backup_file: bool + """ + + + + self._is_cover = None + self._is_default_restore = None + self._is_last_backup = None + self._is_precheck = None + self._recovery_mode = None + self._db_names = None + self._reset_db_name_map = None + self._is_delete_backup_file = None + self.discriminator = None + + if is_cover is not None: + self.is_cover = is_cover + if is_default_restore is not None: + self.is_default_restore = is_default_restore + self.is_last_backup = is_last_backup + self.is_precheck = is_precheck + self.recovery_mode = recovery_mode + if db_names is not None: + self.db_names = db_names + if reset_db_name_map is not None: + self.reset_db_name_map = reset_db_name_map + if is_delete_backup_file is not None: + self.is_delete_backup_file = is_delete_backup_file + + @property + def is_cover(self): + """Gets the is_cover of this BackupRestoreOptionInfo. + + 是否覆盖目标数据库,不填默认为false。 值为“true”表示覆盖。 值为“false”表示不覆盖。 + + :return: The is_cover of this BackupRestoreOptionInfo. + :rtype: bool + """ + return self._is_cover + + @is_cover.setter + def is_cover(self, is_cover): + """Sets the is_cover of this BackupRestoreOptionInfo. + + 是否覆盖目标数据库,不填默认为false。 值为“true”表示覆盖。 值为“false”表示不覆盖。 + + :param is_cover: The is_cover of this BackupRestoreOptionInfo. + :type is_cover: bool + """ + self._is_cover = is_cover + + @property + def is_default_restore(self): + """Gets the is_default_restore of this BackupRestoreOptionInfo. + + 是否默认恢复,默认恢复所有数据库。 “true”是代表默认恢复还原备份文件中的全部数据库。 “false”代表需要在db_names这个字段中指定需要恢复的数据库名。 + + :return: The is_default_restore of this BackupRestoreOptionInfo. + :rtype: bool + """ + return self._is_default_restore + + @is_default_restore.setter + def is_default_restore(self, is_default_restore): + """Sets the is_default_restore of this BackupRestoreOptionInfo. + + 是否默认恢复,默认恢复所有数据库。 “true”是代表默认恢复还原备份文件中的全部数据库。 “false”代表需要在db_names这个字段中指定需要恢复的数据库名。 + + :param is_default_restore: The is_default_restore of this BackupRestoreOptionInfo. + :type is_default_restore: bool + """ + self._is_default_restore = is_default_restore + + @property + def is_last_backup(self): + """Gets the is_last_backup of this BackupRestoreOptionInfo. + + 一次典型的增量恢复过程,会涉及多次恢复增量备份。每个增量备份恢复均会使目标数据库保持还原中状态,此时数据库不可读写,直至最后一个增量备份恢复完成后,数据库才能变成可用状态。此后数据库将无法继续进行增量恢复,所以确定为最后一个备份的场景有: 一次性全量迁移,后续将不再进行增量恢复时,设置该字段值为“true”。 增量恢复流程中,确定为最后割接阶段的最后一个增量备份时,设置该字段值为“false”。 + + :return: The is_last_backup of this BackupRestoreOptionInfo. + :rtype: bool + """ + return self._is_last_backup + + @is_last_backup.setter + def is_last_backup(self, is_last_backup): + """Sets the is_last_backup of this BackupRestoreOptionInfo. + + 一次典型的增量恢复过程,会涉及多次恢复增量备份。每个增量备份恢复均会使目标数据库保持还原中状态,此时数据库不可读写,直至最后一个增量备份恢复完成后,数据库才能变成可用状态。此后数据库将无法继续进行增量恢复,所以确定为最后一个备份的场景有: 一次性全量迁移,后续将不再进行增量恢复时,设置该字段值为“true”。 增量恢复流程中,确定为最后割接阶段的最后一个增量备份时,设置该字段值为“false”。 + + :param is_last_backup: The is_last_backup of this BackupRestoreOptionInfo. + :type is_last_backup: bool + """ + self._is_last_backup = is_last_backup + + @property + def is_precheck(self): + """Gets the is_precheck of this BackupRestoreOptionInfo. + + 是否执行预校验。 true:执行。 false:不执行。 + + :return: The is_precheck of this BackupRestoreOptionInfo. + :rtype: bool + """ + return self._is_precheck + + @is_precheck.setter + def is_precheck(self, is_precheck): + """Sets the is_precheck of this BackupRestoreOptionInfo. + + 是否执行预校验。 true:执行。 false:不执行。 + + :param is_precheck: The is_precheck of this BackupRestoreOptionInfo. + :type is_precheck: bool + """ + self._is_precheck = is_precheck + + @property + def recovery_mode(self): + """Gets the recovery_mode of this BackupRestoreOptionInfo. + + 恢复模式: “full”表示全量迁移。 “incre”表示增量迁移 。 + + :return: The recovery_mode of this BackupRestoreOptionInfo. + :rtype: str + """ + return self._recovery_mode + + @recovery_mode.setter + def recovery_mode(self, recovery_mode): + """Sets the recovery_mode of this BackupRestoreOptionInfo. + + 恢复模式: “full”表示全量迁移。 “incre”表示增量迁移 。 + + :param recovery_mode: The recovery_mode of this BackupRestoreOptionInfo. + :type recovery_mode: str + """ + self._recovery_mode = recovery_mode + + @property + def db_names(self): + """Gets the db_names of this BackupRestoreOptionInfo. + + 数据库名称。 + + :return: The db_names of this BackupRestoreOptionInfo. + :rtype: list[str] + """ + return self._db_names + + @db_names.setter + def db_names(self, db_names): + """Sets the db_names of this BackupRestoreOptionInfo. + + 数据库名称。 + + :param db_names: The db_names of this BackupRestoreOptionInfo. + :type db_names: list[str] + """ + self._db_names = db_names + + @property + def reset_db_name_map(self): + """Gets the reset_db_name_map of this BackupRestoreOptionInfo. + + 该字段为一个map,目前使用格式key是\"\",value是新数据库名字。 该功能将忽略备份文件中原有的数据库名,通过DRS将其恢复为指定的新数据库名。 使用条件: - 备份文件中只有一个数据库。 - 备份文件是全量备份类型(待恢复备份类型选择:全量备份),且是一次性恢复(最后一个备份选择:是)。 + + :return: The reset_db_name_map of this BackupRestoreOptionInfo. + :rtype: dict(str, str) + """ + return self._reset_db_name_map + + @reset_db_name_map.setter + def reset_db_name_map(self, reset_db_name_map): + """Sets the reset_db_name_map of this BackupRestoreOptionInfo. + + 该字段为一个map,目前使用格式key是\"\",value是新数据库名字。 该功能将忽略备份文件中原有的数据库名,通过DRS将其恢复为指定的新数据库名。 使用条件: - 备份文件中只有一个数据库。 - 备份文件是全量备份类型(待恢复备份类型选择:全量备份),且是一次性恢复(最后一个备份选择:是)。 + + :param reset_db_name_map: The reset_db_name_map of this BackupRestoreOptionInfo. + :type reset_db_name_map: dict(str, str) + """ + self._reset_db_name_map = reset_db_name_map + + @property + def is_delete_backup_file(self): + """Gets the is_delete_backup_file of this BackupRestoreOptionInfo. + + 该参数控制使用OBS桶中备份文件恢复时,当任务结束时是否删除下载到RDS for SQL server磁盘中的OBS备份文件,默认删除。 - true 删除 - false 不删除 + + :return: The is_delete_backup_file of this BackupRestoreOptionInfo. + :rtype: bool + """ + return self._is_delete_backup_file + + @is_delete_backup_file.setter + def is_delete_backup_file(self, is_delete_backup_file): + """Sets the is_delete_backup_file of this BackupRestoreOptionInfo. + + 该参数控制使用OBS桶中备份文件恢复时,当任务结束时是否删除下载到RDS for SQL server磁盘中的OBS备份文件,默认删除。 - true 删除 - false 不删除 + + :param is_delete_backup_file: The is_delete_backup_file of this BackupRestoreOptionInfo. + :type is_delete_backup_file: bool + """ + self._is_delete_backup_file = is_delete_backup_file + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BackupRestoreOptionInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/change_to_period_request.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/change_to_period_request.py new file mode 100644 index 0000000000..de771c8a17 --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/change_to_period_request.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChangeToPeriodRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'job_id': 'str', + 'x_language': 'str', + 'body': 'ToPeriodReq' + } + + attribute_map = { + 'job_id': 'job_id', + 'x_language': 'X-Language', + 'body': 'body' + } + + def __init__(self, job_id=None, x_language=None, body=None): + """ChangeToPeriodRequest + + The model defined in huaweicloud sdk + + :param job_id: 转包周期的任务ID。 + :type job_id: str + :param x_language: 请求语言类型。 + :type x_language: str + :param body: Body of the ChangeToPeriodRequest + :type body: :class:`huaweicloudsdkdrs.v5.ToPeriodReq` + """ + + + + self._job_id = None + self._x_language = None + self._body = None + self.discriminator = None + + self.job_id = job_id + if x_language is not None: + self.x_language = x_language + if body is not None: + self.body = body + + @property + def job_id(self): + """Gets the job_id of this ChangeToPeriodRequest. + + 转包周期的任务ID。 + + :return: The job_id of this ChangeToPeriodRequest. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this ChangeToPeriodRequest. + + 转包周期的任务ID。 + + :param job_id: The job_id of this ChangeToPeriodRequest. + :type job_id: str + """ + self._job_id = job_id + + @property + def x_language(self): + """Gets the x_language of this ChangeToPeriodRequest. + + 请求语言类型。 + + :return: The x_language of this ChangeToPeriodRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ChangeToPeriodRequest. + + 请求语言类型。 + + :param x_language: The x_language of this ChangeToPeriodRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def body(self): + """Gets the body of this ChangeToPeriodRequest. + + :return: The body of this ChangeToPeriodRequest. + :rtype: :class:`huaweicloudsdkdrs.v5.ToPeriodReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ChangeToPeriodRequest. + + :param body: The body of this ChangeToPeriodRequest. + :type body: :class:`huaweicloudsdkdrs.v5.ToPeriodReq` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ChangeToPeriodRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/change_to_period_response.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/change_to_period_response.py new file mode 100644 index 0000000000..e694869ffc --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/change_to_period_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChangeToPeriodResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'order_id': 'str' + } + + attribute_map = { + 'order_id': 'order_id' + } + + def __init__(self, order_id=None): + """ChangeToPeriodResponse + + The model defined in huaweicloud sdk + + :param order_id: 订单ID。 + :type order_id: str + """ + + super(ChangeToPeriodResponse, self).__init__() + + self._order_id = None + self.discriminator = None + + if order_id is not None: + self.order_id = order_id + + @property + def order_id(self): + """Gets the order_id of this ChangeToPeriodResponse. + + 订单ID。 + + :return: The order_id of this ChangeToPeriodResponse. + :rtype: str + """ + return self._order_id + + @order_id.setter + def order_id(self, order_id): + """Sets the order_id of this ChangeToPeriodResponse. + + 订单ID。 + + :param order_id: The order_id of this ChangeToPeriodResponse. + :type order_id: str + """ + self._order_id = order_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ChangeToPeriodResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/check_data_filter_response.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/check_data_filter_response.py index 55ed16738e..11ad364abc 100644 --- a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/check_data_filter_response.py +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/check_data_filter_response.py @@ -36,7 +36,7 @@ def __init__(self, id=None, status=None, job_id=None): :param id: 查询结果id :type id: str - :param status: 查询状态 + :param status: 查询状态 pending:处理中 failed:失败 success:成功 :type status: str :param job_id: 任务ID :type job_id: str @@ -82,7 +82,7 @@ def id(self, id): def status(self): """Gets the status of this CheckDataFilterResponse. - 查询状态 + 查询状态 pending:处理中 failed:失败 success:成功 :return: The status of this CheckDataFilterResponse. :rtype: str @@ -93,7 +93,7 @@ def status(self): def status(self, status): """Sets the status of this CheckDataFilterResponse. - 查询状态 + 查询状态 pending:处理中 failed:失败 success:成功 :param status: The status of this CheckDataFilterResponse. :type status: str diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/clean_alarms_request.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/clean_alarms_request.py new file mode 100644 index 0000000000..fd1c81acff --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/clean_alarms_request.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CleanAlarmsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_language': 'str', + 'job_id': 'str', + 'alarm_id': 'str' + } + + attribute_map = { + 'x_language': 'X-Language', + 'job_id': 'job_id', + 'alarm_id': 'alarm_id' + } + + def __init__(self, x_language=None, job_id=None, alarm_id=None): + """CleanAlarmsRequest + + The model defined in huaweicloud sdk + + :param x_language: 请求语言类型。 + :type x_language: str + :param job_id: 任务ID。 + :type job_id: str + :param alarm_id: DDL序列号。 + :type alarm_id: str + """ + + + + self._x_language = None + self._job_id = None + self._alarm_id = None + self.discriminator = None + + if x_language is not None: + self.x_language = x_language + self.job_id = job_id + self.alarm_id = alarm_id + + @property + def x_language(self): + """Gets the x_language of this CleanAlarmsRequest. + + 请求语言类型。 + + :return: The x_language of this CleanAlarmsRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this CleanAlarmsRequest. + + 请求语言类型。 + + :param x_language: The x_language of this CleanAlarmsRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def job_id(self): + """Gets the job_id of this CleanAlarmsRequest. + + 任务ID。 + + :return: The job_id of this CleanAlarmsRequest. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this CleanAlarmsRequest. + + 任务ID。 + + :param job_id: The job_id of this CleanAlarmsRequest. + :type job_id: str + """ + self._job_id = job_id + + @property + def alarm_id(self): + """Gets the alarm_id of this CleanAlarmsRequest. + + DDL序列号。 + + :return: The alarm_id of this CleanAlarmsRequest. + :rtype: str + """ + return self._alarm_id + + @alarm_id.setter + def alarm_id(self, alarm_id): + """Sets the alarm_id of this CleanAlarmsRequest. + + DDL序列号。 + + :param alarm_id: The alarm_id of this CleanAlarmsRequest. + :type alarm_id: str + """ + self._alarm_id = alarm_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CleanAlarmsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/clean_alarms_response.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/clean_alarms_response.py new file mode 100644 index 0000000000..80998a008e --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/clean_alarms_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CleanAlarmsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'object' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CleanAlarmsResponse + + The model defined in huaweicloud sdk + + :param body: 空响应体。 + :type body: object + """ + + super(CleanAlarmsResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CleanAlarmsResponse. + + 空响应体。 + + :return: The body of this CleanAlarmsResponse. + :rtype: object + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CleanAlarmsResponse. + + 空响应体。 + + :param body: The body of this CleanAlarmsResponse. + :type body: object + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CleanAlarmsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/collect_columns_response.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/collect_columns_response.py index 42e1a06b6c..3e08b218c7 100644 --- a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/collect_columns_response.py +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/collect_columns_response.py @@ -36,7 +36,7 @@ def __init__(self, id=None, status=None, job_id=None): :param id: 查询结果id :type id: str - :param status: 查询状态 + :param status: 查询状态 pending:处理中 failed:失败 success:成功 :type status: str :param job_id: 任务ID :type job_id: str @@ -82,7 +82,7 @@ def id(self, id): def status(self): """Gets the status of this CollectColumnsResponse. - 查询状态 + 查询状态 pending:处理中 failed:失败 success:成功 :return: The status of this CollectColumnsResponse. :rtype: str @@ -93,7 +93,7 @@ def status(self): def status(self, status): """Sets the status of this CollectColumnsResponse. - 查询状态 + 查询状态 pending:处理中 failed:失败 success:成功 :param status: The status of this CollectColumnsResponse. :type status: str diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/collect_db_objects_async_response.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/collect_db_objects_async_response.py index 965ae0d6c6..2f16ca6598 100644 --- a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/collect_db_objects_async_response.py +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/collect_db_objects_async_response.py @@ -36,7 +36,7 @@ def __init__(self, id=None, status=None, job_id=None): :param id: 查询结果id :type id: str - :param status: 查询状态 + :param status: 查询状态 pending:处理中 failed:失败 success:成功 :type status: str :param job_id: 任务ID :type job_id: str @@ -82,7 +82,7 @@ def id(self, id): def status(self): """Gets the status of this CollectDbObjectsAsyncResponse. - 查询状态 + 查询状态 pending:处理中 failed:失败 success:成功 :return: The status of this CollectDbObjectsAsyncResponse. :rtype: str @@ -93,7 +93,7 @@ def status(self): def status(self, status): """Sets the status of this CollectDbObjectsAsyncResponse. - 查询状态 + 查询状态 pending:处理中 failed:失败 success:成功 :param status: The status of this CollectDbObjectsAsyncResponse. :type status: str diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/collect_db_objects_info_response.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/collect_db_objects_info_response.py index 14f60c137d..37029fcfd7 100644 --- a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/collect_db_objects_info_response.py +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/collect_db_objects_info_response.py @@ -36,7 +36,7 @@ def __init__(self, id=None, status=None, job_id=None): :param id: 查询结果id :type id: str - :param status: 查询状态 + :param status: 查询状态 pending:处理中 failed:失败 success:成功 :type status: str :param job_id: 任务ID :type job_id: str @@ -82,7 +82,7 @@ def id(self, id): def status(self): """Gets the status of this CollectDbObjectsInfoResponse. - 查询状态 + 查询状态 pending:处理中 failed:失败 success:成功 :return: The status of this CollectDbObjectsInfoResponse. :rtype: str @@ -93,7 +93,7 @@ def status(self): def status(self, status): """Sets the status of this CollectDbObjectsInfoResponse. - 查询状态 + 查询状态 pending:处理中 failed:失败 success:成功 :param status: The status of this CollectDbObjectsInfoResponse. :type status: str diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/collect_position_async_response.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/collect_position_async_response.py index deae9a77b1..3a1220653d 100644 --- a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/collect_position_async_response.py +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/collect_position_async_response.py @@ -36,7 +36,7 @@ def __init__(self, id=None, status=None, job_id=None): :param id: 查询结果id :type id: str - :param status: 查询状态 + :param status: 查询状态 pending:处理中 failed:失败 success:成功 :type status: str :param job_id: 任务ID :type job_id: str @@ -82,7 +82,7 @@ def id(self, id): def status(self): """Gets the status of this CollectPositionAsyncResponse. - 查询状态 + 查询状态 pending:处理中 failed:失败 success:成功 :return: The status of this CollectPositionAsyncResponse. :rtype: str @@ -93,7 +93,7 @@ def status(self): def status(self, status): """Sets the status of this CollectPositionAsyncResponse. - 查询状态 + 查询状态 pending:处理中 failed:失败 success:成功 :param status: The status of this CollectPositionAsyncResponse. :type status: str diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/connection_config.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/connection_config.py new file mode 100644 index 0000000000..c353e72d48 --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/connection_config.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ConnectionConfig: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'driver_name': 'str' + } + + attribute_map = { + 'driver_name': 'driver_name' + } + + def __init__(self, driver_name=None): + """ConnectionConfig + + The model defined in huaweicloud sdk + + :param driver_name: 驱动程序名称。 + :type driver_name: str + """ + + + + self._driver_name = None + self.discriminator = None + + if driver_name is not None: + self.driver_name = driver_name + + @property + def driver_name(self): + """Gets the driver_name of this ConnectionConfig. + + 驱动程序名称。 + + :return: The driver_name of this ConnectionConfig. + :rtype: str + """ + return self._driver_name + + @driver_name.setter + def driver_name(self, driver_name): + """Sets the driver_name of this ConnectionConfig. + + 驱动程序名称。 + + :param driver_name: The driver_name of this ConnectionConfig. + :type driver_name: str + """ + self._driver_name = driver_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConnectionConfig): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/connection_resp.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/connection_resp.py new file mode 100644 index 0000000000..ba175a74ee --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/connection_resp.py @@ -0,0 +1,355 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ConnectionResp: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'connection_id': 'str', + 'name': 'str', + 'create_time': 'int', + 'db_type': 'str', + 'config': 'ConnectionConfig', + 'endpoint': 'BaseEndpoint', + 'vpc': 'CloudVpcInfo', + 'ssl': 'EndpointSslConfig', + 'enterprise_project_id': 'str', + 'description': 'str' + } + + attribute_map = { + 'connection_id': 'connection_id', + 'name': 'name', + 'create_time': 'create_time', + 'db_type': 'db_type', + 'config': 'config', + 'endpoint': 'endpoint', + 'vpc': 'vpc', + 'ssl': 'ssl', + 'enterprise_project_id': 'enterprise_project_id', + 'description': 'description' + } + + def __init__(self, connection_id=None, name=None, create_time=None, db_type=None, config=None, endpoint=None, vpc=None, ssl=None, enterprise_project_id=None, description=None): + """ConnectionResp + + The model defined in huaweicloud sdk + + :param connection_id: 连接ID。 + :type connection_id: str + :param name: 连接名称。 + :type name: str + :param create_time: 连接创建时间,格式为时间戳。 + :type create_time: int + :param db_type: 连接类型。 + :type db_type: str + :param config: + :type config: :class:`huaweicloudsdkdrs.v5.ConnectionConfig` + :param endpoint: + :type endpoint: :class:`huaweicloudsdkdrs.v5.BaseEndpoint` + :param vpc: + :type vpc: :class:`huaweicloudsdkdrs.v5.CloudVpcInfo` + :param ssl: + :type ssl: :class:`huaweicloudsdkdrs.v5.EndpointSslConfig` + :param enterprise_project_id: 企业项目ID。 + :type enterprise_project_id: str + :param description: 描述。 + :type description: str + """ + + + + self._connection_id = None + self._name = None + self._create_time = None + self._db_type = None + self._config = None + self._endpoint = None + self._vpc = None + self._ssl = None + self._enterprise_project_id = None + self._description = None + self.discriminator = None + + self.connection_id = connection_id + self.name = name + self.create_time = create_time + self.db_type = db_type + if config is not None: + self.config = config + self.endpoint = endpoint + if vpc is not None: + self.vpc = vpc + if ssl is not None: + self.ssl = ssl + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + if description is not None: + self.description = description + + @property + def connection_id(self): + """Gets the connection_id of this ConnectionResp. + + 连接ID。 + + :return: The connection_id of this ConnectionResp. + :rtype: str + """ + return self._connection_id + + @connection_id.setter + def connection_id(self, connection_id): + """Sets the connection_id of this ConnectionResp. + + 连接ID。 + + :param connection_id: The connection_id of this ConnectionResp. + :type connection_id: str + """ + self._connection_id = connection_id + + @property + def name(self): + """Gets the name of this ConnectionResp. + + 连接名称。 + + :return: The name of this ConnectionResp. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ConnectionResp. + + 连接名称。 + + :param name: The name of this ConnectionResp. + :type name: str + """ + self._name = name + + @property + def create_time(self): + """Gets the create_time of this ConnectionResp. + + 连接创建时间,格式为时间戳。 + + :return: The create_time of this ConnectionResp. + :rtype: int + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ConnectionResp. + + 连接创建时间,格式为时间戳。 + + :param create_time: The create_time of this ConnectionResp. + :type create_time: int + """ + self._create_time = create_time + + @property + def db_type(self): + """Gets the db_type of this ConnectionResp. + + 连接类型。 + + :return: The db_type of this ConnectionResp. + :rtype: str + """ + return self._db_type + + @db_type.setter + def db_type(self, db_type): + """Sets the db_type of this ConnectionResp. + + 连接类型。 + + :param db_type: The db_type of this ConnectionResp. + :type db_type: str + """ + self._db_type = db_type + + @property + def config(self): + """Gets the config of this ConnectionResp. + + :return: The config of this ConnectionResp. + :rtype: :class:`huaweicloudsdkdrs.v5.ConnectionConfig` + """ + return self._config + + @config.setter + def config(self, config): + """Sets the config of this ConnectionResp. + + :param config: The config of this ConnectionResp. + :type config: :class:`huaweicloudsdkdrs.v5.ConnectionConfig` + """ + self._config = config + + @property + def endpoint(self): + """Gets the endpoint of this ConnectionResp. + + :return: The endpoint of this ConnectionResp. + :rtype: :class:`huaweicloudsdkdrs.v5.BaseEndpoint` + """ + return self._endpoint + + @endpoint.setter + def endpoint(self, endpoint): + """Sets the endpoint of this ConnectionResp. + + :param endpoint: The endpoint of this ConnectionResp. + :type endpoint: :class:`huaweicloudsdkdrs.v5.BaseEndpoint` + """ + self._endpoint = endpoint + + @property + def vpc(self): + """Gets the vpc of this ConnectionResp. + + :return: The vpc of this ConnectionResp. + :rtype: :class:`huaweicloudsdkdrs.v5.CloudVpcInfo` + """ + return self._vpc + + @vpc.setter + def vpc(self, vpc): + """Sets the vpc of this ConnectionResp. + + :param vpc: The vpc of this ConnectionResp. + :type vpc: :class:`huaweicloudsdkdrs.v5.CloudVpcInfo` + """ + self._vpc = vpc + + @property + def ssl(self): + """Gets the ssl of this ConnectionResp. + + :return: The ssl of this ConnectionResp. + :rtype: :class:`huaweicloudsdkdrs.v5.EndpointSslConfig` + """ + return self._ssl + + @ssl.setter + def ssl(self, ssl): + """Sets the ssl of this ConnectionResp. + + :param ssl: The ssl of this ConnectionResp. + :type ssl: :class:`huaweicloudsdkdrs.v5.EndpointSslConfig` + """ + self._ssl = ssl + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this ConnectionResp. + + 企业项目ID。 + + :return: The enterprise_project_id of this ConnectionResp. + :rtype: str + """ + return self._enterprise_project_id + + @enterprise_project_id.setter + def enterprise_project_id(self, enterprise_project_id): + """Sets the enterprise_project_id of this ConnectionResp. + + 企业项目ID。 + + :param enterprise_project_id: The enterprise_project_id of this ConnectionResp. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def description(self): + """Gets the description of this ConnectionResp. + + 描述。 + + :return: The description of this ConnectionResp. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ConnectionResp. + + 描述。 + + :param description: The description of this ConnectionResp. + :type description: str + """ + self._description = description + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConnectionResp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/create_connection_req.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/create_connection_req.py new file mode 100644 index 0000000000..a022a53f39 --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/create_connection_req.py @@ -0,0 +1,324 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateConnectionReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'name': 'str', + 'db_type': 'str', + 'config': 'ConnectionConfig', + 'description': 'str', + 'endpoint': 'BaseEndpoint', + 'vpc': 'CloudVpcInfo', + 'ssl': 'EndpointSslConfig', + 'cloud': 'CloudBaseInfo', + 'enterprise_project_id': 'str' + } + + attribute_map = { + 'name': 'name', + 'db_type': 'db_type', + 'config': 'config', + 'description': 'description', + 'endpoint': 'endpoint', + 'vpc': 'vpc', + 'ssl': 'ssl', + 'cloud': 'cloud', + 'enterprise_project_id': 'enterprise_project_id' + } + + def __init__(self, name=None, db_type=None, config=None, description=None, endpoint=None, vpc=None, ssl=None, cloud=None, enterprise_project_id=None): + """CreateConnectionReq + + The model defined in huaweicloud sdk + + :param name: 连接名称。 约束:连接名称在4位到50位之间,不区分大小写,可以包含字母、数字、中划线或下划线,不能包括其他特殊字符。 + :type name: str + :param db_type: 连接类型,包含: - mysql - postgresql - mongodb - oracle + :type db_type: str + :param config: + :type config: :class:`huaweicloudsdkdrs.v5.ConnectionConfig` + :param description: 描述,长度不能超过255个字符。 + :type description: str + :param endpoint: + :type endpoint: :class:`huaweicloudsdkdrs.v5.BaseEndpoint` + :param vpc: + :type vpc: :class:`huaweicloudsdkdrs.v5.CloudVpcInfo` + :param ssl: + :type ssl: :class:`huaweicloudsdkdrs.v5.EndpointSslConfig` + :param cloud: + :type cloud: :class:`huaweicloudsdkdrs.v5.CloudBaseInfo` + :param enterprise_project_id: 企业项目ID。 + :type enterprise_project_id: str + """ + + + + self._name = None + self._db_type = None + self._config = None + self._description = None + self._endpoint = None + self._vpc = None + self._ssl = None + self._cloud = None + self._enterprise_project_id = None + self.discriminator = None + + self.name = name + self.db_type = db_type + if config is not None: + self.config = config + if description is not None: + self.description = description + self.endpoint = endpoint + if vpc is not None: + self.vpc = vpc + if ssl is not None: + self.ssl = ssl + if cloud is not None: + self.cloud = cloud + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + + @property + def name(self): + """Gets the name of this CreateConnectionReq. + + 连接名称。 约束:连接名称在4位到50位之间,不区分大小写,可以包含字母、数字、中划线或下划线,不能包括其他特殊字符。 + + :return: The name of this CreateConnectionReq. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateConnectionReq. + + 连接名称。 约束:连接名称在4位到50位之间,不区分大小写,可以包含字母、数字、中划线或下划线,不能包括其他特殊字符。 + + :param name: The name of this CreateConnectionReq. + :type name: str + """ + self._name = name + + @property + def db_type(self): + """Gets the db_type of this CreateConnectionReq. + + 连接类型,包含: - mysql - postgresql - mongodb - oracle + + :return: The db_type of this CreateConnectionReq. + :rtype: str + """ + return self._db_type + + @db_type.setter + def db_type(self, db_type): + """Sets the db_type of this CreateConnectionReq. + + 连接类型,包含: - mysql - postgresql - mongodb - oracle + + :param db_type: The db_type of this CreateConnectionReq. + :type db_type: str + """ + self._db_type = db_type + + @property + def config(self): + """Gets the config of this CreateConnectionReq. + + :return: The config of this CreateConnectionReq. + :rtype: :class:`huaweicloudsdkdrs.v5.ConnectionConfig` + """ + return self._config + + @config.setter + def config(self, config): + """Sets the config of this CreateConnectionReq. + + :param config: The config of this CreateConnectionReq. + :type config: :class:`huaweicloudsdkdrs.v5.ConnectionConfig` + """ + self._config = config + + @property + def description(self): + """Gets the description of this CreateConnectionReq. + + 描述,长度不能超过255个字符。 + + :return: The description of this CreateConnectionReq. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateConnectionReq. + + 描述,长度不能超过255个字符。 + + :param description: The description of this CreateConnectionReq. + :type description: str + """ + self._description = description + + @property + def endpoint(self): + """Gets the endpoint of this CreateConnectionReq. + + :return: The endpoint of this CreateConnectionReq. + :rtype: :class:`huaweicloudsdkdrs.v5.BaseEndpoint` + """ + return self._endpoint + + @endpoint.setter + def endpoint(self, endpoint): + """Sets the endpoint of this CreateConnectionReq. + + :param endpoint: The endpoint of this CreateConnectionReq. + :type endpoint: :class:`huaweicloudsdkdrs.v5.BaseEndpoint` + """ + self._endpoint = endpoint + + @property + def vpc(self): + """Gets the vpc of this CreateConnectionReq. + + :return: The vpc of this CreateConnectionReq. + :rtype: :class:`huaweicloudsdkdrs.v5.CloudVpcInfo` + """ + return self._vpc + + @vpc.setter + def vpc(self, vpc): + """Sets the vpc of this CreateConnectionReq. + + :param vpc: The vpc of this CreateConnectionReq. + :type vpc: :class:`huaweicloudsdkdrs.v5.CloudVpcInfo` + """ + self._vpc = vpc + + @property + def ssl(self): + """Gets the ssl of this CreateConnectionReq. + + :return: The ssl of this CreateConnectionReq. + :rtype: :class:`huaweicloudsdkdrs.v5.EndpointSslConfig` + """ + return self._ssl + + @ssl.setter + def ssl(self, ssl): + """Sets the ssl of this CreateConnectionReq. + + :param ssl: The ssl of this CreateConnectionReq. + :type ssl: :class:`huaweicloudsdkdrs.v5.EndpointSslConfig` + """ + self._ssl = ssl + + @property + def cloud(self): + """Gets the cloud of this CreateConnectionReq. + + :return: The cloud of this CreateConnectionReq. + :rtype: :class:`huaweicloudsdkdrs.v5.CloudBaseInfo` + """ + return self._cloud + + @cloud.setter + def cloud(self, cloud): + """Sets the cloud of this CreateConnectionReq. + + :param cloud: The cloud of this CreateConnectionReq. + :type cloud: :class:`huaweicloudsdkdrs.v5.CloudBaseInfo` + """ + self._cloud = cloud + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this CreateConnectionReq. + + 企业项目ID。 + + :return: The enterprise_project_id of this CreateConnectionReq. + :rtype: str + """ + return self._enterprise_project_id + + @enterprise_project_id.setter + def enterprise_project_id(self, enterprise_project_id): + """Sets the enterprise_project_id of this CreateConnectionReq. + + 企业项目ID。 + + :param enterprise_project_id: The enterprise_project_id of this CreateConnectionReq. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateConnectionReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/create_connection_request.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/create_connection_request.py new file mode 100644 index 0000000000..b7f3ce950a --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/create_connection_request.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateConnectionRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_language': 'str', + 'body': 'CreateConnectionReq' + } + + attribute_map = { + 'x_language': 'X-Language', + 'body': 'body' + } + + def __init__(self, x_language=None, body=None): + """CreateConnectionRequest + + The model defined in huaweicloud sdk + + :param x_language: 请求语言类型。 + :type x_language: str + :param body: Body of the CreateConnectionRequest + :type body: :class:`huaweicloudsdkdrs.v5.CreateConnectionReq` + """ + + + + self._x_language = None + self._body = None + self.discriminator = None + + if x_language is not None: + self.x_language = x_language + if body is not None: + self.body = body + + @property + def x_language(self): + """Gets the x_language of this CreateConnectionRequest. + + 请求语言类型。 + + :return: The x_language of this CreateConnectionRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this CreateConnectionRequest. + + 请求语言类型。 + + :param x_language: The x_language of this CreateConnectionRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def body(self): + """Gets the body of this CreateConnectionRequest. + + :return: The body of this CreateConnectionRequest. + :rtype: :class:`huaweicloudsdkdrs.v5.CreateConnectionReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateConnectionRequest. + + :param body: The body of this CreateConnectionRequest. + :type body: :class:`huaweicloudsdkdrs.v5.CreateConnectionReq` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateConnectionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/create_connection_response.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/create_connection_response.py new file mode 100644 index 0000000000..5f41f67561 --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/create_connection_response.py @@ -0,0 +1,361 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateConnectionResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'connection_id': 'str', + 'name': 'str', + 'create_time': 'int', + 'db_type': 'str', + 'config': 'ConnectionConfig', + 'endpoint': 'BaseEndpoint', + 'vpc': 'CloudVpcInfo', + 'ssl': 'EndpointSslConfig', + 'enterprise_project_id': 'str', + 'description': 'str' + } + + attribute_map = { + 'connection_id': 'connection_id', + 'name': 'name', + 'create_time': 'create_time', + 'db_type': 'db_type', + 'config': 'config', + 'endpoint': 'endpoint', + 'vpc': 'vpc', + 'ssl': 'ssl', + 'enterprise_project_id': 'enterprise_project_id', + 'description': 'description' + } + + def __init__(self, connection_id=None, name=None, create_time=None, db_type=None, config=None, endpoint=None, vpc=None, ssl=None, enterprise_project_id=None, description=None): + """CreateConnectionResponse + + The model defined in huaweicloud sdk + + :param connection_id: 连接ID。 + :type connection_id: str + :param name: 连接名称。 + :type name: str + :param create_time: 连接创建时间,格式为时间戳。 + :type create_time: int + :param db_type: 连接类型。 + :type db_type: str + :param config: + :type config: :class:`huaweicloudsdkdrs.v5.ConnectionConfig` + :param endpoint: + :type endpoint: :class:`huaweicloudsdkdrs.v5.BaseEndpoint` + :param vpc: + :type vpc: :class:`huaweicloudsdkdrs.v5.CloudVpcInfo` + :param ssl: + :type ssl: :class:`huaweicloudsdkdrs.v5.EndpointSslConfig` + :param enterprise_project_id: 企业项目ID。 + :type enterprise_project_id: str + :param description: 描述。 + :type description: str + """ + + super(CreateConnectionResponse, self).__init__() + + self._connection_id = None + self._name = None + self._create_time = None + self._db_type = None + self._config = None + self._endpoint = None + self._vpc = None + self._ssl = None + self._enterprise_project_id = None + self._description = None + self.discriminator = None + + if connection_id is not None: + self.connection_id = connection_id + if name is not None: + self.name = name + if create_time is not None: + self.create_time = create_time + if db_type is not None: + self.db_type = db_type + if config is not None: + self.config = config + if endpoint is not None: + self.endpoint = endpoint + if vpc is not None: + self.vpc = vpc + if ssl is not None: + self.ssl = ssl + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + if description is not None: + self.description = description + + @property + def connection_id(self): + """Gets the connection_id of this CreateConnectionResponse. + + 连接ID。 + + :return: The connection_id of this CreateConnectionResponse. + :rtype: str + """ + return self._connection_id + + @connection_id.setter + def connection_id(self, connection_id): + """Sets the connection_id of this CreateConnectionResponse. + + 连接ID。 + + :param connection_id: The connection_id of this CreateConnectionResponse. + :type connection_id: str + """ + self._connection_id = connection_id + + @property + def name(self): + """Gets the name of this CreateConnectionResponse. + + 连接名称。 + + :return: The name of this CreateConnectionResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateConnectionResponse. + + 连接名称。 + + :param name: The name of this CreateConnectionResponse. + :type name: str + """ + self._name = name + + @property + def create_time(self): + """Gets the create_time of this CreateConnectionResponse. + + 连接创建时间,格式为时间戳。 + + :return: The create_time of this CreateConnectionResponse. + :rtype: int + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this CreateConnectionResponse. + + 连接创建时间,格式为时间戳。 + + :param create_time: The create_time of this CreateConnectionResponse. + :type create_time: int + """ + self._create_time = create_time + + @property + def db_type(self): + """Gets the db_type of this CreateConnectionResponse. + + 连接类型。 + + :return: The db_type of this CreateConnectionResponse. + :rtype: str + """ + return self._db_type + + @db_type.setter + def db_type(self, db_type): + """Sets the db_type of this CreateConnectionResponse. + + 连接类型。 + + :param db_type: The db_type of this CreateConnectionResponse. + :type db_type: str + """ + self._db_type = db_type + + @property + def config(self): + """Gets the config of this CreateConnectionResponse. + + :return: The config of this CreateConnectionResponse. + :rtype: :class:`huaweicloudsdkdrs.v5.ConnectionConfig` + """ + return self._config + + @config.setter + def config(self, config): + """Sets the config of this CreateConnectionResponse. + + :param config: The config of this CreateConnectionResponse. + :type config: :class:`huaweicloudsdkdrs.v5.ConnectionConfig` + """ + self._config = config + + @property + def endpoint(self): + """Gets the endpoint of this CreateConnectionResponse. + + :return: The endpoint of this CreateConnectionResponse. + :rtype: :class:`huaweicloudsdkdrs.v5.BaseEndpoint` + """ + return self._endpoint + + @endpoint.setter + def endpoint(self, endpoint): + """Sets the endpoint of this CreateConnectionResponse. + + :param endpoint: The endpoint of this CreateConnectionResponse. + :type endpoint: :class:`huaweicloudsdkdrs.v5.BaseEndpoint` + """ + self._endpoint = endpoint + + @property + def vpc(self): + """Gets the vpc of this CreateConnectionResponse. + + :return: The vpc of this CreateConnectionResponse. + :rtype: :class:`huaweicloudsdkdrs.v5.CloudVpcInfo` + """ + return self._vpc + + @vpc.setter + def vpc(self, vpc): + """Sets the vpc of this CreateConnectionResponse. + + :param vpc: The vpc of this CreateConnectionResponse. + :type vpc: :class:`huaweicloudsdkdrs.v5.CloudVpcInfo` + """ + self._vpc = vpc + + @property + def ssl(self): + """Gets the ssl of this CreateConnectionResponse. + + :return: The ssl of this CreateConnectionResponse. + :rtype: :class:`huaweicloudsdkdrs.v5.EndpointSslConfig` + """ + return self._ssl + + @ssl.setter + def ssl(self, ssl): + """Sets the ssl of this CreateConnectionResponse. + + :param ssl: The ssl of this CreateConnectionResponse. + :type ssl: :class:`huaweicloudsdkdrs.v5.EndpointSslConfig` + """ + self._ssl = ssl + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this CreateConnectionResponse. + + 企业项目ID。 + + :return: The enterprise_project_id of this CreateConnectionResponse. + :rtype: str + """ + return self._enterprise_project_id + + @enterprise_project_id.setter + def enterprise_project_id(self, enterprise_project_id): + """Sets the enterprise_project_id of this CreateConnectionResponse. + + 企业项目ID。 + + :param enterprise_project_id: The enterprise_project_id of this CreateConnectionResponse. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def description(self): + """Gets the description of this CreateConnectionResponse. + + 描述。 + + :return: The description of this CreateConnectionResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateConnectionResponse. + + 描述。 + + :param description: The description of this CreateConnectionResponse. + :type description: str + """ + self._description = description + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateConnectionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/create_offline_task_req.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/create_offline_task_req.py new file mode 100644 index 0000000000..c0e8c743a3 --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/create_offline_task_req.py @@ -0,0 +1,182 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateOfflineTaskReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'base_info': 'BackupJobBaseInfo', + 'target_db_info': 'BackupJobEndpointInfo', + 'backup_info': 'BackupInfo', + 'options': 'BackupRestoreOptionInfo' + } + + attribute_map = { + 'base_info': 'base_info', + 'target_db_info': 'target_db_info', + 'backup_info': 'backup_info', + 'options': 'options' + } + + def __init__(self, base_info=None, target_db_info=None, backup_info=None, options=None): + """CreateOfflineTaskReq + + The model defined in huaweicloud sdk + + :param base_info: + :type base_info: :class:`huaweicloudsdkdrs.v5.BackupJobBaseInfo` + :param target_db_info: + :type target_db_info: :class:`huaweicloudsdkdrs.v5.BackupJobEndpointInfo` + :param backup_info: + :type backup_info: :class:`huaweicloudsdkdrs.v5.BackupInfo` + :param options: + :type options: :class:`huaweicloudsdkdrs.v5.BackupRestoreOptionInfo` + """ + + + + self._base_info = None + self._target_db_info = None + self._backup_info = None + self._options = None + self.discriminator = None + + self.base_info = base_info + self.target_db_info = target_db_info + self.backup_info = backup_info + self.options = options + + @property + def base_info(self): + """Gets the base_info of this CreateOfflineTaskReq. + + :return: The base_info of this CreateOfflineTaskReq. + :rtype: :class:`huaweicloudsdkdrs.v5.BackupJobBaseInfo` + """ + return self._base_info + + @base_info.setter + def base_info(self, base_info): + """Sets the base_info of this CreateOfflineTaskReq. + + :param base_info: The base_info of this CreateOfflineTaskReq. + :type base_info: :class:`huaweicloudsdkdrs.v5.BackupJobBaseInfo` + """ + self._base_info = base_info + + @property + def target_db_info(self): + """Gets the target_db_info of this CreateOfflineTaskReq. + + :return: The target_db_info of this CreateOfflineTaskReq. + :rtype: :class:`huaweicloudsdkdrs.v5.BackupJobEndpointInfo` + """ + return self._target_db_info + + @target_db_info.setter + def target_db_info(self, target_db_info): + """Sets the target_db_info of this CreateOfflineTaskReq. + + :param target_db_info: The target_db_info of this CreateOfflineTaskReq. + :type target_db_info: :class:`huaweicloudsdkdrs.v5.BackupJobEndpointInfo` + """ + self._target_db_info = target_db_info + + @property + def backup_info(self): + """Gets the backup_info of this CreateOfflineTaskReq. + + :return: The backup_info of this CreateOfflineTaskReq. + :rtype: :class:`huaweicloudsdkdrs.v5.BackupInfo` + """ + return self._backup_info + + @backup_info.setter + def backup_info(self, backup_info): + """Sets the backup_info of this CreateOfflineTaskReq. + + :param backup_info: The backup_info of this CreateOfflineTaskReq. + :type backup_info: :class:`huaweicloudsdkdrs.v5.BackupInfo` + """ + self._backup_info = backup_info + + @property + def options(self): + """Gets the options of this CreateOfflineTaskReq. + + :return: The options of this CreateOfflineTaskReq. + :rtype: :class:`huaweicloudsdkdrs.v5.BackupRestoreOptionInfo` + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this CreateOfflineTaskReq. + + :param options: The options of this CreateOfflineTaskReq. + :type options: :class:`huaweicloudsdkdrs.v5.BackupRestoreOptionInfo` + """ + self._options = options + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateOfflineTaskReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/create_replication_job_request.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/create_replication_job_request.py new file mode 100644 index 0000000000..40e2045810 --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/create_replication_job_request.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateReplicationJobRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_language': 'str', + 'body': 'CreateOfflineTaskReq' + } + + attribute_map = { + 'x_language': 'X-Language', + 'body': 'body' + } + + def __init__(self, x_language=None, body=None): + """CreateReplicationJobRequest + + The model defined in huaweicloud sdk + + :param x_language: 请求语言类型。 + :type x_language: str + :param body: Body of the CreateReplicationJobRequest + :type body: :class:`huaweicloudsdkdrs.v5.CreateOfflineTaskReq` + """ + + + + self._x_language = None + self._body = None + self.discriminator = None + + if x_language is not None: + self.x_language = x_language + if body is not None: + self.body = body + + @property + def x_language(self): + """Gets the x_language of this CreateReplicationJobRequest. + + 请求语言类型。 + + :return: The x_language of this CreateReplicationJobRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this CreateReplicationJobRequest. + + 请求语言类型。 + + :param x_language: The x_language of this CreateReplicationJobRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def body(self): + """Gets the body of this CreateReplicationJobRequest. + + :return: The body of this CreateReplicationJobRequest. + :rtype: :class:`huaweicloudsdkdrs.v5.CreateOfflineTaskReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateReplicationJobRequest. + + :param body: The body of this CreateReplicationJobRequest. + :type body: :class:`huaweicloudsdkdrs.v5.CreateOfflineTaskReq` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateReplicationJobRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/create_replication_job_response.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/create_replication_job_response.py new file mode 100644 index 0000000000..e45fead386 --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/create_replication_job_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateReplicationJobResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'job_id': 'str' + } + + attribute_map = { + 'job_id': 'job_id' + } + + def __init__(self, job_id=None): + """CreateReplicationJobResponse + + The model defined in huaweicloud sdk + + :param job_id: 任务ID。 + :type job_id: str + """ + + super(CreateReplicationJobResponse, self).__init__() + + self._job_id = None + self.discriminator = None + + if job_id is not None: + self.job_id = job_id + + @property + def job_id(self): + """Gets the job_id of this CreateReplicationJobResponse. + + 任务ID。 + + :return: The job_id of this CreateReplicationJobResponse. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this CreateReplicationJobResponse. + + 任务ID。 + + :param job_id: The job_id of this CreateReplicationJobResponse. + :type job_id: str + """ + self._job_id = job_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateReplicationJobResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/ddl_alarm_resp.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/ddl_alarm_resp.py new file mode 100644 index 0000000000..c3a7a45e5a --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/ddl_alarm_resp.py @@ -0,0 +1,311 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DdlAlarmResp: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'seqno': 'int', + 'checkpoint': 'str', + 'status': 'int', + 'ddl_timestamp': 'int', + 'ddl_text': 'str', + 'exe_result': 'bool', + 'record_time': 'int', + 'clean_time': 'int' + } + + attribute_map = { + 'seqno': 'seqno', + 'checkpoint': 'checkpoint', + 'status': 'status', + 'ddl_timestamp': 'ddl_timestamp', + 'ddl_text': 'ddl_text', + 'exe_result': 'exe_result', + 'record_time': 'record_time', + 'clean_time': 'clean_time' + } + + def __init__(self, seqno=None, checkpoint=None, status=None, ddl_timestamp=None, ddl_text=None, exe_result=None, record_time=None, clean_time=None): + """DdlAlarmResp + + The model defined in huaweicloud sdk + + :param seqno: 记录唯一序号。 + :type seqno: int + :param checkpoint: 数据源库位点。 + :type checkpoint: str + :param status: DDL告警状态。0无告警,1告警中。 + :type status: int + :param ddl_timestamp: DDL在源库执行时间。 + :type ddl_timestamp: int + :param ddl_text: DDL内容。 + :type ddl_text: str + :param exe_result: DDL执行结果。false执行失败,true执行成功。 + :type exe_result: bool + :param record_time: 数据记录时间。 + :type record_time: int + :param clean_time: DDL告警清理时间。 + :type clean_time: int + """ + + + + self._seqno = None + self._checkpoint = None + self._status = None + self._ddl_timestamp = None + self._ddl_text = None + self._exe_result = None + self._record_time = None + self._clean_time = None + self.discriminator = None + + self.seqno = seqno + self.checkpoint = checkpoint + self.status = status + self.ddl_timestamp = ddl_timestamp + self.ddl_text = ddl_text + self.exe_result = exe_result + self.record_time = record_time + if clean_time is not None: + self.clean_time = clean_time + + @property + def seqno(self): + """Gets the seqno of this DdlAlarmResp. + + 记录唯一序号。 + + :return: The seqno of this DdlAlarmResp. + :rtype: int + """ + return self._seqno + + @seqno.setter + def seqno(self, seqno): + """Sets the seqno of this DdlAlarmResp. + + 记录唯一序号。 + + :param seqno: The seqno of this DdlAlarmResp. + :type seqno: int + """ + self._seqno = seqno + + @property + def checkpoint(self): + """Gets the checkpoint of this DdlAlarmResp. + + 数据源库位点。 + + :return: The checkpoint of this DdlAlarmResp. + :rtype: str + """ + return self._checkpoint + + @checkpoint.setter + def checkpoint(self, checkpoint): + """Sets the checkpoint of this DdlAlarmResp. + + 数据源库位点。 + + :param checkpoint: The checkpoint of this DdlAlarmResp. + :type checkpoint: str + """ + self._checkpoint = checkpoint + + @property + def status(self): + """Gets the status of this DdlAlarmResp. + + DDL告警状态。0无告警,1告警中。 + + :return: The status of this DdlAlarmResp. + :rtype: int + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this DdlAlarmResp. + + DDL告警状态。0无告警,1告警中。 + + :param status: The status of this DdlAlarmResp. + :type status: int + """ + self._status = status + + @property + def ddl_timestamp(self): + """Gets the ddl_timestamp of this DdlAlarmResp. + + DDL在源库执行时间。 + + :return: The ddl_timestamp of this DdlAlarmResp. + :rtype: int + """ + return self._ddl_timestamp + + @ddl_timestamp.setter + def ddl_timestamp(self, ddl_timestamp): + """Sets the ddl_timestamp of this DdlAlarmResp. + + DDL在源库执行时间。 + + :param ddl_timestamp: The ddl_timestamp of this DdlAlarmResp. + :type ddl_timestamp: int + """ + self._ddl_timestamp = ddl_timestamp + + @property + def ddl_text(self): + """Gets the ddl_text of this DdlAlarmResp. + + DDL内容。 + + :return: The ddl_text of this DdlAlarmResp. + :rtype: str + """ + return self._ddl_text + + @ddl_text.setter + def ddl_text(self, ddl_text): + """Sets the ddl_text of this DdlAlarmResp. + + DDL内容。 + + :param ddl_text: The ddl_text of this DdlAlarmResp. + :type ddl_text: str + """ + self._ddl_text = ddl_text + + @property + def exe_result(self): + """Gets the exe_result of this DdlAlarmResp. + + DDL执行结果。false执行失败,true执行成功。 + + :return: The exe_result of this DdlAlarmResp. + :rtype: bool + """ + return self._exe_result + + @exe_result.setter + def exe_result(self, exe_result): + """Sets the exe_result of this DdlAlarmResp. + + DDL执行结果。false执行失败,true执行成功。 + + :param exe_result: The exe_result of this DdlAlarmResp. + :type exe_result: bool + """ + self._exe_result = exe_result + + @property + def record_time(self): + """Gets the record_time of this DdlAlarmResp. + + 数据记录时间。 + + :return: The record_time of this DdlAlarmResp. + :rtype: int + """ + return self._record_time + + @record_time.setter + def record_time(self, record_time): + """Sets the record_time of this DdlAlarmResp. + + 数据记录时间。 + + :param record_time: The record_time of this DdlAlarmResp. + :type record_time: int + """ + self._record_time = record_time + + @property + def clean_time(self): + """Gets the clean_time of this DdlAlarmResp. + + DDL告警清理时间。 + + :return: The clean_time of this DdlAlarmResp. + :rtype: int + """ + return self._clean_time + + @clean_time.setter + def clean_time(self, clean_time): + """Sets the clean_time of this DdlAlarmResp. + + DDL告警清理时间。 + + :param clean_time: The clean_time of this DdlAlarmResp. + :type clean_time: int + """ + self._clean_time = clean_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DdlAlarmResp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/delete_connection_request.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/delete_connection_request.py new file mode 100644 index 0000000000..23ceb66887 --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/delete_connection_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteConnectionRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'connection_id': 'str', + 'x_language': 'str' + } + + attribute_map = { + 'connection_id': 'connection_id', + 'x_language': 'X-Language' + } + + def __init__(self, connection_id=None, x_language=None): + """DeleteConnectionRequest + + The model defined in huaweicloud sdk + + :param connection_id: 连接ID。 + :type connection_id: str + :param x_language: 请求语言类型。 + :type x_language: str + """ + + + + self._connection_id = None + self._x_language = None + self.discriminator = None + + self.connection_id = connection_id + if x_language is not None: + self.x_language = x_language + + @property + def connection_id(self): + """Gets the connection_id of this DeleteConnectionRequest. + + 连接ID。 + + :return: The connection_id of this DeleteConnectionRequest. + :rtype: str + """ + return self._connection_id + + @connection_id.setter + def connection_id(self, connection_id): + """Sets the connection_id of this DeleteConnectionRequest. + + 连接ID。 + + :param connection_id: The connection_id of this DeleteConnectionRequest. + :type connection_id: str + """ + self._connection_id = connection_id + + @property + def x_language(self): + """Gets the x_language of this DeleteConnectionRequest. + + 请求语言类型。 + + :return: The x_language of this DeleteConnectionRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this DeleteConnectionRequest. + + 请求语言类型。 + + :param x_language: The x_language of this DeleteConnectionRequest. + :type x_language: str + """ + self._x_language = x_language + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteConnectionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/delete_connection_response.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/delete_connection_response.py new file mode 100644 index 0000000000..dae86c1bec --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/delete_connection_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteConnectionResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'object' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """DeleteConnectionResponse + + The model defined in huaweicloud sdk + + :param body: 空响应体。 + :type body: object + """ + + super(DeleteConnectionResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this DeleteConnectionResponse. + + 空响应体。 + + :return: The body of this DeleteConnectionResponse. + :rtype: object + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteConnectionResponse. + + 空响应体。 + + :param body: The body of this DeleteConnectionResponse. + :type body: object + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteConnectionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/delete_replication_job_request.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/delete_replication_job_request.py new file mode 100644 index 0000000000..42135f0160 --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/delete_replication_job_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteReplicationJobRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_language': 'str', + 'job_id': 'str' + } + + attribute_map = { + 'x_language': 'X-Language', + 'job_id': 'job_id' + } + + def __init__(self, x_language=None, job_id=None): + """DeleteReplicationJobRequest + + The model defined in huaweicloud sdk + + :param x_language: 请求语言类型。 + :type x_language: str + :param job_id: 备份迁移任务ID。 + :type job_id: str + """ + + + + self._x_language = None + self._job_id = None + self.discriminator = None + + if x_language is not None: + self.x_language = x_language + self.job_id = job_id + + @property + def x_language(self): + """Gets the x_language of this DeleteReplicationJobRequest. + + 请求语言类型。 + + :return: The x_language of this DeleteReplicationJobRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this DeleteReplicationJobRequest. + + 请求语言类型。 + + :param x_language: The x_language of this DeleteReplicationJobRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def job_id(self): + """Gets the job_id of this DeleteReplicationJobRequest. + + 备份迁移任务ID。 + + :return: The job_id of this DeleteReplicationJobRequest. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this DeleteReplicationJobRequest. + + 备份迁移任务ID。 + + :param job_id: The job_id of this DeleteReplicationJobRequest. + :type job_id: str + """ + self._job_id = job_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteReplicationJobRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/delete_replication_job_response.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/delete_replication_job_response.py new file mode 100644 index 0000000000..19e172527c --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/delete_replication_job_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteReplicationJobResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'object' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """DeleteReplicationJobResponse + + The model defined in huaweicloud sdk + + :param body: 空响应体。 + :type body: object + """ + + super(DeleteReplicationJobResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this DeleteReplicationJobResponse. + + 空响应体。 + + :return: The body of this DeleteReplicationJobResponse. + :rtype: object + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteReplicationJobResponse. + + 空响应体。 + + :param body: The body of this DeleteReplicationJobResponse. + :type body: object + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteReplicationJobResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/list_connections_request.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/list_connections_request.py new file mode 100644 index 0000000000..f87c1d2174 --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/list_connections_request.py @@ -0,0 +1,492 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListConnectionsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_language': 'str', + 'connection_id': 'str', + 'db_type': 'str', + 'name': 'str', + 'inst_id': 'str', + 'ip': 'str', + 'description': 'str', + 'create_time': 'str', + 'enterprise_project_id': 'str', + 'offset': 'int', + 'limit': 'int', + 'fetch_all': 'bool', + 'sort_key': 'str', + 'sort_dir': 'str' + } + + attribute_map = { + 'x_language': 'X-Language', + 'connection_id': 'connection_id', + 'db_type': 'db_type', + 'name': 'name', + 'inst_id': 'inst_id', + 'ip': 'ip', + 'description': 'description', + 'create_time': 'create_time', + 'enterprise_project_id': 'enterprise_project_id', + 'offset': 'offset', + 'limit': 'limit', + 'fetch_all': 'fetch_all', + 'sort_key': 'sort_key', + 'sort_dir': 'sort_dir' + } + + def __init__(self, x_language=None, connection_id=None, db_type=None, name=None, inst_id=None, ip=None, description=None, create_time=None, enterprise_project_id=None, offset=None, limit=None, fetch_all=None, sort_key=None, sort_dir=None): + """ListConnectionsRequest + + The model defined in huaweicloud sdk + + :param x_language: 请求语言类型。 + :type x_language: str + :param connection_id: 连接ID。 + :type connection_id: str + :param db_type: 连接类型。 - mysql - oracle - postgresql - mongodb + :type db_type: str + :param name: 连接名称,忽略大小写。 + :type name: str + :param inst_id: 云上数据库实例ID。 + :type inst_id: str + :param ip: 连接IP。 + :type ip: str + :param description: 连接描述。 + :type description: str + :param create_time: 时间区间用“,”分割。示例:2024-05-17T07:46:00.414Z,2024-05-20T07:46:00.999Z。 + :type create_time: str + :param enterprise_project_id: 企业项目ID。 + :type enterprise_project_id: str + :param offset: 偏移量,默认值为0,表示查询该偏移量后面的记录。 + :type offset: int + :param limit: 查询返回记录的数量限制,默认值为10。 + :type limit: int + :param fetch_all: 值为“true”时会使得offset和limit参数失效并返回所有记录。 + :type fetch_all: bool + :param sort_key: 返回结果按该关键字排序,默认为“created_at”。 + :type sort_key: str + :param sort_dir: 降序或升序(分别对应desc和asc,默认为“desc”)。 + :type sort_dir: str + """ + + + + self._x_language = None + self._connection_id = None + self._db_type = None + self._name = None + self._inst_id = None + self._ip = None + self._description = None + self._create_time = None + self._enterprise_project_id = None + self._offset = None + self._limit = None + self._fetch_all = None + self._sort_key = None + self._sort_dir = None + self.discriminator = None + + if x_language is not None: + self.x_language = x_language + if connection_id is not None: + self.connection_id = connection_id + if db_type is not None: + self.db_type = db_type + if name is not None: + self.name = name + if inst_id is not None: + self.inst_id = inst_id + if ip is not None: + self.ip = ip + if description is not None: + self.description = description + if create_time is not None: + self.create_time = create_time + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if fetch_all is not None: + self.fetch_all = fetch_all + if sort_key is not None: + self.sort_key = sort_key + if sort_dir is not None: + self.sort_dir = sort_dir + + @property + def x_language(self): + """Gets the x_language of this ListConnectionsRequest. + + 请求语言类型。 + + :return: The x_language of this ListConnectionsRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ListConnectionsRequest. + + 请求语言类型。 + + :param x_language: The x_language of this ListConnectionsRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def connection_id(self): + """Gets the connection_id of this ListConnectionsRequest. + + 连接ID。 + + :return: The connection_id of this ListConnectionsRequest. + :rtype: str + """ + return self._connection_id + + @connection_id.setter + def connection_id(self, connection_id): + """Sets the connection_id of this ListConnectionsRequest. + + 连接ID。 + + :param connection_id: The connection_id of this ListConnectionsRequest. + :type connection_id: str + """ + self._connection_id = connection_id + + @property + def db_type(self): + """Gets the db_type of this ListConnectionsRequest. + + 连接类型。 - mysql - oracle - postgresql - mongodb + + :return: The db_type of this ListConnectionsRequest. + :rtype: str + """ + return self._db_type + + @db_type.setter + def db_type(self, db_type): + """Sets the db_type of this ListConnectionsRequest. + + 连接类型。 - mysql - oracle - postgresql - mongodb + + :param db_type: The db_type of this ListConnectionsRequest. + :type db_type: str + """ + self._db_type = db_type + + @property + def name(self): + """Gets the name of this ListConnectionsRequest. + + 连接名称,忽略大小写。 + + :return: The name of this ListConnectionsRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ListConnectionsRequest. + + 连接名称,忽略大小写。 + + :param name: The name of this ListConnectionsRequest. + :type name: str + """ + self._name = name + + @property + def inst_id(self): + """Gets the inst_id of this ListConnectionsRequest. + + 云上数据库实例ID。 + + :return: The inst_id of this ListConnectionsRequest. + :rtype: str + """ + return self._inst_id + + @inst_id.setter + def inst_id(self, inst_id): + """Sets the inst_id of this ListConnectionsRequest. + + 云上数据库实例ID。 + + :param inst_id: The inst_id of this ListConnectionsRequest. + :type inst_id: str + """ + self._inst_id = inst_id + + @property + def ip(self): + """Gets the ip of this ListConnectionsRequest. + + 连接IP。 + + :return: The ip of this ListConnectionsRequest. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this ListConnectionsRequest. + + 连接IP。 + + :param ip: The ip of this ListConnectionsRequest. + :type ip: str + """ + self._ip = ip + + @property + def description(self): + """Gets the description of this ListConnectionsRequest. + + 连接描述。 + + :return: The description of this ListConnectionsRequest. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ListConnectionsRequest. + + 连接描述。 + + :param description: The description of this ListConnectionsRequest. + :type description: str + """ + self._description = description + + @property + def create_time(self): + """Gets the create_time of this ListConnectionsRequest. + + 时间区间用“,”分割。示例:2024-05-17T07:46:00.414Z,2024-05-20T07:46:00.999Z。 + + :return: The create_time of this ListConnectionsRequest. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ListConnectionsRequest. + + 时间区间用“,”分割。示例:2024-05-17T07:46:00.414Z,2024-05-20T07:46:00.999Z。 + + :param create_time: The create_time of this ListConnectionsRequest. + :type create_time: str + """ + self._create_time = create_time + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this ListConnectionsRequest. + + 企业项目ID。 + + :return: The enterprise_project_id of this ListConnectionsRequest. + :rtype: str + """ + return self._enterprise_project_id + + @enterprise_project_id.setter + def enterprise_project_id(self, enterprise_project_id): + """Sets the enterprise_project_id of this ListConnectionsRequest. + + 企业项目ID。 + + :param enterprise_project_id: The enterprise_project_id of this ListConnectionsRequest. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def offset(self): + """Gets the offset of this ListConnectionsRequest. + + 偏移量,默认值为0,表示查询该偏移量后面的记录。 + + :return: The offset of this ListConnectionsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListConnectionsRequest. + + 偏移量,默认值为0,表示查询该偏移量后面的记录。 + + :param offset: The offset of this ListConnectionsRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListConnectionsRequest. + + 查询返回记录的数量限制,默认值为10。 + + :return: The limit of this ListConnectionsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListConnectionsRequest. + + 查询返回记录的数量限制,默认值为10。 + + :param limit: The limit of this ListConnectionsRequest. + :type limit: int + """ + self._limit = limit + + @property + def fetch_all(self): + """Gets the fetch_all of this ListConnectionsRequest. + + 值为“true”时会使得offset和limit参数失效并返回所有记录。 + + :return: The fetch_all of this ListConnectionsRequest. + :rtype: bool + """ + return self._fetch_all + + @fetch_all.setter + def fetch_all(self, fetch_all): + """Sets the fetch_all of this ListConnectionsRequest. + + 值为“true”时会使得offset和limit参数失效并返回所有记录。 + + :param fetch_all: The fetch_all of this ListConnectionsRequest. + :type fetch_all: bool + """ + self._fetch_all = fetch_all + + @property + def sort_key(self): + """Gets the sort_key of this ListConnectionsRequest. + + 返回结果按该关键字排序,默认为“created_at”。 + + :return: The sort_key of this ListConnectionsRequest. + :rtype: str + """ + return self._sort_key + + @sort_key.setter + def sort_key(self, sort_key): + """Sets the sort_key of this ListConnectionsRequest. + + 返回结果按该关键字排序,默认为“created_at”。 + + :param sort_key: The sort_key of this ListConnectionsRequest. + :type sort_key: str + """ + self._sort_key = sort_key + + @property + def sort_dir(self): + """Gets the sort_dir of this ListConnectionsRequest. + + 降序或升序(分别对应desc和asc,默认为“desc”)。 + + :return: The sort_dir of this ListConnectionsRequest. + :rtype: str + """ + return self._sort_dir + + @sort_dir.setter + def sort_dir(self, sort_dir): + """Sets the sort_dir of this ListConnectionsRequest. + + 降序或升序(分别对应desc和asc,默认为“desc”)。 + + :param sort_dir: The sort_dir of this ListConnectionsRequest. + :type sort_dir: str + """ + self._sort_dir = sort_dir + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListConnectionsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/list_connections_response.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/list_connections_response.py new file mode 100644 index 0000000000..df07e57691 --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/list_connections_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListConnectionsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'connections': 'list[ConnectionResp]', + 'count': 'int' + } + + attribute_map = { + 'connections': 'connections', + 'count': 'count' + } + + def __init__(self, connections=None, count=None): + """ListConnectionsResponse + + The model defined in huaweicloud sdk + + :param connections: 连接信息列表。 + :type connections: list[:class:`huaweicloudsdkdrs.v5.ConnectionResp`] + :param count: 列表中的项目总数,与分页无关。 + :type count: int + """ + + super(ListConnectionsResponse, self).__init__() + + self._connections = None + self._count = None + self.discriminator = None + + if connections is not None: + self.connections = connections + if count is not None: + self.count = count + + @property + def connections(self): + """Gets the connections of this ListConnectionsResponse. + + 连接信息列表。 + + :return: The connections of this ListConnectionsResponse. + :rtype: list[:class:`huaweicloudsdkdrs.v5.ConnectionResp`] + """ + return self._connections + + @connections.setter + def connections(self, connections): + """Sets the connections of this ListConnectionsResponse. + + 连接信息列表。 + + :param connections: The connections of this ListConnectionsResponse. + :type connections: list[:class:`huaweicloudsdkdrs.v5.ConnectionResp`] + """ + self._connections = connections + + @property + def count(self): + """Gets the count of this ListConnectionsResponse. + + 列表中的项目总数,与分页无关。 + + :return: The count of this ListConnectionsResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListConnectionsResponse. + + 列表中的项目总数,与分页无关。 + + :param count: The count of this ListConnectionsResponse. + :type count: int + """ + self._count = count + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListConnectionsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/list_job_ddls_request.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/list_job_ddls_request.py new file mode 100644 index 0000000000..8b0876e259 --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/list_job_ddls_request.py @@ -0,0 +1,288 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListJobDdlsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_language': 'str', + 'offset': 'int', + 'limit': 'int', + 'start_seq_no': 'int', + 'end_seq_no': 'int', + 'status': 'int', + 'job_id': 'str' + } + + attribute_map = { + 'x_language': 'X-Language', + 'offset': 'offset', + 'limit': 'limit', + 'start_seq_no': 'start_seq_no', + 'end_seq_no': 'end_seq_no', + 'status': 'status', + 'job_id': 'job_id' + } + + def __init__(self, x_language=None, offset=None, limit=None, start_seq_no=None, end_seq_no=None, status=None, job_id=None): + """ListJobDdlsRequest + + The model defined in huaweicloud sdk + + :param x_language: 请求语言类型。 + :type x_language: str + :param offset: 偏移量,默认值为0,表示查询该偏移量后面的记录。 + :type offset: int + :param limit: 查询返回记录的数量限制.默认值为10。 + :type limit: int + :param start_seq_no: DDL序列起始值。 + :type start_seq_no: int + :param end_seq_no: DDL序列结束值。 + :type end_seq_no: int + :param status: DDL状态,0为无告警,1为告警中。 + :type status: int + :param job_id: 任务ID。 + :type job_id: str + """ + + + + self._x_language = None + self._offset = None + self._limit = None + self._start_seq_no = None + self._end_seq_no = None + self._status = None + self._job_id = None + self.discriminator = None + + if x_language is not None: + self.x_language = x_language + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if start_seq_no is not None: + self.start_seq_no = start_seq_no + if end_seq_no is not None: + self.end_seq_no = end_seq_no + if status is not None: + self.status = status + self.job_id = job_id + + @property + def x_language(self): + """Gets the x_language of this ListJobDdlsRequest. + + 请求语言类型。 + + :return: The x_language of this ListJobDdlsRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ListJobDdlsRequest. + + 请求语言类型。 + + :param x_language: The x_language of this ListJobDdlsRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def offset(self): + """Gets the offset of this ListJobDdlsRequest. + + 偏移量,默认值为0,表示查询该偏移量后面的记录。 + + :return: The offset of this ListJobDdlsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListJobDdlsRequest. + + 偏移量,默认值为0,表示查询该偏移量后面的记录。 + + :param offset: The offset of this ListJobDdlsRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListJobDdlsRequest. + + 查询返回记录的数量限制.默认值为10。 + + :return: The limit of this ListJobDdlsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListJobDdlsRequest. + + 查询返回记录的数量限制.默认值为10。 + + :param limit: The limit of this ListJobDdlsRequest. + :type limit: int + """ + self._limit = limit + + @property + def start_seq_no(self): + """Gets the start_seq_no of this ListJobDdlsRequest. + + DDL序列起始值。 + + :return: The start_seq_no of this ListJobDdlsRequest. + :rtype: int + """ + return self._start_seq_no + + @start_seq_no.setter + def start_seq_no(self, start_seq_no): + """Sets the start_seq_no of this ListJobDdlsRequest. + + DDL序列起始值。 + + :param start_seq_no: The start_seq_no of this ListJobDdlsRequest. + :type start_seq_no: int + """ + self._start_seq_no = start_seq_no + + @property + def end_seq_no(self): + """Gets the end_seq_no of this ListJobDdlsRequest. + + DDL序列结束值。 + + :return: The end_seq_no of this ListJobDdlsRequest. + :rtype: int + """ + return self._end_seq_no + + @end_seq_no.setter + def end_seq_no(self, end_seq_no): + """Sets the end_seq_no of this ListJobDdlsRequest. + + DDL序列结束值。 + + :param end_seq_no: The end_seq_no of this ListJobDdlsRequest. + :type end_seq_no: int + """ + self._end_seq_no = end_seq_no + + @property + def status(self): + """Gets the status of this ListJobDdlsRequest. + + DDL状态,0为无告警,1为告警中。 + + :return: The status of this ListJobDdlsRequest. + :rtype: int + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ListJobDdlsRequest. + + DDL状态,0为无告警,1为告警中。 + + :param status: The status of this ListJobDdlsRequest. + :type status: int + """ + self._status = status + + @property + def job_id(self): + """Gets the job_id of this ListJobDdlsRequest. + + 任务ID。 + + :return: The job_id of this ListJobDdlsRequest. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this ListJobDdlsRequest. + + 任务ID。 + + :param job_id: The job_id of this ListJobDdlsRequest. + :type job_id: str + """ + self._job_id = job_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListJobDdlsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/list_job_ddls_response.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/list_job_ddls_response.py new file mode 100644 index 0000000000..6f3302d9f0 --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/list_job_ddls_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListJobDdlsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'ddl_list': 'list[DdlAlarmResp]', + 'count': 'int' + } + + attribute_map = { + 'ddl_list': 'ddl_list', + 'count': 'count' + } + + def __init__(self, ddl_list=None, count=None): + """ListJobDdlsResponse + + The model defined in huaweicloud sdk + + :param ddl_list: DDL告警信息列表。 + :type ddl_list: list[:class:`huaweicloudsdkdrs.v5.DdlAlarmResp`] + :param count: 列表中的项目总数,与分页无关。 + :type count: int + """ + + super(ListJobDdlsResponse, self).__init__() + + self._ddl_list = None + self._count = None + self.discriminator = None + + if ddl_list is not None: + self.ddl_list = ddl_list + if count is not None: + self.count = count + + @property + def ddl_list(self): + """Gets the ddl_list of this ListJobDdlsResponse. + + DDL告警信息列表。 + + :return: The ddl_list of this ListJobDdlsResponse. + :rtype: list[:class:`huaweicloudsdkdrs.v5.DdlAlarmResp`] + """ + return self._ddl_list + + @ddl_list.setter + def ddl_list(self, ddl_list): + """Sets the ddl_list of this ListJobDdlsResponse. + + DDL告警信息列表。 + + :param ddl_list: The ddl_list of this ListJobDdlsResponse. + :type ddl_list: list[:class:`huaweicloudsdkdrs.v5.DdlAlarmResp`] + """ + self._ddl_list = ddl_list + + @property + def count(self): + """Gets the count of this ListJobDdlsResponse. + + 列表中的项目总数,与分页无关。 + + :return: The count of this ListJobDdlsResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListJobDdlsResponse. + + 列表中的项目总数,与分页无关。 + + :param count: The count of this ListJobDdlsResponse. + :type count: int + """ + self._count = count + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListJobDdlsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/list_replication_jobs_request.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/list_replication_jobs_request.py new file mode 100644 index 0000000000..343fce44b0 --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/list_replication_jobs_request.py @@ -0,0 +1,463 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListReplicationJobsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_language': 'str', + 'name': 'str', + 'status': 'str', + 'dbs_instance_ids': 'list[str]', + 'description': 'str', + 'create_at': 'str', + 'completed_at': 'str', + 'enterprise_project_id': 'str', + 'tags': 'str', + 'limit': 'int', + 'offset': 'int', + 'sort_key': 'str', + 'sort_dir': 'str' + } + + attribute_map = { + 'x_language': 'X-Language', + 'name': 'name', + 'status': 'status', + 'dbs_instance_ids': 'dbs_instance_ids', + 'description': 'description', + 'create_at': 'create_at', + 'completed_at': 'completed_at', + 'enterprise_project_id': 'enterprise_project_id', + 'tags': 'tags', + 'limit': 'limit', + 'offset': 'offset', + 'sort_key': 'sort_key', + 'sort_dir': 'sort_dir' + } + + def __init__(self, x_language=None, name=None, status=None, dbs_instance_ids=None, description=None, create_at=None, completed_at=None, enterprise_project_id=None, tags=None, limit=None, offset=None, sort_key=None, sort_dir=None): + """ListReplicationJobsRequest + + The model defined in huaweicloud sdk + + :param x_language: 请求语言类型。 en-us:英文 zh-cn:中文 + :type x_language: str + :param name: 任务名称,支持模糊搜索。 + :type name: str + :param status: 备份迁移任务状态。 TRANSFERRING:恢复中 SUCCESS:成功 FAILED:失败 PRECHECK FAILED:预检查失败 + :type status: str + :param dbs_instance_ids: 数据库实例ID,最大数量为10。 + :type dbs_instance_ids: list[str] + :param description: 描述。 + :type description: str + :param create_at: 创建时间。 + :type create_at: str + :param completed_at: 完成时间。 + :type completed_at: str + :param enterprise_project_id: 企业项目ID。 + :type enterprise_project_id: str + :param tags: 标签。 + :type tags: str + :param limit: 查询返回记录的数量限制,默认值为10。 + :type limit: int + :param offset: 偏移量,默认值为0,表示查询该偏移量后面的记录。 + :type offset: int + :param sort_key: 排序字段。 + :type sort_key: str + :param sort_dir: 排序方法。 + :type sort_dir: str + """ + + + + self._x_language = None + self._name = None + self._status = None + self._dbs_instance_ids = None + self._description = None + self._create_at = None + self._completed_at = None + self._enterprise_project_id = None + self._tags = None + self._limit = None + self._offset = None + self._sort_key = None + self._sort_dir = None + self.discriminator = None + + if x_language is not None: + self.x_language = x_language + if name is not None: + self.name = name + if status is not None: + self.status = status + if dbs_instance_ids is not None: + self.dbs_instance_ids = dbs_instance_ids + if description is not None: + self.description = description + if create_at is not None: + self.create_at = create_at + if completed_at is not None: + self.completed_at = completed_at + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + if tags is not None: + self.tags = tags + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset + if sort_key is not None: + self.sort_key = sort_key + if sort_dir is not None: + self.sort_dir = sort_dir + + @property + def x_language(self): + """Gets the x_language of this ListReplicationJobsRequest. + + 请求语言类型。 en-us:英文 zh-cn:中文 + + :return: The x_language of this ListReplicationJobsRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ListReplicationJobsRequest. + + 请求语言类型。 en-us:英文 zh-cn:中文 + + :param x_language: The x_language of this ListReplicationJobsRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def name(self): + """Gets the name of this ListReplicationJobsRequest. + + 任务名称,支持模糊搜索。 + + :return: The name of this ListReplicationJobsRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ListReplicationJobsRequest. + + 任务名称,支持模糊搜索。 + + :param name: The name of this ListReplicationJobsRequest. + :type name: str + """ + self._name = name + + @property + def status(self): + """Gets the status of this ListReplicationJobsRequest. + + 备份迁移任务状态。 TRANSFERRING:恢复中 SUCCESS:成功 FAILED:失败 PRECHECK FAILED:预检查失败 + + :return: The status of this ListReplicationJobsRequest. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ListReplicationJobsRequest. + + 备份迁移任务状态。 TRANSFERRING:恢复中 SUCCESS:成功 FAILED:失败 PRECHECK FAILED:预检查失败 + + :param status: The status of this ListReplicationJobsRequest. + :type status: str + """ + self._status = status + + @property + def dbs_instance_ids(self): + """Gets the dbs_instance_ids of this ListReplicationJobsRequest. + + 数据库实例ID,最大数量为10。 + + :return: The dbs_instance_ids of this ListReplicationJobsRequest. + :rtype: list[str] + """ + return self._dbs_instance_ids + + @dbs_instance_ids.setter + def dbs_instance_ids(self, dbs_instance_ids): + """Sets the dbs_instance_ids of this ListReplicationJobsRequest. + + 数据库实例ID,最大数量为10。 + + :param dbs_instance_ids: The dbs_instance_ids of this ListReplicationJobsRequest. + :type dbs_instance_ids: list[str] + """ + self._dbs_instance_ids = dbs_instance_ids + + @property + def description(self): + """Gets the description of this ListReplicationJobsRequest. + + 描述。 + + :return: The description of this ListReplicationJobsRequest. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ListReplicationJobsRequest. + + 描述。 + + :param description: The description of this ListReplicationJobsRequest. + :type description: str + """ + self._description = description + + @property + def create_at(self): + """Gets the create_at of this ListReplicationJobsRequest. + + 创建时间。 + + :return: The create_at of this ListReplicationJobsRequest. + :rtype: str + """ + return self._create_at + + @create_at.setter + def create_at(self, create_at): + """Sets the create_at of this ListReplicationJobsRequest. + + 创建时间。 + + :param create_at: The create_at of this ListReplicationJobsRequest. + :type create_at: str + """ + self._create_at = create_at + + @property + def completed_at(self): + """Gets the completed_at of this ListReplicationJobsRequest. + + 完成时间。 + + :return: The completed_at of this ListReplicationJobsRequest. + :rtype: str + """ + return self._completed_at + + @completed_at.setter + def completed_at(self, completed_at): + """Sets the completed_at of this ListReplicationJobsRequest. + + 完成时间。 + + :param completed_at: The completed_at of this ListReplicationJobsRequest. + :type completed_at: str + """ + self._completed_at = completed_at + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this ListReplicationJobsRequest. + + 企业项目ID。 + + :return: The enterprise_project_id of this ListReplicationJobsRequest. + :rtype: str + """ + return self._enterprise_project_id + + @enterprise_project_id.setter + def enterprise_project_id(self, enterprise_project_id): + """Sets the enterprise_project_id of this ListReplicationJobsRequest. + + 企业项目ID。 + + :param enterprise_project_id: The enterprise_project_id of this ListReplicationJobsRequest. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def tags(self): + """Gets the tags of this ListReplicationJobsRequest. + + 标签。 + + :return: The tags of this ListReplicationJobsRequest. + :rtype: str + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this ListReplicationJobsRequest. + + 标签。 + + :param tags: The tags of this ListReplicationJobsRequest. + :type tags: str + """ + self._tags = tags + + @property + def limit(self): + """Gets the limit of this ListReplicationJobsRequest. + + 查询返回记录的数量限制,默认值为10。 + + :return: The limit of this ListReplicationJobsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListReplicationJobsRequest. + + 查询返回记录的数量限制,默认值为10。 + + :param limit: The limit of this ListReplicationJobsRequest. + :type limit: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this ListReplicationJobsRequest. + + 偏移量,默认值为0,表示查询该偏移量后面的记录。 + + :return: The offset of this ListReplicationJobsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListReplicationJobsRequest. + + 偏移量,默认值为0,表示查询该偏移量后面的记录。 + + :param offset: The offset of this ListReplicationJobsRequest. + :type offset: int + """ + self._offset = offset + + @property + def sort_key(self): + """Gets the sort_key of this ListReplicationJobsRequest. + + 排序字段。 + + :return: The sort_key of this ListReplicationJobsRequest. + :rtype: str + """ + return self._sort_key + + @sort_key.setter + def sort_key(self, sort_key): + """Sets the sort_key of this ListReplicationJobsRequest. + + 排序字段。 + + :param sort_key: The sort_key of this ListReplicationJobsRequest. + :type sort_key: str + """ + self._sort_key = sort_key + + @property + def sort_dir(self): + """Gets the sort_dir of this ListReplicationJobsRequest. + + 排序方法。 + + :return: The sort_dir of this ListReplicationJobsRequest. + :rtype: str + """ + return self._sort_dir + + @sort_dir.setter + def sort_dir(self, sort_dir): + """Sets the sort_dir of this ListReplicationJobsRequest. + + 排序方法。 + + :param sort_dir: The sort_dir of this ListReplicationJobsRequest. + :type sort_dir: str + """ + self._sort_dir = sort_dir + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListReplicationJobsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/list_replication_jobs_response.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/list_replication_jobs_response.py new file mode 100644 index 0000000000..62ccec2cf0 --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/list_replication_jobs_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListReplicationJobsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'count': 'int', + 'jobs': 'list[OfflineTaskInfo]' + } + + attribute_map = { + 'count': 'count', + 'jobs': 'jobs' + } + + def __init__(self, count=None, jobs=None): + """ListReplicationJobsResponse + + The model defined in huaweicloud sdk + + :param count: 备份迁移任务总数。 + :type count: int + :param jobs: 备份迁移任务列表。 + :type jobs: list[:class:`huaweicloudsdkdrs.v5.OfflineTaskInfo`] + """ + + super(ListReplicationJobsResponse, self).__init__() + + self._count = None + self._jobs = None + self.discriminator = None + + if count is not None: + self.count = count + if jobs is not None: + self.jobs = jobs + + @property + def count(self): + """Gets the count of this ListReplicationJobsResponse. + + 备份迁移任务总数。 + + :return: The count of this ListReplicationJobsResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListReplicationJobsResponse. + + 备份迁移任务总数。 + + :param count: The count of this ListReplicationJobsResponse. + :type count: int + """ + self._count = count + + @property + def jobs(self): + """Gets the jobs of this ListReplicationJobsResponse. + + 备份迁移任务列表。 + + :return: The jobs of this ListReplicationJobsResponse. + :rtype: list[:class:`huaweicloudsdkdrs.v5.OfflineTaskInfo`] + """ + return self._jobs + + @jobs.setter + def jobs(self, jobs): + """Sets the jobs of this ListReplicationJobsResponse. + + 备份迁移任务列表。 + + :param jobs: The jobs of this ListReplicationJobsResponse. + :type jobs: list[:class:`huaweicloudsdkdrs.v5.OfflineTaskInfo`] + """ + self._jobs = jobs + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListReplicationJobsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/modify_connection_request.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/modify_connection_request.py new file mode 100644 index 0000000000..0fec9f870b --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/modify_connection_request.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ModifyConnectionRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_language': 'str', + 'connection_id': 'str', + 'body': 'UpdateConnectionReq' + } + + attribute_map = { + 'x_language': 'X-Language', + 'connection_id': 'connection_id', + 'body': 'body' + } + + def __init__(self, x_language=None, connection_id=None, body=None): + """ModifyConnectionRequest + + The model defined in huaweicloud sdk + + :param x_language: 请求语言类型。 + :type x_language: str + :param connection_id: 连接ID + :type connection_id: str + :param body: Body of the ModifyConnectionRequest + :type body: :class:`huaweicloudsdkdrs.v5.UpdateConnectionReq` + """ + + + + self._x_language = None + self._connection_id = None + self._body = None + self.discriminator = None + + if x_language is not None: + self.x_language = x_language + self.connection_id = connection_id + if body is not None: + self.body = body + + @property + def x_language(self): + """Gets the x_language of this ModifyConnectionRequest. + + 请求语言类型。 + + :return: The x_language of this ModifyConnectionRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ModifyConnectionRequest. + + 请求语言类型。 + + :param x_language: The x_language of this ModifyConnectionRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def connection_id(self): + """Gets the connection_id of this ModifyConnectionRequest. + + 连接ID + + :return: The connection_id of this ModifyConnectionRequest. + :rtype: str + """ + return self._connection_id + + @connection_id.setter + def connection_id(self, connection_id): + """Sets the connection_id of this ModifyConnectionRequest. + + 连接ID + + :param connection_id: The connection_id of this ModifyConnectionRequest. + :type connection_id: str + """ + self._connection_id = connection_id + + @property + def body(self): + """Gets the body of this ModifyConnectionRequest. + + :return: The body of this ModifyConnectionRequest. + :rtype: :class:`huaweicloudsdkdrs.v5.UpdateConnectionReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ModifyConnectionRequest. + + :param body: The body of this ModifyConnectionRequest. + :type body: :class:`huaweicloudsdkdrs.v5.UpdateConnectionReq` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ModifyConnectionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/modify_connection_response.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/modify_connection_response.py new file mode 100644 index 0000000000..07f576797b --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/modify_connection_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ModifyConnectionResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'object' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """ModifyConnectionResponse + + The model defined in huaweicloud sdk + + :param body: 空响应体。 + :type body: object + """ + + super(ModifyConnectionResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this ModifyConnectionResponse. + + 空响应体。 + + :return: The body of this ModifyConnectionResponse. + :rtype: object + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ModifyConnectionResponse. + + 空响应体。 + + :param body: The body of this ModifyConnectionResponse. + :type body: object + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ModifyConnectionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/modify_offline_task_req.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/modify_offline_task_req.py new file mode 100644 index 0000000000..558fbf6746 --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/modify_offline_task_req.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ModifyOfflineTaskReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'name': 'str', + 'description': 'str' + } + + attribute_map = { + 'name': 'name', + 'description': 'description' + } + + def __init__(self, name=None, description=None): + """ModifyOfflineTaskReq + + The model defined in huaweicloud sdk + + :param name: 备份迁移任务名称。 + :type name: str + :param description: 备份迁移任务描述。 + :type description: str + """ + + + + self._name = None + self._description = None + self.discriminator = None + + self.name = name + if description is not None: + self.description = description + + @property + def name(self): + """Gets the name of this ModifyOfflineTaskReq. + + 备份迁移任务名称。 + + :return: The name of this ModifyOfflineTaskReq. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ModifyOfflineTaskReq. + + 备份迁移任务名称。 + + :param name: The name of this ModifyOfflineTaskReq. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this ModifyOfflineTaskReq. + + 备份迁移任务描述。 + + :return: The description of this ModifyOfflineTaskReq. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ModifyOfflineTaskReq. + + 备份迁移任务描述。 + + :param description: The description of this ModifyOfflineTaskReq. + :type description: str + """ + self._description = description + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ModifyOfflineTaskReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/offline_task_info.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/offline_task_info.py new file mode 100644 index 0000000000..558f4e3572 --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/offline_task_info.py @@ -0,0 +1,342 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class OfflineTaskInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'name': 'str', + 'status': 'str', + 'engine_type': 'str', + 'error_log': 'str', + 'description': 'str', + 'create_time': 'str', + 'finish_time': 'str', + 'enterprise_project_id': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'status': 'status', + 'engine_type': 'engine_type', + 'error_log': 'error_log', + 'description': 'description', + 'create_time': 'create_time', + 'finish_time': 'finish_time', + 'enterprise_project_id': 'enterprise_project_id' + } + + def __init__(self, id=None, name=None, status=None, engine_type=None, error_log=None, description=None, create_time=None, finish_time=None, enterprise_project_id=None): + """OfflineTaskInfo + + The model defined in huaweicloud sdk + + :param id: 任务ID。 + :type id: str + :param name: 任务名称。 + :type name: str + :param status: 任务状态。 - TRANSFERRING:恢复中 - SUCCESS:成功 - FAILED:失败 - PRECHECK FAILED:预检查失败 + :type status: str + :param engine_type: 数据库引擎。 - sqlserver:RDS for SQL Server引擎 + :type engine_type: str + :param error_log: 错误日志。 + :type error_log: str + :param description: 描述。 + :type description: str + :param create_time: 任务创建时间。 + :type create_time: str + :param finish_time: 任务完成时间。 + :type finish_time: str + :param enterprise_project_id: 企业项目。 + :type enterprise_project_id: str + """ + + + + self._id = None + self._name = None + self._status = None + self._engine_type = None + self._error_log = None + self._description = None + self._create_time = None + self._finish_time = None + self._enterprise_project_id = None + self.discriminator = None + + self.id = id + self.name = name + self.status = status + self.engine_type = engine_type + if error_log is not None: + self.error_log = error_log + if description is not None: + self.description = description + self.create_time = create_time + if finish_time is not None: + self.finish_time = finish_time + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + + @property + def id(self): + """Gets the id of this OfflineTaskInfo. + + 任务ID。 + + :return: The id of this OfflineTaskInfo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this OfflineTaskInfo. + + 任务ID。 + + :param id: The id of this OfflineTaskInfo. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this OfflineTaskInfo. + + 任务名称。 + + :return: The name of this OfflineTaskInfo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this OfflineTaskInfo. + + 任务名称。 + + :param name: The name of this OfflineTaskInfo. + :type name: str + """ + self._name = name + + @property + def status(self): + """Gets the status of this OfflineTaskInfo. + + 任务状态。 - TRANSFERRING:恢复中 - SUCCESS:成功 - FAILED:失败 - PRECHECK FAILED:预检查失败 + + :return: The status of this OfflineTaskInfo. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this OfflineTaskInfo. + + 任务状态。 - TRANSFERRING:恢复中 - SUCCESS:成功 - FAILED:失败 - PRECHECK FAILED:预检查失败 + + :param status: The status of this OfflineTaskInfo. + :type status: str + """ + self._status = status + + @property + def engine_type(self): + """Gets the engine_type of this OfflineTaskInfo. + + 数据库引擎。 - sqlserver:RDS for SQL Server引擎 + + :return: The engine_type of this OfflineTaskInfo. + :rtype: str + """ + return self._engine_type + + @engine_type.setter + def engine_type(self, engine_type): + """Sets the engine_type of this OfflineTaskInfo. + + 数据库引擎。 - sqlserver:RDS for SQL Server引擎 + + :param engine_type: The engine_type of this OfflineTaskInfo. + :type engine_type: str + """ + self._engine_type = engine_type + + @property + def error_log(self): + """Gets the error_log of this OfflineTaskInfo. + + 错误日志。 + + :return: The error_log of this OfflineTaskInfo. + :rtype: str + """ + return self._error_log + + @error_log.setter + def error_log(self, error_log): + """Sets the error_log of this OfflineTaskInfo. + + 错误日志。 + + :param error_log: The error_log of this OfflineTaskInfo. + :type error_log: str + """ + self._error_log = error_log + + @property + def description(self): + """Gets the description of this OfflineTaskInfo. + + 描述。 + + :return: The description of this OfflineTaskInfo. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this OfflineTaskInfo. + + 描述。 + + :param description: The description of this OfflineTaskInfo. + :type description: str + """ + self._description = description + + @property + def create_time(self): + """Gets the create_time of this OfflineTaskInfo. + + 任务创建时间。 + + :return: The create_time of this OfflineTaskInfo. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this OfflineTaskInfo. + + 任务创建时间。 + + :param create_time: The create_time of this OfflineTaskInfo. + :type create_time: str + """ + self._create_time = create_time + + @property + def finish_time(self): + """Gets the finish_time of this OfflineTaskInfo. + + 任务完成时间。 + + :return: The finish_time of this OfflineTaskInfo. + :rtype: str + """ + return self._finish_time + + @finish_time.setter + def finish_time(self, finish_time): + """Sets the finish_time of this OfflineTaskInfo. + + 任务完成时间。 + + :param finish_time: The finish_time of this OfflineTaskInfo. + :type finish_time: str + """ + self._finish_time = finish_time + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this OfflineTaskInfo. + + 企业项目。 + + :return: The enterprise_project_id of this OfflineTaskInfo. + :rtype: str + """ + return self._enterprise_project_id + + @enterprise_project_id.setter + def enterprise_project_id(self, enterprise_project_id): + """Sets the enterprise_project_id of this OfflineTaskInfo. + + 企业项目。 + + :param enterprise_project_id: The enterprise_project_id of this OfflineTaskInfo. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, OfflineTaskInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/resource_tag.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/resource_tag.py index fef88114dc..625cc16a2f 100644 --- a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/resource_tag.py +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/resource_tag.py @@ -33,7 +33,7 @@ def __init__(self, key=None, value=None): :param key: 标签键。 约束:最大长度36,只能包含字母、数字、下划线、中划线和中文。 :type key: str - :param value: 标签值。 约束:最大长度43,只能包含字母、数字、下划线、中划线和中文。 + :param value: 标签值。标签的值可以包含任意语种字母、数字、空格和_ . : / = + - @。 :type value: str """ @@ -74,7 +74,7 @@ def key(self, key): def value(self): """Gets the value of this ResourceTag. - 标签值。 约束:最大长度43,只能包含字母、数字、下划线、中划线和中文。 + 标签值。标签的值可以包含任意语种字母、数字、空格和_ . : / = + - @。 :return: The value of this ResourceTag. :rtype: str @@ -85,7 +85,7 @@ def value(self): def value(self, value): """Sets the value of this ResourceTag. - 标签值。 约束:最大长度43,只能包含字母、数字、下划线、中划线和中文。 + 标签值。标签的值可以包含任意语种字母、数字、空格和_ . : / = + - @。 :param value: The value of this ResourceTag. :type value: str diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/show_data_processing_rules_result_response.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/show_data_processing_rules_result_response.py index 554a5a3137..745f32414d 100644 --- a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/show_data_processing_rules_result_response.py +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/show_data_processing_rules_result_response.py @@ -36,7 +36,7 @@ def __init__(self, id=None, status=None, job_id=None): :param id: 查询结果id :type id: str - :param status: 查询状态 + :param status: 查询状态 pending:处理中 failed:失败 success:成功 :type status: str :param job_id: 任务ID :type job_id: str @@ -82,7 +82,7 @@ def id(self, id): def status(self): """Gets the status of this ShowDataProcessingRulesResultResponse. - 查询状态 + 查询状态 pending:处理中 failed:失败 success:成功 :return: The status of this ShowDataProcessingRulesResultResponse. :rtype: str @@ -93,7 +93,7 @@ def status(self): def status(self, status): """Sets the status of this ShowDataProcessingRulesResultResponse. - 查询状态 + 查询状态 pending:处理中 failed:失败 success:成功 :param status: The status of this ShowDataProcessingRulesResultResponse. :type status: str diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/show_replication_job_request.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/show_replication_job_request.py new file mode 100644 index 0000000000..3427c5fa1a --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/show_replication_job_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowReplicationJobRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'job_id': 'str', + 'x_language': 'str' + } + + attribute_map = { + 'job_id': 'job_id', + 'x_language': 'X-Language' + } + + def __init__(self, job_id=None, x_language=None): + """ShowReplicationJobRequest + + The model defined in huaweicloud sdk + + :param job_id: 备份迁移任务ID。 + :type job_id: str + :param x_language: 请求语言类型。 en-us:英文 zh-cn:中文 + :type x_language: str + """ + + + + self._job_id = None + self._x_language = None + self.discriminator = None + + self.job_id = job_id + if x_language is not None: + self.x_language = x_language + + @property + def job_id(self): + """Gets the job_id of this ShowReplicationJobRequest. + + 备份迁移任务ID。 + + :return: The job_id of this ShowReplicationJobRequest. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this ShowReplicationJobRequest. + + 备份迁移任务ID。 + + :param job_id: The job_id of this ShowReplicationJobRequest. + :type job_id: str + """ + self._job_id = job_id + + @property + def x_language(self): + """Gets the x_language of this ShowReplicationJobRequest. + + 请求语言类型。 en-us:英文 zh-cn:中文 + + :return: The x_language of this ShowReplicationJobRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ShowReplicationJobRequest. + + 请求语言类型。 en-us:英文 zh-cn:中文 + + :param x_language: The x_language of this ShowReplicationJobRequest. + :type x_language: str + """ + self._x_language = x_language + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowReplicationJobRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/show_replication_job_response.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/show_replication_job_response.py new file mode 100644 index 0000000000..ba710f3b8e --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/show_replication_job_response.py @@ -0,0 +1,390 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowReplicationJobResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'status': 'str', + 'create_time': 'str', + 'finish_time': 'str', + 'backup_info': 'BackupInfoResp', + 'base_info': 'BackupJobBaseInfo', + 'target_db_info': 'BackupJobEndpointInfo', + 'options': 'BackupRestoreOptionInfo', + 'new_db_names': 'str', + 'instance_name': 'str', + 'error_log': 'str' + } + + attribute_map = { + 'id': 'id', + 'status': 'status', + 'create_time': 'create_time', + 'finish_time': 'finish_time', + 'backup_info': 'backup_info', + 'base_info': 'base_info', + 'target_db_info': 'target_db_info', + 'options': 'options', + 'new_db_names': 'new_db_names', + 'instance_name': 'instance_name', + 'error_log': 'error_log' + } + + def __init__(self, id=None, status=None, create_time=None, finish_time=None, backup_info=None, base_info=None, target_db_info=None, options=None, new_db_names=None, instance_name=None, error_log=None): + """ShowReplicationJobResponse + + The model defined in huaweicloud sdk + + :param id: 任务ID。 + :type id: str + :param status: 任务状态。 + :type status: str + :param create_time: 任务创建时间。 + :type create_time: str + :param finish_time: 任务完成时间。 + :type finish_time: str + :param backup_info: + :type backup_info: :class:`huaweicloudsdkdrs.v5.BackupInfoResp` + :param base_info: + :type base_info: :class:`huaweicloudsdkdrs.v5.BackupJobBaseInfo` + :param target_db_info: + :type target_db_info: :class:`huaweicloudsdkdrs.v5.BackupJobEndpointInfo` + :param options: + :type options: :class:`huaweicloudsdkdrs.v5.BackupRestoreOptionInfo` + :param new_db_names: 备份恢复数据库映射新名称。 + :type new_db_names: str + :param instance_name: RDS实例名称。 + :type instance_name: str + :param error_log: 迁移过程中失败原因。 + :type error_log: str + """ + + super(ShowReplicationJobResponse, self).__init__() + + self._id = None + self._status = None + self._create_time = None + self._finish_time = None + self._backup_info = None + self._base_info = None + self._target_db_info = None + self._options = None + self._new_db_names = None + self._instance_name = None + self._error_log = None + self.discriminator = None + + if id is not None: + self.id = id + if status is not None: + self.status = status + if create_time is not None: + self.create_time = create_time + if finish_time is not None: + self.finish_time = finish_time + if backup_info is not None: + self.backup_info = backup_info + if base_info is not None: + self.base_info = base_info + if target_db_info is not None: + self.target_db_info = target_db_info + if options is not None: + self.options = options + if new_db_names is not None: + self.new_db_names = new_db_names + if instance_name is not None: + self.instance_name = instance_name + if error_log is not None: + self.error_log = error_log + + @property + def id(self): + """Gets the id of this ShowReplicationJobResponse. + + 任务ID。 + + :return: The id of this ShowReplicationJobResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ShowReplicationJobResponse. + + 任务ID。 + + :param id: The id of this ShowReplicationJobResponse. + :type id: str + """ + self._id = id + + @property + def status(self): + """Gets the status of this ShowReplicationJobResponse. + + 任务状态。 + + :return: The status of this ShowReplicationJobResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ShowReplicationJobResponse. + + 任务状态。 + + :param status: The status of this ShowReplicationJobResponse. + :type status: str + """ + self._status = status + + @property + def create_time(self): + """Gets the create_time of this ShowReplicationJobResponse. + + 任务创建时间。 + + :return: The create_time of this ShowReplicationJobResponse. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ShowReplicationJobResponse. + + 任务创建时间。 + + :param create_time: The create_time of this ShowReplicationJobResponse. + :type create_time: str + """ + self._create_time = create_time + + @property + def finish_time(self): + """Gets the finish_time of this ShowReplicationJobResponse. + + 任务完成时间。 + + :return: The finish_time of this ShowReplicationJobResponse. + :rtype: str + """ + return self._finish_time + + @finish_time.setter + def finish_time(self, finish_time): + """Sets the finish_time of this ShowReplicationJobResponse. + + 任务完成时间。 + + :param finish_time: The finish_time of this ShowReplicationJobResponse. + :type finish_time: str + """ + self._finish_time = finish_time + + @property + def backup_info(self): + """Gets the backup_info of this ShowReplicationJobResponse. + + :return: The backup_info of this ShowReplicationJobResponse. + :rtype: :class:`huaweicloudsdkdrs.v5.BackupInfoResp` + """ + return self._backup_info + + @backup_info.setter + def backup_info(self, backup_info): + """Sets the backup_info of this ShowReplicationJobResponse. + + :param backup_info: The backup_info of this ShowReplicationJobResponse. + :type backup_info: :class:`huaweicloudsdkdrs.v5.BackupInfoResp` + """ + self._backup_info = backup_info + + @property + def base_info(self): + """Gets the base_info of this ShowReplicationJobResponse. + + :return: The base_info of this ShowReplicationJobResponse. + :rtype: :class:`huaweicloudsdkdrs.v5.BackupJobBaseInfo` + """ + return self._base_info + + @base_info.setter + def base_info(self, base_info): + """Sets the base_info of this ShowReplicationJobResponse. + + :param base_info: The base_info of this ShowReplicationJobResponse. + :type base_info: :class:`huaweicloudsdkdrs.v5.BackupJobBaseInfo` + """ + self._base_info = base_info + + @property + def target_db_info(self): + """Gets the target_db_info of this ShowReplicationJobResponse. + + :return: The target_db_info of this ShowReplicationJobResponse. + :rtype: :class:`huaweicloudsdkdrs.v5.BackupJobEndpointInfo` + """ + return self._target_db_info + + @target_db_info.setter + def target_db_info(self, target_db_info): + """Sets the target_db_info of this ShowReplicationJobResponse. + + :param target_db_info: The target_db_info of this ShowReplicationJobResponse. + :type target_db_info: :class:`huaweicloudsdkdrs.v5.BackupJobEndpointInfo` + """ + self._target_db_info = target_db_info + + @property + def options(self): + """Gets the options of this ShowReplicationJobResponse. + + :return: The options of this ShowReplicationJobResponse. + :rtype: :class:`huaweicloudsdkdrs.v5.BackupRestoreOptionInfo` + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ShowReplicationJobResponse. + + :param options: The options of this ShowReplicationJobResponse. + :type options: :class:`huaweicloudsdkdrs.v5.BackupRestoreOptionInfo` + """ + self._options = options + + @property + def new_db_names(self): + """Gets the new_db_names of this ShowReplicationJobResponse. + + 备份恢复数据库映射新名称。 + + :return: The new_db_names of this ShowReplicationJobResponse. + :rtype: str + """ + return self._new_db_names + + @new_db_names.setter + def new_db_names(self, new_db_names): + """Sets the new_db_names of this ShowReplicationJobResponse. + + 备份恢复数据库映射新名称。 + + :param new_db_names: The new_db_names of this ShowReplicationJobResponse. + :type new_db_names: str + """ + self._new_db_names = new_db_names + + @property + def instance_name(self): + """Gets the instance_name of this ShowReplicationJobResponse. + + RDS实例名称。 + + :return: The instance_name of this ShowReplicationJobResponse. + :rtype: str + """ + return self._instance_name + + @instance_name.setter + def instance_name(self, instance_name): + """Sets the instance_name of this ShowReplicationJobResponse. + + RDS实例名称。 + + :param instance_name: The instance_name of this ShowReplicationJobResponse. + :type instance_name: str + """ + self._instance_name = instance_name + + @property + def error_log(self): + """Gets the error_log of this ShowReplicationJobResponse. + + 迁移过程中失败原因。 + + :return: The error_log of this ShowReplicationJobResponse. + :rtype: str + """ + return self._error_log + + @error_log.setter + def error_log(self, error_log): + """Sets the error_log of this ShowReplicationJobResponse. + + 迁移过程中失败原因。 + + :param error_log: The error_log of this ShowReplicationJobResponse. + :type error_log: str + """ + self._error_log = error_log + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowReplicationJobResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/show_update_object_saving_status_response.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/show_update_object_saving_status_response.py index 429a6231a2..0fde9fefba 100644 --- a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/show_update_object_saving_status_response.py +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/show_update_object_saving_status_response.py @@ -36,7 +36,7 @@ def __init__(self, id=None, status=None, job_id=None): :param id: 查询结果id :type id: str - :param status: 查询状态 + :param status: 查询状态 pending:处理中 failed:失败 success:成功 :type status: str :param job_id: 任务ID :type job_id: str @@ -82,7 +82,7 @@ def id(self, id): def status(self): """Gets the status of this ShowUpdateObjectSavingStatusResponse. - 查询状态 + 查询状态 pending:处理中 failed:失败 success:成功 :return: The status of this ShowUpdateObjectSavingStatusResponse. :rtype: str @@ -93,7 +93,7 @@ def status(self): def status(self, status): """Sets the status of this ShowUpdateObjectSavingStatusResponse. - 查询状态 + 查询状态 pending:处理中 failed:失败 success:成功 :param status: The status of this ShowUpdateObjectSavingStatusResponse. :type status: str diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/to_period_req.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/to_period_req.py new file mode 100644 index 0000000000..8cbb786608 --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/to_period_req.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ToPeriodReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'period_type': 'str', + 'period_num': 'int', + 'is_auto_renew': 'bool', + 'is_auto_pay': 'bool' + } + + attribute_map = { + 'period_type': 'period_type', + 'period_num': 'period_num', + 'is_auto_renew': 'is_auto_renew', + 'is_auto_pay': 'is_auto_pay' + } + + def __init__(self, period_type=None, period_num=None, is_auto_renew=None, is_auto_pay=None): + """ToPeriodReq + + The model defined in huaweicloud sdk + + :param period_type: 订单类型,取值: - 2:包月 - 3:包年 + :type period_type: str + :param period_num: 订单周期数 + :type period_num: int + :param is_auto_renew: 是否自动续费 + :type is_auto_renew: bool + :param is_auto_pay: 是否自动支付 + :type is_auto_pay: bool + """ + + + + self._period_type = None + self._period_num = None + self._is_auto_renew = None + self._is_auto_pay = None + self.discriminator = None + + self.period_type = period_type + self.period_num = period_num + self.is_auto_renew = is_auto_renew + self.is_auto_pay = is_auto_pay + + @property + def period_type(self): + """Gets the period_type of this ToPeriodReq. + + 订单类型,取值: - 2:包月 - 3:包年 + + :return: The period_type of this ToPeriodReq. + :rtype: str + """ + return self._period_type + + @period_type.setter + def period_type(self, period_type): + """Sets the period_type of this ToPeriodReq. + + 订单类型,取值: - 2:包月 - 3:包年 + + :param period_type: The period_type of this ToPeriodReq. + :type period_type: str + """ + self._period_type = period_type + + @property + def period_num(self): + """Gets the period_num of this ToPeriodReq. + + 订单周期数 + + :return: The period_num of this ToPeriodReq. + :rtype: int + """ + return self._period_num + + @period_num.setter + def period_num(self, period_num): + """Sets the period_num of this ToPeriodReq. + + 订单周期数 + + :param period_num: The period_num of this ToPeriodReq. + :type period_num: int + """ + self._period_num = period_num + + @property + def is_auto_renew(self): + """Gets the is_auto_renew of this ToPeriodReq. + + 是否自动续费 + + :return: The is_auto_renew of this ToPeriodReq. + :rtype: bool + """ + return self._is_auto_renew + + @is_auto_renew.setter + def is_auto_renew(self, is_auto_renew): + """Sets the is_auto_renew of this ToPeriodReq. + + 是否自动续费 + + :param is_auto_renew: The is_auto_renew of this ToPeriodReq. + :type is_auto_renew: bool + """ + self._is_auto_renew = is_auto_renew + + @property + def is_auto_pay(self): + """Gets the is_auto_pay of this ToPeriodReq. + + 是否自动支付 + + :return: The is_auto_pay of this ToPeriodReq. + :rtype: bool + """ + return self._is_auto_pay + + @is_auto_pay.setter + def is_auto_pay(self, is_auto_pay): + """Sets the is_auto_pay of this ToPeriodReq. + + 是否自动支付 + + :param is_auto_pay: The is_auto_pay of this ToPeriodReq. + :type is_auto_pay: bool + """ + self._is_auto_pay = is_auto_pay + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ToPeriodReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/update_connection_req.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/update_connection_req.py new file mode 100644 index 0000000000..323c816463 --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/update_connection_req.py @@ -0,0 +1,327 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateConnectionReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'name': 'str', + 'db_type': 'str', + 'config': 'ConnectionConfig', + 'description': 'str', + 'endpoint': 'BaseEndpoint', + 'vpc': 'CloudVpcInfo', + 'ssl': 'EndpointSslConfig', + 'cloud': 'CloudBaseInfo', + 'enterprise_project_id': 'str' + } + + attribute_map = { + 'name': 'name', + 'db_type': 'db_type', + 'config': 'config', + 'description': 'description', + 'endpoint': 'endpoint', + 'vpc': 'vpc', + 'ssl': 'ssl', + 'cloud': 'cloud', + 'enterprise_project_id': 'enterprise_project_id' + } + + def __init__(self, name=None, db_type=None, config=None, description=None, endpoint=None, vpc=None, ssl=None, cloud=None, enterprise_project_id=None): + """UpdateConnectionReq + + The model defined in huaweicloud sdk + + :param name: 连接名称。 + :type name: str + :param db_type: 数据库类型。 + :type db_type: str + :param config: + :type config: :class:`huaweicloudsdkdrs.v5.ConnectionConfig` + :param description: 连接描述。 + :type description: str + :param endpoint: + :type endpoint: :class:`huaweicloudsdkdrs.v5.BaseEndpoint` + :param vpc: + :type vpc: :class:`huaweicloudsdkdrs.v5.CloudVpcInfo` + :param ssl: + :type ssl: :class:`huaweicloudsdkdrs.v5.EndpointSslConfig` + :param cloud: + :type cloud: :class:`huaweicloudsdkdrs.v5.CloudBaseInfo` + :param enterprise_project_id: 企业项目ID。 + :type enterprise_project_id: str + """ + + + + self._name = None + self._db_type = None + self._config = None + self._description = None + self._endpoint = None + self._vpc = None + self._ssl = None + self._cloud = None + self._enterprise_project_id = None + self.discriminator = None + + if name is not None: + self.name = name + if db_type is not None: + self.db_type = db_type + if config is not None: + self.config = config + if description is not None: + self.description = description + if endpoint is not None: + self.endpoint = endpoint + if vpc is not None: + self.vpc = vpc + if ssl is not None: + self.ssl = ssl + if cloud is not None: + self.cloud = cloud + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + + @property + def name(self): + """Gets the name of this UpdateConnectionReq. + + 连接名称。 + + :return: The name of this UpdateConnectionReq. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this UpdateConnectionReq. + + 连接名称。 + + :param name: The name of this UpdateConnectionReq. + :type name: str + """ + self._name = name + + @property + def db_type(self): + """Gets the db_type of this UpdateConnectionReq. + + 数据库类型。 + + :return: The db_type of this UpdateConnectionReq. + :rtype: str + """ + return self._db_type + + @db_type.setter + def db_type(self, db_type): + """Sets the db_type of this UpdateConnectionReq. + + 数据库类型。 + + :param db_type: The db_type of this UpdateConnectionReq. + :type db_type: str + """ + self._db_type = db_type + + @property + def config(self): + """Gets the config of this UpdateConnectionReq. + + :return: The config of this UpdateConnectionReq. + :rtype: :class:`huaweicloudsdkdrs.v5.ConnectionConfig` + """ + return self._config + + @config.setter + def config(self, config): + """Sets the config of this UpdateConnectionReq. + + :param config: The config of this UpdateConnectionReq. + :type config: :class:`huaweicloudsdkdrs.v5.ConnectionConfig` + """ + self._config = config + + @property + def description(self): + """Gets the description of this UpdateConnectionReq. + + 连接描述。 + + :return: The description of this UpdateConnectionReq. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UpdateConnectionReq. + + 连接描述。 + + :param description: The description of this UpdateConnectionReq. + :type description: str + """ + self._description = description + + @property + def endpoint(self): + """Gets the endpoint of this UpdateConnectionReq. + + :return: The endpoint of this UpdateConnectionReq. + :rtype: :class:`huaweicloudsdkdrs.v5.BaseEndpoint` + """ + return self._endpoint + + @endpoint.setter + def endpoint(self, endpoint): + """Sets the endpoint of this UpdateConnectionReq. + + :param endpoint: The endpoint of this UpdateConnectionReq. + :type endpoint: :class:`huaweicloudsdkdrs.v5.BaseEndpoint` + """ + self._endpoint = endpoint + + @property + def vpc(self): + """Gets the vpc of this UpdateConnectionReq. + + :return: The vpc of this UpdateConnectionReq. + :rtype: :class:`huaweicloudsdkdrs.v5.CloudVpcInfo` + """ + return self._vpc + + @vpc.setter + def vpc(self, vpc): + """Sets the vpc of this UpdateConnectionReq. + + :param vpc: The vpc of this UpdateConnectionReq. + :type vpc: :class:`huaweicloudsdkdrs.v5.CloudVpcInfo` + """ + self._vpc = vpc + + @property + def ssl(self): + """Gets the ssl of this UpdateConnectionReq. + + :return: The ssl of this UpdateConnectionReq. + :rtype: :class:`huaweicloudsdkdrs.v5.EndpointSslConfig` + """ + return self._ssl + + @ssl.setter + def ssl(self, ssl): + """Sets the ssl of this UpdateConnectionReq. + + :param ssl: The ssl of this UpdateConnectionReq. + :type ssl: :class:`huaweicloudsdkdrs.v5.EndpointSslConfig` + """ + self._ssl = ssl + + @property + def cloud(self): + """Gets the cloud of this UpdateConnectionReq. + + :return: The cloud of this UpdateConnectionReq. + :rtype: :class:`huaweicloudsdkdrs.v5.CloudBaseInfo` + """ + return self._cloud + + @cloud.setter + def cloud(self, cloud): + """Sets the cloud of this UpdateConnectionReq. + + :param cloud: The cloud of this UpdateConnectionReq. + :type cloud: :class:`huaweicloudsdkdrs.v5.CloudBaseInfo` + """ + self._cloud = cloud + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this UpdateConnectionReq. + + 企业项目ID。 + + :return: The enterprise_project_id of this UpdateConnectionReq. + :rtype: str + """ + return self._enterprise_project_id + + @enterprise_project_id.setter + def enterprise_project_id(self, enterprise_project_id): + """Sets the enterprise_project_id of this UpdateConnectionReq. + + 企业项目ID。 + + :param enterprise_project_id: The enterprise_project_id of this UpdateConnectionReq. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateConnectionReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/update_data_progress_response.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/update_data_progress_response.py index ffdf832d50..ae695b477b 100644 --- a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/update_data_progress_response.py +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/update_data_progress_response.py @@ -36,7 +36,7 @@ def __init__(self, id=None, status=None, job_id=None): :param id: 查询结果id :type id: str - :param status: 查询状态 + :param status: 查询状态 pending:处理中 failed:失败 success:成功 :type status: str :param job_id: 任务ID :type job_id: str @@ -82,7 +82,7 @@ def id(self, id): def status(self): """Gets the status of this UpdateDataProgressResponse. - 查询状态 + 查询状态 pending:处理中 failed:失败 success:成功 :return: The status of this UpdateDataProgressResponse. :rtype: str @@ -93,7 +93,7 @@ def status(self): def status(self, status): """Sets the status of this UpdateDataProgressResponse. - 查询状态 + 查询状态 pending:处理中 failed:失败 success:成功 :param status: The status of this UpdateDataProgressResponse. :type status: str diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/update_replication_job_request.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/update_replication_job_request.py new file mode 100644 index 0000000000..80d8a07929 --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/update_replication_job_request.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateReplicationJobRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'job_id': 'str', + 'x_language': 'str', + 'body': 'ModifyOfflineTaskReq' + } + + attribute_map = { + 'job_id': 'job_id', + 'x_language': 'X-Language', + 'body': 'body' + } + + def __init__(self, job_id=None, x_language=None, body=None): + """UpdateReplicationJobRequest + + The model defined in huaweicloud sdk + + :param job_id: 备份迁移任务ID。 + :type job_id: str + :param x_language: 请求语言类型。 en-us:英文 zh-cn:中文 + :type x_language: str + :param body: Body of the UpdateReplicationJobRequest + :type body: :class:`huaweicloudsdkdrs.v5.ModifyOfflineTaskReq` + """ + + + + self._job_id = None + self._x_language = None + self._body = None + self.discriminator = None + + self.job_id = job_id + if x_language is not None: + self.x_language = x_language + if body is not None: + self.body = body + + @property + def job_id(self): + """Gets the job_id of this UpdateReplicationJobRequest. + + 备份迁移任务ID。 + + :return: The job_id of this UpdateReplicationJobRequest. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this UpdateReplicationJobRequest. + + 备份迁移任务ID。 + + :param job_id: The job_id of this UpdateReplicationJobRequest. + :type job_id: str + """ + self._job_id = job_id + + @property + def x_language(self): + """Gets the x_language of this UpdateReplicationJobRequest. + + 请求语言类型。 en-us:英文 zh-cn:中文 + + :return: The x_language of this UpdateReplicationJobRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this UpdateReplicationJobRequest. + + 请求语言类型。 en-us:英文 zh-cn:中文 + + :param x_language: The x_language of this UpdateReplicationJobRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def body(self): + """Gets the body of this UpdateReplicationJobRequest. + + :return: The body of this UpdateReplicationJobRequest. + :rtype: :class:`huaweicloudsdkdrs.v5.ModifyOfflineTaskReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateReplicationJobRequest. + + :param body: The body of this UpdateReplicationJobRequest. + :type body: :class:`huaweicloudsdkdrs.v5.ModifyOfflineTaskReq` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateReplicationJobRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/update_replication_job_response.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/update_replication_job_response.py new file mode 100644 index 0000000000..4c94daba44 --- /dev/null +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/model/update_replication_job_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateReplicationJobResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'object' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """UpdateReplicationJobResponse + + The model defined in huaweicloud sdk + + :param body: 空响应体。 + :type body: object + """ + + super(UpdateReplicationJobResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this UpdateReplicationJobResponse. + + 空响应体。 + + :return: The body of this UpdateReplicationJobResponse. + :rtype: object + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateReplicationJobResponse. + + 空响应体。 + + :param body: The body of this UpdateReplicationJobResponse. + :type body: object + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateReplicationJobResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-drs/requirements.txt b/huaweicloud-sdk-drs/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-drs/requirements.txt +++ b/huaweicloud-sdk-drs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-drs/setup.py b/huaweicloud-sdk-drs/setup.py index e2019f25d8..e56a6c20da 100644 --- a/huaweicloud-sdk-drs/setup.py +++ b/huaweicloud-sdk-drs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdrs" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dsc/requirements.txt b/huaweicloud-sdk-dsc/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-dsc/requirements.txt +++ b/huaweicloud-sdk-dsc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-dsc/setup.py b/huaweicloud-sdk-dsc/setup.py index f1e83038a8..46f52f0fad 100644 --- a/huaweicloud-sdk-dsc/setup.py +++ b/huaweicloud-sdk-dsc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdsc" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dwr/requirements.txt b/huaweicloud-sdk-dwr/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-dwr/requirements.txt +++ b/huaweicloud-sdk-dwr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-dwr/setup.py b/huaweicloud-sdk-dwr/setup.py index bbe835f03f..978562de82 100644 --- a/huaweicloud-sdk-dwr/setup.py +++ b/huaweicloud-sdk-dwr/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdwr" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dws/requirements.txt b/huaweicloud-sdk-dws/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-dws/requirements.txt +++ b/huaweicloud-sdk-dws/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-dws/setup.py b/huaweicloud-sdk-dws/setup.py index 669cf45e7f..67d99a0627 100644 --- a/huaweicloud-sdk-dws/setup.py +++ b/huaweicloud-sdk-dws/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdws" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ec/requirements.txt b/huaweicloud-sdk-ec/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-ec/requirements.txt +++ b/huaweicloud-sdk-ec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-ec/setup.py b/huaweicloud-sdk-ec/setup.py index 7db24177d7..cefe1bafbb 100644 --- a/huaweicloud-sdk-ec/setup.py +++ b/huaweicloud-sdk-ec/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkec" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ecs/requirements.txt b/huaweicloud-sdk-ecs/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-ecs/requirements.txt +++ b/huaweicloud-sdk-ecs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-ecs/setup.py b/huaweicloud-sdk-ecs/setup.py index e4d86435fc..0ce6f74d35 100644 --- a/huaweicloud-sdk-ecs/setup.py +++ b/huaweicloud-sdk-ecs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkecs" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-edgesec/requirements.txt b/huaweicloud-sdk-edgesec/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-edgesec/requirements.txt +++ b/huaweicloud-sdk-edgesec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-edgesec/setup.py b/huaweicloud-sdk-edgesec/setup.py index 564d30f0d9..f110f9a53a 100644 --- a/huaweicloud-sdk-edgesec/setup.py +++ b/huaweicloud-sdk-edgesec/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkedgesec" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eg/requirements.txt b/huaweicloud-sdk-eg/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-eg/requirements.txt +++ b/huaweicloud-sdk-eg/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-eg/setup.py b/huaweicloud-sdk-eg/setup.py index 5c2b661739..f3ef750786 100644 --- a/huaweicloud-sdk-eg/setup.py +++ b/huaweicloud-sdk-eg/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkeg" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eihealth/requirements.txt b/huaweicloud-sdk-eihealth/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-eihealth/requirements.txt +++ b/huaweicloud-sdk-eihealth/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-eihealth/setup.py b/huaweicloud-sdk-eihealth/setup.py index 631bea74e7..5fa3ff2170 100644 --- a/huaweicloud-sdk-eihealth/setup.py +++ b/huaweicloud-sdk-eihealth/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkeihealth" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eip/requirements.txt b/huaweicloud-sdk-eip/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-eip/requirements.txt +++ b/huaweicloud-sdk-eip/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-eip/setup.py b/huaweicloud-sdk-eip/setup.py index 02b9d1580e..10e7eb85ef 100644 --- a/huaweicloud-sdk-eip/setup.py +++ b/huaweicloud-sdk-eip/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkeip" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/elb_async_client.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/elb_async_client.py index 8d02e45cd0..ca0fa03ee7 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/elb_async_client.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/elb_async_client.py @@ -2399,6 +2399,8 @@ def _list_members_http_info(self, request): query_params.append(('admin_state_up', local_var_params['admin_state_up'])) if 'weight' in local_var_params: query_params.append(('weight', local_var_params['weight'])) + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) header_params = {} diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/elb_client.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/elb_client.py index ae9adf8e7f..45c2cdea46 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/elb_client.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/elb_client.py @@ -2399,6 +2399,8 @@ def _list_members_http_info(cls, request): query_params.append(('admin_state_up', local_var_params['admin_state_up'])) if 'weight' in local_var_params: query_params.append(('weight', local_var_params['weight'])) + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) header_params = {} diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/list_members_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/list_members_request.py index 893f0f940f..2bbb535b47 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/list_members_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/list_members_request.py @@ -27,7 +27,8 @@ class ListMembersRequest: 'protocol_port': 'int', 'subnet_id': 'str', 'admin_state_up': 'bool', - 'weight': 'int' + 'weight': 'int', + 'enterprise_project_id': 'str' } attribute_map = { @@ -41,10 +42,11 @@ class ListMembersRequest: 'protocol_port': 'protocol_port', 'subnet_id': 'subnet_id', 'admin_state_up': 'admin_state_up', - 'weight': 'weight' + 'weight': 'weight', + 'enterprise_project_id': 'enterprise_project_id' } - def __init__(self, pool_id=None, limit=None, marker=None, page_reverse=None, id=None, name=None, address=None, protocol_port=None, subnet_id=None, admin_state_up=None, weight=None): + def __init__(self, pool_id=None, limit=None, marker=None, page_reverse=None, id=None, name=None, address=None, protocol_port=None, subnet_id=None, admin_state_up=None, weight=None, enterprise_project_id=None): """ListMembersRequest The model defined in huaweicloud sdk @@ -71,6 +73,8 @@ def __init__(self, pool_id=None, limit=None, marker=None, page_reverse=None, id= :type admin_state_up: bool :param weight: 后端云服务器的权重。 :type weight: int + :param enterprise_project_id: 企业项目ID。 不传时查询default企业项目(即enterprise_project_id=0)下的资源,鉴权按照default企业项目鉴权。 如果传值enterprise_project_id=all_granted_eps,则表示查询所有有权限的企业项目下的资源。 其他情况则传已存在的企业项目ID。此时会校验ID,若不存在或格式错误则报错。 + :type enterprise_project_id: str """ @@ -86,6 +90,7 @@ def __init__(self, pool_id=None, limit=None, marker=None, page_reverse=None, id= self._subnet_id = None self._admin_state_up = None self._weight = None + self._enterprise_project_id = None self.discriminator = None self.pool_id = pool_id @@ -109,6 +114,8 @@ def __init__(self, pool_id=None, limit=None, marker=None, page_reverse=None, id= self.admin_state_up = admin_state_up if weight is not None: self.weight = weight + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id @property def pool_id(self): @@ -352,6 +359,28 @@ def weight(self, weight): """ self._weight = weight + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this ListMembersRequest. + + 企业项目ID。 不传时查询default企业项目(即enterprise_project_id=0)下的资源,鉴权按照default企业项目鉴权。 如果传值enterprise_project_id=all_granted_eps,则表示查询所有有权限的企业项目下的资源。 其他情况则传已存在的企业项目ID。此时会校验ID,若不存在或格式错误则报错。 + + :return: The enterprise_project_id of this ListMembersRequest. + :rtype: str + """ + return self._enterprise_project_id + + @enterprise_project_id.setter + def enterprise_project_id(self, enterprise_project_id): + """Sets the enterprise_project_id of this ListMembersRequest. + + 企业项目ID。 不传时查询default企业项目(即enterprise_project_id=0)下的资源,鉴权按照default企业项目鉴权。 如果传值enterprise_project_id=all_granted_eps,则表示查询所有有权限的企业项目下的资源。 其他情况则传已存在的企业项目ID。此时会校验ID,若不存在或格式错误则报错。 + + :param enterprise_project_id: The enterprise_project_id of this ListMembersRequest. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/elb_async_client.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/elb_async_client.py index a927eb6e0c..23159ea8f4 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/elb_async_client.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/elb_async_client.py @@ -905,7 +905,11 @@ def create_load_balancer_async(self, request): 6. 若要创建网络型负载均衡器,则需要传入l4_flavor_id(网络型规格ID);若要创建应用型负载均衡器,则需要传入l7_flavor_id(应用型规格ID);若要创建网络型+应用型负载均衡器,则需要传入l4_flavor_id和l7_flavor_id。 7. 若要创建包周期负载均衡器,则需要传入prepaid_options,否则创建按需计费负载均衡器。 8. 按需计费分为固定规格计费和弹性规格计费,根据创建时所选规格的类型决定计费方式。具体规格说明见创建LB请求参数l4_flavor_id和l7_flavor_id。 - [9.若要创建gateway类型的负载均衡器,指定loadbalancer_type=“gateway”,不支持指定vip_address,ipv6_vip_address;vip_subnet_cidr_id和ipv6_subnet_cidr_id两者不能同时为空,如果两者都传入,必须属于同一子网。 不支持公网类型。如果要指定规格,则从请求参数gw_flavor_id传入。](tag:hws_eu) + [9.若要创建gateway类型的负载均衡器,则需要: + - 指定loadbalancer_type=\"gateway\",且不支持指定vip_address,ipv6_vip_address。 + - vip_subnet_cidr_id和ipv6_subnet_cidr_id两者不能都为空,如果两者都传入,则必须属于同一子网。 + - 不支持创建公网gateway类型LB。 + - 如果要指定规格,则从请求参数gw_flavor_id传入。](tag:hws_eu) Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/elb_client.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/elb_client.py index 671bd2ca6b..b1653f5a73 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/elb_client.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/elb_client.py @@ -905,7 +905,11 @@ def create_load_balancer(self, request): 6. 若要创建网络型负载均衡器,则需要传入l4_flavor_id(网络型规格ID);若要创建应用型负载均衡器,则需要传入l7_flavor_id(应用型规格ID);若要创建网络型+应用型负载均衡器,则需要传入l4_flavor_id和l7_flavor_id。 7. 若要创建包周期负载均衡器,则需要传入prepaid_options,否则创建按需计费负载均衡器。 8. 按需计费分为固定规格计费和弹性规格计费,根据创建时所选规格的类型决定计费方式。具体规格说明见创建LB请求参数l4_flavor_id和l7_flavor_id。 - [9.若要创建gateway类型的负载均衡器,指定loadbalancer_type=“gateway”,不支持指定vip_address,ipv6_vip_address;vip_subnet_cidr_id和ipv6_subnet_cidr_id两者不能同时为空,如果两者都传入,必须属于同一子网。 不支持公网类型。如果要指定规格,则从请求参数gw_flavor_id传入。](tag:hws_eu) + [9.若要创建gateway类型的负载均衡器,则需要: + - 指定loadbalancer_type=\"gateway\",且不支持指定vip_address,ipv6_vip_address。 + - vip_subnet_cidr_id和ipv6_subnet_cidr_id两者不能都为空,如果两者都传入,则必须属于同一子网。 + - 不支持创建公网gateway类型LB。 + - 如果要指定规格,则从请求参数gw_flavor_id传入。](tag:hws_eu) Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/availability_zone.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/availability_zone.py index 6bd4d4c0ed..66a21ed54f 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/availability_zone.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/availability_zone.py @@ -41,7 +41,7 @@ def __init__(self, code=None, state=None, protocol=None, public_border_group=Non :type code: str :param state: 参数解释:可用区状态。 取值范围:ACTIVE。 :type state: str - :param protocol: [参数解释:未售罄的LB规格类别。 取值范围:L4 表示网络型LB未售罄;L7 表示应用型LB未售罄。](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [参数解释:LB规格类别。 取值范围:L4 表示网络型LB;L7 表示应用型LB。](tag:ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf) + :param protocol: [参数解释:未售罄的LB规格类别。 取值范围:L4 表示网络型LB未售罄;L7 表示应用型LB未售罄。](tag:hws,hk,hws_eu,otc,tlf,sbc,g42,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [参数解释:LB规格类别。 取值范围:L4 表示网络型LB;L7 表示应用型LB。](tag:ctc,cmcc,ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf) :type protocol: list[str] :param public_border_group: 参数解释:可用区组,如:center :type public_border_group: str @@ -112,7 +112,7 @@ def state(self, state): def protocol(self): """Gets the protocol of this AvailabilityZone. - [参数解释:未售罄的LB规格类别。 取值范围:L4 表示网络型LB未售罄;L7 表示应用型LB未售罄。](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [参数解释:LB规格类别。 取值范围:L4 表示网络型LB;L7 表示应用型LB。](tag:ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf) + [参数解释:未售罄的LB规格类别。 取值范围:L4 表示网络型LB未售罄;L7 表示应用型LB未售罄。](tag:hws,hk,hws_eu,otc,tlf,sbc,g42,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [参数解释:LB规格类别。 取值范围:L4 表示网络型LB;L7 表示应用型LB。](tag:ctc,cmcc,ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf) :return: The protocol of this AvailabilityZone. :rtype: list[str] @@ -123,7 +123,7 @@ def protocol(self): def protocol(self, protocol): """Sets the protocol of this AvailabilityZone. - [参数解释:未售罄的LB规格类别。 取值范围:L4 表示网络型LB未售罄;L7 表示应用型LB未售罄。](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [参数解释:LB规格类别。 取值范围:L4 表示网络型LB;L7 表示应用型LB。](tag:ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf) + [参数解释:未售罄的LB规格类别。 取值范围:L4 表示网络型LB未售罄;L7 表示应用型LB未售罄。](tag:hws,hk,hws_eu,otc,tlf,sbc,g42,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [参数解释:LB规格类别。 取值范围:L4 表示网络型LB;L7 表示应用型LB。](tag:ctc,cmcc,ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf) :param protocol: The protocol of this AvailabilityZone. :type protocol: list[str] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_add_available_zones_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_add_available_zones_request.py index 3806442855..eda2c2e3e6 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_add_available_zones_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_add_available_zones_request.py @@ -31,7 +31,7 @@ def __init__(self, loadbalancer_id=None, body=None): The model defined in huaweicloud sdk - :param loadbalancer_id: 负载均衡器ID。 + :param loadbalancer_id: 参数解释:负载均衡器ID。 :type loadbalancer_id: str :param body: Body of the BatchAddAvailableZonesRequest :type body: :class:`huaweicloudsdkelb.v3.BatchAddAvailableZonesRequestBody` @@ -51,7 +51,7 @@ def __init__(self, loadbalancer_id=None, body=None): def loadbalancer_id(self): """Gets the loadbalancer_id of this BatchAddAvailableZonesRequest. - 负载均衡器ID。 + 参数解释:负载均衡器ID。 :return: The loadbalancer_id of this BatchAddAvailableZonesRequest. :rtype: str @@ -62,7 +62,7 @@ def loadbalancer_id(self): def loadbalancer_id(self, loadbalancer_id): """Sets the loadbalancer_id of this BatchAddAvailableZonesRequest. - 负载均衡器ID。 + 参数解释:负载均衡器ID。 :param loadbalancer_id: The loadbalancer_id of this BatchAddAvailableZonesRequest. :type loadbalancer_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_create_members_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_create_members_option.py index 9007f77fbf..ba579c0e28 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_create_members_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_create_members_option.py @@ -39,13 +39,13 @@ def __init__(self, name=None, address=None, protocol_port=None, subnet_cidr_id=N :param name: 后端服务器名称。 :type name: str - :param address: 后端云服务器的对应的IP地址,这个IP必须在subnet_cidr_id字段的子网网段中。例如:192.168.3.11。 subnet_cidr_id为空代表添加跨VPC后端,此时address必须为ipv4地址。 + :param address: 后端服务器的对应的IP地址,这个IP必须在subnet_cidr_id字段的子网网段中。例如:192.168.3.11。 subnet_cidr_id为空代表添加跨VPC后端,此时address必须为ipv4地址。 :type address: str - :param protocol_port: 后端服务器端口。 在开启端口透传的pool下的member,该字段无法更新。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) + :param protocol_port: 后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 :type protocol_port: int - :param subnet_cidr_id: 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + :param subnet_cidr_id: 后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :type subnet_cidr_id: str - :param weight: 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 + :param weight: 后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。 :type weight: int """ @@ -93,7 +93,7 @@ def name(self, name): def address(self): """Gets the address of this BatchCreateMembersOption. - 后端云服务器的对应的IP地址,这个IP必须在subnet_cidr_id字段的子网网段中。例如:192.168.3.11。 subnet_cidr_id为空代表添加跨VPC后端,此时address必须为ipv4地址。 + 后端服务器的对应的IP地址,这个IP必须在subnet_cidr_id字段的子网网段中。例如:192.168.3.11。 subnet_cidr_id为空代表添加跨VPC后端,此时address必须为ipv4地址。 :return: The address of this BatchCreateMembersOption. :rtype: str @@ -104,7 +104,7 @@ def address(self): def address(self, address): """Sets the address of this BatchCreateMembersOption. - 后端云服务器的对应的IP地址,这个IP必须在subnet_cidr_id字段的子网网段中。例如:192.168.3.11。 subnet_cidr_id为空代表添加跨VPC后端,此时address必须为ipv4地址。 + 后端服务器的对应的IP地址,这个IP必须在subnet_cidr_id字段的子网网段中。例如:192.168.3.11。 subnet_cidr_id为空代表添加跨VPC后端,此时address必须为ipv4地址。 :param address: The address of this BatchCreateMembersOption. :type address: str @@ -115,7 +115,7 @@ def address(self, address): def protocol_port(self): """Gets the protocol_port of this BatchCreateMembersOption. - 后端服务器端口。 在开启端口透传的pool下的member,该字段无法更新。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) + 后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 :return: The protocol_port of this BatchCreateMembersOption. :rtype: int @@ -126,7 +126,7 @@ def protocol_port(self): def protocol_port(self, protocol_port): """Sets the protocol_port of this BatchCreateMembersOption. - 后端服务器端口。 在开启端口透传的pool下的member,该字段无法更新。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) + 后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 :param protocol_port: The protocol_port of this BatchCreateMembersOption. :type protocol_port: int @@ -137,7 +137,7 @@ def protocol_port(self, protocol_port): def subnet_cidr_id(self): """Gets the subnet_cidr_id of this BatchCreateMembersOption. - 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + 后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :return: The subnet_cidr_id of this BatchCreateMembersOption. :rtype: str @@ -148,7 +148,7 @@ def subnet_cidr_id(self): def subnet_cidr_id(self, subnet_cidr_id): """Sets the subnet_cidr_id of this BatchCreateMembersOption. - 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + 后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :param subnet_cidr_id: The subnet_cidr_id of this BatchCreateMembersOption. :type subnet_cidr_id: str @@ -159,7 +159,7 @@ def subnet_cidr_id(self, subnet_cidr_id): def weight(self): """Gets the weight of this BatchCreateMembersOption. - 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 + 后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。 :return: The weight of this BatchCreateMembersOption. :rtype: int @@ -170,7 +170,7 @@ def weight(self): def weight(self, weight): """Sets the weight of this BatchCreateMembersOption. - 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 + 后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。 :param weight: The weight of this BatchCreateMembersOption. :type weight: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_member.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_member.py index 8f56109beb..e9c5962e14 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_member.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_member.py @@ -65,21 +65,21 @@ def __init__(self, id=None, name=None, project_id=None, admin_state_up=None, sub :type name: str :param project_id: 后端服务器所在的项目ID。 :type project_id: str - :param admin_state_up: 后端云服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + :param admin_state_up: 后端服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :type admin_state_up: bool - :param subnet_cidr_id: 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + :param subnet_cidr_id: 后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :type subnet_cidr_id: str :param protocol_port: 后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 :type protocol_port: int - :param weight: 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明: - 若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 + :param weight: 后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明: - 若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。 :type weight: int - :param address: 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡内网IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + :param address: 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :type address: str - :param operating_status: 后端云服务器的健康状态。 取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 + :param operating_status: 后端服务器的健康状态。 取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。 :type operating_status: str - :param status: 后端云服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。 + :param status: 后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。 :type status: list[:class:`huaweicloudsdkelb.v3.MemberStatus`] - :param member_type: 后端云服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 + :param member_type: 后端服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 :type member_type: str :param instance_id: member关联的实例ID,空表示跨VPC场景的member。 :type instance_id: str @@ -206,7 +206,7 @@ def project_id(self, project_id): def admin_state_up(self): """Gets the admin_state_up of this BatchMember. - 后端云服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + 后端服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :return: The admin_state_up of this BatchMember. :rtype: bool @@ -217,7 +217,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this BatchMember. - 后端云服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + 后端服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :param admin_state_up: The admin_state_up of this BatchMember. :type admin_state_up: bool @@ -228,7 +228,7 @@ def admin_state_up(self, admin_state_up): def subnet_cidr_id(self): """Gets the subnet_cidr_id of this BatchMember. - 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + 后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :return: The subnet_cidr_id of this BatchMember. :rtype: str @@ -239,7 +239,7 @@ def subnet_cidr_id(self): def subnet_cidr_id(self, subnet_cidr_id): """Sets the subnet_cidr_id of this BatchMember. - 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + 后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :param subnet_cidr_id: The subnet_cidr_id of this BatchMember. :type subnet_cidr_id: str @@ -272,7 +272,7 @@ def protocol_port(self, protocol_port): def weight(self): """Gets the weight of this BatchMember. - 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明: - 若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 + 后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明: - 若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。 :return: The weight of this BatchMember. :rtype: int @@ -283,7 +283,7 @@ def weight(self): def weight(self, weight): """Sets the weight of this BatchMember. - 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明: - 若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 + 后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明: - 若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。 :param weight: The weight of this BatchMember. :type weight: int @@ -294,7 +294,7 @@ def weight(self, weight): def address(self): """Gets the address of this BatchMember. - 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡内网IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :return: The address of this BatchMember. :rtype: str @@ -305,7 +305,7 @@ def address(self): def address(self, address): """Sets the address of this BatchMember. - 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡内网IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :param address: The address of this BatchMember. :type address: str @@ -316,7 +316,7 @@ def address(self, address): def operating_status(self): """Gets the operating_status of this BatchMember. - 后端云服务器的健康状态。 取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 + 后端服务器的健康状态。 取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。 :return: The operating_status of this BatchMember. :rtype: str @@ -327,7 +327,7 @@ def operating_status(self): def operating_status(self, operating_status): """Sets the operating_status of this BatchMember. - 后端云服务器的健康状态。 取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 + 后端服务器的健康状态。 取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。 :param operating_status: The operating_status of this BatchMember. :type operating_status: str @@ -338,7 +338,7 @@ def operating_status(self, operating_status): def status(self): """Gets the status of this BatchMember. - 后端云服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。 + 后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。 :return: The status of this BatchMember. :rtype: list[:class:`huaweicloudsdkelb.v3.MemberStatus`] @@ -349,7 +349,7 @@ def status(self): def status(self, status): """Sets the status of this BatchMember. - 后端云服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。 + 后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。 :param status: The status of this BatchMember. :type status: list[:class:`huaweicloudsdkelb.v3.MemberStatus`] @@ -360,7 +360,7 @@ def status(self, status): def member_type(self): """Gets the member_type of this BatchMember. - 后端云服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 + 后端服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 :return: The member_type of this BatchMember. :rtype: str @@ -371,7 +371,7 @@ def member_type(self): def member_type(self, member_type): """Sets the member_type of this BatchMember. - 后端云服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 + 后端服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 :param member_type: The member_type of this BatchMember. :type member_type: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_update_member.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_update_member.py index 50c9a0ad79..bc5f1146a9 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_update_member.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_update_member.py @@ -63,21 +63,21 @@ def __init__(self, id=None, name=None, project_id=None, admin_state_up=None, sub :type name: str :param project_id: 后端服务器所在的项目ID。 :type project_id: str - :param admin_state_up: 后端云服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + :param admin_state_up: 后端服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :type admin_state_up: bool - :param subnet_cidr_id: 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + :param subnet_cidr_id: 后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :type subnet_cidr_id: str - :param protocol_port: 后端服务器业务端口号。 >在开启端口透传的pool下的member,该字段不支持更新 + :param protocol_port: 后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 :type protocol_port: int - :param weight: 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明: - 若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 + :param weight: 后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明: - 若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。 :type weight: int - :param address: 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡内网IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + :param address: 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :type address: str - :param operating_status: 后端云服务器的健康状态。取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 + :param operating_status: 后端服务器的健康状态。取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。 :type operating_status: str - :param status: 后端云服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。 + :param status: 后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。 :type status: list[:class:`huaweicloudsdkelb.v3.MemberStatus`] - :param member_type: 后端云服务器的类型。取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 + :param member_type: 后端服务器的类型。取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 :type member_type: str :param instance_id: member关联的实例ID,空表示跨VPC场景的member。 :type instance_id: str @@ -200,7 +200,7 @@ def project_id(self, project_id): def admin_state_up(self): """Gets the admin_state_up of this BatchUpdateMember. - 后端云服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + 后端服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :return: The admin_state_up of this BatchUpdateMember. :rtype: bool @@ -211,7 +211,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this BatchUpdateMember. - 后端云服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + 后端服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :param admin_state_up: The admin_state_up of this BatchUpdateMember. :type admin_state_up: bool @@ -222,7 +222,7 @@ def admin_state_up(self, admin_state_up): def subnet_cidr_id(self): """Gets the subnet_cidr_id of this BatchUpdateMember. - 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + 后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :return: The subnet_cidr_id of this BatchUpdateMember. :rtype: str @@ -233,7 +233,7 @@ def subnet_cidr_id(self): def subnet_cidr_id(self, subnet_cidr_id): """Sets the subnet_cidr_id of this BatchUpdateMember. - 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + 后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :param subnet_cidr_id: The subnet_cidr_id of this BatchUpdateMember. :type subnet_cidr_id: str @@ -244,7 +244,7 @@ def subnet_cidr_id(self, subnet_cidr_id): def protocol_port(self): """Gets the protocol_port of this BatchUpdateMember. - 后端服务器业务端口号。 >在开启端口透传的pool下的member,该字段不支持更新 + 后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 :return: The protocol_port of this BatchUpdateMember. :rtype: int @@ -255,7 +255,7 @@ def protocol_port(self): def protocol_port(self, protocol_port): """Sets the protocol_port of this BatchUpdateMember. - 后端服务器业务端口号。 >在开启端口透传的pool下的member,该字段不支持更新 + 后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 :param protocol_port: The protocol_port of this BatchUpdateMember. :type protocol_port: int @@ -266,7 +266,7 @@ def protocol_port(self, protocol_port): def weight(self): """Gets the weight of this BatchUpdateMember. - 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明: - 若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 + 后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明: - 若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。 :return: The weight of this BatchUpdateMember. :rtype: int @@ -277,7 +277,7 @@ def weight(self): def weight(self, weight): """Sets the weight of this BatchUpdateMember. - 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明: - 若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 + 后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明: - 若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。 :param weight: The weight of this BatchUpdateMember. :type weight: int @@ -288,7 +288,7 @@ def weight(self, weight): def address(self): """Gets the address of this BatchUpdateMember. - 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡内网IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :return: The address of this BatchUpdateMember. :rtype: str @@ -299,7 +299,7 @@ def address(self): def address(self, address): """Sets the address of this BatchUpdateMember. - 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡内网IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :param address: The address of this BatchUpdateMember. :type address: str @@ -310,7 +310,7 @@ def address(self, address): def operating_status(self): """Gets the operating_status of this BatchUpdateMember. - 后端云服务器的健康状态。取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 + 后端服务器的健康状态。取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。 :return: The operating_status of this BatchUpdateMember. :rtype: str @@ -321,7 +321,7 @@ def operating_status(self): def operating_status(self, operating_status): """Sets the operating_status of this BatchUpdateMember. - 后端云服务器的健康状态。取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 + 后端服务器的健康状态。取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。 :param operating_status: The operating_status of this BatchUpdateMember. :type operating_status: str @@ -332,7 +332,7 @@ def operating_status(self, operating_status): def status(self): """Gets the status of this BatchUpdateMember. - 后端云服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。 + 后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。 :return: The status of this BatchUpdateMember. :rtype: list[:class:`huaweicloudsdkelb.v3.MemberStatus`] @@ -343,7 +343,7 @@ def status(self): def status(self, status): """Sets the status of this BatchUpdateMember. - 后端云服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。 + 后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。 :param status: The status of this BatchUpdateMember. :type status: list[:class:`huaweicloudsdkelb.v3.MemberStatus`] @@ -354,7 +354,7 @@ def status(self, status): def member_type(self): """Gets the member_type of this BatchUpdateMember. - 后端云服务器的类型。取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 + 后端服务器的类型。取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 :return: The member_type of this BatchUpdateMember. :rtype: str @@ -365,7 +365,7 @@ def member_type(self): def member_type(self, member_type): """Sets the member_type of this BatchUpdateMember. - 后端云服务器的类型。取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 + 后端服务器的类型。取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 :param member_type: The member_type of this BatchUpdateMember. :type member_type: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_update_members_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_update_members_option.py index 7c1ec43575..110b2c7fc5 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_update_members_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_update_members_option.py @@ -39,13 +39,13 @@ def __init__(self, id=None, admin_state_up=None, name=None, protocol_port=None, :param id: 后端服务器ID。 >此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。 :type id: str - :param admin_state_up: 后端云服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 请勿传入该字段。 + :param admin_state_up: 后端服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 请勿传入该字段。 :type admin_state_up: bool :param name: 后端服务器名称。 :type name: str :param protocol_port: 后端服务器端口。 在开启端口透传的pool下的member,该字段无法更新。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) :type protocol_port: int - :param weight: 后端云服务器的权重,请求按权重在同一后端云服务器组下的后端云服务器间分发。权重为0的后端不再接受新的请求。当后端云服务器所在的后端云服务器组的lb_algorithm的取值为SOURCE_IP时,该字段无效。 + :param weight: 后端服务器的权重,请求按权重在同一后端服务器组下的后端服务器间分发。权重为0的后端不再接受新的请求。当后端服务器所在的后端服务器组的lb_algorithm的取值为SOURCE_IP时,该字段无效。 :type weight: int """ @@ -94,7 +94,7 @@ def id(self, id): def admin_state_up(self): """Gets the admin_state_up of this BatchUpdateMembersOption. - 后端云服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 请勿传入该字段。 + 后端服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 请勿传入该字段。 :return: The admin_state_up of this BatchUpdateMembersOption. :rtype: bool @@ -105,7 +105,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this BatchUpdateMembersOption. - 后端云服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 请勿传入该字段。 + 后端服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 请勿传入该字段。 :param admin_state_up: The admin_state_up of this BatchUpdateMembersOption. :type admin_state_up: bool @@ -160,7 +160,7 @@ def protocol_port(self, protocol_port): def weight(self): """Gets the weight of this BatchUpdateMembersOption. - 后端云服务器的权重,请求按权重在同一后端云服务器组下的后端云服务器间分发。权重为0的后端不再接受新的请求。当后端云服务器所在的后端云服务器组的lb_algorithm的取值为SOURCE_IP时,该字段无效。 + 后端服务器的权重,请求按权重在同一后端服务器组下的后端服务器间分发。权重为0的后端不再接受新的请求。当后端服务器所在的后端服务器组的lb_algorithm的取值为SOURCE_IP时,该字段无效。 :return: The weight of this BatchUpdateMembersOption. :rtype: int @@ -171,7 +171,7 @@ def weight(self): def weight(self, weight): """Sets the weight of this BatchUpdateMembersOption. - 后端云服务器的权重,请求按权重在同一后端云服务器组下的后端云服务器间分发。权重为0的后端不再接受新的请求。当后端云服务器所在的后端云服务器组的lb_algorithm的取值为SOURCE_IP时,该字段无效。 + 后端服务器的权重,请求按权重在同一后端服务器组下的后端服务器间分发。权重为0的后端不再接受新的请求。当后端服务器所在的后端服务器组的lb_algorithm的取值为SOURCE_IP时,该字段无效。 :param weight: The weight of this BatchUpdateMembersOption. :type weight: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/connection_drain.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/connection_drain.py index a469d7d269..996ae40fe9 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/connection_drain.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/connection_drain.py @@ -31,9 +31,9 @@ def __init__(self, enable=None, timeout=None): The model defined in huaweicloud sdk - :param enable: 延迟注销功能开关。取值:true 开启,false 关闭,默认true。 + :param enable: 参数解释:延迟注销功能开关。 取值范围:true 开启,false 关闭。 默认取值:true。 :type enable: bool - :param timeout: 延迟注销时间,单位:s; 取值范围:10~4000 + :param timeout: 参数解释:延迟注销时间。 取值范围:10~4000,单位:秒。 :type timeout: int """ @@ -52,7 +52,7 @@ def __init__(self, enable=None, timeout=None): def enable(self): """Gets the enable of this ConnectionDrain. - 延迟注销功能开关。取值:true 开启,false 关闭,默认true。 + 参数解释:延迟注销功能开关。 取值范围:true 开启,false 关闭。 默认取值:true。 :return: The enable of this ConnectionDrain. :rtype: bool @@ -63,7 +63,7 @@ def enable(self): def enable(self, enable): """Sets the enable of this ConnectionDrain. - 延迟注销功能开关。取值:true 开启,false 关闭,默认true。 + 参数解释:延迟注销功能开关。 取值范围:true 开启,false 关闭。 默认取值:true。 :param enable: The enable of this ConnectionDrain. :type enable: bool @@ -74,7 +74,7 @@ def enable(self, enable): def timeout(self): """Gets the timeout of this ConnectionDrain. - 延迟注销时间,单位:s; 取值范围:10~4000 + 参数解释:延迟注销时间。 取值范围:10~4000,单位:秒。 :return: The timeout of this ConnectionDrain. :rtype: int @@ -85,7 +85,7 @@ def timeout(self): def timeout(self, timeout): """Sets the timeout of this ConnectionDrain. - 延迟注销时间,单位:s; 取值范围:10~4000 + 参数解释:延迟注销时间。 取值范围:10~4000,单位:秒。 :param timeout: The timeout of this ConnectionDrain. :type timeout: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_health_monitor_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_health_monitor_option.py index 361b7be40d..1b0049c87e 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_health_monitor_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_health_monitor_option.py @@ -61,7 +61,7 @@ def __init__(self, admin_state_up=None, delay=None, domain_name=None, expected_c :type delay: int :param domain_name: 发送健康检查请求的域名。 取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。 默认为空,表示使用负载均衡器的vip作为http请求的目的地址。 使用说明:当type为HTTP/HTTPS时生效。 :type domain_name: str - :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为gRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 + :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为GRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 :type expected_codes: str :param http_method: HTTP请求方法。 取值:GET、HEAD、POST,默认GET。 使用说明:当type为HTTP/HTTPS时生效。 :type http_method: str @@ -69,17 +69,17 @@ def __init__(self, admin_state_up=None, delay=None, domain_name=None, expected_c :type max_retries: int :param max_retries_down: 健康检查连续失败多少次后,将后端服务器的健康检查状态由ONLINE判定为OFFLINE。取值范围:1-10,默认3。 :type max_retries_down: int - :param monitor_port: 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。 [当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) >当绑定的pool开启了端口透传功能时,该字段为必填。 + :param monitor_port: 健康检查端口号。取值:1-65535,默认为空,表示使用后端服务器端口号。 [当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) >当绑定的pool开启了端口透传功能时,该字段为必填。 :type monitor_port: int :param name: 健康检查名称。 :type name: str - :param pool_id: 健康检查所在的后端云服务器组ID + :param pool_id: 健康检查所在的后端服务器组ID :type pool_id: str :param project_id: 健康检查所在的项目ID。 :type project_id: str :param timeout: 一次健康检查请求的超时时间。 建议该值小于delay的值。 :type timeout: int - :param type: 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、gRPC和TLS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为gRPC,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + :param type: 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、GRPC和TLS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为GRPC,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :type type: str :param url_path: 健康检查请求的请求路径。以\"/\"开头,默认为\"/\"。 支持使用字母、数字和短划线(-)、正斜线(/)、半角句号(.)、百分号(%)、半角问号(?)、井号(#)和and(&)以及扩展字符集_;~!()*[]@$^:',+ 使用说明:当type为HTTP/HTTPS时生效。 :type url_path: str @@ -197,7 +197,7 @@ def domain_name(self, domain_name): def expected_codes(self): """Gets the expected_codes of this CreateHealthMonitorOption. - 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为gRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 + 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为GRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 :return: The expected_codes of this CreateHealthMonitorOption. :rtype: str @@ -208,7 +208,7 @@ def expected_codes(self): def expected_codes(self, expected_codes): """Sets the expected_codes of this CreateHealthMonitorOption. - 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为gRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 + 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为GRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 :param expected_codes: The expected_codes of this CreateHealthMonitorOption. :type expected_codes: str @@ -285,7 +285,7 @@ def max_retries_down(self, max_retries_down): def monitor_port(self): """Gets the monitor_port of this CreateHealthMonitorOption. - 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。 [当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) >当绑定的pool开启了端口透传功能时,该字段为必填。 + 健康检查端口号。取值:1-65535,默认为空,表示使用后端服务器端口号。 [当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) >当绑定的pool开启了端口透传功能时,该字段为必填。 :return: The monitor_port of this CreateHealthMonitorOption. :rtype: int @@ -296,7 +296,7 @@ def monitor_port(self): def monitor_port(self, monitor_port): """Sets the monitor_port of this CreateHealthMonitorOption. - 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。 [当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) >当绑定的pool开启了端口透传功能时,该字段为必填。 + 健康检查端口号。取值:1-65535,默认为空,表示使用后端服务器端口号。 [当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) >当绑定的pool开启了端口透传功能时,该字段为必填。 :param monitor_port: The monitor_port of this CreateHealthMonitorOption. :type monitor_port: int @@ -329,7 +329,7 @@ def name(self, name): def pool_id(self): """Gets the pool_id of this CreateHealthMonitorOption. - 健康检查所在的后端云服务器组ID + 健康检查所在的后端服务器组ID :return: The pool_id of this CreateHealthMonitorOption. :rtype: str @@ -340,7 +340,7 @@ def pool_id(self): def pool_id(self, pool_id): """Sets the pool_id of this CreateHealthMonitorOption. - 健康检查所在的后端云服务器组ID + 健康检查所在的后端服务器组ID :param pool_id: The pool_id of this CreateHealthMonitorOption. :type pool_id: str @@ -395,7 +395,7 @@ def timeout(self, timeout): def type(self): """Gets the type of this CreateHealthMonitorOption. - 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、gRPC和TLS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为gRPC,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、GRPC和TLS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为GRPC,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :return: The type of this CreateHealthMonitorOption. :rtype: str @@ -406,7 +406,7 @@ def type(self): def type(self, type): """Sets the type of this CreateHealthMonitorOption. - 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、gRPC和TLS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为gRPC,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、GRPC和TLS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为GRPC,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :param type: The type of this CreateHealthMonitorOption. :type type: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_l7_policy_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_l7_policy_option.py index 22b375e7af..209acf33b2 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_l7_policy_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_l7_policy_option.py @@ -61,7 +61,7 @@ def __init__(self, action=None, admin_state_up=None, description=None, listener_ The model defined in huaweicloud sdk - :param action: 参数解释:转发策略的转发动作。 约束限制: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 取值范围: - REDIRECT_TO_POOL:转发到后端云服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) + :param action: 参数解释:转发策略的转发动作。 约束限制: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 取值范围: - REDIRECT_TO_POOL:转发到后端服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) :type action: str :param admin_state_up: 参数解释:转发策略的管理状态。 约束限制:只支持设置为true。 :type admin_state_up: bool @@ -155,7 +155,7 @@ def __init__(self, action=None, admin_state_up=None, description=None, listener_ def action(self): """Gets the action of this CreateL7PolicyOption. - 参数解释:转发策略的转发动作。 约束限制: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 取值范围: - REDIRECT_TO_POOL:转发到后端云服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) + 参数解释:转发策略的转发动作。 约束限制: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 取值范围: - REDIRECT_TO_POOL:转发到后端服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) :return: The action of this CreateL7PolicyOption. :rtype: str @@ -166,7 +166,7 @@ def action(self): def action(self, action): """Sets the action of this CreateL7PolicyOption. - 参数解释:转发策略的转发动作。 约束限制: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 取值范围: - REDIRECT_TO_POOL:转发到后端云服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) + 参数解释:转发策略的转发动作。 约束限制: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 取值范围: - REDIRECT_TO_POOL:转发到后端服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) :param action: The action of this CreateL7PolicyOption. :type action: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_listener_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_listener_option.py index 4bd2799a5c..1bacaedd94 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_listener_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_listener_option.py @@ -91,7 +91,7 @@ def __init__(self, admin_state_up=None, default_pool_id=None, client_ca_tls_cont :param admin_state_up: 参数解释:监听器的管理状态。 约束限制:只支持设置为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :type admin_state_up: bool - :param default_pool_id: 参数解释:监听器默认的后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 + :param default_pool_id: 参数解释:监听器默认的后端服务器组ID。当请求没有匹配的转发策略时,转发到默认后端服务器上处理。 :type default_pool_id: str :param client_ca_tls_container_ref: 参数解释:监听器使用的CA证书ID。 约束限制: - 当且仅当type=client时,才会使用该字段对应的证书。 - 监听器协议为QUIC时不支持该字段。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :type client_ca_tls_container_ref: str @@ -137,7 +137,7 @@ def __init__(self, admin_state_up=None, default_pool_id=None, client_ca_tls_cont :type transparent_client_ip_enable: bool :param proxy_protocol_enable: 参数解释:是否开启proxy_protocol。 约束限制:仅TLS监听器可指定,其他协议的监听器该字段不生效,proxy_protocol不开启。 :type proxy_protocol_enable: bool - :param enhance_l7policy_enable: 参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 取值范围:true开启,false不开启,默认false。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) > 开启后不支持关闭 + :param enhance_l7policy_enable: 参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 约束限制:开启后不支持关闭 取值范围:true开启,false不开启,默认false。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :type enhance_l7policy_enable: bool :param quic_config: :type quic_config: :class:`huaweicloudsdkelb.v3.CreateListenerQuicConfigOption` @@ -275,7 +275,7 @@ def admin_state_up(self, admin_state_up): def default_pool_id(self): """Gets the default_pool_id of this CreateListenerOption. - 参数解释:监听器默认的后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 + 参数解释:监听器默认的后端服务器组ID。当请求没有匹配的转发策略时,转发到默认后端服务器上处理。 :return: The default_pool_id of this CreateListenerOption. :rtype: str @@ -286,7 +286,7 @@ def default_pool_id(self): def default_pool_id(self, default_pool_id): """Sets the default_pool_id of this CreateListenerOption. - 参数解释:监听器默认的后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 + 参数解释:监听器默认的后端服务器组ID。当请求没有匹配的转发策略时,转发到默认后端服务器上处理。 :param default_pool_id: The default_pool_id of this CreateListenerOption. :type default_pool_id: str @@ -773,7 +773,7 @@ def proxy_protocol_enable(self, proxy_protocol_enable): def enhance_l7policy_enable(self): """Gets the enhance_l7policy_enable of this CreateListenerOption. - 参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 取值范围:true开启,false不开启,默认false。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) > 开启后不支持关闭 + 参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 约束限制:开启后不支持关闭 取值范围:true开启,false不开启,默认false。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :return: The enhance_l7policy_enable of this CreateListenerOption. :rtype: bool @@ -784,7 +784,7 @@ def enhance_l7policy_enable(self): def enhance_l7policy_enable(self, enhance_l7policy_enable): """Sets the enhance_l7policy_enable of this CreateListenerOption. - 参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 取值范围:true开启,false不开启,默认false。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) > 开启后不支持关闭 + 参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 约束限制:开启后不支持关闭 取值范围:true开启,false不开启,默认false。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :param enhance_l7policy_enable: The enhance_l7policy_enable of this CreateListenerOption. :type enhance_l7policy_enable: bool diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_load_balancer_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_load_balancer_option.py index 81a9e7373c..ba75ae9b90 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_load_balancer_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_load_balancer_option.py @@ -103,7 +103,7 @@ def __init__(self, project_id=None, name=None, description=None, vip_address=Non :type l4_flavor_id: str :param l7_flavor_id: 参数解释:应用型规格ID。 约束限制: [- 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L7 响应参数中的id得到。 - 当l4_flavor_id和l7_flavor_id都不传的时,会使用默认flavor (默认flavor根据不同局点有所不同,具体以实际值为准)。 - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费。](tag:hws,hws_hk,hws_eu,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb) [网关型LB不支持指定l7_flavor_id。](tag:hws_eu) [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) 取值范围: 标准的UUID格式,长度为36个字符。 :type l7_flavor_id: str - :param guaranteed: 参数解释:是否为独享型负载均衡器实例。 约束限制:当前只支持设置为true,设置为false会返回400 Bad Request。 取值范围:布尔类型。 - true:独享型。 - false:共享型。 默认取值:true。 + :param guaranteed: 参数解释:是否为独享型负载均衡器实例。 约束限制:当前只支持设置为true,设置为false会返回400 Bad Request。 取值范围: - true:独享型。 - false:共享型。 默认取值:true。 :type guaranteed: bool :param vpc_id: 参数解释:负载均衡器所在的VPC ID。 约束限制: - 参数获取,可以通过 GET https://{VPC_Endpoint}/v1/{project_id}/vpcs 响应参数中的id得到。 - vpc_id,vip_subnet_cidr_id,ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。 取值范围: 标准的UUID格式,长度为36个字符。 :type vpc_id: str @@ -438,7 +438,7 @@ def l7_flavor_id(self, l7_flavor_id): def guaranteed(self): """Gets the guaranteed of this CreateLoadBalancerOption. - 参数解释:是否为独享型负载均衡器实例。 约束限制:当前只支持设置为true,设置为false会返回400 Bad Request。 取值范围:布尔类型。 - true:独享型。 - false:共享型。 默认取值:true。 + 参数解释:是否为独享型负载均衡器实例。 约束限制:当前只支持设置为true,设置为false会返回400 Bad Request。 取值范围: - true:独享型。 - false:共享型。 默认取值:true。 :return: The guaranteed of this CreateLoadBalancerOption. :rtype: bool @@ -449,7 +449,7 @@ def guaranteed(self): def guaranteed(self, guaranteed): """Sets the guaranteed of this CreateLoadBalancerOption. - 参数解释:是否为独享型负载均衡器实例。 约束限制:当前只支持设置为true,设置为false会返回400 Bad Request。 取值范围:布尔类型。 - true:独享型。 - false:共享型。 默认取值:true。 + 参数解释:是否为独享型负载均衡器实例。 约束限制:当前只支持设置为true,设置为false会返回400 Bad Request。 取值范围: - true:独享型。 - false:共享型。 默认取值:true。 :param guaranteed: The guaranteed of this CreateLoadBalancerOption. :type guaranteed: bool diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_master_slave_health_monitor_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_master_slave_health_monitor_option.py index e1a9e83e7d..d71f91cfb5 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_master_slave_health_monitor_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_master_slave_health_monitor_option.py @@ -53,7 +53,7 @@ def __init__(self, delay=None, domain_name=None, expected_codes=None, http_metho :type delay: int :param domain_name: 发送健康检查请求的域名。 取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。 默认为空,表示使用负载均衡器的vip作为http请求的目的地址。 使用说明:当type为HTTP/HTTPS时生效。 :type domain_name: str - :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 + :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 :type expected_codes: str :param http_method: HTTP请求方法。 取值:GET、HEAD、POST,默认GET。 使用说明:当type为HTTP/HTTPS时生效。 :type http_method: str @@ -61,7 +61,7 @@ def __init__(self, delay=None, domain_name=None, expected_codes=None, http_metho :type max_retries: int :param max_retries_down: 健康检查连续失败多少次后,将后端服务器的健康检查状态由ONLINE判定为OFFLINE。取值范围:1-10,默认3。 :type max_retries_down: int - :param monitor_port: 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。 + :param monitor_port: 健康检查端口号。取值:1-65535,默认为空,表示使用后端服务器端口号。 :type monitor_port: int :param name: 健康检查名称。 :type name: str @@ -155,7 +155,7 @@ def domain_name(self, domain_name): def expected_codes(self): """Gets the expected_codes of this CreateMasterSlaveHealthMonitorOption. - 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 + 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 :return: The expected_codes of this CreateMasterSlaveHealthMonitorOption. :rtype: str @@ -166,7 +166,7 @@ def expected_codes(self): def expected_codes(self, expected_codes): """Sets the expected_codes of this CreateMasterSlaveHealthMonitorOption. - 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 + 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 :param expected_codes: The expected_codes of this CreateMasterSlaveHealthMonitorOption. :type expected_codes: str @@ -243,7 +243,7 @@ def max_retries_down(self, max_retries_down): def monitor_port(self): """Gets the monitor_port of this CreateMasterSlaveHealthMonitorOption. - 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。 + 健康检查端口号。取值:1-65535,默认为空,表示使用后端服务器端口号。 :return: The monitor_port of this CreateMasterSlaveHealthMonitorOption. :rtype: int @@ -254,7 +254,7 @@ def monitor_port(self): def monitor_port(self, monitor_port): """Sets the monitor_port of this CreateMasterSlaveHealthMonitorOption. - 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。 + 健康检查端口号。取值:1-65535,默认为空,表示使用后端服务器端口号。 :param monitor_port: The monitor_port of this CreateMasterSlaveHealthMonitorOption. :type monitor_port: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_master_slave_member_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_master_slave_member_option.py index e7fad68af9..1d8fd6a976 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_master_slave_member_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_master_slave_member_option.py @@ -39,15 +39,15 @@ def __init__(self, address=None, admin_state_up=None, name=None, protocol_port=N The model defined in huaweicloud sdk - :param address: 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。 该IP地址可以是私网IPv4或IPv6。但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡内网IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + :param address: 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。 该IP地址可以是私网IPv4或IPv6。但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :type address: str - :param admin_state_up: 后端云服务器的管理状态。 取值:true。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + :param admin_state_up: 后端服务器的管理状态。 取值:true。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :type admin_state_up: bool - :param name: 后端云服务器名称。 + :param name: 后端服务器名称。 :type name: str :param protocol_port: 后端服务器业务端口。 >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 :type protocol_port: int - :param subnet_cidr_id: 后端云服务器所在的子网ID,可以是子网的IPv4子网ID或IPv6子网ID。 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + :param subnet_cidr_id: 后端服务器所在的子网ID,可以是子网的IPv4子网ID或IPv6子网ID。 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :type subnet_cidr_id: str :param role: 后端服务器的主备状态。 取值范围: - master:主后端服务器。 - slave:备后端服务器。 :type role: str @@ -77,7 +77,7 @@ def __init__(self, address=None, admin_state_up=None, name=None, protocol_port=N def address(self): """Gets the address of this CreateMasterSlaveMemberOption. - 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。 该IP地址可以是私网IPv4或IPv6。但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡内网IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。 该IP地址可以是私网IPv4或IPv6。但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :return: The address of this CreateMasterSlaveMemberOption. :rtype: str @@ -88,7 +88,7 @@ def address(self): def address(self, address): """Sets the address of this CreateMasterSlaveMemberOption. - 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。 该IP地址可以是私网IPv4或IPv6。但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡内网IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。 该IP地址可以是私网IPv4或IPv6。但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :param address: The address of this CreateMasterSlaveMemberOption. :type address: str @@ -99,7 +99,7 @@ def address(self, address): def admin_state_up(self): """Gets the admin_state_up of this CreateMasterSlaveMemberOption. - 后端云服务器的管理状态。 取值:true。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + 后端服务器的管理状态。 取值:true。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :return: The admin_state_up of this CreateMasterSlaveMemberOption. :rtype: bool @@ -110,7 +110,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this CreateMasterSlaveMemberOption. - 后端云服务器的管理状态。 取值:true。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + 后端服务器的管理状态。 取值:true。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :param admin_state_up: The admin_state_up of this CreateMasterSlaveMemberOption. :type admin_state_up: bool @@ -121,7 +121,7 @@ def admin_state_up(self, admin_state_up): def name(self): """Gets the name of this CreateMasterSlaveMemberOption. - 后端云服务器名称。 + 后端服务器名称。 :return: The name of this CreateMasterSlaveMemberOption. :rtype: str @@ -132,7 +132,7 @@ def name(self): def name(self, name): """Sets the name of this CreateMasterSlaveMemberOption. - 后端云服务器名称。 + 后端服务器名称。 :param name: The name of this CreateMasterSlaveMemberOption. :type name: str @@ -165,7 +165,7 @@ def protocol_port(self, protocol_port): def subnet_cidr_id(self): """Gets the subnet_cidr_id of this CreateMasterSlaveMemberOption. - 后端云服务器所在的子网ID,可以是子网的IPv4子网ID或IPv6子网ID。 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + 后端服务器所在的子网ID,可以是子网的IPv4子网ID或IPv6子网ID。 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :return: The subnet_cidr_id of this CreateMasterSlaveMemberOption. :rtype: str @@ -176,7 +176,7 @@ def subnet_cidr_id(self): def subnet_cidr_id(self, subnet_cidr_id): """Sets the subnet_cidr_id of this CreateMasterSlaveMemberOption. - 后端云服务器所在的子网ID,可以是子网的IPv4子网ID或IPv6子网ID。 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + 后端服务器所在的子网ID,可以是子网的IPv4子网ID或IPv6子网ID。 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :param subnet_cidr_id: The subnet_cidr_id of this CreateMasterSlaveMemberOption. :type subnet_cidr_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_master_slave_pool_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_master_slave_pool_option.py index 6c1cc63d8e..7d56c5d4a2 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_master_slave_pool_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_master_slave_pool_option.py @@ -57,29 +57,29 @@ def __init__(self, description=None, lb_algorithm=None, loadbalancer_id=None, li The model defined in huaweicloud sdk - :param description: 后端云服务器组的描述信息。 + :param description: 后端服务器组的描述信息。 :type description: str - :param lb_algorithm: 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + :param lb_algorithm: 后端服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :type lb_algorithm: str - :param loadbalancer_id: 后端云服务器组关联的LB的ID。 使用说明:listener_id,loadbalancer_id,type至少指定一个。 + :param loadbalancer_id: 后端服务器组关联的LB的ID。 使用说明:listener_id,loadbalancer_id,type至少指定一个。 :type loadbalancer_id: str - :param listener_id: 后端云服务器组关联的监听器的ID。 使用说明:listener_id,loadbalancer_id,type至少指定一个。 + :param listener_id: 后端服务器组关联的监听器的ID。 使用说明:listener_id,loadbalancer_id,type至少指定一个。 :type listener_id: str - :param name: 后端云服务器组的名称。 + :param name: 后端服务器组的名称。 :type name: str - :param project_id: 后端云服务器组所属的项目ID。 + :param project_id: 后端服务器组所属的项目ID。 :type project_id: str - :param protocol: 后端云服务器组的后端协议。 取值:TCP、UDP、QUIC、TLS。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时,pool的protocol必须为TCP。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP(且只能使用ip_version为v4的TCP pool)。 - 其他协议监听器不支持主备后端服务器组。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + :param protocol: 后端服务器组的后端协议。 取值:TCP、UDP、QUIC、TLS。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时,pool的protocol必须为TCP。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP(且只能使用ip_version为v4的TCP pool)。 - 其他协议监听器不支持主备后端服务器组。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :type protocol: str :param session_persistence: :type session_persistence: :class:`huaweicloudsdkelb.v3.CreatePoolSessionPersistenceOption` - :param vpc_id: 后端云服务器组关联的虚拟私有云的ID。 指定了vpc_id的约束: - 只能挂载到该虚拟私有云下。 - 只能添加该虚拟私有云下的后端服务器或跨VPC的后端服务器。 - type必须指定为instance。 没有指定vpc_id的约束: - 后续添加后端服务器时,vpc_id由后端服务器所在的虚拟私有云确定。 + :param vpc_id: 后端服务器组关联的虚拟私有云的ID。 指定了vpc_id的约束: - 只能挂载到该虚拟私有云下。 - 只能添加该虚拟私有云下的后端服务器或跨VPC的后端服务器。 - type必须指定为instance。 没有指定vpc_id的约束: - 后续添加后端服务器时,vpc_id由后端服务器所在的虚拟私有云确定。 :type vpc_id: str :param type: 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。 :type type: str - :param ip_version: 后端云服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test) + :param ip_version: 后端服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test) :type ip_version: str - :param members: 主备主机组的后端服务器。 只能添加2个后端云服务器,必须有一个为主,一个为备。 + :param members: 主备主机组的后端服务器。 只能添加2个后端服务器,必须有一个为主,一个为备。 :type members: list[:class:`huaweicloudsdkelb.v3.CreateMasterSlaveMemberOption`] :param healthmonitor: :type healthmonitor: :class:`huaweicloudsdkelb.v3.CreateMasterSlaveHealthMonitorOption` @@ -138,7 +138,7 @@ def __init__(self, description=None, lb_algorithm=None, loadbalancer_id=None, li def description(self): """Gets the description of this CreateMasterSlavePoolOption. - 后端云服务器组的描述信息。 + 后端服务器组的描述信息。 :return: The description of this CreateMasterSlavePoolOption. :rtype: str @@ -149,7 +149,7 @@ def description(self): def description(self, description): """Sets the description of this CreateMasterSlavePoolOption. - 后端云服务器组的描述信息。 + 后端服务器组的描述信息。 :param description: The description of this CreateMasterSlavePoolOption. :type description: str @@ -160,7 +160,7 @@ def description(self, description): def lb_algorithm(self): """Gets the lb_algorithm of this CreateMasterSlavePoolOption. - 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + 后端服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :return: The lb_algorithm of this CreateMasterSlavePoolOption. :rtype: str @@ -171,7 +171,7 @@ def lb_algorithm(self): def lb_algorithm(self, lb_algorithm): """Sets the lb_algorithm of this CreateMasterSlavePoolOption. - 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + 后端服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :param lb_algorithm: The lb_algorithm of this CreateMasterSlavePoolOption. :type lb_algorithm: str @@ -182,7 +182,7 @@ def lb_algorithm(self, lb_algorithm): def loadbalancer_id(self): """Gets the loadbalancer_id of this CreateMasterSlavePoolOption. - 后端云服务器组关联的LB的ID。 使用说明:listener_id,loadbalancer_id,type至少指定一个。 + 后端服务器组关联的LB的ID。 使用说明:listener_id,loadbalancer_id,type至少指定一个。 :return: The loadbalancer_id of this CreateMasterSlavePoolOption. :rtype: str @@ -193,7 +193,7 @@ def loadbalancer_id(self): def loadbalancer_id(self, loadbalancer_id): """Sets the loadbalancer_id of this CreateMasterSlavePoolOption. - 后端云服务器组关联的LB的ID。 使用说明:listener_id,loadbalancer_id,type至少指定一个。 + 后端服务器组关联的LB的ID。 使用说明:listener_id,loadbalancer_id,type至少指定一个。 :param loadbalancer_id: The loadbalancer_id of this CreateMasterSlavePoolOption. :type loadbalancer_id: str @@ -204,7 +204,7 @@ def loadbalancer_id(self, loadbalancer_id): def listener_id(self): """Gets the listener_id of this CreateMasterSlavePoolOption. - 后端云服务器组关联的监听器的ID。 使用说明:listener_id,loadbalancer_id,type至少指定一个。 + 后端服务器组关联的监听器的ID。 使用说明:listener_id,loadbalancer_id,type至少指定一个。 :return: The listener_id of this CreateMasterSlavePoolOption. :rtype: str @@ -215,7 +215,7 @@ def listener_id(self): def listener_id(self, listener_id): """Sets the listener_id of this CreateMasterSlavePoolOption. - 后端云服务器组关联的监听器的ID。 使用说明:listener_id,loadbalancer_id,type至少指定一个。 + 后端服务器组关联的监听器的ID。 使用说明:listener_id,loadbalancer_id,type至少指定一个。 :param listener_id: The listener_id of this CreateMasterSlavePoolOption. :type listener_id: str @@ -226,7 +226,7 @@ def listener_id(self, listener_id): def name(self): """Gets the name of this CreateMasterSlavePoolOption. - 后端云服务器组的名称。 + 后端服务器组的名称。 :return: The name of this CreateMasterSlavePoolOption. :rtype: str @@ -237,7 +237,7 @@ def name(self): def name(self, name): """Sets the name of this CreateMasterSlavePoolOption. - 后端云服务器组的名称。 + 后端服务器组的名称。 :param name: The name of this CreateMasterSlavePoolOption. :type name: str @@ -248,7 +248,7 @@ def name(self, name): def project_id(self): """Gets the project_id of this CreateMasterSlavePoolOption. - 后端云服务器组所属的项目ID。 + 后端服务器组所属的项目ID。 :return: The project_id of this CreateMasterSlavePoolOption. :rtype: str @@ -259,7 +259,7 @@ def project_id(self): def project_id(self, project_id): """Sets the project_id of this CreateMasterSlavePoolOption. - 后端云服务器组所属的项目ID。 + 后端服务器组所属的项目ID。 :param project_id: The project_id of this CreateMasterSlavePoolOption. :type project_id: str @@ -270,7 +270,7 @@ def project_id(self, project_id): def protocol(self): """Gets the protocol of this CreateMasterSlavePoolOption. - 后端云服务器组的后端协议。 取值:TCP、UDP、QUIC、TLS。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时,pool的protocol必须为TCP。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP(且只能使用ip_version为v4的TCP pool)。 - 其他协议监听器不支持主备后端服务器组。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 后端服务器组的后端协议。 取值:TCP、UDP、QUIC、TLS。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时,pool的protocol必须为TCP。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP(且只能使用ip_version为v4的TCP pool)。 - 其他协议监听器不支持主备后端服务器组。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :return: The protocol of this CreateMasterSlavePoolOption. :rtype: str @@ -281,7 +281,7 @@ def protocol(self): def protocol(self, protocol): """Sets the protocol of this CreateMasterSlavePoolOption. - 后端云服务器组的后端协议。 取值:TCP、UDP、QUIC、TLS。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时,pool的protocol必须为TCP。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP(且只能使用ip_version为v4的TCP pool)。 - 其他协议监听器不支持主备后端服务器组。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 后端服务器组的后端协议。 取值:TCP、UDP、QUIC、TLS。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时,pool的protocol必须为TCP。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP(且只能使用ip_version为v4的TCP pool)。 - 其他协议监听器不支持主备后端服务器组。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :param protocol: The protocol of this CreateMasterSlavePoolOption. :type protocol: str @@ -310,7 +310,7 @@ def session_persistence(self, session_persistence): def vpc_id(self): """Gets the vpc_id of this CreateMasterSlavePoolOption. - 后端云服务器组关联的虚拟私有云的ID。 指定了vpc_id的约束: - 只能挂载到该虚拟私有云下。 - 只能添加该虚拟私有云下的后端服务器或跨VPC的后端服务器。 - type必须指定为instance。 没有指定vpc_id的约束: - 后续添加后端服务器时,vpc_id由后端服务器所在的虚拟私有云确定。 + 后端服务器组关联的虚拟私有云的ID。 指定了vpc_id的约束: - 只能挂载到该虚拟私有云下。 - 只能添加该虚拟私有云下的后端服务器或跨VPC的后端服务器。 - type必须指定为instance。 没有指定vpc_id的约束: - 后续添加后端服务器时,vpc_id由后端服务器所在的虚拟私有云确定。 :return: The vpc_id of this CreateMasterSlavePoolOption. :rtype: str @@ -321,7 +321,7 @@ def vpc_id(self): def vpc_id(self, vpc_id): """Sets the vpc_id of this CreateMasterSlavePoolOption. - 后端云服务器组关联的虚拟私有云的ID。 指定了vpc_id的约束: - 只能挂载到该虚拟私有云下。 - 只能添加该虚拟私有云下的后端服务器或跨VPC的后端服务器。 - type必须指定为instance。 没有指定vpc_id的约束: - 后续添加后端服务器时,vpc_id由后端服务器所在的虚拟私有云确定。 + 后端服务器组关联的虚拟私有云的ID。 指定了vpc_id的约束: - 只能挂载到该虚拟私有云下。 - 只能添加该虚拟私有云下的后端服务器或跨VPC的后端服务器。 - type必须指定为instance。 没有指定vpc_id的约束: - 后续添加后端服务器时,vpc_id由后端服务器所在的虚拟私有云确定。 :param vpc_id: The vpc_id of this CreateMasterSlavePoolOption. :type vpc_id: str @@ -354,7 +354,7 @@ def type(self, type): def ip_version(self): """Gets the ip_version of this CreateMasterSlavePoolOption. - 后端云服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test) + 后端服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test) :return: The ip_version of this CreateMasterSlavePoolOption. :rtype: str @@ -365,7 +365,7 @@ def ip_version(self): def ip_version(self, ip_version): """Sets the ip_version of this CreateMasterSlavePoolOption. - 后端云服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test) + 后端服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test) :param ip_version: The ip_version of this CreateMasterSlavePoolOption. :type ip_version: str @@ -376,7 +376,7 @@ def ip_version(self, ip_version): def members(self): """Gets the members of this CreateMasterSlavePoolOption. - 主备主机组的后端服务器。 只能添加2个后端云服务器,必须有一个为主,一个为备。 + 主备主机组的后端服务器。 只能添加2个后端服务器,必须有一个为主,一个为备。 :return: The members of this CreateMasterSlavePoolOption. :rtype: list[:class:`huaweicloudsdkelb.v3.CreateMasterSlaveMemberOption`] @@ -387,7 +387,7 @@ def members(self): def members(self, members): """Sets the members of this CreateMasterSlavePoolOption. - 主备主机组的后端服务器。 只能添加2个后端云服务器,必须有一个为主,一个为备。 + 主备主机组的后端服务器。 只能添加2个后端服务器,必须有一个为主,一个为备。 :param members: The members of this CreateMasterSlavePoolOption. :type members: list[:class:`huaweicloudsdkelb.v3.CreateMasterSlaveMemberOption`] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_member_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_member_option.py index f52e3e7759..b53e5fb7ff 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_member_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_member_option.py @@ -41,19 +41,19 @@ def __init__(self, address=None, admin_state_up=None, name=None, project_id=None The model defined in huaweicloud sdk - :param address: 参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡的内网IP。 [ 不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + :param address: 参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。 [ 不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :type address: str - :param admin_state_up: 参数解释:后端云服务器的管理状态。 约束限制:虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 取值范围:true、false。 + :param admin_state_up: 参数解释:后端服务器的管理状态。 约束限制:虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 取值范围:true、false。 :type admin_state_up: bool - :param name: 参数解释:后端云服务器名称。注意:该名称并非ECS名称,若不传则返回为空。 + :param name: 参数解释:后端服务器名称。注意:该名称并非ECS名称,若不传则返回为空。 :type name: str - :param project_id: 参数解释:后端云服务器所在的项目ID。 + :param project_id: 参数解释:后端服务器所在的项目ID。 :type project_id: str :param protocol_port: 参数解释:后端服务器业务端口。 约束限制: - 在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 [- 网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) :type protocol_port: int - :param subnet_cidr_id: 参数解释:后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 约束限制: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + :param subnet_cidr_id: 参数解释:后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 约束限制: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :type subnet_cidr_id: str - :param weight: 参数解释:后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 约束限制:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 取值范围:0-100,默认1。 + :param weight: 参数解释:后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 约束限制:若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。 取值范围:0-100,默认1。 :type weight: int """ @@ -86,7 +86,7 @@ def __init__(self, address=None, admin_state_up=None, name=None, project_id=None def address(self): """Gets the address of this CreateMemberOption. - 参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡的内网IP。 [ 不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + 参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。 [ 不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :return: The address of this CreateMemberOption. :rtype: str @@ -97,7 +97,7 @@ def address(self): def address(self, address): """Sets the address of this CreateMemberOption. - 参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡的内网IP。 [ 不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + 参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。 [ 不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :param address: The address of this CreateMemberOption. :type address: str @@ -108,7 +108,7 @@ def address(self, address): def admin_state_up(self): """Gets the admin_state_up of this CreateMemberOption. - 参数解释:后端云服务器的管理状态。 约束限制:虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 取值范围:true、false。 + 参数解释:后端服务器的管理状态。 约束限制:虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 取值范围:true、false。 :return: The admin_state_up of this CreateMemberOption. :rtype: bool @@ -119,7 +119,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this CreateMemberOption. - 参数解释:后端云服务器的管理状态。 约束限制:虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 取值范围:true、false。 + 参数解释:后端服务器的管理状态。 约束限制:虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 取值范围:true、false。 :param admin_state_up: The admin_state_up of this CreateMemberOption. :type admin_state_up: bool @@ -130,7 +130,7 @@ def admin_state_up(self, admin_state_up): def name(self): """Gets the name of this CreateMemberOption. - 参数解释:后端云服务器名称。注意:该名称并非ECS名称,若不传则返回为空。 + 参数解释:后端服务器名称。注意:该名称并非ECS名称,若不传则返回为空。 :return: The name of this CreateMemberOption. :rtype: str @@ -141,7 +141,7 @@ def name(self): def name(self, name): """Sets the name of this CreateMemberOption. - 参数解释:后端云服务器名称。注意:该名称并非ECS名称,若不传则返回为空。 + 参数解释:后端服务器名称。注意:该名称并非ECS名称,若不传则返回为空。 :param name: The name of this CreateMemberOption. :type name: str @@ -152,7 +152,7 @@ def name(self, name): def project_id(self): """Gets the project_id of this CreateMemberOption. - 参数解释:后端云服务器所在的项目ID。 + 参数解释:后端服务器所在的项目ID。 :return: The project_id of this CreateMemberOption. :rtype: str @@ -163,7 +163,7 @@ def project_id(self): def project_id(self, project_id): """Sets the project_id of this CreateMemberOption. - 参数解释:后端云服务器所在的项目ID。 + 参数解释:后端服务器所在的项目ID。 :param project_id: The project_id of this CreateMemberOption. :type project_id: str @@ -196,7 +196,7 @@ def protocol_port(self, protocol_port): def subnet_cidr_id(self): """Gets the subnet_cidr_id of this CreateMemberOption. - 参数解释:后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 约束限制: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + 参数解释:后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 约束限制: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :return: The subnet_cidr_id of this CreateMemberOption. :rtype: str @@ -207,7 +207,7 @@ def subnet_cidr_id(self): def subnet_cidr_id(self, subnet_cidr_id): """Sets the subnet_cidr_id of this CreateMemberOption. - 参数解释:后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 约束限制: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + 参数解释:后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 约束限制: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :param subnet_cidr_id: The subnet_cidr_id of this CreateMemberOption. :type subnet_cidr_id: str @@ -218,7 +218,7 @@ def subnet_cidr_id(self, subnet_cidr_id): def weight(self): """Gets the weight of this CreateMemberOption. - 参数解释:后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 约束限制:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 取值范围:0-100,默认1。 + 参数解释:后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 约束限制:若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。 取值范围:0-100,默认1。 :return: The weight of this CreateMemberOption. :rtype: int @@ -229,7 +229,7 @@ def weight(self): def weight(self, weight): """Sets the weight of this CreateMemberOption. - 参数解释:后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 约束限制:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 取值范围:0-100,默认1。 + 参数解释:后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 约束限制:若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。 取值范围:0-100,默认1。 :param weight: The weight of this CreateMemberOption. :type weight: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_pool_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_pool_option.py index da2567b104..493761fafa 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_pool_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_pool_option.py @@ -67,45 +67,45 @@ def __init__(self, admin_state_up=None, description=None, lb_algorithm=None, lis The model defined in huaweicloud sdk - :param admin_state_up: 后端云服务器组的管理状态,只支持设置为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + :param admin_state_up: 参数解释:后端服务器组的管理状态,只支持设置为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :type admin_state_up: bool - :param description: 后端云服务器组的描述信息。 + :param description: 参数解释:后端服务器组的描述信息。 :type description: str - :param lb_algorithm: 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + :param lb_algorithm: 参数解释:后端服务器组的负载均衡算法。 约束限制: - 当该字段的取值为SOURCE_IP或QUIC_CID时,后端服务器组绑定的后端服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 取值范围: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :type lb_algorithm: str - :param listener_id: 后端云服务器组关联的监听器的ID。 使用说明: - listener_id,loadbalancer_id,type至少指定一个。 [- 共享型实例的后端服务器组loadbalancer_id和listener_id至少指定一个。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + :param listener_id: 参数解释:后端服务器组关联的监听器的ID。 约束限制: - listener_id,loadbalancer_id,type至少指定一个。 [- 独享型实例的后端服务器组loadbalancer_id和listener_id可以都不指定,但共享型实例至少指定一个。。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :type listener_id: str - :param loadbalancer_id: 后端云服务器组关联的负载均衡器ID。 使用说明: - listener_id,loadbalancer_id,type至少指定一个。 [- 共享型实例的后端服务器组loadbalancer_id和listener_id至少指定一个。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + :param loadbalancer_id: 参数解释:后端服务器组关联的负载均衡器ID。 约束限制: - listener_id,loadbalancer_id,type至少指定一个。 [- 独享型实例的后端服务器组loadbalancer_id和listener_id可以都不指定,但共享型实例至少指定一个。。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :type loadbalancer_id: str - :param name: 后端云服务器组的名称。 + :param name: 参数解释:后端服务器组的名称。 :type name: str - :param project_id: 后端云服务器组所属的项目ID。 + :param project_id: 参数解释:后端服务器组所属的项目ID。 :type project_id: str - :param protocol: 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、gRPC、HTTP、HTTPS和QUIC。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时pool的protocol必须为TCP。 [- listener的protocol为IP时,pool的protocol必须为IP。](tag:hws_eu) - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP、HTTPS或gRPC。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - listener的protocol为QUIC时,pool的protocol必须为HTTP、HTTPS或gRPC。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP(且只能使用ip_version为v4的TCP pool)。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 - 若pool的protocol为gRPC,关联监听器的http2_enable必须为true。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + :param protocol: 参数解释:后端服务器组的后端协议。 约束限制: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时pool的protocol必须为TCP。 [- listener的protocol为IP时,pool的protocol必须为IP。](tag:hws_eu) - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - listener的protocol为QUIC时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP(且只能使用ip_version为v4的TCP pool)。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 - 若pool的protocol为GRPC,关联监听器的http2_enable必须为true。 取值范围:TCP、UDP、[IP、](tag:hws_eu)TLS、GRPC、HTTP、HTTPS和QUIC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :type protocol: str :param session_persistence: :type session_persistence: :class:`huaweicloudsdkelb.v3.CreatePoolSessionPersistenceOption` :param slow_start: :type slow_start: :class:`huaweicloudsdkelb.v3.CreatePoolSlowStartOption` - :param member_deletion_protection_enable: 是否开启删除保护。 取值:false不开启,true开启,默认false。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + :param member_deletion_protection_enable: 参数解释:是否开启删除保护。 取值范围:false不开启,true开启,默认false。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :type member_deletion_protection_enable: bool - :param vpc_id: 后端云服务器组关联的虚拟私有云的ID。 使用说明: - 只能挂载到该虚拟私有云下。 - 只能添加该虚拟私有云下的后端服务器或跨VPC的后端服务器。 - type必须指定为instance。 [- pool的protocol为IP时,必须指定vpc_id,且与LB的vpc_id相同。](tag:hws_eu) 没有指定vpc_id的约束: - 后续添加后端服务器时,vpc_id由后端服务器所在的虚拟私有云确定。 + :param vpc_id: 参数解释:后端服务器组关联的虚拟私有云的ID。 约束限制: - 只能挂载到该虚拟私有云下。 - 只能添加该虚拟私有云下的后端服务器或跨VPC的后端服务器。 - type必须指定为instance。 [- pool的protocol为IP时,必须指定vpc_id,且与LB的vpc_id相同。](tag:hws_eu) - 若未指定vpc_id,则后续添加后端服务器时,vpc_id由后端服务器所在的虚拟私有云确定。 :type vpc_id: str - :param type: 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。[pool的protocol为IP时,type不允许设置为ip。](tag:hws_eu)] 使用说明: - 不传表示允许任意类型的后端,并返回type为空字符串。 - listener_id,loadbalancer_id,type至少指定一个。 [- 共享型实例的后端服务器组loadbalancer_id和listener_id至少指定一个。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + :param type: 参数解释:后端服务器组的类型。 约束限制: - 不传表示允许任意类型的后端,并返回type为空字符串。 - listener_id,loadbalancer_id,type至少指定一个。 [- 独享型实例的后端服务器组loadbalancer_id和listener_id可以都不指定,但共享型实例至少指定一个。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) 取值范围: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。[pool的protocol为IP时,type不允许设置为ip。](tag:hws_eu)] :type type: str - :param ip_version: 后端云服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test) + :param ip_version: 参数解释:后端服务器组支持的IP版本。 [取值范围: - 共享型:固定为v4; - 独享型:取值dualstack、v4。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs) [取值范围:dualstack、v4。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test) :type ip_version: str - :param protection_status: 修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 + :param protection_status: 参数解释:修改保护状态。 取值范围: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 :type protection_status: str - :param protection_reason: 设置保护的原因 >仅当protection_status为consoleProtection时有效。 + :param protection_reason: 参数解释:设置保护的原因 约束限制:仅当protection_status为consoleProtection时有效。 :type protection_reason: str - :param any_port_enable: 后端是否开启端口透传。开启后,后端服务器端口与前端监听器端口保持一致。关闭后,请求会转发给后端服务器protocol_port字段指定端口。取值:false不开启,true开启。 使用说明: - 仅QUIC,TCP,UDP的pool支持。 + :param any_port_enable: 参数解释:后端是否开启端口透传。开启后,后端服务器端口与前端监听器端口保持一致。关闭后,请求会转发给后端服务器protocol_port字段指定端口。 约束限制: - 仅QUIC,TCP,UDP的pool支持。 取值范围:false不开启,true开启。 :type any_port_enable: bool :param connection_drain: :type connection_drain: :class:`huaweicloudsdkelb.v3.ConnectionDrain` :param pool_health: :type pool_health: :class:`huaweicloudsdkelb.v3.PoolHealth` - :param public_border_group: 可用区组,如:center + :param public_border_group: 参数解释:可用区组,如:center :type public_border_group: str """ @@ -176,7 +176,7 @@ def __init__(self, admin_state_up=None, description=None, lb_algorithm=None, lis def admin_state_up(self): """Gets the admin_state_up of this CreatePoolOption. - 后端云服务器组的管理状态,只支持设置为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + 参数解释:后端服务器组的管理状态,只支持设置为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :return: The admin_state_up of this CreatePoolOption. :rtype: bool @@ -187,7 +187,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this CreatePoolOption. - 后端云服务器组的管理状态,只支持设置为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + 参数解释:后端服务器组的管理状态,只支持设置为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :param admin_state_up: The admin_state_up of this CreatePoolOption. :type admin_state_up: bool @@ -198,7 +198,7 @@ def admin_state_up(self, admin_state_up): def description(self): """Gets the description of this CreatePoolOption. - 后端云服务器组的描述信息。 + 参数解释:后端服务器组的描述信息。 :return: The description of this CreatePoolOption. :rtype: str @@ -209,7 +209,7 @@ def description(self): def description(self, description): """Sets the description of this CreatePoolOption. - 后端云服务器组的描述信息。 + 参数解释:后端服务器组的描述信息。 :param description: The description of this CreatePoolOption. :type description: str @@ -220,7 +220,7 @@ def description(self, description): def lb_algorithm(self): """Gets the lb_algorithm of this CreatePoolOption. - 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + 参数解释:后端服务器组的负载均衡算法。 约束限制: - 当该字段的取值为SOURCE_IP或QUIC_CID时,后端服务器组绑定的后端服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 取值范围: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :return: The lb_algorithm of this CreatePoolOption. :rtype: str @@ -231,7 +231,7 @@ def lb_algorithm(self): def lb_algorithm(self, lb_algorithm): """Sets the lb_algorithm of this CreatePoolOption. - 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + 参数解释:后端服务器组的负载均衡算法。 约束限制: - 当该字段的取值为SOURCE_IP或QUIC_CID时,后端服务器组绑定的后端服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 取值范围: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :param lb_algorithm: The lb_algorithm of this CreatePoolOption. :type lb_algorithm: str @@ -242,7 +242,7 @@ def lb_algorithm(self, lb_algorithm): def listener_id(self): """Gets the listener_id of this CreatePoolOption. - 后端云服务器组关联的监听器的ID。 使用说明: - listener_id,loadbalancer_id,type至少指定一个。 [- 共享型实例的后端服务器组loadbalancer_id和listener_id至少指定一个。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + 参数解释:后端服务器组关联的监听器的ID。 约束限制: - listener_id,loadbalancer_id,type至少指定一个。 [- 独享型实例的后端服务器组loadbalancer_id和listener_id可以都不指定,但共享型实例至少指定一个。。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :return: The listener_id of this CreatePoolOption. :rtype: str @@ -253,7 +253,7 @@ def listener_id(self): def listener_id(self, listener_id): """Sets the listener_id of this CreatePoolOption. - 后端云服务器组关联的监听器的ID。 使用说明: - listener_id,loadbalancer_id,type至少指定一个。 [- 共享型实例的后端服务器组loadbalancer_id和listener_id至少指定一个。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + 参数解释:后端服务器组关联的监听器的ID。 约束限制: - listener_id,loadbalancer_id,type至少指定一个。 [- 独享型实例的后端服务器组loadbalancer_id和listener_id可以都不指定,但共享型实例至少指定一个。。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :param listener_id: The listener_id of this CreatePoolOption. :type listener_id: str @@ -264,7 +264,7 @@ def listener_id(self, listener_id): def loadbalancer_id(self): """Gets the loadbalancer_id of this CreatePoolOption. - 后端云服务器组关联的负载均衡器ID。 使用说明: - listener_id,loadbalancer_id,type至少指定一个。 [- 共享型实例的后端服务器组loadbalancer_id和listener_id至少指定一个。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + 参数解释:后端服务器组关联的负载均衡器ID。 约束限制: - listener_id,loadbalancer_id,type至少指定一个。 [- 独享型实例的后端服务器组loadbalancer_id和listener_id可以都不指定,但共享型实例至少指定一个。。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :return: The loadbalancer_id of this CreatePoolOption. :rtype: str @@ -275,7 +275,7 @@ def loadbalancer_id(self): def loadbalancer_id(self, loadbalancer_id): """Sets the loadbalancer_id of this CreatePoolOption. - 后端云服务器组关联的负载均衡器ID。 使用说明: - listener_id,loadbalancer_id,type至少指定一个。 [- 共享型实例的后端服务器组loadbalancer_id和listener_id至少指定一个。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + 参数解释:后端服务器组关联的负载均衡器ID。 约束限制: - listener_id,loadbalancer_id,type至少指定一个。 [- 独享型实例的后端服务器组loadbalancer_id和listener_id可以都不指定,但共享型实例至少指定一个。。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :param loadbalancer_id: The loadbalancer_id of this CreatePoolOption. :type loadbalancer_id: str @@ -286,7 +286,7 @@ def loadbalancer_id(self, loadbalancer_id): def name(self): """Gets the name of this CreatePoolOption. - 后端云服务器组的名称。 + 参数解释:后端服务器组的名称。 :return: The name of this CreatePoolOption. :rtype: str @@ -297,7 +297,7 @@ def name(self): def name(self, name): """Sets the name of this CreatePoolOption. - 后端云服务器组的名称。 + 参数解释:后端服务器组的名称。 :param name: The name of this CreatePoolOption. :type name: str @@ -308,7 +308,7 @@ def name(self, name): def project_id(self): """Gets the project_id of this CreatePoolOption. - 后端云服务器组所属的项目ID。 + 参数解释:后端服务器组所属的项目ID。 :return: The project_id of this CreatePoolOption. :rtype: str @@ -319,7 +319,7 @@ def project_id(self): def project_id(self, project_id): """Sets the project_id of this CreatePoolOption. - 后端云服务器组所属的项目ID。 + 参数解释:后端服务器组所属的项目ID。 :param project_id: The project_id of this CreatePoolOption. :type project_id: str @@ -330,7 +330,7 @@ def project_id(self, project_id): def protocol(self): """Gets the protocol of this CreatePoolOption. - 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、gRPC、HTTP、HTTPS和QUIC。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时pool的protocol必须为TCP。 [- listener的protocol为IP时,pool的protocol必须为IP。](tag:hws_eu) - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP、HTTPS或gRPC。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - listener的protocol为QUIC时,pool的protocol必须为HTTP、HTTPS或gRPC。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP(且只能使用ip_version为v4的TCP pool)。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 - 若pool的protocol为gRPC,关联监听器的http2_enable必须为true。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 参数解释:后端服务器组的后端协议。 约束限制: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时pool的protocol必须为TCP。 [- listener的protocol为IP时,pool的protocol必须为IP。](tag:hws_eu) - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - listener的protocol为QUIC时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP(且只能使用ip_version为v4的TCP pool)。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 - 若pool的protocol为GRPC,关联监听器的http2_enable必须为true。 取值范围:TCP、UDP、[IP、](tag:hws_eu)TLS、GRPC、HTTP、HTTPS和QUIC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :return: The protocol of this CreatePoolOption. :rtype: str @@ -341,7 +341,7 @@ def protocol(self): def protocol(self, protocol): """Sets the protocol of this CreatePoolOption. - 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、gRPC、HTTP、HTTPS和QUIC。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时pool的protocol必须为TCP。 [- listener的protocol为IP时,pool的protocol必须为IP。](tag:hws_eu) - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP、HTTPS或gRPC。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - listener的protocol为QUIC时,pool的protocol必须为HTTP、HTTPS或gRPC。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP(且只能使用ip_version为v4的TCP pool)。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 - 若pool的protocol为gRPC,关联监听器的http2_enable必须为true。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 参数解释:后端服务器组的后端协议。 约束限制: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时pool的protocol必须为TCP。 [- listener的protocol为IP时,pool的protocol必须为IP。](tag:hws_eu) - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - listener的protocol为QUIC时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP(且只能使用ip_version为v4的TCP pool)。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 - 若pool的protocol为GRPC,关联监听器的http2_enable必须为true。 取值范围:TCP、UDP、[IP、](tag:hws_eu)TLS、GRPC、HTTP、HTTPS和QUIC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :param protocol: The protocol of this CreatePoolOption. :type protocol: str @@ -388,7 +388,7 @@ def slow_start(self, slow_start): def member_deletion_protection_enable(self): """Gets the member_deletion_protection_enable of this CreatePoolOption. - 是否开启删除保护。 取值:false不开启,true开启,默认false。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:是否开启删除保护。 取值范围:false不开启,true开启,默认false。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :return: The member_deletion_protection_enable of this CreatePoolOption. :rtype: bool @@ -399,7 +399,7 @@ def member_deletion_protection_enable(self): def member_deletion_protection_enable(self, member_deletion_protection_enable): """Sets the member_deletion_protection_enable of this CreatePoolOption. - 是否开启删除保护。 取值:false不开启,true开启,默认false。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:是否开启删除保护。 取值范围:false不开启,true开启,默认false。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :param member_deletion_protection_enable: The member_deletion_protection_enable of this CreatePoolOption. :type member_deletion_protection_enable: bool @@ -410,7 +410,7 @@ def member_deletion_protection_enable(self, member_deletion_protection_enable): def vpc_id(self): """Gets the vpc_id of this CreatePoolOption. - 后端云服务器组关联的虚拟私有云的ID。 使用说明: - 只能挂载到该虚拟私有云下。 - 只能添加该虚拟私有云下的后端服务器或跨VPC的后端服务器。 - type必须指定为instance。 [- pool的protocol为IP时,必须指定vpc_id,且与LB的vpc_id相同。](tag:hws_eu) 没有指定vpc_id的约束: - 后续添加后端服务器时,vpc_id由后端服务器所在的虚拟私有云确定。 + 参数解释:后端服务器组关联的虚拟私有云的ID。 约束限制: - 只能挂载到该虚拟私有云下。 - 只能添加该虚拟私有云下的后端服务器或跨VPC的后端服务器。 - type必须指定为instance。 [- pool的protocol为IP时,必须指定vpc_id,且与LB的vpc_id相同。](tag:hws_eu) - 若未指定vpc_id,则后续添加后端服务器时,vpc_id由后端服务器所在的虚拟私有云确定。 :return: The vpc_id of this CreatePoolOption. :rtype: str @@ -421,7 +421,7 @@ def vpc_id(self): def vpc_id(self, vpc_id): """Sets the vpc_id of this CreatePoolOption. - 后端云服务器组关联的虚拟私有云的ID。 使用说明: - 只能挂载到该虚拟私有云下。 - 只能添加该虚拟私有云下的后端服务器或跨VPC的后端服务器。 - type必须指定为instance。 [- pool的protocol为IP时,必须指定vpc_id,且与LB的vpc_id相同。](tag:hws_eu) 没有指定vpc_id的约束: - 后续添加后端服务器时,vpc_id由后端服务器所在的虚拟私有云确定。 + 参数解释:后端服务器组关联的虚拟私有云的ID。 约束限制: - 只能挂载到该虚拟私有云下。 - 只能添加该虚拟私有云下的后端服务器或跨VPC的后端服务器。 - type必须指定为instance。 [- pool的protocol为IP时,必须指定vpc_id,且与LB的vpc_id相同。](tag:hws_eu) - 若未指定vpc_id,则后续添加后端服务器时,vpc_id由后端服务器所在的虚拟私有云确定。 :param vpc_id: The vpc_id of this CreatePoolOption. :type vpc_id: str @@ -432,7 +432,7 @@ def vpc_id(self, vpc_id): def type(self): """Gets the type of this CreatePoolOption. - 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。[pool的protocol为IP时,type不允许设置为ip。](tag:hws_eu)] 使用说明: - 不传表示允许任意类型的后端,并返回type为空字符串。 - listener_id,loadbalancer_id,type至少指定一个。 [- 共享型实例的后端服务器组loadbalancer_id和listener_id至少指定一个。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + 参数解释:后端服务器组的类型。 约束限制: - 不传表示允许任意类型的后端,并返回type为空字符串。 - listener_id,loadbalancer_id,type至少指定一个。 [- 独享型实例的后端服务器组loadbalancer_id和listener_id可以都不指定,但共享型实例至少指定一个。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) 取值范围: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。[pool的protocol为IP时,type不允许设置为ip。](tag:hws_eu)] :return: The type of this CreatePoolOption. :rtype: str @@ -443,7 +443,7 @@ def type(self): def type(self, type): """Sets the type of this CreatePoolOption. - 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。[pool的protocol为IP时,type不允许设置为ip。](tag:hws_eu)] 使用说明: - 不传表示允许任意类型的后端,并返回type为空字符串。 - listener_id,loadbalancer_id,type至少指定一个。 [- 共享型实例的后端服务器组loadbalancer_id和listener_id至少指定一个。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + 参数解释:后端服务器组的类型。 约束限制: - 不传表示允许任意类型的后端,并返回type为空字符串。 - listener_id,loadbalancer_id,type至少指定一个。 [- 独享型实例的后端服务器组loadbalancer_id和listener_id可以都不指定,但共享型实例至少指定一个。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) 取值范围: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。[pool的protocol为IP时,type不允许设置为ip。](tag:hws_eu)] :param type: The type of this CreatePoolOption. :type type: str @@ -454,7 +454,7 @@ def type(self, type): def ip_version(self): """Gets the ip_version of this CreatePoolOption. - 后端云服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test) + 参数解释:后端服务器组支持的IP版本。 [取值范围: - 共享型:固定为v4; - 独享型:取值dualstack、v4。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs) [取值范围:dualstack、v4。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test) :return: The ip_version of this CreatePoolOption. :rtype: str @@ -465,7 +465,7 @@ def ip_version(self): def ip_version(self, ip_version): """Sets the ip_version of this CreatePoolOption. - 后端云服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test) + 参数解释:后端服务器组支持的IP版本。 [取值范围: - 共享型:固定为v4; - 独享型:取值dualstack、v4。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs) [取值范围:dualstack、v4。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test) :param ip_version: The ip_version of this CreatePoolOption. :type ip_version: str @@ -476,7 +476,7 @@ def ip_version(self, ip_version): def protection_status(self): """Gets the protection_status of this CreatePoolOption. - 修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 + 参数解释:修改保护状态。 取值范围: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 :return: The protection_status of this CreatePoolOption. :rtype: str @@ -487,7 +487,7 @@ def protection_status(self): def protection_status(self, protection_status): """Sets the protection_status of this CreatePoolOption. - 修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 + 参数解释:修改保护状态。 取值范围: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 :param protection_status: The protection_status of this CreatePoolOption. :type protection_status: str @@ -498,7 +498,7 @@ def protection_status(self, protection_status): def protection_reason(self): """Gets the protection_reason of this CreatePoolOption. - 设置保护的原因 >仅当protection_status为consoleProtection时有效。 + 参数解释:设置保护的原因 约束限制:仅当protection_status为consoleProtection时有效。 :return: The protection_reason of this CreatePoolOption. :rtype: str @@ -509,7 +509,7 @@ def protection_reason(self): def protection_reason(self, protection_reason): """Sets the protection_reason of this CreatePoolOption. - 设置保护的原因 >仅当protection_status为consoleProtection时有效。 + 参数解释:设置保护的原因 约束限制:仅当protection_status为consoleProtection时有效。 :param protection_reason: The protection_reason of this CreatePoolOption. :type protection_reason: str @@ -520,7 +520,7 @@ def protection_reason(self, protection_reason): def any_port_enable(self): """Gets the any_port_enable of this CreatePoolOption. - 后端是否开启端口透传。开启后,后端服务器端口与前端监听器端口保持一致。关闭后,请求会转发给后端服务器protocol_port字段指定端口。取值:false不开启,true开启。 使用说明: - 仅QUIC,TCP,UDP的pool支持。 + 参数解释:后端是否开启端口透传。开启后,后端服务器端口与前端监听器端口保持一致。关闭后,请求会转发给后端服务器protocol_port字段指定端口。 约束限制: - 仅QUIC,TCP,UDP的pool支持。 取值范围:false不开启,true开启。 :return: The any_port_enable of this CreatePoolOption. :rtype: bool @@ -531,7 +531,7 @@ def any_port_enable(self): def any_port_enable(self, any_port_enable): """Sets the any_port_enable of this CreatePoolOption. - 后端是否开启端口透传。开启后,后端服务器端口与前端监听器端口保持一致。关闭后,请求会转发给后端服务器protocol_port字段指定端口。取值:false不开启,true开启。 使用说明: - 仅QUIC,TCP,UDP的pool支持。 + 参数解释:后端是否开启端口透传。开启后,后端服务器端口与前端监听器端口保持一致。关闭后,请求会转发给后端服务器protocol_port字段指定端口。 约束限制: - 仅QUIC,TCP,UDP的pool支持。 取值范围:false不开启,true开启。 :param any_port_enable: The any_port_enable of this CreatePoolOption. :type any_port_enable: bool @@ -578,7 +578,7 @@ def pool_health(self, pool_health): def public_border_group(self): """Gets the public_border_group of this CreatePoolOption. - 可用区组,如:center + 参数解释:可用区组,如:center :return: The public_border_group of this CreatePoolOption. :rtype: str @@ -589,7 +589,7 @@ def public_border_group(self): def public_border_group(self, public_border_group): """Sets the public_border_group of this CreatePoolOption. - 可用区组,如:center + 参数解释:可用区组,如:center :param public_border_group: The public_border_group of this CreatePoolOption. :type public_border_group: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_pool_response.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_pool_response.py index 9f97c4786d..3c7e9b39cb 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_pool_response.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_pool_response.py @@ -32,7 +32,7 @@ def __init__(self, request_id=None, pool=None): The model defined in huaweicloud sdk - :param request_id: 请求ID。 注:自动生成 。 + :param request_id: 参数解释:请求ID。 注:自动生成 。 :type request_id: str :param pool: :type pool: :class:`huaweicloudsdkelb.v3.Pool` @@ -53,7 +53,7 @@ def __init__(self, request_id=None, pool=None): def request_id(self): """Gets the request_id of this CreatePoolResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :return: The request_id of this CreatePoolResponse. :rtype: str @@ -64,7 +64,7 @@ def request_id(self): def request_id(self, request_id): """Sets the request_id of this CreatePoolResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :param request_id: The request_id of this CreatePoolResponse. :type request_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_pool_session_persistence_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_pool_session_persistence_option.py index 720da978f1..4f86fc7e1c 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_pool_session_persistence_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_pool_session_persistence_option.py @@ -33,11 +33,11 @@ def __init__(self, cookie_name=None, type=None, persistence_timeout=None): The model defined in huaweicloud sdk - :param cookie_name: cookie名称。 [共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [网关型LB,不支持该特性,请勿使用。](tag:hws_eu) [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt) + :param cookie_name: 参数解释:cookie名称。 约束限制: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [- 网关型LB,不支持该特性,请勿使用。](tag:hws_eu) [取值范围: - 共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 - 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [取值范围:支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt) :type cookie_name: str - :param type: 会话保持类型。 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效; - 当pool的protocol为HTTP、HTTPS时。type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效; - 当pool的protocol为HTTP、HTTPS时。 type只能为HTTP_COOKIE,其他取值会话保持失效。](tag:hws_eu,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) [不支持QUIC。](tag:tm) + :param type: 参数解释:会话保持类型。 [约束限制: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效; - 当pool的protocol为HTTP、HTTPS时。type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [约束限制: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效; - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE,其他取值会话保持失效。](tag:hws_eu,hcso_dt) 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [荷兰region不支持QUIC。](tag:dt,dt_test) [不支持QUIC。](tag:tm) :type type: str - :param persistence_timeout: 会话保持的时间。当type为APP_COOKIE时不生效。 适用范围:如果pool的protocol为TCP、UDP则范围为[1,60](分钟),默认值1; 如果pool的protocol为HTTP和HTTPS则范围为[1,1440](分钟),默认值1440。 + :param persistence_timeout: 参数解释:会话保持的时间。当type为APP_COOKIE时不生效。 取值范围: - 若pool的protocol为TCP、UDP则范围为[1,60](分钟),默认值1; - 若pool的protocol为HTTP和HTTPS则范围为[1,1440](分钟),默认值1440。 :type persistence_timeout: int """ @@ -58,7 +58,7 @@ def __init__(self, cookie_name=None, type=None, persistence_timeout=None): def cookie_name(self): """Gets the cookie_name of this CreatePoolSessionPersistenceOption. - cookie名称。 [共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [网关型LB,不支持该特性,请勿使用。](tag:hws_eu) [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt) + 参数解释:cookie名称。 约束限制: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [- 网关型LB,不支持该特性,请勿使用。](tag:hws_eu) [取值范围: - 共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 - 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [取值范围:支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt) :return: The cookie_name of this CreatePoolSessionPersistenceOption. :rtype: str @@ -69,7 +69,7 @@ def cookie_name(self): def cookie_name(self, cookie_name): """Sets the cookie_name of this CreatePoolSessionPersistenceOption. - cookie名称。 [共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [网关型LB,不支持该特性,请勿使用。](tag:hws_eu) [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt) + 参数解释:cookie名称。 约束限制: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [- 网关型LB,不支持该特性,请勿使用。](tag:hws_eu) [取值范围: - 共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 - 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [取值范围:支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt) :param cookie_name: The cookie_name of this CreatePoolSessionPersistenceOption. :type cookie_name: str @@ -80,7 +80,7 @@ def cookie_name(self, cookie_name): def type(self): """Gets the type of this CreatePoolSessionPersistenceOption. - 会话保持类型。 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效; - 当pool的protocol为HTTP、HTTPS时。type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效; - 当pool的protocol为HTTP、HTTPS时。 type只能为HTTP_COOKIE,其他取值会话保持失效。](tag:hws_eu,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) [不支持QUIC。](tag:tm) + 参数解释:会话保持类型。 [约束限制: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效; - 当pool的protocol为HTTP、HTTPS时。type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [约束限制: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效; - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE,其他取值会话保持失效。](tag:hws_eu,hcso_dt) 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [荷兰region不支持QUIC。](tag:dt,dt_test) [不支持QUIC。](tag:tm) :return: The type of this CreatePoolSessionPersistenceOption. :rtype: str @@ -91,7 +91,7 @@ def type(self): def type(self, type): """Sets the type of this CreatePoolSessionPersistenceOption. - 会话保持类型。 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效; - 当pool的protocol为HTTP、HTTPS时。type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效; - 当pool的protocol为HTTP、HTTPS时。 type只能为HTTP_COOKIE,其他取值会话保持失效。](tag:hws_eu,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) [不支持QUIC。](tag:tm) + 参数解释:会话保持类型。 [约束限制: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效; - 当pool的protocol为HTTP、HTTPS时。type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [约束限制: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效; - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE,其他取值会话保持失效。](tag:hws_eu,hcso_dt) 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [荷兰region不支持QUIC。](tag:dt,dt_test) [不支持QUIC。](tag:tm) :param type: The type of this CreatePoolSessionPersistenceOption. :type type: str @@ -102,7 +102,7 @@ def type(self, type): def persistence_timeout(self): """Gets the persistence_timeout of this CreatePoolSessionPersistenceOption. - 会话保持的时间。当type为APP_COOKIE时不生效。 适用范围:如果pool的protocol为TCP、UDP则范围为[1,60](分钟),默认值1; 如果pool的protocol为HTTP和HTTPS则范围为[1,1440](分钟),默认值1440。 + 参数解释:会话保持的时间。当type为APP_COOKIE时不生效。 取值范围: - 若pool的protocol为TCP、UDP则范围为[1,60](分钟),默认值1; - 若pool的protocol为HTTP和HTTPS则范围为[1,1440](分钟),默认值1440。 :return: The persistence_timeout of this CreatePoolSessionPersistenceOption. :rtype: int @@ -113,7 +113,7 @@ def persistence_timeout(self): def persistence_timeout(self, persistence_timeout): """Sets the persistence_timeout of this CreatePoolSessionPersistenceOption. - 会话保持的时间。当type为APP_COOKIE时不生效。 适用范围:如果pool的protocol为TCP、UDP则范围为[1,60](分钟),默认值1; 如果pool的protocol为HTTP和HTTPS则范围为[1,1440](分钟),默认值1440。 + 参数解释:会话保持的时间。当type为APP_COOKIE时不生效。 取值范围: - 若pool的protocol为TCP、UDP则范围为[1,60](分钟),默认值1; - 若pool的protocol为HTTP和HTTPS则范围为[1,1440](分钟),默认值1440。 :param persistence_timeout: The persistence_timeout of this CreatePoolSessionPersistenceOption. :type persistence_timeout: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_pool_slow_start_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_pool_slow_start_option.py index 285c0f3521..3e42643698 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_pool_slow_start_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_pool_slow_start_option.py @@ -31,9 +31,9 @@ def __init__(self, enable=None, duration=None): The model defined in huaweicloud sdk - :param enable: 慢启动的开关,默认值:false; true:开启; false:关闭 + :param enable: 参数解释:慢启动的开关。 取值范围: - true:开启。 - false:关闭。 默认取值:false。 :type enable: bool - :param duration: 慢启动的持续时间,单位:s。默认:30; 取值范围:30~1200 + :param duration: 参数解释:慢启动的持续时间。 取值范围:30-1200,单位:秒。 默认取值:30。 :type duration: int """ @@ -52,7 +52,7 @@ def __init__(self, enable=None, duration=None): def enable(self): """Gets the enable of this CreatePoolSlowStartOption. - 慢启动的开关,默认值:false; true:开启; false:关闭 + 参数解释:慢启动的开关。 取值范围: - true:开启。 - false:关闭。 默认取值:false。 :return: The enable of this CreatePoolSlowStartOption. :rtype: bool @@ -63,7 +63,7 @@ def enable(self): def enable(self, enable): """Sets the enable of this CreatePoolSlowStartOption. - 慢启动的开关,默认值:false; true:开启; false:关闭 + 参数解释:慢启动的开关。 取值范围: - true:开启。 - false:关闭。 默认取值:false。 :param enable: The enable of this CreatePoolSlowStartOption. :type enable: bool @@ -74,7 +74,7 @@ def enable(self, enable): def duration(self): """Gets the duration of this CreatePoolSlowStartOption. - 慢启动的持续时间,单位:s。默认:30; 取值范围:30~1200 + 参数解释:慢启动的持续时间。 取值范围:30-1200,单位:秒。 默认取值:30。 :return: The duration of this CreatePoolSlowStartOption. :rtype: int @@ -85,7 +85,7 @@ def duration(self): def duration(self, duration): """Sets the duration of this CreatePoolSlowStartOption. - 慢启动的持续时间,单位:s。默认:30; 取值范围:30~1200 + 参数解释:慢启动的持续时间。 取值范围:30-1200,单位:秒。 默认取值:30。 :param duration: The duration of this CreatePoolSlowStartOption. :type duration: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/delete_member_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/delete_member_request.py index 6fe69a3eca..8c3786766e 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/delete_member_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/delete_member_request.py @@ -33,7 +33,7 @@ def __init__(self, pool_id=None, member_id=None): :param pool_id: 参数解释:后端服务器组ID。 :type pool_id: str - :param member_id: 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。 member ID可以通过[查询后端云服务器列表](ListMembers.xml)获取。 + :param member_id: 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。 member ID可以通过[查询后端服务器列表](ListMembers.xml)获取。 :type member_id: str """ @@ -72,7 +72,7 @@ def pool_id(self, pool_id): def member_id(self): """Gets the member_id of this DeleteMemberRequest. - 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。 member ID可以通过[查询后端云服务器列表](ListMembers.xml)获取。 + 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。 member ID可以通过[查询后端服务器列表](ListMembers.xml)获取。 :return: The member_id of this DeleteMemberRequest. :rtype: str @@ -83,7 +83,7 @@ def member_id(self): def member_id(self, member_id): """Sets the member_id of this DeleteMemberRequest. - 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。 member ID可以通过[查询后端云服务器列表](ListMembers.xml)获取。 + 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。 member ID可以通过[查询后端服务器列表](ListMembers.xml)获取。 :param member_id: The member_id of this DeleteMemberRequest. :type member_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/flavor.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/flavor.py index 5ab7e7b0d5..494af41cd1 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/flavor.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/flavor.py @@ -57,7 +57,7 @@ def __init__(self, id=None, info=None, name=None, shared=None, project_id=None, :type project_id: str :param type: 参数解释:规格类别。 取值范围: - L4和L7 表示四层网络型和七层应用型flavor。 [- gateway 表示网关型LB的flavor,目前只支持弹性计费类型。当前仅支持欧洲局点。](tag:hws_eu) - L4_elastic和L7_elastic 表示弹性扩缩容实例的下限规格。已废弃,请勿使用。 - L4_elastic_max、L7_elastic_max[和gateway_elastic_max](tag:hws_eu) 表示弹性扩缩容实例的上限规格。 :type type: str - :param flavor_sold_out: 参数解释:[是否售罄。](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [是否无法购买该规格的LB](tag:ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf) 取值范围: - true:[已售罄,将](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)无法购买该规格的LB。 - false:[未售罄,](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)可购买该规格的LB。 + :param flavor_sold_out: 参数解释:[是否售罄。](tag:hws,hk,hws_eu,otc,tlf,sbc,g42,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [是否无法购买该规格的LB](tag:ctc,cmcc,ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf) 取值范围: - true:[已售罄,将](tag:hws,hk,hws_eu,otc,tlf,sbc,g42,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)无法购买该规格的LB。 - false:[未售罄,](tag:hws,hk,hws_eu,otc,tlf,sbc,g42,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)可购买该规格的LB。 :type flavor_sold_out: bool :param public_border_group: 参数解释:可用区组,如:center :type public_border_group: str @@ -222,7 +222,7 @@ def type(self, type): def flavor_sold_out(self): """Gets the flavor_sold_out of this Flavor. - 参数解释:[是否售罄。](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [是否无法购买该规格的LB](tag:ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf) 取值范围: - true:[已售罄,将](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)无法购买该规格的LB。 - false:[未售罄,](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)可购买该规格的LB。 + 参数解释:[是否售罄。](tag:hws,hk,hws_eu,otc,tlf,sbc,g42,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [是否无法购买该规格的LB](tag:ctc,cmcc,ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf) 取值范围: - true:[已售罄,将](tag:hws,hk,hws_eu,otc,tlf,sbc,g42,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)无法购买该规格的LB。 - false:[未售罄,](tag:hws,hk,hws_eu,otc,tlf,sbc,g42,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)可购买该规格的LB。 :return: The flavor_sold_out of this Flavor. :rtype: bool @@ -233,7 +233,7 @@ def flavor_sold_out(self): def flavor_sold_out(self, flavor_sold_out): """Sets the flavor_sold_out of this Flavor. - 参数解释:[是否售罄。](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [是否无法购买该规格的LB](tag:ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf) 取值范围: - true:[已售罄,将](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)无法购买该规格的LB。 - false:[未售罄,](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)可购买该规格的LB。 + 参数解释:[是否售罄。](tag:hws,hk,hws_eu,otc,tlf,sbc,g42,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [是否无法购买该规格的LB](tag:ctc,cmcc,ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf) 取值范围: - true:[已售罄,将](tag:hws,hk,hws_eu,otc,tlf,sbc,g42,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)无法购买该规格的LB。 - false:[未售罄,](tag:hws,hk,hws_eu,otc,tlf,sbc,g42,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)可购买该规格的LB。 :param flavor_sold_out: The flavor_sold_out of this Flavor. :type flavor_sold_out: bool diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/health_monitor.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/health_monitor.py index 0a9176d468..aa9f2d0cb5 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/health_monitor.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/health_monitor.py @@ -67,7 +67,7 @@ def __init__(self, admin_state_up=None, delay=None, domain_name=None, expected_c :type delay: int :param domain_name: 发送健康检查请求的域名。 取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。 默认为空,表示使用负载均衡器的vip作为http请求的目的地址。 使用说明:当type为HTTP/HTTPS时生效。 :type domain_name: str - :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为gRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 + :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为GRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 :type expected_codes: str :param http_method: HTTP请求方法。 取值:GET、HEAD、POST,默认GET。 使用说明:当type为HTTP/HTTPS时生效。 :type http_method: str @@ -77,17 +77,17 @@ def __init__(self, admin_state_up=None, delay=None, domain_name=None, expected_c :type max_retries: int :param max_retries_down: 健康检查连续失败多少次后,将后端服务器的健康检查状态由ONLINE判定为OFFLINE。取值范围:1-10,默认3。 :type max_retries_down: int - :param monitor_port: 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。[当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) + :param monitor_port: 健康检查端口号。取值:1-65535,默认为空,表示使用后端服务器端口号。[当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) :type monitor_port: int :param name: 健康检查名称。 :type name: str - :param pools: 健康检查所在的后端云服务器组ID列表。实际只会有一个后端云服务器组ID。 + :param pools: 健康检查所在的后端服务器组ID列表。实际只会有一个后端服务器组ID。 :type pools: list[:class:`huaweicloudsdkelb.v3.PoolRef`] :param project_id: 健康检查所在的项目ID。 :type project_id: str :param timeout: 一次健康检查请求的超时时间。 建议该值小于delay的值。 :type timeout: int - :param type: 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和gRPC。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为gRPC,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + :param type: 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和GRPC。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为GRPC,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :type type: str :param url_path: 健康检查请求的请求路径。以\"/\"开头,默认为\"/\"。 支持使用字母、数字和短划线(-)、正斜线(/)、半角句号(.)、百分号(%)、半角问号(?)、井号(#)和and(&)以及扩展字符集_;~!()*[]@$^:',+ 使用说明:当type为HTTP/HTTPS时生效。 :type url_path: str @@ -208,7 +208,7 @@ def domain_name(self, domain_name): def expected_codes(self): """Gets the expected_codes of this HealthMonitor. - 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为gRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 + 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为GRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 :return: The expected_codes of this HealthMonitor. :rtype: str @@ -219,7 +219,7 @@ def expected_codes(self): def expected_codes(self, expected_codes): """Sets the expected_codes of this HealthMonitor. - 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为gRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 + 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为GRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 :param expected_codes: The expected_codes of this HealthMonitor. :type expected_codes: str @@ -318,7 +318,7 @@ def max_retries_down(self, max_retries_down): def monitor_port(self): """Gets the monitor_port of this HealthMonitor. - 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。[当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) + 健康检查端口号。取值:1-65535,默认为空,表示使用后端服务器端口号。[当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) :return: The monitor_port of this HealthMonitor. :rtype: int @@ -329,7 +329,7 @@ def monitor_port(self): def monitor_port(self, monitor_port): """Sets the monitor_port of this HealthMonitor. - 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。[当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) + 健康检查端口号。取值:1-65535,默认为空,表示使用后端服务器端口号。[当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) :param monitor_port: The monitor_port of this HealthMonitor. :type monitor_port: int @@ -362,7 +362,7 @@ def name(self, name): def pools(self): """Gets the pools of this HealthMonitor. - 健康检查所在的后端云服务器组ID列表。实际只会有一个后端云服务器组ID。 + 健康检查所在的后端服务器组ID列表。实际只会有一个后端服务器组ID。 :return: The pools of this HealthMonitor. :rtype: list[:class:`huaweicloudsdkelb.v3.PoolRef`] @@ -373,7 +373,7 @@ def pools(self): def pools(self, pools): """Sets the pools of this HealthMonitor. - 健康检查所在的后端云服务器组ID列表。实际只会有一个后端云服务器组ID。 + 健康检查所在的后端服务器组ID列表。实际只会有一个后端服务器组ID。 :param pools: The pools of this HealthMonitor. :type pools: list[:class:`huaweicloudsdkelb.v3.PoolRef`] @@ -428,7 +428,7 @@ def timeout(self, timeout): def type(self): """Gets the type of this HealthMonitor. - 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和gRPC。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为gRPC,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和GRPC。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为GRPC,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :return: The type of this HealthMonitor. :rtype: str @@ -439,7 +439,7 @@ def type(self): def type(self, type): """Sets the type of this HealthMonitor. - 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和gRPC。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为gRPC,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和GRPC。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为GRPC,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :param type: The type of this HealthMonitor. :type type: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/l7_policy.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/l7_policy.py index 1814789ef9..3d5b35c964 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/l7_policy.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/l7_policy.py @@ -69,7 +69,7 @@ def __init__(self, action=None, admin_state_up=None, description=None, id=None, The model defined in huaweicloud sdk - :param action: 参数解释:转发策略的转发动作。 约束限制: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 取值范围: - REDIRECT_TO_POOL:转发到后端云服务器组; - REDIRECT_TO_LISTENER:重定向到监听器; - REDIRECT_TO_URL:重定向到URL; - FIXED_RESPONSE:返回固定响应体。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) + :param action: 参数解释:转发策略的转发动作。 约束限制: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 取值范围: - REDIRECT_TO_POOL:转发到后端服务器组; - REDIRECT_TO_LISTENER:重定向到监听器; - REDIRECT_TO_URL:重定向到URL; - FIXED_RESPONSE:返回固定响应体。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) :type action: str :param admin_state_up: 参数解释:转发策略的管理状态。 约束限制:只支持设置为true。 :type admin_state_up: bool @@ -170,7 +170,7 @@ def __init__(self, action=None, admin_state_up=None, description=None, id=None, def action(self): """Gets the action of this L7Policy. - 参数解释:转发策略的转发动作。 约束限制: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 取值范围: - REDIRECT_TO_POOL:转发到后端云服务器组; - REDIRECT_TO_LISTENER:重定向到监听器; - REDIRECT_TO_URL:重定向到URL; - FIXED_RESPONSE:返回固定响应体。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) + 参数解释:转发策略的转发动作。 约束限制: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 取值范围: - REDIRECT_TO_POOL:转发到后端服务器组; - REDIRECT_TO_LISTENER:重定向到监听器; - REDIRECT_TO_URL:重定向到URL; - FIXED_RESPONSE:返回固定响应体。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) :return: The action of this L7Policy. :rtype: str @@ -181,7 +181,7 @@ def action(self): def action(self, action): """Sets the action of this L7Policy. - 参数解释:转发策略的转发动作。 约束限制: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 取值范围: - REDIRECT_TO_POOL:转发到后端云服务器组; - REDIRECT_TO_LISTENER:重定向到监听器; - REDIRECT_TO_URL:重定向到URL; - FIXED_RESPONSE:返回固定响应体。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) + 参数解释:转发策略的转发动作。 约束限制: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 取值范围: - REDIRECT_TO_POOL:转发到后端服务器组; - REDIRECT_TO_LISTENER:重定向到监听器; - REDIRECT_TO_URL:重定向到URL; - FIXED_RESPONSE:返回固定响应体。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) :param action: The action of this L7Policy. :type action: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_all_members_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_all_members_request.py index 0f361fd109..ec604ad76f 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_all_members_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_all_members_request.py @@ -63,21 +63,21 @@ def __init__(self, marker=None, limit=None, page_reverse=None, name=None, weight :type limit: int :param page_reverse: 是否反向查询。 取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。 :type page_reverse: bool - :param name: 后端云服务器名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 + :param name: 后端服务器名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 :type name: list[str] - :param weight: 后端云服务器的权重,请求按权重在同一后端云服务器组下的后端云服务器间分发。 权重为0的后端不再接受新的请求。 当后端云服务器所在的后端云服务器组的lb_algorithm的取值为SOURCE_IP时,该字段无效。 支持多值查询,查询条件格式:*weight=xxx&weight=xxx*。 + :param weight: 后端服务器的权重,请求按权重在同一后端服务器组下的后端服务器间分发。 权重为0的后端不再接受新的请求。 当后端服务器所在的后端服务器组的lb_algorithm的取值为SOURCE_IP时,该字段无效。 支持多值查询,查询条件格式:*weight=xxx&weight=xxx*。 :type weight: list[int] - :param admin_state_up: 后端云服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。 若存在,该值为true,否则,该值为false。 + :param admin_state_up: 后端服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。 若存在,该值为true,否则,该值为false。 :type admin_state_up: bool - :param subnet_cidr_id: 后端云服务器所在的子网ID。该子网和后端云服务器关联的负载均衡器的子网必须在同一VPC下。只支持指定IPv4的子网ID。 支持多值查询,查询条件格式:***subnet_cidr_id=xxx&subnet_cidr_id=xxx*。 + :param subnet_cidr_id: 后端服务器所在的子网ID。该子网和后端服务器关联的负载均衡器的子网必须在同一VPC下。只支持指定IPv4的子网ID。 支持多值查询,查询条件格式:***subnet_cidr_id=xxx&subnet_cidr_id=xxx*。 :type subnet_cidr_id: list[str] - :param address: 后端云服务器的对应的IP地址,这个IP必须在subnet_cidr_id字段的子网网段中。 例如:192.168.3.11。只能指定为主网卡的IP。 支持多值查询,查询条件格式:*address=xxx&address=xxx*。 + :param address: 后端服务器的对应的IP地址,这个IP必须在subnet_cidr_id字段的子网网段中。 例如:192.168.3.11。 支持多值查询,查询条件格式:*address=xxx&address=xxx*。 :type address: list[str] :param protocol_port: 后端服务器端口号。 支持多值查询,查询条件格式:*protocol_port=xxx&protocol_port=xxx*。 :type protocol_port: list[int] - :param id: 后端云服务器ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 + :param id: 后端服务器ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 :type id: list[str] - :param operating_status: 后端云服务器的健康状态。 取值: - ONLINE,后端服务器正常运行。 - NO_MONITOR,后端服务器无健康检查。 - OFFLINE,已下线。 支持多值查询,查询条件格式:*operating_status=xxx&operating_status=*。 + :param operating_status: 后端服务器的健康状态。 取值: - ONLINE,后端服务器正常运行。 - NO_MONITOR,后端服务器无健康检查。 - OFFLINE,已下线。 支持多值查询,查询条件格式:*operating_status=xxx&operating_status=*。 :type operating_status: list[str] :param enterprise_project_id: 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权; 如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。 支持多值查询,查询条件格式: *enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :type enterprise_project_id: list[str] @@ -209,7 +209,7 @@ def page_reverse(self, page_reverse): def name(self): """Gets the name of this ListAllMembersRequest. - 后端云服务器名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 + 后端服务器名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 :return: The name of this ListAllMembersRequest. :rtype: list[str] @@ -220,7 +220,7 @@ def name(self): def name(self, name): """Sets the name of this ListAllMembersRequest. - 后端云服务器名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 + 后端服务器名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 :param name: The name of this ListAllMembersRequest. :type name: list[str] @@ -231,7 +231,7 @@ def name(self, name): def weight(self): """Gets the weight of this ListAllMembersRequest. - 后端云服务器的权重,请求按权重在同一后端云服务器组下的后端云服务器间分发。 权重为0的后端不再接受新的请求。 当后端云服务器所在的后端云服务器组的lb_algorithm的取值为SOURCE_IP时,该字段无效。 支持多值查询,查询条件格式:*weight=xxx&weight=xxx*。 + 后端服务器的权重,请求按权重在同一后端服务器组下的后端服务器间分发。 权重为0的后端不再接受新的请求。 当后端服务器所在的后端服务器组的lb_algorithm的取值为SOURCE_IP时,该字段无效。 支持多值查询,查询条件格式:*weight=xxx&weight=xxx*。 :return: The weight of this ListAllMembersRequest. :rtype: list[int] @@ -242,7 +242,7 @@ def weight(self): def weight(self, weight): """Sets the weight of this ListAllMembersRequest. - 后端云服务器的权重,请求按权重在同一后端云服务器组下的后端云服务器间分发。 权重为0的后端不再接受新的请求。 当后端云服务器所在的后端云服务器组的lb_algorithm的取值为SOURCE_IP时,该字段无效。 支持多值查询,查询条件格式:*weight=xxx&weight=xxx*。 + 后端服务器的权重,请求按权重在同一后端服务器组下的后端服务器间分发。 权重为0的后端不再接受新的请求。 当后端服务器所在的后端服务器组的lb_algorithm的取值为SOURCE_IP时,该字段无效。 支持多值查询,查询条件格式:*weight=xxx&weight=xxx*。 :param weight: The weight of this ListAllMembersRequest. :type weight: list[int] @@ -253,7 +253,7 @@ def weight(self, weight): def admin_state_up(self): """Gets the admin_state_up of this ListAllMembersRequest. - 后端云服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。 若存在,该值为true,否则,该值为false。 + 后端服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。 若存在,该值为true,否则,该值为false。 :return: The admin_state_up of this ListAllMembersRequest. :rtype: bool @@ -264,7 +264,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this ListAllMembersRequest. - 后端云服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。 若存在,该值为true,否则,该值为false。 + 后端服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。 若存在,该值为true,否则,该值为false。 :param admin_state_up: The admin_state_up of this ListAllMembersRequest. :type admin_state_up: bool @@ -275,7 +275,7 @@ def admin_state_up(self, admin_state_up): def subnet_cidr_id(self): """Gets the subnet_cidr_id of this ListAllMembersRequest. - 后端云服务器所在的子网ID。该子网和后端云服务器关联的负载均衡器的子网必须在同一VPC下。只支持指定IPv4的子网ID。 支持多值查询,查询条件格式:***subnet_cidr_id=xxx&subnet_cidr_id=xxx*。 + 后端服务器所在的子网ID。该子网和后端服务器关联的负载均衡器的子网必须在同一VPC下。只支持指定IPv4的子网ID。 支持多值查询,查询条件格式:***subnet_cidr_id=xxx&subnet_cidr_id=xxx*。 :return: The subnet_cidr_id of this ListAllMembersRequest. :rtype: list[str] @@ -286,7 +286,7 @@ def subnet_cidr_id(self): def subnet_cidr_id(self, subnet_cidr_id): """Sets the subnet_cidr_id of this ListAllMembersRequest. - 后端云服务器所在的子网ID。该子网和后端云服务器关联的负载均衡器的子网必须在同一VPC下。只支持指定IPv4的子网ID。 支持多值查询,查询条件格式:***subnet_cidr_id=xxx&subnet_cidr_id=xxx*。 + 后端服务器所在的子网ID。该子网和后端服务器关联的负载均衡器的子网必须在同一VPC下。只支持指定IPv4的子网ID。 支持多值查询,查询条件格式:***subnet_cidr_id=xxx&subnet_cidr_id=xxx*。 :param subnet_cidr_id: The subnet_cidr_id of this ListAllMembersRequest. :type subnet_cidr_id: list[str] @@ -297,7 +297,7 @@ def subnet_cidr_id(self, subnet_cidr_id): def address(self): """Gets the address of this ListAllMembersRequest. - 后端云服务器的对应的IP地址,这个IP必须在subnet_cidr_id字段的子网网段中。 例如:192.168.3.11。只能指定为主网卡的IP。 支持多值查询,查询条件格式:*address=xxx&address=xxx*。 + 后端服务器的对应的IP地址,这个IP必须在subnet_cidr_id字段的子网网段中。 例如:192.168.3.11。 支持多值查询,查询条件格式:*address=xxx&address=xxx*。 :return: The address of this ListAllMembersRequest. :rtype: list[str] @@ -308,7 +308,7 @@ def address(self): def address(self, address): """Sets the address of this ListAllMembersRequest. - 后端云服务器的对应的IP地址,这个IP必须在subnet_cidr_id字段的子网网段中。 例如:192.168.3.11。只能指定为主网卡的IP。 支持多值查询,查询条件格式:*address=xxx&address=xxx*。 + 后端服务器的对应的IP地址,这个IP必须在subnet_cidr_id字段的子网网段中。 例如:192.168.3.11。 支持多值查询,查询条件格式:*address=xxx&address=xxx*。 :param address: The address of this ListAllMembersRequest. :type address: list[str] @@ -341,7 +341,7 @@ def protocol_port(self, protocol_port): def id(self): """Gets the id of this ListAllMembersRequest. - 后端云服务器ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 + 后端服务器ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 :return: The id of this ListAllMembersRequest. :rtype: list[str] @@ -352,7 +352,7 @@ def id(self): def id(self, id): """Sets the id of this ListAllMembersRequest. - 后端云服务器ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 + 后端服务器ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 :param id: The id of this ListAllMembersRequest. :type id: list[str] @@ -363,7 +363,7 @@ def id(self, id): def operating_status(self): """Gets the operating_status of this ListAllMembersRequest. - 后端云服务器的健康状态。 取值: - ONLINE,后端服务器正常运行。 - NO_MONITOR,后端服务器无健康检查。 - OFFLINE,已下线。 支持多值查询,查询条件格式:*operating_status=xxx&operating_status=*。 + 后端服务器的健康状态。 取值: - ONLINE,后端服务器正常运行。 - NO_MONITOR,后端服务器无健康检查。 - OFFLINE,已下线。 支持多值查询,查询条件格式:*operating_status=xxx&operating_status=*。 :return: The operating_status of this ListAllMembersRequest. :rtype: list[str] @@ -374,7 +374,7 @@ def operating_status(self): def operating_status(self, operating_status): """Sets the operating_status of this ListAllMembersRequest. - 后端云服务器的健康状态。 取值: - ONLINE,后端服务器正常运行。 - NO_MONITOR,后端服务器无健康检查。 - OFFLINE,已下线。 支持多值查询,查询条件格式:*operating_status=xxx&operating_status=*。 + 后端服务器的健康状态。 取值: - ONLINE,后端服务器正常运行。 - NO_MONITOR,后端服务器无健康检查。 - OFFLINE,已下线。 支持多值查询,查询条件格式:*operating_status=xxx&operating_status=*。 :param operating_status: The operating_status of this ListAllMembersRequest. :type operating_status: list[str] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_availability_zones_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_availability_zones_request.py index 60dfb2412c..29b7fcde9a 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_availability_zones_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_availability_zones_request.py @@ -29,7 +29,7 @@ def __init__(self, public_border_group=None): The model defined in huaweicloud sdk - :param public_border_group: 参数解释:AZ组。 + :param public_border_group: 参数解释:可用区组。 :type public_border_group: str """ @@ -45,7 +45,7 @@ def __init__(self, public_border_group=None): def public_border_group(self): """Gets the public_border_group of this ListAvailabilityZonesRequest. - 参数解释:AZ组。 + 参数解释:可用区组。 :return: The public_border_group of this ListAvailabilityZonesRequest. :rtype: str @@ -56,7 +56,7 @@ def public_border_group(self): def public_border_group(self, public_border_group): """Sets the public_border_group of this ListAvailabilityZonesRequest. - 参数解释:AZ组。 + 参数解释:可用区组。 :param public_border_group: The public_border_group of this ListAvailabilityZonesRequest. :type public_border_group: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_availability_zones_response.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_availability_zones_response.py index 31ab219aff..9a64da60e2 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_availability_zones_response.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_availability_zones_response.py @@ -38,7 +38,7 @@ def __init__(self, request_id=None, availability_zones=None, spec_code=None): :type request_id: str :param availability_zones: 参数解释:返回创建LB时可使用的可用区集合列表。如:[[az1,az2],[az2,az3]] ,则在创建LB时,只能从其中的一个子列表中选择一个或多个可用区,不能跨列表选择。在上述例子中,不能选择az1和az3。 :type availability_zones: list[list[AvailabilityZone]] - :param spec_code: 可用区的产品编码,仅边缘场景有效。 + :param spec_code: 参数解释:可用区的产品编码,仅边缘场景有效。 :type spec_code: str """ @@ -104,7 +104,7 @@ def availability_zones(self, availability_zones): def spec_code(self): """Gets the spec_code of this ListAvailabilityZonesResponse. - 可用区的产品编码,仅边缘场景有效。 + 参数解释:可用区的产品编码,仅边缘场景有效。 :return: The spec_code of this ListAvailabilityZonesResponse. :rtype: str @@ -115,7 +115,7 @@ def spec_code(self): def spec_code(self, spec_code): """Sets the spec_code of this ListAvailabilityZonesResponse. - 可用区的产品编码,仅边缘场景有效。 + 参数解释:可用区的产品编码,仅边缘场景有效。 :param spec_code: The spec_code of this ListAvailabilityZonesResponse. :type spec_code: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_flavors_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_flavors_request.py index 0cbda45804..9700f152cb 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_flavors_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_flavors_request.py @@ -41,7 +41,7 @@ def __init__(self, marker=None, limit=None, page_reverse=None, id=None, name=Non The model defined in huaweicloud sdk - :param marker: 参数解释:上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。 + :param marker: 参数解释:上一页最后一条记录的ID。 约束限制: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。 :type marker: str :param limit: 参数解释:每页返回的个数。 取值范围:0-2000 默认取值:2000 :type limit: int @@ -87,7 +87,7 @@ def __init__(self, marker=None, limit=None, page_reverse=None, id=None, name=Non def marker(self): """Gets the marker of this ListFlavorsRequest. - 参数解释:上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。 + 参数解释:上一页最后一条记录的ID。 约束限制: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。 :return: The marker of this ListFlavorsRequest. :rtype: str @@ -98,7 +98,7 @@ def marker(self): def marker(self, marker): """Sets the marker of this ListFlavorsRequest. - 参数解释:上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。 + 参数解释:上一页最后一条记录的ID。 约束限制: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。 :param marker: The marker of this ListFlavorsRequest. :type marker: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_health_monitors_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_health_monitors_request.py index cde934a05c..2abba81b06 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_health_monitors_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_health_monitors_request.py @@ -85,9 +85,9 @@ def __init__(self, marker=None, limit=None, page_reverse=None, id=None, monitor_ :type max_retries_down: list[int] :param timeout: 一次健康检查请求的超时时间。 :type timeout: int - :param type: 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和gRPC。 支持多值查询,查询条件格式:*****type=xxx&type=xxx*****。 + :param type: 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和GRPC。 支持多值查询,查询条件格式:*****type=xxx&type=xxx*****。 :type type: list[str] - :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 支持多值查询,查询条件格式:****expected_codes=xxx&expected_codes=xxx****。 + :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 支持多值查询,查询条件格式:****expected_codes=xxx&expected_codes=xxx****。 :type expected_codes: list[str] :param url_path: 健康检查测试member健康时发送的http请求路径。默认为“/”。 使用说明:以“/”开头。当type为HTTP/HTTPS时生效。 支持多值查询,查询条件格式:***url_path=xxx&url_path=xxx***。 :type url_path: list[str] @@ -421,7 +421,7 @@ def timeout(self, timeout): def type(self): """Gets the type of this ListHealthMonitorsRequest. - 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和gRPC。 支持多值查询,查询条件格式:*****type=xxx&type=xxx*****。 + 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和GRPC。 支持多值查询,查询条件格式:*****type=xxx&type=xxx*****。 :return: The type of this ListHealthMonitorsRequest. :rtype: list[str] @@ -432,7 +432,7 @@ def type(self): def type(self, type): """Sets the type of this ListHealthMonitorsRequest. - 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和gRPC。 支持多值查询,查询条件格式:*****type=xxx&type=xxx*****。 + 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和GRPC。 支持多值查询,查询条件格式:*****type=xxx&type=xxx*****。 :param type: The type of this ListHealthMonitorsRequest. :type type: list[str] @@ -443,7 +443,7 @@ def type(self, type): def expected_codes(self): """Gets the expected_codes of this ListHealthMonitorsRequest. - 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 支持多值查询,查询条件格式:****expected_codes=xxx&expected_codes=xxx****。 + 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 支持多值查询,查询条件格式:****expected_codes=xxx&expected_codes=xxx****。 :return: The expected_codes of this ListHealthMonitorsRequest. :rtype: list[str] @@ -454,7 +454,7 @@ def expected_codes(self): def expected_codes(self, expected_codes): """Sets the expected_codes of this ListHealthMonitorsRequest. - 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 支持多值查询,查询条件格式:****expected_codes=xxx&expected_codes=xxx****。 + 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 支持多值查询,查询条件格式:****expected_codes=xxx&expected_codes=xxx****。 :param expected_codes: The expected_codes of this ListHealthMonitorsRequest. :type expected_codes: list[str] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_l7_policies_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_l7_policies_request.py index 73bc29ecaa..babe81c44d 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_l7_policies_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_l7_policies_request.py @@ -81,7 +81,7 @@ def __init__(self, marker=None, limit=None, page_reverse=None, enterprise_projec :type listener_id: list[str] :param position: 参数解释:转发策略的优先级。 支持多值查询,查询条件格式:****position=xxx&position=xxx****。 不支持该字段,请勿使用。 :type position: list[int] - :param action: 参数解释:转发策略的转发动作。 取值范围: - REDIRECT_TO_POOL:转发到后端云服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 支持多值查询,查询条件格式:*****action=xxx&action=xxx*****。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) + :param action: 参数解释:转发策略的转发动作。 取值范围: - REDIRECT_TO_POOL:转发到后端服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 支持多值查询,查询条件格式:*****action=xxx&action=xxx*****。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) :type action: list[str] :param redirect_url: 参数解释:转发到的url。 支持多值查询,查询条件格式:****redirect_url=xxx&redirect_url=xxx****。 不支持该字段,请勿使用。 :type redirect_url: list[str] @@ -377,7 +377,7 @@ def position(self, position): def action(self): """Gets the action of this ListL7PoliciesRequest. - 参数解释:转发策略的转发动作。 取值范围: - REDIRECT_TO_POOL:转发到后端云服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 支持多值查询,查询条件格式:*****action=xxx&action=xxx*****。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) + 参数解释:转发策略的转发动作。 取值范围: - REDIRECT_TO_POOL:转发到后端服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 支持多值查询,查询条件格式:*****action=xxx&action=xxx*****。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) :return: The action of this ListL7PoliciesRequest. :rtype: list[str] @@ -388,7 +388,7 @@ def action(self): def action(self, action): """Sets the action of this ListL7PoliciesRequest. - 参数解释:转发策略的转发动作。 取值范围: - REDIRECT_TO_POOL:转发到后端云服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 支持多值查询,查询条件格式:*****action=xxx&action=xxx*****。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) + 参数解释:转发策略的转发动作。 取值范围: - REDIRECT_TO_POOL:转发到后端服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 支持多值查询,查询条件格式:*****action=xxx&action=xxx*****。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) :param action: The action of this ListL7PoliciesRequest. :type action: list[str] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_listeners_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_listeners_request.py index 8680acf7ba..53a4e7d3ad 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_listeners_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_listeners_request.py @@ -103,7 +103,7 @@ def __init__(self, limit=None, marker=None, page_reverse=None, protocol_port=Non :type admin_state_up: bool :param connection_limit: ​监听器的最大连接数。 取值:-1表示不限制连接数。 支持多值查询,查询条件格式:*connection_limit=xxx&connection_limit=xxx*。 不支持该字段,请勿使用。 :type connection_limit: list[int] - :param default_pool_id: 监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 支持多值查询,查询条件格式:*default_pool_id=xxx&default_pool_id=xxx*。 + :param default_pool_id: 监听器的默认后端服务器组ID。当请求没有匹配的转发策略时,转发到默认后端服务器上处理。 支持多值查询,查询条件格式:*default_pool_id=xxx&default_pool_id=xxx*。 :type default_pool_id: list[str] :param id: 监听器ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 :type id: list[str] @@ -115,9 +115,9 @@ def __init__(self, limit=None, marker=None, page_reverse=None, protocol_port=Non :type loadbalancer_id: list[str] :param tls_ciphers_policy: 监听器使用的安全策略。 支持多值查询,查询条件格式:*tls_ciphers_policy=xxx&tls_ciphers_policy=xxx*。 :type tls_ciphers_policy: list[str] - :param member_address: 后端云服务器的IP地址。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。 + :param member_address: 后端服务器的IP地址。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。 :type member_address: list[str] - :param member_device_id: 后端云服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。 + :param member_device_id: 后端服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。 :type member_device_id: list[str] :param enterprise_project_id: 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权; 如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。 支持多值查询,查询条件格式:*enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :type enterprise_project_id: list[str] @@ -135,7 +135,7 @@ def __init__(self, limit=None, marker=None, page_reverse=None, protocol_port=Non :type proxy_protocol_enable: bool :param enhance_l7policy_enable: 是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 取值:true开启,false不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :type enhance_l7policy_enable: bool - :param member_instance_id: 后端云服务器ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_instance_id=xxx&member_instance_id=xxx*。 + :param member_instance_id: 后端服务器ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_instance_id=xxx&member_instance_id=xxx*。 :type member_instance_id: list[str] :param protection_status: 修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 :type protection_status: list[str] @@ -454,7 +454,7 @@ def connection_limit(self, connection_limit): def default_pool_id(self): """Gets the default_pool_id of this ListListenersRequest. - 监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 支持多值查询,查询条件格式:*default_pool_id=xxx&default_pool_id=xxx*。 + 监听器的默认后端服务器组ID。当请求没有匹配的转发策略时,转发到默认后端服务器上处理。 支持多值查询,查询条件格式:*default_pool_id=xxx&default_pool_id=xxx*。 :return: The default_pool_id of this ListListenersRequest. :rtype: list[str] @@ -465,7 +465,7 @@ def default_pool_id(self): def default_pool_id(self, default_pool_id): """Sets the default_pool_id of this ListListenersRequest. - 监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 支持多值查询,查询条件格式:*default_pool_id=xxx&default_pool_id=xxx*。 + 监听器的默认后端服务器组ID。当请求没有匹配的转发策略时,转发到默认后端服务器上处理。 支持多值查询,查询条件格式:*default_pool_id=xxx&default_pool_id=xxx*。 :param default_pool_id: The default_pool_id of this ListListenersRequest. :type default_pool_id: list[str] @@ -586,7 +586,7 @@ def tls_ciphers_policy(self, tls_ciphers_policy): def member_address(self): """Gets the member_address of this ListListenersRequest. - 后端云服务器的IP地址。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。 + 后端服务器的IP地址。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。 :return: The member_address of this ListListenersRequest. :rtype: list[str] @@ -597,7 +597,7 @@ def member_address(self): def member_address(self, member_address): """Sets the member_address of this ListListenersRequest. - 后端云服务器的IP地址。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。 + 后端服务器的IP地址。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。 :param member_address: The member_address of this ListListenersRequest. :type member_address: list[str] @@ -608,7 +608,7 @@ def member_address(self, member_address): def member_device_id(self): """Gets the member_device_id of this ListListenersRequest. - 后端云服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。 + 后端服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。 :return: The member_device_id of this ListListenersRequest. :rtype: list[str] @@ -619,7 +619,7 @@ def member_device_id(self): def member_device_id(self, member_device_id): """Sets the member_device_id of this ListListenersRequest. - 后端云服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。 + 后端服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。 :param member_device_id: The member_device_id of this ListListenersRequest. :type member_device_id: list[str] @@ -806,7 +806,7 @@ def enhance_l7policy_enable(self, enhance_l7policy_enable): def member_instance_id(self): """Gets the member_instance_id of this ListListenersRequest. - 后端云服务器ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_instance_id=xxx&member_instance_id=xxx*。 + 后端服务器ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_instance_id=xxx&member_instance_id=xxx*。 :return: The member_instance_id of this ListListenersRequest. :rtype: list[str] @@ -817,7 +817,7 @@ def member_instance_id(self): def member_instance_id(self, member_instance_id): """Sets the member_instance_id of this ListListenersRequest. - 后端云服务器ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_instance_id=xxx&member_instance_id=xxx*。 + 后端服务器ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_instance_id=xxx&member_instance_id=xxx*。 :param member_instance_id: The member_instance_id of this ListListenersRequest. :type member_instance_id: list[str] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_load_balancers_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_load_balancers_request.py index e5a719f8ce..9f6470e13c 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_load_balancers_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_load_balancers_request.py @@ -125,7 +125,7 @@ def __init__(self, marker=None, limit=None, page_reverse=None, id=None, name=Non :type vip_port_id: list[str] :param vip_address: 负载均衡器的IPv4虚拟IP地址。 支持多值查询,查询条件格式:*vip_address=xxx&vip_address=xxx*。 :type vip_address: list[str] - :param vip_subnet_cidr_id: 负载均衡器所在子网的IPv4子网ID,也称为该负载均衡器实例的前端子网。 支持多值查询,查询条件格式:*vip_subnet_cidr_id=xxx&vip_subnet_cidr_id=xxx*。 + :param vip_subnet_cidr_id: 负载均衡器所在子网的IPv4子网ID,也称为该负载均衡器实例的前端子网。 支持多值查询,查询条件格式:*vip_subnet_cidr_id=xxx&vip_subnet_cidr_id=xxx*。 :type vip_subnet_cidr_id: list[str] :param ipv6_vip_port_id: 双栈类型负载均衡器的IPv6对应的port ID。 支持多值查询,查询条件格式:*ipv6_vip_port_id=xxx&ipv6_vip_port_id=xxx*。 [不支持IPv6,请勿使用。](tag:dt,dt_test) :type ipv6_vip_port_id: list[str] @@ -149,9 +149,9 @@ def __init__(self, marker=None, limit=None, page_reverse=None, id=None, name=Non :type l7_scale_flavor_id: list[str] :param billing_info: 资源账单信息。 支持多值查询,查询条件格式:*billing_info=xxx&billing_info=xxx*。 [不支持该字段,请勿使用。](tag:hws_hk,hws_eu,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b,hcso_dt,dt,dt_test,ocb,ctc,cmcc,tm,sbc,g42,hws_ocb,hk_sbc,hk_tm,hk_g42) :type billing_info: list[str] - :param member_device_id: 负载均衡器中的后端云服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。 + :param member_device_id: 负载均衡器中的后端服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。 :type member_device_id: list[str] - :param member_address: 负载均衡器中的后端云服务器对应的弹性云服务器的IP地址。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。 + :param member_address: 负载均衡器中的后端服务器对应的弹性云服务器的IP地址。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。 :type member_address: list[str] :param enterprise_project_id: 负载均衡器所属的企业项目ID。 查询时若不传,则查询default企业项目下的资源,鉴权按照default企业项目鉴权。 如果传值,则必须传已存在的企业项目ID(不可为\"0\")或传all_granted_eps表示查询所有企业项目。 支持多值查询,查询条件格式: *enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :type enterprise_project_id: list[str] @@ -576,7 +576,7 @@ def vip_address(self, vip_address): def vip_subnet_cidr_id(self): """Gets the vip_subnet_cidr_id of this ListLoadBalancersRequest. - 负载均衡器所在子网的IPv4子网ID,也称为该负载均衡器实例的前端子网。 支持多值查询,查询条件格式:*vip_subnet_cidr_id=xxx&vip_subnet_cidr_id=xxx*。 + 负载均衡器所在子网的IPv4子网ID,也称为该负载均衡器实例的前端子网。 支持多值查询,查询条件格式:*vip_subnet_cidr_id=xxx&vip_subnet_cidr_id=xxx*。 :return: The vip_subnet_cidr_id of this ListLoadBalancersRequest. :rtype: list[str] @@ -587,7 +587,7 @@ def vip_subnet_cidr_id(self): def vip_subnet_cidr_id(self, vip_subnet_cidr_id): """Sets the vip_subnet_cidr_id of this ListLoadBalancersRequest. - 负载均衡器所在子网的IPv4子网ID,也称为该负载均衡器实例的前端子网。 支持多值查询,查询条件格式:*vip_subnet_cidr_id=xxx&vip_subnet_cidr_id=xxx*。 + 负载均衡器所在子网的IPv4子网ID,也称为该负载均衡器实例的前端子网。 支持多值查询,查询条件格式:*vip_subnet_cidr_id=xxx&vip_subnet_cidr_id=xxx*。 :param vip_subnet_cidr_id: The vip_subnet_cidr_id of this ListLoadBalancersRequest. :type vip_subnet_cidr_id: list[str] @@ -840,7 +840,7 @@ def billing_info(self, billing_info): def member_device_id(self): """Gets the member_device_id of this ListLoadBalancersRequest. - 负载均衡器中的后端云服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。 + 负载均衡器中的后端服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。 :return: The member_device_id of this ListLoadBalancersRequest. :rtype: list[str] @@ -851,7 +851,7 @@ def member_device_id(self): def member_device_id(self, member_device_id): """Sets the member_device_id of this ListLoadBalancersRequest. - 负载均衡器中的后端云服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。 + 负载均衡器中的后端服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。 :param member_device_id: The member_device_id of this ListLoadBalancersRequest. :type member_device_id: list[str] @@ -862,7 +862,7 @@ def member_device_id(self, member_device_id): def member_address(self): """Gets the member_address of this ListLoadBalancersRequest. - 负载均衡器中的后端云服务器对应的弹性云服务器的IP地址。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。 + 负载均衡器中的后端服务器对应的弹性云服务器的IP地址。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。 :return: The member_address of this ListLoadBalancersRequest. :rtype: list[str] @@ -873,7 +873,7 @@ def member_address(self): def member_address(self, member_address): """Sets the member_address of this ListLoadBalancersRequest. - 负载均衡器中的后端云服务器对应的弹性云服务器的IP地址。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。 + 负载均衡器中的后端服务器对应的弹性云服务器的IP地址。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。 :param member_address: The member_address of this ListLoadBalancersRequest. :type member_address: list[str] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_master_slave_pools_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_master_slave_pools_request.py index a12f9093e3..ec49136a3c 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_master_slave_pools_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_master_slave_pools_request.py @@ -71,33 +71,33 @@ def __init__(self, marker=None, limit=None, page_reverse=None, description=None, :type limit: int :param page_reverse: 是否反向查询。 取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。 :type page_reverse: bool - :param description: 后端云服务器组的描述信息。 支持多值查询,查询条件格式:*description=xxx&description=xxx*。 + :param description: 后端服务器组的描述信息。 支持多值查询,查询条件格式:*description=xxx&description=xxx*。 :type description: list[str] - :param healthmonitor_id: 后端云服务器组关联的健康检查的ID。 支持多值查询,查询条件格式:*healthmonitor_id=xxx&healthmonitor_id=xxx*。 + :param healthmonitor_id: 后端服务器组关联的健康检查的ID。 支持多值查询,查询条件格式:*healthmonitor_id=xxx&healthmonitor_id=xxx*。 :type healthmonitor_id: list[str] - :param id: 后端云服务器组的ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 + :param id: 后端服务器组的ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 :type id: list[str] - :param name: 后端云服务器组的名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 + :param name: 后端服务器组的名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 :type name: list[str] - :param loadbalancer_id: 后端云服务器组绑定的负载均衡器ID。 支持多值查询,查询条件格式:*loadbalancer_id=xxx&loadbalancer_id=xxx*。 + :param loadbalancer_id: 后端服务器组绑定的负载均衡器ID。 支持多值查询,查询条件格式:*loadbalancer_id=xxx&loadbalancer_id=xxx*。 :type loadbalancer_id: list[str] - :param protocol: 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、gRPC、HTTP、HTTPS和QUIC。 [IP类型为网关型LB独有的后端服务器组协议。](tag:hws_eu) 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + :param protocol: 后端服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、GRPC、HTTP、HTTPS和QUIC。 [IP类型为网关型LB独有的后端服务器组协议。](tag:hws_eu) 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :type protocol: list[str] - :param lb_algorithm: 后端云服务器组的负载均衡算法。 取值: 1、ROUND_ROBIN:加权轮询算法。 2、LEAST_CONNECTIONS:加权最少连接算法。 3、SOURCE_IP:源IP算法。 4、QUIC_CID:连接ID算法。 支持多值查询,查询条件格式:*lb_algorithm=xxx&lb_algorithm=xxx*。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + :param lb_algorithm: 后端服务器组的负载均衡算法。 取值: 1、ROUND_ROBIN:加权轮询算法。 2、LEAST_CONNECTIONS:加权最少连接算法。 3、SOURCE_IP:源IP算法。 4、QUIC_CID:连接ID算法。 支持多值查询,查询条件格式:*lb_algorithm=xxx&lb_algorithm=xxx*。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :type lb_algorithm: list[str] :param enterprise_project_id: 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权; 如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。 支持多值查询,查询条件格式: *enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :type enterprise_project_id: list[str] - :param ip_version: 后端云服务器组支持的IP版本。 支持多值查询,查询条件格式:*ip_version=xxx&ip_version=xxx*。 + :param ip_version: 后端服务器组支持的IP版本。 支持多值查询,查询条件格式:*ip_version=xxx&ip_version=xxx*。 :type ip_version: list[str] - :param member_address: 后端云服务器的IP地址。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。 + :param member_address: 后端服务器的IP地址。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。 :type member_address: list[str] - :param member_device_id: 后端云服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。 + :param member_device_id: 后端服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。 :type member_device_id: list[str] :param listener_id: 关联的监听器ID,包括通过l7policy关联的。 支持多值查询,查询条件格式:*listener_id=xxx&listener_id=xxx*。 :type listener_id: list[str] - :param member_instance_id: 后端云服务器ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_instance_id=xxx&member_instance_id=xxx*。 + :param member_instance_id: 后端服务器ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_instance_id=xxx&member_instance_id=xxx*。 :type member_instance_id: list[str] - :param vpc_id: 后端云服务器组关联的虚拟私有云的ID。 + :param vpc_id: 后端服务器组关联的虚拟私有云的ID。 :type vpc_id: list[str] :param type: 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。 - 空字符串(\"\"):允许任意类型的后端 :type type: list[str] @@ -237,7 +237,7 @@ def page_reverse(self, page_reverse): def description(self): """Gets the description of this ListMasterSlavePoolsRequest. - 后端云服务器组的描述信息。 支持多值查询,查询条件格式:*description=xxx&description=xxx*。 + 后端服务器组的描述信息。 支持多值查询,查询条件格式:*description=xxx&description=xxx*。 :return: The description of this ListMasterSlavePoolsRequest. :rtype: list[str] @@ -248,7 +248,7 @@ def description(self): def description(self, description): """Sets the description of this ListMasterSlavePoolsRequest. - 后端云服务器组的描述信息。 支持多值查询,查询条件格式:*description=xxx&description=xxx*。 + 后端服务器组的描述信息。 支持多值查询,查询条件格式:*description=xxx&description=xxx*。 :param description: The description of this ListMasterSlavePoolsRequest. :type description: list[str] @@ -259,7 +259,7 @@ def description(self, description): def healthmonitor_id(self): """Gets the healthmonitor_id of this ListMasterSlavePoolsRequest. - 后端云服务器组关联的健康检查的ID。 支持多值查询,查询条件格式:*healthmonitor_id=xxx&healthmonitor_id=xxx*。 + 后端服务器组关联的健康检查的ID。 支持多值查询,查询条件格式:*healthmonitor_id=xxx&healthmonitor_id=xxx*。 :return: The healthmonitor_id of this ListMasterSlavePoolsRequest. :rtype: list[str] @@ -270,7 +270,7 @@ def healthmonitor_id(self): def healthmonitor_id(self, healthmonitor_id): """Sets the healthmonitor_id of this ListMasterSlavePoolsRequest. - 后端云服务器组关联的健康检查的ID。 支持多值查询,查询条件格式:*healthmonitor_id=xxx&healthmonitor_id=xxx*。 + 后端服务器组关联的健康检查的ID。 支持多值查询,查询条件格式:*healthmonitor_id=xxx&healthmonitor_id=xxx*。 :param healthmonitor_id: The healthmonitor_id of this ListMasterSlavePoolsRequest. :type healthmonitor_id: list[str] @@ -281,7 +281,7 @@ def healthmonitor_id(self, healthmonitor_id): def id(self): """Gets the id of this ListMasterSlavePoolsRequest. - 后端云服务器组的ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 + 后端服务器组的ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 :return: The id of this ListMasterSlavePoolsRequest. :rtype: list[str] @@ -292,7 +292,7 @@ def id(self): def id(self, id): """Sets the id of this ListMasterSlavePoolsRequest. - 后端云服务器组的ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 + 后端服务器组的ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 :param id: The id of this ListMasterSlavePoolsRequest. :type id: list[str] @@ -303,7 +303,7 @@ def id(self, id): def name(self): """Gets the name of this ListMasterSlavePoolsRequest. - 后端云服务器组的名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 + 后端服务器组的名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 :return: The name of this ListMasterSlavePoolsRequest. :rtype: list[str] @@ -314,7 +314,7 @@ def name(self): def name(self, name): """Sets the name of this ListMasterSlavePoolsRequest. - 后端云服务器组的名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 + 后端服务器组的名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 :param name: The name of this ListMasterSlavePoolsRequest. :type name: list[str] @@ -325,7 +325,7 @@ def name(self, name): def loadbalancer_id(self): """Gets the loadbalancer_id of this ListMasterSlavePoolsRequest. - 后端云服务器组绑定的负载均衡器ID。 支持多值查询,查询条件格式:*loadbalancer_id=xxx&loadbalancer_id=xxx*。 + 后端服务器组绑定的负载均衡器ID。 支持多值查询,查询条件格式:*loadbalancer_id=xxx&loadbalancer_id=xxx*。 :return: The loadbalancer_id of this ListMasterSlavePoolsRequest. :rtype: list[str] @@ -336,7 +336,7 @@ def loadbalancer_id(self): def loadbalancer_id(self, loadbalancer_id): """Sets the loadbalancer_id of this ListMasterSlavePoolsRequest. - 后端云服务器组绑定的负载均衡器ID。 支持多值查询,查询条件格式:*loadbalancer_id=xxx&loadbalancer_id=xxx*。 + 后端服务器组绑定的负载均衡器ID。 支持多值查询,查询条件格式:*loadbalancer_id=xxx&loadbalancer_id=xxx*。 :param loadbalancer_id: The loadbalancer_id of this ListMasterSlavePoolsRequest. :type loadbalancer_id: list[str] @@ -347,7 +347,7 @@ def loadbalancer_id(self, loadbalancer_id): def protocol(self): """Gets the protocol of this ListMasterSlavePoolsRequest. - 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、gRPC、HTTP、HTTPS和QUIC。 [IP类型为网关型LB独有的后端服务器组协议。](tag:hws_eu) 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 后端服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、GRPC、HTTP、HTTPS和QUIC。 [IP类型为网关型LB独有的后端服务器组协议。](tag:hws_eu) 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :return: The protocol of this ListMasterSlavePoolsRequest. :rtype: list[str] @@ -358,7 +358,7 @@ def protocol(self): def protocol(self, protocol): """Sets the protocol of this ListMasterSlavePoolsRequest. - 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、gRPC、HTTP、HTTPS和QUIC。 [IP类型为网关型LB独有的后端服务器组协议。](tag:hws_eu) 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 后端服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、GRPC、HTTP、HTTPS和QUIC。 [IP类型为网关型LB独有的后端服务器组协议。](tag:hws_eu) 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :param protocol: The protocol of this ListMasterSlavePoolsRequest. :type protocol: list[str] @@ -369,7 +369,7 @@ def protocol(self, protocol): def lb_algorithm(self): """Gets the lb_algorithm of this ListMasterSlavePoolsRequest. - 后端云服务器组的负载均衡算法。 取值: 1、ROUND_ROBIN:加权轮询算法。 2、LEAST_CONNECTIONS:加权最少连接算法。 3、SOURCE_IP:源IP算法。 4、QUIC_CID:连接ID算法。 支持多值查询,查询条件格式:*lb_algorithm=xxx&lb_algorithm=xxx*。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + 后端服务器组的负载均衡算法。 取值: 1、ROUND_ROBIN:加权轮询算法。 2、LEAST_CONNECTIONS:加权最少连接算法。 3、SOURCE_IP:源IP算法。 4、QUIC_CID:连接ID算法。 支持多值查询,查询条件格式:*lb_algorithm=xxx&lb_algorithm=xxx*。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :return: The lb_algorithm of this ListMasterSlavePoolsRequest. :rtype: list[str] @@ -380,7 +380,7 @@ def lb_algorithm(self): def lb_algorithm(self, lb_algorithm): """Sets the lb_algorithm of this ListMasterSlavePoolsRequest. - 后端云服务器组的负载均衡算法。 取值: 1、ROUND_ROBIN:加权轮询算法。 2、LEAST_CONNECTIONS:加权最少连接算法。 3、SOURCE_IP:源IP算法。 4、QUIC_CID:连接ID算法。 支持多值查询,查询条件格式:*lb_algorithm=xxx&lb_algorithm=xxx*。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + 后端服务器组的负载均衡算法。 取值: 1、ROUND_ROBIN:加权轮询算法。 2、LEAST_CONNECTIONS:加权最少连接算法。 3、SOURCE_IP:源IP算法。 4、QUIC_CID:连接ID算法。 支持多值查询,查询条件格式:*lb_algorithm=xxx&lb_algorithm=xxx*。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :param lb_algorithm: The lb_algorithm of this ListMasterSlavePoolsRequest. :type lb_algorithm: list[str] @@ -413,7 +413,7 @@ def enterprise_project_id(self, enterprise_project_id): def ip_version(self): """Gets the ip_version of this ListMasterSlavePoolsRequest. - 后端云服务器组支持的IP版本。 支持多值查询,查询条件格式:*ip_version=xxx&ip_version=xxx*。 + 后端服务器组支持的IP版本。 支持多值查询,查询条件格式:*ip_version=xxx&ip_version=xxx*。 :return: The ip_version of this ListMasterSlavePoolsRequest. :rtype: list[str] @@ -424,7 +424,7 @@ def ip_version(self): def ip_version(self, ip_version): """Sets the ip_version of this ListMasterSlavePoolsRequest. - 后端云服务器组支持的IP版本。 支持多值查询,查询条件格式:*ip_version=xxx&ip_version=xxx*。 + 后端服务器组支持的IP版本。 支持多值查询,查询条件格式:*ip_version=xxx&ip_version=xxx*。 :param ip_version: The ip_version of this ListMasterSlavePoolsRequest. :type ip_version: list[str] @@ -435,7 +435,7 @@ def ip_version(self, ip_version): def member_address(self): """Gets the member_address of this ListMasterSlavePoolsRequest. - 后端云服务器的IP地址。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。 + 后端服务器的IP地址。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。 :return: The member_address of this ListMasterSlavePoolsRequest. :rtype: list[str] @@ -446,7 +446,7 @@ def member_address(self): def member_address(self, member_address): """Sets the member_address of this ListMasterSlavePoolsRequest. - 后端云服务器的IP地址。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。 + 后端服务器的IP地址。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。 :param member_address: The member_address of this ListMasterSlavePoolsRequest. :type member_address: list[str] @@ -457,7 +457,7 @@ def member_address(self, member_address): def member_device_id(self): """Gets the member_device_id of this ListMasterSlavePoolsRequest. - 后端云服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。 + 后端服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。 :return: The member_device_id of this ListMasterSlavePoolsRequest. :rtype: list[str] @@ -468,7 +468,7 @@ def member_device_id(self): def member_device_id(self, member_device_id): """Sets the member_device_id of this ListMasterSlavePoolsRequest. - 后端云服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。 + 后端服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。 :param member_device_id: The member_device_id of this ListMasterSlavePoolsRequest. :type member_device_id: list[str] @@ -501,7 +501,7 @@ def listener_id(self, listener_id): def member_instance_id(self): """Gets the member_instance_id of this ListMasterSlavePoolsRequest. - 后端云服务器ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_instance_id=xxx&member_instance_id=xxx*。 + 后端服务器ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_instance_id=xxx&member_instance_id=xxx*。 :return: The member_instance_id of this ListMasterSlavePoolsRequest. :rtype: list[str] @@ -512,7 +512,7 @@ def member_instance_id(self): def member_instance_id(self, member_instance_id): """Sets the member_instance_id of this ListMasterSlavePoolsRequest. - 后端云服务器ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_instance_id=xxx&member_instance_id=xxx*。 + 后端服务器ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_instance_id=xxx&member_instance_id=xxx*。 :param member_instance_id: The member_instance_id of this ListMasterSlavePoolsRequest. :type member_instance_id: list[str] @@ -523,7 +523,7 @@ def member_instance_id(self, member_instance_id): def vpc_id(self): """Gets the vpc_id of this ListMasterSlavePoolsRequest. - 后端云服务器组关联的虚拟私有云的ID。 + 后端服务器组关联的虚拟私有云的ID。 :return: The vpc_id of this ListMasterSlavePoolsRequest. :rtype: list[str] @@ -534,7 +534,7 @@ def vpc_id(self): def vpc_id(self, vpc_id): """Sets the vpc_id of this ListMasterSlavePoolsRequest. - 后端云服务器组关联的虚拟私有云的ID。 + 后端服务器组关联的虚拟私有云的ID。 :param vpc_id: The vpc_id of this ListMasterSlavePoolsRequest. :type vpc_id: list[str] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_members_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_members_request.py index 81ece57d5b..414867f364 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_members_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_members_request.py @@ -67,27 +67,27 @@ def __init__(self, pool_id=None, marker=None, limit=None, page_reverse=None, nam :type limit: int :param page_reverse: 是否反向查询。 取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。 :type page_reverse: bool - :param name: 后端云服务器名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 + :param name: 后端服务器名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 :type name: list[str] - :param weight: 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100。 支持多值查询,查询条件格式:*weight=xxx&weight=xxx*。 + :param weight: 后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100。 支持多值查询,查询条件格式:*weight=xxx&weight=xxx*。 :type weight: list[int] - :param admin_state_up: 后端云服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + :param admin_state_up: 后端服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :type admin_state_up: bool - :param subnet_cidr_id: 后端云服务器所在子网的IPv4子网ID或IPv6子网ID。 支持多值查询,查询条件格式:***subnet_cidr_id=xxx&subnet_cidr_id=xxx*。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + :param subnet_cidr_id: 后端服务器所在子网的IPv4子网ID或IPv6子网ID。 支持多值查询,查询条件格式:***subnet_cidr_id=xxx&subnet_cidr_id=xxx*。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :type subnet_cidr_id: list[str] :param address: 后端服务器对应的IPv4或IPv6地址。 支持多值查询,查询条件格式:*address=xxx&address=xxx*。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :type address: list[str] :param protocol_port: 后端服务器业务端口号。 支持多值查询,查询条件格式:*protocol_port=xxx&protocol_port=xxx*。 :type protocol_port: list[int] - :param id: 后端云服务器ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 + :param id: 后端服务器ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 :type id: list[str] - :param operating_status: 后端云服务器的健康状态。 取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 支持多值查询,查询条件格式:*operating_status=xxx&operating_status=xxx*。 + :param operating_status: 后端服务器的健康状态。 取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。 支持多值查询,查询条件格式:*operating_status=xxx&operating_status=xxx*。 :type operating_status: list[str] :param enterprise_project_id: 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权; 如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。 支持多值查询,查询条件格式:*enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :type enterprise_project_id: list[str] :param ip_version: 当前后端服务器的IP地址版本。取值:v4、v6。 :type ip_version: list[str] - :param member_type: 后端云服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 支持多值查询,查询条件格式:*member_type=xxx&member_type=xxx*。 + :param member_type: 后端服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 支持多值查询,查询条件格式:*member_type=xxx&member_type=xxx*。 :type member_type: list[str] :param instance_id: member关联的ECS实例ID,空表示跨VPC场景的member。 支持多值查询,查询条件格式:*instance_id=xxx&instance_id=xxx*。 :type instance_id: list[str] @@ -237,7 +237,7 @@ def page_reverse(self, page_reverse): def name(self): """Gets the name of this ListMembersRequest. - 后端云服务器名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 + 后端服务器名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 :return: The name of this ListMembersRequest. :rtype: list[str] @@ -248,7 +248,7 @@ def name(self): def name(self, name): """Sets the name of this ListMembersRequest. - 后端云服务器名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 + 后端服务器名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 :param name: The name of this ListMembersRequest. :type name: list[str] @@ -259,7 +259,7 @@ def name(self, name): def weight(self): """Gets the weight of this ListMembersRequest. - 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100。 支持多值查询,查询条件格式:*weight=xxx&weight=xxx*。 + 后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100。 支持多值查询,查询条件格式:*weight=xxx&weight=xxx*。 :return: The weight of this ListMembersRequest. :rtype: list[int] @@ -270,7 +270,7 @@ def weight(self): def weight(self, weight): """Sets the weight of this ListMembersRequest. - 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100。 支持多值查询,查询条件格式:*weight=xxx&weight=xxx*。 + 后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100。 支持多值查询,查询条件格式:*weight=xxx&weight=xxx*。 :param weight: The weight of this ListMembersRequest. :type weight: list[int] @@ -281,7 +281,7 @@ def weight(self, weight): def admin_state_up(self): """Gets the admin_state_up of this ListMembersRequest. - 后端云服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + 后端服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :return: The admin_state_up of this ListMembersRequest. :rtype: bool @@ -292,7 +292,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this ListMembersRequest. - 后端云服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + 后端服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :param admin_state_up: The admin_state_up of this ListMembersRequest. :type admin_state_up: bool @@ -303,7 +303,7 @@ def admin_state_up(self, admin_state_up): def subnet_cidr_id(self): """Gets the subnet_cidr_id of this ListMembersRequest. - 后端云服务器所在子网的IPv4子网ID或IPv6子网ID。 支持多值查询,查询条件格式:***subnet_cidr_id=xxx&subnet_cidr_id=xxx*。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + 后端服务器所在子网的IPv4子网ID或IPv6子网ID。 支持多值查询,查询条件格式:***subnet_cidr_id=xxx&subnet_cidr_id=xxx*。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :return: The subnet_cidr_id of this ListMembersRequest. :rtype: list[str] @@ -314,7 +314,7 @@ def subnet_cidr_id(self): def subnet_cidr_id(self, subnet_cidr_id): """Sets the subnet_cidr_id of this ListMembersRequest. - 后端云服务器所在子网的IPv4子网ID或IPv6子网ID。 支持多值查询,查询条件格式:***subnet_cidr_id=xxx&subnet_cidr_id=xxx*。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + 后端服务器所在子网的IPv4子网ID或IPv6子网ID。 支持多值查询,查询条件格式:***subnet_cidr_id=xxx&subnet_cidr_id=xxx*。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :param subnet_cidr_id: The subnet_cidr_id of this ListMembersRequest. :type subnet_cidr_id: list[str] @@ -369,7 +369,7 @@ def protocol_port(self, protocol_port): def id(self): """Gets the id of this ListMembersRequest. - 后端云服务器ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 + 后端服务器ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 :return: The id of this ListMembersRequest. :rtype: list[str] @@ -380,7 +380,7 @@ def id(self): def id(self, id): """Sets the id of this ListMembersRequest. - 后端云服务器ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 + 后端服务器ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 :param id: The id of this ListMembersRequest. :type id: list[str] @@ -391,7 +391,7 @@ def id(self, id): def operating_status(self): """Gets the operating_status of this ListMembersRequest. - 后端云服务器的健康状态。 取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 支持多值查询,查询条件格式:*operating_status=xxx&operating_status=xxx*。 + 后端服务器的健康状态。 取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。 支持多值查询,查询条件格式:*operating_status=xxx&operating_status=xxx*。 :return: The operating_status of this ListMembersRequest. :rtype: list[str] @@ -402,7 +402,7 @@ def operating_status(self): def operating_status(self, operating_status): """Sets the operating_status of this ListMembersRequest. - 后端云服务器的健康状态。 取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 支持多值查询,查询条件格式:*operating_status=xxx&operating_status=xxx*。 + 后端服务器的健康状态。 取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。 支持多值查询,查询条件格式:*operating_status=xxx&operating_status=xxx*。 :param operating_status: The operating_status of this ListMembersRequest. :type operating_status: list[str] @@ -457,7 +457,7 @@ def ip_version(self, ip_version): def member_type(self): """Gets the member_type of this ListMembersRequest. - 后端云服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 支持多值查询,查询条件格式:*member_type=xxx&member_type=xxx*。 + 后端服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 支持多值查询,查询条件格式:*member_type=xxx&member_type=xxx*。 :return: The member_type of this ListMembersRequest. :rtype: list[str] @@ -468,7 +468,7 @@ def member_type(self): def member_type(self, member_type): """Sets the member_type of this ListMembersRequest. - 后端云服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 支持多值查询,查询条件格式:*member_type=xxx&member_type=xxx*。 + 后端服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 支持多值查询,查询条件格式:*member_type=xxx&member_type=xxx*。 :param member_type: The member_type of this ListMembersRequest. :type member_type: list[str] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_pools_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_pools_request.py index 78856f0e6e..2e005e102c 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_pools_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_pools_request.py @@ -83,37 +83,37 @@ def __init__(self, marker=None, limit=None, page_reverse=None, description=None, :type limit: int :param page_reverse: 是否反向查询。 取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。 :type page_reverse: bool - :param description: 后端云服务器组的描述信息。 支持多值查询,查询条件格式:*description=xxx&description=xxx*。 + :param description: 后端服务器组的描述信息。 支持多值查询,查询条件格式:*description=xxx&description=xxx*。 :type description: list[str] - :param admin_state_up: 后端云服务器组的管理状态。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + :param admin_state_up: 后端服务器组的管理状态。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :type admin_state_up: bool - :param healthmonitor_id: 后端云服务器组关联的健康检查的ID。 支持多值查询,查询条件格式:*healthmonitor_id=xxx&healthmonitor_id=xxx*。 + :param healthmonitor_id: 后端服务器组关联的健康检查的ID。 支持多值查询,查询条件格式:*healthmonitor_id=xxx&healthmonitor_id=xxx*。 :type healthmonitor_id: list[str] - :param id: 后端云服务器组的ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 + :param id: 后端服务器组的ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 :type id: list[str] - :param name: 后端云服务器组的名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 + :param name: 后端服务器组的名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 :type name: list[str] - :param loadbalancer_id: 后端云服务器组绑定的负载均衡器ID。 支持多值查询,查询条件格式:*loadbalancer_id=xxx&loadbalancer_id=xxx*。 + :param loadbalancer_id: 后端服务器组绑定的负载均衡器ID。 支持多值查询,查询条件格式:*loadbalancer_id=xxx&loadbalancer_id=xxx*。 :type loadbalancer_id: list[str] - :param protocol: 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、HTTP、HTTPS、QUIC和gRPC。 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC协议。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + :param protocol: 后端服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、HTTP、HTTPS、QUIC和GRPC。 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC协议。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :type protocol: list[str] - :param lb_algorithm: 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 4_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。](tag:hws_eu) 支持多值查询,查询条件格式:*lb_algorithm=xxx&lb_algorithm=xxx*。 [不支持QUIC_CID。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + :param lb_algorithm: 后端服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) 支持多值查询,查询条件格式:*lb_algorithm=xxx&lb_algorithm=xxx*。 [不支持QUIC_CID。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :type lb_algorithm: list[str] :param enterprise_project_id: 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权; 如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。 支持多值查询,查询条件格式:*enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :type enterprise_project_id: list[str] - :param ip_version: 后端云服务器组支持的IP版本。 支持多值查询,查询条件格式:*ip_version=xxx&ip_version=xxx*。 + :param ip_version: 后端服务器组支持的IP版本。 支持多值查询,查询条件格式:*ip_version=xxx&ip_version=xxx*。 :type ip_version: list[str] - :param member_address: 后端云服务器的IP地址。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。 + :param member_address: 后端服务器的IP地址。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。 :type member_address: list[str] - :param member_device_id: 后端云服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。 + :param member_device_id: 后端服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。 :type member_device_id: list[str] :param member_deletion_protection_enable: 是否开启删除保护,false不开启,true开启,不传查询全部。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :type member_deletion_protection_enable: bool :param listener_id: 关联的监听器ID,包括通过l7policy关联的。 支持多值查询,查询条件格式:*listener_id=xxx&listener_id=xxx*。 :type listener_id: list[str] - :param member_instance_id: 后端云服务器ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_instance_id=xxx&member_instance_id=xxx*。 + :param member_instance_id: 后端服务器ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_instance_id=xxx&member_instance_id=xxx*。 :type member_instance_id: list[str] - :param vpc_id: 后端云服务器组关联的虚拟私有云的ID。 + :param vpc_id: 后端服务器组关联的虚拟私有云的ID。 :type vpc_id: list[str] :param type: 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。 - 空字符串(\"\"):允许任意类型的后端 :type type: list[str] @@ -279,7 +279,7 @@ def page_reverse(self, page_reverse): def description(self): """Gets the description of this ListPoolsRequest. - 后端云服务器组的描述信息。 支持多值查询,查询条件格式:*description=xxx&description=xxx*。 + 后端服务器组的描述信息。 支持多值查询,查询条件格式:*description=xxx&description=xxx*。 :return: The description of this ListPoolsRequest. :rtype: list[str] @@ -290,7 +290,7 @@ def description(self): def description(self, description): """Sets the description of this ListPoolsRequest. - 后端云服务器组的描述信息。 支持多值查询,查询条件格式:*description=xxx&description=xxx*。 + 后端服务器组的描述信息。 支持多值查询,查询条件格式:*description=xxx&description=xxx*。 :param description: The description of this ListPoolsRequest. :type description: list[str] @@ -301,7 +301,7 @@ def description(self, description): def admin_state_up(self): """Gets the admin_state_up of this ListPoolsRequest. - 后端云服务器组的管理状态。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + 后端服务器组的管理状态。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :return: The admin_state_up of this ListPoolsRequest. :rtype: bool @@ -312,7 +312,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this ListPoolsRequest. - 后端云服务器组的管理状态。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + 后端服务器组的管理状态。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :param admin_state_up: The admin_state_up of this ListPoolsRequest. :type admin_state_up: bool @@ -323,7 +323,7 @@ def admin_state_up(self, admin_state_up): def healthmonitor_id(self): """Gets the healthmonitor_id of this ListPoolsRequest. - 后端云服务器组关联的健康检查的ID。 支持多值查询,查询条件格式:*healthmonitor_id=xxx&healthmonitor_id=xxx*。 + 后端服务器组关联的健康检查的ID。 支持多值查询,查询条件格式:*healthmonitor_id=xxx&healthmonitor_id=xxx*。 :return: The healthmonitor_id of this ListPoolsRequest. :rtype: list[str] @@ -334,7 +334,7 @@ def healthmonitor_id(self): def healthmonitor_id(self, healthmonitor_id): """Sets the healthmonitor_id of this ListPoolsRequest. - 后端云服务器组关联的健康检查的ID。 支持多值查询,查询条件格式:*healthmonitor_id=xxx&healthmonitor_id=xxx*。 + 后端服务器组关联的健康检查的ID。 支持多值查询,查询条件格式:*healthmonitor_id=xxx&healthmonitor_id=xxx*。 :param healthmonitor_id: The healthmonitor_id of this ListPoolsRequest. :type healthmonitor_id: list[str] @@ -345,7 +345,7 @@ def healthmonitor_id(self, healthmonitor_id): def id(self): """Gets the id of this ListPoolsRequest. - 后端云服务器组的ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 + 后端服务器组的ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 :return: The id of this ListPoolsRequest. :rtype: list[str] @@ -356,7 +356,7 @@ def id(self): def id(self, id): """Sets the id of this ListPoolsRequest. - 后端云服务器组的ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 + 后端服务器组的ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 :param id: The id of this ListPoolsRequest. :type id: list[str] @@ -367,7 +367,7 @@ def id(self, id): def name(self): """Gets the name of this ListPoolsRequest. - 后端云服务器组的名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 + 后端服务器组的名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 :return: The name of this ListPoolsRequest. :rtype: list[str] @@ -378,7 +378,7 @@ def name(self): def name(self, name): """Sets the name of this ListPoolsRequest. - 后端云服务器组的名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 + 后端服务器组的名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 :param name: The name of this ListPoolsRequest. :type name: list[str] @@ -389,7 +389,7 @@ def name(self, name): def loadbalancer_id(self): """Gets the loadbalancer_id of this ListPoolsRequest. - 后端云服务器组绑定的负载均衡器ID。 支持多值查询,查询条件格式:*loadbalancer_id=xxx&loadbalancer_id=xxx*。 + 后端服务器组绑定的负载均衡器ID。 支持多值查询,查询条件格式:*loadbalancer_id=xxx&loadbalancer_id=xxx*。 :return: The loadbalancer_id of this ListPoolsRequest. :rtype: list[str] @@ -400,7 +400,7 @@ def loadbalancer_id(self): def loadbalancer_id(self, loadbalancer_id): """Sets the loadbalancer_id of this ListPoolsRequest. - 后端云服务器组绑定的负载均衡器ID。 支持多值查询,查询条件格式:*loadbalancer_id=xxx&loadbalancer_id=xxx*。 + 后端服务器组绑定的负载均衡器ID。 支持多值查询,查询条件格式:*loadbalancer_id=xxx&loadbalancer_id=xxx*。 :param loadbalancer_id: The loadbalancer_id of this ListPoolsRequest. :type loadbalancer_id: list[str] @@ -411,7 +411,7 @@ def loadbalancer_id(self, loadbalancer_id): def protocol(self): """Gets the protocol of this ListPoolsRequest. - 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、HTTP、HTTPS、QUIC和gRPC。 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC协议。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 后端服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、HTTP、HTTPS、QUIC和GRPC。 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC协议。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :return: The protocol of this ListPoolsRequest. :rtype: list[str] @@ -422,7 +422,7 @@ def protocol(self): def protocol(self, protocol): """Sets the protocol of this ListPoolsRequest. - 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、HTTP、HTTPS、QUIC和gRPC。 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC协议。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 后端服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、HTTP、HTTPS、QUIC和GRPC。 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC协议。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :param protocol: The protocol of this ListPoolsRequest. :type protocol: list[str] @@ -433,7 +433,7 @@ def protocol(self, protocol): def lb_algorithm(self): """Gets the lb_algorithm of this ListPoolsRequest. - 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 4_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。](tag:hws_eu) 支持多值查询,查询条件格式:*lb_algorithm=xxx&lb_algorithm=xxx*。 [不支持QUIC_CID。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + 后端服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) 支持多值查询,查询条件格式:*lb_algorithm=xxx&lb_algorithm=xxx*。 [不支持QUIC_CID。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :return: The lb_algorithm of this ListPoolsRequest. :rtype: list[str] @@ -444,7 +444,7 @@ def lb_algorithm(self): def lb_algorithm(self, lb_algorithm): """Sets the lb_algorithm of this ListPoolsRequest. - 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 4_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。](tag:hws_eu) 支持多值查询,查询条件格式:*lb_algorithm=xxx&lb_algorithm=xxx*。 [不支持QUIC_CID。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + 后端服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) 支持多值查询,查询条件格式:*lb_algorithm=xxx&lb_algorithm=xxx*。 [不支持QUIC_CID。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :param lb_algorithm: The lb_algorithm of this ListPoolsRequest. :type lb_algorithm: list[str] @@ -477,7 +477,7 @@ def enterprise_project_id(self, enterprise_project_id): def ip_version(self): """Gets the ip_version of this ListPoolsRequest. - 后端云服务器组支持的IP版本。 支持多值查询,查询条件格式:*ip_version=xxx&ip_version=xxx*。 + 后端服务器组支持的IP版本。 支持多值查询,查询条件格式:*ip_version=xxx&ip_version=xxx*。 :return: The ip_version of this ListPoolsRequest. :rtype: list[str] @@ -488,7 +488,7 @@ def ip_version(self): def ip_version(self, ip_version): """Sets the ip_version of this ListPoolsRequest. - 后端云服务器组支持的IP版本。 支持多值查询,查询条件格式:*ip_version=xxx&ip_version=xxx*。 + 后端服务器组支持的IP版本。 支持多值查询,查询条件格式:*ip_version=xxx&ip_version=xxx*。 :param ip_version: The ip_version of this ListPoolsRequest. :type ip_version: list[str] @@ -499,7 +499,7 @@ def ip_version(self, ip_version): def member_address(self): """Gets the member_address of this ListPoolsRequest. - 后端云服务器的IP地址。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。 + 后端服务器的IP地址。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。 :return: The member_address of this ListPoolsRequest. :rtype: list[str] @@ -510,7 +510,7 @@ def member_address(self): def member_address(self, member_address): """Sets the member_address of this ListPoolsRequest. - 后端云服务器的IP地址。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。 + 后端服务器的IP地址。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。 :param member_address: The member_address of this ListPoolsRequest. :type member_address: list[str] @@ -521,7 +521,7 @@ def member_address(self, member_address): def member_device_id(self): """Gets the member_device_id of this ListPoolsRequest. - 后端云服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。 + 后端服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。 :return: The member_device_id of this ListPoolsRequest. :rtype: list[str] @@ -532,7 +532,7 @@ def member_device_id(self): def member_device_id(self, member_device_id): """Sets the member_device_id of this ListPoolsRequest. - 后端云服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。 + 后端服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。 :param member_device_id: The member_device_id of this ListPoolsRequest. :type member_device_id: list[str] @@ -587,7 +587,7 @@ def listener_id(self, listener_id): def member_instance_id(self): """Gets the member_instance_id of this ListPoolsRequest. - 后端云服务器ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_instance_id=xxx&member_instance_id=xxx*。 + 后端服务器ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_instance_id=xxx&member_instance_id=xxx*。 :return: The member_instance_id of this ListPoolsRequest. :rtype: list[str] @@ -598,7 +598,7 @@ def member_instance_id(self): def member_instance_id(self, member_instance_id): """Sets the member_instance_id of this ListPoolsRequest. - 后端云服务器ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_instance_id=xxx&member_instance_id=xxx*。 + 后端服务器ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_instance_id=xxx&member_instance_id=xxx*。 :param member_instance_id: The member_instance_id of this ListPoolsRequest. :type member_instance_id: list[str] @@ -609,7 +609,7 @@ def member_instance_id(self, member_instance_id): def vpc_id(self): """Gets the vpc_id of this ListPoolsRequest. - 后端云服务器组关联的虚拟私有云的ID。 + 后端服务器组关联的虚拟私有云的ID。 :return: The vpc_id of this ListPoolsRequest. :rtype: list[str] @@ -620,7 +620,7 @@ def vpc_id(self): def vpc_id(self, vpc_id): """Sets the vpc_id of this ListPoolsRequest. - 后端云服务器组关联的虚拟私有云的ID。 + 后端服务器组关联的虚拟私有云的ID。 :param vpc_id: The vpc_id of this ListPoolsRequest. :type vpc_id: list[str] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/listener.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/listener.py index ed622a9f94..409089e528 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/listener.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/listener.py @@ -105,7 +105,7 @@ def __init__(self, admin_state_up=None, client_ca_tls_container_ref=None, connec :type connection_limit: int :param created_at: 参数解释:监听器的创建时间。 取值范围: 格式:yyyy-MM-dd'T'HH:mm:ss'Z',如:2021-07-30T12:03:44Z :type created_at: str - :param default_pool_id: 参数解释:监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 + :param default_pool_id: 参数解释:监听器的默认后端服务器组ID。当请求没有匹配的转发策略时,转发到默认后端服务器上处理。 :type default_pool_id: str :param default_tls_container_ref: 参数解释:监听器使用的服务器证书ID。 :type default_tls_container_ref: str @@ -123,7 +123,7 @@ def __init__(self, admin_state_up=None, client_ca_tls_container_ref=None, connec :type name: str :param project_id: 参数解释:监听器所在的项目ID。 :type project_id: str - :param protocol: 参数解释:监听器的监听协议。 [取值范围:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、TLS。 约束限制: - 共享型LB上的HTTPS监听器只支持设置为TERMINATED_HTTPS, 创建时传入HTTPS将会自动转为TERMINATED_HTTPS。 - 独享型LB上的HTTPS监听器只支持设置为HTTPS,创建时传入TERMINATED_HTTPS将会自动转为HTTPS。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [取值:TCP、UDP、HTTP、HTTPS。](tag:hcso_dt) [取值:TCP、UDP、IP、HTTP、HTTPS。IP为网关型LB上的监听器独有的协议。](tag:hws_eu) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + :param protocol: 参数解释:监听器的监听协议。 [取值范围:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、TLS。 约束限制: - 共享型LB上的HTTPS监听器只支持设置为TERMINATED_HTTPS, 创建时传入HTTPS将会自动转为TERMINATED_HTTPS。 - 独享型LB上的HTTPS监听器只支持设置为HTTPS,创建时传入TERMINATED_HTTPS将会自动转为HTTPS。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [取值:TCP、UDP、HTTP、HTTPS。](tag:hcso_dt) [取值:TCP、UDP、IP、HTTP、HTTPS。IP为网关型LB上的监听器独有的协议。](tag:hws_eu) [不支持QUIC。](tag:tm,g42,hk_g42,dt,dt_test) :type protocol: str :param protocol_port: 参数解释:监听器的监听端口。 约束限制: - QUIC监听器端口不能是4789,且不能和UDP监听器端口重复。 - 传0表示开启监听端口范围的能力,此时port_ranges为必填字段。 [-不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :type protocol_port: int @@ -135,7 +135,7 @@ def __init__(self, admin_state_up=None, client_ca_tls_container_ref=None, connec :type tags: list[:class:`huaweicloudsdkelb.v3.Tag`] :param updated_at: 参数解释:监听器的更新时间。 取值范围: 格式:yyyy-MM-dd'T'HH:mm:ss'Z',如:2021-07-30T12:03:44Z :type updated_at: str - :param tls_ciphers_policy: 参数解释:监听器使用的安全策略。 [取值范围:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值范围:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,dt,dt_test) + :param tls_ciphers_policy: 参数解释:监听器使用的安全策略。 [取值范围:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值范围:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) :type tls_ciphers_policy: str :param security_policy_id: 参数解释:自定义安全策略的ID。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,ctc,hcso,g42,tm,cmcc,hk-g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) :type security_policy_id: str @@ -153,7 +153,7 @@ def __init__(self, admin_state_up=None, client_ca_tls_container_ref=None, connec :type transparent_client_ip_enable: bool :param proxy_protocol_enable: 参数解释:是否开启proxy_protocol。仅TLS监听器可指定,其他协议的监听器该字段不生效,proxy_protocol不开启。 :type proxy_protocol_enable: bool - :param enhance_l7policy_enable: 参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 取值范围:true开启,false不开启。 默认取值:false。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + :param enhance_l7policy_enable: 参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 约束限制:开启后不支持关闭 取值范围:true开启,false不开启。 默认取值:false。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :type enhance_l7policy_enable: bool :param quic_config: :type quic_config: :class:`huaweicloudsdkelb.v3.ListenerQuicConfig` @@ -343,7 +343,7 @@ def created_at(self, created_at): def default_pool_id(self): """Gets the default_pool_id of this Listener. - 参数解释:监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 + 参数解释:监听器的默认后端服务器组ID。当请求没有匹配的转发策略时,转发到默认后端服务器上处理。 :return: The default_pool_id of this Listener. :rtype: str @@ -354,7 +354,7 @@ def default_pool_id(self): def default_pool_id(self, default_pool_id): """Sets the default_pool_id of this Listener. - 参数解释:监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 + 参数解释:监听器的默认后端服务器组ID。当请求没有匹配的转发策略时,转发到默认后端服务器上处理。 :param default_pool_id: The default_pool_id of this Listener. :type default_pool_id: str @@ -537,7 +537,7 @@ def project_id(self, project_id): def protocol(self): """Gets the protocol of this Listener. - 参数解释:监听器的监听协议。 [取值范围:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、TLS。 约束限制: - 共享型LB上的HTTPS监听器只支持设置为TERMINATED_HTTPS, 创建时传入HTTPS将会自动转为TERMINATED_HTTPS。 - 独享型LB上的HTTPS监听器只支持设置为HTTPS,创建时传入TERMINATED_HTTPS将会自动转为HTTPS。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [取值:TCP、UDP、HTTP、HTTPS。](tag:hcso_dt) [取值:TCP、UDP、IP、HTTP、HTTPS。IP为网关型LB上的监听器独有的协议。](tag:hws_eu) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:监听器的监听协议。 [取值范围:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、TLS。 约束限制: - 共享型LB上的HTTPS监听器只支持设置为TERMINATED_HTTPS, 创建时传入HTTPS将会自动转为TERMINATED_HTTPS。 - 独享型LB上的HTTPS监听器只支持设置为HTTPS,创建时传入TERMINATED_HTTPS将会自动转为HTTPS。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [取值:TCP、UDP、HTTP、HTTPS。](tag:hcso_dt) [取值:TCP、UDP、IP、HTTP、HTTPS。IP为网关型LB上的监听器独有的协议。](tag:hws_eu) [不支持QUIC。](tag:tm,g42,hk_g42,dt,dt_test) :return: The protocol of this Listener. :rtype: str @@ -548,7 +548,7 @@ def protocol(self): def protocol(self, protocol): """Sets the protocol of this Listener. - 参数解释:监听器的监听协议。 [取值范围:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、TLS。 约束限制: - 共享型LB上的HTTPS监听器只支持设置为TERMINATED_HTTPS, 创建时传入HTTPS将会自动转为TERMINATED_HTTPS。 - 独享型LB上的HTTPS监听器只支持设置为HTTPS,创建时传入TERMINATED_HTTPS将会自动转为HTTPS。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [取值:TCP、UDP、HTTP、HTTPS。](tag:hcso_dt) [取值:TCP、UDP、IP、HTTP、HTTPS。IP为网关型LB上的监听器独有的协议。](tag:hws_eu) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:监听器的监听协议。 [取值范围:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、TLS。 约束限制: - 共享型LB上的HTTPS监听器只支持设置为TERMINATED_HTTPS, 创建时传入HTTPS将会自动转为TERMINATED_HTTPS。 - 独享型LB上的HTTPS监听器只支持设置为HTTPS,创建时传入TERMINATED_HTTPS将会自动转为HTTPS。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [取值:TCP、UDP、HTTP、HTTPS。](tag:hcso_dt) [取值:TCP、UDP、IP、HTTP、HTTPS。IP为网关型LB上的监听器独有的协议。](tag:hws_eu) [不支持QUIC。](tag:tm,g42,hk_g42,dt,dt_test) :param protocol: The protocol of this Listener. :type protocol: str @@ -669,7 +669,7 @@ def updated_at(self, updated_at): def tls_ciphers_policy(self): """Gets the tls_ciphers_policy of this Listener. - 参数解释:监听器使用的安全策略。 [取值范围:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值范围:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,dt,dt_test) + 参数解释:监听器使用的安全策略。 [取值范围:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值范围:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) :return: The tls_ciphers_policy of this Listener. :rtype: str @@ -680,7 +680,7 @@ def tls_ciphers_policy(self): def tls_ciphers_policy(self, tls_ciphers_policy): """Sets the tls_ciphers_policy of this Listener. - 参数解释:监听器使用的安全策略。 [取值范围:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值范围:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,dt,dt_test) + 参数解释:监听器使用的安全策略。 [取值范围:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值范围:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) :param tls_ciphers_policy: The tls_ciphers_policy of this Listener. :type tls_ciphers_policy: str @@ -863,7 +863,7 @@ def proxy_protocol_enable(self, proxy_protocol_enable): def enhance_l7policy_enable(self): """Gets the enhance_l7policy_enable of this Listener. - 参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 取值范围:true开启,false不开启。 默认取值:false。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 约束限制:开启后不支持关闭 取值范围:true开启,false不开启。 默认取值:false。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :return: The enhance_l7policy_enable of this Listener. :rtype: bool @@ -874,7 +874,7 @@ def enhance_l7policy_enable(self): def enhance_l7policy_enable(self, enhance_l7policy_enable): """Sets the enhance_l7policy_enable of this Listener. - 参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 取值范围:true开启,false不开启。 默认取值:false。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 约束限制:开启后不支持关闭 取值范围:true开启,false不开启。 默认取值:false。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :param enhance_l7policy_enable: The enhance_l7policy_enable of this Listener. :type enhance_l7policy_enable: bool diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/listener_insert_headers.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/listener_insert_headers.py index 2641d29b8c..15af894ba1 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/listener_insert_headers.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/listener_insert_headers.py @@ -47,25 +47,25 @@ def __init__(self, x_forwarded_elb_ip=None, x_forwarded_port=None, x_forwarded_f The model defined in huaweicloud sdk - :param x_forwarded_elb_ip: 参数解释:X-Forwarded-ELB-IP设为true可以将ELB实例的eip地址从报文的http头中带到后端云服务器。 + :param x_forwarded_elb_ip: 参数解释:X-Forwarded-ELB-IP设为true可以将ELB实例的eip地址从报文的http头中带到后端服务器。 :type x_forwarded_elb_ip: bool - :param x_forwarded_port: 参数解释:X-Forwarded-Port设为true可以将ELB实例的监听端口从报文的http头中带到后端云服务器。 + :param x_forwarded_port: 参数解释:X-Forwarded-Port设为true可以将ELB实例的监听端口从报文的http头中带到后端服务器。 :type x_forwarded_port: bool - :param x_forwarded_for_port: X-Forwarded-For-Port设为true可以将客户端的源端口从报文的http头中带到后端云服务器。 + :param x_forwarded_for_port: X-Forwarded-For-Port设为true可以将客户端的源端口从报文的http头中带到后端服务器。 :type x_forwarded_for_port: bool - :param x_forwarded_host: 参数解释:X-Forwarded-Host设为true可以将客户请求头的X-Forwarded-Host设置为请求头的Host带到后端云服务器。 + :param x_forwarded_host: 参数解释:X-Forwarded-Host设为true可以将客户请求头的X-Forwarded-Host设置为请求头的Host带到后端服务器。 :type x_forwarded_host: bool - :param x_forwarded_proto: 参数解释:X-Forwarded-Proto设为true可以将负载均衡器实例的监听协议通过报文的http头带到后端云服务器。 + :param x_forwarded_proto: 参数解释:X-Forwarded-Proto设为true可以将负载均衡器实例的监听协议通过报文的http头带到后端服务器。 :type x_forwarded_proto: bool - :param x_real_ip: 参数解释:X-Real-IP设为true可以将客户端的IP通过报文的http头带到后端云服务器。 + :param x_real_ip: 参数解释:X-Real-IP设为true可以将客户端的IP通过报文的http头带到后端服务器。 :type x_real_ip: bool - :param x_forwarded_elb_id: 参数解释:X-Forwarded-ELB-ID设为true可以将负载均衡器实例的ID通过报文的http头带到后端云服务器。 + :param x_forwarded_elb_id: 参数解释:X-Forwarded-ELB-ID设为true可以将负载均衡器实例的ID通过报文的http头带到后端服务器。 :type x_forwarded_elb_id: bool - :param x_forwarded_tls_certificate_id: 参数解释:X-Forwarded-TLS-Certificate-ID设为true可以将负载均衡器实例的证书ID通过报文的http头带到后端云服务器。 + :param x_forwarded_tls_certificate_id: 参数解释:X-Forwarded-TLS-Certificate-ID设为true可以将负载均衡器实例的证书ID通过报文的http头带到后端服务器。 :type x_forwarded_tls_certificate_id: bool - :param x_forwarded_tls_protocol: 参数解释:X-Forwarded-TLS-Protocol设为true可以将负载均衡器实例的算法协议通过报文的http头带到后端云服务器。 + :param x_forwarded_tls_protocol: 参数解释:X-Forwarded-TLS-Protocol设为true可以将负载均衡器实例的算法协议通过报文的http头带到后端服务器。 :type x_forwarded_tls_protocol: bool - :param x_forwarded_tls_cipher: 参数解释:X-Forwarded-TLS-Cipher设为true可以将负载均衡器实例的算法套件通过报文的http头带到后端云服务器。 + :param x_forwarded_tls_cipher: 参数解释:X-Forwarded-TLS-Cipher设为true可以将负载均衡器实例的算法套件通过报文的http头带到后端服务器。 :type x_forwarded_tls_cipher: bool """ @@ -108,7 +108,7 @@ def __init__(self, x_forwarded_elb_ip=None, x_forwarded_port=None, x_forwarded_f def x_forwarded_elb_ip(self): """Gets the x_forwarded_elb_ip of this ListenerInsertHeaders. - 参数解释:X-Forwarded-ELB-IP设为true可以将ELB实例的eip地址从报文的http头中带到后端云服务器。 + 参数解释:X-Forwarded-ELB-IP设为true可以将ELB实例的eip地址从报文的http头中带到后端服务器。 :return: The x_forwarded_elb_ip of this ListenerInsertHeaders. :rtype: bool @@ -119,7 +119,7 @@ def x_forwarded_elb_ip(self): def x_forwarded_elb_ip(self, x_forwarded_elb_ip): """Sets the x_forwarded_elb_ip of this ListenerInsertHeaders. - 参数解释:X-Forwarded-ELB-IP设为true可以将ELB实例的eip地址从报文的http头中带到后端云服务器。 + 参数解释:X-Forwarded-ELB-IP设为true可以将ELB实例的eip地址从报文的http头中带到后端服务器。 :param x_forwarded_elb_ip: The x_forwarded_elb_ip of this ListenerInsertHeaders. :type x_forwarded_elb_ip: bool @@ -130,7 +130,7 @@ def x_forwarded_elb_ip(self, x_forwarded_elb_ip): def x_forwarded_port(self): """Gets the x_forwarded_port of this ListenerInsertHeaders. - 参数解释:X-Forwarded-Port设为true可以将ELB实例的监听端口从报文的http头中带到后端云服务器。 + 参数解释:X-Forwarded-Port设为true可以将ELB实例的监听端口从报文的http头中带到后端服务器。 :return: The x_forwarded_port of this ListenerInsertHeaders. :rtype: bool @@ -141,7 +141,7 @@ def x_forwarded_port(self): def x_forwarded_port(self, x_forwarded_port): """Sets the x_forwarded_port of this ListenerInsertHeaders. - 参数解释:X-Forwarded-Port设为true可以将ELB实例的监听端口从报文的http头中带到后端云服务器。 + 参数解释:X-Forwarded-Port设为true可以将ELB实例的监听端口从报文的http头中带到后端服务器。 :param x_forwarded_port: The x_forwarded_port of this ListenerInsertHeaders. :type x_forwarded_port: bool @@ -152,7 +152,7 @@ def x_forwarded_port(self, x_forwarded_port): def x_forwarded_for_port(self): """Gets the x_forwarded_for_port of this ListenerInsertHeaders. - X-Forwarded-For-Port设为true可以将客户端的源端口从报文的http头中带到后端云服务器。 + X-Forwarded-For-Port设为true可以将客户端的源端口从报文的http头中带到后端服务器。 :return: The x_forwarded_for_port of this ListenerInsertHeaders. :rtype: bool @@ -163,7 +163,7 @@ def x_forwarded_for_port(self): def x_forwarded_for_port(self, x_forwarded_for_port): """Sets the x_forwarded_for_port of this ListenerInsertHeaders. - X-Forwarded-For-Port设为true可以将客户端的源端口从报文的http头中带到后端云服务器。 + X-Forwarded-For-Port设为true可以将客户端的源端口从报文的http头中带到后端服务器。 :param x_forwarded_for_port: The x_forwarded_for_port of this ListenerInsertHeaders. :type x_forwarded_for_port: bool @@ -174,7 +174,7 @@ def x_forwarded_for_port(self, x_forwarded_for_port): def x_forwarded_host(self): """Gets the x_forwarded_host of this ListenerInsertHeaders. - 参数解释:X-Forwarded-Host设为true可以将客户请求头的X-Forwarded-Host设置为请求头的Host带到后端云服务器。 + 参数解释:X-Forwarded-Host设为true可以将客户请求头的X-Forwarded-Host设置为请求头的Host带到后端服务器。 :return: The x_forwarded_host of this ListenerInsertHeaders. :rtype: bool @@ -185,7 +185,7 @@ def x_forwarded_host(self): def x_forwarded_host(self, x_forwarded_host): """Sets the x_forwarded_host of this ListenerInsertHeaders. - 参数解释:X-Forwarded-Host设为true可以将客户请求头的X-Forwarded-Host设置为请求头的Host带到后端云服务器。 + 参数解释:X-Forwarded-Host设为true可以将客户请求头的X-Forwarded-Host设置为请求头的Host带到后端服务器。 :param x_forwarded_host: The x_forwarded_host of this ListenerInsertHeaders. :type x_forwarded_host: bool @@ -196,7 +196,7 @@ def x_forwarded_host(self, x_forwarded_host): def x_forwarded_proto(self): """Gets the x_forwarded_proto of this ListenerInsertHeaders. - 参数解释:X-Forwarded-Proto设为true可以将负载均衡器实例的监听协议通过报文的http头带到后端云服务器。 + 参数解释:X-Forwarded-Proto设为true可以将负载均衡器实例的监听协议通过报文的http头带到后端服务器。 :return: The x_forwarded_proto of this ListenerInsertHeaders. :rtype: bool @@ -207,7 +207,7 @@ def x_forwarded_proto(self): def x_forwarded_proto(self, x_forwarded_proto): """Sets the x_forwarded_proto of this ListenerInsertHeaders. - 参数解释:X-Forwarded-Proto设为true可以将负载均衡器实例的监听协议通过报文的http头带到后端云服务器。 + 参数解释:X-Forwarded-Proto设为true可以将负载均衡器实例的监听协议通过报文的http头带到后端服务器。 :param x_forwarded_proto: The x_forwarded_proto of this ListenerInsertHeaders. :type x_forwarded_proto: bool @@ -218,7 +218,7 @@ def x_forwarded_proto(self, x_forwarded_proto): def x_real_ip(self): """Gets the x_real_ip of this ListenerInsertHeaders. - 参数解释:X-Real-IP设为true可以将客户端的IP通过报文的http头带到后端云服务器。 + 参数解释:X-Real-IP设为true可以将客户端的IP通过报文的http头带到后端服务器。 :return: The x_real_ip of this ListenerInsertHeaders. :rtype: bool @@ -229,7 +229,7 @@ def x_real_ip(self): def x_real_ip(self, x_real_ip): """Sets the x_real_ip of this ListenerInsertHeaders. - 参数解释:X-Real-IP设为true可以将客户端的IP通过报文的http头带到后端云服务器。 + 参数解释:X-Real-IP设为true可以将客户端的IP通过报文的http头带到后端服务器。 :param x_real_ip: The x_real_ip of this ListenerInsertHeaders. :type x_real_ip: bool @@ -240,7 +240,7 @@ def x_real_ip(self, x_real_ip): def x_forwarded_elb_id(self): """Gets the x_forwarded_elb_id of this ListenerInsertHeaders. - 参数解释:X-Forwarded-ELB-ID设为true可以将负载均衡器实例的ID通过报文的http头带到后端云服务器。 + 参数解释:X-Forwarded-ELB-ID设为true可以将负载均衡器实例的ID通过报文的http头带到后端服务器。 :return: The x_forwarded_elb_id of this ListenerInsertHeaders. :rtype: bool @@ -251,7 +251,7 @@ def x_forwarded_elb_id(self): def x_forwarded_elb_id(self, x_forwarded_elb_id): """Sets the x_forwarded_elb_id of this ListenerInsertHeaders. - 参数解释:X-Forwarded-ELB-ID设为true可以将负载均衡器实例的ID通过报文的http头带到后端云服务器。 + 参数解释:X-Forwarded-ELB-ID设为true可以将负载均衡器实例的ID通过报文的http头带到后端服务器。 :param x_forwarded_elb_id: The x_forwarded_elb_id of this ListenerInsertHeaders. :type x_forwarded_elb_id: bool @@ -262,7 +262,7 @@ def x_forwarded_elb_id(self, x_forwarded_elb_id): def x_forwarded_tls_certificate_id(self): """Gets the x_forwarded_tls_certificate_id of this ListenerInsertHeaders. - 参数解释:X-Forwarded-TLS-Certificate-ID设为true可以将负载均衡器实例的证书ID通过报文的http头带到后端云服务器。 + 参数解释:X-Forwarded-TLS-Certificate-ID设为true可以将负载均衡器实例的证书ID通过报文的http头带到后端服务器。 :return: The x_forwarded_tls_certificate_id of this ListenerInsertHeaders. :rtype: bool @@ -273,7 +273,7 @@ def x_forwarded_tls_certificate_id(self): def x_forwarded_tls_certificate_id(self, x_forwarded_tls_certificate_id): """Sets the x_forwarded_tls_certificate_id of this ListenerInsertHeaders. - 参数解释:X-Forwarded-TLS-Certificate-ID设为true可以将负载均衡器实例的证书ID通过报文的http头带到后端云服务器。 + 参数解释:X-Forwarded-TLS-Certificate-ID设为true可以将负载均衡器实例的证书ID通过报文的http头带到后端服务器。 :param x_forwarded_tls_certificate_id: The x_forwarded_tls_certificate_id of this ListenerInsertHeaders. :type x_forwarded_tls_certificate_id: bool @@ -284,7 +284,7 @@ def x_forwarded_tls_certificate_id(self, x_forwarded_tls_certificate_id): def x_forwarded_tls_protocol(self): """Gets the x_forwarded_tls_protocol of this ListenerInsertHeaders. - 参数解释:X-Forwarded-TLS-Protocol设为true可以将负载均衡器实例的算法协议通过报文的http头带到后端云服务器。 + 参数解释:X-Forwarded-TLS-Protocol设为true可以将负载均衡器实例的算法协议通过报文的http头带到后端服务器。 :return: The x_forwarded_tls_protocol of this ListenerInsertHeaders. :rtype: bool @@ -295,7 +295,7 @@ def x_forwarded_tls_protocol(self): def x_forwarded_tls_protocol(self, x_forwarded_tls_protocol): """Sets the x_forwarded_tls_protocol of this ListenerInsertHeaders. - 参数解释:X-Forwarded-TLS-Protocol设为true可以将负载均衡器实例的算法协议通过报文的http头带到后端云服务器。 + 参数解释:X-Forwarded-TLS-Protocol设为true可以将负载均衡器实例的算法协议通过报文的http头带到后端服务器。 :param x_forwarded_tls_protocol: The x_forwarded_tls_protocol of this ListenerInsertHeaders. :type x_forwarded_tls_protocol: bool @@ -306,7 +306,7 @@ def x_forwarded_tls_protocol(self, x_forwarded_tls_protocol): def x_forwarded_tls_cipher(self): """Gets the x_forwarded_tls_cipher of this ListenerInsertHeaders. - 参数解释:X-Forwarded-TLS-Cipher设为true可以将负载均衡器实例的算法套件通过报文的http头带到后端云服务器。 + 参数解释:X-Forwarded-TLS-Cipher设为true可以将负载均衡器实例的算法套件通过报文的http头带到后端服务器。 :return: The x_forwarded_tls_cipher of this ListenerInsertHeaders. :rtype: bool @@ -317,7 +317,7 @@ def x_forwarded_tls_cipher(self): def x_forwarded_tls_cipher(self, x_forwarded_tls_cipher): """Sets the x_forwarded_tls_cipher of this ListenerInsertHeaders. - 参数解释:X-Forwarded-TLS-Cipher设为true可以将负载均衡器实例的算法套件通过报文的http头带到后端云服务器。 + 参数解释:X-Forwarded-TLS-Cipher设为true可以将负载均衡器实例的算法套件通过报文的http头带到后端服务器。 :param x_forwarded_tls_cipher: The x_forwarded_tls_cipher of this ListenerInsertHeaders. :type x_forwarded_tls_cipher: bool diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/listener_member_info.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/listener_member_info.py index b9a14531d1..5d348fc298 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/listener_member_info.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/listener_member_info.py @@ -33,7 +33,7 @@ def __init__(self, listener_id=None, operating_status=None): :param listener_id: 后端服务器关联的监听器id。 :type listener_id: str - :param operating_status: 后端云服务器的健康状态。 取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机或服务异常。 + :param operating_status: 后端服务器的健康状态。 取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机或服务异常。 :type operating_status: str """ @@ -72,7 +72,7 @@ def listener_id(self, listener_id): def operating_status(self): """Gets the operating_status of this ListenerMemberInfo. - 后端云服务器的健康状态。 取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机或服务异常。 + 后端服务器的健康状态。 取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机或服务异常。 :return: The operating_status of this ListenerMemberInfo. :rtype: str @@ -83,7 +83,7 @@ def operating_status(self): def operating_status(self, operating_status): """Sets the operating_status of this ListenerMemberInfo. - 后端云服务器的健康状态。 取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机或服务异常。 + 后端服务器的健康状态。 取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机或服务异常。 :param operating_status: The operating_status of this ListenerMemberInfo. :type operating_status: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/load_balancer.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/load_balancer.py index 426dc62046..bc0493d177 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/load_balancer.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/load_balancer.py @@ -127,7 +127,7 @@ def __init__(self, id=None, description=None, provisioning_status=None, admin_st :type admin_state_up: bool :param provider: 参数解释:负载均衡器的生产者名称。固定为vlb。 :type provider: str - :param pools: 参数解释:负载均衡器直接关联的后端云服务器组的ID列表。 + :param pools: 参数解释:负载均衡器直接关联的后端服务器组的ID列表。 :type pools: list[:class:`huaweicloudsdkelb.v3.PoolRef`] :param listeners: 参数解释:负载均衡器关联的监听器的ID列表。 :type listeners: list[:class:`huaweicloudsdkelb.v3.ListenerRef`] @@ -183,13 +183,13 @@ def __init__(self, id=None, description=None, provisioning_status=None, admin_st :type elb_virsubnet_ids: list[str] :param elb_virsubnet_type: 参数解释:下联面子网类型。 取值范围: - ipv4:ipv4 - dualstack:双栈 :type elb_virsubnet_type: str - :param ip_target_enable: 参数解释:是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 约束限制: - 开启后不能关闭。 - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [- 仅独享型负载均衡器支持该特性。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + :param ip_target_enable: 参数解释:是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 约束限制: - 开启后不能关闭。 - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [- 仅独享型负载均衡器支持该特性。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [- 网关型LB不支持该特性。](tag:hws_eu) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :type ip_target_enable: bool :param frozen_scene: 参数解释:负载均衡器的冻结场景。 [若负载均衡器有多个冻结场景,用逗号分隔。 取值范围: - POLICE:公安冻结场景。 - ILLEGAL:违规冻结场景。 - VERIFY:客户未实名认证冻结场景。 - PARTNER:合作伙伴冻结(合作伙伴冻结子客户资源)。 - AREAR:欠费冻结场景。](tag:hws,hws_hk) [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ocb,hws_ocb) :type frozen_scene: str :param ipv6_bandwidth: :type ipv6_bandwidth: :class:`huaweicloudsdkelb.v3.BandwidthRef` - :param deletion_protection_enable: 参数解释:是否开启删除保护。 约束限制: - 仅当前局点启用删除保护特性后才会返回该字段。 - 退场时需要先关闭所有资源的删除保护开关。 取值范围: - false:不开启。 - true:开启。 >退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + :param deletion_protection_enable: 参数解释:是否开启删除保护。 约束限制: - 仅当前局点启用删除保护特性后才会返回该字段。 - 退场时需要先关闭所有资源的删除保护开关。 取值范围: - false:不开启。 - true:开启。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :type deletion_protection_enable: bool :param autoscaling: :type autoscaling: :class:`huaweicloudsdkelb.v3.AutoscalingRef` @@ -427,7 +427,7 @@ def provider(self, provider): def pools(self): """Gets the pools of this LoadBalancer. - 参数解释:负载均衡器直接关联的后端云服务器组的ID列表。 + 参数解释:负载均衡器直接关联的后端服务器组的ID列表。 :return: The pools of this LoadBalancer. :rtype: list[:class:`huaweicloudsdkelb.v3.PoolRef`] @@ -438,7 +438,7 @@ def pools(self): def pools(self, pools): """Sets the pools of this LoadBalancer. - 参数解释:负载均衡器直接关联的后端云服务器组的ID列表。 + 参数解释:负载均衡器直接关联的后端服务器组的ID列表。 :param pools: The pools of this LoadBalancer. :type pools: list[:class:`huaweicloudsdkelb.v3.PoolRef`] @@ -1043,7 +1043,7 @@ def elb_virsubnet_type(self, elb_virsubnet_type): def ip_target_enable(self): """Gets the ip_target_enable of this LoadBalancer. - 参数解释:是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 约束限制: - 开启后不能关闭。 - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [- 仅独享型负载均衡器支持该特性。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 约束限制: - 开启后不能关闭。 - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [- 仅独享型负载均衡器支持该特性。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [- 网关型LB不支持该特性。](tag:hws_eu) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :return: The ip_target_enable of this LoadBalancer. :rtype: bool @@ -1054,7 +1054,7 @@ def ip_target_enable(self): def ip_target_enable(self, ip_target_enable): """Sets the ip_target_enable of this LoadBalancer. - 参数解释:是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 约束限制: - 开启后不能关闭。 - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [- 仅独享型负载均衡器支持该特性。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 约束限制: - 开启后不能关闭。 - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [- 仅独享型负载均衡器支持该特性。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [- 网关型LB不支持该特性。](tag:hws_eu) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :param ip_target_enable: The ip_target_enable of this LoadBalancer. :type ip_target_enable: bool @@ -1105,7 +1105,7 @@ def ipv6_bandwidth(self, ipv6_bandwidth): def deletion_protection_enable(self): """Gets the deletion_protection_enable of this LoadBalancer. - 参数解释:是否开启删除保护。 约束限制: - 仅当前局点启用删除保护特性后才会返回该字段。 - 退场时需要先关闭所有资源的删除保护开关。 取值范围: - false:不开启。 - true:开启。 >退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:是否开启删除保护。 约束限制: - 仅当前局点启用删除保护特性后才会返回该字段。 - 退场时需要先关闭所有资源的删除保护开关。 取值范围: - false:不开启。 - true:开启。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :return: The deletion_protection_enable of this LoadBalancer. :rtype: bool @@ -1116,7 +1116,7 @@ def deletion_protection_enable(self): def deletion_protection_enable(self, deletion_protection_enable): """Sets the deletion_protection_enable of this LoadBalancer. - 参数解释:是否开启删除保护。 约束限制: - 仅当前局点启用删除保护特性后才会返回该字段。 - 退场时需要先关闭所有资源的删除保护开关。 取值范围: - false:不开启。 - true:开启。 >退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:是否开启删除保护。 约束限制: - 仅当前局点启用删除保护特性后才会返回该字段。 - 退场时需要先关闭所有资源的删除保护开关。 取值范围: - false:不开启。 - true:开启。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :param deletion_protection_enable: The deletion_protection_enable of this LoadBalancer. :type deletion_protection_enable: bool diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/load_balancer_status.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/load_balancer_status.py index 6ae0657afa..b7a65e5172 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/load_balancer_status.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/load_balancer_status.py @@ -45,7 +45,7 @@ def __init__(self, name=None, provisioning_status=None, listeners=None, pools=No :type provisioning_status: str :param listeners: 负载均衡器关联的监听器列表。 :type listeners: list[:class:`huaweicloudsdkelb.v3.LoadBalancerStatusListener`] - :param pools: 负载均衡器关联的后端云服务器组列表。 + :param pools: 负载均衡器关联的后端服务器组列表。 :type pools: list[:class:`huaweicloudsdkelb.v3.LoadBalancerStatusPool`] :param id: 负载均衡器ID。 :type id: str @@ -140,7 +140,7 @@ def listeners(self, listeners): def pools(self): """Gets the pools of this LoadBalancerStatus. - 负载均衡器关联的后端云服务器组列表。 + 负载均衡器关联的后端服务器组列表。 :return: The pools of this LoadBalancerStatus. :rtype: list[:class:`huaweicloudsdkelb.v3.LoadBalancerStatusPool`] @@ -151,7 +151,7 @@ def pools(self): def pools(self, pools): """Sets the pools of this LoadBalancerStatus. - 负载均衡器关联的后端云服务器组列表。 + 负载均衡器关联的后端服务器组列表。 :param pools: The pools of this LoadBalancerStatus. :type pools: list[:class:`huaweicloudsdkelb.v3.LoadBalancerStatusPool`] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/master_slave_health_monitor.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/master_slave_health_monitor.py index f25585725d..ce5df23cfd 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/master_slave_health_monitor.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/master_slave_health_monitor.py @@ -59,7 +59,7 @@ def __init__(self, admin_state_up=None, delay=None, domain_name=None, expected_c :type delay: int :param domain_name: 发送健康检查请求的域名。 取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。 默认为空,表示使用负载均衡器的vip作为http请求的目的地址。 使用说明:当type为HTTP/HTTPS时生效。 :type domain_name: str - :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 + :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 :type expected_codes: str :param http_method: HTTP请求方法。 取值:GET、HEAD、POST,默认GET。 使用说明:当type为HTTP/HTTPS时生效。 :type http_method: str @@ -69,7 +69,7 @@ def __init__(self, admin_state_up=None, delay=None, domain_name=None, expected_c :type max_retries: int :param max_retries_down: 健康检查连续失败多少次后,将后端服务器的健康检查状态由ONLINE判定为OFFLINE。取值范围:1-10,默认3。 :type max_retries_down: int - :param monitor_port: 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。 + :param monitor_port: 健康检查端口号。取值:1-65535,默认为空,表示使用后端服务器端口号。 :type monitor_port: int :param name: 健康检查名称。 :type name: str @@ -182,7 +182,7 @@ def domain_name(self, domain_name): def expected_codes(self): """Gets the expected_codes of this MasterSlaveHealthMonitor. - 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 + 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 :return: The expected_codes of this MasterSlaveHealthMonitor. :rtype: str @@ -193,7 +193,7 @@ def expected_codes(self): def expected_codes(self, expected_codes): """Sets the expected_codes of this MasterSlaveHealthMonitor. - 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 + 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 :param expected_codes: The expected_codes of this MasterSlaveHealthMonitor. :type expected_codes: str @@ -292,7 +292,7 @@ def max_retries_down(self, max_retries_down): def monitor_port(self): """Gets the monitor_port of this MasterSlaveHealthMonitor. - 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。 + 健康检查端口号。取值:1-65535,默认为空,表示使用后端服务器端口号。 :return: The monitor_port of this MasterSlaveHealthMonitor. :rtype: int @@ -303,7 +303,7 @@ def monitor_port(self): def monitor_port(self, monitor_port): """Sets the monitor_port of this MasterSlaveHealthMonitor. - 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。 + 健康检查端口号。取值:1-65535,默认为空,表示使用后端服务器端口号。 :param monitor_port: The monitor_port of this MasterSlaveHealthMonitor. :type monitor_port: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/master_slave_member.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/master_slave_member.py index b73c9ccccc..c1276afce7 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/master_slave_member.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/master_slave_member.py @@ -59,13 +59,13 @@ def __init__(self, id=None, name=None, admin_state_up=None, subnet_cidr_id=None, :type id: str :param name: 后端服务器名称。 :type name: str - :param admin_state_up: 后端云服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + :param admin_state_up: 后端服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :type admin_state_up: bool - :param subnet_cidr_id: 后端云服务器所在子网的IPv4子网ID或IPv6子网ID。 若所属的LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 使用说明:该子网和关联的负载均衡器的子网必须在同一VPC下。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + :param subnet_cidr_id: 后端服务器所在子网的IPv4子网ID或IPv6子网ID。 若所属的LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 使用说明:该子网和关联的负载均衡器的子网必须在同一VPC下。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :type subnet_cidr_id: str :param protocol_port: 后端服务器业务端口。 >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 :type protocol_port: int - :param address: 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡内网IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + :param address: 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :type address: str :param ip_version: 当前后端服务器的IP地址版本,由后端系统自动根据传入的address字段确定。取值:v4、v6。 :type ip_version: str @@ -73,15 +73,15 @@ def __init__(self, id=None, name=None, admin_state_up=None, subnet_cidr_id=None, :type device_owner: str :param device_id: 关联的ECS ID,为空表示后端服务器未关联到ECS。 不支持该字段,请勿使用。 :type device_id: str - :param operating_status: 后端云服务器的健康状态。 取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 + :param operating_status: 后端服务器的健康状态。 取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。 :type operating_status: str - :param member_type: 后端云服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 + :param member_type: 后端服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 :type member_type: str :param instance_id: member关联的实例ID。空表示member关联的实例为非真实设备 (如:跨VPC场景) :type instance_id: str :param role: 后端服务器的主备状态。 :type role: str - :param status: 后端云服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_status为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。 + :param status: 后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_status为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。 :type status: list[:class:`huaweicloudsdkelb.v3.ListenerMemberInfo`] """ @@ -166,7 +166,7 @@ def name(self, name): def admin_state_up(self): """Gets the admin_state_up of this MasterSlaveMember. - 后端云服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + 后端服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :return: The admin_state_up of this MasterSlaveMember. :rtype: bool @@ -177,7 +177,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this MasterSlaveMember. - 后端云服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + 后端服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :param admin_state_up: The admin_state_up of this MasterSlaveMember. :type admin_state_up: bool @@ -188,7 +188,7 @@ def admin_state_up(self, admin_state_up): def subnet_cidr_id(self): """Gets the subnet_cidr_id of this MasterSlaveMember. - 后端云服务器所在子网的IPv4子网ID或IPv6子网ID。 若所属的LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 使用说明:该子网和关联的负载均衡器的子网必须在同一VPC下。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + 后端服务器所在子网的IPv4子网ID或IPv6子网ID。 若所属的LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 使用说明:该子网和关联的负载均衡器的子网必须在同一VPC下。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :return: The subnet_cidr_id of this MasterSlaveMember. :rtype: str @@ -199,7 +199,7 @@ def subnet_cidr_id(self): def subnet_cidr_id(self, subnet_cidr_id): """Sets the subnet_cidr_id of this MasterSlaveMember. - 后端云服务器所在子网的IPv4子网ID或IPv6子网ID。 若所属的LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 使用说明:该子网和关联的负载均衡器的子网必须在同一VPC下。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + 后端服务器所在子网的IPv4子网ID或IPv6子网ID。 若所属的LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 使用说明:该子网和关联的负载均衡器的子网必须在同一VPC下。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :param subnet_cidr_id: The subnet_cidr_id of this MasterSlaveMember. :type subnet_cidr_id: str @@ -232,7 +232,7 @@ def protocol_port(self, protocol_port): def address(self): """Gets the address of this MasterSlaveMember. - 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡内网IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :return: The address of this MasterSlaveMember. :rtype: str @@ -243,7 +243,7 @@ def address(self): def address(self, address): """Sets the address of this MasterSlaveMember. - 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡内网IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :param address: The address of this MasterSlaveMember. :type address: str @@ -320,7 +320,7 @@ def device_id(self, device_id): def operating_status(self): """Gets the operating_status of this MasterSlaveMember. - 后端云服务器的健康状态。 取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 + 后端服务器的健康状态。 取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。 :return: The operating_status of this MasterSlaveMember. :rtype: str @@ -331,7 +331,7 @@ def operating_status(self): def operating_status(self, operating_status): """Sets the operating_status of this MasterSlaveMember. - 后端云服务器的健康状态。 取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 + 后端服务器的健康状态。 取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。 :param operating_status: The operating_status of this MasterSlaveMember. :type operating_status: str @@ -342,7 +342,7 @@ def operating_status(self, operating_status): def member_type(self): """Gets the member_type of this MasterSlaveMember. - 后端云服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 + 后端服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 :return: The member_type of this MasterSlaveMember. :rtype: str @@ -353,7 +353,7 @@ def member_type(self): def member_type(self, member_type): """Sets the member_type of this MasterSlaveMember. - 后端云服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 + 后端服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 :param member_type: The member_type of this MasterSlaveMember. :type member_type: str @@ -408,7 +408,7 @@ def role(self, role): def status(self): """Gets the status of this MasterSlaveMember. - 后端云服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_status为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。 + 后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_status为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。 :return: The status of this MasterSlaveMember. :rtype: list[:class:`huaweicloudsdkelb.v3.ListenerMemberInfo`] @@ -419,7 +419,7 @@ def status(self): def status(self, status): """Sets the status of this MasterSlaveMember. - 后端云服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_status为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。 + 后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_status为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。 :param status: The status of this MasterSlaveMember. :type status: list[:class:`huaweicloudsdkelb.v3.ListenerMemberInfo`] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/master_slave_pool.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/master_slave_pool.py index acb9e9f669..de499578c2 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/master_slave_pool.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/master_slave_pool.py @@ -65,33 +65,33 @@ def __init__(self, description=None, id=None, lb_algorithm=None, listeners=None, The model defined in huaweicloud sdk - :param description: 后端云服务器组的描述信息。 + :param description: 后端服务器组的描述信息。 :type description: str - :param id: 后端云服务器组的ID。 + :param id: 后端服务器组的ID。 :type id: str - :param lb_algorithm: 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + :param lb_algorithm: 后端服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 使用说明: - 当该字段的取值为SOURCE_IP或QUIC_CID时,后端服务器组绑定的后端服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :type lb_algorithm: str - :param listeners: 后端云服务器组关联的监听器ID列表。 + :param listeners: 后端服务器组关联的监听器ID列表。 :type listeners: list[:class:`huaweicloudsdkelb.v3.ListenerRef`] - :param loadbalancers: 后端云服务器组关联的负载均衡器ID列表。 + :param loadbalancers: 后端服务器组关联的负载均衡器ID列表。 :type loadbalancers: list[:class:`huaweicloudsdkelb.v3.LoadBalancerRef`] - :param members: 后端云服务器组中的后端云服务器列表。 + :param members: 后端服务器组中的后端服务器列表。 :type members: list[:class:`huaweicloudsdkelb.v3.MasterSlaveMember`] - :param name: 后端云服务器组的名称。 + :param name: 后端服务器组的名称。 :type name: str - :param project_id: 后端云服务器组所在的项目ID。 + :param project_id: 后端服务器组所在的项目ID。 :type project_id: str - :param protocol: 后端云服务器组的后端协议。 取值:TCP、UDP、QUIC、TLS。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时,pool的protocol必须为TCP。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP。 - 其他协议监听器不支持主备后端服务器组。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + :param protocol: 后端服务器组的后端协议。 取值:TCP、UDP、QUIC、TLS。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时,pool的protocol必须为TCP。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP。 - 其他协议监听器不支持主备后端服务器组。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :type protocol: str :param session_persistence: :type session_persistence: :class:`huaweicloudsdkelb.v3.SessionPersistence` - :param ip_version: 后端云服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test) + :param ip_version: 后端服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test) :type ip_version: str :param created_at: 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :type created_at: str :param updated_at: 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :type updated_at: str - :param vpc_id: 后端云服务器组关联的虚拟私有云的ID。 + :param vpc_id: 后端服务器组关联的虚拟私有云的ID。 :type vpc_id: str :param type: 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。 - 空字符串(\"\"):允许任意类型的后端 :type type: str @@ -154,7 +154,7 @@ def __init__(self, description=None, id=None, lb_algorithm=None, listeners=None, def description(self): """Gets the description of this MasterSlavePool. - 后端云服务器组的描述信息。 + 后端服务器组的描述信息。 :return: The description of this MasterSlavePool. :rtype: str @@ -165,7 +165,7 @@ def description(self): def description(self, description): """Sets the description of this MasterSlavePool. - 后端云服务器组的描述信息。 + 后端服务器组的描述信息。 :param description: The description of this MasterSlavePool. :type description: str @@ -176,7 +176,7 @@ def description(self, description): def id(self): """Gets the id of this MasterSlavePool. - 后端云服务器组的ID。 + 后端服务器组的ID。 :return: The id of this MasterSlavePool. :rtype: str @@ -187,7 +187,7 @@ def id(self): def id(self, id): """Sets the id of this MasterSlavePool. - 后端云服务器组的ID。 + 后端服务器组的ID。 :param id: The id of this MasterSlavePool. :type id: str @@ -198,7 +198,7 @@ def id(self, id): def lb_algorithm(self): """Gets the lb_algorithm of this MasterSlavePool. - 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + 后端服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 使用说明: - 当该字段的取值为SOURCE_IP或QUIC_CID时,后端服务器组绑定的后端服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :return: The lb_algorithm of this MasterSlavePool. :rtype: str @@ -209,7 +209,7 @@ def lb_algorithm(self): def lb_algorithm(self, lb_algorithm): """Sets the lb_algorithm of this MasterSlavePool. - 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + 后端服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 使用说明: - 当该字段的取值为SOURCE_IP或QUIC_CID时,后端服务器组绑定的后端服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :param lb_algorithm: The lb_algorithm of this MasterSlavePool. :type lb_algorithm: str @@ -220,7 +220,7 @@ def lb_algorithm(self, lb_algorithm): def listeners(self): """Gets the listeners of this MasterSlavePool. - 后端云服务器组关联的监听器ID列表。 + 后端服务器组关联的监听器ID列表。 :return: The listeners of this MasterSlavePool. :rtype: list[:class:`huaweicloudsdkelb.v3.ListenerRef`] @@ -231,7 +231,7 @@ def listeners(self): def listeners(self, listeners): """Sets the listeners of this MasterSlavePool. - 后端云服务器组关联的监听器ID列表。 + 后端服务器组关联的监听器ID列表。 :param listeners: The listeners of this MasterSlavePool. :type listeners: list[:class:`huaweicloudsdkelb.v3.ListenerRef`] @@ -242,7 +242,7 @@ def listeners(self, listeners): def loadbalancers(self): """Gets the loadbalancers of this MasterSlavePool. - 后端云服务器组关联的负载均衡器ID列表。 + 后端服务器组关联的负载均衡器ID列表。 :return: The loadbalancers of this MasterSlavePool. :rtype: list[:class:`huaweicloudsdkelb.v3.LoadBalancerRef`] @@ -253,7 +253,7 @@ def loadbalancers(self): def loadbalancers(self, loadbalancers): """Sets the loadbalancers of this MasterSlavePool. - 后端云服务器组关联的负载均衡器ID列表。 + 后端服务器组关联的负载均衡器ID列表。 :param loadbalancers: The loadbalancers of this MasterSlavePool. :type loadbalancers: list[:class:`huaweicloudsdkelb.v3.LoadBalancerRef`] @@ -264,7 +264,7 @@ def loadbalancers(self, loadbalancers): def members(self): """Gets the members of this MasterSlavePool. - 后端云服务器组中的后端云服务器列表。 + 后端服务器组中的后端服务器列表。 :return: The members of this MasterSlavePool. :rtype: list[:class:`huaweicloudsdkelb.v3.MasterSlaveMember`] @@ -275,7 +275,7 @@ def members(self): def members(self, members): """Sets the members of this MasterSlavePool. - 后端云服务器组中的后端云服务器列表。 + 后端服务器组中的后端服务器列表。 :param members: The members of this MasterSlavePool. :type members: list[:class:`huaweicloudsdkelb.v3.MasterSlaveMember`] @@ -286,7 +286,7 @@ def members(self, members): def name(self): """Gets the name of this MasterSlavePool. - 后端云服务器组的名称。 + 后端服务器组的名称。 :return: The name of this MasterSlavePool. :rtype: str @@ -297,7 +297,7 @@ def name(self): def name(self, name): """Sets the name of this MasterSlavePool. - 后端云服务器组的名称。 + 后端服务器组的名称。 :param name: The name of this MasterSlavePool. :type name: str @@ -308,7 +308,7 @@ def name(self, name): def project_id(self): """Gets the project_id of this MasterSlavePool. - 后端云服务器组所在的项目ID。 + 后端服务器组所在的项目ID。 :return: The project_id of this MasterSlavePool. :rtype: str @@ -319,7 +319,7 @@ def project_id(self): def project_id(self, project_id): """Sets the project_id of this MasterSlavePool. - 后端云服务器组所在的项目ID。 + 后端服务器组所在的项目ID。 :param project_id: The project_id of this MasterSlavePool. :type project_id: str @@ -330,7 +330,7 @@ def project_id(self, project_id): def protocol(self): """Gets the protocol of this MasterSlavePool. - 后端云服务器组的后端协议。 取值:TCP、UDP、QUIC、TLS。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时,pool的protocol必须为TCP。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP。 - 其他协议监听器不支持主备后端服务器组。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 后端服务器组的后端协议。 取值:TCP、UDP、QUIC、TLS。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时,pool的protocol必须为TCP。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP。 - 其他协议监听器不支持主备后端服务器组。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :return: The protocol of this MasterSlavePool. :rtype: str @@ -341,7 +341,7 @@ def protocol(self): def protocol(self, protocol): """Sets the protocol of this MasterSlavePool. - 后端云服务器组的后端协议。 取值:TCP、UDP、QUIC、TLS。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时,pool的protocol必须为TCP。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP。 - 其他协议监听器不支持主备后端服务器组。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 后端服务器组的后端协议。 取值:TCP、UDP、QUIC、TLS。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时,pool的protocol必须为TCP。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP。 - 其他协议监听器不支持主备后端服务器组。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :param protocol: The protocol of this MasterSlavePool. :type protocol: str @@ -370,7 +370,7 @@ def session_persistence(self, session_persistence): def ip_version(self): """Gets the ip_version of this MasterSlavePool. - 后端云服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test) + 后端服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test) :return: The ip_version of this MasterSlavePool. :rtype: str @@ -381,7 +381,7 @@ def ip_version(self): def ip_version(self, ip_version): """Sets the ip_version of this MasterSlavePool. - 后端云服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test) + 后端服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test) :param ip_version: The ip_version of this MasterSlavePool. :type ip_version: str @@ -436,7 +436,7 @@ def updated_at(self, updated_at): def vpc_id(self): """Gets the vpc_id of this MasterSlavePool. - 后端云服务器组关联的虚拟私有云的ID。 + 后端服务器组关联的虚拟私有云的ID。 :return: The vpc_id of this MasterSlavePool. :rtype: str @@ -447,7 +447,7 @@ def vpc_id(self): def vpc_id(self, vpc_id): """Sets the vpc_id of this MasterSlavePool. - 后端云服务器组关联的虚拟私有云的ID。 + 后端服务器组关联的虚拟私有云的ID。 :param vpc_id: The vpc_id of this MasterSlavePool. :type vpc_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/member.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/member.py index c23cca2384..e09e1ae802 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/member.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/member.py @@ -63,27 +63,27 @@ def __init__(self, id=None, name=None, project_id=None, admin_state_up=None, sub :type name: str :param project_id: 参数解释:后端服务器所在的项目ID。 :type project_id: str - :param admin_state_up: 参数解释:后端云服务器的管理状态。 约束限制:虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 取值范围:true、false。 + :param admin_state_up: 参数解释:后端服务器的管理状态。 约束限制:虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 取值范围:true、false。 :type admin_state_up: bool - :param subnet_cidr_id: 参数解释:后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 约束限制: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + :param subnet_cidr_id: 参数解释:后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 约束限制: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :type subnet_cidr_id: str :param protocol_port: 参数解释:后端服务器业务端口。 [约束限制:网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 :type protocol_port: int - :param weight: 参数解释:后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 约束限制:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 取值范围:0-100 默认取值:1。 + :param weight: 参数解释:后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 约束限制:若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。 取值范围:0-100 默认取值:1。 :type weight: int - :param address: 参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡内网IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + :param address: 参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :type address: str :param ip_version: 参数解释:当前后端服务器的IP地址版本,由后端系统自动根据传入的address字段确定。 取值范围:v4、v6。 :type ip_version: str - :param operating_status: 参数解释:后端云服务器的健康状态。当status非空时,以status字段中监听器粒度的健康检查状态优先。 取值范围: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 + :param operating_status: 参数解释:后端服务器的健康状态。当status非空时,以status字段中监听器粒度的健康检查状态优先。 取值范围: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。 :type operating_status: str - :param status: 参数解释:后端云服务器监听器粒度的的健康状态。 约束限制: - 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 - 若绑定的监听器不在该字段中,则以外层的operating_status为准。 + :param status: 参数解释:后端服务器监听器粒度的的健康状态。 约束限制: - 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 - 若绑定的监听器不在该字段中,则以外层的operating_status为准。 :type status: list[:class:`huaweicloudsdkelb.v3.MemberStatus`] :param created_at: 参数解释:创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :type created_at: str :param updated_at: 参数解释:更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :type updated_at: str - :param member_type: 参数解释:后端云服务器的类型。 取值范围: - ip:跨VPC的member。 - instance:关联到ECS的member。 + :param member_type: 参数解释:后端服务器的类型。 取值范围: - ip:跨VPC的member。 - instance:关联到ECS的member。 :type member_type: str :param instance_id: 参数解释:member关联的实例ID。空表示member关联的实例为非真实设备 (如:跨VPC场景) :type instance_id: str @@ -199,7 +199,7 @@ def project_id(self, project_id): def admin_state_up(self): """Gets the admin_state_up of this Member. - 参数解释:后端云服务器的管理状态。 约束限制:虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 取值范围:true、false。 + 参数解释:后端服务器的管理状态。 约束限制:虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 取值范围:true、false。 :return: The admin_state_up of this Member. :rtype: bool @@ -210,7 +210,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this Member. - 参数解释:后端云服务器的管理状态。 约束限制:虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 取值范围:true、false。 + 参数解释:后端服务器的管理状态。 约束限制:虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 取值范围:true、false。 :param admin_state_up: The admin_state_up of this Member. :type admin_state_up: bool @@ -221,7 +221,7 @@ def admin_state_up(self, admin_state_up): def subnet_cidr_id(self): """Gets the subnet_cidr_id of this Member. - 参数解释:后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 约束限制: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + 参数解释:后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 约束限制: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :return: The subnet_cidr_id of this Member. :rtype: str @@ -232,7 +232,7 @@ def subnet_cidr_id(self): def subnet_cidr_id(self, subnet_cidr_id): """Sets the subnet_cidr_id of this Member. - 参数解释:后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 约束限制: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + 参数解释:后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 约束限制: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :param subnet_cidr_id: The subnet_cidr_id of this Member. :type subnet_cidr_id: str @@ -265,7 +265,7 @@ def protocol_port(self, protocol_port): def weight(self): """Gets the weight of this Member. - 参数解释:后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 约束限制:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 取值范围:0-100 默认取值:1。 + 参数解释:后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 约束限制:若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。 取值范围:0-100 默认取值:1。 :return: The weight of this Member. :rtype: int @@ -276,7 +276,7 @@ def weight(self): def weight(self, weight): """Sets the weight of this Member. - 参数解释:后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 约束限制:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 取值范围:0-100 默认取值:1。 + 参数解释:后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 约束限制:若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。 取值范围:0-100 默认取值:1。 :param weight: The weight of this Member. :type weight: int @@ -287,7 +287,7 @@ def weight(self, weight): def address(self): """Gets the address of this Member. - 参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡内网IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + 参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :return: The address of this Member. :rtype: str @@ -298,7 +298,7 @@ def address(self): def address(self, address): """Sets the address of this Member. - 参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡内网IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + 参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :param address: The address of this Member. :type address: str @@ -331,7 +331,7 @@ def ip_version(self, ip_version): def operating_status(self): """Gets the operating_status of this Member. - 参数解释:后端云服务器的健康状态。当status非空时,以status字段中监听器粒度的健康检查状态优先。 取值范围: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 + 参数解释:后端服务器的健康状态。当status非空时,以status字段中监听器粒度的健康检查状态优先。 取值范围: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。 :return: The operating_status of this Member. :rtype: str @@ -342,7 +342,7 @@ def operating_status(self): def operating_status(self, operating_status): """Sets the operating_status of this Member. - 参数解释:后端云服务器的健康状态。当status非空时,以status字段中监听器粒度的健康检查状态优先。 取值范围: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 + 参数解释:后端服务器的健康状态。当status非空时,以status字段中监听器粒度的健康检查状态优先。 取值范围: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。 :param operating_status: The operating_status of this Member. :type operating_status: str @@ -353,7 +353,7 @@ def operating_status(self, operating_status): def status(self): """Gets the status of this Member. - 参数解释:后端云服务器监听器粒度的的健康状态。 约束限制: - 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 - 若绑定的监听器不在该字段中,则以外层的operating_status为准。 + 参数解释:后端服务器监听器粒度的的健康状态。 约束限制: - 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 - 若绑定的监听器不在该字段中,则以外层的operating_status为准。 :return: The status of this Member. :rtype: list[:class:`huaweicloudsdkelb.v3.MemberStatus`] @@ -364,7 +364,7 @@ def status(self): def status(self, status): """Sets the status of this Member. - 参数解释:后端云服务器监听器粒度的的健康状态。 约束限制: - 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 - 若绑定的监听器不在该字段中,则以外层的operating_status为准。 + 参数解释:后端服务器监听器粒度的的健康状态。 约束限制: - 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 - 若绑定的监听器不在该字段中,则以外层的operating_status为准。 :param status: The status of this Member. :type status: list[:class:`huaweicloudsdkelb.v3.MemberStatus`] @@ -419,7 +419,7 @@ def updated_at(self, updated_at): def member_type(self): """Gets the member_type of this Member. - 参数解释:后端云服务器的类型。 取值范围: - ip:跨VPC的member。 - instance:关联到ECS的member。 + 参数解释:后端服务器的类型。 取值范围: - ip:跨VPC的member。 - instance:关联到ECS的member。 :return: The member_type of this Member. :rtype: str @@ -430,7 +430,7 @@ def member_type(self): def member_type(self, member_type): """Sets the member_type of this Member. - 参数解释:后端云服务器的类型。 取值范围: - ip:跨VPC的member。 - instance:关联到ECS的member。 + 参数解释:后端服务器的类型。 取值范围: - ip:跨VPC的member。 - instance:关联到ECS的member。 :param member_type: The member_type of this Member. :type member_type: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/member_info.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/member_info.py index 877098c3b9..6454589935 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/member_info.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/member_info.py @@ -75,15 +75,15 @@ def __init__(self, id=None, name=None, project_id=None, pool_id=None, admin_stat :type project_id: str :param pool_id: 所在后端服务器组ID。 不支持该字段,请勿使用。 :type pool_id: str - :param admin_state_up: 后端云服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + :param admin_state_up: 后端服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :type admin_state_up: bool - :param subnet_cidr_id: 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + :param subnet_cidr_id: 后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :type subnet_cidr_id: str :param protocol_port: 后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 :type protocol_port: int - :param weight: 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 + :param weight: 后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。 :type weight: int - :param address: 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡内网IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + :param address: 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :type address: str :param ip_version: 当前后端服务器的IP地址版本,由后端系统自动根据传入的address字段确定。取值:v4、v6。 :type ip_version: str @@ -91,19 +91,19 @@ def __init__(self, id=None, name=None, project_id=None, pool_id=None, admin_stat :type device_owner: str :param device_id: 关联的ECS ID,为空表示后端服务器未关联到ECS。 不支持该字段,请勿使用。 :type device_id: str - :param operating_status: 后端云服务器的健康状态。当status非空时,以status字段中监听器粒度的健康检查状态优先。 取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 + :param operating_status: 后端服务器的健康状态。当status非空时,以status字段中监听器粒度的健康检查状态优先。 取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。 :type operating_status: str - :param status: 后端云服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。 + :param status: 后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。 :type status: list[:class:`huaweicloudsdkelb.v3.MemberStatus`] :param loadbalancer_id: 所属负载均衡器ID。 不支持该字段,请勿使用。 :type loadbalancer_id: str - :param loadbalancers: 后端云服务器关联的负载均衡器ID列表。 不支持该字段,请勿使用。 + :param loadbalancers: 后端服务器关联的负载均衡器ID列表。 不支持该字段,请勿使用。 :type loadbalancers: list[:class:`huaweicloudsdkelb.v3.ResourceID`] :param created_at: 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :type created_at: str :param updated_at: 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :type updated_at: str - :param member_type: 后端云服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 + :param member_type: 后端服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 :type member_type: str :param instance_id: member关联的实例ID。空表示member关联的实例为非真实设备 (如:跨VPC场景) :type instance_id: str @@ -256,7 +256,7 @@ def pool_id(self, pool_id): def admin_state_up(self): """Gets the admin_state_up of this MemberInfo. - 后端云服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + 后端服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :return: The admin_state_up of this MemberInfo. :rtype: bool @@ -267,7 +267,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this MemberInfo. - 后端云服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + 后端服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :param admin_state_up: The admin_state_up of this MemberInfo. :type admin_state_up: bool @@ -278,7 +278,7 @@ def admin_state_up(self, admin_state_up): def subnet_cidr_id(self): """Gets the subnet_cidr_id of this MemberInfo. - 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + 后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :return: The subnet_cidr_id of this MemberInfo. :rtype: str @@ -289,7 +289,7 @@ def subnet_cidr_id(self): def subnet_cidr_id(self, subnet_cidr_id): """Sets the subnet_cidr_id of this MemberInfo. - 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + 后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :param subnet_cidr_id: The subnet_cidr_id of this MemberInfo. :type subnet_cidr_id: str @@ -322,7 +322,7 @@ def protocol_port(self, protocol_port): def weight(self): """Gets the weight of this MemberInfo. - 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 + 后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。 :return: The weight of this MemberInfo. :rtype: int @@ -333,7 +333,7 @@ def weight(self): def weight(self, weight): """Sets the weight of this MemberInfo. - 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 + 后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。 :param weight: The weight of this MemberInfo. :type weight: int @@ -344,7 +344,7 @@ def weight(self, weight): def address(self): """Gets the address of this MemberInfo. - 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡内网IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :return: The address of this MemberInfo. :rtype: str @@ -355,7 +355,7 @@ def address(self): def address(self, address): """Sets the address of this MemberInfo. - 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡内网IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :param address: The address of this MemberInfo. :type address: str @@ -432,7 +432,7 @@ def device_id(self, device_id): def operating_status(self): """Gets the operating_status of this MemberInfo. - 后端云服务器的健康状态。当status非空时,以status字段中监听器粒度的健康检查状态优先。 取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 + 后端服务器的健康状态。当status非空时,以status字段中监听器粒度的健康检查状态优先。 取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。 :return: The operating_status of this MemberInfo. :rtype: str @@ -443,7 +443,7 @@ def operating_status(self): def operating_status(self, operating_status): """Sets the operating_status of this MemberInfo. - 后端云服务器的健康状态。当status非空时,以status字段中监听器粒度的健康检查状态优先。 取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 + 后端服务器的健康状态。当status非空时,以status字段中监听器粒度的健康检查状态优先。 取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。 :param operating_status: The operating_status of this MemberInfo. :type operating_status: str @@ -454,7 +454,7 @@ def operating_status(self, operating_status): def status(self): """Gets the status of this MemberInfo. - 后端云服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。 + 后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。 :return: The status of this MemberInfo. :rtype: list[:class:`huaweicloudsdkelb.v3.MemberStatus`] @@ -465,7 +465,7 @@ def status(self): def status(self, status): """Sets the status of this MemberInfo. - 后端云服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。 + 后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。 :param status: The status of this MemberInfo. :type status: list[:class:`huaweicloudsdkelb.v3.MemberStatus`] @@ -498,7 +498,7 @@ def loadbalancer_id(self, loadbalancer_id): def loadbalancers(self): """Gets the loadbalancers of this MemberInfo. - 后端云服务器关联的负载均衡器ID列表。 不支持该字段,请勿使用。 + 后端服务器关联的负载均衡器ID列表。 不支持该字段,请勿使用。 :return: The loadbalancers of this MemberInfo. :rtype: list[:class:`huaweicloudsdkelb.v3.ResourceID`] @@ -509,7 +509,7 @@ def loadbalancers(self): def loadbalancers(self, loadbalancers): """Sets the loadbalancers of this MemberInfo. - 后端云服务器关联的负载均衡器ID列表。 不支持该字段,请勿使用。 + 后端服务器关联的负载均衡器ID列表。 不支持该字段,请勿使用。 :param loadbalancers: The loadbalancers of this MemberInfo. :type loadbalancers: list[:class:`huaweicloudsdkelb.v3.ResourceID`] @@ -564,7 +564,7 @@ def updated_at(self, updated_at): def member_type(self): """Gets the member_type of this MemberInfo. - 后端云服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 + 后端服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 :return: The member_type of this MemberInfo. :rtype: str @@ -575,7 +575,7 @@ def member_type(self): def member_type(self, member_type): """Sets the member_type of this MemberInfo. - 后端云服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 + 后端服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 :param member_type: The member_type of this MemberInfo. :type member_type: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/member_ref.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/member_ref.py index 01a2c75ba6..cdf9f6703e 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/member_ref.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/member_ref.py @@ -29,7 +29,7 @@ def __init__(self, id=None): The model defined in huaweicloud sdk - :param id: 后端服务器ID。 + :param id: 参数解释:后端服务器ID。 :type id: str """ @@ -44,7 +44,7 @@ def __init__(self, id=None): def id(self): """Gets the id of this MemberRef. - 后端服务器ID。 + 参数解释:后端服务器ID。 :return: The id of this MemberRef. :rtype: str @@ -55,7 +55,7 @@ def id(self): def id(self, id): """Sets the id of this MemberRef. - 后端服务器ID。 + 参数解释:后端服务器ID。 :param id: The id of this MemberRef. :type id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/member_status.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/member_status.py index ef838044e1..4584663d33 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/member_status.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/member_status.py @@ -33,7 +33,7 @@ def __init__(self, listener_id=None, operating_status=None): :param listener_id: 参数解释:监听器ID :type listener_id: str - :param operating_status: 参数解释:后端云服务器的健康状态。 取值范围: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 + :param operating_status: 参数解释:后端服务器的健康状态。 取值范围: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。 :type operating_status: str """ @@ -72,7 +72,7 @@ def listener_id(self, listener_id): def operating_status(self): """Gets the operating_status of this MemberStatus. - 参数解释:后端云服务器的健康状态。 取值范围: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 + 参数解释:后端服务器的健康状态。 取值范围: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。 :return: The operating_status of this MemberStatus. :rtype: str @@ -83,7 +83,7 @@ def operating_status(self): def operating_status(self, operating_status): """Sets the operating_status of this MemberStatus. - 参数解释:后端云服务器的健康状态。 取值范围: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 + 参数解释:后端服务器的健康状态。 取值范围: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。 :param operating_status: The operating_status of this MemberStatus. :type operating_status: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/pool.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/pool.py index c497b3829e..77d90a6730 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/pool.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/pool.py @@ -79,57 +79,57 @@ def __init__(self, admin_state_up=None, description=None, healthmonitor_id=None, The model defined in huaweicloud sdk - :param admin_state_up: 后端云服务器组的管理状态。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + :param admin_state_up: 参数解释:后端服务器组的管理状态。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :type admin_state_up: bool - :param description: 后端云服务器组的描述信息。 + :param description: 参数解释:后端服务器组的描述信息。 :type description: str - :param healthmonitor_id: 后端云服务器组关联的健康检查的ID。 + :param healthmonitor_id: 参数解释:后端服务器组关联的健康检查的ID。 :type healthmonitor_id: str - :param id: 后端云服务器组的ID。 + :param id: 参数解释:后端服务器组的ID。 :type id: str - :param lb_algorithm: 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID算法。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + :param lb_algorithm: 参数解释:后端服务器组的负载均衡算法。 约束限制: - 当该字段的取值为SOURCE_IP或QUIC_CID时,后端服务器组绑定的后端服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 取值范围: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) [不支持QUIC_CID算法。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :type lb_algorithm: str - :param listeners: 后端云服务器组关联的监听器ID列表。 + :param listeners: 参数解释:后端服务器组关联的监听器ID列表。 :type listeners: list[:class:`huaweicloudsdkelb.v3.ListenerRef`] - :param loadbalancers: 后端云服务器组关联的负载均衡器ID列表。 + :param loadbalancers: 参数解释:后端服务器组关联的负载均衡器ID列表。 :type loadbalancers: list[:class:`huaweicloudsdkelb.v3.LoadBalancerRef`] - :param members: 后端云服务器组中的后端云服务器ID列表。 + :param members: 参数解释:后端服务器组中的后端服务器ID列表。 :type members: list[:class:`huaweicloudsdkelb.v3.MemberRef`] - :param name: 后端云服务器组的名称。 + :param name: 参数解释:后端服务器组的名称。 :type name: str - :param project_id: 后端云服务器组所在的项目ID。 + :param project_id: 参数解释:后端服务器组所在的项目ID。 :type project_id: str - :param protocol: 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、gRPC、HTTP、HTTPS和QUIC。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时pool的protocol必须为TCP。 [- listener的protocol为IP时,pool的protocol必须为IP。](tag:hws_eu) - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP、HTTPS或gRPC。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - listener的protocol为QUIC时,pool的protocol必须为HTTP、HTTPS或gRPC。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 - 若pool的protocol为gRPC,关联监听器必须开启HTTP2。 - 若pool的protocol为TCP,则pool的ip_version字段取值必须是4。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + :param protocol: 参数解释:后端服务器组的后端协议。 约束限制: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时pool的protocol必须为TCP。 [- listener的protocol为IP时,pool的protocol必须为IP。](tag:hws_eu) - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - listener的protocol为QUIC时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 - 若pool的protocol为GRPC,关联监听器必须开启HTTP2。 - 若pool的protocol为TCP,则pool的ip_version字段取值必须是4。 取值范围:TCP、UDP、[IP、](tag:hws_eu)TLS、GRPC、HTTP、HTTPS和QUIC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :type protocol: str :param session_persistence: :type session_persistence: :class:`huaweicloudsdkelb.v3.SessionPersistence` - :param ip_version: 后端云服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test) + :param ip_version: 参数解释:后端服务器组支持的IP版本。 [取值范围: - 共享型:固定为v4; - 独享型:取值dualstack、v4。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs) [取值范围:dualstack、v4。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test) :type ip_version: str :param slow_start: :type slow_start: :class:`huaweicloudsdkelb.v3.SlowStart` - :param member_deletion_protection_enable: 是否开启误删保护。 取值:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + :param member_deletion_protection_enable: 参数解释:是否开启误删保护。 取值范围:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :type member_deletion_protection_enable: bool - :param created_at: 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + :param created_at: 参数解释:创建时间。 取值范围:格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :type created_at: str - :param updated_at: 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + :param updated_at: 参数解释:更新时间。 取值范围:格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :type updated_at: str - :param vpc_id: 后端云服务器组关联的虚拟私有云的ID。 + :param vpc_id: 参数解释:后端服务器组关联的虚拟私有云的ID。 :type vpc_id: str - :param type: 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。 - 空字符串(\"\"):允许任意类型的后端 + :param type: 参数解释:后端服务器组的类型。 取值范围: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。[pool的protocol为IP时,type不允许设置为ip。](tag:hws_eu)] - 空字符串(\"\"):允许任意类型的后端 :type type: str - :param protection_status: 修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 + :param protection_status: 参数解释:修改保护状态,。 取值范围: - nonProtection: 不保护。 - consoleProtection: 控制台修改保护。 默认取值:nonProtection :type protection_status: str - :param protection_reason: 设置保护的原因 >仅当protection_status为consoleProtection时有效。 + :param protection_reason: 参数解释:设置保护的原因。 参数限制:仅当protection_status为consoleProtection时有效。 :type protection_reason: str - :param any_port_enable: 后端是否开启端口透传。开启后,后端服务器端口与前端监听器端口保持一致。关闭后,请求会转发给后端服务器protocol_port字段指定端口。取值:false不开启,true开启。 使用说明: - 仅QUIC,TCP,UDP的pool支持。 + :param any_port_enable: 参数解释:后端是否开启端口透传。开启后,后端服务器端口与前端监听器端口保持一致。关闭后,请求会转发给后端服务器protocol_port字段指定端口。取值:false不开启,true开启。 约束限制: - 仅QUIC,TCP,UDP的pool支持。 :type any_port_enable: bool :param connection_drain: :type connection_drain: :class:`huaweicloudsdkelb.v3.ConnectionDrain` - :param enterprise_project_id: IP地址组所在的企业项目ID。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + :param enterprise_project_id: 参数解释:IP地址组所在的企业项目ID。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :type enterprise_project_id: str :param pool_health: :type pool_health: :class:`huaweicloudsdkelb.v3.PoolHealth` - :param public_border_group: 可用区组,如:center + :param public_border_group: 参数解释:可用区组,如:center :type public_border_group: str """ @@ -203,7 +203,7 @@ def __init__(self, admin_state_up=None, description=None, healthmonitor_id=None, def admin_state_up(self): """Gets the admin_state_up of this Pool. - 后端云服务器组的管理状态。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + 参数解释:后端服务器组的管理状态。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :return: The admin_state_up of this Pool. :rtype: bool @@ -214,7 +214,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this Pool. - 后端云服务器组的管理状态。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + 参数解释:后端服务器组的管理状态。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :param admin_state_up: The admin_state_up of this Pool. :type admin_state_up: bool @@ -225,7 +225,7 @@ def admin_state_up(self, admin_state_up): def description(self): """Gets the description of this Pool. - 后端云服务器组的描述信息。 + 参数解释:后端服务器组的描述信息。 :return: The description of this Pool. :rtype: str @@ -236,7 +236,7 @@ def description(self): def description(self, description): """Sets the description of this Pool. - 后端云服务器组的描述信息。 + 参数解释:后端服务器组的描述信息。 :param description: The description of this Pool. :type description: str @@ -247,7 +247,7 @@ def description(self, description): def healthmonitor_id(self): """Gets the healthmonitor_id of this Pool. - 后端云服务器组关联的健康检查的ID。 + 参数解释:后端服务器组关联的健康检查的ID。 :return: The healthmonitor_id of this Pool. :rtype: str @@ -258,7 +258,7 @@ def healthmonitor_id(self): def healthmonitor_id(self, healthmonitor_id): """Sets the healthmonitor_id of this Pool. - 后端云服务器组关联的健康检查的ID。 + 参数解释:后端服务器组关联的健康检查的ID。 :param healthmonitor_id: The healthmonitor_id of this Pool. :type healthmonitor_id: str @@ -269,7 +269,7 @@ def healthmonitor_id(self, healthmonitor_id): def id(self): """Gets the id of this Pool. - 后端云服务器组的ID。 + 参数解释:后端服务器组的ID。 :return: The id of this Pool. :rtype: str @@ -280,7 +280,7 @@ def id(self): def id(self, id): """Sets the id of this Pool. - 后端云服务器组的ID。 + 参数解释:后端服务器组的ID。 :param id: The id of this Pool. :type id: str @@ -291,7 +291,7 @@ def id(self, id): def lb_algorithm(self): """Gets the lb_algorithm of this Pool. - 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID算法。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + 参数解释:后端服务器组的负载均衡算法。 约束限制: - 当该字段的取值为SOURCE_IP或QUIC_CID时,后端服务器组绑定的后端服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 取值范围: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) [不支持QUIC_CID算法。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :return: The lb_algorithm of this Pool. :rtype: str @@ -302,7 +302,7 @@ def lb_algorithm(self): def lb_algorithm(self, lb_algorithm): """Sets the lb_algorithm of this Pool. - 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID算法。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + 参数解释:后端服务器组的负载均衡算法。 约束限制: - 当该字段的取值为SOURCE_IP或QUIC_CID时,后端服务器组绑定的后端服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 取值范围: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) [不支持QUIC_CID算法。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :param lb_algorithm: The lb_algorithm of this Pool. :type lb_algorithm: str @@ -313,7 +313,7 @@ def lb_algorithm(self, lb_algorithm): def listeners(self): """Gets the listeners of this Pool. - 后端云服务器组关联的监听器ID列表。 + 参数解释:后端服务器组关联的监听器ID列表。 :return: The listeners of this Pool. :rtype: list[:class:`huaweicloudsdkelb.v3.ListenerRef`] @@ -324,7 +324,7 @@ def listeners(self): def listeners(self, listeners): """Sets the listeners of this Pool. - 后端云服务器组关联的监听器ID列表。 + 参数解释:后端服务器组关联的监听器ID列表。 :param listeners: The listeners of this Pool. :type listeners: list[:class:`huaweicloudsdkelb.v3.ListenerRef`] @@ -335,7 +335,7 @@ def listeners(self, listeners): def loadbalancers(self): """Gets the loadbalancers of this Pool. - 后端云服务器组关联的负载均衡器ID列表。 + 参数解释:后端服务器组关联的负载均衡器ID列表。 :return: The loadbalancers of this Pool. :rtype: list[:class:`huaweicloudsdkelb.v3.LoadBalancerRef`] @@ -346,7 +346,7 @@ def loadbalancers(self): def loadbalancers(self, loadbalancers): """Sets the loadbalancers of this Pool. - 后端云服务器组关联的负载均衡器ID列表。 + 参数解释:后端服务器组关联的负载均衡器ID列表。 :param loadbalancers: The loadbalancers of this Pool. :type loadbalancers: list[:class:`huaweicloudsdkelb.v3.LoadBalancerRef`] @@ -357,7 +357,7 @@ def loadbalancers(self, loadbalancers): def members(self): """Gets the members of this Pool. - 后端云服务器组中的后端云服务器ID列表。 + 参数解释:后端服务器组中的后端服务器ID列表。 :return: The members of this Pool. :rtype: list[:class:`huaweicloudsdkelb.v3.MemberRef`] @@ -368,7 +368,7 @@ def members(self): def members(self, members): """Sets the members of this Pool. - 后端云服务器组中的后端云服务器ID列表。 + 参数解释:后端服务器组中的后端服务器ID列表。 :param members: The members of this Pool. :type members: list[:class:`huaweicloudsdkelb.v3.MemberRef`] @@ -379,7 +379,7 @@ def members(self, members): def name(self): """Gets the name of this Pool. - 后端云服务器组的名称。 + 参数解释:后端服务器组的名称。 :return: The name of this Pool. :rtype: str @@ -390,7 +390,7 @@ def name(self): def name(self, name): """Sets the name of this Pool. - 后端云服务器组的名称。 + 参数解释:后端服务器组的名称。 :param name: The name of this Pool. :type name: str @@ -401,7 +401,7 @@ def name(self, name): def project_id(self): """Gets the project_id of this Pool. - 后端云服务器组所在的项目ID。 + 参数解释:后端服务器组所在的项目ID。 :return: The project_id of this Pool. :rtype: str @@ -412,7 +412,7 @@ def project_id(self): def project_id(self, project_id): """Sets the project_id of this Pool. - 后端云服务器组所在的项目ID。 + 参数解释:后端服务器组所在的项目ID。 :param project_id: The project_id of this Pool. :type project_id: str @@ -423,7 +423,7 @@ def project_id(self, project_id): def protocol(self): """Gets the protocol of this Pool. - 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、gRPC、HTTP、HTTPS和QUIC。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时pool的protocol必须为TCP。 [- listener的protocol为IP时,pool的protocol必须为IP。](tag:hws_eu) - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP、HTTPS或gRPC。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - listener的protocol为QUIC时,pool的protocol必须为HTTP、HTTPS或gRPC。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 - 若pool的protocol为gRPC,关联监听器必须开启HTTP2。 - 若pool的protocol为TCP,则pool的ip_version字段取值必须是4。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 参数解释:后端服务器组的后端协议。 约束限制: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时pool的protocol必须为TCP。 [- listener的protocol为IP时,pool的protocol必须为IP。](tag:hws_eu) - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - listener的protocol为QUIC时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 - 若pool的protocol为GRPC,关联监听器必须开启HTTP2。 - 若pool的protocol为TCP,则pool的ip_version字段取值必须是4。 取值范围:TCP、UDP、[IP、](tag:hws_eu)TLS、GRPC、HTTP、HTTPS和QUIC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :return: The protocol of this Pool. :rtype: str @@ -434,7 +434,7 @@ def protocol(self): def protocol(self, protocol): """Sets the protocol of this Pool. - 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、gRPC、HTTP、HTTPS和QUIC。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时pool的protocol必须为TCP。 [- listener的protocol为IP时,pool的protocol必须为IP。](tag:hws_eu) - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP、HTTPS或gRPC。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - listener的protocol为QUIC时,pool的protocol必须为HTTP、HTTPS或gRPC。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 - 若pool的protocol为gRPC,关联监听器必须开启HTTP2。 - 若pool的protocol为TCP,则pool的ip_version字段取值必须是4。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 参数解释:后端服务器组的后端协议。 约束限制: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时pool的protocol必须为TCP。 [- listener的protocol为IP时,pool的protocol必须为IP。](tag:hws_eu) - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - listener的protocol为QUIC时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 - 若pool的protocol为GRPC,关联监听器必须开启HTTP2。 - 若pool的protocol为TCP,则pool的ip_version字段取值必须是4。 取值范围:TCP、UDP、[IP、](tag:hws_eu)TLS、GRPC、HTTP、HTTPS和QUIC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :param protocol: The protocol of this Pool. :type protocol: str @@ -463,7 +463,7 @@ def session_persistence(self, session_persistence): def ip_version(self): """Gets the ip_version of this Pool. - 后端云服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test) + 参数解释:后端服务器组支持的IP版本。 [取值范围: - 共享型:固定为v4; - 独享型:取值dualstack、v4。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs) [取值范围:dualstack、v4。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test) :return: The ip_version of this Pool. :rtype: str @@ -474,7 +474,7 @@ def ip_version(self): def ip_version(self, ip_version): """Sets the ip_version of this Pool. - 后端云服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test) + 参数解释:后端服务器组支持的IP版本。 [取值范围: - 共享型:固定为v4; - 独享型:取值dualstack、v4。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs) [取值范围:dualstack、v4。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test) :param ip_version: The ip_version of this Pool. :type ip_version: str @@ -503,7 +503,7 @@ def slow_start(self, slow_start): def member_deletion_protection_enable(self): """Gets the member_deletion_protection_enable of this Pool. - 是否开启误删保护。 取值:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:是否开启误删保护。 取值范围:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :return: The member_deletion_protection_enable of this Pool. :rtype: bool @@ -514,7 +514,7 @@ def member_deletion_protection_enable(self): def member_deletion_protection_enable(self, member_deletion_protection_enable): """Sets the member_deletion_protection_enable of this Pool. - 是否开启误删保护。 取值:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:是否开启误删保护。 取值范围:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :param member_deletion_protection_enable: The member_deletion_protection_enable of this Pool. :type member_deletion_protection_enable: bool @@ -525,7 +525,7 @@ def member_deletion_protection_enable(self, member_deletion_protection_enable): def created_at(self): """Gets the created_at of this Pool. - 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + 参数解释:创建时间。 取值范围:格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :return: The created_at of this Pool. :rtype: str @@ -536,7 +536,7 @@ def created_at(self): def created_at(self, created_at): """Sets the created_at of this Pool. - 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + 参数解释:创建时间。 取值范围:格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :param created_at: The created_at of this Pool. :type created_at: str @@ -547,7 +547,7 @@ def created_at(self, created_at): def updated_at(self): """Gets the updated_at of this Pool. - 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + 参数解释:更新时间。 取值范围:格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :return: The updated_at of this Pool. :rtype: str @@ -558,7 +558,7 @@ def updated_at(self): def updated_at(self, updated_at): """Sets the updated_at of this Pool. - 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + 参数解释:更新时间。 取值范围:格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :param updated_at: The updated_at of this Pool. :type updated_at: str @@ -569,7 +569,7 @@ def updated_at(self, updated_at): def vpc_id(self): """Gets the vpc_id of this Pool. - 后端云服务器组关联的虚拟私有云的ID。 + 参数解释:后端服务器组关联的虚拟私有云的ID。 :return: The vpc_id of this Pool. :rtype: str @@ -580,7 +580,7 @@ def vpc_id(self): def vpc_id(self, vpc_id): """Sets the vpc_id of this Pool. - 后端云服务器组关联的虚拟私有云的ID。 + 参数解释:后端服务器组关联的虚拟私有云的ID。 :param vpc_id: The vpc_id of this Pool. :type vpc_id: str @@ -591,7 +591,7 @@ def vpc_id(self, vpc_id): def type(self): """Gets the type of this Pool. - 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。 - 空字符串(\"\"):允许任意类型的后端 + 参数解释:后端服务器组的类型。 取值范围: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。[pool的protocol为IP时,type不允许设置为ip。](tag:hws_eu)] - 空字符串(\"\"):允许任意类型的后端 :return: The type of this Pool. :rtype: str @@ -602,7 +602,7 @@ def type(self): def type(self, type): """Sets the type of this Pool. - 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。 - 空字符串(\"\"):允许任意类型的后端 + 参数解释:后端服务器组的类型。 取值范围: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。[pool的protocol为IP时,type不允许设置为ip。](tag:hws_eu)] - 空字符串(\"\"):允许任意类型的后端 :param type: The type of this Pool. :type type: str @@ -613,7 +613,7 @@ def type(self, type): def protection_status(self): """Gets the protection_status of this Pool. - 修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 + 参数解释:修改保护状态,。 取值范围: - nonProtection: 不保护。 - consoleProtection: 控制台修改保护。 默认取值:nonProtection :return: The protection_status of this Pool. :rtype: str @@ -624,7 +624,7 @@ def protection_status(self): def protection_status(self, protection_status): """Sets the protection_status of this Pool. - 修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 + 参数解释:修改保护状态,。 取值范围: - nonProtection: 不保护。 - consoleProtection: 控制台修改保护。 默认取值:nonProtection :param protection_status: The protection_status of this Pool. :type protection_status: str @@ -635,7 +635,7 @@ def protection_status(self, protection_status): def protection_reason(self): """Gets the protection_reason of this Pool. - 设置保护的原因 >仅当protection_status为consoleProtection时有效。 + 参数解释:设置保护的原因。 参数限制:仅当protection_status为consoleProtection时有效。 :return: The protection_reason of this Pool. :rtype: str @@ -646,7 +646,7 @@ def protection_reason(self): def protection_reason(self, protection_reason): """Sets the protection_reason of this Pool. - 设置保护的原因 >仅当protection_status为consoleProtection时有效。 + 参数解释:设置保护的原因。 参数限制:仅当protection_status为consoleProtection时有效。 :param protection_reason: The protection_reason of this Pool. :type protection_reason: str @@ -657,7 +657,7 @@ def protection_reason(self, protection_reason): def any_port_enable(self): """Gets the any_port_enable of this Pool. - 后端是否开启端口透传。开启后,后端服务器端口与前端监听器端口保持一致。关闭后,请求会转发给后端服务器protocol_port字段指定端口。取值:false不开启,true开启。 使用说明: - 仅QUIC,TCP,UDP的pool支持。 + 参数解释:后端是否开启端口透传。开启后,后端服务器端口与前端监听器端口保持一致。关闭后,请求会转发给后端服务器protocol_port字段指定端口。取值:false不开启,true开启。 约束限制: - 仅QUIC,TCP,UDP的pool支持。 :return: The any_port_enable of this Pool. :rtype: bool @@ -668,7 +668,7 @@ def any_port_enable(self): def any_port_enable(self, any_port_enable): """Sets the any_port_enable of this Pool. - 后端是否开启端口透传。开启后,后端服务器端口与前端监听器端口保持一致。关闭后,请求会转发给后端服务器protocol_port字段指定端口。取值:false不开启,true开启。 使用说明: - 仅QUIC,TCP,UDP的pool支持。 + 参数解释:后端是否开启端口透传。开启后,后端服务器端口与前端监听器端口保持一致。关闭后,请求会转发给后端服务器protocol_port字段指定端口。取值:false不开启,true开启。 约束限制: - 仅QUIC,TCP,UDP的pool支持。 :param any_port_enable: The any_port_enable of this Pool. :type any_port_enable: bool @@ -697,7 +697,7 @@ def connection_drain(self, connection_drain): def enterprise_project_id(self): """Gets the enterprise_project_id of this Pool. - IP地址组所在的企业项目ID。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + 参数解释:IP地址组所在的企业项目ID。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :return: The enterprise_project_id of this Pool. :rtype: str @@ -708,7 +708,7 @@ def enterprise_project_id(self): def enterprise_project_id(self, enterprise_project_id): """Sets the enterprise_project_id of this Pool. - IP地址组所在的企业项目ID。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + 参数解释:IP地址组所在的企业项目ID。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :param enterprise_project_id: The enterprise_project_id of this Pool. :type enterprise_project_id: str @@ -737,7 +737,7 @@ def pool_health(self, pool_health): def public_border_group(self): """Gets the public_border_group of this Pool. - 可用区组,如:center + 参数解释:可用区组,如:center :return: The public_border_group of this Pool. :rtype: str @@ -748,7 +748,7 @@ def public_border_group(self): def public_border_group(self, public_border_group): """Sets the public_border_group of this Pool. - 可用区组,如:center + 参数解释:可用区组,如:center :param public_border_group: The public_border_group of this Pool. :type public_border_group: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/pool_health.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/pool_health.py index 4d08fb4b60..e70ab724ce 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/pool_health.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/pool_health.py @@ -29,7 +29,7 @@ def __init__(self, minimum_healthy_member_count=None): The model defined in huaweicloud sdk - :param minimum_healthy_member_count: 当健康检查在线的member个数小于该个数,判定pool的state为不健康; 取值范围:0或者1; 0:默认值,不生效; 1:全下线转发生效; + :param minimum_healthy_member_count: 参数解释:当健康检查在线的member个数小于该个数,判定pool的state为不健康。 取值范围: - 0:默认值,不生效。 - 1:全下线转发生效。 :type minimum_healthy_member_count: int """ @@ -45,7 +45,7 @@ def __init__(self, minimum_healthy_member_count=None): def minimum_healthy_member_count(self): """Gets the minimum_healthy_member_count of this PoolHealth. - 当健康检查在线的member个数小于该个数,判定pool的state为不健康; 取值范围:0或者1; 0:默认值,不生效; 1:全下线转发生效; + 参数解释:当健康检查在线的member个数小于该个数,判定pool的state为不健康。 取值范围: - 0:默认值,不生效。 - 1:全下线转发生效。 :return: The minimum_healthy_member_count of this PoolHealth. :rtype: int @@ -56,7 +56,7 @@ def minimum_healthy_member_count(self): def minimum_healthy_member_count(self, minimum_healthy_member_count): """Sets the minimum_healthy_member_count of this PoolHealth. - 当健康检查在线的member个数小于该个数,判定pool的state为不健康; 取值范围:0或者1; 0:默认值,不生效; 1:全下线转发生效; + 参数解释:当健康检查在线的member个数小于该个数,判定pool的state为不健康。 取值范围: - 0:默认值,不生效。 - 1:全下线转发生效。 :param minimum_healthy_member_count: The minimum_healthy_member_count of this PoolHealth. :type minimum_healthy_member_count: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/quota.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/quota.py index baae020aa4..b8b45a9895 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/quota.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/quota.py @@ -71,11 +71,11 @@ def __init__(self, project_id=None, loadbalancer=None, certificate=None, listene :type l7policy: int :param condition_per_policy: 单个转发策略下所有转发规则的condition总数配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 :type condition_per_policy: int - :param pool: 后端云服务器组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 + :param pool: 后端服务器组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 :type pool: int :param healthmonitor: 健康检查配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 :type healthmonitor: int - :param member: 后端云服务器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 + :param member: 后端服务器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 :type member: int :param members_per_pool: 单个pool下的member的配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 :type members_per_pool: int @@ -266,7 +266,7 @@ def condition_per_policy(self, condition_per_policy): def pool(self): """Gets the pool of this Quota. - 后端云服务器组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 + 后端服务器组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 :return: The pool of this Quota. :rtype: int @@ -277,7 +277,7 @@ def pool(self): def pool(self, pool): """Sets the pool of this Quota. - 后端云服务器组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 + 后端服务器组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 :param pool: The pool of this Quota. :type pool: int @@ -310,7 +310,7 @@ def healthmonitor(self, healthmonitor): def member(self): """Gets the member of this Quota. - 后端云服务器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 + 后端服务器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 :return: The member of this Quota. :rtype: int @@ -321,7 +321,7 @@ def member(self): def member(self, member): """Sets the member of this Quota. - 后端云服务器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 + 后端服务器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 :param member: The member of this Quota. :type member: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/session_persistence.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/session_persistence.py index abd365d0aa..c21948befb 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/session_persistence.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/session_persistence.py @@ -33,11 +33,11 @@ def __init__(self, cookie_name=None, type=None, persistence_timeout=None): The model defined in huaweicloud sdk - :param cookie_name: cookie名称。 [共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt) + :param cookie_name: 参数解释:cookie名称。 约束限制: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [取值范围: - 共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 - 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [取值范围:支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt) :type cookie_name: str - :param type: 会话保持类型。 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。如果是独享型负载均衡器的pool, 则type只能为HTTP_COOKIE,其他取值会话保持失效。 如果是共享型负载均衡器的pool,则type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE, 其他取值会话保持失效。](tag:hws_eu,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) [不支持QUIC。](tag:tm) + :param type: 参数解释:会话保持类型。 [约束限制: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。如果是独享型负载均衡器的pool,则type只能为HTTP_COOKIE,其他取值会话保持失效。如果是共享型负载均衡器的pool,则type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [约束限制: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE,其他取值会话保持失效。](tag:hws_eu,hcso_dt) 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [荷兰region不支持QUIC。](tag:dt,dt_test) [不支持QUIC。](tag:tm) :type type: str - :param persistence_timeout: 会话保持的时间。当type为APP_COOKIE时不生效。 适用范围:如果pool的protocol为TCP、UDP和QUIC则范围为[1,60](分钟),默认值1; 如果pool的protocol为HTTP和HTTPS则范围为[1,1440](分钟),默认值1440。 [荷兰region不支持QUIC。](tag:dt,dt_test) + :param persistence_timeout: 参数解释:会话保持的时间。当type为APP_COOKIE时不生效。 取值范围: - 若pool的protocol为TCP、UDP和QUIC则范围为[1,60](分钟),默认值1; - 若pool的protocol为HTTP和HTTPS则范围为[1,1440](分钟),默认值1440。 [荷兰region不支持QUIC。](tag:dt,dt_test) :type persistence_timeout: int """ @@ -58,7 +58,7 @@ def __init__(self, cookie_name=None, type=None, persistence_timeout=None): def cookie_name(self): """Gets the cookie_name of this SessionPersistence. - cookie名称。 [共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt) + 参数解释:cookie名称。 约束限制: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [取值范围: - 共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 - 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [取值范围:支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt) :return: The cookie_name of this SessionPersistence. :rtype: str @@ -69,7 +69,7 @@ def cookie_name(self): def cookie_name(self, cookie_name): """Sets the cookie_name of this SessionPersistence. - cookie名称。 [共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt) + 参数解释:cookie名称。 约束限制: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [取值范围: - 共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 - 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [取值范围:支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt) :param cookie_name: The cookie_name of this SessionPersistence. :type cookie_name: str @@ -80,7 +80,7 @@ def cookie_name(self, cookie_name): def type(self): """Gets the type of this SessionPersistence. - 会话保持类型。 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。如果是独享型负载均衡器的pool, 则type只能为HTTP_COOKIE,其他取值会话保持失效。 如果是共享型负载均衡器的pool,则type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE, 其他取值会话保持失效。](tag:hws_eu,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) [不支持QUIC。](tag:tm) + 参数解释:会话保持类型。 [约束限制: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。如果是独享型负载均衡器的pool,则type只能为HTTP_COOKIE,其他取值会话保持失效。如果是共享型负载均衡器的pool,则type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [约束限制: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE,其他取值会话保持失效。](tag:hws_eu,hcso_dt) 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [荷兰region不支持QUIC。](tag:dt,dt_test) [不支持QUIC。](tag:tm) :return: The type of this SessionPersistence. :rtype: str @@ -91,7 +91,7 @@ def type(self): def type(self, type): """Sets the type of this SessionPersistence. - 会话保持类型。 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。如果是独享型负载均衡器的pool, 则type只能为HTTP_COOKIE,其他取值会话保持失效。 如果是共享型负载均衡器的pool,则type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE, 其他取值会话保持失效。](tag:hws_eu,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) [不支持QUIC。](tag:tm) + 参数解释:会话保持类型。 [约束限制: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。如果是独享型负载均衡器的pool,则type只能为HTTP_COOKIE,其他取值会话保持失效。如果是共享型负载均衡器的pool,则type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [约束限制: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE,其他取值会话保持失效。](tag:hws_eu,hcso_dt) 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [荷兰region不支持QUIC。](tag:dt,dt_test) [不支持QUIC。](tag:tm) :param type: The type of this SessionPersistence. :type type: str @@ -102,7 +102,7 @@ def type(self, type): def persistence_timeout(self): """Gets the persistence_timeout of this SessionPersistence. - 会话保持的时间。当type为APP_COOKIE时不生效。 适用范围:如果pool的protocol为TCP、UDP和QUIC则范围为[1,60](分钟),默认值1; 如果pool的protocol为HTTP和HTTPS则范围为[1,1440](分钟),默认值1440。 [荷兰region不支持QUIC。](tag:dt,dt_test) + 参数解释:会话保持的时间。当type为APP_COOKIE时不生效。 取值范围: - 若pool的protocol为TCP、UDP和QUIC则范围为[1,60](分钟),默认值1; - 若pool的protocol为HTTP和HTTPS则范围为[1,1440](分钟),默认值1440。 [荷兰region不支持QUIC。](tag:dt,dt_test) :return: The persistence_timeout of this SessionPersistence. :rtype: int @@ -113,7 +113,7 @@ def persistence_timeout(self): def persistence_timeout(self, persistence_timeout): """Sets the persistence_timeout of this SessionPersistence. - 会话保持的时间。当type为APP_COOKIE时不生效。 适用范围:如果pool的protocol为TCP、UDP和QUIC则范围为[1,60](分钟),默认值1; 如果pool的protocol为HTTP和HTTPS则范围为[1,1440](分钟),默认值1440。 [荷兰region不支持QUIC。](tag:dt,dt_test) + 参数解释:会话保持的时间。当type为APP_COOKIE时不生效。 取值范围: - 若pool的protocol为TCP、UDP和QUIC则范围为[1,60](分钟),默认值1; - 若pool的protocol为HTTP和HTTPS则范围为[1,1440](分钟),默认值1440。 [荷兰region不支持QUIC。](tag:dt,dt_test) :param persistence_timeout: The persistence_timeout of this SessionPersistence. :type persistence_timeout: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/slow_start.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/slow_start.py index d33918ffbc..38256c9dad 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/slow_start.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/slow_start.py @@ -31,9 +31,9 @@ def __init__(self, enable=None, duration=None): The model defined in huaweicloud sdk - :param enable: 慢启动的开关,默认值:false; true:开启; false:关闭 + :param enable: 参数解释:慢启动的开关。 取值范围: - true:开启。 - false:关闭。 默认取值:false :type enable: bool - :param duration: 慢启动的持续时间。取值:30~1200s,默认30s; + :param duration: 参数解释:慢启动的持续时间。 取值范围:30-1200,单位:秒。 默认取值:30 :type duration: int """ @@ -50,7 +50,7 @@ def __init__(self, enable=None, duration=None): def enable(self): """Gets the enable of this SlowStart. - 慢启动的开关,默认值:false; true:开启; false:关闭 + 参数解释:慢启动的开关。 取值范围: - true:开启。 - false:关闭。 默认取值:false :return: The enable of this SlowStart. :rtype: bool @@ -61,7 +61,7 @@ def enable(self): def enable(self, enable): """Sets the enable of this SlowStart. - 慢启动的开关,默认值:false; true:开启; false:关闭 + 参数解释:慢启动的开关。 取值范围: - true:开启。 - false:关闭。 默认取值:false :param enable: The enable of this SlowStart. :type enable: bool @@ -72,7 +72,7 @@ def enable(self, enable): def duration(self): """Gets the duration of this SlowStart. - 慢启动的持续时间。取值:30~1200s,默认30s; + 参数解释:慢启动的持续时间。 取值范围:30-1200,单位:秒。 默认取值:30 :return: The duration of this SlowStart. :rtype: int @@ -83,7 +83,7 @@ def duration(self): def duration(self, duration): """Sets the duration of this SlowStart. - 慢启动的持续时间。取值:30~1200s,默认30s; + 参数解释:慢启动的持续时间。 取值范围:30-1200,单位:秒。 默认取值:30 :param duration: The duration of this SlowStart. :type duration: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_health_monitor_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_health_monitor_option.py index 7890c42b24..17d31fb5c9 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_health_monitor_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_health_monitor_option.py @@ -57,7 +57,7 @@ def __init__(self, admin_state_up=None, delay=None, domain_name=None, expected_c :type delay: int :param domain_name: 发送健康检查请求的域名。 取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。 不能传空,但可传null或不传,表示使用负载均衡器的vip作为http请求的目的地址。 使用说明:当type为HTTP/HTTPS时生效。 :type domain_name: str - :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 + :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 :type expected_codes: str :param http_method: HTTP请求方法。 取值:GET、HEAD、POST,默认GET。 使用说明:当type为HTTP/HTTPS时生效。 :type http_method: str @@ -65,7 +65,7 @@ def __init__(self, admin_state_up=None, delay=None, domain_name=None, expected_c :type max_retries: int :param max_retries_down: 健康检查连续失败多少次后,将后端服务器的健康检查状态由ONLINE判定为OFFLINE。取值范围:1-10。 :type max_retries_down: int - :param monitor_port: 健康检查端口号。取值:1-65535,不可传入空,但可传入null,表示使用后端云服务器端口号。[当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) + :param monitor_port: 健康检查端口号。取值:1-65535,不可传入空,但可传入null,表示使用后端服务器端口号。[当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) :type monitor_port: int :param name: 健康检查名称。 :type name: str @@ -73,7 +73,7 @@ def __init__(self, admin_state_up=None, delay=None, domain_name=None, expected_c :type timeout: int :param url_path: 健康检查请求的请求路径。以\"/\"开头,默认为\"/\"。 支持使用字母、数字和短划线(-)、正斜线(/)、半角句号(.)、百分号(%)、半角问号(?)、井号(#)和and(&)以及扩展字符集_;~!()*[]@$^:',+ 使用说明:当type为HTTP/HTTPS时生效。 :type url_path: str - :param type: 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和gRPC。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为gRPC,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + :param type: 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和GRPC。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为GRPC,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :type type: str """ @@ -188,7 +188,7 @@ def domain_name(self, domain_name): def expected_codes(self): """Gets the expected_codes of this UpdateHealthMonitorOption. - 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 + 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 :return: The expected_codes of this UpdateHealthMonitorOption. :rtype: str @@ -199,7 +199,7 @@ def expected_codes(self): def expected_codes(self, expected_codes): """Sets the expected_codes of this UpdateHealthMonitorOption. - 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 + 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 :param expected_codes: The expected_codes of this UpdateHealthMonitorOption. :type expected_codes: str @@ -276,7 +276,7 @@ def max_retries_down(self, max_retries_down): def monitor_port(self): """Gets the monitor_port of this UpdateHealthMonitorOption. - 健康检查端口号。取值:1-65535,不可传入空,但可传入null,表示使用后端云服务器端口号。[当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) + 健康检查端口号。取值:1-65535,不可传入空,但可传入null,表示使用后端服务器端口号。[当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) :return: The monitor_port of this UpdateHealthMonitorOption. :rtype: int @@ -287,7 +287,7 @@ def monitor_port(self): def monitor_port(self, monitor_port): """Sets the monitor_port of this UpdateHealthMonitorOption. - 健康检查端口号。取值:1-65535,不可传入空,但可传入null,表示使用后端云服务器端口号。[当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) + 健康检查端口号。取值:1-65535,不可传入空,但可传入null,表示使用后端服务器端口号。[当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) :param monitor_port: The monitor_port of this UpdateHealthMonitorOption. :type monitor_port: int @@ -364,7 +364,7 @@ def url_path(self, url_path): def type(self): """Gets the type of this UpdateHealthMonitorOption. - 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和gRPC。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为gRPC,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和GRPC。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为GRPC,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :return: The type of this UpdateHealthMonitorOption. :rtype: str @@ -375,7 +375,7 @@ def type(self): def type(self, type): """Sets the type of this UpdateHealthMonitorOption. - 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和gRPC。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为gRPC,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和GRPC。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为GRPC,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :param type: The type of this UpdateHealthMonitorOption. :type type: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_listener_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_listener_option.py index ac2506340e..c747af92d2 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_listener_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_listener_option.py @@ -81,7 +81,7 @@ def __init__(self, admin_state_up=None, client_ca_tls_container_ref=None, defaul :type admin_state_up: bool :param client_ca_tls_container_ref: 参数解释:监听器使用的CA证书ID。 约束限制: - 当且仅当type=client时,才会使用该字段对应的证书。 - 监听器协议为QUIC时不支持该字段。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :type client_ca_tls_container_ref: str - :param default_pool_id: 参数解释:监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 + :param default_pool_id: 参数解释:监听器的默认后端服务器组ID。当请求没有匹配的转发策略时,转发到默认后端服务器上处理。 :type default_pool_id: str :param default_tls_container_ref: 参数解释:监听器使用的服务器证书ID。 约束限制:当监听器协议为HTTPS时,该字段必传,且对应的证书的type必须是server类型。 :type default_tls_container_ref: str @@ -97,7 +97,7 @@ def __init__(self, admin_state_up=None, client_ca_tls_container_ref=None, defaul :type sni_container_refs: list[str] :param sni_match_algo: 参数解释:监听器使用的SNI证书泛域名匹配方式。 取值范围: - longest_suffix表示最长尾缀匹配。 - wildcard表示标准域名分级匹配。 默认取值:wildcard。 :type sni_match_algo: str - :param tls_ciphers_policy: 参数解释:监听器使用的安全策略。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [取值范围:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值范围:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + :param tls_ciphers_policy: 参数解释:监听器使用的安全策略。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [取值范围:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值范围:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) :type tls_ciphers_policy: str :param security_policy_id: 参数解释:自定义安全策略的ID。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,ctc,hcso,g42,tm,cmcc,hk-g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:hws_eu,g42,hk_g42) :type security_policy_id: str @@ -257,7 +257,7 @@ def client_ca_tls_container_ref(self, client_ca_tls_container_ref): def default_pool_id(self): """Gets the default_pool_id of this UpdateListenerOption. - 参数解释:监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 + 参数解释:监听器的默认后端服务器组ID。当请求没有匹配的转发策略时,转发到默认后端服务器上处理。 :return: The default_pool_id of this UpdateListenerOption. :rtype: str @@ -268,7 +268,7 @@ def default_pool_id(self): def default_pool_id(self, default_pool_id): """Sets the default_pool_id of this UpdateListenerOption. - 参数解释:监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 + 参数解释:监听器的默认后端服务器组ID。当请求没有匹配的转发策略时,转发到默认后端服务器上处理。 :param default_pool_id: The default_pool_id of this UpdateListenerOption. :type default_pool_id: str @@ -429,7 +429,7 @@ def sni_match_algo(self, sni_match_algo): def tls_ciphers_policy(self): """Gets the tls_ciphers_policy of this UpdateListenerOption. - 参数解释:监听器使用的安全策略。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [取值范围:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值范围:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:监听器使用的安全策略。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [取值范围:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值范围:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) :return: The tls_ciphers_policy of this UpdateListenerOption. :rtype: str @@ -440,7 +440,7 @@ def tls_ciphers_policy(self): def tls_ciphers_policy(self, tls_ciphers_policy): """Sets the tls_ciphers_policy of this UpdateListenerOption. - 参数解释:监听器使用的安全策略。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [取值范围:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值范围:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:监听器使用的安全策略。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [取值范围:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值范围:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) :param tls_ciphers_policy: The tls_ciphers_policy of this UpdateListenerOption. :type tls_ciphers_policy: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_load_balancer_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_load_balancer_option.py index 5056bc2255..348c6ad53c 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_load_balancer_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_load_balancer_option.py @@ -73,17 +73,17 @@ def __init__(self, name=None, admin_state_up=None, description=None, ipv6_vip_vi :type description: str :param ipv6_vip_virsubnet_id: 参数解释:双栈类型负载均衡器所在子网的IPv6网络ID,也称为该负载均衡器实例的前端子网。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到。 通过更新ipv6_vip_virsubnet_id可以更新负载均衡器所在IPv6子网,且负载均衡器的内网IPv6地址将发生变化。 约束限制: - ipv6_vip_virsubnet_id 对应的子网必须属于当前负载均衡器所在VPC,且子网需开启支持IPv6。 - 只有guaranteed是true的负载均衡器才支持更新ipv6_vip_virsubnet_id。 - *传入为null表示解绑IPv6子网。* - 更新IPv6子网不会导致IPv4子网发生变化。 [不支持IPv6,请勿使用。](tag:dt,dt_test) :type ipv6_vip_virsubnet_id: str - :param vip_subnet_cidr_id: 参数解释:负载均衡器所在的IPv4子网ID,也称为该负载均衡器实例的前端子网。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到。 通过更新vip_subnet_cidr_id可以更新负载均衡器所在IPv4子网,并且负载均衡器的内网IPv4地址将发生变化。 约束限制: - 若同时设置了vip_address,则必须保证vip_address对应的IP在vip_subnet_cidr_id的子网网段中。 - vip_subnet_cidr_id对应的子网必须属于当前负载均衡器vpc_id对应的VPC。 - 只有guaranteed是true的负载均衡器才支持更新vip_subnet_cidr_id。 - *传入null表示解绑IPv4子网。* - 更新IPv子网不会导致IPv4子网发生变化。 + :param vip_subnet_cidr_id: 参数解释:负载均衡器所在的IPv4子网ID,也称为该负载均衡器实例的前端子网。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到。 通过更新vip_subnet_cidr_id可以更新负载均衡器所在IPv4子网,并且负载均衡器的内网IPv4地址将发生变化。 约束限制: - 若同时设置了vip_address,则必须保证vip_address对应的IP在vip_subnet_cidr_id的子网网段中。 - vip_subnet_cidr_id对应的子网必须属于当前负载均衡器vpc_id对应的VPC。 - 只有guaranteed是true的负载均衡器才支持更新vip_subnet_cidr_id。 - *传入null表示解绑IPv4子网。* - 更新IPv6子网不会导致IPv4子网发生变化。 :type vip_subnet_cidr_id: str :param vip_address: 参数解释:负载均衡器的IPv4虚拟IP。 约束限制:该地址必须包含在所在子网的IPv4网段内,且未被占用。 注:仅当guaranteed是true的场合,才支持更新。 :type vip_address: str - :param l4_flavor_id: 参数解释:网络型规格ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L4 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [hcso场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + :param l4_flavor_id: 参数解释:网络型规格ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L4 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [网关型LB不支持指定l4_flavor_id。](tag:hws_eu) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [hcso场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :type l4_flavor_id: str - :param l7_flavor_id: 参数解释:应用型ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L7 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [网关型LB不支持l7_flavor_id。](tag:hws_eu) [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + :param l7_flavor_id: 参数解释:应用型ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L7 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [网关型LB不支持指定l7_flavor_id。](tag:hws_eu) [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :type l7_flavor_id: str :param ipv6_bandwidth: :type ipv6_bandwidth: :class:`huaweicloudsdkelb.v3.BandwidthRef` - :param ip_target_enable: 参数解释:是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 约束限制: - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 - 开启后不能关闭。 [- 仅独享型负载均衡器支持该特性。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + :param ip_target_enable: 参数解释:是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 约束限制: - 开启后不能关闭。 - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [- 仅独享型负载均衡器支持该特性。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [- 网关型LB不支持该特性。](tag:hws_eu) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :type ip_target_enable: bool :param elb_virsubnet_ids: 参数解释:下联面子网的网络ID列表。 可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到。 约束限制: - 已绑定的下联面子网也在传参elb_virsubnet_ids列表中,则绑定关系保留。 - 已绑定的下联面子网若不在传参elb_virsubnet_ids列表中, 则将移除LB与该下联面子网的关联关系。但不允许移除已被ELB使用的子网,否则将报错,不做任何修改。 - 在传参elb_virsubnet_ids列表中但不在已绑定的下联面子网列表中,则将新增LB与下联面的绑定关系。 - 所有elb_virsubnet_ids中的ID同属于该LB所在的VPC。 - 不支持边缘云子网。 :type elb_virsubnet_ids: list[str] @@ -259,7 +259,7 @@ def ipv6_vip_virsubnet_id(self, ipv6_vip_virsubnet_id): def vip_subnet_cidr_id(self): """Gets the vip_subnet_cidr_id of this UpdateLoadBalancerOption. - 参数解释:负载均衡器所在的IPv4子网ID,也称为该负载均衡器实例的前端子网。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到。 通过更新vip_subnet_cidr_id可以更新负载均衡器所在IPv4子网,并且负载均衡器的内网IPv4地址将发生变化。 约束限制: - 若同时设置了vip_address,则必须保证vip_address对应的IP在vip_subnet_cidr_id的子网网段中。 - vip_subnet_cidr_id对应的子网必须属于当前负载均衡器vpc_id对应的VPC。 - 只有guaranteed是true的负载均衡器才支持更新vip_subnet_cidr_id。 - *传入null表示解绑IPv4子网。* - 更新IPv子网不会导致IPv4子网发生变化。 + 参数解释:负载均衡器所在的IPv4子网ID,也称为该负载均衡器实例的前端子网。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到。 通过更新vip_subnet_cidr_id可以更新负载均衡器所在IPv4子网,并且负载均衡器的内网IPv4地址将发生变化。 约束限制: - 若同时设置了vip_address,则必须保证vip_address对应的IP在vip_subnet_cidr_id的子网网段中。 - vip_subnet_cidr_id对应的子网必须属于当前负载均衡器vpc_id对应的VPC。 - 只有guaranteed是true的负载均衡器才支持更新vip_subnet_cidr_id。 - *传入null表示解绑IPv4子网。* - 更新IPv6子网不会导致IPv4子网发生变化。 :return: The vip_subnet_cidr_id of this UpdateLoadBalancerOption. :rtype: str @@ -270,7 +270,7 @@ def vip_subnet_cidr_id(self): def vip_subnet_cidr_id(self, vip_subnet_cidr_id): """Sets the vip_subnet_cidr_id of this UpdateLoadBalancerOption. - 参数解释:负载均衡器所在的IPv4子网ID,也称为该负载均衡器实例的前端子网。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到。 通过更新vip_subnet_cidr_id可以更新负载均衡器所在IPv4子网,并且负载均衡器的内网IPv4地址将发生变化。 约束限制: - 若同时设置了vip_address,则必须保证vip_address对应的IP在vip_subnet_cidr_id的子网网段中。 - vip_subnet_cidr_id对应的子网必须属于当前负载均衡器vpc_id对应的VPC。 - 只有guaranteed是true的负载均衡器才支持更新vip_subnet_cidr_id。 - *传入null表示解绑IPv4子网。* - 更新IPv子网不会导致IPv4子网发生变化。 + 参数解释:负载均衡器所在的IPv4子网ID,也称为该负载均衡器实例的前端子网。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到。 通过更新vip_subnet_cidr_id可以更新负载均衡器所在IPv4子网,并且负载均衡器的内网IPv4地址将发生变化。 约束限制: - 若同时设置了vip_address,则必须保证vip_address对应的IP在vip_subnet_cidr_id的子网网段中。 - vip_subnet_cidr_id对应的子网必须属于当前负载均衡器vpc_id对应的VPC。 - 只有guaranteed是true的负载均衡器才支持更新vip_subnet_cidr_id。 - *传入null表示解绑IPv4子网。* - 更新IPv6子网不会导致IPv4子网发生变化。 :param vip_subnet_cidr_id: The vip_subnet_cidr_id of this UpdateLoadBalancerOption. :type vip_subnet_cidr_id: str @@ -303,7 +303,7 @@ def vip_address(self, vip_address): def l4_flavor_id(self): """Gets the l4_flavor_id of this UpdateLoadBalancerOption. - 参数解释:网络型规格ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L4 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [hcso场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + 参数解释:网络型规格ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L4 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [网关型LB不支持指定l4_flavor_id。](tag:hws_eu) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [hcso场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :return: The l4_flavor_id of this UpdateLoadBalancerOption. :rtype: str @@ -314,7 +314,7 @@ def l4_flavor_id(self): def l4_flavor_id(self, l4_flavor_id): """Sets the l4_flavor_id of this UpdateLoadBalancerOption. - 参数解释:网络型规格ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L4 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [hcso场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + 参数解释:网络型规格ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L4 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [网关型LB不支持指定l4_flavor_id。](tag:hws_eu) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [hcso场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :param l4_flavor_id: The l4_flavor_id of this UpdateLoadBalancerOption. :type l4_flavor_id: str @@ -325,7 +325,7 @@ def l4_flavor_id(self, l4_flavor_id): def l7_flavor_id(self): """Gets the l7_flavor_id of this UpdateLoadBalancerOption. - 参数解释:应用型ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L7 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [网关型LB不支持l7_flavor_id。](tag:hws_eu) [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + 参数解释:应用型ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L7 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [网关型LB不支持指定l7_flavor_id。](tag:hws_eu) [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :return: The l7_flavor_id of this UpdateLoadBalancerOption. :rtype: str @@ -336,7 +336,7 @@ def l7_flavor_id(self): def l7_flavor_id(self, l7_flavor_id): """Sets the l7_flavor_id of this UpdateLoadBalancerOption. - 参数解释:应用型ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L7 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [网关型LB不支持l7_flavor_id。](tag:hws_eu) [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + 参数解释:应用型ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L7 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [网关型LB不支持指定l7_flavor_id。](tag:hws_eu) [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :param l7_flavor_id: The l7_flavor_id of this UpdateLoadBalancerOption. :type l7_flavor_id: str @@ -365,7 +365,7 @@ def ipv6_bandwidth(self, ipv6_bandwidth): def ip_target_enable(self): """Gets the ip_target_enable of this UpdateLoadBalancerOption. - 参数解释:是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 约束限制: - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 - 开启后不能关闭。 [- 仅独享型负载均衡器支持该特性。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 约束限制: - 开启后不能关闭。 - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [- 仅独享型负载均衡器支持该特性。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [- 网关型LB不支持该特性。](tag:hws_eu) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :return: The ip_target_enable of this UpdateLoadBalancerOption. :rtype: bool @@ -376,7 +376,7 @@ def ip_target_enable(self): def ip_target_enable(self, ip_target_enable): """Sets the ip_target_enable of this UpdateLoadBalancerOption. - 参数解释:是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 约束限制: - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 - 开启后不能关闭。 [- 仅独享型负载均衡器支持该特性。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 约束限制: - 开启后不能关闭。 - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [- 仅独享型负载均衡器支持该特性。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [- 网关型LB不支持该特性。](tag:hws_eu) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :param ip_target_enable: The ip_target_enable of this UpdateLoadBalancerOption. :type ip_target_enable: bool diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_member_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_member_option.py index 4a400a9cb5..ca3b3e3f73 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_member_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_member_option.py @@ -35,11 +35,11 @@ def __init__(self, admin_state_up=None, name=None, weight=None, protocol_port=No The model defined in huaweicloud sdk - :param admin_state_up: 后端云服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 请勿传入该字段。 + :param admin_state_up: 后端服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 请勿传入该字段。 :type admin_state_up: bool - :param name: 后端云服务器名称。 + :param name: 后端服务器名称。 :type name: str - :param weight: 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 + :param weight: 后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。 :type weight: int :param protocol_port: 后端服务器端口。 在开启端口透传的pool下的member,该字段无法更新。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) :type protocol_port: int @@ -66,7 +66,7 @@ def __init__(self, admin_state_up=None, name=None, weight=None, protocol_port=No def admin_state_up(self): """Gets the admin_state_up of this UpdateMemberOption. - 后端云服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 请勿传入该字段。 + 后端服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 请勿传入该字段。 :return: The admin_state_up of this UpdateMemberOption. :rtype: bool @@ -77,7 +77,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this UpdateMemberOption. - 后端云服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 请勿传入该字段。 + 后端服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 请勿传入该字段。 :param admin_state_up: The admin_state_up of this UpdateMemberOption. :type admin_state_up: bool @@ -88,7 +88,7 @@ def admin_state_up(self, admin_state_up): def name(self): """Gets the name of this UpdateMemberOption. - 后端云服务器名称。 + 后端服务器名称。 :return: The name of this UpdateMemberOption. :rtype: str @@ -99,7 +99,7 @@ def name(self): def name(self, name): """Sets the name of this UpdateMemberOption. - 后端云服务器名称。 + 后端服务器名称。 :param name: The name of this UpdateMemberOption. :type name: str @@ -110,7 +110,7 @@ def name(self, name): def weight(self): """Gets the weight of this UpdateMemberOption. - 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 + 后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。 :return: The weight of this UpdateMemberOption. :rtype: int @@ -121,7 +121,7 @@ def weight(self): def weight(self, weight): """Sets the weight of this UpdateMemberOption. - 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 + 后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。 :param weight: The weight of this UpdateMemberOption. :type weight: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_pool_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_pool_option.py index a51501bf62..ebc674f310 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_pool_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_pool_option.py @@ -55,13 +55,13 @@ def __init__(self, admin_state_up=None, description=None, lb_algorithm=None, nam The model defined in huaweicloud sdk - :param admin_state_up: 后端云服务器组的管理状态,只支持更新为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + :param admin_state_up: 后端服务器组的管理状态,只支持更新为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :type admin_state_up: bool - :param description: 后端云服务器组的描述信息。 + :param description: 后端服务器组的描述信息。 :type description: str - :param lb_algorithm: 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + :param lb_algorithm: 后端服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) 使用说明: - 当该字段的取值为SOURCE_IP或QUIC_CID时,后端服务器组绑定的后端服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :type lb_algorithm: str - :param name: 后端云服务器组的名称。 + :param name: 后端服务器组的名称。 :type name: str :param session_persistence: :type session_persistence: :class:`huaweicloudsdkelb.v3.UpdatePoolSessionPersistenceOption` @@ -69,7 +69,7 @@ def __init__(self, admin_state_up=None, description=None, lb_algorithm=None, nam :type slow_start: :class:`huaweicloudsdkelb.v3.UpdatePoolSlowStartOption` :param member_deletion_protection_enable: 是否开启删除保护。 取值:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :type member_deletion_protection_enable: bool - :param vpc_id: 后端云服务器组关联的虚拟私有云的ID。 [- pool的protocol为IP时,必须指定vpc_id,且与LB的vpc_id相同。](tag:hws_eu) 只有vpc_id为空时允许更新。 + :param vpc_id: 后端服务器组关联的虚拟私有云的ID。 [- pool的protocol为IP时,必须指定vpc_id,且与LB的vpc_id相同。](tag:hws_eu) 只有vpc_id为空时允许更新。 :type vpc_id: str :param type: 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。[pool的protocol为IP时,type不允许设置为ip。](tag:hws_eu)] - 空字符串(\"\"):允许任意类型的后端 使用说明: - 只有type为空时允许更新,不允许从非空更新为空。 :type type: str @@ -136,7 +136,7 @@ def __init__(self, admin_state_up=None, description=None, lb_algorithm=None, nam def admin_state_up(self): """Gets the admin_state_up of this UpdatePoolOption. - 后端云服务器组的管理状态,只支持更新为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + 后端服务器组的管理状态,只支持更新为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :return: The admin_state_up of this UpdatePoolOption. :rtype: bool @@ -147,7 +147,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this UpdatePoolOption. - 后端云服务器组的管理状态,只支持更新为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + 后端服务器组的管理状态,只支持更新为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :param admin_state_up: The admin_state_up of this UpdatePoolOption. :type admin_state_up: bool @@ -158,7 +158,7 @@ def admin_state_up(self, admin_state_up): def description(self): """Gets the description of this UpdatePoolOption. - 后端云服务器组的描述信息。 + 后端服务器组的描述信息。 :return: The description of this UpdatePoolOption. :rtype: str @@ -169,7 +169,7 @@ def description(self): def description(self, description): """Sets the description of this UpdatePoolOption. - 后端云服务器组的描述信息。 + 后端服务器组的描述信息。 :param description: The description of this UpdatePoolOption. :type description: str @@ -180,7 +180,7 @@ def description(self, description): def lb_algorithm(self): """Gets the lb_algorithm of this UpdatePoolOption. - 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + 后端服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) 使用说明: - 当该字段的取值为SOURCE_IP或QUIC_CID时,后端服务器组绑定的后端服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :return: The lb_algorithm of this UpdatePoolOption. :rtype: str @@ -191,7 +191,7 @@ def lb_algorithm(self): def lb_algorithm(self, lb_algorithm): """Sets the lb_algorithm of this UpdatePoolOption. - 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + 后端服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) 使用说明: - 当该字段的取值为SOURCE_IP或QUIC_CID时,后端服务器组绑定的后端服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :param lb_algorithm: The lb_algorithm of this UpdatePoolOption. :type lb_algorithm: str @@ -202,7 +202,7 @@ def lb_algorithm(self, lb_algorithm): def name(self): """Gets the name of this UpdatePoolOption. - 后端云服务器组的名称。 + 后端服务器组的名称。 :return: The name of this UpdatePoolOption. :rtype: str @@ -213,7 +213,7 @@ def name(self): def name(self, name): """Sets the name of this UpdatePoolOption. - 后端云服务器组的名称。 + 后端服务器组的名称。 :param name: The name of this UpdatePoolOption. :type name: str @@ -282,7 +282,7 @@ def member_deletion_protection_enable(self, member_deletion_protection_enable): def vpc_id(self): """Gets the vpc_id of this UpdatePoolOption. - 后端云服务器组关联的虚拟私有云的ID。 [- pool的protocol为IP时,必须指定vpc_id,且与LB的vpc_id相同。](tag:hws_eu) 只有vpc_id为空时允许更新。 + 后端服务器组关联的虚拟私有云的ID。 [- pool的protocol为IP时,必须指定vpc_id,且与LB的vpc_id相同。](tag:hws_eu) 只有vpc_id为空时允许更新。 :return: The vpc_id of this UpdatePoolOption. :rtype: str @@ -293,7 +293,7 @@ def vpc_id(self): def vpc_id(self, vpc_id): """Sets the vpc_id of this UpdatePoolOption. - 后端云服务器组关联的虚拟私有云的ID。 [- pool的protocol为IP时,必须指定vpc_id,且与LB的vpc_id相同。](tag:hws_eu) 只有vpc_id为空时允许更新。 + 后端服务器组关联的虚拟私有云的ID。 [- pool的protocol为IP时,必须指定vpc_id,且与LB的vpc_id相同。](tag:hws_eu) 只有vpc_id为空时允许更新。 :param vpc_id: The vpc_id of this UpdatePoolOption. :type vpc_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_rule_condition.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_rule_condition.py index 9d740cfbf8..93a3e1edb7 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_rule_condition.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_rule_condition.py @@ -33,7 +33,7 @@ def __init__(self, key=None, value=None): :param key: 参数解释:匹配项的名称。 约束限制:同一个rule内的conditions列表中所有key必须相同。 取值范围: - 当转发规则类别type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 key的长度限制1-40字符,只允许包含字母、数字和-_。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写。 :type key: str - :param value: 参数解释:匹配项的值。 约束限制: - 同一个rule内的conditions列表中所有value不允许重复。 - 同一个rule内的conditions列表中所有value不允许重复。 取值范围: - 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、-.\\*, 必须以字母、数字或\\*开头,\\*只能出现在开头且必须以\\*.开始。 - 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) - 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 - 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。 + :param value: 参数解释:匹配项的值。 约束限制: - 同一个rule内的conditions列表中所有key必须相同。 - 同一个rule内的conditions列表中所有value不允许重复。 取值范围: - 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、-.\\*, 必须以字母、数字或\\*开头,\\*只能出现在开头且必须以\\*.开始。 - 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) - 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 - 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。 :type value: str """ @@ -74,7 +74,7 @@ def key(self, key): def value(self): """Gets the value of this UpdateRuleCondition. - 参数解释:匹配项的值。 约束限制: - 同一个rule内的conditions列表中所有value不允许重复。 - 同一个rule内的conditions列表中所有value不允许重复。 取值范围: - 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、-.\\*, 必须以字母、数字或\\*开头,\\*只能出现在开头且必须以\\*.开始。 - 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) - 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 - 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。 + 参数解释:匹配项的值。 约束限制: - 同一个rule内的conditions列表中所有key必须相同。 - 同一个rule内的conditions列表中所有value不允许重复。 取值范围: - 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、-.\\*, 必须以字母、数字或\\*开头,\\*只能出现在开头且必须以\\*.开始。 - 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) - 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 - 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。 :return: The value of this UpdateRuleCondition. :rtype: str @@ -85,7 +85,7 @@ def value(self): def value(self, value): """Sets the value of this UpdateRuleCondition. - 参数解释:匹配项的值。 约束限制: - 同一个rule内的conditions列表中所有value不允许重复。 - 同一个rule内的conditions列表中所有value不允许重复。 取值范围: - 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、-.\\*, 必须以字母、数字或\\*开头,\\*只能出现在开头且必须以\\*.开始。 - 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) - 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 - 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。 + 参数解释:匹配项的值。 约束限制: - 同一个rule内的conditions列表中所有key必须相同。 - 同一个rule内的conditions列表中所有value不允许重复。 取值范围: - 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、-.\\*, 必须以字母、数字或\\*开头,\\*只能出现在开头且必须以\\*.开始。 - 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) - 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 - 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。 :param value: The value of this UpdateRuleCondition. :type value: str diff --git a/huaweicloud-sdk-elb/requirements.txt b/huaweicloud-sdk-elb/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-elb/requirements.txt +++ b/huaweicloud-sdk-elb/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-elb/setup.py b/huaweicloud-sdk-elb/setup.py index 768b29663e..7c3e7e69e6 100644 --- a/huaweicloud-sdk-elb/setup.py +++ b/huaweicloud-sdk-elb/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkelb" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eps/requirements.txt b/huaweicloud-sdk-eps/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-eps/requirements.txt +++ b/huaweicloud-sdk-eps/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-eps/setup.py b/huaweicloud-sdk-eps/setup.py index 27c8c3d4ab..8d4649f3ea 100644 --- a/huaweicloud-sdk-eps/setup.py +++ b/huaweicloud-sdk-eps/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkeps" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-er/requirements.txt b/huaweicloud-sdk-er/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-er/requirements.txt +++ b/huaweicloud-sdk-er/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-er/setup.py b/huaweicloud-sdk-er/setup.py index cbd228fa35..6b211fe519 100644 --- a/huaweicloud-sdk-er/setup.py +++ b/huaweicloud-sdk-er/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdker" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/evs_async_client.py b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/evs_async_client.py index 4b1000f8cb..459c43093d 100644 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/evs_async_client.py +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/evs_async_client.py @@ -1242,8 +1242,6 @@ def _list_volumes_http_info(self, request): query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) if 'server_id' in local_var_params: query_params.append(('server_id', local_var_params['server_id'])) - if 'snapshot_policy_id' in local_var_params: - query_params.append(('snapshot_policy_id', local_var_params['snapshot_policy_id'])) header_params = {} diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/evs_client.py b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/evs_client.py index 3772bb5ee5..4ea790a5ca 100644 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/evs_client.py +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/evs_client.py @@ -1242,8 +1242,6 @@ def _list_volumes_http_info(cls, request): query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) if 'server_id' in local_var_params: query_params.append(('server_id', local_var_params['server_id'])) - if 'snapshot_policy_id' in local_var_params: - query_params.append(('snapshot_policy_id', local_var_params['snapshot_policy_id'])) header_params = {} diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/list_volumes_request.py b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/list_volumes_request.py index 4757f6b163..d83e53a882 100644 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/list_volumes_request.py +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/list_volumes_request.py @@ -34,8 +34,7 @@ class ListVolumesRequest: 'id': 'str', 'ids': 'str', 'enterprise_project_id': 'str', - 'server_id': 'str', - 'snapshot_policy_id': 'str' + 'server_id': 'str' } attribute_map = { @@ -56,11 +55,10 @@ class ListVolumesRequest: 'id': 'id', 'ids': 'ids', 'enterprise_project_id': 'enterprise_project_id', - 'server_id': 'server_id', - 'snapshot_policy_id': 'snapshot_policy_id' + 'server_id': 'server_id' } - def __init__(self, marker=None, name=None, limit=None, sort_key=None, offset=None, sort_dir=None, status=None, metadata=None, availability_zone=None, multiattach=None, service_type=None, dedicated_storage_id=None, dedicated_storage_name=None, volume_type_id=None, id=None, ids=None, enterprise_project_id=None, server_id=None, snapshot_policy_id=None): + def __init__(self, marker=None, name=None, limit=None, sort_key=None, offset=None, sort_dir=None, status=None, metadata=None, availability_zone=None, multiattach=None, service_type=None, dedicated_storage_id=None, dedicated_storage_name=None, volume_type_id=None, id=None, ids=None, enterprise_project_id=None, server_id=None): """ListVolumesRequest The model defined in huaweicloud sdk @@ -101,8 +99,6 @@ def __init__(self, marker=None, name=None, limit=None, sort_key=None, offset=Non :type enterprise_project_id: str :param server_id: 云服务器id。 :type server_id: str - :param snapshot_policy_id: 自动快照策略ID - :type snapshot_policy_id: str """ @@ -125,7 +121,6 @@ def __init__(self, marker=None, name=None, limit=None, sort_key=None, offset=Non self._ids = None self._enterprise_project_id = None self._server_id = None - self._snapshot_policy_id = None self.discriminator = None if marker is not None: @@ -164,8 +159,6 @@ def __init__(self, marker=None, name=None, limit=None, sort_key=None, offset=Non self.enterprise_project_id = enterprise_project_id if server_id is not None: self.server_id = server_id - if snapshot_policy_id is not None: - self.snapshot_policy_id = snapshot_policy_id @property def marker(self): @@ -563,28 +556,6 @@ def server_id(self, server_id): """ self._server_id = server_id - @property - def snapshot_policy_id(self): - """Gets the snapshot_policy_id of this ListVolumesRequest. - - 自动快照策略ID - - :return: The snapshot_policy_id of this ListVolumesRequest. - :rtype: str - """ - return self._snapshot_policy_id - - @snapshot_policy_id.setter - def snapshot_policy_id(self, snapshot_policy_id): - """Sets the snapshot_policy_id of this ListVolumesRequest. - - 自动快照策略ID - - :param snapshot_policy_id: The snapshot_policy_id of this ListVolumesRequest. - :type snapshot_policy_id: str - """ - self._snapshot_policy_id = snapshot_policy_id - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/volume_detail.py b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/volume_detail.py index d4fa9bf46c..2df765e2e3 100644 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/volume_detail.py +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/volume_detail.py @@ -52,8 +52,7 @@ class VolumeDetail: 'enterprise_project_id': 'str', 'serial_number': 'str', 'iops': 'Iops', - 'throughput': 'Throughput', - 'snapshot_policy_id': 'str' + 'throughput': 'Throughput' } attribute_map = { @@ -92,11 +91,10 @@ class VolumeDetail: 'enterprise_project_id': 'enterprise_project_id', 'serial_number': 'serial_number', 'iops': 'iops', - 'throughput': 'throughput', - 'snapshot_policy_id': 'snapshot_policy_id' + 'throughput': 'throughput' } - def __init__(self, id=None, links=None, name=None, status=None, attachments=None, availability_zone=None, os_vol_host_attrhost=None, source_volid=None, snapshot_id=None, description=None, created_at=None, os_vol_tenant_attrtenant_id=None, volume_image_metadata=None, volume_type=None, size=None, consistencygroup_id=None, bootable=None, metadata=None, updated_at=None, encrypted=None, replication_status=None, os_volume_replicationextended_status=None, os_vol_mig_status_attrmigstat=None, os_vol_mig_status_attrname_id=None, shareable=None, user_id=None, service_type=None, multiattach=None, dedicated_storage_id=None, dedicated_storage_name=None, tags=None, wwn=None, enterprise_project_id=None, serial_number=None, iops=None, throughput=None, snapshot_policy_id=None): + def __init__(self, id=None, links=None, name=None, status=None, attachments=None, availability_zone=None, os_vol_host_attrhost=None, source_volid=None, snapshot_id=None, description=None, created_at=None, os_vol_tenant_attrtenant_id=None, volume_image_metadata=None, volume_type=None, size=None, consistencygroup_id=None, bootable=None, metadata=None, updated_at=None, encrypted=None, replication_status=None, os_volume_replicationextended_status=None, os_vol_mig_status_attrmigstat=None, os_vol_mig_status_attrname_id=None, shareable=None, user_id=None, service_type=None, multiattach=None, dedicated_storage_id=None, dedicated_storage_name=None, tags=None, wwn=None, enterprise_project_id=None, serial_number=None, iops=None, throughput=None): """VolumeDetail The model defined in huaweicloud sdk @@ -173,8 +171,6 @@ def __init__(self, id=None, links=None, name=None, status=None, attachments=None :type iops: :class:`huaweicloudsdkevs.v2.Iops` :param throughput: :type throughput: :class:`huaweicloudsdkevs.v2.Throughput` - :param snapshot_policy_id: 云硬盘关联的自动快照策略ID - :type snapshot_policy_id: str """ @@ -215,7 +211,6 @@ def __init__(self, id=None, links=None, name=None, status=None, attachments=None self._serial_number = None self._iops = None self._throughput = None - self._snapshot_policy_id = None self.discriminator = None self.id = id @@ -264,8 +259,6 @@ def __init__(self, id=None, links=None, name=None, status=None, attachments=None self.iops = iops if throughput is not None: self.throughput = throughput - if snapshot_policy_id is not None: - self.snapshot_policy_id = snapshot_policy_id @property def id(self): @@ -1051,28 +1044,6 @@ def throughput(self, throughput): """ self._throughput = throughput - @property - def snapshot_policy_id(self): - """Gets the snapshot_policy_id of this VolumeDetail. - - 云硬盘关联的自动快照策略ID - - :return: The snapshot_policy_id of this VolumeDetail. - :rtype: str - """ - return self._snapshot_policy_id - - @snapshot_policy_id.setter - def snapshot_policy_id(self, snapshot_policy_id): - """Sets the snapshot_policy_id of this VolumeDetail. - - 云硬盘关联的自动快照策略ID - - :param snapshot_policy_id: The snapshot_policy_id of this VolumeDetail. - :type snapshot_policy_id: str - """ - self._snapshot_policy_id = snapshot_policy_id - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-evs/requirements.txt b/huaweicloud-sdk-evs/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-evs/requirements.txt +++ b/huaweicloud-sdk-evs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-evs/setup.py b/huaweicloud-sdk-evs/setup.py index a6c3a4c1c9..735f0300cc 100644 --- a/huaweicloud-sdk-evs/setup.py +++ b/huaweicloud-sdk-evs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkevs" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-frs/requirements.txt b/huaweicloud-sdk-frs/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-frs/requirements.txt +++ b/huaweicloud-sdk-frs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-frs/setup.py b/huaweicloud-sdk-frs/setup.py index a08ba783c0..6ab24b94bd 100644 --- a/huaweicloud-sdk-frs/setup.py +++ b/huaweicloud-sdk-frs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkfrs" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-functiongraph/requirements.txt b/huaweicloud-sdk-functiongraph/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-functiongraph/requirements.txt +++ b/huaweicloud-sdk-functiongraph/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-functiongraph/setup.py b/huaweicloud-sdk-functiongraph/setup.py index 7af8bd85c4..e828873b14 100644 --- a/huaweicloud-sdk-functiongraph/setup.py +++ b/huaweicloud-sdk-functiongraph/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkfunctiongraph" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ga/requirements.txt b/huaweicloud-sdk-ga/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-ga/requirements.txt +++ b/huaweicloud-sdk-ga/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-ga/setup.py b/huaweicloud-sdk-ga/setup.py index c61e4de8ee..7c34b5adf0 100644 --- a/huaweicloud-sdk-ga/setup.py +++ b/huaweicloud-sdk-ga/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkga" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/model/check_starrocks_params_response.py b/huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/model/check_starrocks_params_response.py index bc6d8c1611..02af7cb064 100644 --- a/huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/model/check_starrocks_params_response.py +++ b/huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/model/check_starrocks_params_response.py @@ -18,51 +18,51 @@ class CheckStarrocksParamsResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'check_starrocks_params_responce': 'list[ParamGroupParameterDifferences]' + 'differences': 'list[ParamGroupParameterDifferences]' } attribute_map = { - 'check_starrocks_params_responce': 'check_starrocks_params_responce' + 'differences': 'differences' } - def __init__(self, check_starrocks_params_responce=None): + def __init__(self, differences=None): """CheckStarrocksParamsResponse The model defined in huaweicloud sdk - :param check_starrocks_params_responce: 参数之间区别的集合。 - :type check_starrocks_params_responce: list[:class:`huaweicloudsdkgaussdb.v3.ParamGroupParameterDifferences`] + :param differences: 参数之间区别的集合。 + :type differences: list[:class:`huaweicloudsdkgaussdb.v3.ParamGroupParameterDifferences`] """ super(CheckStarrocksParamsResponse, self).__init__() - self._check_starrocks_params_responce = None + self._differences = None self.discriminator = None - if check_starrocks_params_responce is not None: - self.check_starrocks_params_responce = check_starrocks_params_responce + if differences is not None: + self.differences = differences @property - def check_starrocks_params_responce(self): - """Gets the check_starrocks_params_responce of this CheckStarrocksParamsResponse. + def differences(self): + """Gets the differences of this CheckStarrocksParamsResponse. 参数之间区别的集合。 - :return: The check_starrocks_params_responce of this CheckStarrocksParamsResponse. + :return: The differences of this CheckStarrocksParamsResponse. :rtype: list[:class:`huaweicloudsdkgaussdb.v3.ParamGroupParameterDifferences`] """ - return self._check_starrocks_params_responce + return self._differences - @check_starrocks_params_responce.setter - def check_starrocks_params_responce(self, check_starrocks_params_responce): - """Sets the check_starrocks_params_responce of this CheckStarrocksParamsResponse. + @differences.setter + def differences(self, differences): + """Sets the differences of this CheckStarrocksParamsResponse. 参数之间区别的集合。 - :param check_starrocks_params_responce: The check_starrocks_params_responce of this CheckStarrocksParamsResponse. - :type check_starrocks_params_responce: list[:class:`huaweicloudsdkgaussdb.v3.ParamGroupParameterDifferences`] + :param differences: The differences of this CheckStarrocksParamsResponse. + :type differences: list[:class:`huaweicloudsdkgaussdb.v3.ParamGroupParameterDifferences`] """ - self._check_starrocks_params_responce = check_starrocks_params_responce + self._differences = differences def to_dict(self): """Returns the model properties as a dict""" diff --git a/huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/model/star_rocks_create_request.py b/huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/model/star_rocks_create_request.py index 077c95ea28..f25a4f7d09 100644 --- a/huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/model/star_rocks_create_request.py +++ b/huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/model/star_rocks_create_request.py @@ -30,7 +30,8 @@ class StarRocksCreateRequest: 'be_volume': 'StarRocksCreateRequestBeVolume', 'az_code': 'str', 'time_zone': 'str', - 'tags_info': 'StarRocksCreateRequestTagsInfo' + 'tags_info': 'StarRocksCreateRequestTagsInfo', + 'security_group_id': 'str' } attribute_map = { @@ -47,10 +48,11 @@ class StarRocksCreateRequest: 'be_volume': 'be_volume', 'az_code': 'az_code', 'time_zone': 'time_zone', - 'tags_info': 'tags_info' + 'tags_info': 'tags_info', + 'security_group_id': 'security_group_id' } - def __init__(self, name=None, engine=None, ha=None, fe_flavor_id=None, be_flavor_id=None, db_root_pwd=None, fe_count=None, be_count=None, az_mode=None, fe_volume=None, be_volume=None, az_code=None, time_zone=None, tags_info=None): + def __init__(self, name=None, engine=None, ha=None, fe_flavor_id=None, be_flavor_id=None, db_root_pwd=None, fe_count=None, be_count=None, az_mode=None, fe_volume=None, be_volume=None, az_code=None, time_zone=None, tags_info=None, security_group_id=None): """StarRocksCreateRequest The model defined in huaweicloud sdk @@ -83,6 +85,8 @@ def __init__(self, name=None, engine=None, ha=None, fe_flavor_id=None, be_flavor :type time_zone: str :param tags_info: :type tags_info: :class:`huaweicloudsdkgaussdb.v3.StarRocksCreateRequestTagsInfo` + :param security_group_id: 实例安全组ID。默认与Taurus安全组ID一致。 + :type security_group_id: str """ @@ -101,6 +105,7 @@ def __init__(self, name=None, engine=None, ha=None, fe_flavor_id=None, be_flavor self._az_code = None self._time_zone = None self._tags_info = None + self._security_group_id = None self.discriminator = None self.name = name @@ -118,6 +123,8 @@ def __init__(self, name=None, engine=None, ha=None, fe_flavor_id=None, be_flavor if time_zone is not None: self.time_zone = time_zone self.tags_info = tags_info + if security_group_id is not None: + self.security_group_id = security_group_id @property def name(self): @@ -407,6 +414,28 @@ def tags_info(self, tags_info): """ self._tags_info = tags_info + @property + def security_group_id(self): + """Gets the security_group_id of this StarRocksCreateRequest. + + 实例安全组ID。默认与Taurus安全组ID一致。 + + :return: The security_group_id of this StarRocksCreateRequest. + :rtype: str + """ + return self._security_group_id + + @security_group_id.setter + def security_group_id(self, security_group_id): + """Sets the security_group_id of this StarRocksCreateRequest. + + 实例安全组ID。默认与Taurus安全组ID一致。 + + :param security_group_id: The security_group_id of this StarRocksCreateRequest. + :type security_group_id: str + """ + self._security_group_id = security_group_id + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-gaussdb/requirements.txt b/huaweicloud-sdk-gaussdb/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-gaussdb/requirements.txt +++ b/huaweicloud-sdk-gaussdb/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdb/setup.py b/huaweicloud-sdk-gaussdb/setup.py index d1da056381..25d9cc358f 100644 --- a/huaweicloud-sdk-gaussdb/setup.py +++ b/huaweicloud-sdk-gaussdb/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkgaussdb" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdbfornosql/requirements.txt b/huaweicloud-sdk-gaussdbfornosql/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-gaussdbfornosql/requirements.txt +++ b/huaweicloud-sdk-gaussdbfornosql/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdbfornosql/setup.py b/huaweicloud-sdk-gaussdbfornosql/setup.py index 626a395033..44a8f1dd67 100644 --- a/huaweicloud-sdk-gaussdbfornosql/setup.py +++ b/huaweicloud-sdk-gaussdbfornosql/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkgaussdbfornosql" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/delete_manual_backup_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/delete_manual_backup_response.py index 9cb5e6793e..fcac336e7f 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/delete_manual_backup_response.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/delete_manual_backup_response.py @@ -18,21 +18,81 @@ class DeleteManualBackupResponse(SdkResponse): sensitive_list = [] openapi_types = { + 'backup_id': 'str', + 'backup_name': 'str' } attribute_map = { + 'backup_id': 'backup_id', + 'backup_name': 'backup_name' } - def __init__(self): + def __init__(self, backup_id=None, backup_name=None): """DeleteManualBackupResponse The model defined in huaweicloud sdk + :param backup_id: 备份ID。 + :type backup_id: str + :param backup_name: 备份名称。 + :type backup_name: str """ super(DeleteManualBackupResponse, self).__init__() + + self._backup_id = None + self._backup_name = None self.discriminator = None + if backup_id is not None: + self.backup_id = backup_id + if backup_name is not None: + self.backup_name = backup_name + + @property + def backup_id(self): + """Gets the backup_id of this DeleteManualBackupResponse. + + 备份ID。 + + :return: The backup_id of this DeleteManualBackupResponse. + :rtype: str + """ + return self._backup_id + + @backup_id.setter + def backup_id(self, backup_id): + """Sets the backup_id of this DeleteManualBackupResponse. + + 备份ID。 + + :param backup_id: The backup_id of this DeleteManualBackupResponse. + :type backup_id: str + """ + self._backup_id = backup_id + + @property + def backup_name(self): + """Gets the backup_name of this DeleteManualBackupResponse. + + 备份名称。 + + :return: The backup_name of this DeleteManualBackupResponse. + :rtype: str + """ + return self._backup_name + + @backup_name.setter + def backup_name(self, backup_name): + """Sets the backup_name of this DeleteManualBackupResponse. + + 备份名称。 + + :param backup_name: The backup_name of this DeleteManualBackupResponse. + :type backup_name: str + """ + self._backup_name = backup_name + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-gaussdbforopengauss/requirements.txt b/huaweicloud-sdk-gaussdbforopengauss/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/requirements.txt +++ b/huaweicloud-sdk-gaussdbforopengauss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdbforopengauss/setup.py b/huaweicloud-sdk-gaussdbforopengauss/setup.py index e78d75a4a6..2819caa6e2 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/setup.py +++ b/huaweicloud-sdk-gaussdbforopengauss/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkgaussdbforopengauss" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-geip/requirements.txt b/huaweicloud-sdk-geip/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-geip/requirements.txt +++ b/huaweicloud-sdk-geip/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-geip/setup.py b/huaweicloud-sdk-geip/setup.py index f85c69e9c0..02405c543f 100644 --- a/huaweicloud-sdk-geip/setup.py +++ b/huaweicloud-sdk-geip/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkgeip" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ges/requirements.txt b/huaweicloud-sdk-ges/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-ges/requirements.txt +++ b/huaweicloud-sdk-ges/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-ges/setup.py b/huaweicloud-sdk-ges/setup.py index 2a31d88349..f343c851e3 100644 --- a/huaweicloud-sdk-ges/setup.py +++ b/huaweicloud-sdk-ges/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkges" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gsl/requirements.txt b/huaweicloud-sdk-gsl/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-gsl/requirements.txt +++ b/huaweicloud-sdk-gsl/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-gsl/setup.py b/huaweicloud-sdk-gsl/setup.py index 0668c7b7ff..ca9dee3850 100644 --- a/huaweicloud-sdk-gsl/setup.py +++ b/huaweicloud-sdk-gsl/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkgsl" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-hilens/requirements.txt b/huaweicloud-sdk-hilens/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-hilens/requirements.txt +++ b/huaweicloud-sdk-hilens/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-hilens/setup.py b/huaweicloud-sdk-hilens/setup.py index 50c502eb0d..26729a3afd 100644 --- a/huaweicloud-sdk-hilens/setup.py +++ b/huaweicloud-sdk-hilens/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkhilens" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-hss/requirements.txt b/huaweicloud-sdk-hss/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-hss/requirements.txt +++ b/huaweicloud-sdk-hss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-hss/setup.py b/huaweicloud-sdk-hss/setup.py index 367d6f20f6..5bf242abea 100644 --- a/huaweicloud-sdk-hss/setup.py +++ b/huaweicloud-sdk-hss/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkhss" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iam/requirements.txt b/huaweicloud-sdk-iam/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-iam/requirements.txt +++ b/huaweicloud-sdk-iam/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-iam/setup.py b/huaweicloud-sdk-iam/setup.py index f3bc183b81..91c27e44a2 100644 --- a/huaweicloud-sdk-iam/setup.py +++ b/huaweicloud-sdk-iam/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiam" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iamaccessanalyzer/requirements.txt b/huaweicloud-sdk-iamaccessanalyzer/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-iamaccessanalyzer/requirements.txt +++ b/huaweicloud-sdk-iamaccessanalyzer/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-iamaccessanalyzer/setup.py b/huaweicloud-sdk-iamaccessanalyzer/setup.py index 73c997f3f6..9f15004cd0 100644 --- a/huaweicloud-sdk-iamaccessanalyzer/setup.py +++ b/huaweicloud-sdk-iamaccessanalyzer/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiamaccessanalyzer" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-identitycenter/requirements.txt b/huaweicloud-sdk-identitycenter/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-identitycenter/requirements.txt +++ b/huaweicloud-sdk-identitycenter/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-identitycenter/setup.py b/huaweicloud-sdk-identitycenter/setup.py index 6969adacc0..e559616de0 100644 --- a/huaweicloud-sdk-identitycenter/setup.py +++ b/huaweicloud-sdk-identitycenter/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkidentitycenter" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-identitycenterstore/requirements.txt b/huaweicloud-sdk-identitycenterstore/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-identitycenterstore/requirements.txt +++ b/huaweicloud-sdk-identitycenterstore/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-identitycenterstore/setup.py b/huaweicloud-sdk-identitycenterstore/setup.py index 0f851726a4..b0a52ffd40 100644 --- a/huaweicloud-sdk-identitycenterstore/setup.py +++ b/huaweicloud-sdk-identitycenterstore/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkidentitycenterstore" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-idme/requirements.txt b/huaweicloud-sdk-idme/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-idme/requirements.txt +++ b/huaweicloud-sdk-idme/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-idme/setup.py b/huaweicloud-sdk-idme/setup.py index 3ace984258..82c3531293 100644 --- a/huaweicloud-sdk-idme/setup.py +++ b/huaweicloud-sdk-idme/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkidme" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-idmeclassicapi/requirements.txt b/huaweicloud-sdk-idmeclassicapi/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-idmeclassicapi/requirements.txt +++ b/huaweicloud-sdk-idmeclassicapi/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-idmeclassicapi/setup.py b/huaweicloud-sdk-idmeclassicapi/setup.py index 1316ff6a3d..52c69c9d01 100644 --- a/huaweicloud-sdk-idmeclassicapi/setup.py +++ b/huaweicloud-sdk-idmeclassicapi/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkidmeclassicapi" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iec/requirements.txt b/huaweicloud-sdk-iec/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-iec/requirements.txt +++ b/huaweicloud-sdk-iec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-iec/setup.py b/huaweicloud-sdk-iec/setup.py index 425c821807..fa2575efe5 100644 --- a/huaweicloud-sdk-iec/setup.py +++ b/huaweicloud-sdk-iec/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiec" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ief/requirements.txt b/huaweicloud-sdk-ief/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-ief/requirements.txt +++ b/huaweicloud-sdk-ief/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-ief/setup.py b/huaweicloud-sdk-ief/setup.py index 48aa5c590f..d6bd7260c2 100644 --- a/huaweicloud-sdk-ief/setup.py +++ b/huaweicloud-sdk-ief/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkief" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-image/requirements.txt b/huaweicloud-sdk-image/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-image/requirements.txt +++ b/huaweicloud-sdk-image/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-image/setup.py b/huaweicloud-sdk-image/setup.py index 4099e294ed..7dab0758fa 100644 --- a/huaweicloud-sdk-image/setup.py +++ b/huaweicloud-sdk-image/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkimage" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-imagesearch/requirements.txt b/huaweicloud-sdk-imagesearch/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-imagesearch/requirements.txt +++ b/huaweicloud-sdk-imagesearch/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-imagesearch/setup.py b/huaweicloud-sdk-imagesearch/setup.py index c7542d7281..29ed5b78c4 100644 --- a/huaweicloud-sdk-imagesearch/setup.py +++ b/huaweicloud-sdk-imagesearch/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkimagesearch" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ims/requirements.txt b/huaweicloud-sdk-ims/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-ims/requirements.txt +++ b/huaweicloud-sdk-ims/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-ims/setup.py b/huaweicloud-sdk-ims/setup.py index 31290525eb..829c93fa1f 100644 --- a/huaweicloud-sdk-ims/setup.py +++ b/huaweicloud-sdk-ims/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkims" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotanalytics/requirements.txt b/huaweicloud-sdk-iotanalytics/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-iotanalytics/requirements.txt +++ b/huaweicloud-sdk-iotanalytics/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-iotanalytics/setup.py b/huaweicloud-sdk-iotanalytics/setup.py index 4d45c34cd2..2f90157104 100644 --- a/huaweicloud-sdk-iotanalytics/setup.py +++ b/huaweicloud-sdk-iotanalytics/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiotanalytics" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotda/requirements.txt b/huaweicloud-sdk-iotda/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-iotda/requirements.txt +++ b/huaweicloud-sdk-iotda/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-iotda/setup.py b/huaweicloud-sdk-iotda/setup.py index 98571a7bcf..6849ac7aaa 100644 --- a/huaweicloud-sdk-iotda/setup.py +++ b/huaweicloud-sdk-iotda/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiotda" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotdm/requirements.txt b/huaweicloud-sdk-iotdm/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-iotdm/requirements.txt +++ b/huaweicloud-sdk-iotdm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-iotdm/setup.py b/huaweicloud-sdk-iotdm/setup.py index 186b91f2fa..d2569bb08d 100644 --- a/huaweicloud-sdk-iotdm/setup.py +++ b/huaweicloud-sdk-iotdm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiotdm" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotedge/requirements.txt b/huaweicloud-sdk-iotedge/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-iotedge/requirements.txt +++ b/huaweicloud-sdk-iotedge/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-iotedge/setup.py b/huaweicloud-sdk-iotedge/setup.py index 226e94de2f..4eb67926a2 100644 --- a/huaweicloud-sdk-iotedge/setup.py +++ b/huaweicloud-sdk-iotedge/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiotedge" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ivs/requirements.txt b/huaweicloud-sdk-ivs/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-ivs/requirements.txt +++ b/huaweicloud-sdk-ivs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-ivs/setup.py b/huaweicloud-sdk-ivs/setup.py index 8e05eee363..e0e5e2afe5 100644 --- a/huaweicloud-sdk-ivs/setup.py +++ b/huaweicloud-sdk-ivs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkivs" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kafka/requirements.txt b/huaweicloud-sdk-kafka/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-kafka/requirements.txt +++ b/huaweicloud-sdk-kafka/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-kafka/setup.py b/huaweicloud-sdk-kafka/setup.py index 24c29e312a..6cbc22a232 100644 --- a/huaweicloud-sdk-kafka/setup.py +++ b/huaweicloud-sdk-kafka/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkkafka" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kms/requirements.txt b/huaweicloud-sdk-kms/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-kms/requirements.txt +++ b/huaweicloud-sdk-kms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-kms/setup.py b/huaweicloud-sdk-kms/setup.py index 58699679cb..0c866c3066 100644 --- a/huaweicloud-sdk-kms/setup.py +++ b/huaweicloud-sdk-kms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkkms" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-koomessage/requirements.txt b/huaweicloud-sdk-koomessage/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-koomessage/requirements.txt +++ b/huaweicloud-sdk-koomessage/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-koomessage/setup.py b/huaweicloud-sdk-koomessage/setup.py index 2f2b5a15b9..1272bedd94 100644 --- a/huaweicloud-sdk-koomessage/setup.py +++ b/huaweicloud-sdk-koomessage/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkkoomessage" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kps/requirements.txt b/huaweicloud-sdk-kps/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-kps/requirements.txt +++ b/huaweicloud-sdk-kps/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-kps/setup.py b/huaweicloud-sdk-kps/setup.py index 35c013d9be..c4a02274ff 100644 --- a/huaweicloud-sdk-kps/setup.py +++ b/huaweicloud-sdk-kps/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkkps" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-lakeformation/requirements.txt b/huaweicloud-sdk-lakeformation/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-lakeformation/requirements.txt +++ b/huaweicloud-sdk-lakeformation/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-lakeformation/setup.py b/huaweicloud-sdk-lakeformation/setup.py index ec40277f1e..07c9dfae99 100644 --- a/huaweicloud-sdk-lakeformation/setup.py +++ b/huaweicloud-sdk-lakeformation/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdklakeformation" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-live/requirements.txt b/huaweicloud-sdk-live/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-live/requirements.txt +++ b/huaweicloud-sdk-live/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-live/setup.py b/huaweicloud-sdk-live/setup.py index e702400e64..73af6bbe1c 100644 --- a/huaweicloud-sdk-live/setup.py +++ b/huaweicloud-sdk-live/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdklive" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-lts/requirements.txt b/huaweicloud-sdk-lts/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-lts/requirements.txt +++ b/huaweicloud-sdk-lts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-lts/setup.py b/huaweicloud-sdk-lts/setup.py index b71122ab18..1daafa2c73 100644 --- a/huaweicloud-sdk-lts/setup.py +++ b/huaweicloud-sdk-lts/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdklts" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mapds/requirements.txt b/huaweicloud-sdk-mapds/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-mapds/requirements.txt +++ b/huaweicloud-sdk-mapds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-mapds/setup.py b/huaweicloud-sdk-mapds/setup.py index 78e376273d..67857afacd 100644 --- a/huaweicloud-sdk-mapds/setup.py +++ b/huaweicloud-sdk-mapds/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmapds" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mas/requirements.txt b/huaweicloud-sdk-mas/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-mas/requirements.txt +++ b/huaweicloud-sdk-mas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-mas/setup.py b/huaweicloud-sdk-mas/setup.py index 895413d96c..7f207ea83e 100644 --- a/huaweicloud-sdk-mas/setup.py +++ b/huaweicloud-sdk-mas/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmas" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-meeting/requirements.txt b/huaweicloud-sdk-meeting/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-meeting/requirements.txt +++ b/huaweicloud-sdk-meeting/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-meeting/setup.py b/huaweicloud-sdk-meeting/setup.py index a24f6d0c4b..cb723a554a 100644 --- a/huaweicloud-sdk-meeting/setup.py +++ b/huaweicloud-sdk-meeting/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmeeting" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/__init__.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/__init__.py index a12475cbfc..bd29f0cfea 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/__init__.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/__init__.py @@ -307,6 +307,7 @@ from huaweicloudsdkmetastudio.v1.model.live_event_report_request import LiveEventReportRequest from huaweicloudsdkmetastudio.v1.model.live_event_report_response import LiveEventReportResponse from huaweicloudsdkmetastudio.v1.model.live_job_log import LiveJobLog +from huaweicloudsdkmetastudio.v1.model.live_room_interaction_config import LiveRoomInteractionConfig from huaweicloudsdkmetastudio.v1.model.live_room_interaction_rule_info import LiveRoomInteractionRuleInfo from huaweicloudsdkmetastudio.v1.model.live_shoot_script_item import LiveShootScriptItem from huaweicloudsdkmetastudio.v1.model.live_video_script_info import LiveVideoScriptInfo diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_async_client.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_async_client.py index fdd17bf425..e30c1fe4b9 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_async_client.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_async_client.py @@ -9311,7 +9311,11 @@ def _update2d_model_training_job_http_info(self, request): def create_tts_audition_async(self, request): """创建TTS试听任务 - 该接口用于创建生成播报内容的语音试听文件任务。第三方音色试听需要收费,收费标准参考:https://marketplace.huaweicloud.com/product/OFFI919400645308506112#productid=OFFI919400645308506112 + 该接口用于创建生成播报内容的语音试听文件任务。 + + [第三方音色试听需要收费,收费标准参考:https://marketplace.huaweicloud.com/product/OFFI919400645308506112#productid=OFFI919400645308506112](tag:hc) + + [第三方音色试听需要收费,收费标准参考:https://marketplace.huaweicloud.com/intl/contents/939bf377-3005-472b-a4e2-383911e6102f](tag:hk) Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_client.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_client.py index 2c1b38ba20..aaecc446e1 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_client.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_client.py @@ -9311,7 +9311,11 @@ def _update2d_model_training_job_http_info(cls, request): def create_tts_audition(self, request): """创建TTS试听任务 - 该接口用于创建生成播报内容的语音试听文件任务。第三方音色试听需要收费,收费标准参考:https://marketplace.huaweicloud.com/product/OFFI919400645308506112#productid=OFFI919400645308506112 + 该接口用于创建生成播报内容的语音试听文件任务。 + + [第三方音色试听需要收费,收费标准参考:https://marketplace.huaweicloud.com/product/OFFI919400645308506112#productid=OFFI919400645308506112](tag:hc) + + [第三方音色试听需要收费,收费标准参考:https://marketplace.huaweicloud.com/intl/contents/939bf377-3005-472b-a4e2-383911e6102f](tag:hk) Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/__init__.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/__init__.py index 5b8685b854..f209341841 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/__init__.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/__init__.py @@ -305,6 +305,7 @@ from huaweicloudsdkmetastudio.v1.model.live_event_report_request import LiveEventReportRequest from huaweicloudsdkmetastudio.v1.model.live_event_report_response import LiveEventReportResponse from huaweicloudsdkmetastudio.v1.model.live_job_log import LiveJobLog +from huaweicloudsdkmetastudio.v1.model.live_room_interaction_config import LiveRoomInteractionConfig from huaweicloudsdkmetastudio.v1.model.live_room_interaction_rule_info import LiveRoomInteractionRuleInfo from huaweicloudsdkmetastudio.v1.model.live_shoot_script_item import LiveShootScriptItem from huaweicloudsdkmetastudio.v1.model.live_video_script_info import LiveVideoScriptInfo diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/control_smart_live_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/control_smart_live_req.py index 6ff7127c24..172c1b59d9 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/control_smart_live_req.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/control_smart_live_req.py @@ -33,7 +33,7 @@ def __init__(self, command=None, params=None, review_config=None): The model defined in huaweicloud sdk - :param command: **参数解释**: 命令名称。 **约束限制**: 不限制 **取值范围**: * INSERT_PLAY_SCRIPT:插入表演脚本。用于互动回复。数字人不变,背景不变。params结构定义:[PlayTextInfo](metastudio_02_0014.html#section0)。 * INSERT_PLAY_AUDIO:插入驱动音频。用于音频直接驱动。数字人不变,背景不变。params结构定义:[PlayAudioInfo](metastudio_02_0014.html#section1)。 * REWRITE_PLAY_SCRIPT:动态编辑未播放剧本。params结构定义:[scene_scripts](CreateSmartLiveRoom.html)。 * REWRITE_INTERACTION_RULES:动态修改互动规则。params结构定义:[interaction_rules](CreateSmartLiveRoom.html)。 * GET_CURRENT_PLAYING_SCRIPTS:查询本轮剧本列表。响应为:[LivePlayingScriptList](metastudio_02_0014.html#section2)结构。 * SHOW_LAYER:显示导播素材,用于直播导播。params结构定义:LiveGuideRuleInfo。 * REFRESH_OUTPUT_URL:更新当前任务的rtmp推流信息。params结构定义: RefreshOutputUrlConfig。 * GET_LIVE_JOB_CONFIG_INFO:获取任务中的房间信息。params结构定义:与[直播间详情响应体](ShowSmartLiveRoom.html)一致。 **默认取值**: 不涉及 + :param command: **参数解释**: 命令名称。 **约束限制**: 不限制 **取值范围**: * INSERT_PLAY_SCRIPT:插入表演脚本。用于互动回复。数字人不变,背景不变。params结构定义:[PlayTextInfo](metastudio_02_0014.xml#section0)。 * INSERT_PLAY_AUDIO:插入驱动音频。用于音频直接驱动。数字人不变,背景不变。params结构定义:[PlayAudioInfo](metastudio_02_0014.xml#section1)。 * REWRITE_PLAY_SCRIPT:动态编辑未播放剧本。params结构定义:[scene_scripts](CreateSmartLiveRoom.xml)。 * REWRITE_INTERACTION_RULES:动态修改互动规则。params结构定义:[interaction_rules](CreateSmartLiveRoom.xml)。 * GET_CURRENT_PLAYING_SCRIPTS:查询本轮剧本列表。响应为:[LivePlayingScriptList](metastudio_02_0014.xml#section2)结构。 * SHOW_LAYER:显示导播素材,用于直播导播。params结构定义:LiveGuideRuleInfo。 * REFRESH_OUTPUT_URL:更新当前任务的rtmp推流信息。params结构定义: RefreshOutputUrlConfig。 * GET_LIVE_JOB_CONFIG_INFO:获取任务中的房间信息。params结构定义:与[直播间详情响应体](ShowSmartLiveRoom.xml)一致。 * CLEAN_UP_INSERT_COMMAND:清理未播放的插入命令。params结构定义:[CleanUpInsertCommand](metastudio_02_0014.xml#section3) **默认取值**: 不涉及 :type command: str :param params: **参数解释**: 命令参数。 **约束限制**: 不限制 **取值范围**: 参考COMMNAD说明。 **默认取值**: 不涉及 :type params: object @@ -58,7 +58,7 @@ def __init__(self, command=None, params=None, review_config=None): def command(self): """Gets the command of this ControlSmartLiveReq. - **参数解释**: 命令名称。 **约束限制**: 不限制 **取值范围**: * INSERT_PLAY_SCRIPT:插入表演脚本。用于互动回复。数字人不变,背景不变。params结构定义:[PlayTextInfo](metastudio_02_0014.html#section0)。 * INSERT_PLAY_AUDIO:插入驱动音频。用于音频直接驱动。数字人不变,背景不变。params结构定义:[PlayAudioInfo](metastudio_02_0014.html#section1)。 * REWRITE_PLAY_SCRIPT:动态编辑未播放剧本。params结构定义:[scene_scripts](CreateSmartLiveRoom.html)。 * REWRITE_INTERACTION_RULES:动态修改互动规则。params结构定义:[interaction_rules](CreateSmartLiveRoom.html)。 * GET_CURRENT_PLAYING_SCRIPTS:查询本轮剧本列表。响应为:[LivePlayingScriptList](metastudio_02_0014.html#section2)结构。 * SHOW_LAYER:显示导播素材,用于直播导播。params结构定义:LiveGuideRuleInfo。 * REFRESH_OUTPUT_URL:更新当前任务的rtmp推流信息。params结构定义: RefreshOutputUrlConfig。 * GET_LIVE_JOB_CONFIG_INFO:获取任务中的房间信息。params结构定义:与[直播间详情响应体](ShowSmartLiveRoom.html)一致。 **默认取值**: 不涉及 + **参数解释**: 命令名称。 **约束限制**: 不限制 **取值范围**: * INSERT_PLAY_SCRIPT:插入表演脚本。用于互动回复。数字人不变,背景不变。params结构定义:[PlayTextInfo](metastudio_02_0014.xml#section0)。 * INSERT_PLAY_AUDIO:插入驱动音频。用于音频直接驱动。数字人不变,背景不变。params结构定义:[PlayAudioInfo](metastudio_02_0014.xml#section1)。 * REWRITE_PLAY_SCRIPT:动态编辑未播放剧本。params结构定义:[scene_scripts](CreateSmartLiveRoom.xml)。 * REWRITE_INTERACTION_RULES:动态修改互动规则。params结构定义:[interaction_rules](CreateSmartLiveRoom.xml)。 * GET_CURRENT_PLAYING_SCRIPTS:查询本轮剧本列表。响应为:[LivePlayingScriptList](metastudio_02_0014.xml#section2)结构。 * SHOW_LAYER:显示导播素材,用于直播导播。params结构定义:LiveGuideRuleInfo。 * REFRESH_OUTPUT_URL:更新当前任务的rtmp推流信息。params结构定义: RefreshOutputUrlConfig。 * GET_LIVE_JOB_CONFIG_INFO:获取任务中的房间信息。params结构定义:与[直播间详情响应体](ShowSmartLiveRoom.xml)一致。 * CLEAN_UP_INSERT_COMMAND:清理未播放的插入命令。params结构定义:[CleanUpInsertCommand](metastudio_02_0014.xml#section3) **默认取值**: 不涉及 :return: The command of this ControlSmartLiveReq. :rtype: str @@ -69,7 +69,7 @@ def command(self): def command(self, command): """Sets the command of this ControlSmartLiveReq. - **参数解释**: 命令名称。 **约束限制**: 不限制 **取值范围**: * INSERT_PLAY_SCRIPT:插入表演脚本。用于互动回复。数字人不变,背景不变。params结构定义:[PlayTextInfo](metastudio_02_0014.html#section0)。 * INSERT_PLAY_AUDIO:插入驱动音频。用于音频直接驱动。数字人不变,背景不变。params结构定义:[PlayAudioInfo](metastudio_02_0014.html#section1)。 * REWRITE_PLAY_SCRIPT:动态编辑未播放剧本。params结构定义:[scene_scripts](CreateSmartLiveRoom.html)。 * REWRITE_INTERACTION_RULES:动态修改互动规则。params结构定义:[interaction_rules](CreateSmartLiveRoom.html)。 * GET_CURRENT_PLAYING_SCRIPTS:查询本轮剧本列表。响应为:[LivePlayingScriptList](metastudio_02_0014.html#section2)结构。 * SHOW_LAYER:显示导播素材,用于直播导播。params结构定义:LiveGuideRuleInfo。 * REFRESH_OUTPUT_URL:更新当前任务的rtmp推流信息。params结构定义: RefreshOutputUrlConfig。 * GET_LIVE_JOB_CONFIG_INFO:获取任务中的房间信息。params结构定义:与[直播间详情响应体](ShowSmartLiveRoom.html)一致。 **默认取值**: 不涉及 + **参数解释**: 命令名称。 **约束限制**: 不限制 **取值范围**: * INSERT_PLAY_SCRIPT:插入表演脚本。用于互动回复。数字人不变,背景不变。params结构定义:[PlayTextInfo](metastudio_02_0014.xml#section0)。 * INSERT_PLAY_AUDIO:插入驱动音频。用于音频直接驱动。数字人不变,背景不变。params结构定义:[PlayAudioInfo](metastudio_02_0014.xml#section1)。 * REWRITE_PLAY_SCRIPT:动态编辑未播放剧本。params结构定义:[scene_scripts](CreateSmartLiveRoom.xml)。 * REWRITE_INTERACTION_RULES:动态修改互动规则。params结构定义:[interaction_rules](CreateSmartLiveRoom.xml)。 * GET_CURRENT_PLAYING_SCRIPTS:查询本轮剧本列表。响应为:[LivePlayingScriptList](metastudio_02_0014.xml#section2)结构。 * SHOW_LAYER:显示导播素材,用于直播导播。params结构定义:LiveGuideRuleInfo。 * REFRESH_OUTPUT_URL:更新当前任务的rtmp推流信息。params结构定义: RefreshOutputUrlConfig。 * GET_LIVE_JOB_CONFIG_INFO:获取任务中的房间信息。params结构定义:与[直播间详情响应体](ShowSmartLiveRoom.xml)一致。 * CLEAN_UP_INSERT_COMMAND:清理未播放的插入命令。params结构定义:[CleanUpInsertCommand](metastudio_02_0014.xml#section3) **默认取值**: 不涉及 :param command: The command of this ControlSmartLiveReq. :type command: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_digital_asset_request_body.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_digital_asset_request_body.py index 82e8600a98..19c451cf9d 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_digital_asset_request_body.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_digital_asset_request_body.py @@ -23,6 +23,7 @@ class CreateDigitalAssetRequestBody: 'review_config': 'ReviewConfig', 'tags': 'list[str]', 'asset_extra_meta': 'AssetExtraMeta', + 'system_properties': 'list[SystemProperty]', 'shared_config': 'AssetSharedConfig', 'is_need_generate_cover': 'bool', 'asset_order': 'int', @@ -36,13 +37,14 @@ class CreateDigitalAssetRequestBody: 'review_config': 'review_config', 'tags': 'tags', 'asset_extra_meta': 'asset_extra_meta', + 'system_properties': 'system_properties', 'shared_config': 'shared_config', 'is_need_generate_cover': 'is_need_generate_cover', 'asset_order': 'asset_order', 'supported_service': 'supported_service' } - def __init__(self, asset_name=None, asset_description=None, asset_type=None, review_config=None, tags=None, asset_extra_meta=None, shared_config=None, is_need_generate_cover=None, asset_order=None, supported_service=None): + def __init__(self, asset_name=None, asset_description=None, asset_type=None, review_config=None, tags=None, asset_extra_meta=None, system_properties=None, shared_config=None, is_need_generate_cover=None, asset_order=None, supported_service=None): """CreateDigitalAssetRequestBody The model defined in huaweicloud sdk @@ -59,6 +61,8 @@ def __init__(self, asset_name=None, asset_description=None, asset_type=None, rev :type tags: list[str] :param asset_extra_meta: :type asset_extra_meta: :class:`huaweicloudsdkmetastudio.v1.AssetExtraMeta` + :param system_properties: **参数解释**: 设置系统属性。内部参数,普通用户无需设置。 **约束限制**: 不涉及 **取值范围**: 个数最大为50个。 **默认取值**: 不涉及 + :type system_properties: list[:class:`huaweicloudsdkmetastudio.v1.SystemProperty`] :param shared_config: :type shared_config: :class:`huaweicloudsdkmetastudio.v1.AssetSharedConfig` :param is_need_generate_cover: **参数解释**: 是否需要生成封面。 **约束限制**: 仅用于视频类资产。 **取值范围**: * true:自动生成封面。 * false:不自动生成封面。 @@ -77,6 +81,7 @@ def __init__(self, asset_name=None, asset_description=None, asset_type=None, rev self._review_config = None self._tags = None self._asset_extra_meta = None + self._system_properties = None self._shared_config = None self._is_need_generate_cover = None self._asset_order = None @@ -93,6 +98,8 @@ def __init__(self, asset_name=None, asset_description=None, asset_type=None, rev self.tags = tags if asset_extra_meta is not None: self.asset_extra_meta = asset_extra_meta + if system_properties is not None: + self.system_properties = system_properties if shared_config is not None: self.shared_config = shared_config if is_need_generate_cover is not None: @@ -226,6 +233,28 @@ def asset_extra_meta(self, asset_extra_meta): """ self._asset_extra_meta = asset_extra_meta + @property + def system_properties(self): + """Gets the system_properties of this CreateDigitalAssetRequestBody. + + **参数解释**: 设置系统属性。内部参数,普通用户无需设置。 **约束限制**: 不涉及 **取值范围**: 个数最大为50个。 **默认取值**: 不涉及 + + :return: The system_properties of this CreateDigitalAssetRequestBody. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.SystemProperty`] + """ + return self._system_properties + + @system_properties.setter + def system_properties(self, system_properties): + """Sets the system_properties of this CreateDigitalAssetRequestBody. + + **参数解释**: 设置系统属性。内部参数,普通用户无需设置。 **约束限制**: 不涉及 **取值范围**: 个数最大为50个。 **默认取值**: 不涉及 + + :param system_properties: The system_properties of this CreateDigitalAssetRequestBody. + :type system_properties: list[:class:`huaweicloudsdkmetastudio.v1.SystemProperty`] + """ + self._system_properties = system_properties + @property def shared_config(self): """Gets the shared_config of this CreateDigitalAssetRequestBody. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_smart_live_room_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_smart_live_room_req.py index c5239938e1..109ddc5c04 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_smart_live_room_req.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_smart_live_room_req.py @@ -21,6 +21,7 @@ class CreateSmartLiveRoomReq: 'room_description': 'str', 'room_type': 'str', 'scene_scripts': 'list[LiveVideoScriptInfo]', + 'interaction_config': 'LiveRoomInteractionConfig', 'interaction_rules': 'list[LiveRoomInteractionRuleInfo]', 'play_policy': 'PlayPolicy', 'video_config': 'VideoConfig', @@ -41,6 +42,7 @@ class CreateSmartLiveRoomReq: 'room_description': 'room_description', 'room_type': 'room_type', 'scene_scripts': 'scene_scripts', + 'interaction_config': 'interaction_config', 'interaction_rules': 'interaction_rules', 'play_policy': 'play_policy', 'video_config': 'video_config', @@ -56,7 +58,7 @@ class CreateSmartLiveRoomReq: 'priv_data': 'priv_data' } - def __init__(self, room_name=None, room_description=None, room_type=None, scene_scripts=None, interaction_rules=None, play_policy=None, video_config=None, output_urls=None, stream_keys=None, backup_model_asset_ids=None, live_event_callback_config=None, rtc_callback_config=None, review_config=None, shared_config=None, view_mode=None, co_streamer_config=None, priv_data=None): + def __init__(self, room_name=None, room_description=None, room_type=None, scene_scripts=None, interaction_config=None, interaction_rules=None, play_policy=None, video_config=None, output_urls=None, stream_keys=None, backup_model_asset_ids=None, live_event_callback_config=None, rtc_callback_config=None, review_config=None, shared_config=None, view_mode=None, co_streamer_config=None, priv_data=None): """CreateSmartLiveRoomReq The model defined in huaweicloud sdk @@ -69,6 +71,8 @@ def __init__(self, room_name=None, room_description=None, room_type=None, scene_ :type room_type: str :param scene_scripts: 默认直播剧本列表。 :type scene_scripts: list[:class:`huaweicloudsdkmetastudio.v1.LiveVideoScriptInfo`] + :param interaction_config: + :type interaction_config: :class:`huaweicloudsdkmetastudio.v1.LiveRoomInteractionConfig` :param interaction_rules: 互动规则列表 :type interaction_rules: list[:class:`huaweicloudsdkmetastudio.v1.LiveRoomInteractionRuleInfo`] :param play_policy: @@ -103,6 +107,7 @@ def __init__(self, room_name=None, room_description=None, room_type=None, scene_ self._room_description = None self._room_type = None self._scene_scripts = None + self._interaction_config = None self._interaction_rules = None self._play_policy = None self._video_config = None @@ -125,6 +130,8 @@ def __init__(self, room_name=None, room_description=None, room_type=None, scene_ self.room_type = room_type if scene_scripts is not None: self.scene_scripts = scene_scripts + if interaction_config is not None: + self.interaction_config = interaction_config if interaction_rules is not None: self.interaction_rules = interaction_rules if play_policy is not None: @@ -240,6 +247,24 @@ def scene_scripts(self, scene_scripts): """ self._scene_scripts = scene_scripts + @property + def interaction_config(self): + """Gets the interaction_config of this CreateSmartLiveRoomReq. + + :return: The interaction_config of this CreateSmartLiveRoomReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LiveRoomInteractionConfig` + """ + return self._interaction_config + + @interaction_config.setter + def interaction_config(self, interaction_config): + """Sets the interaction_config of this CreateSmartLiveRoomReq. + + :param interaction_config: The interaction_config of this CreateSmartLiveRoomReq. + :type interaction_config: :class:`huaweicloudsdkmetastudio.v1.LiveRoomInteractionConfig` + """ + self._interaction_config = interaction_config + @property def interaction_rules(self): """Gets the interaction_rules of this CreateSmartLiveRoomReq. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/execute_smart_live_command_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/execute_smart_live_command_response.py index 8d8caa4fd9..d118a36093 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/execute_smart_live_command_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/execute_smart_live_command_response.py @@ -38,7 +38,7 @@ def __init__(self, command_id=None, command=None, result=None, x_request_id=None :param command_id: 控制命令ID :type command_id: str - :param command: 命令名称。 - INSERT_PLAY_SCRIPT:插入表演脚本。用于互动回复。数字人不变,背景不变。params结构定义:ShootScript。 - REWRITE_PLAY_SCRIPT:动态编辑未播放剧本。params结构定义:scene_scripts。 - INSERT_PLAY_AUDIO:插入驱动音频。用于音频直接驱动。数字人不变,背景不变。params结构定义:PlayAudioInfo。 - GET_CURRENT_PLAYING_SCRIPTS:查询本轮剧本列表。响应为LivePlayingScriptList结构。 - REFRESH_OUTPUT_URL:更新当前任务的rtmp推流信息。params结构定义: RefreshOutputUrlConfig。 - REWRITE_INTERACTION_RULES:动态修改互动规则。params结构定义:interaction_rules。 - GET_LIVE_JOB_CONFIG_INFO:获取任务中的房间信息。params结构定义:SmartLiveRoomInfo。 + :param command: 命令名称。 - INSERT_PLAY_SCRIPT:插入表演脚本。用于互动回复。数字人不变,背景不变。params结构定义:ShootScript。 - REWRITE_PLAY_SCRIPT:动态编辑未播放剧本。params结构定义:scene_scripts。 - INSERT_PLAY_AUDIO:插入驱动音频。用于音频直接驱动。数字人不变,背景不变。params结构定义:PlayAudioInfo。 - GET_CURRENT_PLAYING_SCRIPTS:查询本轮剧本列表。响应为LivePlayingScriptList结构。 - REFRESH_OUTPUT_URL:更新当前任务的rtmp推流信息。params结构定义: RefreshOutputUrlConfig。 - REWRITE_INTERACTION_RULES:动态修改互动规则。params结构定义:interaction_rules。 - GET_LIVE_JOB_CONFIG_INFO:获取任务中的房间信息。params结构定义:SmartLiveRoomInfo。 - CLEAN_UP_INSERT_COMMAND:清理未播放的插入命令。params结构定义:[CleanUpInsertCommand](metastudio_02_0014.html#section3) :type command: str :param result: 命令执行结果 :type result: str @@ -89,7 +89,7 @@ def command_id(self, command_id): def command(self): """Gets the command of this ExecuteSmartLiveCommandResponse. - 命令名称。 - INSERT_PLAY_SCRIPT:插入表演脚本。用于互动回复。数字人不变,背景不变。params结构定义:ShootScript。 - REWRITE_PLAY_SCRIPT:动态编辑未播放剧本。params结构定义:scene_scripts。 - INSERT_PLAY_AUDIO:插入驱动音频。用于音频直接驱动。数字人不变,背景不变。params结构定义:PlayAudioInfo。 - GET_CURRENT_PLAYING_SCRIPTS:查询本轮剧本列表。响应为LivePlayingScriptList结构。 - REFRESH_OUTPUT_URL:更新当前任务的rtmp推流信息。params结构定义: RefreshOutputUrlConfig。 - REWRITE_INTERACTION_RULES:动态修改互动规则。params结构定义:interaction_rules。 - GET_LIVE_JOB_CONFIG_INFO:获取任务中的房间信息。params结构定义:SmartLiveRoomInfo。 + 命令名称。 - INSERT_PLAY_SCRIPT:插入表演脚本。用于互动回复。数字人不变,背景不变。params结构定义:ShootScript。 - REWRITE_PLAY_SCRIPT:动态编辑未播放剧本。params结构定义:scene_scripts。 - INSERT_PLAY_AUDIO:插入驱动音频。用于音频直接驱动。数字人不变,背景不变。params结构定义:PlayAudioInfo。 - GET_CURRENT_PLAYING_SCRIPTS:查询本轮剧本列表。响应为LivePlayingScriptList结构。 - REFRESH_OUTPUT_URL:更新当前任务的rtmp推流信息。params结构定义: RefreshOutputUrlConfig。 - REWRITE_INTERACTION_RULES:动态修改互动规则。params结构定义:interaction_rules。 - GET_LIVE_JOB_CONFIG_INFO:获取任务中的房间信息。params结构定义:SmartLiveRoomInfo。 - CLEAN_UP_INSERT_COMMAND:清理未播放的插入命令。params结构定义:[CleanUpInsertCommand](metastudio_02_0014.html#section3) :return: The command of this ExecuteSmartLiveCommandResponse. :rtype: str @@ -100,7 +100,7 @@ def command(self): def command(self, command): """Sets the command of this ExecuteSmartLiveCommandResponse. - 命令名称。 - INSERT_PLAY_SCRIPT:插入表演脚本。用于互动回复。数字人不变,背景不变。params结构定义:ShootScript。 - REWRITE_PLAY_SCRIPT:动态编辑未播放剧本。params结构定义:scene_scripts。 - INSERT_PLAY_AUDIO:插入驱动音频。用于音频直接驱动。数字人不变,背景不变。params结构定义:PlayAudioInfo。 - GET_CURRENT_PLAYING_SCRIPTS:查询本轮剧本列表。响应为LivePlayingScriptList结构。 - REFRESH_OUTPUT_URL:更新当前任务的rtmp推流信息。params结构定义: RefreshOutputUrlConfig。 - REWRITE_INTERACTION_RULES:动态修改互动规则。params结构定义:interaction_rules。 - GET_LIVE_JOB_CONFIG_INFO:获取任务中的房间信息。params结构定义:SmartLiveRoomInfo。 + 命令名称。 - INSERT_PLAY_SCRIPT:插入表演脚本。用于互动回复。数字人不变,背景不变。params结构定义:ShootScript。 - REWRITE_PLAY_SCRIPT:动态编辑未播放剧本。params结构定义:scene_scripts。 - INSERT_PLAY_AUDIO:插入驱动音频。用于音频直接驱动。数字人不变,背景不变。params结构定义:PlayAudioInfo。 - GET_CURRENT_PLAYING_SCRIPTS:查询本轮剧本列表。响应为LivePlayingScriptList结构。 - REFRESH_OUTPUT_URL:更新当前任务的rtmp推流信息。params结构定义: RefreshOutputUrlConfig。 - REWRITE_INTERACTION_RULES:动态修改互动规则。params结构定义:interaction_rules。 - GET_LIVE_JOB_CONFIG_INFO:获取任务中的房间信息。params结构定义:SmartLiveRoomInfo。 - CLEAN_UP_INSERT_COMMAND:清理未播放的插入命令。params结构定义:[CleanUpInsertCommand](metastudio_02_0014.html#section3) :param command: The command of this ExecuteSmartLiveCommandResponse. :type command: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/live_room_interaction_config.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/live_room_interaction_config.py new file mode 100644 index 0000000000..1026614fb7 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/live_room_interaction_config.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class LiveRoomInteractionConfig: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'play_type': 'str', + 'ignore_current_sentence': 'bool' + } + + attribute_map = { + 'play_type': 'play_type', + 'ignore_current_sentence': 'ignore_current_sentence' + } + + def __init__(self, play_type=None, ignore_current_sentence=None): + """LiveRoomInteractionConfig + + The model defined in huaweicloud sdk + + :param play_type: 播放类型。 - APPEND:追加,放置在场景播放队列尾部 - INSERT: 插入,在两个音频文件,或者文本句末添加。 - PLAY_NOW : 立即插入,收到指令后,立即播放,无需等待句末。 + :type play_type: str + :param ignore_current_sentence: 忽略互动回复中断句子后半句不再播放。用于立即中断场景。默认不忽略。 + :type ignore_current_sentence: bool + """ + + + + self._play_type = None + self._ignore_current_sentence = None + self.discriminator = None + + if play_type is not None: + self.play_type = play_type + if ignore_current_sentence is not None: + self.ignore_current_sentence = ignore_current_sentence + + @property + def play_type(self): + """Gets the play_type of this LiveRoomInteractionConfig. + + 播放类型。 - APPEND:追加,放置在场景播放队列尾部 - INSERT: 插入,在两个音频文件,或者文本句末添加。 - PLAY_NOW : 立即插入,收到指令后,立即播放,无需等待句末。 + + :return: The play_type of this LiveRoomInteractionConfig. + :rtype: str + """ + return self._play_type + + @play_type.setter + def play_type(self, play_type): + """Sets the play_type of this LiveRoomInteractionConfig. + + 播放类型。 - APPEND:追加,放置在场景播放队列尾部 - INSERT: 插入,在两个音频文件,或者文本句末添加。 - PLAY_NOW : 立即插入,收到指令后,立即播放,无需等待句末。 + + :param play_type: The play_type of this LiveRoomInteractionConfig. + :type play_type: str + """ + self._play_type = play_type + + @property + def ignore_current_sentence(self): + """Gets the ignore_current_sentence of this LiveRoomInteractionConfig. + + 忽略互动回复中断句子后半句不再播放。用于立即中断场景。默认不忽略。 + + :return: The ignore_current_sentence of this LiveRoomInteractionConfig. + :rtype: bool + """ + return self._ignore_current_sentence + + @ignore_current_sentence.setter + def ignore_current_sentence(self, ignore_current_sentence): + """Sets the ignore_current_sentence of this LiveRoomInteractionConfig. + + 忽略互动回复中断句子后半句不再播放。用于立即中断场景。默认不忽略。 + + :param ignore_current_sentence: The ignore_current_sentence of this LiveRoomInteractionConfig. + :type ignore_current_sentence: bool + """ + self._ignore_current_sentence = ignore_current_sentence + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, LiveRoomInteractionConfig): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_live_room_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_live_room_response.py index 4d98aaf3b1..a8df6ecad1 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_live_room_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_live_room_response.py @@ -22,6 +22,7 @@ class ShowSmartLiveRoomResponse(SdkResponse): 'room_description': 'str', 'room_type': 'str', 'scene_scripts': 'list[LiveVideoScriptInfo]', + 'interaction_config': 'LiveRoomInteractionConfig', 'interaction_rules': 'list[LiveRoomInteractionRuleInfo]', 'play_policy': 'PlayPolicy', 'video_config': 'VideoConfig', @@ -50,6 +51,7 @@ class ShowSmartLiveRoomResponse(SdkResponse): 'room_description': 'room_description', 'room_type': 'room_type', 'scene_scripts': 'scene_scripts', + 'interaction_config': 'interaction_config', 'interaction_rules': 'interaction_rules', 'play_policy': 'play_policy', 'video_config': 'video_config', @@ -73,7 +75,7 @@ class ShowSmartLiveRoomResponse(SdkResponse): 'x_request_id': 'X-Request-Id' } - def __init__(self, room_name=None, room_description=None, room_type=None, scene_scripts=None, interaction_rules=None, play_policy=None, video_config=None, output_urls=None, stream_keys=None, backup_model_asset_ids=None, live_event_callback_config=None, rtc_callback_config=None, review_config=None, shared_config=None, view_mode=None, co_streamer_config=None, priv_data=None, room_id=None, create_time=None, update_time=None, cover_url=None, thumbnail=None, room_state=None, error_info=None, x_request_id=None): + def __init__(self, room_name=None, room_description=None, room_type=None, scene_scripts=None, interaction_config=None, interaction_rules=None, play_policy=None, video_config=None, output_urls=None, stream_keys=None, backup_model_asset_ids=None, live_event_callback_config=None, rtc_callback_config=None, review_config=None, shared_config=None, view_mode=None, co_streamer_config=None, priv_data=None, room_id=None, create_time=None, update_time=None, cover_url=None, thumbnail=None, room_state=None, error_info=None, x_request_id=None): """ShowSmartLiveRoomResponse The model defined in huaweicloud sdk @@ -86,6 +88,8 @@ def __init__(self, room_name=None, room_description=None, room_type=None, scene_ :type room_type: str :param scene_scripts: 默认直播剧本列表。 :type scene_scripts: list[:class:`huaweicloudsdkmetastudio.v1.LiveVideoScriptInfo`] + :param interaction_config: + :type interaction_config: :class:`huaweicloudsdkmetastudio.v1.LiveRoomInteractionConfig` :param interaction_rules: 互动规则列表 :type interaction_rules: list[:class:`huaweicloudsdkmetastudio.v1.LiveRoomInteractionRuleInfo`] :param play_policy: @@ -136,6 +140,7 @@ def __init__(self, room_name=None, room_description=None, room_type=None, scene_ self._room_description = None self._room_type = None self._scene_scripts = None + self._interaction_config = None self._interaction_rules = None self._play_policy = None self._video_config = None @@ -166,6 +171,8 @@ def __init__(self, room_name=None, room_description=None, room_type=None, scene_ self.room_type = room_type if scene_scripts is not None: self.scene_scripts = scene_scripts + if interaction_config is not None: + self.interaction_config = interaction_config if interaction_rules is not None: self.interaction_rules = interaction_rules if play_policy is not None: @@ -297,6 +304,24 @@ def scene_scripts(self, scene_scripts): """ self._scene_scripts = scene_scripts + @property + def interaction_config(self): + """Gets the interaction_config of this ShowSmartLiveRoomResponse. + + :return: The interaction_config of this ShowSmartLiveRoomResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LiveRoomInteractionConfig` + """ + return self._interaction_config + + @interaction_config.setter + def interaction_config(self, interaction_config): + """Sets the interaction_config of this ShowSmartLiveRoomResponse. + + :param interaction_config: The interaction_config of this ShowSmartLiveRoomResponse. + :type interaction_config: :class:`huaweicloudsdkmetastudio.v1.LiveRoomInteractionConfig` + """ + self._interaction_config = interaction_config + @property def interaction_rules(self): """Gets the interaction_rules of this ShowSmartLiveRoomResponse. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/system_property.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/system_property.py index 5bf152fc08..c3a5ab48b3 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/system_property.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/system_property.py @@ -35,7 +35,7 @@ def __init__(self, action=None, key=None, value=None): :param action: **参数解释**: 操作。 **约束限制**: 系统属性仅为系统设置,普通用户无法修改。 **取值范围**: * ADD:增加 * DELETE:删除 **默认取值**: 不涉及 :type action: str - :param key: **参数解释**: 系统属性条目。 **约束限制**: 系统属性仅为系统设置,普通用户无法修改。 **取值范围**: 公共资产属性: * BACKGROUND_IMG:视频制作的背景图片。value设置成Yes * CREATED_BY_PLATFORM: 是否平台生成。 分身数字人资产属性: * MATERIAL_IMG:素材图片,用作前景。value设置成Yes。 * MATERIAL_VIDEO:素材视频,用作前景。value设置成Yes。 * BUSSINESS_CARD_VIDEO:名片视频。 * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes。 3D数字人资产属性: * STYLE_ID:风格Id。 * DH_ID:数字人ID(尚未启用)。 * PLATFORM_AVAILABLE:是否平台可用(尚未启用)。 * RENDER_ENGINE:引擎类型。value可选UE或MetaEngine。 * BACKGROUND_IMG:视频制作的2D背景图片。value设置成Yes * BACKGROUND_SCENE:视频制作的2D背景场景。value可选Horizontal(横屏)或者Vertical(竖屏) * CREATED_BY_PLATFORM: 是否平台生成 * MATERIAL_IMG:素材图片,用作前景。value设置成Yes。 * MATERIAL_VIDEO:素材视频,用作前景。value设置成Yes。 * BUSSINESS_CARD_VIDEO:名片视频(过期) * BUSINESS_CARD_VIDEO:名片视频 * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes * LAYER_CONFIG_ENABLE: 可用前景图层配置 **默认取值**: 不涉及 + :param key: **参数解释**: 系统属性条目。 **约束限制**: 系统属性仅为系统设置,普通用户无法修改。 **取值范围**: 公共资产属性: * BACKGROUND_IMG:视频制作的背景图片。value设置成Yes * CREATED_BY_PLATFORM: 是否平台生成。 分身数字人资产属性: * MATERIAL_IMG:素材图片,用作图片图层。value设置成Yes。 * MATERIAL_VIDEO:素材视频,用作视频图层。value设置成Yes。 * DIGITAL_HUMAN_2D_VIDEO:分身数字人视频。 * DIGITAL_HUMAN_3D_VIDEO:3D数字人视频。 * BUSINESS_CARD_VIDEO:名片视频。 * BUSSINESS_CARD_VIDEO:名片视频(过期) * PHOTO_VIDEO:照片数字人视频。 视频翻译资产属性: * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes。 * TRANSLATED_VIDEO: 视频翻译后的视频 3D数字人资产属性: * STYLE_ID:风格Id。 * DH_ID:数字人ID(尚未启用)。 * PLATFORM_AVAILABLE:是否平台可用(尚未启用)。 * RENDER_ENGINE:引擎类型。value可选UE或MetaEngine。 * BACKGROUND_SCENE:视频制作的2D背景场景。value可选Horizontal(横屏)或者Vertical(竖屏)。 * LAYER_CONFIG_ENABLE: 可用前景图层配置 **默认取值**: 不涉及 :type key: str :param value: **参数解释**: 系统属性属性值。 **约束限制**: 系统属性仅为系统设置,普通用户无法修改。 **取值范围**: 字符长度1-1024位 **默认取值** 不涉及 :type value: str @@ -81,7 +81,7 @@ def action(self, action): def key(self): """Gets the key of this SystemProperty. - **参数解释**: 系统属性条目。 **约束限制**: 系统属性仅为系统设置,普通用户无法修改。 **取值范围**: 公共资产属性: * BACKGROUND_IMG:视频制作的背景图片。value设置成Yes * CREATED_BY_PLATFORM: 是否平台生成。 分身数字人资产属性: * MATERIAL_IMG:素材图片,用作前景。value设置成Yes。 * MATERIAL_VIDEO:素材视频,用作前景。value设置成Yes。 * BUSSINESS_CARD_VIDEO:名片视频。 * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes。 3D数字人资产属性: * STYLE_ID:风格Id。 * DH_ID:数字人ID(尚未启用)。 * PLATFORM_AVAILABLE:是否平台可用(尚未启用)。 * RENDER_ENGINE:引擎类型。value可选UE或MetaEngine。 * BACKGROUND_IMG:视频制作的2D背景图片。value设置成Yes * BACKGROUND_SCENE:视频制作的2D背景场景。value可选Horizontal(横屏)或者Vertical(竖屏) * CREATED_BY_PLATFORM: 是否平台生成 * MATERIAL_IMG:素材图片,用作前景。value设置成Yes。 * MATERIAL_VIDEO:素材视频,用作前景。value设置成Yes。 * BUSSINESS_CARD_VIDEO:名片视频(过期) * BUSINESS_CARD_VIDEO:名片视频 * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes * LAYER_CONFIG_ENABLE: 可用前景图层配置 **默认取值**: 不涉及 + **参数解释**: 系统属性条目。 **约束限制**: 系统属性仅为系统设置,普通用户无法修改。 **取值范围**: 公共资产属性: * BACKGROUND_IMG:视频制作的背景图片。value设置成Yes * CREATED_BY_PLATFORM: 是否平台生成。 分身数字人资产属性: * MATERIAL_IMG:素材图片,用作图片图层。value设置成Yes。 * MATERIAL_VIDEO:素材视频,用作视频图层。value设置成Yes。 * DIGITAL_HUMAN_2D_VIDEO:分身数字人视频。 * DIGITAL_HUMAN_3D_VIDEO:3D数字人视频。 * BUSINESS_CARD_VIDEO:名片视频。 * BUSSINESS_CARD_VIDEO:名片视频(过期) * PHOTO_VIDEO:照片数字人视频。 视频翻译资产属性: * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes。 * TRANSLATED_VIDEO: 视频翻译后的视频 3D数字人资产属性: * STYLE_ID:风格Id。 * DH_ID:数字人ID(尚未启用)。 * PLATFORM_AVAILABLE:是否平台可用(尚未启用)。 * RENDER_ENGINE:引擎类型。value可选UE或MetaEngine。 * BACKGROUND_SCENE:视频制作的2D背景场景。value可选Horizontal(横屏)或者Vertical(竖屏)。 * LAYER_CONFIG_ENABLE: 可用前景图层配置 **默认取值**: 不涉及 :return: The key of this SystemProperty. :rtype: str @@ -92,7 +92,7 @@ def key(self): def key(self, key): """Sets the key of this SystemProperty. - **参数解释**: 系统属性条目。 **约束限制**: 系统属性仅为系统设置,普通用户无法修改。 **取值范围**: 公共资产属性: * BACKGROUND_IMG:视频制作的背景图片。value设置成Yes * CREATED_BY_PLATFORM: 是否平台生成。 分身数字人资产属性: * MATERIAL_IMG:素材图片,用作前景。value设置成Yes。 * MATERIAL_VIDEO:素材视频,用作前景。value设置成Yes。 * BUSSINESS_CARD_VIDEO:名片视频。 * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes。 3D数字人资产属性: * STYLE_ID:风格Id。 * DH_ID:数字人ID(尚未启用)。 * PLATFORM_AVAILABLE:是否平台可用(尚未启用)。 * RENDER_ENGINE:引擎类型。value可选UE或MetaEngine。 * BACKGROUND_IMG:视频制作的2D背景图片。value设置成Yes * BACKGROUND_SCENE:视频制作的2D背景场景。value可选Horizontal(横屏)或者Vertical(竖屏) * CREATED_BY_PLATFORM: 是否平台生成 * MATERIAL_IMG:素材图片,用作前景。value设置成Yes。 * MATERIAL_VIDEO:素材视频,用作前景。value设置成Yes。 * BUSSINESS_CARD_VIDEO:名片视频(过期) * BUSINESS_CARD_VIDEO:名片视频 * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes * LAYER_CONFIG_ENABLE: 可用前景图层配置 **默认取值**: 不涉及 + **参数解释**: 系统属性条目。 **约束限制**: 系统属性仅为系统设置,普通用户无法修改。 **取值范围**: 公共资产属性: * BACKGROUND_IMG:视频制作的背景图片。value设置成Yes * CREATED_BY_PLATFORM: 是否平台生成。 分身数字人资产属性: * MATERIAL_IMG:素材图片,用作图片图层。value设置成Yes。 * MATERIAL_VIDEO:素材视频,用作视频图层。value设置成Yes。 * DIGITAL_HUMAN_2D_VIDEO:分身数字人视频。 * DIGITAL_HUMAN_3D_VIDEO:3D数字人视频。 * BUSINESS_CARD_VIDEO:名片视频。 * BUSSINESS_CARD_VIDEO:名片视频(过期) * PHOTO_VIDEO:照片数字人视频。 视频翻译资产属性: * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes。 * TRANSLATED_VIDEO: 视频翻译后的视频 3D数字人资产属性: * STYLE_ID:风格Id。 * DH_ID:数字人ID(尚未启用)。 * PLATFORM_AVAILABLE:是否平台可用(尚未启用)。 * RENDER_ENGINE:引擎类型。value可选UE或MetaEngine。 * BACKGROUND_SCENE:视频制作的2D背景场景。value可选Horizontal(横屏)或者Vertical(竖屏)。 * LAYER_CONFIG_ENABLE: 可用前景图层配置 **默认取值**: 不涉及 :param key: The key of this SystemProperty. :type key: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/trigger_process.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/trigger_process.py index 1d87ff12e2..019bce4a56 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/trigger_process.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/trigger_process.py @@ -25,7 +25,8 @@ class TriggerProcess: 'reply_audios': 'list[ReplyAudioInfo]', 'reply_order': 'str', 'reply_role': 'str', - 'robot_id': 'str' + 'robot_id': 'str', + 'play_type': 'str' } attribute_map = { @@ -37,10 +38,11 @@ class TriggerProcess: 'reply_audios': 'reply_audios', 'reply_order': 'reply_order', 'reply_role': 'reply_role', - 'robot_id': 'robot_id' + 'robot_id': 'robot_id', + 'play_type': 'play_type' } - def __init__(self, time_window=None, reply_mode=None, layer_config=None, extra_layer_config=None, reply_texts=None, reply_audios=None, reply_order=None, reply_role=None, robot_id=None): + def __init__(self, time_window=None, reply_mode=None, layer_config=None, extra_layer_config=None, reply_texts=None, reply_audios=None, reply_order=None, reply_role=None, robot_id=None, play_type=None): """TriggerProcess The model defined in huaweicloud sdk @@ -63,6 +65,8 @@ def __init__(self, time_window=None, reply_mode=None, layer_config=None, extra_l :type reply_role: str :param robot_id: **参数解释**: 机器人ID。 **约束限制**: reply_mode为INTELLIGENT_REPLY时必填,智能交互配置的大模型机器人ID。 获取方法请参考[创建应用](CreateRobot.xml)。 **取值范围**: 字符长度0-64位。 **默认取值**: 不涉及 :type robot_id: str + :param play_type: 回复播放类型。 - APPEND:追加,放置在场景播放队列尾部 - INSERT: 插入,在两个音频文件,或者文本句末添加。 - PLAY_NOW : 立即插入,收到指令后,立即播放,无需等待句末。 + :type play_type: str """ @@ -76,6 +80,7 @@ def __init__(self, time_window=None, reply_mode=None, layer_config=None, extra_l self._reply_order = None self._reply_role = None self._robot_id = None + self._play_type = None self.discriminator = None if time_window is not None: @@ -96,6 +101,8 @@ def __init__(self, time_window=None, reply_mode=None, layer_config=None, extra_l self.reply_role = reply_role if robot_id is not None: self.robot_id = robot_id + if play_type is not None: + self.play_type = play_type @property def time_window(self): @@ -287,6 +294,28 @@ def robot_id(self, robot_id): """ self._robot_id = robot_id + @property + def play_type(self): + """Gets the play_type of this TriggerProcess. + + 回复播放类型。 - APPEND:追加,放置在场景播放队列尾部 - INSERT: 插入,在两个音频文件,或者文本句末添加。 - PLAY_NOW : 立即插入,收到指令后,立即播放,无需等待句末。 + + :return: The play_type of this TriggerProcess. + :rtype: str + """ + return self._play_type + + @play_type.setter + def play_type(self, play_type): + """Sets the play_type of this TriggerProcess. + + 回复播放类型。 - APPEND:追加,放置在场景播放队列尾部 - INSERT: 插入,在两个音频文件,或者文本句末添加。 - PLAY_NOW : 立即插入,收到指令后,立即播放,无需等待句末。 + + :param play_type: The play_type of this TriggerProcess. + :type play_type: str + """ + self._play_type = play_type + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_smart_live_room_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_smart_live_room_response.py index c0d6285199..aa65ad59f0 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_smart_live_room_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_smart_live_room_response.py @@ -22,6 +22,7 @@ class UpdateSmartLiveRoomResponse(SdkResponse): 'room_description': 'str', 'room_type': 'str', 'scene_scripts': 'list[LiveVideoScriptInfo]', + 'interaction_config': 'LiveRoomInteractionConfig', 'interaction_rules': 'list[LiveRoomInteractionRuleInfo]', 'play_policy': 'PlayPolicy', 'video_config': 'VideoConfig', @@ -50,6 +51,7 @@ class UpdateSmartLiveRoomResponse(SdkResponse): 'room_description': 'room_description', 'room_type': 'room_type', 'scene_scripts': 'scene_scripts', + 'interaction_config': 'interaction_config', 'interaction_rules': 'interaction_rules', 'play_policy': 'play_policy', 'video_config': 'video_config', @@ -73,7 +75,7 @@ class UpdateSmartLiveRoomResponse(SdkResponse): 'x_request_id': 'X-Request-Id' } - def __init__(self, room_name=None, room_description=None, room_type=None, scene_scripts=None, interaction_rules=None, play_policy=None, video_config=None, output_urls=None, stream_keys=None, backup_model_asset_ids=None, live_event_callback_config=None, rtc_callback_config=None, review_config=None, shared_config=None, view_mode=None, co_streamer_config=None, priv_data=None, room_id=None, create_time=None, update_time=None, cover_url=None, thumbnail=None, room_state=None, error_info=None, x_request_id=None): + def __init__(self, room_name=None, room_description=None, room_type=None, scene_scripts=None, interaction_config=None, interaction_rules=None, play_policy=None, video_config=None, output_urls=None, stream_keys=None, backup_model_asset_ids=None, live_event_callback_config=None, rtc_callback_config=None, review_config=None, shared_config=None, view_mode=None, co_streamer_config=None, priv_data=None, room_id=None, create_time=None, update_time=None, cover_url=None, thumbnail=None, room_state=None, error_info=None, x_request_id=None): """UpdateSmartLiveRoomResponse The model defined in huaweicloud sdk @@ -86,6 +88,8 @@ def __init__(self, room_name=None, room_description=None, room_type=None, scene_ :type room_type: str :param scene_scripts: 默认直播剧本列表。 :type scene_scripts: list[:class:`huaweicloudsdkmetastudio.v1.LiveVideoScriptInfo`] + :param interaction_config: + :type interaction_config: :class:`huaweicloudsdkmetastudio.v1.LiveRoomInteractionConfig` :param interaction_rules: 互动规则列表 :type interaction_rules: list[:class:`huaweicloudsdkmetastudio.v1.LiveRoomInteractionRuleInfo`] :param play_policy: @@ -136,6 +140,7 @@ def __init__(self, room_name=None, room_description=None, room_type=None, scene_ self._room_description = None self._room_type = None self._scene_scripts = None + self._interaction_config = None self._interaction_rules = None self._play_policy = None self._video_config = None @@ -166,6 +171,8 @@ def __init__(self, room_name=None, room_description=None, room_type=None, scene_ self.room_type = room_type if scene_scripts is not None: self.scene_scripts = scene_scripts + if interaction_config is not None: + self.interaction_config = interaction_config if interaction_rules is not None: self.interaction_rules = interaction_rules if play_policy is not None: @@ -297,6 +304,24 @@ def scene_scripts(self, scene_scripts): """ self._scene_scripts = scene_scripts + @property + def interaction_config(self): + """Gets the interaction_config of this UpdateSmartLiveRoomResponse. + + :return: The interaction_config of this UpdateSmartLiveRoomResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LiveRoomInteractionConfig` + """ + return self._interaction_config + + @interaction_config.setter + def interaction_config(self, interaction_config): + """Sets the interaction_config of this UpdateSmartLiveRoomResponse. + + :param interaction_config: The interaction_config of this UpdateSmartLiveRoomResponse. + :type interaction_config: :class:`huaweicloudsdkmetastudio.v1.LiveRoomInteractionConfig` + """ + self._interaction_config = interaction_config + @property def interaction_rules(self): """Gets the interaction_rules of this UpdateSmartLiveRoomResponse. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/voice_capability.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/voice_capability.py index 881de7bd18..e36d11cb9b 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/voice_capability.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/voice_capability.py @@ -26,7 +26,9 @@ class VoiceCapability: 'is_support_ssml_say_as': 'bool', 'is_support_ssml_sub': 'bool', 'is_support_word': 'bool', - 'is_support_voice_cache': 'bool' + 'is_support_voice_cache': 'bool', + 'conversion_rate': 'float', + 'conversion_rate_en': 'float' } attribute_map = { @@ -39,10 +41,12 @@ class VoiceCapability: 'is_support_ssml_say_as': 'is_support_ssml_say_as', 'is_support_ssml_sub': 'is_support_ssml_sub', 'is_support_word': 'is_support_word', - 'is_support_voice_cache': 'is_support_voice_cache' + 'is_support_voice_cache': 'is_support_voice_cache', + 'conversion_rate': 'conversion_rate', + 'conversion_rate_en': 'conversion_rate_en' } - def __init__(self, is_support_phoneme_en=None, is_support_phoneme=None, is_support_break_time=None, is_support_break_strength=None, is_support_speed=None, is_support_prosody=None, is_support_ssml_say_as=None, is_support_ssml_sub=None, is_support_word=None, is_support_voice_cache=None): + def __init__(self, is_support_phoneme_en=None, is_support_phoneme=None, is_support_break_time=None, is_support_break_strength=None, is_support_speed=None, is_support_prosody=None, is_support_ssml_say_as=None, is_support_ssml_sub=None, is_support_word=None, is_support_voice_cache=None, conversion_rate=None, conversion_rate_en=None): """VoiceCapability The model defined in huaweicloud sdk @@ -67,6 +71,10 @@ def __init__(self, is_support_phoneme_en=None, is_support_phoneme=None, is_suppo :type is_support_word: bool :param is_support_voice_cache: 是否支持缓存。 :type is_support_voice_cache: bool + :param conversion_rate: **参数解释**: 合成率。 **约束限制**: 不涉及 **取值范围**: * 0-50 + :type conversion_rate: float + :param conversion_rate_en: **参数解释**: 英语的合成率。 **约束限制**: 不涉及 **取值范围**: * 0-50 + :type conversion_rate_en: float """ @@ -81,6 +89,8 @@ def __init__(self, is_support_phoneme_en=None, is_support_phoneme=None, is_suppo self._is_support_ssml_sub = None self._is_support_word = None self._is_support_voice_cache = None + self._conversion_rate = None + self._conversion_rate_en = None self.discriminator = None if is_support_phoneme_en is not None: @@ -103,6 +113,10 @@ def __init__(self, is_support_phoneme_en=None, is_support_phoneme=None, is_suppo self.is_support_word = is_support_word if is_support_voice_cache is not None: self.is_support_voice_cache = is_support_voice_cache + if conversion_rate is not None: + self.conversion_rate = conversion_rate + if conversion_rate_en is not None: + self.conversion_rate_en = conversion_rate_en @property def is_support_phoneme_en(self): @@ -324,6 +338,50 @@ def is_support_voice_cache(self, is_support_voice_cache): """ self._is_support_voice_cache = is_support_voice_cache + @property + def conversion_rate(self): + """Gets the conversion_rate of this VoiceCapability. + + **参数解释**: 合成率。 **约束限制**: 不涉及 **取值范围**: * 0-50 + + :return: The conversion_rate of this VoiceCapability. + :rtype: float + """ + return self._conversion_rate + + @conversion_rate.setter + def conversion_rate(self, conversion_rate): + """Sets the conversion_rate of this VoiceCapability. + + **参数解释**: 合成率。 **约束限制**: 不涉及 **取值范围**: * 0-50 + + :param conversion_rate: The conversion_rate of this VoiceCapability. + :type conversion_rate: float + """ + self._conversion_rate = conversion_rate + + @property + def conversion_rate_en(self): + """Gets the conversion_rate_en of this VoiceCapability. + + **参数解释**: 英语的合成率。 **约束限制**: 不涉及 **取值范围**: * 0-50 + + :return: The conversion_rate_en of this VoiceCapability. + :rtype: float + """ + return self._conversion_rate_en + + @conversion_rate_en.setter + def conversion_rate_en(self, conversion_rate_en): + """Sets the conversion_rate_en of this VoiceCapability. + + **参数解释**: 英语的合成率。 **约束限制**: 不涉及 **取值范围**: * 0-50 + + :param conversion_rate_en: The conversion_rate_en of this VoiceCapability. + :type conversion_rate_en: float + """ + self._conversion_rate_en = conversion_rate_en + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/requirements.txt b/huaweicloud-sdk-metastudio/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-metastudio/requirements.txt +++ b/huaweicloud-sdk-metastudio/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-metastudio/setup.py b/huaweicloud-sdk-metastudio/setup.py index 1328d9dc0e..83a1c956f6 100644 --- a/huaweicloud-sdk-metastudio/setup.py +++ b/huaweicloud-sdk-metastudio/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmetastudio" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-moderation/requirements.txt b/huaweicloud-sdk-moderation/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-moderation/requirements.txt +++ b/huaweicloud-sdk-moderation/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-moderation/setup.py b/huaweicloud-sdk-moderation/setup.py index b54c55d71a..bf8b15425f 100644 --- a/huaweicloud-sdk-moderation/setup.py +++ b/huaweicloud-sdk-moderation/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmoderation" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mpc/requirements.txt b/huaweicloud-sdk-mpc/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-mpc/requirements.txt +++ b/huaweicloud-sdk-mpc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-mpc/setup.py b/huaweicloud-sdk-mpc/setup.py index 37f469863a..c7333ddbb1 100644 --- a/huaweicloud-sdk-mpc/setup.py +++ b/huaweicloud-sdk-mpc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmpc" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mrs/requirements.txt b/huaweicloud-sdk-mrs/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-mrs/requirements.txt +++ b/huaweicloud-sdk-mrs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-mrs/setup.py b/huaweicloud-sdk-mrs/setup.py index 0b40664884..72590f256f 100644 --- a/huaweicloud-sdk-mrs/setup.py +++ b/huaweicloud-sdk-mrs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmrs" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-msgsms/requirements.txt b/huaweicloud-sdk-msgsms/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-msgsms/requirements.txt +++ b/huaweicloud-sdk-msgsms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-msgsms/setup.py b/huaweicloud-sdk-msgsms/setup.py index 5b5b3d8075..dfcdfed5c6 100644 --- a/huaweicloud-sdk-msgsms/setup.py +++ b/huaweicloud-sdk-msgsms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmsgsms" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mssi/requirements.txt b/huaweicloud-sdk-mssi/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-mssi/requirements.txt +++ b/huaweicloud-sdk-mssi/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-mssi/setup.py b/huaweicloud-sdk-mssi/setup.py index 16540559ff..9d8af77bb6 100644 --- a/huaweicloud-sdk-mssi/setup.py +++ b/huaweicloud-sdk-mssi/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmssi" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-nat/requirements.txt b/huaweicloud-sdk-nat/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-nat/requirements.txt +++ b/huaweicloud-sdk-nat/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-nat/setup.py b/huaweicloud-sdk-nat/setup.py index 303017dd90..fd2a7051ce 100644 --- a/huaweicloud-sdk-nat/setup.py +++ b/huaweicloud-sdk-nat/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdknat" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-nlp/requirements.txt b/huaweicloud-sdk-nlp/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-nlp/requirements.txt +++ b/huaweicloud-sdk-nlp/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-nlp/setup.py b/huaweicloud-sdk-nlp/setup.py index 18f4be18eb..c05b97f8ab 100644 --- a/huaweicloud-sdk-nlp/setup.py +++ b/huaweicloud-sdk-nlp/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdknlp" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-obs/requirements.txt b/huaweicloud-sdk-obs/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-obs/requirements.txt +++ b/huaweicloud-sdk-obs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-obs/setup.py b/huaweicloud-sdk-obs/setup.py index cf8de84e27..a49f4667e2 100644 --- a/huaweicloud-sdk-obs/setup.py +++ b/huaweicloud-sdk-obs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkobs" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ocr/requirements.txt b/huaweicloud-sdk-ocr/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-ocr/requirements.txt +++ b/huaweicloud-sdk-ocr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-ocr/setup.py b/huaweicloud-sdk-ocr/setup.py index 3b556739c3..f1e94db4bf 100644 --- a/huaweicloud-sdk-ocr/setup.py +++ b/huaweicloud-sdk-ocr/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkocr" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-octopus/requirements.txt b/huaweicloud-sdk-octopus/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-octopus/requirements.txt +++ b/huaweicloud-sdk-octopus/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-octopus/setup.py b/huaweicloud-sdk-octopus/setup.py index aabccbec72..7d451e79d8 100644 --- a/huaweicloud-sdk-octopus/setup.py +++ b/huaweicloud-sdk-octopus/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkoctopus" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-oms/requirements.txt b/huaweicloud-sdk-oms/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-oms/requirements.txt +++ b/huaweicloud-sdk-oms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-oms/setup.py b/huaweicloud-sdk-oms/setup.py index 3efcbbbd48..1c0c90b303 100644 --- a/huaweicloud-sdk-oms/setup.py +++ b/huaweicloud-sdk-oms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkoms" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-optverse/requirements.txt b/huaweicloud-sdk-optverse/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-optverse/requirements.txt +++ b/huaweicloud-sdk-optverse/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-optverse/setup.py b/huaweicloud-sdk-optverse/setup.py index dc5a57d08f..178a87f07c 100644 --- a/huaweicloud-sdk-optverse/setup.py +++ b/huaweicloud-sdk-optverse/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkoptverse" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-organizations/requirements.txt b/huaweicloud-sdk-organizations/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-organizations/requirements.txt +++ b/huaweicloud-sdk-organizations/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-organizations/setup.py b/huaweicloud-sdk-organizations/setup.py index 32f44e843a..fbc339d910 100644 --- a/huaweicloud-sdk-organizations/setup.py +++ b/huaweicloud-sdk-organizations/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkorganizations" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-orgid/requirements.txt b/huaweicloud-sdk-orgid/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-orgid/requirements.txt +++ b/huaweicloud-sdk-orgid/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-orgid/setup.py b/huaweicloud-sdk-orgid/setup.py index 64f0e1626b..2b6f61ea7f 100644 --- a/huaweicloud-sdk-orgid/setup.py +++ b/huaweicloud-sdk-orgid/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkorgid" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-oroas/requirements.txt b/huaweicloud-sdk-oroas/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-oroas/requirements.txt +++ b/huaweicloud-sdk-oroas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-oroas/setup.py b/huaweicloud-sdk-oroas/setup.py index 14fa00a77f..3786c4082e 100644 --- a/huaweicloud-sdk-oroas/setup.py +++ b/huaweicloud-sdk-oroas/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkoroas" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-osm/requirements.txt b/huaweicloud-sdk-osm/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-osm/requirements.txt +++ b/huaweicloud-sdk-osm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-osm/setup.py b/huaweicloud-sdk-osm/setup.py index 9379afe561..be13abe29e 100644 --- a/huaweicloud-sdk-osm/setup.py +++ b/huaweicloud-sdk-osm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkosm" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-pangulargemodels/requirements.txt b/huaweicloud-sdk-pangulargemodels/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-pangulargemodels/requirements.txt +++ b/huaweicloud-sdk-pangulargemodels/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-pangulargemodels/setup.py b/huaweicloud-sdk-pangulargemodels/setup.py index 5bf3a9f76d..f68cea755f 100644 --- a/huaweicloud-sdk-pangulargemodels/setup.py +++ b/huaweicloud-sdk-pangulargemodels/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkpangulargemodels" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-projectman/requirements.txt b/huaweicloud-sdk-projectman/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-projectman/requirements.txt +++ b/huaweicloud-sdk-projectman/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-projectman/setup.py b/huaweicloud-sdk-projectman/setup.py index 22c7a47bbb..bd67490f8e 100644 --- a/huaweicloud-sdk-projectman/setup.py +++ b/huaweicloud-sdk-projectman/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkprojectman" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rabbitmq/requirements.txt b/huaweicloud-sdk-rabbitmq/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-rabbitmq/requirements.txt +++ b/huaweicloud-sdk-rabbitmq/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-rabbitmq/setup.py b/huaweicloud-sdk-rabbitmq/setup.py index ba33698a21..ea9eaee065 100644 --- a/huaweicloud-sdk-rabbitmq/setup.py +++ b/huaweicloud-sdk-rabbitmq/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkrabbitmq" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ram/requirements.txt b/huaweicloud-sdk-ram/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-ram/requirements.txt +++ b/huaweicloud-sdk-ram/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-ram/setup.py b/huaweicloud-sdk-ram/setup.py index 2372620478..ed17f4aec9 100644 --- a/huaweicloud-sdk-ram/setup.py +++ b/huaweicloud-sdk-ram/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkram" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/__init__.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/__init__.py index 0efd11384f..3f3f2f0c4c 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/__init__.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/__init__.py @@ -549,6 +549,8 @@ from huaweicloudsdkrds.v3.model.show_postgresql_param_value_response import ShowPostgresqlParamValueResponse from huaweicloudsdkrds.v3.model.show_quotas_request import ShowQuotasRequest from huaweicloudsdkrds.v3.model.show_quotas_response import ShowQuotasResponse +from huaweicloudsdkrds.v3.model.show_recovery_time_window_request import ShowRecoveryTimeWindowRequest +from huaweicloudsdkrds.v3.model.show_recovery_time_window_response import ShowRecoveryTimeWindowResponse from huaweicloudsdkrds.v3.model.show_recycle_policy_request import ShowRecyclePolicyRequest from huaweicloudsdkrds.v3.model.show_recycle_policy_response import ShowRecyclePolicyResponse from huaweicloudsdkrds.v3.model.show_replay_delay_status_request import ShowReplayDelayStatusRequest @@ -623,6 +625,7 @@ from huaweicloudsdkrds.v3.model.tag_response import TagResponse from huaweicloudsdkrds.v3.model.tag_with_key_value import TagWithKeyValue from huaweicloudsdkrds.v3.model.target_instance_request import TargetInstanceRequest +from huaweicloudsdkrds.v3.model.to_period_req import ToPeriodReq from huaweicloudsdkrds.v3.model.unchangeable_param import UnchangeableParam from huaweicloudsdkrds.v3.model.unlock_node_readonly_status_request import UnlockNodeReadonlyStatusRequest from huaweicloudsdkrds.v3.model.unlock_node_readonly_status_request_body import UnlockNodeReadonlyStatusRequestBody @@ -680,6 +683,8 @@ from huaweicloudsdkrds.v3.model.update_tde_status_request import UpdateTdeStatusRequest from huaweicloudsdkrds.v3.model.update_tde_status_request_body import UpdateTdeStatusRequestBody from huaweicloudsdkrds.v3.model.update_tde_status_response import UpdateTdeStatusResponse +from huaweicloudsdkrds.v3.model.update_to_period_request import UpdateToPeriodRequest +from huaweicloudsdkrds.v3.model.update_to_period_response import UpdateToPeriodResponse from huaweicloudsdkrds.v3.model.upgrade_db_major_version_pre_check_request import UpgradeDbMajorVersionPreCheckRequest from huaweicloudsdkrds.v3.model.upgrade_db_major_version_pre_check_response import UpgradeDbMajorVersionPreCheckResponse from huaweicloudsdkrds.v3.model.upgrade_db_major_version_request import UpgradeDbMajorVersionRequest diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/__init__.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/__init__.py index 2784b6b59f..b35c8f7d16 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/__init__.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/__init__.py @@ -547,6 +547,8 @@ from huaweicloudsdkrds.v3.model.show_postgresql_param_value_response import ShowPostgresqlParamValueResponse from huaweicloudsdkrds.v3.model.show_quotas_request import ShowQuotasRequest from huaweicloudsdkrds.v3.model.show_quotas_response import ShowQuotasResponse +from huaweicloudsdkrds.v3.model.show_recovery_time_window_request import ShowRecoveryTimeWindowRequest +from huaweicloudsdkrds.v3.model.show_recovery_time_window_response import ShowRecoveryTimeWindowResponse from huaweicloudsdkrds.v3.model.show_recycle_policy_request import ShowRecyclePolicyRequest from huaweicloudsdkrds.v3.model.show_recycle_policy_response import ShowRecyclePolicyResponse from huaweicloudsdkrds.v3.model.show_replay_delay_status_request import ShowReplayDelayStatusRequest @@ -621,6 +623,7 @@ from huaweicloudsdkrds.v3.model.tag_response import TagResponse from huaweicloudsdkrds.v3.model.tag_with_key_value import TagWithKeyValue from huaweicloudsdkrds.v3.model.target_instance_request import TargetInstanceRequest +from huaweicloudsdkrds.v3.model.to_period_req import ToPeriodReq from huaweicloudsdkrds.v3.model.unchangeable_param import UnchangeableParam from huaweicloudsdkrds.v3.model.unlock_node_readonly_status_request import UnlockNodeReadonlyStatusRequest from huaweicloudsdkrds.v3.model.unlock_node_readonly_status_request_body import UnlockNodeReadonlyStatusRequestBody @@ -678,6 +681,8 @@ from huaweicloudsdkrds.v3.model.update_tde_status_request import UpdateTdeStatusRequest from huaweicloudsdkrds.v3.model.update_tde_status_request_body import UpdateTdeStatusRequestBody from huaweicloudsdkrds.v3.model.update_tde_status_response import UpdateTdeStatusResponse +from huaweicloudsdkrds.v3.model.update_to_period_request import UpdateToPeriodRequest +from huaweicloudsdkrds.v3.model.update_to_period_response import UpdateToPeriodResponse from huaweicloudsdkrds.v3.model.upgrade_db_major_version_pre_check_request import UpgradeDbMajorVersionPreCheckRequest from huaweicloudsdkrds.v3.model.upgrade_db_major_version_pre_check_response import UpgradeDbMajorVersionPreCheckResponse from huaweicloudsdkrds.v3.model.upgrade_db_major_version_request import UpgradeDbMajorVersionRequest diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/show_recovery_time_window_request.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/show_recovery_time_window_request.py new file mode 100644 index 0000000000..4fcbe4e75e --- /dev/null +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/show_recovery_time_window_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowRecoveryTimeWindowRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'x_language': 'str' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'x_language': 'X-Language' + } + + def __init__(self, instance_id=None, x_language=None): + """ShowRecoveryTimeWindowRequest + + The model defined in huaweicloud sdk + + :param instance_id: 操作的实例ID + :type instance_id: str + :param x_language: 语言 + :type x_language: str + """ + + + + self._instance_id = None + self._x_language = None + self.discriminator = None + + self.instance_id = instance_id + if x_language is not None: + self.x_language = x_language + + @property + def instance_id(self): + """Gets the instance_id of this ShowRecoveryTimeWindowRequest. + + 操作的实例ID + + :return: The instance_id of this ShowRecoveryTimeWindowRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowRecoveryTimeWindowRequest. + + 操作的实例ID + + :param instance_id: The instance_id of this ShowRecoveryTimeWindowRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def x_language(self): + """Gets the x_language of this ShowRecoveryTimeWindowRequest. + + 语言 + + :return: The x_language of this ShowRecoveryTimeWindowRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ShowRecoveryTimeWindowRequest. + + 语言 + + :param x_language: The x_language of this ShowRecoveryTimeWindowRequest. + :type x_language: str + """ + self._x_language = x_language + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowRecoveryTimeWindowRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/show_recovery_time_window_response.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/show_recovery_time_window_response.py new file mode 100644 index 0000000000..7ad1864880 --- /dev/null +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/show_recovery_time_window_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowRecoveryTimeWindowResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'recovery_min_time': 'str', + 'recovery_max_time': 'str' + } + + attribute_map = { + 'recovery_min_time': 'recovery_min_time', + 'recovery_max_time': 'recovery_max_time' + } + + def __init__(self, recovery_min_time=None, recovery_max_time=None): + """ShowRecoveryTimeWindowResponse + + The model defined in huaweicloud sdk + + :param recovery_min_time: 恢复时间窗左边界(不包含) + :type recovery_min_time: str + :param recovery_max_time: 恢复时间窗右边界(包含) + :type recovery_max_time: str + """ + + super(ShowRecoveryTimeWindowResponse, self).__init__() + + self._recovery_min_time = None + self._recovery_max_time = None + self.discriminator = None + + if recovery_min_time is not None: + self.recovery_min_time = recovery_min_time + if recovery_max_time is not None: + self.recovery_max_time = recovery_max_time + + @property + def recovery_min_time(self): + """Gets the recovery_min_time of this ShowRecoveryTimeWindowResponse. + + 恢复时间窗左边界(不包含) + + :return: The recovery_min_time of this ShowRecoveryTimeWindowResponse. + :rtype: str + """ + return self._recovery_min_time + + @recovery_min_time.setter + def recovery_min_time(self, recovery_min_time): + """Sets the recovery_min_time of this ShowRecoveryTimeWindowResponse. + + 恢复时间窗左边界(不包含) + + :param recovery_min_time: The recovery_min_time of this ShowRecoveryTimeWindowResponse. + :type recovery_min_time: str + """ + self._recovery_min_time = recovery_min_time + + @property + def recovery_max_time(self): + """Gets the recovery_max_time of this ShowRecoveryTimeWindowResponse. + + 恢复时间窗右边界(包含) + + :return: The recovery_max_time of this ShowRecoveryTimeWindowResponse. + :rtype: str + """ + return self._recovery_max_time + + @recovery_max_time.setter + def recovery_max_time(self, recovery_max_time): + """Sets the recovery_max_time of this ShowRecoveryTimeWindowResponse. + + 恢复时间窗右边界(包含) + + :param recovery_max_time: The recovery_max_time of this ShowRecoveryTimeWindowResponse. + :type recovery_max_time: str + """ + self._recovery_max_time = recovery_max_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowRecoveryTimeWindowResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/to_period_req.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/to_period_req.py new file mode 100644 index 0000000000..9cab1fb05e --- /dev/null +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/to_period_req.py @@ -0,0 +1,200 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ToPeriodReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'period_type': 'str', + 'period_num': 'int', + 'auto_pay_policy': 'str', + 'auto_renew_policy': 'str' + } + + attribute_map = { + 'period_type': 'period_type', + 'period_num': 'period_num', + 'auto_pay_policy': 'auto_pay_policy', + 'auto_renew_policy': 'auto_renew_policy' + } + + def __init__(self, period_type=None, period_num=None, auto_pay_policy=None, auto_renew_policy=None): + """ToPeriodReq + + The model defined in huaweicloud sdk + + :param period_type: 周期类型。MONTH:月;YEAR:年 + :type period_type: str + :param period_num: 周期数。 + :type period_num: int + :param auto_pay_policy: 是否自动支付。YES:自动扣费;NO:手动支付(默认) + :type auto_pay_policy: str + :param auto_renew_policy: 是否到期自动续期。YES:自动续费;NO:不自动续费(默认) + :type auto_renew_policy: str + """ + + + + self._period_type = None + self._period_num = None + self._auto_pay_policy = None + self._auto_renew_policy = None + self.discriminator = None + + self.period_type = period_type + self.period_num = period_num + if auto_pay_policy is not None: + self.auto_pay_policy = auto_pay_policy + if auto_renew_policy is not None: + self.auto_renew_policy = auto_renew_policy + + @property + def period_type(self): + """Gets the period_type of this ToPeriodReq. + + 周期类型。MONTH:月;YEAR:年 + + :return: The period_type of this ToPeriodReq. + :rtype: str + """ + return self._period_type + + @period_type.setter + def period_type(self, period_type): + """Sets the period_type of this ToPeriodReq. + + 周期类型。MONTH:月;YEAR:年 + + :param period_type: The period_type of this ToPeriodReq. + :type period_type: str + """ + self._period_type = period_type + + @property + def period_num(self): + """Gets the period_num of this ToPeriodReq. + + 周期数。 + + :return: The period_num of this ToPeriodReq. + :rtype: int + """ + return self._period_num + + @period_num.setter + def period_num(self, period_num): + """Sets the period_num of this ToPeriodReq. + + 周期数。 + + :param period_num: The period_num of this ToPeriodReq. + :type period_num: int + """ + self._period_num = period_num + + @property + def auto_pay_policy(self): + """Gets the auto_pay_policy of this ToPeriodReq. + + 是否自动支付。YES:自动扣费;NO:手动支付(默认) + + :return: The auto_pay_policy of this ToPeriodReq. + :rtype: str + """ + return self._auto_pay_policy + + @auto_pay_policy.setter + def auto_pay_policy(self, auto_pay_policy): + """Sets the auto_pay_policy of this ToPeriodReq. + + 是否自动支付。YES:自动扣费;NO:手动支付(默认) + + :param auto_pay_policy: The auto_pay_policy of this ToPeriodReq. + :type auto_pay_policy: str + """ + self._auto_pay_policy = auto_pay_policy + + @property + def auto_renew_policy(self): + """Gets the auto_renew_policy of this ToPeriodReq. + + 是否到期自动续期。YES:自动续费;NO:不自动续费(默认) + + :return: The auto_renew_policy of this ToPeriodReq. + :rtype: str + """ + return self._auto_renew_policy + + @auto_renew_policy.setter + def auto_renew_policy(self, auto_renew_policy): + """Sets the auto_renew_policy of this ToPeriodReq. + + 是否到期自动续期。YES:自动续费;NO:不自动续费(默认) + + :param auto_renew_policy: The auto_renew_policy of this ToPeriodReq. + :type auto_renew_policy: str + """ + self._auto_renew_policy = auto_renew_policy + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ToPeriodReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/update_to_period_request.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/update_to_period_request.py new file mode 100644 index 0000000000..600d441b7c --- /dev/null +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/update_to_period_request.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateToPeriodRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'x_language': 'str', + 'body': 'ToPeriodReq' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'x_language': 'X-Language', + 'body': 'body' + } + + def __init__(self, instance_id=None, x_language=None, body=None): + """UpdateToPeriodRequest + + The model defined in huaweicloud sdk + + :param instance_id: 操作的实例ID + :type instance_id: str + :param x_language: 语言 + :type x_language: str + :param body: Body of the UpdateToPeriodRequest + :type body: :class:`huaweicloudsdkrds.v3.ToPeriodReq` + """ + + + + self._instance_id = None + self._x_language = None + self._body = None + self.discriminator = None + + self.instance_id = instance_id + self.x_language = x_language + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this UpdateToPeriodRequest. + + 操作的实例ID + + :return: The instance_id of this UpdateToPeriodRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UpdateToPeriodRequest. + + 操作的实例ID + + :param instance_id: The instance_id of this UpdateToPeriodRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def x_language(self): + """Gets the x_language of this UpdateToPeriodRequest. + + 语言 + + :return: The x_language of this UpdateToPeriodRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this UpdateToPeriodRequest. + + 语言 + + :param x_language: The x_language of this UpdateToPeriodRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def body(self): + """Gets the body of this UpdateToPeriodRequest. + + :return: The body of this UpdateToPeriodRequest. + :rtype: :class:`huaweicloudsdkrds.v3.ToPeriodReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateToPeriodRequest. + + :param body: The body of this UpdateToPeriodRequest. + :type body: :class:`huaweicloudsdkrds.v3.ToPeriodReq` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateToPeriodRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/update_to_period_response.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/update_to_period_response.py new file mode 100644 index 0000000000..c9c0c29cd5 --- /dev/null +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/update_to_period_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateToPeriodResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'order_id': 'str' + } + + attribute_map = { + 'order_id': 'order_id' + } + + def __init__(self, order_id=None): + """UpdateToPeriodResponse + + The model defined in huaweicloud sdk + + :param order_id: 转包周期订单ID + :type order_id: str + """ + + super(UpdateToPeriodResponse, self).__init__() + + self._order_id = None + self.discriminator = None + + if order_id is not None: + self.order_id = order_id + + @property + def order_id(self): + """Gets the order_id of this UpdateToPeriodResponse. + + 转包周期订单ID + + :return: The order_id of this UpdateToPeriodResponse. + :rtype: str + """ + return self._order_id + + @order_id.setter + def order_id(self, order_id): + """Sets the order_id of this UpdateToPeriodResponse. + + 转包周期订单ID + + :param order_id: The order_id of this UpdateToPeriodResponse. + :type order_id: str + """ + self._order_id = order_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateToPeriodResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_async_client.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_async_client.py index 5ad24c046d..6e367058d8 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_async_client.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_async_client.py @@ -9979,6 +9979,75 @@ def _update_tde_status_http_info(self, request): return http_info + def update_to_period_async(self, request): + """RDS实例按需转包周期 + + RDS实例按需转包周期 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateToPeriod + :type request: :class:`huaweicloudsdkrds.v3.UpdateToPeriodRequest` + :rtype: :class:`huaweicloudsdkrds.v3.UpdateToPeriodResponse` + """ + http_info = self._update_to_period_http_info(request) + return self._call_api(**http_info) + + def update_to_period_async_invoker(self, request): + http_info = self._update_to_period_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_to_period_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v3/{project_id}/instances/{instance_id}/to-period", + "request_type": request.__class__.__name__, + "response_type": "UpdateToPeriodResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def upgrade_db_major_version_async(self, request): """upgrade_db_major_version @@ -13291,6 +13360,73 @@ def _show_postgresql_param_value_http_info(self, request): return http_info + def show_recovery_time_window_async(self, request): + """查询wal日志恢复时间窗 + + 查询wal日志恢复时间窗 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowRecoveryTimeWindow + :type request: :class:`huaweicloudsdkrds.v3.ShowRecoveryTimeWindowRequest` + :rtype: :class:`huaweicloudsdkrds.v3.ShowRecoveryTimeWindowResponse` + """ + http_info = self._show_recovery_time_window_http_info(request) + return self._call_api(**http_info) + + def show_recovery_time_window_async_invoker(self, request): + http_info = self._show_recovery_time_window_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_recovery_time_window_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/instances/{instance_id}/recovery-time", + "request_type": request.__class__.__name__, + "response_type": "ShowRecoveryTimeWindowResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_replay_delay_status_async(self, request): """获取wal日志延迟回放状态 diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_client.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_client.py index e9425ca0a1..68587fed61 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_client.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_client.py @@ -9979,6 +9979,75 @@ def _update_tde_status_http_info(cls, request): return http_info + def update_to_period(self, request): + """RDS实例按需转包周期 + + RDS实例按需转包周期 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateToPeriod + :type request: :class:`huaweicloudsdkrds.v3.UpdateToPeriodRequest` + :rtype: :class:`huaweicloudsdkrds.v3.UpdateToPeriodResponse` + """ + http_info = self._update_to_period_http_info(request) + return self._call_api(**http_info) + + def update_to_period_invoker(self, request): + http_info = self._update_to_period_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_to_period_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v3/{project_id}/instances/{instance_id}/to-period", + "request_type": request.__class__.__name__, + "response_type": "UpdateToPeriodResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def upgrade_db_major_version(self, request): """upgrade_db_major_version @@ -13291,6 +13360,73 @@ def _show_postgresql_param_value_http_info(cls, request): return http_info + def show_recovery_time_window(self, request): + """查询wal日志恢复时间窗 + + 查询wal日志恢复时间窗 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowRecoveryTimeWindow + :type request: :class:`huaweicloudsdkrds.v3.ShowRecoveryTimeWindowRequest` + :rtype: :class:`huaweicloudsdkrds.v3.ShowRecoveryTimeWindowResponse` + """ + http_info = self._show_recovery_time_window_http_info(request) + return self._call_api(**http_info) + + def show_recovery_time_window_invoker(self, request): + http_info = self._show_recovery_time_window_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_recovery_time_window_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/instances/{instance_id}/recovery-time", + "request_type": request.__class__.__name__, + "response_type": "ShowRecoveryTimeWindowResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_replay_delay_status(self, request): """获取wal日志延迟回放状态 diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/region/rds_region.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/region/rds_region.py index a1c9b3401f..6a037f9de7 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/region/rds_region.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/region/rds_region.py @@ -60,6 +60,10 @@ class RdsRegion: "https://rds.my-kualalumpur-1.myhuaweicloud.com") RU_MOSCOW_1 = Region("ru-moscow-1", "https://rds.ru-moscow-1.myhuaweicloud.com") + ME_EAST_1 = Region("me-east-1", + "https://rds.me-east-1.myhuaweicloud.com") + AF_NORTH_1 = Region("af-north-1", + "https://rds.af-north-1.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, @@ -89,6 +93,8 @@ class RdsRegion: "eu-west-0": EU_WEST_0, "my-kualalumpur-1": MY_KUALALUMPUR_1, "ru-moscow-1": RU_MOSCOW_1, + "me-east-1": ME_EAST_1, + "af-north-1": AF_NORTH_1, } @classmethod diff --git a/huaweicloud-sdk-rds/requirements.txt b/huaweicloud-sdk-rds/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-rds/requirements.txt +++ b/huaweicloud-sdk-rds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-rds/setup.py b/huaweicloud-sdk-rds/setup.py index 0fd5927fc3..a3ce542dac 100644 --- a/huaweicloud-sdk-rds/setup.py +++ b/huaweicloud-sdk-rds/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkrds" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-res/requirements.txt b/huaweicloud-sdk-res/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-res/requirements.txt +++ b/huaweicloud-sdk-res/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-res/setup.py b/huaweicloud-sdk-res/setup.py index d7b6e12938..a34fcdde13 100644 --- a/huaweicloud-sdk-res/setup.py +++ b/huaweicloud-sdk-res/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkres" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rgc/requirements.txt b/huaweicloud-sdk-rgc/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-rgc/requirements.txt +++ b/huaweicloud-sdk-rgc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-rgc/setup.py b/huaweicloud-sdk-rgc/setup.py index 7e838453b0..bc2d7fca40 100644 --- a/huaweicloud-sdk-rgc/setup.py +++ b/huaweicloud-sdk-rgc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkrgc" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rms/requirements.txt b/huaweicloud-sdk-rms/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-rms/requirements.txt +++ b/huaweicloud-sdk-rms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-rms/setup.py b/huaweicloud-sdk-rms/setup.py index 6befd0c183..753893d259 100644 --- a/huaweicloud-sdk-rms/setup.py +++ b/huaweicloud-sdk-rms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkrms" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rocketmq/requirements.txt b/huaweicloud-sdk-rocketmq/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-rocketmq/requirements.txt +++ b/huaweicloud-sdk-rocketmq/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-rocketmq/setup.py b/huaweicloud-sdk-rocketmq/setup.py index c59edfa280..e840c7664f 100644 --- a/huaweicloud-sdk-rocketmq/setup.py +++ b/huaweicloud-sdk-rocketmq/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkrocketmq" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-roma/requirements.txt b/huaweicloud-sdk-roma/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-roma/requirements.txt +++ b/huaweicloud-sdk-roma/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-roma/setup.py b/huaweicloud-sdk-roma/setup.py index 482808d58e..e9bab0f4cd 100644 --- a/huaweicloud-sdk-roma/setup.py +++ b/huaweicloud-sdk-roma/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkroma" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sa/requirements.txt b/huaweicloud-sdk-sa/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-sa/requirements.txt +++ b/huaweicloud-sdk-sa/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-sa/setup.py b/huaweicloud-sdk-sa/setup.py index 21396c9d2d..c59b43daff 100644 --- a/huaweicloud-sdk-sa/setup.py +++ b/huaweicloud-sdk-sa/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksa" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-scm/requirements.txt b/huaweicloud-sdk-scm/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-scm/requirements.txt +++ b/huaweicloud-sdk-scm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-scm/setup.py b/huaweicloud-sdk-scm/setup.py index b02e21e95b..712375dd7b 100644 --- a/huaweicloud-sdk-scm/setup.py +++ b/huaweicloud-sdk-scm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkscm" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sdrs/requirements.txt b/huaweicloud-sdk-sdrs/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-sdrs/requirements.txt +++ b/huaweicloud-sdk-sdrs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-sdrs/setup.py b/huaweicloud-sdk-sdrs/setup.py index 031da8f98f..90eefbdaa5 100644 --- a/huaweicloud-sdk-sdrs/setup.py +++ b/huaweicloud-sdk-sdrs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksdrs" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-secmaster/requirements.txt b/huaweicloud-sdk-secmaster/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-secmaster/requirements.txt +++ b/huaweicloud-sdk-secmaster/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-secmaster/setup.py b/huaweicloud-sdk-secmaster/setup.py index 8221ccf4cd..6abb1f9218 100644 --- a/huaweicloud-sdk-secmaster/setup.py +++ b/huaweicloud-sdk-secmaster/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksecmaster" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-servicestage/requirements.txt b/huaweicloud-sdk-servicestage/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-servicestage/requirements.txt +++ b/huaweicloud-sdk-servicestage/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-servicestage/setup.py b/huaweicloud-sdk-servicestage/setup.py index 2bc813df0c..91f14724e0 100644 --- a/huaweicloud-sdk-servicestage/setup.py +++ b/huaweicloud-sdk-servicestage/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkservicestage" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sfsturbo/requirements.txt b/huaweicloud-sdk-sfsturbo/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-sfsturbo/requirements.txt +++ b/huaweicloud-sdk-sfsturbo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-sfsturbo/setup.py b/huaweicloud-sdk-sfsturbo/setup.py index 76f31f0740..666ef90fa4 100644 --- a/huaweicloud-sdk-sfsturbo/setup.py +++ b/huaweicloud-sdk-sfsturbo/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksfsturbo" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sis/requirements.txt b/huaweicloud-sdk-sis/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-sis/requirements.txt +++ b/huaweicloud-sdk-sis/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-sis/setup.py b/huaweicloud-sdk-sis/setup.py index e11cd0ab45..c14e94a5dd 100644 --- a/huaweicloud-sdk-sis/setup.py +++ b/huaweicloud-sdk-sis/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksis" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-smn/requirements.txt b/huaweicloud-sdk-smn/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-smn/requirements.txt +++ b/huaweicloud-sdk-smn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-smn/setup.py b/huaweicloud-sdk-smn/setup.py index 527823792c..e05d686442 100644 --- a/huaweicloud-sdk-smn/setup.py +++ b/huaweicloud-sdk-smn/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksmn" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sms/requirements.txt b/huaweicloud-sdk-sms/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-sms/requirements.txt +++ b/huaweicloud-sdk-sms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-sms/setup.py b/huaweicloud-sdk-sms/setup.py index a34741e8e5..4bd9176d3e 100644 --- a/huaweicloud-sdk-sms/setup.py +++ b/huaweicloud-sdk-sms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksms" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sts/requirements.txt b/huaweicloud-sdk-sts/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-sts/requirements.txt +++ b/huaweicloud-sdk-sts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-sts/setup.py b/huaweicloud-sdk-sts/setup.py index fef8c9a1ed..bf9d66a429 100644 --- a/huaweicloud-sdk-sts/setup.py +++ b/huaweicloud-sdk-sts/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksts" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-swr/requirements.txt b/huaweicloud-sdk-swr/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-swr/requirements.txt +++ b/huaweicloud-sdk-swr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-swr/setup.py b/huaweicloud-sdk-swr/setup.py index 2f723b6243..381b687498 100644 --- a/huaweicloud-sdk-swr/setup.py +++ b/huaweicloud-sdk-swr/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkswr" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-tics/requirements.txt b/huaweicloud-sdk-tics/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-tics/requirements.txt +++ b/huaweicloud-sdk-tics/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-tics/setup.py b/huaweicloud-sdk-tics/setup.py index 09f2f1dcd2..8f28bf09f9 100644 --- a/huaweicloud-sdk-tics/setup.py +++ b/huaweicloud-sdk-tics/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdktics" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-tms/requirements.txt b/huaweicloud-sdk-tms/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-tms/requirements.txt +++ b/huaweicloud-sdk-tms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-tms/setup.py b/huaweicloud-sdk-tms/setup.py index 35b7f0c4a2..f01872396e 100644 --- a/huaweicloud-sdk-tms/setup.py +++ b/huaweicloud-sdk-tms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdktms" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ugo/requirements.txt b/huaweicloud-sdk-ugo/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-ugo/requirements.txt +++ b/huaweicloud-sdk-ugo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-ugo/setup.py b/huaweicloud-sdk-ugo/setup.py index 03756ac66f..e111c6a439 100644 --- a/huaweicloud-sdk-ugo/setup.py +++ b/huaweicloud-sdk-ugo/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkugo" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vas/requirements.txt b/huaweicloud-sdk-vas/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-vas/requirements.txt +++ b/huaweicloud-sdk-vas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-vas/setup.py b/huaweicloud-sdk-vas/setup.py index bca779ce28..934a5a9506 100644 --- a/huaweicloud-sdk-vas/setup.py +++ b/huaweicloud-sdk-vas/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvas" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vcm/requirements.txt b/huaweicloud-sdk-vcm/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-vcm/requirements.txt +++ b/huaweicloud-sdk-vcm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-vcm/setup.py b/huaweicloud-sdk-vcm/setup.py index 36605175b6..ae26d15330 100644 --- a/huaweicloud-sdk-vcm/setup.py +++ b/huaweicloud-sdk-vcm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvcm" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vod/requirements.txt b/huaweicloud-sdk-vod/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-vod/requirements.txt +++ b/huaweicloud-sdk-vod/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-vod/setup.py b/huaweicloud-sdk-vod/setup.py index ada5ecaafc..c054985fdd 100644 --- a/huaweicloud-sdk-vod/setup.py +++ b/huaweicloud-sdk-vod/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvod" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpc/requirements.txt b/huaweicloud-sdk-vpc/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-vpc/requirements.txt +++ b/huaweicloud-sdk-vpc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-vpc/setup.py b/huaweicloud-sdk-vpc/setup.py index 074009b76b..a67abd0341 100644 --- a/huaweicloud-sdk-vpc/setup.py +++ b/huaweicloud-sdk-vpc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvpc" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpcep/requirements.txt b/huaweicloud-sdk-vpcep/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-vpcep/requirements.txt +++ b/huaweicloud-sdk-vpcep/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-vpcep/setup.py b/huaweicloud-sdk-vpcep/setup.py index 90e440a525..ac6c5d9c97 100644 --- a/huaweicloud-sdk-vpcep/setup.py +++ b/huaweicloud-sdk-vpcep/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvpcep" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpn/requirements.txt b/huaweicloud-sdk-vpn/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-vpn/requirements.txt +++ b/huaweicloud-sdk-vpn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-vpn/setup.py b/huaweicloud-sdk-vpn/setup.py index 18981cf86b..028fd5a440 100644 --- a/huaweicloud-sdk-vpn/setup.py +++ b/huaweicloud-sdk-vpn/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvpn" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_white_black_ip_rule_request_body.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_white_black_ip_rule_request_body.py index 67f49a55dc..e9fcfac6e9 100644 --- a/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_white_black_ip_rule_request_body.py +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_white_black_ip_rule_request_body.py @@ -21,7 +21,10 @@ class CreateWhiteBlackIpRuleRequestBody: 'addr': 'str', 'description': 'str', 'white': 'int', - 'ip_group_id': 'str' + 'ip_group_id': 'str', + 'time_mode': 'str', + 'start': 'int', + 'terminal': 'int' } attribute_map = { @@ -29,10 +32,13 @@ class CreateWhiteBlackIpRuleRequestBody: 'addr': 'addr', 'description': 'description', 'white': 'white', - 'ip_group_id': 'ip_group_id' + 'ip_group_id': 'ip_group_id', + 'time_mode': 'time_mode', + 'start': 'start', + 'terminal': 'terminal' } - def __init__(self, name=None, addr=None, description=None, white=None, ip_group_id=None): + def __init__(self, name=None, addr=None, description=None, white=None, ip_group_id=None, time_mode=None, start=None, terminal=None): """CreateWhiteBlackIpRuleRequestBody The model defined in huaweicloud sdk @@ -47,6 +53,12 @@ def __init__(self, name=None, addr=None, description=None, white=None, ip_group_ :type white: int :param ip_group_id: 创建的Ip地址组id,该参数与addr参数只能使用一个;Ip地址组可在控制台中对象管理->地址组管理中添加。 :type ip_group_id: str + :param time_mode: 生效模式,默认为permanent(立即生效),创建自定义生效规则时请输入:customize + :type time_mode: str + :param start: 规则生效开始时间,生效模式为自定义时,此字段才有效,请输入时间戳 + :type start: int + :param terminal: 规则生效结束时间,生效模式为自定义时,此字段才有效,请输入时间戳 + :type terminal: int """ @@ -56,6 +68,9 @@ def __init__(self, name=None, addr=None, description=None, white=None, ip_group_ self._description = None self._white = None self._ip_group_id = None + self._time_mode = None + self._start = None + self._terminal = None self.discriminator = None self.name = name @@ -66,6 +81,12 @@ def __init__(self, name=None, addr=None, description=None, white=None, ip_group_ self.white = white if ip_group_id is not None: self.ip_group_id = ip_group_id + if time_mode is not None: + self.time_mode = time_mode + if start is not None: + self.start = start + if terminal is not None: + self.terminal = terminal @property def name(self): @@ -177,6 +198,72 @@ def ip_group_id(self, ip_group_id): """ self._ip_group_id = ip_group_id + @property + def time_mode(self): + """Gets the time_mode of this CreateWhiteBlackIpRuleRequestBody. + + 生效模式,默认为permanent(立即生效),创建自定义生效规则时请输入:customize + + :return: The time_mode of this CreateWhiteBlackIpRuleRequestBody. + :rtype: str + """ + return self._time_mode + + @time_mode.setter + def time_mode(self, time_mode): + """Sets the time_mode of this CreateWhiteBlackIpRuleRequestBody. + + 生效模式,默认为permanent(立即生效),创建自定义生效规则时请输入:customize + + :param time_mode: The time_mode of this CreateWhiteBlackIpRuleRequestBody. + :type time_mode: str + """ + self._time_mode = time_mode + + @property + def start(self): + """Gets the start of this CreateWhiteBlackIpRuleRequestBody. + + 规则生效开始时间,生效模式为自定义时,此字段才有效,请输入时间戳 + + :return: The start of this CreateWhiteBlackIpRuleRequestBody. + :rtype: int + """ + return self._start + + @start.setter + def start(self, start): + """Sets the start of this CreateWhiteBlackIpRuleRequestBody. + + 规则生效开始时间,生效模式为自定义时,此字段才有效,请输入时间戳 + + :param start: The start of this CreateWhiteBlackIpRuleRequestBody. + :type start: int + """ + self._start = start + + @property + def terminal(self): + """Gets the terminal of this CreateWhiteBlackIpRuleRequestBody. + + 规则生效结束时间,生效模式为自定义时,此字段才有效,请输入时间戳 + + :return: The terminal of this CreateWhiteBlackIpRuleRequestBody. + :rtype: int + """ + return self._terminal + + @terminal.setter + def terminal(self, terminal): + """Sets the terminal of this CreateWhiteBlackIpRuleRequestBody. + + 规则生效结束时间,生效模式为自定义时,此字段才有效,请输入时间戳 + + :param terminal: The terminal of this CreateWhiteBlackIpRuleRequestBody. + :type terminal: int + """ + self._terminal = terminal + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_whiteblackip_rule_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_whiteblackip_rule_response.py index 5bf21d2f1b..cd454222a4 100644 --- a/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_whiteblackip_rule_response.py +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_whiteblackip_rule_response.py @@ -24,6 +24,8 @@ class CreateWhiteblackipRuleResponse(SdkResponse): 'addr': 'str', 'white': 'int', 'time_mode': 'str', + 'start': 'int', + 'terminal': 'int', 'ip_group': 'IpGroup', 'status': 'int', 'description': 'str', @@ -37,13 +39,15 @@ class CreateWhiteblackipRuleResponse(SdkResponse): 'addr': 'addr', 'white': 'white', 'time_mode': 'time_mode', + 'start': 'start', + 'terminal': 'terminal', 'ip_group': 'ip_group', 'status': 'status', 'description': 'description', 'timestamp': 'timestamp' } - def __init__(self, id=None, name=None, policyid=None, addr=None, white=None, time_mode=None, ip_group=None, status=None, description=None, timestamp=None): + def __init__(self, id=None, name=None, policyid=None, addr=None, white=None, time_mode=None, start=None, terminal=None, ip_group=None, status=None, description=None, timestamp=None): """CreateWhiteblackipRuleResponse The model defined in huaweicloud sdk @@ -60,6 +64,10 @@ def __init__(self, id=None, name=None, policyid=None, addr=None, white=None, tim :type white: int :param time_mode: 生效模式,默认为permanent(立即生效) :type time_mode: str + :param start: 规则生效开始时间,生效模式为自定义时,此字段才有效 + :type start: int + :param terminal: 规则生效结束时间,生效模式为自定义时,此字段才有效 + :type terminal: int :param ip_group: :type ip_group: :class:`huaweicloudsdkwaf.v1.IpGroup` :param status: 规则状态,0:关闭,1:开启 @@ -78,6 +86,8 @@ def __init__(self, id=None, name=None, policyid=None, addr=None, white=None, tim self._addr = None self._white = None self._time_mode = None + self._start = None + self._terminal = None self._ip_group = None self._status = None self._description = None @@ -96,6 +106,10 @@ def __init__(self, id=None, name=None, policyid=None, addr=None, white=None, tim self.white = white if time_mode is not None: self.time_mode = time_mode + if start is not None: + self.start = start + if terminal is not None: + self.terminal = terminal if ip_group is not None: self.ip_group = ip_group if status is not None: @@ -237,6 +251,50 @@ def time_mode(self, time_mode): """ self._time_mode = time_mode + @property + def start(self): + """Gets the start of this CreateWhiteblackipRuleResponse. + + 规则生效开始时间,生效模式为自定义时,此字段才有效 + + :return: The start of this CreateWhiteblackipRuleResponse. + :rtype: int + """ + return self._start + + @start.setter + def start(self, start): + """Sets the start of this CreateWhiteblackipRuleResponse. + + 规则生效开始时间,生效模式为自定义时,此字段才有效 + + :param start: The start of this CreateWhiteblackipRuleResponse. + :type start: int + """ + self._start = start + + @property + def terminal(self): + """Gets the terminal of this CreateWhiteblackipRuleResponse. + + 规则生效结束时间,生效模式为自定义时,此字段才有效 + + :return: The terminal of this CreateWhiteblackipRuleResponse. + :rtype: int + """ + return self._terminal + + @terminal.setter + def terminal(self, terminal): + """Sets the terminal of this CreateWhiteblackipRuleResponse. + + 规则生效结束时间,生效模式为自定义时,此字段才有效 + + :param terminal: The terminal of this CreateWhiteblackipRuleResponse. + :type terminal: int + """ + self._terminal = terminal + @property def ip_group(self): """Gets the ip_group of this CreateWhiteblackipRuleResponse. diff --git a/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_white_black_ip_rule_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_white_black_ip_rule_response.py index 248e9dcf8e..8966191917 100644 --- a/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_white_black_ip_rule_response.py +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_white_black_ip_rule_response.py @@ -27,6 +27,8 @@ class DeleteWhiteBlackIpRuleResponse(SdkResponse): 'addr': 'str', 'white': 'int', 'time_mode': 'str', + 'start': 'int', + 'terminal': 'int', 'ip_group': 'IpGroup' } @@ -40,10 +42,12 @@ class DeleteWhiteBlackIpRuleResponse(SdkResponse): 'addr': 'addr', 'white': 'white', 'time_mode': 'time_mode', + 'start': 'start', + 'terminal': 'terminal', 'ip_group': 'ip_group' } - def __init__(self, id=None, policyid=None, name=None, timestamp=None, description=None, status=None, addr=None, white=None, time_mode=None, ip_group=None): + def __init__(self, id=None, policyid=None, name=None, timestamp=None, description=None, status=None, addr=None, white=None, time_mode=None, start=None, terminal=None, ip_group=None): """DeleteWhiteBlackIpRuleResponse The model defined in huaweicloud sdk @@ -66,6 +70,10 @@ def __init__(self, id=None, policyid=None, name=None, timestamp=None, descriptio :type white: int :param time_mode: 生效模式,默认为permanent(立即生效) :type time_mode: str + :param start: 规则生效开始时间,生效模式为自定义时,此字段才有效 + :type start: int + :param terminal: 规则生效结束时间,生效模式为自定义时,此字段才有效 + :type terminal: int :param ip_group: :type ip_group: :class:`huaweicloudsdkwaf.v1.IpGroup` """ @@ -81,6 +89,8 @@ def __init__(self, id=None, policyid=None, name=None, timestamp=None, descriptio self._addr = None self._white = None self._time_mode = None + self._start = None + self._terminal = None self._ip_group = None self.discriminator = None @@ -102,6 +112,10 @@ def __init__(self, id=None, policyid=None, name=None, timestamp=None, descriptio self.white = white if time_mode is not None: self.time_mode = time_mode + if start is not None: + self.start = start + if terminal is not None: + self.terminal = terminal if ip_group is not None: self.ip_group = ip_group @@ -303,6 +317,50 @@ def time_mode(self, time_mode): """ self._time_mode = time_mode + @property + def start(self): + """Gets the start of this DeleteWhiteBlackIpRuleResponse. + + 规则生效开始时间,生效模式为自定义时,此字段才有效 + + :return: The start of this DeleteWhiteBlackIpRuleResponse. + :rtype: int + """ + return self._start + + @start.setter + def start(self, start): + """Sets the start of this DeleteWhiteBlackIpRuleResponse. + + 规则生效开始时间,生效模式为自定义时,此字段才有效 + + :param start: The start of this DeleteWhiteBlackIpRuleResponse. + :type start: int + """ + self._start = start + + @property + def terminal(self): + """Gets the terminal of this DeleteWhiteBlackIpRuleResponse. + + 规则生效结束时间,生效模式为自定义时,此字段才有效 + + :return: The terminal of this DeleteWhiteBlackIpRuleResponse. + :rtype: int + """ + return self._terminal + + @terminal.setter + def terminal(self, terminal): + """Sets the terminal of this DeleteWhiteBlackIpRuleResponse. + + 规则生效结束时间,生效模式为自定义时,此字段才有效 + + :param terminal: The terminal of this DeleteWhiteBlackIpRuleResponse. + :type terminal: int + """ + self._terminal = terminal + @property def ip_group(self): """Gets the ip_group of this DeleteWhiteBlackIpRuleResponse. diff --git a/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_white_black_ip_rule_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_white_black_ip_rule_response.py index ebf9e8af6a..aecc2249cd 100644 --- a/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_white_black_ip_rule_response.py +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_white_black_ip_rule_response.py @@ -24,6 +24,8 @@ class ShowWhiteBlackIpRuleResponse(SdkResponse): 'addr': 'str', 'white': 'int', 'time_mode': 'str', + 'start': 'int', + 'terminal': 'int', 'ip_group': 'IpGroup', 'status': 'int', 'description': 'str', @@ -37,13 +39,15 @@ class ShowWhiteBlackIpRuleResponse(SdkResponse): 'addr': 'addr', 'white': 'white', 'time_mode': 'time_mode', + 'start': 'start', + 'terminal': 'terminal', 'ip_group': 'ip_group', 'status': 'status', 'description': 'description', 'timestamp': 'timestamp' } - def __init__(self, id=None, name=None, policyid=None, addr=None, white=None, time_mode=None, ip_group=None, status=None, description=None, timestamp=None): + def __init__(self, id=None, name=None, policyid=None, addr=None, white=None, time_mode=None, start=None, terminal=None, ip_group=None, status=None, description=None, timestamp=None): """ShowWhiteBlackIpRuleResponse The model defined in huaweicloud sdk @@ -60,6 +64,10 @@ def __init__(self, id=None, name=None, policyid=None, addr=None, white=None, tim :type white: int :param time_mode: 生效模式,默认为permanent(立即生效) :type time_mode: str + :param start: 规则生效开始时间,生效模式为自定义时,此字段才有效 + :type start: int + :param terminal: 规则生效结束时间,生效模式为自定义时,此字段才有效 + :type terminal: int :param ip_group: :type ip_group: :class:`huaweicloudsdkwaf.v1.IpGroup` :param status: 规则状态,0:关闭,1:开启 @@ -78,6 +86,8 @@ def __init__(self, id=None, name=None, policyid=None, addr=None, white=None, tim self._addr = None self._white = None self._time_mode = None + self._start = None + self._terminal = None self._ip_group = None self._status = None self._description = None @@ -96,6 +106,10 @@ def __init__(self, id=None, name=None, policyid=None, addr=None, white=None, tim self.white = white if time_mode is not None: self.time_mode = time_mode + if start is not None: + self.start = start + if terminal is not None: + self.terminal = terminal if ip_group is not None: self.ip_group = ip_group if status is not None: @@ -237,6 +251,50 @@ def time_mode(self, time_mode): """ self._time_mode = time_mode + @property + def start(self): + """Gets the start of this ShowWhiteBlackIpRuleResponse. + + 规则生效开始时间,生效模式为自定义时,此字段才有效 + + :return: The start of this ShowWhiteBlackIpRuleResponse. + :rtype: int + """ + return self._start + + @start.setter + def start(self, start): + """Sets the start of this ShowWhiteBlackIpRuleResponse. + + 规则生效开始时间,生效模式为自定义时,此字段才有效 + + :param start: The start of this ShowWhiteBlackIpRuleResponse. + :type start: int + """ + self._start = start + + @property + def terminal(self): + """Gets the terminal of this ShowWhiteBlackIpRuleResponse. + + 规则生效结束时间,生效模式为自定义时,此字段才有效 + + :return: The terminal of this ShowWhiteBlackIpRuleResponse. + :rtype: int + """ + return self._terminal + + @terminal.setter + def terminal(self, terminal): + """Sets the terminal of this ShowWhiteBlackIpRuleResponse. + + 规则生效结束时间,生效模式为自定义时,此字段才有效 + + :param terminal: The terminal of this ShowWhiteBlackIpRuleResponse. + :type terminal: int + """ + self._terminal = terminal + @property def ip_group(self): """Gets the ip_group of this ShowWhiteBlackIpRuleResponse. diff --git a/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_white_black_ip_rule_request_body.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_white_black_ip_rule_request_body.py index 6c9c99c4f9..b9de6c3b4c 100644 --- a/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_white_black_ip_rule_request_body.py +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_white_black_ip_rule_request_body.py @@ -21,7 +21,10 @@ class UpdateWhiteBlackIpRuleRequestBody: 'addr': 'str', 'description': 'str', 'white': 'int', - 'ip_group_id': 'str' + 'ip_group_id': 'str', + 'time_mode': 'str', + 'start': 'int', + 'terminal': 'int' } attribute_map = { @@ -29,10 +32,13 @@ class UpdateWhiteBlackIpRuleRequestBody: 'addr': 'addr', 'description': 'description', 'white': 'white', - 'ip_group_id': 'ip_group_id' + 'ip_group_id': 'ip_group_id', + 'time_mode': 'time_mode', + 'start': 'start', + 'terminal': 'terminal' } - def __init__(self, name=None, addr=None, description=None, white=None, ip_group_id=None): + def __init__(self, name=None, addr=None, description=None, white=None, ip_group_id=None, time_mode=None, start=None, terminal=None): """UpdateWhiteBlackIpRuleRequestBody The model defined in huaweicloud sdk @@ -47,6 +53,12 @@ def __init__(self, name=None, addr=None, description=None, white=None, ip_group_ :type white: int :param ip_group_id: 创建的Ip地址组id,该参数与addr参数使用一个即可;Ip地址组可在控制台中对象管理->地址组管理中添加。 :type ip_group_id: str + :param time_mode: 生效模式,默认为permanent(立即生效),创建自定义生效规则时请输入:customize + :type time_mode: str + :param start: 规则生效开始时间,生效模式为自定义时,此字段才有效,请输入时间戳 + :type start: int + :param terminal: 规则生效结束时间,生效模式为自定义时,此字段才有效,请输入时间戳 + :type terminal: int """ @@ -56,6 +68,9 @@ def __init__(self, name=None, addr=None, description=None, white=None, ip_group_ self._description = None self._white = None self._ip_group_id = None + self._time_mode = None + self._start = None + self._terminal = None self.discriminator = None self.name = name @@ -66,6 +81,12 @@ def __init__(self, name=None, addr=None, description=None, white=None, ip_group_ self.white = white if ip_group_id is not None: self.ip_group_id = ip_group_id + if time_mode is not None: + self.time_mode = time_mode + if start is not None: + self.start = start + if terminal is not None: + self.terminal = terminal @property def name(self): @@ -177,6 +198,72 @@ def ip_group_id(self, ip_group_id): """ self._ip_group_id = ip_group_id + @property + def time_mode(self): + """Gets the time_mode of this UpdateWhiteBlackIpRuleRequestBody. + + 生效模式,默认为permanent(立即生效),创建自定义生效规则时请输入:customize + + :return: The time_mode of this UpdateWhiteBlackIpRuleRequestBody. + :rtype: str + """ + return self._time_mode + + @time_mode.setter + def time_mode(self, time_mode): + """Sets the time_mode of this UpdateWhiteBlackIpRuleRequestBody. + + 生效模式,默认为permanent(立即生效),创建自定义生效规则时请输入:customize + + :param time_mode: The time_mode of this UpdateWhiteBlackIpRuleRequestBody. + :type time_mode: str + """ + self._time_mode = time_mode + + @property + def start(self): + """Gets the start of this UpdateWhiteBlackIpRuleRequestBody. + + 规则生效开始时间,生效模式为自定义时,此字段才有效,请输入时间戳 + + :return: The start of this UpdateWhiteBlackIpRuleRequestBody. + :rtype: int + """ + return self._start + + @start.setter + def start(self, start): + """Sets the start of this UpdateWhiteBlackIpRuleRequestBody. + + 规则生效开始时间,生效模式为自定义时,此字段才有效,请输入时间戳 + + :param start: The start of this UpdateWhiteBlackIpRuleRequestBody. + :type start: int + """ + self._start = start + + @property + def terminal(self): + """Gets the terminal of this UpdateWhiteBlackIpRuleRequestBody. + + 规则生效结束时间,生效模式为自定义时,此字段才有效,请输入时间戳 + + :return: The terminal of this UpdateWhiteBlackIpRuleRequestBody. + :rtype: int + """ + return self._terminal + + @terminal.setter + def terminal(self, terminal): + """Sets the terminal of this UpdateWhiteBlackIpRuleRequestBody. + + 规则生效结束时间,生效模式为自定义时,此字段才有效,请输入时间戳 + + :param terminal: The terminal of this UpdateWhiteBlackIpRuleRequestBody. + :type terminal: int + """ + self._terminal = terminal + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_whiteblackip_rule_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_whiteblackip_rule_response.py index 1c9c18db34..c90f5f3390 100644 --- a/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_whiteblackip_rule_response.py +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_whiteblackip_rule_response.py @@ -25,6 +25,8 @@ class UpdateWhiteblackipRuleResponse(SdkResponse): 'description': 'str', 'white': 'int', 'time_mode': 'str', + 'start': 'int', + 'terminal': 'int', 'ip_group': 'IpGroup' } @@ -36,10 +38,12 @@ class UpdateWhiteblackipRuleResponse(SdkResponse): 'description': 'description', 'white': 'white', 'time_mode': 'time_mode', + 'start': 'start', + 'terminal': 'terminal', 'ip_group': 'ip_group' } - def __init__(self, id=None, name=None, policyid=None, addr=None, description=None, white=None, time_mode=None, ip_group=None): + def __init__(self, id=None, name=None, policyid=None, addr=None, description=None, white=None, time_mode=None, start=None, terminal=None, ip_group=None): """UpdateWhiteblackipRuleResponse The model defined in huaweicloud sdk @@ -58,6 +62,10 @@ def __init__(self, id=None, name=None, policyid=None, addr=None, description=Non :type white: int :param time_mode: 生效模式,默认为permanent(立即生效) :type time_mode: str + :param start: 规则生效开始时间,生效模式为自定义时,此字段才有效 + :type start: int + :param terminal: 规则生效结束时间,生效模式为自定义时,此字段才有效 + :type terminal: int :param ip_group: :type ip_group: :class:`huaweicloudsdkwaf.v1.IpGroup` """ @@ -71,6 +79,8 @@ def __init__(self, id=None, name=None, policyid=None, addr=None, description=Non self._description = None self._white = None self._time_mode = None + self._start = None + self._terminal = None self._ip_group = None self.discriminator = None @@ -88,6 +98,10 @@ def __init__(self, id=None, name=None, policyid=None, addr=None, description=Non self.white = white if time_mode is not None: self.time_mode = time_mode + if start is not None: + self.start = start + if terminal is not None: + self.terminal = terminal if ip_group is not None: self.ip_group = ip_group @@ -245,6 +259,50 @@ def time_mode(self, time_mode): """ self._time_mode = time_mode + @property + def start(self): + """Gets the start of this UpdateWhiteblackipRuleResponse. + + 规则生效开始时间,生效模式为自定义时,此字段才有效 + + :return: The start of this UpdateWhiteblackipRuleResponse. + :rtype: int + """ + return self._start + + @start.setter + def start(self, start): + """Sets the start of this UpdateWhiteblackipRuleResponse. + + 规则生效开始时间,生效模式为自定义时,此字段才有效 + + :param start: The start of this UpdateWhiteblackipRuleResponse. + :type start: int + """ + self._start = start + + @property + def terminal(self): + """Gets the terminal of this UpdateWhiteblackipRuleResponse. + + 规则生效结束时间,生效模式为自定义时,此字段才有效 + + :return: The terminal of this UpdateWhiteblackipRuleResponse. + :rtype: int + """ + return self._terminal + + @terminal.setter + def terminal(self, terminal): + """Sets the terminal of this UpdateWhiteblackipRuleResponse. + + 规则生效结束时间,生效模式为自定义时,此字段才有效 + + :param terminal: The terminal of this UpdateWhiteblackipRuleResponse. + :type terminal: int + """ + self._terminal = terminal + @property def ip_group(self): """Gets the ip_group of this UpdateWhiteblackipRuleResponse. diff --git a/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/white_black_ip_response_body.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/white_black_ip_response_body.py index 6f30e7fd5d..dc3b1d0411 100644 --- a/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/white_black_ip_response_body.py +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/white_black_ip_response_body.py @@ -26,7 +26,9 @@ class WhiteBlackIpResponseBody: 'addr': 'str', 'white': 'int', 'ip_group': 'IpGroup', - 'time_mode': 'str' + 'time_mode': 'str', + 'start': 'int', + 'terminal': 'int' } attribute_map = { @@ -39,10 +41,12 @@ class WhiteBlackIpResponseBody: 'addr': 'addr', 'white': 'white', 'ip_group': 'ip_group', - 'time_mode': 'time_mode' + 'time_mode': 'time_mode', + 'start': 'start', + 'terminal': 'terminal' } - def __init__(self, id=None, name=None, policyid=None, timestamp=None, description=None, status=None, addr=None, white=None, ip_group=None, time_mode=None): + def __init__(self, id=None, name=None, policyid=None, timestamp=None, description=None, status=None, addr=None, white=None, ip_group=None, time_mode=None, start=None, terminal=None): """WhiteBlackIpResponseBody The model defined in huaweicloud sdk @@ -67,6 +71,10 @@ def __init__(self, id=None, name=None, policyid=None, timestamp=None, descriptio :type ip_group: :class:`huaweicloudsdkwaf.v1.IpGroup` :param time_mode: 生效模式,默认为permanent(立即生效) :type time_mode: str + :param start: 规则生效的开始时间,生效模式为自定义时,此字段才有效 + :type start: int + :param terminal: 规则生效的结束时间,生效模式为自定义时,此字段才有效 + :type terminal: int """ @@ -81,6 +89,8 @@ def __init__(self, id=None, name=None, policyid=None, timestamp=None, descriptio self._white = None self._ip_group = None self._time_mode = None + self._start = None + self._terminal = None self.discriminator = None if id is not None: @@ -103,6 +113,10 @@ def __init__(self, id=None, name=None, policyid=None, timestamp=None, descriptio self.ip_group = ip_group if time_mode is not None: self.time_mode = time_mode + if start is not None: + self.start = start + if terminal is not None: + self.terminal = terminal @property def id(self): @@ -320,6 +334,50 @@ def time_mode(self, time_mode): """ self._time_mode = time_mode + @property + def start(self): + """Gets the start of this WhiteBlackIpResponseBody. + + 规则生效的开始时间,生效模式为自定义时,此字段才有效 + + :return: The start of this WhiteBlackIpResponseBody. + :rtype: int + """ + return self._start + + @start.setter + def start(self, start): + """Sets the start of this WhiteBlackIpResponseBody. + + 规则生效的开始时间,生效模式为自定义时,此字段才有效 + + :param start: The start of this WhiteBlackIpResponseBody. + :type start: int + """ + self._start = start + + @property + def terminal(self): + """Gets the terminal of this WhiteBlackIpResponseBody. + + 规则生效的结束时间,生效模式为自定义时,此字段才有效 + + :return: The terminal of this WhiteBlackIpResponseBody. + :rtype: int + """ + return self._terminal + + @terminal.setter + def terminal(self, terminal): + """Sets the terminal of this WhiteBlackIpResponseBody. + + 规则生效的结束时间,生效模式为自定义时,此字段才有效 + + :param terminal: The terminal of this WhiteBlackIpResponseBody. + :type terminal: int + """ + self._terminal = terminal + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-waf/requirements.txt b/huaweicloud-sdk-waf/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-waf/requirements.txt +++ b/huaweicloud-sdk-waf/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-waf/setup.py b/huaweicloud-sdk-waf/setup.py index 2b6f88810b..6d75f6b591 100644 --- a/huaweicloud-sdk-waf/setup.py +++ b/huaweicloud-sdk-waf/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkwaf" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-workspace/requirements.txt b/huaweicloud-sdk-workspace/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-workspace/requirements.txt +++ b/huaweicloud-sdk-workspace/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-workspace/setup.py b/huaweicloud-sdk-workspace/setup.py index 0f54587751..fd0159a982 100644 --- a/huaweicloud-sdk-workspace/setup.py +++ b/huaweicloud-sdk-workspace/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkworkspace" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-workspaceapp/requirements.txt b/huaweicloud-sdk-workspaceapp/requirements.txt index ec1eaf8813..ab15f74b7b 100644 --- a/huaweicloud-sdk-workspaceapp/requirements.txt +++ b/huaweicloud-sdk-workspaceapp/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.116 \ No newline at end of file +huaweicloudsdkcore >= 3.1.117 \ No newline at end of file diff --git a/huaweicloud-sdk-workspaceapp/setup.py b/huaweicloud-sdk-workspaceapp/setup.py index bd15867e1d..52028c50b6 100644 --- a/huaweicloud-sdk-workspaceapp/setup.py +++ b/huaweicloud-sdk-workspaceapp/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkworkspaceapp" -VERSION = "3.1.116" +VERSION = "3.1.117" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.116"] +REQUIRES = ["huaweicloudsdkcore>=3.1.117"] OPTIONS = { 'bdist_wheel': {