diff --git a/CHANGELOG.md b/CHANGELOG.md index 42725f31c5..dd986e3ee9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,100 @@ +# 3.0.49 2021-06-25 + +### HuaweiCloud SDK APIG + +- _Features_ + - Support more ineterfaces: + - `ListGatewayResponsesV2` + - `UpdateGatewayResponseV2` + - `DeleteGatewayResponseV2` + - `UpdateGatewayResponseTypeV2` + - `DeleteGatewayResponseTypeV2` + - `DeleteInstancesV2` + - `UpdateInstanceV2` + - `ListInstancesV2` + - `RemoveEipV2` + - `UpdateEngressEipV2` + - `RemoveEngressEipV2` + - `ListFeaturesV2` + - `UpdateDomainV2` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK BMS + +- _Features_ + - Support interface `ChangeBaremetalServerOs`. +- _Bug Fix_ + - None +- _Change_ + - Modify the name of reponse parameter of interface `ChangeBaremetalServerName`: `server_tags`->`sys_tags`. + +### HuaweiCloud SDK CDN + +- _Features_ + - Support interface `ShowQuota`. +- _Bug Fix_ + - None +- _Change_ + - Modify the type of request parameter `url` of interface `ShowHistoryTaskDetails`: `integer`->`string`. + +### HuaweiCloud SDK DRS + +- _Features_ + - Support interface `ShowQuotas`. +- _Bug Fix_ + - None +- _Change_ + - Modify the type of request parameters `is_transfer`,`selected` of interface `BatchUpdateUser`: `string`->`boolean`. + +### HuaweiCloud SDK IAM + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Add request parameters`permission_type`,`display_name`,`catalog`,`type` of interface `KeystoneListPermissions`. + +### HuaweiCloud SDK LTS + +- _Features_ + - Support `Log Tank Service`. +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK Meeting + +- _Features_ + - Support interface `InviteShare`. +- _Bug Fix_ + - None +- _Change_ + - Add request parameter `multiPicSaveOnly` to interface `SetMultiPicture`. + - Add reponse parameter `leftReason` to interface `SearchHisMeetings`. + +### HuaweiCloud SDK VOD + +- _Features_ + - Support `Video on Demand` service. +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK WAF + +- _Features_ + - Support `Web Application Firewall` service. +- _Bug Fix_ + - None +- _Change_ + - None + # 3.0.48 2021-06-21 ### HuaweiCloud SDK BMS diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index cc13783675..fc4c45c57c 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,100 @@ +# 3.0.49 2021-06-25 + +### HuaweiCloud SDK APIG + +- _新增特性_ + - 支持更多接口: + - `ListGatewayResponsesV2` + - `UpdateGatewayResponseV2` + - `DeleteGatewayResponseV2` + - `UpdateGatewayResponseTypeV2` + - `DeleteGatewayResponseTypeV2` + - `DeleteInstancesV2` + - `UpdateInstanceV2` + - `ListInstancesV2` + - `RemoveEipV2` + - `UpdateEngressEipV2` + - `RemoveEngressEipV2` + - `ListFeaturesV2` + - `UpdateDomainV2` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK BMS + +- _新增特性_ + - 支持接口`ChangeBaremetalServerOs` +- _解决问题_ + - 无 +- _特性变更_ + - 接口`ChangeBaremetalServerName`的响应参数名称调整:`server_tags`->`sys_tags` + +### HuaweiCloud SDK CDN + +- _新增特性_ + - 支持接口`ShowQuota` +- _解决问题_ + - 无 +- _特性变更_ + - 接口`ShowHistoryTaskDetails`的请求参数`url`类型调整:`integer`->`string` + +### HuaweiCloud SDK DRS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`BatchUpdateUser`参数`is_transfer`、`selected`类型调整:`string`->`boolean` + +### HuaweiCloud SDK IAM + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`KeystoneListPermissions`新增请求参数`permission_type`、`display_name`、`catalog`、`type` + +### HuaweiCloud SDK LTS + +- _新增特性_ + - 支持云日志服务 +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK Meeting + +- _新增特性_ + - 支持接口`InviteShare` +- _解决问题_ + - 无 +- _特性变更_ + - 接口`SetMultiPicture`新增请求参数`multiPicSaveOnly` + - 接口`SearchHisMeetings`新增响应参数`leftReason` + +### HuaweiCloud SDK VOD + +- _新增特性_ + - 支持视频点播服务 +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK WAF + +- _新增特性_ + - 支持Web应用防火墙服务 +- _解决问题_ + - 无 +- _特性变更_ + - 无 + # 3.0.48 2021-06-21 ### HuaweiCloud SDK BMS diff --git a/README.md b/README.md index b9619c8590..7322f22af3 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ This document introduces how to obtain and use Huawei Cloud Python SDK. - To use Huawei Cloud Python SDK to access the APIs of specific service, please make sure you do have activated the service in [Huawei Cloud console](https://console.huaweicloud.com/?locale=en-us) if needed. -- Huawei Cloud Python SDK requires **Python 3** or later, run command `python --version` to check the version of Python. +- Huawei Cloud Python SDK requires **Python 3.3** or later, run command `python --version` to check the version of Python. ## Install Python SDK diff --git a/README_CN.md b/README_CN.md index 45f709ee75..776abae4c1 100644 --- a/README_CN.md +++ b/README_CN.md @@ -20,7 +20,7 @@ - 要使用华为云 Python SDK 访问指定服务的 API ,您需要确认已在 [华为云控制台](https://console.huaweicloud.com/console/?locale=zh-cn®ion=cn-north-4#/home) 开通当前服务。 -- 华为云 Python SDK 支持 **python3** 及以上版本。可执行 `python --version` 检查当前 python 的版本信息。 +- 华为云 Python SDK 支持 **python3.3以上** 的版本。可执行 `python --version` 检查当前 python 的版本信息。 ## SDK 获取和安装 diff --git a/examples/setup.py b/examples/setup.py index bbfca3aa57..9dec6e422c 100644 --- a/examples/setup.py +++ b/examples/setup.py @@ -21,7 +21,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkexample" -VERSION = "3.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-aom/setup.py b/huaweicloud-sdk-aom/setup.py index b4bd8c7f1a..be74563ee8 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "AOM"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/__init__.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/__init__.py index e508265b55..2f3d7be8a8 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/__init__.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/__init__.py @@ -55,6 +55,7 @@ from huaweicloudsdkapig.v2.model.backend_api_create import BackendApiCreate from huaweicloudsdkapig.v2.model.backend_param import BackendParam from huaweicloudsdkapig.v2.model.backend_param_base import BackendParamBase +from huaweicloudsdkapig.v2.model.base_page import BasePage from huaweicloudsdkapig.v2.model.batch_disassociate_throttling_policy_v2_request import BatchDisassociateThrottlingPolicyV2Request from huaweicloudsdkapig.v2.model.batch_disassociate_throttling_policy_v2_response import BatchDisassociateThrottlingPolicyV2Response from huaweicloudsdkapig.v2.model.canceling_authorization_v2_request import CancelingAuthorizationV2Request @@ -107,7 +108,6 @@ from huaweicloudsdkapig.v2.model.disassociate_signature_key_v2_request import DisassociateSignatureKeyV2Request from huaweicloudsdkapig.v2.model.disassociate_signature_key_v2_response import DisassociateSignatureKeyV2Response from huaweicloudsdkapig.v2.model.domain_cert_req import DomainCertReq -from huaweicloudsdkapig.v2.model.domain_req import DomainReq from huaweicloudsdkapig.v2.model.env_req import EnvReq from huaweicloudsdkapig.v2.model.env_resp import EnvResp from huaweicloudsdkapig.v2.model.env_variable_req import EnvVariableReq @@ -190,6 +190,8 @@ from huaweicloudsdkapig.v2.model.update_api_v2_response import UpdateApiV2Response from huaweicloudsdkapig.v2.model.update_app_v2_request import UpdateAppV2Request from huaweicloudsdkapig.v2.model.update_app_v2_response import UpdateAppV2Response +from huaweicloudsdkapig.v2.model.update_domain_v2_request import UpdateDomainV2Request +from huaweicloudsdkapig.v2.model.update_domain_v2_response import UpdateDomainV2Response from huaweicloudsdkapig.v2.model.update_environment_v2_request import UpdateEnvironmentV2Request from huaweicloudsdkapig.v2.model.update_environment_v2_response import UpdateEnvironmentV2Response from huaweicloudsdkapig.v2.model.update_request_throttling_policy_v2_request import UpdateRequestThrottlingPolicyV2Request @@ -198,6 +200,10 @@ from huaweicloudsdkapig.v2.model.update_signature_key_v2_response import UpdateSignatureKeyV2Response from huaweicloudsdkapig.v2.model.update_special_throttling_configuration_v2_request import UpdateSpecialThrottlingConfigurationV2Request from huaweicloudsdkapig.v2.model.update_special_throttling_configuration_v2_response import UpdateSpecialThrottlingConfigurationV2Response +from huaweicloudsdkapig.v2.model.url_domain_base import UrlDomainBase +from huaweicloudsdkapig.v2.model.url_domain_base_info import UrlDomainBaseInfo +from huaweicloudsdkapig.v2.model.url_domain_create import UrlDomainCreate +from huaweicloudsdkapig.v2.model.url_domain_modify import UrlDomainModify from huaweicloudsdkapig.v2.model.url_domains_resp import UrlDomainsResp from huaweicloudsdkapig.v2.model.vpc_base_info import VpcBaseInfo from huaweicloudsdkapig.v2.model.vpc_info import VpcInfo diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/apig_async_client.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/apig_async_client.py index ab738e86f8..9517a42766 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/apig_async_client.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/apig_async_client.py @@ -120,7 +120,7 @@ def associate_certificate_v2_with_http_info(self, request): def associate_domain_v2_async(self, request): """绑定域名 - 用户自定义的域名,需要CNAME到API分组的子域名上才能生效,具体方法请参见[增加CNAME类型记录集](https://support.huaweicloud.com/usermanual-dns/dns_usermanual_0010.html)。 每个API分组下最多可绑定5个域名。绑定域名后,用户可通过自定义域名调用API。 + 用户自定义的域名,需要CNAME到API分组的子域名上才能生效,具体方法请参见《云解析服务用户指南》的“添加CANME类型记录集”章节。 每个API分组下最多可绑定5个域名。绑定域名后,用户可通过自定义域名调用API。 :param AssociateDomainV2Request request :return: AssociateDomainV2Response @@ -130,7 +130,7 @@ def associate_domain_v2_async(self, request): def associate_domain_v2_with_http_info(self, request): """绑定域名 - 用户自定义的域名,需要CNAME到API分组的子域名上才能生效,具体方法请参见[增加CNAME类型记录集](https://support.huaweicloud.com/usermanual-dns/dns_usermanual_0010.html)。 每个API分组下最多可绑定5个域名。绑定域名后,用户可通过自定义域名调用API。 + 用户自定义的域名,需要CNAME到API分组的子域名上才能生效,具体方法请参见《云解析服务用户指南》的“添加CANME类型记录集”章节。 每个API分组下最多可绑定5个域名。绑定域名后,用户可通过自定义域名调用API。 :param AssociateDomainV2Request request :return: AssociateDomainV2Response @@ -579,7 +579,7 @@ def create_special_throttling_configuration_v2_with_http_info(self, request): def delete_environment_v2_async(self, request): """删除环境 - 删除指定的环境。 该操作将导致此API在指定的环境无法被访问,可能会影响相当一部分应用和用户。请确保已经告知用户,或者确认需要强制下线。 + 删除指定的环境。 该操作将导致此API在指定的环境无法被访问,可能会影响相当一部分应用和用户。请确保已经告知用户,或者确认需要强制下线。 环境上存在已发布的API时,该环境不能被删除。 :param DeleteEnvironmentV2Request request :return: DeleteEnvironmentV2Response @@ -589,7 +589,7 @@ def delete_environment_v2_async(self, request): def delete_environment_v2_with_http_info(self, request): """删除环境 - 删除指定的环境。 该操作将导致此API在指定的环境无法被访问,可能会影响相当一部分应用和用户。请确保已经告知用户,或者确认需要强制下线。 + 删除指定的环境。 该操作将导致此API在指定的环境无法被访问,可能会影响相当一部分应用和用户。请确保已经告知用户,或者确认需要强制下线。 环境上存在已发布的API时,该环境不能被删除。 :param DeleteEnvironmentV2Request request :return: DeleteEnvironmentV2Response @@ -2084,6 +2084,75 @@ def show_details_of_request_throttling_policy_v2_with_http_info(self, request): request_type=request.__class__.__name__) + def update_domain_v2_async(self, request): + """修改域名 + + 修改绑定的域名所对应的配置信息。 + + :param UpdateDomainV2Request request + :return: UpdateDomainV2Response + """ + return self.update_domain_v2_with_http_info(request) + + def update_domain_v2_with_http_info(self, request): + """修改域名 + + 修改绑定的域名所对应的配置信息。 + + :param UpdateDomainV2Request request + :return: UpdateDomainV2Response + """ + + all_params = ['instance_id', 'group_id', 'domain_id', 'update_domain_v2_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + if 'group_id' in local_var_params: + path_params['group_id'] = local_var_params['group_id'] + if 'domain_id' in local_var_params: + path_params['domain_id'] = local_var_params['domain_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/domains/{domain_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateDomainV2Response', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_environment_v2_async(self, request): """修改环境 diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/apig_client.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/apig_client.py index c4631c1ea7..6464e2953d 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/apig_client.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/apig_client.py @@ -120,7 +120,7 @@ def associate_certificate_v2_with_http_info(self, request): def associate_domain_v2(self, request): """绑定域名 - 用户自定义的域名,需要CNAME到API分组的子域名上才能生效,具体方法请参见[增加CNAME类型记录集](https://support.huaweicloud.com/usermanual-dns/dns_usermanual_0010.html)。 每个API分组下最多可绑定5个域名。绑定域名后,用户可通过自定义域名调用API。 + 用户自定义的域名,需要CNAME到API分组的子域名上才能生效,具体方法请参见《云解析服务用户指南》的“添加CANME类型记录集”章节。 每个API分组下最多可绑定5个域名。绑定域名后,用户可通过自定义域名调用API。 :param AssociateDomainV2Request request :return: AssociateDomainV2Response @@ -130,7 +130,7 @@ def associate_domain_v2(self, request): def associate_domain_v2_with_http_info(self, request): """绑定域名 - 用户自定义的域名,需要CNAME到API分组的子域名上才能生效,具体方法请参见[增加CNAME类型记录集](https://support.huaweicloud.com/usermanual-dns/dns_usermanual_0010.html)。 每个API分组下最多可绑定5个域名。绑定域名后,用户可通过自定义域名调用API。 + 用户自定义的域名,需要CNAME到API分组的子域名上才能生效,具体方法请参见《云解析服务用户指南》的“添加CANME类型记录集”章节。 每个API分组下最多可绑定5个域名。绑定域名后,用户可通过自定义域名调用API。 :param AssociateDomainV2Request request :return: AssociateDomainV2Response @@ -579,7 +579,7 @@ def create_special_throttling_configuration_v2_with_http_info(self, request): def delete_environment_v2(self, request): """删除环境 - 删除指定的环境。 该操作将导致此API在指定的环境无法被访问,可能会影响相当一部分应用和用户。请确保已经告知用户,或者确认需要强制下线。 + 删除指定的环境。 该操作将导致此API在指定的环境无法被访问,可能会影响相当一部分应用和用户。请确保已经告知用户,或者确认需要强制下线。 环境上存在已发布的API时,该环境不能被删除。 :param DeleteEnvironmentV2Request request :return: DeleteEnvironmentV2Response @@ -589,7 +589,7 @@ def delete_environment_v2(self, request): def delete_environment_v2_with_http_info(self, request): """删除环境 - 删除指定的环境。 该操作将导致此API在指定的环境无法被访问,可能会影响相当一部分应用和用户。请确保已经告知用户,或者确认需要强制下线。 + 删除指定的环境。 该操作将导致此API在指定的环境无法被访问,可能会影响相当一部分应用和用户。请确保已经告知用户,或者确认需要强制下线。 环境上存在已发布的API时,该环境不能被删除。 :param DeleteEnvironmentV2Request request :return: DeleteEnvironmentV2Response @@ -2084,6 +2084,75 @@ def show_details_of_request_throttling_policy_v2_with_http_info(self, request): request_type=request.__class__.__name__) + def update_domain_v2(self, request): + """修改域名 + + 修改绑定的域名所对应的配置信息。 + + :param UpdateDomainV2Request request + :return: UpdateDomainV2Response + """ + return self.update_domain_v2_with_http_info(request) + + def update_domain_v2_with_http_info(self, request): + """修改域名 + + 修改绑定的域名所对应的配置信息。 + + :param UpdateDomainV2Request request + :return: UpdateDomainV2Response + """ + + all_params = ['instance_id', 'group_id', 'domain_id', 'update_domain_v2_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + if 'group_id' in local_var_params: + path_params['group_id'] = local_var_params['group_id'] + if 'domain_id' in local_var_params: + path_params['domain_id'] = local_var_params['domain_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/domains/{domain_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateDomainV2Response', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_environment_v2(self, request): """修改环境 diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/__init__.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/__init__.py index 64790cfdde..d8291e155b 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/__init__.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/__init__.py @@ -52,6 +52,7 @@ from huaweicloudsdkapig.v2.model.backend_api_create import BackendApiCreate from huaweicloudsdkapig.v2.model.backend_param import BackendParam from huaweicloudsdkapig.v2.model.backend_param_base import BackendParamBase +from huaweicloudsdkapig.v2.model.base_page import BasePage from huaweicloudsdkapig.v2.model.batch_disassociate_throttling_policy_v2_request import BatchDisassociateThrottlingPolicyV2Request from huaweicloudsdkapig.v2.model.batch_disassociate_throttling_policy_v2_response import BatchDisassociateThrottlingPolicyV2Response from huaweicloudsdkapig.v2.model.canceling_authorization_v2_request import CancelingAuthorizationV2Request @@ -104,7 +105,6 @@ from huaweicloudsdkapig.v2.model.disassociate_signature_key_v2_request import DisassociateSignatureKeyV2Request from huaweicloudsdkapig.v2.model.disassociate_signature_key_v2_response import DisassociateSignatureKeyV2Response from huaweicloudsdkapig.v2.model.domain_cert_req import DomainCertReq -from huaweicloudsdkapig.v2.model.domain_req import DomainReq from huaweicloudsdkapig.v2.model.env_req import EnvReq from huaweicloudsdkapig.v2.model.env_resp import EnvResp from huaweicloudsdkapig.v2.model.env_variable_req import EnvVariableReq @@ -187,6 +187,8 @@ from huaweicloudsdkapig.v2.model.update_api_v2_response import UpdateApiV2Response from huaweicloudsdkapig.v2.model.update_app_v2_request import UpdateAppV2Request from huaweicloudsdkapig.v2.model.update_app_v2_response import UpdateAppV2Response +from huaweicloudsdkapig.v2.model.update_domain_v2_request import UpdateDomainV2Request +from huaweicloudsdkapig.v2.model.update_domain_v2_response import UpdateDomainV2Response from huaweicloudsdkapig.v2.model.update_environment_v2_request import UpdateEnvironmentV2Request from huaweicloudsdkapig.v2.model.update_environment_v2_response import UpdateEnvironmentV2Response from huaweicloudsdkapig.v2.model.update_request_throttling_policy_v2_request import UpdateRequestThrottlingPolicyV2Request @@ -195,6 +197,10 @@ from huaweicloudsdkapig.v2.model.update_signature_key_v2_response import UpdateSignatureKeyV2Response from huaweicloudsdkapig.v2.model.update_special_throttling_configuration_v2_request import UpdateSpecialThrottlingConfigurationV2Request from huaweicloudsdkapig.v2.model.update_special_throttling_configuration_v2_response import UpdateSpecialThrottlingConfigurationV2Response +from huaweicloudsdkapig.v2.model.url_domain_base import UrlDomainBase +from huaweicloudsdkapig.v2.model.url_domain_base_info import UrlDomainBaseInfo +from huaweicloudsdkapig.v2.model.url_domain_create import UrlDomainCreate +from huaweicloudsdkapig.v2.model.url_domain_modify import UrlDomainModify from huaweicloudsdkapig.v2.model.url_domains_resp import UrlDomainsResp from huaweicloudsdkapig.v2.model.vpc_base_info import VpcBaseInfo from huaweicloudsdkapig.v2.model.vpc_info import VpcInfo diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_base_info.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_base_info.py index 737f0095e4..779d260387 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_base_info.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_base_info.py @@ -142,7 +142,7 @@ def __init__(self, name=None, type=None, version=None, req_protocol=None, req_me def name(self): """Gets the name of this ApiBaseInfo. - API名称长度。 为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 + API名称。 长度为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 :return: The name of this ApiBaseInfo. :rtype: str @@ -153,7 +153,7 @@ def name(self): def name(self, name): """Sets the name of this ApiBaseInfo. - API名称长度。 为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 + API名称。 长度为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 :param name: The name of this ApiBaseInfo. :type: str @@ -252,7 +252,7 @@ def req_method(self, req_method): def req_uri(self): """Gets the req_uri of this ApiBaseInfo. - 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 支持环境变量,使用环境变量时,每个变量名的长度为3 ~ 32位的字符串,字符串由英文字母、数字、中划线、下划线组成,且只能以英文开头。 > 需要服从URI规范。 + 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 > 需要服从URI规范。 :return: The req_uri of this ApiBaseInfo. :rtype: str @@ -263,7 +263,7 @@ def req_uri(self): def req_uri(self, req_uri): """Sets the req_uri of this ApiBaseInfo. - 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 支持环境变量,使用环境变量时,每个变量名的长度为3 ~ 32位的字符串,字符串由英文字母、数字、中划线、下划线组成,且只能以英文开头。 > 需要服从URI规范。 + 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 > 需要服从URI规范。 :param req_uri: The req_uri of this ApiBaseInfo. :type: str diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_common.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_common.py index 661c232383..a0a5f2296d 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_common.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_common.py @@ -222,7 +222,7 @@ def __init__(self, name=None, type=None, version=None, req_protocol=None, req_me def name(self): """Gets the name of this ApiCommon. - API名称长度。 为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 + API名称。 长度为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 :return: The name of this ApiCommon. :rtype: str @@ -233,7 +233,7 @@ def name(self): def name(self, name): """Sets the name of this ApiCommon. - API名称长度。 为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 + API名称。 长度为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 :param name: The name of this ApiCommon. :type: str @@ -332,7 +332,7 @@ def req_method(self, req_method): def req_uri(self): """Gets the req_uri of this ApiCommon. - 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 支持环境变量,使用环境变量时,每个变量名的长度为3 ~ 32位的字符串,字符串由英文字母、数字、中划线、下划线组成,且只能以英文开头。 > 需要服从URI规范。 + 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 > 需要服从URI规范。 :return: The req_uri of this ApiCommon. :rtype: str @@ -343,7 +343,7 @@ def req_uri(self): def req_uri(self, req_uri): """Sets the req_uri of this ApiCommon. - 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 支持环境变量,使用环境变量时,每个变量名的长度为3 ~ 32位的字符串,字符串由英文字母、数字、中划线、下划线组成,且只能以英文开头。 > 需要服从URI规范。 + 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 > 需要服从URI规范。 :param req_uri: The req_uri of this ApiCommon. :type: str @@ -726,7 +726,7 @@ def id(self, id): def status(self): """Gets the status of this ApiCommon. - API的状态 + API状态 - 1: 有效 :return: The status of this ApiCommon. :rtype: int @@ -737,7 +737,7 @@ def status(self): def status(self, status): """Sets the status of this ApiCommon. - API的状态 + API状态 - 1: 有效 :param status: The status of this ApiCommon. :type: int @@ -858,7 +858,7 @@ def group_version(self, group_version): def run_env_id(self): """Gets the run_env_id of this ApiCommon. - 发布的环境id + 发布的环境编号 存在多个发布记录时,环境编号之间用|隔开 :return: The run_env_id of this ApiCommon. :rtype: str @@ -869,7 +869,7 @@ def run_env_id(self): def run_env_id(self, run_env_id): """Sets the run_env_id of this ApiCommon. - 发布的环境id + 发布的环境编号 存在多个发布记录时,环境编号之间用|隔开 :param run_env_id: The run_env_id of this ApiCommon. :type: str @@ -880,7 +880,7 @@ def run_env_id(self, run_env_id): def run_env_name(self): """Gets the run_env_name of this ApiCommon. - 发布的环境名称 + 发布的环境名称 存在多个发布记录时,环境名称之间用|隔开 :return: The run_env_name of this ApiCommon. :rtype: str @@ -891,7 +891,7 @@ def run_env_name(self): def run_env_name(self, run_env_name): """Sets the run_env_name of this ApiCommon. - 发布的环境名称 + 发布的环境名称 存在多个发布记录时,环境名称之间用|隔开 :param run_env_name: The run_env_name of this ApiCommon. :type: str @@ -902,7 +902,7 @@ def run_env_name(self, run_env_name): def publish_id(self): """Gets the publish_id of this ApiCommon. - 发布记录编号 存在多个发布记录时,编号之间用|隔开 + 发布记录编号 存在多个发布记录时,发布记录编号之间用|隔开 :return: The publish_id of this ApiCommon. :rtype: str @@ -913,7 +913,7 @@ def publish_id(self): def publish_id(self, publish_id): """Sets the publish_id of this ApiCommon. - 发布记录编号 存在多个发布记录时,编号之间用|隔开 + 发布记录编号 存在多个发布记录时,发布记录编号之间用|隔开 :param publish_id: The publish_id of this ApiCommon. :type: str diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_create.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_create.py index aa9444a197..1a2cc12531 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_create.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_create.py @@ -182,7 +182,7 @@ def __init__(self, name=None, type=None, version=None, req_protocol=None, req_me def name(self): """Gets the name of this ApiCreate. - API名称长度。 为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 + API名称。 长度为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 :return: The name of this ApiCreate. :rtype: str @@ -193,7 +193,7 @@ def name(self): def name(self, name): """Sets the name of this ApiCreate. - API名称长度。 为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 + API名称。 长度为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 :param name: The name of this ApiCreate. :type: str @@ -292,7 +292,7 @@ def req_method(self, req_method): def req_uri(self): """Gets the req_uri of this ApiCreate. - 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 支持环境变量,使用环境变量时,每个变量名的长度为3 ~ 32位的字符串,字符串由英文字母、数字、中划线、下划线组成,且只能以英文开头。 > 需要服从URI规范。 + 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 > 需要服从URI规范。 :return: The req_uri of this ApiCreate. :rtype: str @@ -303,7 +303,7 @@ def req_uri(self): def req_uri(self, req_uri): """Sets the req_uri of this ApiCreate. - 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 支持环境变量,使用环境变量时,每个变量名的长度为3 ~ 32位的字符串,字符串由英文字母、数字、中划线、下划线组成,且只能以英文开头。 > 需要服从URI规范。 + 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 > 需要服从URI规范。 :param req_uri: The req_uri of this ApiCreate. :type: str diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_create_base.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_create_base.py index 42b7b37bbf..787606865b 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_create_base.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_create_base.py @@ -172,7 +172,7 @@ def __init__(self, name=None, type=None, version=None, req_protocol=None, req_me def name(self): """Gets the name of this ApiCreateBase. - API名称长度。 为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 + API名称。 长度为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 :return: The name of this ApiCreateBase. :rtype: str @@ -183,7 +183,7 @@ def name(self): def name(self, name): """Sets the name of this ApiCreateBase. - API名称长度。 为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 + API名称。 长度为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 :param name: The name of this ApiCreateBase. :type: str @@ -282,7 +282,7 @@ def req_method(self, req_method): def req_uri(self): """Gets the req_uri of this ApiCreateBase. - 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 支持环境变量,使用环境变量时,每个变量名的长度为3 ~ 32位的字符串,字符串由英文字母、数字、中划线、下划线组成,且只能以英文开头。 > 需要服从URI规范。 + 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 > 需要服从URI规范。 :return: The req_uri of this ApiCreateBase. :rtype: str @@ -293,7 +293,7 @@ def req_uri(self): def req_uri(self, req_uri): """Sets the req_uri of this ApiCreateBase. - 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 支持环境变量,使用环境变量时,每个变量名的长度为3 ~ 32位的字符串,字符串由英文字母、数字、中划线、下划线组成,且只能以英文开头。 > 需要服从URI规范。 + 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 > 需要服从URI规范。 :param req_uri: The req_uri of this ApiCreateBase. :type: str diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_func.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_func.py index 827e4babeb..42f9bb91f1 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_func.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_func.py @@ -175,7 +175,7 @@ def version(self, version): def timeout(self): """Gets the timeout of this ApiFunc. - API网关请求函数服务的超时时间。 单位:毫秒。请求参数值不在合法范围内时将使用缺省值 + API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。 :return: The timeout of this ApiFunc. :rtype: int @@ -186,7 +186,7 @@ def timeout(self): def timeout(self, timeout): """Sets the timeout of this ApiFunc. - API网关请求函数服务的超时时间。 单位:毫秒。请求参数值不在合法范围内时将使用缺省值 + API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。 :param timeout: The timeout of this ApiFunc. :type: int @@ -263,7 +263,7 @@ def register_time(self, register_time): def status(self): """Gets the status of this ApiFunc. - 状态 + 后端状态 - 1: 有效 :return: The status of this ApiFunc. :rtype: int @@ -274,7 +274,7 @@ def status(self): def status(self, status): """Sets the status of this ApiFunc. - 状态 + 后端状态 - 1: 有效 :param status: The status of this ApiFunc. :type: int diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_func_create.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_func_create.py index abfce47a46..6de8a20f4e 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_func_create.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_func_create.py @@ -155,7 +155,7 @@ def version(self, version): def timeout(self): """Gets the timeout of this ApiFuncCreate. - API网关请求函数服务的超时时间。 单位:毫秒。请求参数值不在合法范围内时将使用缺省值 + API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。 :return: The timeout of this ApiFuncCreate. :rtype: int @@ -166,7 +166,7 @@ def timeout(self): def timeout(self, timeout): """Sets the timeout of this ApiFuncCreate. - API网关请求函数服务的超时时间。 单位:毫秒。请求参数值不在合法范围内时将使用缺省值 + API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。 :param timeout: The timeout of this ApiFuncCreate. :type: int diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_group_detail_resp.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_group_detail_resp.py index 4aebf8a87f..1a57aa2343 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_group_detail_resp.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_group_detail_resp.py @@ -367,7 +367,7 @@ def register_time(self, register_time): def status(self): """Gets the status of this ApiGroupDetailResp. - 状态 + 状态 - 1: 有效 :return: The status of this ApiGroupDetailResp. :rtype: int @@ -378,7 +378,7 @@ def status(self): def status(self, status): """Sets the status of this ApiGroupDetailResp. - 状态 + 状态 - 1: 有效 :param status: The status of this ApiGroupDetailResp. :type: int diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_info_per_page.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_info_per_page.py index b513e53bb4..f9ed8523a4 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_info_per_page.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_info_per_page.py @@ -197,7 +197,7 @@ def __init__(self, name=None, type=None, version=None, req_protocol=None, req_me def name(self): """Gets the name of this ApiInfoPerPage. - API名称长度。 为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 + API名称。 长度为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 :return: The name of this ApiInfoPerPage. :rtype: str @@ -208,7 +208,7 @@ def name(self): def name(self, name): """Sets the name of this ApiInfoPerPage. - API名称长度。 为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 + API名称。 长度为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 :param name: The name of this ApiInfoPerPage. :type: str @@ -307,7 +307,7 @@ def req_method(self, req_method): def req_uri(self): """Gets the req_uri of this ApiInfoPerPage. - 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 支持环境变量,使用环境变量时,每个变量名的长度为3 ~ 32位的字符串,字符串由英文字母、数字、中划线、下划线组成,且只能以英文开头。 > 需要服从URI规范。 + 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 > 需要服从URI规范。 :return: The req_uri of this ApiInfoPerPage. :rtype: str @@ -318,7 +318,7 @@ def req_uri(self): def req_uri(self, req_uri): """Sets the req_uri of this ApiInfoPerPage. - 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 支持环境变量,使用环境变量时,每个变量名的长度为3 ~ 32位的字符串,字符串由英文字母、数字、中划线、下划线组成,且只能以英文开头。 > 需要服从URI规范。 + 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 > 需要服从URI规范。 :param req_uri: The req_uri of this ApiInfoPerPage. :type: str @@ -701,7 +701,7 @@ def id(self, id): def status(self): """Gets the status of this ApiInfoPerPage. - API的状态 + API状态 - 1: 有效 :return: The status of this ApiInfoPerPage. :rtype: int @@ -712,7 +712,7 @@ def status(self): def status(self, status): """Sets the status of this ApiInfoPerPage. - API的状态 + API状态 - 1: 有效 :param status: The status of this ApiInfoPerPage. :type: int @@ -833,7 +833,7 @@ def group_version(self, group_version): def run_env_id(self): """Gets the run_env_id of this ApiInfoPerPage. - 发布的环境id + 发布的环境编号 存在多个发布记录时,环境编号之间用|隔开 :return: The run_env_id of this ApiInfoPerPage. :rtype: str @@ -844,7 +844,7 @@ def run_env_id(self): def run_env_id(self, run_env_id): """Sets the run_env_id of this ApiInfoPerPage. - 发布的环境id + 发布的环境编号 存在多个发布记录时,环境编号之间用|隔开 :param run_env_id: The run_env_id of this ApiInfoPerPage. :type: str @@ -855,7 +855,7 @@ def run_env_id(self, run_env_id): def run_env_name(self): """Gets the run_env_name of this ApiInfoPerPage. - 发布的环境名称 + 发布的环境名称 存在多个发布记录时,环境名称之间用|隔开 :return: The run_env_name of this ApiInfoPerPage. :rtype: str @@ -866,7 +866,7 @@ def run_env_name(self): def run_env_name(self, run_env_name): """Sets the run_env_name of this ApiInfoPerPage. - 发布的环境名称 + 发布的环境名称 存在多个发布记录时,环境名称之间用|隔开 :param run_env_name: The run_env_name of this ApiInfoPerPage. :type: str @@ -877,7 +877,7 @@ def run_env_name(self, run_env_name): def publish_id(self): """Gets the publish_id of this ApiInfoPerPage. - 发布记录编号 存在多个发布记录时,编号之间用|隔开 + 发布记录编号 存在多个发布记录时,发布记录编号之间用|隔开 :return: The publish_id of this ApiInfoPerPage. :rtype: str @@ -888,7 +888,7 @@ def publish_id(self): def publish_id(self, publish_id): """Sets the publish_id of this ApiInfoPerPage. - 发布记录编号 存在多个发布记录时,编号之间用|隔开 + 发布记录编号 存在多个发布记录时,发布记录编号之间用|隔开 :param publish_id: The publish_id of this ApiInfoPerPage. :type: str diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_mock.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_mock.py index 138ed3f5cd..21bb90f1ff 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_mock.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_mock.py @@ -26,17 +26,25 @@ class ApiMock: 'remark': 'str', 'result_content': 'str', 'version': 'str', - 'authorizer_id': 'str' + 'authorizer_id': 'str', + 'id': 'str', + 'register_time': 'datetime', + 'status': 'int', + 'update_time': 'datetime' } attribute_map = { 'remark': 'remark', 'result_content': 'result_content', 'version': 'version', - 'authorizer_id': 'authorizer_id' + 'authorizer_id': 'authorizer_id', + 'id': 'id', + 'register_time': 'register_time', + 'status': 'status', + 'update_time': 'update_time' } - def __init__(self, remark=None, result_content=None, version=None, authorizer_id=None): + def __init__(self, remark=None, result_content=None, version=None, authorizer_id=None, id=None, register_time=None, status=None, update_time=None): """ApiMock - a model defined in huaweicloud sdk""" @@ -45,6 +53,10 @@ def __init__(self, remark=None, result_content=None, version=None, authorizer_id self._result_content = None self._version = None self._authorizer_id = None + self._id = None + self._register_time = None + self._status = None + self._update_time = None self.discriminator = None if remark is not None: @@ -55,6 +67,14 @@ def __init__(self, remark=None, result_content=None, version=None, authorizer_id self.version = version if authorizer_id is not None: self.authorizer_id = authorizer_id + if id is not None: + self.id = id + if register_time is not None: + self.register_time = register_time + if status is not None: + self.status = status + if update_time is not None: + self.update_time = update_time @property def remark(self): @@ -144,6 +164,94 @@ def authorizer_id(self, authorizer_id): """ self._authorizer_id = authorizer_id + @property + def id(self): + """Gets the id of this ApiMock. + + 编号 + + :return: The id of this ApiMock. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ApiMock. + + 编号 + + :param id: The id of this ApiMock. + :type: str + """ + self._id = id + + @property + def register_time(self): + """Gets the register_time of this ApiMock. + + 注册时间 + + :return: The register_time of this ApiMock. + :rtype: datetime + """ + return self._register_time + + @register_time.setter + def register_time(self, register_time): + """Sets the register_time of this ApiMock. + + 注册时间 + + :param register_time: The register_time of this ApiMock. + :type: datetime + """ + self._register_time = register_time + + @property + def status(self): + """Gets the status of this ApiMock. + + 后端状态 - 1: 有效 + + :return: The status of this ApiMock. + :rtype: int + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ApiMock. + + 后端状态 - 1: 有效 + + :param status: The status of this ApiMock. + :type: int + """ + self._status = status + + @property + def update_time(self): + """Gets the update_time of this ApiMock. + + 修改时间 + + :return: The update_time of this ApiMock. + :rtype: datetime + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this ApiMock. + + 修改时间 + + :param update_time: The update_time of this ApiMock. + :type: datetime + """ + self._update_time = update_time + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_policy_function_base.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_policy_function_base.py index 9cdba2bf35..4e3b622607 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_policy_function_base.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_policy_function_base.py @@ -124,7 +124,7 @@ def version(self, version): def timeout(self): """Gets the timeout of this ApiPolicyFunctionBase. - API网关请求后端服务的超时时间。 单位:毫秒。请求参数值不在合法范围内时将使用默认值 + API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。 :return: The timeout of this ApiPolicyFunctionBase. :rtype: int @@ -135,7 +135,7 @@ def timeout(self): def timeout(self, timeout): """Sets the timeout of this ApiPolicyFunctionBase. - API网关请求后端服务的超时时间。 单位:毫秒。请求参数值不在合法范围内时将使用默认值 + API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。 :param timeout: The timeout of this ApiPolicyFunctionBase. :type: int diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_policy_function_create.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_policy_function_create.py index b8cfc4420b..93f1b9909e 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_policy_function_create.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_policy_function_create.py @@ -146,7 +146,7 @@ def version(self, version): def timeout(self): """Gets the timeout of this ApiPolicyFunctionCreate. - API网关请求后端服务的超时时间。 单位:毫秒。请求参数值不在合法范围内时将使用默认值 + API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。 :return: The timeout of this ApiPolicyFunctionCreate. :rtype: int @@ -157,7 +157,7 @@ def timeout(self): def timeout(self, timeout): """Sets the timeout of this ApiPolicyFunctionCreate. - API网关请求后端服务的超时时间。 单位:毫秒。请求参数值不在合法范围内时将使用默认值 + API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。 :param timeout: The timeout of this ApiPolicyFunctionCreate. :type: int diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_policy_function_resp.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_policy_function_resp.py index 4b8d0011c0..f5db3c45e5 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_policy_function_resp.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_policy_function_resp.py @@ -151,7 +151,7 @@ def version(self, version): def timeout(self): """Gets the timeout of this ApiPolicyFunctionResp. - API网关请求后端服务的超时时间。 单位:毫秒。请求参数值不在合法范围内时将使用默认值 + API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。 :return: The timeout of this ApiPolicyFunctionResp. :rtype: int @@ -162,7 +162,7 @@ def timeout(self): def timeout(self, timeout): """Sets the timeout of this ApiPolicyFunctionResp. - API网关请求后端服务的超时时间。 单位:毫秒。请求参数值不在合法范围内时将使用默认值 + API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。 :param timeout: The timeout of this ApiPolicyFunctionResp. :type: int diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_policy_http_base.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_policy_http_base.py index 3628d4cd31..12bcf91fd6 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_policy_http_base.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_policy_http_base.py @@ -150,7 +150,7 @@ def req_uri(self, req_uri): def timeout(self): """Gets the timeout of this ApiPolicyHttpBase. - API网关请求后端服务的超时时间。 单位:毫秒。 + API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。 :return: The timeout of this ApiPolicyHttpBase. :rtype: int @@ -161,7 +161,7 @@ def timeout(self): def timeout(self, timeout): """Sets the timeout of this ApiPolicyHttpBase. - API网关请求后端服务的超时时间。 单位:毫秒。 + API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。 :param timeout: The timeout of this ApiPolicyHttpBase. :type: int diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_policy_http_create.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_policy_http_create.py index 693bf345f4..b432f1f51c 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_policy_http_create.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_policy_http_create.py @@ -182,7 +182,7 @@ def req_uri(self, req_uri): def timeout(self): """Gets the timeout of this ApiPolicyHttpCreate. - API网关请求后端服务的超时时间。 单位:毫秒。 + API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。 :return: The timeout of this ApiPolicyHttpCreate. :rtype: int @@ -193,7 +193,7 @@ def timeout(self): def timeout(self, timeout): """Sets the timeout of this ApiPolicyHttpCreate. - API网关请求后端服务的超时时间。 单位:毫秒。 + API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。 :param timeout: The timeout of this ApiPolicyHttpCreate. :type: int diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_policy_http_resp.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_policy_http_resp.py index fdfe585c01..44c8a621c2 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_policy_http_resp.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_policy_http_resp.py @@ -34,7 +34,7 @@ class ApiPolicyHttpResp: 'req_method': 'str', 'req_uri': 'str', 'timeout': 'int', - 'vpc_channel_info': 'str', + 'vpc_channel_info': 'VpcInfo', 'vpc_channel_status': 'int' } @@ -319,7 +319,7 @@ def req_uri(self, req_uri): def timeout(self): """Gets the timeout of this ApiPolicyHttpResp. - API网关请求后端服务的超时时间。 单位:毫秒。 + API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。 :return: The timeout of this ApiPolicyHttpResp. :rtype: int @@ -330,7 +330,7 @@ def timeout(self): def timeout(self, timeout): """Sets the timeout of this ApiPolicyHttpResp. - API网关请求后端服务的超时时间。 单位:毫秒。 + API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。 :param timeout: The timeout of this ApiPolicyHttpResp. :type: int @@ -341,10 +341,9 @@ def timeout(self, timeout): def vpc_channel_info(self): """Gets the vpc_channel_info of this ApiPolicyHttpResp. - VPC通道信息 :return: The vpc_channel_info of this ApiPolicyHttpResp. - :rtype: str + :rtype: VpcInfo """ return self._vpc_channel_info @@ -352,10 +351,9 @@ def vpc_channel_info(self): def vpc_channel_info(self, vpc_channel_info): """Sets the vpc_channel_info of this ApiPolicyHttpResp. - VPC通道信息 :param vpc_channel_info: The vpc_channel_info of this ApiPolicyHttpResp. - :type: str + :type: VpcInfo """ self._vpc_channel_info = vpc_channel_info diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_resp_base_info.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_resp_base_info.py index d87e440131..1fba6c9572 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_resp_base_info.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/api_resp_base_info.py @@ -192,7 +192,7 @@ def __init__(self, name=None, type=None, version=None, req_protocol=None, req_me def name(self): """Gets the name of this ApiRespBaseInfo. - API名称长度。 为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 + API名称。 长度为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 :return: The name of this ApiRespBaseInfo. :rtype: str @@ -203,7 +203,7 @@ def name(self): def name(self, name): """Sets the name of this ApiRespBaseInfo. - API名称长度。 为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 + API名称。 长度为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 :param name: The name of this ApiRespBaseInfo. :type: str @@ -302,7 +302,7 @@ def req_method(self, req_method): def req_uri(self): """Gets the req_uri of this ApiRespBaseInfo. - 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 支持环境变量,使用环境变量时,每个变量名的长度为3 ~ 32位的字符串,字符串由英文字母、数字、中划线、下划线组成,且只能以英文开头。 > 需要服从URI规范。 + 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 > 需要服从URI规范。 :return: The req_uri of this ApiRespBaseInfo. :rtype: str @@ -313,7 +313,7 @@ def req_uri(self): def req_uri(self, req_uri): """Sets the req_uri of this ApiRespBaseInfo. - 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 支持环境变量,使用环境变量时,每个变量名的长度为3 ~ 32位的字符串,字符串由英文字母、数字、中划线、下划线组成,且只能以英文开头。 > 需要服从URI规范。 + 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 > 需要服从URI规范。 :param req_uri: The req_uri of this ApiRespBaseInfo. :type: str @@ -696,7 +696,7 @@ def id(self, id): def status(self): """Gets the status of this ApiRespBaseInfo. - API的状态 + API状态 - 1: 有效 :return: The status of this ApiRespBaseInfo. :rtype: int @@ -707,7 +707,7 @@ def status(self): def status(self, status): """Sets the status of this ApiRespBaseInfo. - API的状态 + API状态 - 1: 有效 :param status: The status of this ApiRespBaseInfo. :type: int @@ -828,7 +828,7 @@ def group_version(self, group_version): def run_env_id(self): """Gets the run_env_id of this ApiRespBaseInfo. - 发布的环境id + 发布的环境编号 存在多个发布记录时,环境编号之间用|隔开 :return: The run_env_id of this ApiRespBaseInfo. :rtype: str @@ -839,7 +839,7 @@ def run_env_id(self): def run_env_id(self, run_env_id): """Sets the run_env_id of this ApiRespBaseInfo. - 发布的环境id + 发布的环境编号 存在多个发布记录时,环境编号之间用|隔开 :param run_env_id: The run_env_id of this ApiRespBaseInfo. :type: str @@ -850,7 +850,7 @@ def run_env_id(self, run_env_id): def run_env_name(self): """Gets the run_env_name of this ApiRespBaseInfo. - 发布的环境名称 + 发布的环境名称 存在多个发布记录时,环境名称之间用|隔开 :return: The run_env_name of this ApiRespBaseInfo. :rtype: str @@ -861,7 +861,7 @@ def run_env_name(self): def run_env_name(self, run_env_name): """Sets the run_env_name of this ApiRespBaseInfo. - 发布的环境名称 + 发布的环境名称 存在多个发布记录时,环境名称之间用|隔开 :param run_env_name: The run_env_name of this ApiRespBaseInfo. :type: str @@ -872,7 +872,7 @@ def run_env_name(self, run_env_name): def publish_id(self): """Gets the publish_id of this ApiRespBaseInfo. - 发布记录编号 存在多个发布记录时,编号之间用|隔开 + 发布记录编号 存在多个发布记录时,发布记录编号之间用|隔开 :return: The publish_id of this ApiRespBaseInfo. :rtype: str @@ -883,7 +883,7 @@ def publish_id(self): def publish_id(self, publish_id): """Sets the publish_id of this ApiRespBaseInfo. - 发布记录编号 存在多个发布记录时,编号之间用|隔开 + 发布记录编号 存在多个发布记录时,发布记录编号之间用|隔开 :param publish_id: The publish_id of this ApiRespBaseInfo. :type: str diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/app_info_with_bind_num_resp.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/app_info_with_bind_num_resp.py index 3d4dd100ca..c9c8ee273b 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/app_info_with_bind_num_resp.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/app_info_with_bind_num_resp.py @@ -266,7 +266,7 @@ def register_time(self, register_time): def status(self): """Gets the status of this AppInfoWithBindNumResp. - 状态 + 状态 - 1: 有效 :return: The status of this AppInfoWithBindNumResp. :rtype: int @@ -277,7 +277,7 @@ def status(self): def status(self, status): """Sets the status of this AppInfoWithBindNumResp. - 状态 + 状态 - 1: 有效 :param status: The status of this AppInfoWithBindNumResp. :type: int diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/app_req.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/app_req.py index 5f236a8fd2..8578c51ba7 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/app_req.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/app_req.py @@ -103,7 +103,7 @@ def remark(self, remark): def app_key(self): """Gets the app_key of this AppReq. - APP的key。支持英文,数字,“_”,“-”,且只能以英文或数字开头,8 ~ 64个字符。 > 只支持部分region。 + APP的key。支持英文,数字,“_”,“-”,且只能以英文或数字开头,8 ~ 64个字符。 :return: The app_key of this AppReq. :rtype: str @@ -114,7 +114,7 @@ def app_key(self): def app_key(self, app_key): """Sets the app_key of this AppReq. - APP的key。支持英文,数字,“_”,“-”,且只能以英文或数字开头,8 ~ 64个字符。 > 只支持部分region。 + APP的key。支持英文,数字,“_”,“-”,且只能以英文或数字开头,8 ~ 64个字符。 :param app_key: The app_key of this AppReq. :type: str @@ -125,7 +125,7 @@ def app_key(self, app_key): def app_secret(self): """Gets the app_secret of this AppReq. - 密钥。支持英文,数字,“_”,“-”,“_”,“!”,“@”,“#”,“$”,“%”且只能以英文或数字开头,8 ~ 64个字符。 > 只支持部分region。 + 密钥。支持英文,数字,“_”,“-”,“_”,“!”,“@”,“#”,“$”,“%”且只能以英文或数字开头,8 ~ 64个字符。 :return: The app_secret of this AppReq. :rtype: str @@ -136,7 +136,7 @@ def app_secret(self): def app_secret(self, app_secret): """Sets the app_secret of this AppReq. - 密钥。支持英文,数字,“_”,“-”,“_”,“!”,“@”,“#”,“$”,“%”且只能以英文或数字开头,8 ~ 64个字符。 > 只支持部分region。 + 密钥。支持英文,数字,“_”,“-”,“_”,“!”,“@”,“#”,“$”,“%”且只能以英文或数字开头,8 ~ 64个字符。 :param app_secret: The app_secret of this AppReq. :type: str diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/associate_certificate_v2_response.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/associate_certificate_v2_response.py index 8fd3530c90..624e8ec1b1 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/associate_certificate_v2_response.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/associate_certificate_v2_response.py @@ -23,65 +23,42 @@ class AssociateCertificateV2Response(SdkResponse): sensitive_list = [] openapi_types = { - 'ssl_name': 'str', 'url_domain': 'str', - 'ssl_id': 'str', 'id': 'str', - 'status': 'int' + 'status': 'int', + 'min_ssl_version': 'str', + 'ssl_name': 'str', + 'ssl_id': 'str' } attribute_map = { - 'ssl_name': 'ssl_name', 'url_domain': 'url_domain', - 'ssl_id': 'ssl_id', 'id': 'id', - 'status': 'status' + 'status': 'status', + 'min_ssl_version': 'min_ssl_version', + 'ssl_name': 'ssl_name', + 'ssl_id': 'ssl_id' } - def __init__(self, ssl_name=None, url_domain=None, ssl_id=None, id=None, status=None): + def __init__(self, url_domain=None, id=None, status=None, min_ssl_version=None, ssl_name=None, ssl_id=None): """AssociateCertificateV2Response - a model defined in huaweicloud sdk""" super(AssociateCertificateV2Response, self).__init__() - self._ssl_name = None self._url_domain = None - self._ssl_id = None self._id = None self._status = None + self._min_ssl_version = None + self._ssl_name = None + self._ssl_id = None self.discriminator = None - if ssl_name is not None: - self.ssl_name = ssl_name - if url_domain is not None: - self.url_domain = url_domain - if ssl_id is not None: - self.ssl_id = ssl_id - if id is not None: - self.id = id - if status is not None: - self.status = status - - @property - def ssl_name(self): - """Gets the ssl_name of this AssociateCertificateV2Response. - - 证书的名称 - - :return: The ssl_name of this AssociateCertificateV2Response. - :rtype: str - """ - return self._ssl_name - - @ssl_name.setter - def ssl_name(self, ssl_name): - """Sets the ssl_name of this AssociateCertificateV2Response. - - 证书的名称 - - :param ssl_name: The ssl_name of this AssociateCertificateV2Response. - :type: str - """ - self._ssl_name = ssl_name + self.url_domain = url_domain + self.id = id + self.status = status + self.min_ssl_version = min_ssl_version + self.ssl_name = ssl_name + self.ssl_id = ssl_id @property def url_domain(self): @@ -105,28 +82,6 @@ def url_domain(self, url_domain): """ self._url_domain = url_domain - @property - def ssl_id(self): - """Gets the ssl_id of this AssociateCertificateV2Response. - - 证书的编号 - - :return: The ssl_id of this AssociateCertificateV2Response. - :rtype: str - """ - return self._ssl_id - - @ssl_id.setter - def ssl_id(self, ssl_id): - """Sets the ssl_id of this AssociateCertificateV2Response. - - 证书的编号 - - :param ssl_id: The ssl_id of this AssociateCertificateV2Response. - :type: str - """ - self._ssl_id = ssl_id - @property def id(self): """Gets the id of this AssociateCertificateV2Response. @@ -153,7 +108,7 @@ def id(self, id): def status(self): """Gets the status of this AssociateCertificateV2Response. - 解析状态值 + CNAME解析状态 - 1: 未解析 - 2: 解析中 - 3: 解析成功 - 4: 解析失败 :return: The status of this AssociateCertificateV2Response. :rtype: int @@ -164,13 +119,79 @@ def status(self): def status(self, status): """Sets the status of this AssociateCertificateV2Response. - 解析状态值 + CNAME解析状态 - 1: 未解析 - 2: 解析中 - 3: 解析成功 - 4: 解析失败 :param status: The status of this AssociateCertificateV2Response. :type: int """ self._status = status + @property + def min_ssl_version(self): + """Gets the min_ssl_version of this AssociateCertificateV2Response. + + 支持的最小SSL版本 + + :return: The min_ssl_version of this AssociateCertificateV2Response. + :rtype: str + """ + return self._min_ssl_version + + @min_ssl_version.setter + def min_ssl_version(self, min_ssl_version): + """Sets the min_ssl_version of this AssociateCertificateV2Response. + + 支持的最小SSL版本 + + :param min_ssl_version: The min_ssl_version of this AssociateCertificateV2Response. + :type: str + """ + self._min_ssl_version = min_ssl_version + + @property + def ssl_name(self): + """Gets the ssl_name of this AssociateCertificateV2Response. + + 证书的名称 + + :return: The ssl_name of this AssociateCertificateV2Response. + :rtype: str + """ + return self._ssl_name + + @ssl_name.setter + def ssl_name(self, ssl_name): + """Sets the ssl_name of this AssociateCertificateV2Response. + + 证书的名称 + + :param ssl_name: The ssl_name of this AssociateCertificateV2Response. + :type: str + """ + self._ssl_name = ssl_name + + @property + def ssl_id(self): + """Gets the ssl_id of this AssociateCertificateV2Response. + + 证书的编号 + + :return: The ssl_id of this AssociateCertificateV2Response. + :rtype: str + """ + return self._ssl_id + + @ssl_id.setter + def ssl_id(self, ssl_id): + """Sets the ssl_id of this AssociateCertificateV2Response. + + 证书的编号 + + :param ssl_id: The ssl_id of this AssociateCertificateV2Response. + :type: str + """ + self._ssl_id = ssl_id + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/associate_domain_v2_request.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/associate_domain_v2_request.py index 987405d769..159a50b4ed 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/associate_domain_v2_request.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/associate_domain_v2_request.py @@ -25,7 +25,7 @@ class AssociateDomainV2Request: openapi_types = { 'instance_id': 'str', 'group_id': 'str', - 'body': 'DomainReq' + 'body': 'UrlDomainCreate' } attribute_map = { @@ -99,7 +99,7 @@ def body(self): :return: The body of this AssociateDomainV2Request. - :rtype: DomainReq + :rtype: UrlDomainCreate """ return self._body @@ -109,7 +109,7 @@ def body(self, body): :param body: The body of this AssociateDomainV2Request. - :type: DomainReq + :type: UrlDomainCreate """ self._body = body diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/associate_domain_v2_response.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/associate_domain_v2_response.py index b3a7d14086..749c6395f9 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/associate_domain_v2_response.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/associate_domain_v2_response.py @@ -25,16 +25,18 @@ class AssociateDomainV2Response(SdkResponse): openapi_types = { 'url_domain': 'str', 'id': 'str', - 'status': 'int' + 'status': 'int', + 'min_ssl_version': 'str' } attribute_map = { 'url_domain': 'url_domain', 'id': 'id', - 'status': 'status' + 'status': 'status', + 'min_ssl_version': 'min_ssl_version' } - def __init__(self, url_domain=None, id=None, status=None): + def __init__(self, url_domain=None, id=None, status=None, min_ssl_version=None): """AssociateDomainV2Response - a model defined in huaweicloud sdk""" super(AssociateDomainV2Response, self).__init__() @@ -42,6 +44,7 @@ def __init__(self, url_domain=None, id=None, status=None): self._url_domain = None self._id = None self._status = None + self._min_ssl_version = None self.discriminator = None if url_domain is not None: @@ -50,6 +53,8 @@ def __init__(self, url_domain=None, id=None, status=None): self.id = id if status is not None: self.status = status + if min_ssl_version is not None: + self.min_ssl_version = min_ssl_version @property def url_domain(self): @@ -77,7 +82,7 @@ def url_domain(self, url_domain): def id(self): """Gets the id of this AssociateDomainV2Response. - 域名的编号 + 自定义域名的编号 :return: The id of this AssociateDomainV2Response. :rtype: str @@ -88,7 +93,7 @@ def id(self): def id(self, id): """Sets the id of this AssociateDomainV2Response. - 域名的编号 + 自定义域名的编号 :param id: The id of this AssociateDomainV2Response. :type: str @@ -117,6 +122,28 @@ def status(self, status): """ self._status = status + @property + def min_ssl_version(self): + """Gets the min_ssl_version of this AssociateDomainV2Response. + + 支持的最小SSL版本 + + :return: The min_ssl_version of this AssociateDomainV2Response. + :rtype: str + """ + return self._min_ssl_version + + @min_ssl_version.setter + def min_ssl_version(self, min_ssl_version): + """Sets the min_ssl_version of this AssociateDomainV2Response. + + 支持的最小SSL版本 + + :param min_ssl_version: The min_ssl_version of this AssociateDomainV2Response. + :type: str + """ + self._min_ssl_version = min_ssl_version + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/backend_api.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/backend_api.py index af187e7c50..0156b09c66 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/backend_api.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/backend_api.py @@ -31,6 +31,7 @@ class BackendApi: 'version': 'str', 'req_uri': 'str', 'timeout': 'int', + 'enable_client_ssl': 'bool', 'id': 'str', 'status': 'int', 'register_time': 'datetime', @@ -48,6 +49,7 @@ class BackendApi: 'version': 'version', 'req_uri': 'req_uri', 'timeout': 'timeout', + 'enable_client_ssl': 'enable_client_ssl', 'id': 'id', 'status': 'status', 'register_time': 'register_time', @@ -56,7 +58,7 @@ class BackendApi: 'vpc_channel_status': 'vpc_channel_status' } - def __init__(self, authorizer_id=None, url_domain=None, req_protocol=None, remark=None, req_method=None, version=None, req_uri=None, timeout=None, id=None, status=None, register_time=None, update_time=None, vpc_channel_info=None, vpc_channel_status=None): + def __init__(self, authorizer_id=None, url_domain=None, req_protocol=None, remark=None, req_method=None, version=None, req_uri=None, timeout=None, enable_client_ssl=None, id=None, status=None, register_time=None, update_time=None, vpc_channel_info=None, vpc_channel_status=None): """BackendApi - a model defined in huaweicloud sdk""" @@ -69,6 +71,7 @@ def __init__(self, authorizer_id=None, url_domain=None, req_protocol=None, remar self._version = None self._req_uri = None self._timeout = None + self._enable_client_ssl = None self._id = None self._status = None self._register_time = None @@ -89,6 +92,8 @@ def __init__(self, authorizer_id=None, url_domain=None, req_protocol=None, remar self.version = version self.req_uri = req_uri self.timeout = timeout + if enable_client_ssl is not None: + self.enable_client_ssl = enable_client_ssl if id is not None: self.id = id if status is not None: @@ -260,7 +265,7 @@ def req_uri(self, req_uri): def timeout(self): """Gets the timeout of this BackendApi. - API网关请求后端服务的超时时间。 单位:毫秒。请求参数值不在合法范围内时将使用默认值 + API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。 :return: The timeout of this BackendApi. :rtype: int @@ -271,13 +276,35 @@ def timeout(self): def timeout(self, timeout): """Sets the timeout of this BackendApi. - API网关请求后端服务的超时时间。 单位:毫秒。请求参数值不在合法范围内时将使用默认值 + API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。 :param timeout: The timeout of this BackendApi. :type: int """ self._timeout = timeout + @property + def enable_client_ssl(self): + """Gets the enable_client_ssl of this BackendApi. + + 是否开启双向认证 + + :return: The enable_client_ssl of this BackendApi. + :rtype: bool + """ + return self._enable_client_ssl + + @enable_client_ssl.setter + def enable_client_ssl(self, enable_client_ssl): + """Sets the enable_client_ssl of this BackendApi. + + 是否开启双向认证 + + :param enable_client_ssl: The enable_client_ssl of this BackendApi. + :type: bool + """ + self._enable_client_ssl = enable_client_ssl + @property def id(self): """Gets the id of this BackendApi. @@ -304,7 +331,7 @@ def id(self, id): def status(self): """Gets the status of this BackendApi. - 状态 + 后端状态 - 1: 有效 :return: The status of this BackendApi. :rtype: int @@ -315,7 +342,7 @@ def status(self): def status(self, status): """Sets the status of this BackendApi. - 状态 + 后端状态 - 1: 有效 :param status: The status of this BackendApi. :type: int diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/backend_api_base.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/backend_api_base.py index f76bc8bdb5..c30d6becbc 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/backend_api_base.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/backend_api_base.py @@ -31,6 +31,7 @@ class BackendApiBase: 'version': 'str', 'req_uri': 'str', 'timeout': 'int', + 'enable_client_ssl': 'bool', 'id': 'str', 'status': 'int', 'register_time': 'datetime', @@ -46,13 +47,14 @@ class BackendApiBase: 'version': 'version', 'req_uri': 'req_uri', 'timeout': 'timeout', + 'enable_client_ssl': 'enable_client_ssl', 'id': 'id', 'status': 'status', 'register_time': 'register_time', 'update_time': 'update_time' } - def __init__(self, authorizer_id=None, url_domain=None, req_protocol=None, remark=None, req_method=None, version=None, req_uri=None, timeout=None, id=None, status=None, register_time=None, update_time=None): + def __init__(self, authorizer_id=None, url_domain=None, req_protocol=None, remark=None, req_method=None, version=None, req_uri=None, timeout=None, enable_client_ssl=None, id=None, status=None, register_time=None, update_time=None): """BackendApiBase - a model defined in huaweicloud sdk""" @@ -65,6 +67,7 @@ def __init__(self, authorizer_id=None, url_domain=None, req_protocol=None, remar self._version = None self._req_uri = None self._timeout = None + self._enable_client_ssl = None self._id = None self._status = None self._register_time = None @@ -83,6 +86,8 @@ def __init__(self, authorizer_id=None, url_domain=None, req_protocol=None, remar self.version = version self.req_uri = req_uri self.timeout = timeout + if enable_client_ssl is not None: + self.enable_client_ssl = enable_client_ssl if id is not None: self.id = id if status is not None: @@ -250,7 +255,7 @@ def req_uri(self, req_uri): def timeout(self): """Gets the timeout of this BackendApiBase. - API网关请求后端服务的超时时间。 单位:毫秒。请求参数值不在合法范围内时将使用默认值 + API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。 :return: The timeout of this BackendApiBase. :rtype: int @@ -261,13 +266,35 @@ def timeout(self): def timeout(self, timeout): """Sets the timeout of this BackendApiBase. - API网关请求后端服务的超时时间。 单位:毫秒。请求参数值不在合法范围内时将使用默认值 + API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。 :param timeout: The timeout of this BackendApiBase. :type: int """ self._timeout = timeout + @property + def enable_client_ssl(self): + """Gets the enable_client_ssl of this BackendApiBase. + + 是否开启双向认证 + + :return: The enable_client_ssl of this BackendApiBase. + :rtype: bool + """ + return self._enable_client_ssl + + @enable_client_ssl.setter + def enable_client_ssl(self, enable_client_ssl): + """Sets the enable_client_ssl of this BackendApiBase. + + 是否开启双向认证 + + :param enable_client_ssl: The enable_client_ssl of this BackendApiBase. + :type: bool + """ + self._enable_client_ssl = enable_client_ssl + @property def id(self): """Gets the id of this BackendApiBase. @@ -294,7 +321,7 @@ def id(self, id): def status(self): """Gets the status of this BackendApiBase. - 状态 + 后端状态 - 1: 有效 :return: The status of this BackendApiBase. :rtype: int @@ -305,7 +332,7 @@ def status(self): def status(self, status): """Sets the status of this BackendApiBase. - 状态 + 后端状态 - 1: 有效 :param status: The status of this BackendApiBase. :type: int diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/backend_api_base_info.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/backend_api_base_info.py index 3cdb9419a9..de59aae8f4 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/backend_api_base_info.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/backend_api_base_info.py @@ -30,7 +30,8 @@ class BackendApiBaseInfo: 'req_method': 'str', 'version': 'str', 'req_uri': 'str', - 'timeout': 'int' + 'timeout': 'int', + 'enable_client_ssl': 'bool' } attribute_map = { @@ -41,10 +42,11 @@ class BackendApiBaseInfo: 'req_method': 'req_method', 'version': 'version', 'req_uri': 'req_uri', - 'timeout': 'timeout' + 'timeout': 'timeout', + 'enable_client_ssl': 'enable_client_ssl' } - def __init__(self, authorizer_id=None, url_domain=None, req_protocol=None, remark=None, req_method=None, version=None, req_uri=None, timeout=None): + def __init__(self, authorizer_id=None, url_domain=None, req_protocol=None, remark=None, req_method=None, version=None, req_uri=None, timeout=None, enable_client_ssl=None): """BackendApiBaseInfo - a model defined in huaweicloud sdk""" @@ -57,6 +59,7 @@ def __init__(self, authorizer_id=None, url_domain=None, req_protocol=None, remar self._version = None self._req_uri = None self._timeout = None + self._enable_client_ssl = None self.discriminator = None if authorizer_id is not None: @@ -71,6 +74,8 @@ def __init__(self, authorizer_id=None, url_domain=None, req_protocol=None, remar self.version = version self.req_uri = req_uri self.timeout = timeout + if enable_client_ssl is not None: + self.enable_client_ssl = enable_client_ssl @property def authorizer_id(self): @@ -230,7 +235,7 @@ def req_uri(self, req_uri): def timeout(self): """Gets the timeout of this BackendApiBaseInfo. - API网关请求后端服务的超时时间。 单位:毫秒。请求参数值不在合法范围内时将使用默认值 + API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。 :return: The timeout of this BackendApiBaseInfo. :rtype: int @@ -241,13 +246,35 @@ def timeout(self): def timeout(self, timeout): """Sets the timeout of this BackendApiBaseInfo. - API网关请求后端服务的超时时间。 单位:毫秒。请求参数值不在合法范围内时将使用默认值 + API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。 :param timeout: The timeout of this BackendApiBaseInfo. :type: int """ self._timeout = timeout + @property + def enable_client_ssl(self): + """Gets the enable_client_ssl of this BackendApiBaseInfo. + + 是否开启双向认证 + + :return: The enable_client_ssl of this BackendApiBaseInfo. + :rtype: bool + """ + return self._enable_client_ssl + + @enable_client_ssl.setter + def enable_client_ssl(self, enable_client_ssl): + """Sets the enable_client_ssl of this BackendApiBaseInfo. + + 是否开启双向认证 + + :param enable_client_ssl: The enable_client_ssl of this BackendApiBaseInfo. + :type: bool + """ + self._enable_client_ssl = enable_client_ssl + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/backend_api_create.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/backend_api_create.py index 3e79ff68e6..98c20078c0 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/backend_api_create.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/backend_api_create.py @@ -31,6 +31,7 @@ class BackendApiCreate: 'version': 'str', 'req_uri': 'str', 'timeout': 'int', + 'enable_client_ssl': 'bool', 'vpc_channel_info': 'ApiBackendVpcReq', 'vpc_channel_status': 'int' } @@ -44,11 +45,12 @@ class BackendApiCreate: 'version': 'version', 'req_uri': 'req_uri', 'timeout': 'timeout', + 'enable_client_ssl': 'enable_client_ssl', 'vpc_channel_info': 'vpc_channel_info', 'vpc_channel_status': 'vpc_channel_status' } - def __init__(self, authorizer_id=None, url_domain=None, req_protocol=None, remark=None, req_method=None, version=None, req_uri=None, timeout=None, vpc_channel_info=None, vpc_channel_status=None): + def __init__(self, authorizer_id=None, url_domain=None, req_protocol=None, remark=None, req_method=None, version=None, req_uri=None, timeout=None, enable_client_ssl=None, vpc_channel_info=None, vpc_channel_status=None): """BackendApiCreate - a model defined in huaweicloud sdk""" @@ -61,6 +63,7 @@ def __init__(self, authorizer_id=None, url_domain=None, req_protocol=None, remar self._version = None self._req_uri = None self._timeout = None + self._enable_client_ssl = None self._vpc_channel_info = None self._vpc_channel_status = None self.discriminator = None @@ -77,6 +80,8 @@ def __init__(self, authorizer_id=None, url_domain=None, req_protocol=None, remar self.version = version self.req_uri = req_uri self.timeout = timeout + if enable_client_ssl is not None: + self.enable_client_ssl = enable_client_ssl if vpc_channel_info is not None: self.vpc_channel_info = vpc_channel_info if vpc_channel_status is not None: @@ -240,7 +245,7 @@ def req_uri(self, req_uri): def timeout(self): """Gets the timeout of this BackendApiCreate. - API网关请求后端服务的超时时间。 单位:毫秒。请求参数值不在合法范围内时将使用默认值 + API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。 :return: The timeout of this BackendApiCreate. :rtype: int @@ -251,13 +256,35 @@ def timeout(self): def timeout(self, timeout): """Sets the timeout of this BackendApiCreate. - API网关请求后端服务的超时时间。 单位:毫秒。请求参数值不在合法范围内时将使用默认值 + API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。 :param timeout: The timeout of this BackendApiCreate. :type: int """ self._timeout = timeout + @property + def enable_client_ssl(self): + """Gets the enable_client_ssl of this BackendApiCreate. + + 是否开启双向认证 + + :return: The enable_client_ssl of this BackendApiCreate. + :rtype: bool + """ + return self._enable_client_ssl + + @enable_client_ssl.setter + def enable_client_ssl(self, enable_client_ssl): + """Sets the enable_client_ssl of this BackendApiCreate. + + 是否开启双向认证 + + :param enable_client_ssl: The enable_client_ssl of this BackendApiCreate. + :type: bool + """ + self._enable_client_ssl = enable_client_ssl + @property def vpc_channel_info(self): """Gets the vpc_channel_info of this BackendApiCreate. @@ -282,7 +309,7 @@ def vpc_channel_info(self, vpc_channel_info): def vpc_channel_status(self): """Gets the vpc_channel_status of this BackendApiCreate. - 是否使用VPC通道 - 1 : 使用VPC通道 - 2 : 不使用VPC通道 + 是否使用VPC通道 - 1:使用VPC通道 - 2:不使用VPC通道 :return: The vpc_channel_status of this BackendApiCreate. :rtype: int @@ -293,7 +320,7 @@ def vpc_channel_status(self): def vpc_channel_status(self, vpc_channel_status): """Sets the vpc_channel_status of this BackendApiCreate. - 是否使用VPC通道 - 1 : 使用VPC通道 - 2 : 不使用VPC通道 + 是否使用VPC通道 - 1:使用VPC通道 - 2:不使用VPC通道 :param vpc_channel_status: The vpc_channel_status of this BackendApiCreate. :type: int diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/backend_param.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/backend_param.py index f4f2202627..5a72eab7cb 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/backend_param.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/backend_param.py @@ -71,7 +71,7 @@ def __init__(self, origin=None, name=None, remark=None, location=None, value=Non def origin(self): """Gets the origin of this BackendParam. - 参数类别:REQUEST、CONSTANT、SYSTEM + 参数类别: - 后端服务参数:REQUEST - 常量参数:CONSTANT - 系统参数:SYSTEM :return: The origin of this BackendParam. :rtype: str @@ -82,7 +82,7 @@ def origin(self): def origin(self, origin): """Sets the origin of this BackendParam. - 参数类别:REQUEST、CONSTANT、SYSTEM + 参数类别: - 后端服务参数:REQUEST - 常量参数:CONSTANT - 系统参数:SYSTEM :param origin: The origin of this BackendParam. :type: str @@ -159,7 +159,7 @@ def location(self, location): def value(self): """Gets the value of this BackendParam. - 参数值。字符长度不超过255,类别为REQUEST时,值为req_params中的参数名称;类别为CONSTANT时,值为参数真正的值;类别为SYSTEM时,值为网关参数名称 + 参数值。字符长度不超过255 origin类别为REQUEST时,此字段值为req_params中的参数名称; origin类别为CONSTANT时,此字段值为参数真正的值; origin类别为SYSTEM时,此字段值为系统参数名称,系统参数分为网关内置参数、前端认证参数和后端认证参数,当api前端安全认证方式为自定义认证时,可以填写前端认证参数,当api开启后端认证时,可以填写后端认证参数。 网关内置参数取值及对应含义: - $context.sourceIp:API调用者的源地址 - $context.stage:API调用的部署环境 - $context.apiId:API的ID - $context.appId:API调用者的APP对象ID - $context.requestId:当次API调用生成跟踪ID - $context.serverAddr:网关的服务器地址 - $context.serverName:网关的服务器名称 - $context.handleTime:本次API调用的处理时间 - $context.providerAppId:API拥有者的应用对象ID,暂不支持使用 前端认证参数取值:以“$context.authorizer.frontend.”为前缀,如希望自定义认证校验通过返回的参数为aaa,那么此字段填写为$context.authorizer.frontend.aaa 后端认证参数取值:以“$context.authorizer.backend.”为前缀,如希望自定义认证校验通过返回的参数为aaa,那么此字段填写为$context.authorizer.backend.aaa :return: The value of this BackendParam. :rtype: str @@ -170,7 +170,7 @@ def value(self): def value(self, value): """Sets the value of this BackendParam. - 参数值。字符长度不超过255,类别为REQUEST时,值为req_params中的参数名称;类别为CONSTANT时,值为参数真正的值;类别为SYSTEM时,值为网关参数名称 + 参数值。字符长度不超过255 origin类别为REQUEST时,此字段值为req_params中的参数名称; origin类别为CONSTANT时,此字段值为参数真正的值; origin类别为SYSTEM时,此字段值为系统参数名称,系统参数分为网关内置参数、前端认证参数和后端认证参数,当api前端安全认证方式为自定义认证时,可以填写前端认证参数,当api开启后端认证时,可以填写后端认证参数。 网关内置参数取值及对应含义: - $context.sourceIp:API调用者的源地址 - $context.stage:API调用的部署环境 - $context.apiId:API的ID - $context.appId:API调用者的APP对象ID - $context.requestId:当次API调用生成跟踪ID - $context.serverAddr:网关的服务器地址 - $context.serverName:网关的服务器名称 - $context.handleTime:本次API调用的处理时间 - $context.providerAppId:API拥有者的应用对象ID,暂不支持使用 前端认证参数取值:以“$context.authorizer.frontend.”为前缀,如希望自定义认证校验通过返回的参数为aaa,那么此字段填写为$context.authorizer.frontend.aaa 后端认证参数取值:以“$context.authorizer.backend.”为前缀,如希望自定义认证校验通过返回的参数为aaa,那么此字段填写为$context.authorizer.backend.aaa :param value: The value of this BackendParam. :type: str diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/backend_param_base.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/backend_param_base.py index 18e70d9ad8..7daf46089e 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/backend_param_base.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/backend_param_base.py @@ -61,7 +61,7 @@ def __init__(self, origin=None, name=None, remark=None, location=None, value=Non def origin(self): """Gets the origin of this BackendParamBase. - 参数类别:REQUEST、CONSTANT、SYSTEM + 参数类别: - 后端服务参数:REQUEST - 常量参数:CONSTANT - 系统参数:SYSTEM :return: The origin of this BackendParamBase. :rtype: str @@ -72,7 +72,7 @@ def origin(self): def origin(self, origin): """Sets the origin of this BackendParamBase. - 参数类别:REQUEST、CONSTANT、SYSTEM + 参数类别: - 后端服务参数:REQUEST - 常量参数:CONSTANT - 系统参数:SYSTEM :param origin: The origin of this BackendParamBase. :type: str @@ -149,7 +149,7 @@ def location(self, location): def value(self): """Gets the value of this BackendParamBase. - 参数值。字符长度不超过255,类别为REQUEST时,值为req_params中的参数名称;类别为CONSTANT时,值为参数真正的值;类别为SYSTEM时,值为网关参数名称 + 参数值。字符长度不超过255 origin类别为REQUEST时,此字段值为req_params中的参数名称; origin类别为CONSTANT时,此字段值为参数真正的值; origin类别为SYSTEM时,此字段值为系统参数名称,系统参数分为网关内置参数、前端认证参数和后端认证参数,当api前端安全认证方式为自定义认证时,可以填写前端认证参数,当api开启后端认证时,可以填写后端认证参数。 网关内置参数取值及对应含义: - $context.sourceIp:API调用者的源地址 - $context.stage:API调用的部署环境 - $context.apiId:API的ID - $context.appId:API调用者的APP对象ID - $context.requestId:当次API调用生成跟踪ID - $context.serverAddr:网关的服务器地址 - $context.serverName:网关的服务器名称 - $context.handleTime:本次API调用的处理时间 - $context.providerAppId:API拥有者的应用对象ID,暂不支持使用 前端认证参数取值:以“$context.authorizer.frontend.”为前缀,如希望自定义认证校验通过返回的参数为aaa,那么此字段填写为$context.authorizer.frontend.aaa 后端认证参数取值:以“$context.authorizer.backend.”为前缀,如希望自定义认证校验通过返回的参数为aaa,那么此字段填写为$context.authorizer.backend.aaa :return: The value of this BackendParamBase. :rtype: str @@ -160,7 +160,7 @@ def value(self): def value(self, value): """Sets the value of this BackendParamBase. - 参数值。字符长度不超过255,类别为REQUEST时,值为req_params中的参数名称;类别为CONSTANT时,值为参数真正的值;类别为SYSTEM时,值为网关参数名称 + 参数值。字符长度不超过255 origin类别为REQUEST时,此字段值为req_params中的参数名称; origin类别为CONSTANT时,此字段值为参数真正的值; origin类别为SYSTEM时,此字段值为系统参数名称,系统参数分为网关内置参数、前端认证参数和后端认证参数,当api前端安全认证方式为自定义认证时,可以填写前端认证参数,当api开启后端认证时,可以填写后端认证参数。 网关内置参数取值及对应含义: - $context.sourceIp:API调用者的源地址 - $context.stage:API调用的部署环境 - $context.apiId:API的ID - $context.appId:API调用者的APP对象ID - $context.requestId:当次API调用生成跟踪ID - $context.serverAddr:网关的服务器地址 - $context.serverName:网关的服务器名称 - $context.handleTime:本次API调用的处理时间 - $context.providerAppId:API拥有者的应用对象ID,暂不支持使用 前端认证参数取值:以“$context.authorizer.frontend.”为前缀,如希望自定义认证校验通过返回的参数为aaa,那么此字段填写为$context.authorizer.frontend.aaa 后端认证参数取值:以“$context.authorizer.backend.”为前缀,如希望自定义认证校验通过返回的参数为aaa,那么此字段填写为$context.authorizer.backend.aaa :param value: The value of this BackendParamBase. :type: str diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/base_page.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/base_page.py new file mode 100644 index 0000000000..6e34f5883d --- /dev/null +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/base_page.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class BasePage: + + + """ + 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 = { + 'size': 'int', + 'total': 'int' + } + + attribute_map = { + 'size': 'size', + 'total': 'total' + } + + def __init__(self, size=None, total=None): + """BasePage - a model defined in huaweicloud sdk""" + + + + self._size = None + self._total = None + self.discriminator = None + + self.size = size + self.total = total + + @property + def size(self): + """Gets the size of this BasePage. + + 本次返回的列表长度 + + :return: The size of this BasePage. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this BasePage. + + 本次返回的列表长度 + + :param size: The size of this BasePage. + :type: int + """ + self._size = size + + @property + def total(self): + """Gets the total of this BasePage. + + 满足条件的记录数 + + :return: The total of this BasePage. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this BasePage. + + 满足条件的记录数 + + :param total: The total of this BasePage. + :type: int + """ + self._total = total + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BasePage): + 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-apig/huaweicloudsdkapig/v2/model/create_api_group_v2_response.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/create_api_group_v2_response.py index b98c8d4b61..d6bc8b7f4e 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/create_api_group_v2_response.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/create_api_group_v2_response.py @@ -374,7 +374,7 @@ def register_time(self, register_time): def status(self): """Gets the status of this CreateApiGroupV2Response. - 状态 + 状态 - 1: 有效 :return: The status of this CreateApiGroupV2Response. :rtype: int @@ -385,7 +385,7 @@ def status(self): def status(self, status): """Sets the status of this CreateApiGroupV2Response. - 状态 + 状态 - 1: 有效 :param status: The status of this CreateApiGroupV2Response. :type: int diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/create_api_v2_response.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/create_api_v2_response.py index 3948ab1331..eba003d967 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/create_api_v2_response.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/create_api_v2_response.py @@ -232,7 +232,7 @@ def __init__(self, name=None, type=None, version=None, req_protocol=None, req_me def name(self): """Gets the name of this CreateApiV2Response. - API名称长度。 为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 + API名称。 长度为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 :return: The name of this CreateApiV2Response. :rtype: str @@ -243,7 +243,7 @@ def name(self): def name(self, name): """Sets the name of this CreateApiV2Response. - API名称长度。 为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 + API名称。 长度为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 :param name: The name of this CreateApiV2Response. :type: str @@ -342,7 +342,7 @@ def req_method(self, req_method): def req_uri(self): """Gets the req_uri of this CreateApiV2Response. - 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 支持环境变量,使用环境变量时,每个变量名的长度为3 ~ 32位的字符串,字符串由英文字母、数字、中划线、下划线组成,且只能以英文开头。 > 需要服从URI规范。 + 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 > 需要服从URI规范。 :return: The req_uri of this CreateApiV2Response. :rtype: str @@ -353,7 +353,7 @@ def req_uri(self): def req_uri(self, req_uri): """Sets the req_uri of this CreateApiV2Response. - 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 支持环境变量,使用环境变量时,每个变量名的长度为3 ~ 32位的字符串,字符串由英文字母、数字、中划线、下划线组成,且只能以英文开头。 > 需要服从URI规范。 + 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 > 需要服从URI规范。 :param req_uri: The req_uri of this CreateApiV2Response. :type: str @@ -736,7 +736,7 @@ def id(self, id): def status(self): """Gets the status of this CreateApiV2Response. - API的状态 + API状态 - 1: 有效 :return: The status of this CreateApiV2Response. :rtype: int @@ -747,7 +747,7 @@ def status(self): def status(self, status): """Sets the status of this CreateApiV2Response. - API的状态 + API状态 - 1: 有效 :param status: The status of this CreateApiV2Response. :type: int @@ -868,7 +868,7 @@ def group_version(self, group_version): def run_env_id(self): """Gets the run_env_id of this CreateApiV2Response. - 发布的环境id + 发布的环境编号 存在多个发布记录时,环境编号之间用|隔开 :return: The run_env_id of this CreateApiV2Response. :rtype: str @@ -879,7 +879,7 @@ def run_env_id(self): def run_env_id(self, run_env_id): """Sets the run_env_id of this CreateApiV2Response. - 发布的环境id + 发布的环境编号 存在多个发布记录时,环境编号之间用|隔开 :param run_env_id: The run_env_id of this CreateApiV2Response. :type: str @@ -890,7 +890,7 @@ def run_env_id(self, run_env_id): def run_env_name(self): """Gets the run_env_name of this CreateApiV2Response. - 发布的环境名称 + 发布的环境名称 存在多个发布记录时,环境名称之间用|隔开 :return: The run_env_name of this CreateApiV2Response. :rtype: str @@ -901,7 +901,7 @@ def run_env_name(self): def run_env_name(self, run_env_name): """Sets the run_env_name of this CreateApiV2Response. - 发布的环境名称 + 发布的环境名称 存在多个发布记录时,环境名称之间用|隔开 :param run_env_name: The run_env_name of this CreateApiV2Response. :type: str @@ -912,7 +912,7 @@ def run_env_name(self, run_env_name): def publish_id(self): """Gets the publish_id of this CreateApiV2Response. - 发布记录编号 存在多个发布记录时,编号之间用|隔开 + 发布记录编号 存在多个发布记录时,发布记录编号之间用|隔开 :return: The publish_id of this CreateApiV2Response. :rtype: str @@ -923,7 +923,7 @@ def publish_id(self): def publish_id(self, publish_id): """Sets the publish_id of this CreateApiV2Response. - 发布记录编号 存在多个发布记录时,编号之间用|隔开 + 发布记录编号 存在多个发布记录时,发布记录编号之间用|隔开 :param publish_id: The publish_id of this CreateApiV2Response. :type: str diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_api_groups_v2_response.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_api_groups_v2_response.py index 05871e1743..25ab696e84 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_api_groups_v2_response.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_api_groups_v2_response.py @@ -23,56 +23,32 @@ class ListApiGroupsV2Response(SdkResponse): sensitive_list = [] openapi_types = { - 'total': 'int', 'size': 'int', + 'total': 'int', 'groups': 'list[ApiGroupDetailResp]' } attribute_map = { - 'total': 'total', 'size': 'size', + 'total': 'total', 'groups': 'groups' } - def __init__(self, total=None, size=None, groups=None): + def __init__(self, size=None, total=None, groups=None): """ListApiGroupsV2Response - a model defined in huaweicloud sdk""" super(ListApiGroupsV2Response, self).__init__() - self._total = None self._size = None + self._total = None self._groups = None self.discriminator = None - if total is not None: - self.total = total - if size is not None: - self.size = size + self.size = size + self.total = total if groups is not None: self.groups = groups - @property - def total(self): - """Gets the total of this ListApiGroupsV2Response. - - 满足条件的分组总数 - - :return: The total of this ListApiGroupsV2Response. - :rtype: int - """ - return self._total - - @total.setter - def total(self, total): - """Sets the total of this ListApiGroupsV2Response. - - 满足条件的分组总数 - - :param total: The total of this ListApiGroupsV2Response. - :type: int - """ - self._total = total - @property def size(self): """Gets the size of this ListApiGroupsV2Response. @@ -95,6 +71,28 @@ def size(self, size): """ self._size = size + @property + def total(self): + """Gets the total of this ListApiGroupsV2Response. + + 满足条件的记录数 + + :return: The total of this ListApiGroupsV2Response. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListApiGroupsV2Response. + + 满足条件的记录数 + + :param total: The total of this ListApiGroupsV2Response. + :type: int + """ + self._total = total + @property def groups(self): """Gets the groups of this ListApiGroupsV2Response. diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_binded_to_app_v2_response.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_binded_to_app_v2_response.py index f23e5cbc89..a1ed543361 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_binded_to_app_v2_response.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_binded_to_app_v2_response.py @@ -23,56 +23,32 @@ class ListApisBindedToAppV2Response(SdkResponse): sensitive_list = [] openapi_types = { - 'total': 'int', 'size': 'int', + 'total': 'int', 'auths': 'list[AppAuthBindedApiResp]' } attribute_map = { - 'total': 'total', 'size': 'size', + 'total': 'total', 'auths': 'auths' } - def __init__(self, total=None, size=None, auths=None): + def __init__(self, size=None, total=None, auths=None): """ListApisBindedToAppV2Response - a model defined in huaweicloud sdk""" super(ListApisBindedToAppV2Response, self).__init__() - self._total = None self._size = None + self._total = None self._auths = None self.discriminator = None - if total is not None: - self.total = total - if size is not None: - self.size = size + self.size = size + self.total = total if auths is not None: self.auths = auths - @property - def total(self): - """Gets the total of this ListApisBindedToAppV2Response. - - 符合条件的API总数 - - :return: The total of this ListApisBindedToAppV2Response. - :rtype: int - """ - return self._total - - @total.setter - def total(self, total): - """Sets the total of this ListApisBindedToAppV2Response. - - 符合条件的API总数 - - :param total: The total of this ListApisBindedToAppV2Response. - :type: int - """ - self._total = total - @property def size(self): """Gets the size of this ListApisBindedToAppV2Response. @@ -95,6 +71,28 @@ def size(self, size): """ self._size = size + @property + def total(self): + """Gets the total of this ListApisBindedToAppV2Response. + + 满足条件的记录数 + + :return: The total of this ListApisBindedToAppV2Response. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListApisBindedToAppV2Response. + + 满足条件的记录数 + + :param total: The total of this ListApisBindedToAppV2Response. + :type: int + """ + self._total = total + @property def auths(self): """Gets the auths of this ListApisBindedToAppV2Response. diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_binded_to_request_throttling_policy_v2_response.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_binded_to_request_throttling_policy_v2_response.py index 3a066a00ef..2089267b70 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_binded_to_request_throttling_policy_v2_response.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_binded_to_request_throttling_policy_v2_response.py @@ -23,77 +23,75 @@ class ListApisBindedToRequestThrottlingPolicyV2Response(SdkResponse): sensitive_list = [] openapi_types = { - 'total': 'int', 'size': 'int', + 'total': 'int', 'apis': 'list[ThrottleBindingApiResp]' } attribute_map = { - 'total': 'total', 'size': 'size', + 'total': 'total', 'apis': 'apis' } - def __init__(self, total=None, size=None, apis=None): + def __init__(self, size=None, total=None, apis=None): """ListApisBindedToRequestThrottlingPolicyV2Response - a model defined in huaweicloud sdk""" super(ListApisBindedToRequestThrottlingPolicyV2Response, self).__init__() - self._total = None self._size = None + self._total = None self._apis = None self.discriminator = None - if total is not None: - self.total = total - if size is not None: - self.size = size + self.size = size + self.total = total if apis is not None: self.apis = apis @property - def total(self): - """Gets the total of this ListApisBindedToRequestThrottlingPolicyV2Response. + def size(self): + """Gets the size of this ListApisBindedToRequestThrottlingPolicyV2Response. - 满足条件的API总数 + 本次返回的列表长度 - :return: The total of this ListApisBindedToRequestThrottlingPolicyV2Response. + :return: The size of this ListApisBindedToRequestThrottlingPolicyV2Response. :rtype: int """ - return self._total + return self._size - @total.setter - def total(self, total): - """Sets the total of this ListApisBindedToRequestThrottlingPolicyV2Response. + @size.setter + def size(self, size): + """Sets the size of this ListApisBindedToRequestThrottlingPolicyV2Response. - 满足条件的API总数 + 本次返回的列表长度 - :param total: The total of this ListApisBindedToRequestThrottlingPolicyV2Response. + :param size: The size of this ListApisBindedToRequestThrottlingPolicyV2Response. :type: int """ - self._total = total + self._size = size @property - def size(self): - """Gets the size of this ListApisBindedToRequestThrottlingPolicyV2Response. + def total(self): + """Gets the total of this ListApisBindedToRequestThrottlingPolicyV2Response. - 本次返回的API列表长度 + 满足条件的记录数 - :return: The size of this ListApisBindedToRequestThrottlingPolicyV2Response. + :return: The total of this ListApisBindedToRequestThrottlingPolicyV2Response. :rtype: int """ - return self._size + return self._total - @size.setter - def size(self, size): - """Sets the size of this ListApisBindedToRequestThrottlingPolicyV2Response. + @total.setter + def total(self, total): + """Sets the total of this ListApisBindedToRequestThrottlingPolicyV2Response. - 本次返回的API列表长度 + 满足条件的记录数 - :param size: The size of this ListApisBindedToRequestThrottlingPolicyV2Response. + :param total: The total of this ListApisBindedToRequestThrottlingPolicyV2Response. :type: int """ - self._size = size + self._total = total @property def apis(self): diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_binded_to_signature_key_v2_response.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_binded_to_signature_key_v2_response.py index 11c6968de5..3767f5f5fa 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_binded_to_signature_key_v2_response.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_binded_to_signature_key_v2_response.py @@ -23,77 +23,75 @@ class ListApisBindedToSignatureKeyV2Response(SdkResponse): sensitive_list = [] openapi_types = { - 'total': 'int', 'size': 'int', + 'total': 'int', 'bindings': 'list[SignBindingApiResp]' } attribute_map = { - 'total': 'total', 'size': 'size', + 'total': 'total', 'bindings': 'bindings' } - def __init__(self, total=None, size=None, bindings=None): + def __init__(self, size=None, total=None, bindings=None): """ListApisBindedToSignatureKeyV2Response - a model defined in huaweicloud sdk""" super(ListApisBindedToSignatureKeyV2Response, self).__init__() - self._total = None self._size = None + self._total = None self._bindings = None self.discriminator = None - if total is not None: - self.total = total - if size is not None: - self.size = size + self.size = size + self.total = total if bindings is not None: self.bindings = bindings @property - def total(self): - """Gets the total of this ListApisBindedToSignatureKeyV2Response. + def size(self): + """Gets the size of this ListApisBindedToSignatureKeyV2Response. - 本次查询满足条件的总数 + 本次返回的列表长度 - :return: The total of this ListApisBindedToSignatureKeyV2Response. + :return: The size of this ListApisBindedToSignatureKeyV2Response. :rtype: int """ - return self._total + return self._size - @total.setter - def total(self, total): - """Sets the total of this ListApisBindedToSignatureKeyV2Response. + @size.setter + def size(self, size): + """Sets the size of this ListApisBindedToSignatureKeyV2Response. - 本次查询满足条件的总数 + 本次返回的列表长度 - :param total: The total of this ListApisBindedToSignatureKeyV2Response. + :param size: The size of this ListApisBindedToSignatureKeyV2Response. :type: int """ - self._total = total + self._size = size @property - def size(self): - """Gets the size of this ListApisBindedToSignatureKeyV2Response. + def total(self): + """Gets the total of this ListApisBindedToSignatureKeyV2Response. - 本次查询返回的列表长度 + 满足条件的记录数 - :return: The size of this ListApisBindedToSignatureKeyV2Response. + :return: The total of this ListApisBindedToSignatureKeyV2Response. :rtype: int """ - return self._size + return self._total - @size.setter - def size(self, size): - """Sets the size of this ListApisBindedToSignatureKeyV2Response. + @total.setter + def total(self, total): + """Sets the total of this ListApisBindedToSignatureKeyV2Response. - 本次查询返回的列表长度 + 满足条件的记录数 - :param size: The size of this ListApisBindedToSignatureKeyV2Response. + :param total: The total of this ListApisBindedToSignatureKeyV2Response. :type: int """ - self._size = size + self._total = total @property def bindings(self): diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_not_bound_with_signature_key_v2_response.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_not_bound_with_signature_key_v2_response.py index cef25d7520..5b114b17f7 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_not_bound_with_signature_key_v2_response.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_not_bound_with_signature_key_v2_response.py @@ -23,77 +23,75 @@ class ListApisNotBoundWithSignatureKeyV2Response(SdkResponse): sensitive_list = [] openapi_types = { - 'total': 'int', 'size': 'int', + 'total': 'int', 'apis': 'list[SignUnbindingApiResp]' } attribute_map = { - 'total': 'total', 'size': 'size', + 'total': 'total', 'apis': 'apis' } - def __init__(self, total=None, size=None, apis=None): + def __init__(self, size=None, total=None, apis=None): """ListApisNotBoundWithSignatureKeyV2Response - a model defined in huaweicloud sdk""" super(ListApisNotBoundWithSignatureKeyV2Response, self).__init__() - self._total = None self._size = None + self._total = None self._apis = None self.discriminator = None - if total is not None: - self.total = total - if size is not None: - self.size = size + self.size = size + self.total = total if apis is not None: self.apis = apis @property - def total(self): - """Gets the total of this ListApisNotBoundWithSignatureKeyV2Response. + def size(self): + """Gets the size of this ListApisNotBoundWithSignatureKeyV2Response. - 满足查询条件的API的总个数 + 本次返回的列表长度 - :return: The total of this ListApisNotBoundWithSignatureKeyV2Response. + :return: The size of this ListApisNotBoundWithSignatureKeyV2Response. :rtype: int """ - return self._total + return self._size - @total.setter - def total(self, total): - """Sets the total of this ListApisNotBoundWithSignatureKeyV2Response. + @size.setter + def size(self, size): + """Sets the size of this ListApisNotBoundWithSignatureKeyV2Response. - 满足查询条件的API的总个数 + 本次返回的列表长度 - :param total: The total of this ListApisNotBoundWithSignatureKeyV2Response. + :param size: The size of this ListApisNotBoundWithSignatureKeyV2Response. :type: int """ - self._total = total + self._size = size @property - def size(self): - """Gets the size of this ListApisNotBoundWithSignatureKeyV2Response. + def total(self): + """Gets the total of this ListApisNotBoundWithSignatureKeyV2Response. - 本次查询返回的API列表长度 + 满足条件的记录数 - :return: The size of this ListApisNotBoundWithSignatureKeyV2Response. + :return: The total of this ListApisNotBoundWithSignatureKeyV2Response. :rtype: int """ - return self._size + return self._total - @size.setter - def size(self, size): - """Sets the size of this ListApisNotBoundWithSignatureKeyV2Response. + @total.setter + def total(self, total): + """Sets the total of this ListApisNotBoundWithSignatureKeyV2Response. - 本次查询返回的API列表长度 + 满足条件的记录数 - :param size: The size of this ListApisNotBoundWithSignatureKeyV2Response. + :param total: The total of this ListApisNotBoundWithSignatureKeyV2Response. :type: int """ - self._size = size + self._total = total @property def apis(self): diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_unbinded_to_app_v2_response.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_unbinded_to_app_v2_response.py index ba3866e59f..bb4a3b8438 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_unbinded_to_app_v2_response.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_unbinded_to_app_v2_response.py @@ -23,56 +23,32 @@ class ListApisUnbindedToAppV2Response(SdkResponse): sensitive_list = [] openapi_types = { - 'total': 'int', 'size': 'int', + 'total': 'int', 'apis': 'list[AppAuthUnBindedApiResp]' } attribute_map = { - 'total': 'total', 'size': 'size', + 'total': 'total', 'apis': 'apis' } - def __init__(self, total=None, size=None, apis=None): + def __init__(self, size=None, total=None, apis=None): """ListApisUnbindedToAppV2Response - a model defined in huaweicloud sdk""" super(ListApisUnbindedToAppV2Response, self).__init__() - self._total = None self._size = None + self._total = None self._apis = None self.discriminator = None - if total is not None: - self.total = total - if size is not None: - self.size = size + self.size = size + self.total = total if apis is not None: self.apis = apis - @property - def total(self): - """Gets the total of this ListApisUnbindedToAppV2Response. - - 符合条件的API总数 - - :return: The total of this ListApisUnbindedToAppV2Response. - :rtype: int - """ - return self._total - - @total.setter - def total(self, total): - """Sets the total of this ListApisUnbindedToAppV2Response. - - 符合条件的API总数 - - :param total: The total of this ListApisUnbindedToAppV2Response. - :type: int - """ - self._total = total - @property def size(self): """Gets the size of this ListApisUnbindedToAppV2Response. @@ -95,6 +71,28 @@ def size(self, size): """ self._size = size + @property + def total(self): + """Gets the total of this ListApisUnbindedToAppV2Response. + + 满足条件的记录数 + + :return: The total of this ListApisUnbindedToAppV2Response. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListApisUnbindedToAppV2Response. + + 满足条件的记录数 + + :param total: The total of this ListApisUnbindedToAppV2Response. + :type: int + """ + self._total = total + @property def apis(self): """Gets the apis of this ListApisUnbindedToAppV2Response. diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_unbinded_to_request_throttling_policy_v2_response.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_unbinded_to_request_throttling_policy_v2_response.py index 2dde8766dd..9821979381 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_unbinded_to_request_throttling_policy_v2_response.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_unbinded_to_request_throttling_policy_v2_response.py @@ -23,77 +23,75 @@ class ListApisUnbindedToRequestThrottlingPolicyV2Response(SdkResponse): sensitive_list = [] openapi_types = { - 'total': 'int', 'size': 'int', + 'total': 'int', 'apis': 'list[ThrottleBindingApiResp]' } attribute_map = { - 'total': 'total', 'size': 'size', + 'total': 'total', 'apis': 'apis' } - def __init__(self, total=None, size=None, apis=None): + def __init__(self, size=None, total=None, apis=None): """ListApisUnbindedToRequestThrottlingPolicyV2Response - a model defined in huaweicloud sdk""" super(ListApisUnbindedToRequestThrottlingPolicyV2Response, self).__init__() - self._total = None self._size = None + self._total = None self._apis = None self.discriminator = None - if total is not None: - self.total = total - if size is not None: - self.size = size + self.size = size + self.total = total if apis is not None: self.apis = apis @property - def total(self): - """Gets the total of this ListApisUnbindedToRequestThrottlingPolicyV2Response. + def size(self): + """Gets the size of this ListApisUnbindedToRequestThrottlingPolicyV2Response. - 满足条件的API总数 + 本次返回的列表长度 - :return: The total of this ListApisUnbindedToRequestThrottlingPolicyV2Response. + :return: The size of this ListApisUnbindedToRequestThrottlingPolicyV2Response. :rtype: int """ - return self._total + return self._size - @total.setter - def total(self, total): - """Sets the total of this ListApisUnbindedToRequestThrottlingPolicyV2Response. + @size.setter + def size(self, size): + """Sets the size of this ListApisUnbindedToRequestThrottlingPolicyV2Response. - 满足条件的API总数 + 本次返回的列表长度 - :param total: The total of this ListApisUnbindedToRequestThrottlingPolicyV2Response. + :param size: The size of this ListApisUnbindedToRequestThrottlingPolicyV2Response. :type: int """ - self._total = total + self._size = size @property - def size(self): - """Gets the size of this ListApisUnbindedToRequestThrottlingPolicyV2Response. + def total(self): + """Gets the total of this ListApisUnbindedToRequestThrottlingPolicyV2Response. - 本次返回的API列表长度 + 满足条件的记录数 - :return: The size of this ListApisUnbindedToRequestThrottlingPolicyV2Response. + :return: The total of this ListApisUnbindedToRequestThrottlingPolicyV2Response. :rtype: int """ - return self._size + return self._total - @size.setter - def size(self, size): - """Sets the size of this ListApisUnbindedToRequestThrottlingPolicyV2Response. + @total.setter + def total(self, total): + """Sets the total of this ListApisUnbindedToRequestThrottlingPolicyV2Response. - 本次返回的API列表长度 + 满足条件的记录数 - :param size: The size of this ListApisUnbindedToRequestThrottlingPolicyV2Response. + :param total: The total of this ListApisUnbindedToRequestThrottlingPolicyV2Response. :type: int """ - self._size = size + self._total = total @property def apis(self): diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_v2_response.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_v2_response.py index 45edcbd225..12140fbd66 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_v2_response.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apis_v2_response.py @@ -23,56 +23,32 @@ class ListApisV2Response(SdkResponse): sensitive_list = [] openapi_types = { - 'total': 'int', 'size': 'int', + 'total': 'int', 'apis': 'list[ApiInfoPerPage]' } attribute_map = { - 'total': 'total', 'size': 'size', + 'total': 'total', 'apis': 'apis' } - def __init__(self, total=None, size=None, apis=None): + def __init__(self, size=None, total=None, apis=None): """ListApisV2Response - a model defined in huaweicloud sdk""" super(ListApisV2Response, self).__init__() - self._total = None self._size = None + self._total = None self._apis = None self.discriminator = None - if total is not None: - self.total = total - if size is not None: - self.size = size + self.size = size + self.total = total if apis is not None: self.apis = apis - @property - def total(self): - """Gets the total of this ListApisV2Response. - - 满足条件的分组总数 - - :return: The total of this ListApisV2Response. - :rtype: int - """ - return self._total - - @total.setter - def total(self, total): - """Sets the total of this ListApisV2Response. - - 满足条件的分组总数 - - :param total: The total of this ListApisV2Response. - :type: int - """ - self._total = total - @property def size(self): """Gets the size of this ListApisV2Response. @@ -95,6 +71,28 @@ def size(self, size): """ self._size = size + @property + def total(self): + """Gets the total of this ListApisV2Response. + + 满足条件的记录数 + + :return: The total of this ListApisV2Response. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListApisV2Response. + + 满足条件的记录数 + + :param total: The total of this ListApisV2Response. + :type: int + """ + self._total = total + @property def apis(self): """Gets the apis of this ListApisV2Response. diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apps_binded_to_api_v2_response.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apps_binded_to_api_v2_response.py index 4fe578b284..4b2bc8e09a 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apps_binded_to_api_v2_response.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apps_binded_to_api_v2_response.py @@ -23,56 +23,32 @@ class ListAppsBindedToApiV2Response(SdkResponse): sensitive_list = [] openapi_types = { - 'total': 'int', 'size': 'int', + 'total': 'int', 'auths': 'list[AppAuthBindedApiResp]' } attribute_map = { - 'total': 'total', 'size': 'size', + 'total': 'total', 'auths': 'auths' } - def __init__(self, total=None, size=None, auths=None): + def __init__(self, size=None, total=None, auths=None): """ListAppsBindedToApiV2Response - a model defined in huaweicloud sdk""" super(ListAppsBindedToApiV2Response, self).__init__() - self._total = None self._size = None + self._total = None self._auths = None self.discriminator = None - if total is not None: - self.total = total - if size is not None: - self.size = size + self.size = size + self.total = total if auths is not None: self.auths = auths - @property - def total(self): - """Gets the total of this ListAppsBindedToApiV2Response. - - 符合条件的API总数 - - :return: The total of this ListAppsBindedToApiV2Response. - :rtype: int - """ - return self._total - - @total.setter - def total(self, total): - """Sets the total of this ListAppsBindedToApiV2Response. - - 符合条件的API总数 - - :param total: The total of this ListAppsBindedToApiV2Response. - :type: int - """ - self._total = total - @property def size(self): """Gets the size of this ListAppsBindedToApiV2Response. @@ -95,6 +71,28 @@ def size(self, size): """ self._size = size + @property + def total(self): + """Gets the total of this ListAppsBindedToApiV2Response. + + 满足条件的记录数 + + :return: The total of this ListAppsBindedToApiV2Response. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListAppsBindedToApiV2Response. + + 满足条件的记录数 + + :param total: The total of this ListAppsBindedToApiV2Response. + :type: int + """ + self._total = total + @property def auths(self): """Gets the auths of this ListAppsBindedToApiV2Response. diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apps_v2_response.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apps_v2_response.py index 52990dfe4b..5b692b9593 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apps_v2_response.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_apps_v2_response.py @@ -23,77 +23,75 @@ class ListAppsV2Response(SdkResponse): sensitive_list = [] openapi_types = { - 'total': 'int', 'size': 'int', + 'total': 'int', 'apps': 'list[AppInfoWithBindNumResp]' } attribute_map = { - 'total': 'total', 'size': 'size', + 'total': 'total', 'apps': 'apps' } - def __init__(self, total=None, size=None, apps=None): + def __init__(self, size=None, total=None, apps=None): """ListAppsV2Response - a model defined in huaweicloud sdk""" super(ListAppsV2Response, self).__init__() - self._total = None self._size = None + self._total = None self._apps = None self.discriminator = None - if total is not None: - self.total = total - if size is not None: - self.size = size + self.size = size + self.total = total if apps is not None: self.apps = apps @property - def total(self): - """Gets the total of this ListAppsV2Response. + def size(self): + """Gets the size of this ListAppsV2Response. - 符合条件的APP总数 + 本次返回的列表长度 - :return: The total of this ListAppsV2Response. + :return: The size of this ListAppsV2Response. :rtype: int """ - return self._total + return self._size - @total.setter - def total(self, total): - """Sets the total of this ListAppsV2Response. + @size.setter + def size(self, size): + """Sets the size of this ListAppsV2Response. - 符合条件的APP总数 + 本次返回的列表长度 - :param total: The total of this ListAppsV2Response. + :param size: The size of this ListAppsV2Response. :type: int """ - self._total = total + self._size = size @property - def size(self): - """Gets the size of this ListAppsV2Response. + def total(self): + """Gets the total of this ListAppsV2Response. - 本次查询返回的列表长度 + 满足条件的记录数 - :return: The size of this ListAppsV2Response. + :return: The total of this ListAppsV2Response. :rtype: int """ - return self._size + return self._total - @size.setter - def size(self, size): - """Sets the size of this ListAppsV2Response. + @total.setter + def total(self, total): + """Sets the total of this ListAppsV2Response. - 本次查询返回的列表长度 + 满足条件的记录数 - :param size: The size of this ListAppsV2Response. + :param total: The total of this ListAppsV2Response. :type: int """ - self._size = size + self._total = total @property def apps(self): diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_environment_variables_v2_response.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_environment_variables_v2_response.py index 38b66ea6f8..cc866917f1 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_environment_variables_v2_response.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_environment_variables_v2_response.py @@ -23,56 +23,32 @@ class ListEnvironmentVariablesV2Response(SdkResponse): sensitive_list = [] openapi_types = { - 'total': 'int', 'size': 'int', + 'total': 'int', 'variables': 'list[EnvVariableResp]' } attribute_map = { - 'total': 'total', 'size': 'size', + 'total': 'total', 'variables': 'variables' } - def __init__(self, total=None, size=None, variables=None): + def __init__(self, size=None, total=None, variables=None): """ListEnvironmentVariablesV2Response - a model defined in huaweicloud sdk""" super(ListEnvironmentVariablesV2Response, self).__init__() - self._total = None self._size = None + self._total = None self._variables = None self.discriminator = None - if total is not None: - self.total = total - if size is not None: - self.size = size + self.size = size + self.total = total if variables is not None: self.variables = variables - @property - def total(self): - """Gets the total of this ListEnvironmentVariablesV2Response. - - 满足条件的环境变量总数 - - :return: The total of this ListEnvironmentVariablesV2Response. - :rtype: int - """ - return self._total - - @total.setter - def total(self, total): - """Sets the total of this ListEnvironmentVariablesV2Response. - - 满足条件的环境变量总数 - - :param total: The total of this ListEnvironmentVariablesV2Response. - :type: int - """ - self._total = total - @property def size(self): """Gets the size of this ListEnvironmentVariablesV2Response. @@ -95,6 +71,28 @@ def size(self, size): """ self._size = size + @property + def total(self): + """Gets the total of this ListEnvironmentVariablesV2Response. + + 满足条件的记录数 + + :return: The total of this ListEnvironmentVariablesV2Response. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListEnvironmentVariablesV2Response. + + 满足条件的记录数 + + :param total: The total of this ListEnvironmentVariablesV2Response. + :type: int + """ + self._total = total + @property def variables(self): """Gets the variables of this ListEnvironmentVariablesV2Response. diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_environments_v2_response.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_environments_v2_response.py index fe2cd36fd1..704c5b602f 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_environments_v2_response.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_environments_v2_response.py @@ -23,56 +23,32 @@ class ListEnvironmentsV2Response(SdkResponse): sensitive_list = [] openapi_types = { - 'total': 'int', 'size': 'int', + 'total': 'int', 'envs': 'list[EnvResp]' } attribute_map = { - 'total': 'total', 'size': 'size', + 'total': 'total', 'envs': 'envs' } - def __init__(self, total=None, size=None, envs=None): + def __init__(self, size=None, total=None, envs=None): """ListEnvironmentsV2Response - a model defined in huaweicloud sdk""" super(ListEnvironmentsV2Response, self).__init__() - self._total = None self._size = None + self._total = None self._envs = None self.discriminator = None - if total is not None: - self.total = total - if size is not None: - self.size = size + self.size = size + self.total = total if envs is not None: self.envs = envs - @property - def total(self): - """Gets the total of this ListEnvironmentsV2Response. - - 符合条件的环境总数 - - :return: The total of this ListEnvironmentsV2Response. - :rtype: int - """ - return self._total - - @total.setter - def total(self, total): - """Sets the total of this ListEnvironmentsV2Response. - - 符合条件的环境总数 - - :param total: The total of this ListEnvironmentsV2Response. - :type: int - """ - self._total = total - @property def size(self): """Gets the size of this ListEnvironmentsV2Response. @@ -95,6 +71,28 @@ def size(self, size): """ self._size = size + @property + def total(self): + """Gets the total of this ListEnvironmentsV2Response. + + 满足条件的记录数 + + :return: The total of this ListEnvironmentsV2Response. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListEnvironmentsV2Response. + + 满足条件的记录数 + + :param total: The total of this ListEnvironmentsV2Response. + :type: int + """ + self._total = total + @property def envs(self): """Gets the envs of this ListEnvironmentsV2Response. diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_request_throttling_policies_binded_to_api_v2_response.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_request_throttling_policies_binded_to_api_v2_response.py index 627e5cf7d0..a7678c43db 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_request_throttling_policies_binded_to_api_v2_response.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_request_throttling_policies_binded_to_api_v2_response.py @@ -23,77 +23,75 @@ class ListRequestThrottlingPoliciesBindedToApiV2Response(SdkResponse): sensitive_list = [] openapi_types = { - 'total': 'int', 'size': 'int', + 'total': 'int', 'throttles': 'list[ThrottleBindingThrottleResp]' } attribute_map = { - 'total': 'total', 'size': 'size', + 'total': 'total', 'throttles': 'throttles' } - def __init__(self, total=None, size=None, throttles=None): + def __init__(self, size=None, total=None, throttles=None): """ListRequestThrottlingPoliciesBindedToApiV2Response - a model defined in huaweicloud sdk""" super(ListRequestThrottlingPoliciesBindedToApiV2Response, self).__init__() - self._total = None self._size = None + self._total = None self._throttles = None self.discriminator = None - if total is not None: - self.total = total - if size is not None: - self.size = size + self.size = size + self.total = total if throttles is not None: self.throttles = throttles @property - def total(self): - """Gets the total of this ListRequestThrottlingPoliciesBindedToApiV2Response. + def size(self): + """Gets the size of this ListRequestThrottlingPoliciesBindedToApiV2Response. - 满足条件的流控策略总数 + 本次返回的列表长度 - :return: The total of this ListRequestThrottlingPoliciesBindedToApiV2Response. + :return: The size of this ListRequestThrottlingPoliciesBindedToApiV2Response. :rtype: int """ - return self._total + return self._size - @total.setter - def total(self, total): - """Sets the total of this ListRequestThrottlingPoliciesBindedToApiV2Response. + @size.setter + def size(self, size): + """Sets the size of this ListRequestThrottlingPoliciesBindedToApiV2Response. - 满足条件的流控策略总数 + 本次返回的列表长度 - :param total: The total of this ListRequestThrottlingPoliciesBindedToApiV2Response. + :param size: The size of this ListRequestThrottlingPoliciesBindedToApiV2Response. :type: int """ - self._total = total + self._size = size @property - def size(self): - """Gets the size of this ListRequestThrottlingPoliciesBindedToApiV2Response. + def total(self): + """Gets the total of this ListRequestThrottlingPoliciesBindedToApiV2Response. - 本次查询返回的列表长度 + 满足条件的记录数 - :return: The size of this ListRequestThrottlingPoliciesBindedToApiV2Response. + :return: The total of this ListRequestThrottlingPoliciesBindedToApiV2Response. :rtype: int """ - return self._size + return self._total - @size.setter - def size(self, size): - """Sets the size of this ListRequestThrottlingPoliciesBindedToApiV2Response. + @total.setter + def total(self, total): + """Sets the total of this ListRequestThrottlingPoliciesBindedToApiV2Response. - 本次查询返回的列表长度 + 满足条件的记录数 - :param size: The size of this ListRequestThrottlingPoliciesBindedToApiV2Response. + :param total: The total of this ListRequestThrottlingPoliciesBindedToApiV2Response. :type: int """ - self._size = size + self._total = total @property def throttles(self): diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_request_throttling_policy_v2_response.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_request_throttling_policy_v2_response.py index b0455e831d..b8d4e1101e 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_request_throttling_policy_v2_response.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_request_throttling_policy_v2_response.py @@ -23,77 +23,75 @@ class ListRequestThrottlingPolicyV2Response(SdkResponse): sensitive_list = [] openapi_types = { - 'total': 'int', 'size': 'int', + 'total': 'int', 'throttles': 'list[ThrottleResp]' } attribute_map = { - 'total': 'total', 'size': 'size', + 'total': 'total', 'throttles': 'throttles' } - def __init__(self, total=None, size=None, throttles=None): + def __init__(self, size=None, total=None, throttles=None): """ListRequestThrottlingPolicyV2Response - a model defined in huaweicloud sdk""" super(ListRequestThrottlingPolicyV2Response, self).__init__() - self._total = None self._size = None + self._total = None self._throttles = None self.discriminator = None - if total is not None: - self.total = total - if size is not None: - self.size = size + self.size = size + self.total = total if throttles is not None: self.throttles = throttles @property - def total(self): - """Gets the total of this ListRequestThrottlingPolicyV2Response. + def size(self): + """Gets the size of this ListRequestThrottlingPolicyV2Response. - 符合条件的流控策略的数量 + 本次返回的列表长度 - :return: The total of this ListRequestThrottlingPolicyV2Response. + :return: The size of this ListRequestThrottlingPolicyV2Response. :rtype: int """ - return self._total + return self._size - @total.setter - def total(self, total): - """Sets the total of this ListRequestThrottlingPolicyV2Response. + @size.setter + def size(self, size): + """Sets the size of this ListRequestThrottlingPolicyV2Response. - 符合条件的流控策略的数量 + 本次返回的列表长度 - :param total: The total of this ListRequestThrottlingPolicyV2Response. + :param size: The size of this ListRequestThrottlingPolicyV2Response. :type: int """ - self._total = total + self._size = size @property - def size(self): - """Gets the size of this ListRequestThrottlingPolicyV2Response. + def total(self): + """Gets the total of this ListRequestThrottlingPolicyV2Response. - 本次查询返回的列表长度 + 满足条件的记录数 - :return: The size of this ListRequestThrottlingPolicyV2Response. + :return: The total of this ListRequestThrottlingPolicyV2Response. :rtype: int """ - return self._size + return self._total - @size.setter - def size(self, size): - """Sets the size of this ListRequestThrottlingPolicyV2Response. + @total.setter + def total(self, total): + """Sets the total of this ListRequestThrottlingPolicyV2Response. - 本次查询返回的列表长度 + 满足条件的记录数 - :param size: The size of this ListRequestThrottlingPolicyV2Response. + :param total: The total of this ListRequestThrottlingPolicyV2Response. :type: int """ - self._size = size + self._total = total @property def throttles(self): diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_signature_keys_binded_to_api_v2_response.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_signature_keys_binded_to_api_v2_response.py index 0eb561712a..b245e1d91b 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_signature_keys_binded_to_api_v2_response.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_signature_keys_binded_to_api_v2_response.py @@ -23,77 +23,75 @@ class ListSignatureKeysBindedToApiV2Response(SdkResponse): sensitive_list = [] openapi_types = { - 'total': 'int', 'size': 'int', + 'total': 'int', 'bindings': 'list[SignBindingApiResp]' } attribute_map = { - 'total': 'total', 'size': 'size', + 'total': 'total', 'bindings': 'bindings' } - def __init__(self, total=None, size=None, bindings=None): + def __init__(self, size=None, total=None, bindings=None): """ListSignatureKeysBindedToApiV2Response - a model defined in huaweicloud sdk""" super(ListSignatureKeysBindedToApiV2Response, self).__init__() - self._total = None self._size = None + self._total = None self._bindings = None self.discriminator = None - if total is not None: - self.total = total - if size is not None: - self.size = size + self.size = size + self.total = total if bindings is not None: self.bindings = bindings @property - def total(self): - """Gets the total of this ListSignatureKeysBindedToApiV2Response. + def size(self): + """Gets the size of this ListSignatureKeysBindedToApiV2Response. - 本次查询满足条件的总数 + 本次返回的列表长度 - :return: The total of this ListSignatureKeysBindedToApiV2Response. + :return: The size of this ListSignatureKeysBindedToApiV2Response. :rtype: int """ - return self._total + return self._size - @total.setter - def total(self, total): - """Sets the total of this ListSignatureKeysBindedToApiV2Response. + @size.setter + def size(self, size): + """Sets the size of this ListSignatureKeysBindedToApiV2Response. - 本次查询满足条件的总数 + 本次返回的列表长度 - :param total: The total of this ListSignatureKeysBindedToApiV2Response. + :param size: The size of this ListSignatureKeysBindedToApiV2Response. :type: int """ - self._total = total + self._size = size @property - def size(self): - """Gets the size of this ListSignatureKeysBindedToApiV2Response. + def total(self): + """Gets the total of this ListSignatureKeysBindedToApiV2Response. - 本次查询返回的列表长度 + 满足条件的记录数 - :return: The size of this ListSignatureKeysBindedToApiV2Response. + :return: The total of this ListSignatureKeysBindedToApiV2Response. :rtype: int """ - return self._size + return self._total - @size.setter - def size(self, size): - """Sets the size of this ListSignatureKeysBindedToApiV2Response. + @total.setter + def total(self, total): + """Sets the total of this ListSignatureKeysBindedToApiV2Response. - 本次查询返回的列表长度 + 满足条件的记录数 - :param size: The size of this ListSignatureKeysBindedToApiV2Response. + :param total: The total of this ListSignatureKeysBindedToApiV2Response. :type: int """ - self._size = size + self._total = total @property def bindings(self): diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_signature_keys_v2_response.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_signature_keys_v2_response.py index 52e6e06171..285ae2843d 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_signature_keys_v2_response.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_signature_keys_v2_response.py @@ -23,39 +23,59 @@ class ListSignatureKeysV2Response(SdkResponse): sensitive_list = [] openapi_types = { + 'size': 'int', 'total': 'int', - 'signs': 'list[SignatureCreateResp]', - 'size': 'int' + 'signs': 'list[SignatureCreateResp]' } attribute_map = { + 'size': 'size', 'total': 'total', - 'signs': 'signs', - 'size': 'size' + 'signs': 'signs' } - def __init__(self, total=None, signs=None, size=None): + def __init__(self, size=None, total=None, signs=None): """ListSignatureKeysV2Response - a model defined in huaweicloud sdk""" super(ListSignatureKeysV2Response, self).__init__() + self._size = None self._total = None self._signs = None - self._size = None self.discriminator = None - if total is not None: - self.total = total + self.size = size + self.total = total if signs is not None: self.signs = signs - if size is not None: - self.size = size + + @property + def size(self): + """Gets the size of this ListSignatureKeysV2Response. + + 本次返回的列表长度 + + :return: The size of this ListSignatureKeysV2Response. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this ListSignatureKeysV2Response. + + 本次返回的列表长度 + + :param size: The size of this ListSignatureKeysV2Response. + :type: int + """ + self._size = size @property def total(self): """Gets the total of this ListSignatureKeysV2Response. - 符合条件的签名密钥的数量 + 满足条件的记录数 :return: The total of this ListSignatureKeysV2Response. :rtype: int @@ -66,7 +86,7 @@ def total(self): def total(self, total): """Sets the total of this ListSignatureKeysV2Response. - 符合条件的签名密钥的数量 + 满足条件的记录数 :param total: The total of this ListSignatureKeysV2Response. :type: int @@ -95,28 +115,6 @@ def signs(self, signs): """ self._signs = signs - @property - def size(self): - """Gets the size of this ListSignatureKeysV2Response. - - 本次返回的列表长度 - - :return: The size of this ListSignatureKeysV2Response. - :rtype: int - """ - return self._size - - @size.setter - def size(self, size): - """Sets the size of this ListSignatureKeysV2Response. - - 本次返回的列表长度 - - :param size: The size of this ListSignatureKeysV2Response. - :type: int - """ - self._size = size - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_special_throttling_configurations_v2_response.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_special_throttling_configurations_v2_response.py index 7a8fccb41c..c0ed52b6d9 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_special_throttling_configurations_v2_response.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/list_special_throttling_configurations_v2_response.py @@ -23,77 +23,75 @@ class ListSpecialThrottlingConfigurationsV2Response(SdkResponse): sensitive_list = [] openapi_types = { - 'total': 'int', 'size': 'int', + 'total': 'int', 'throttle_specials': 'list[ThrottleSpecialResp]' } attribute_map = { - 'total': 'total', 'size': 'size', + 'total': 'total', 'throttle_specials': 'throttle_specials' } - def __init__(self, total=None, size=None, throttle_specials=None): + def __init__(self, size=None, total=None, throttle_specials=None): """ListSpecialThrottlingConfigurationsV2Response - a model defined in huaweicloud sdk""" super(ListSpecialThrottlingConfigurationsV2Response, self).__init__() - self._total = None self._size = None + self._total = None self._throttle_specials = None self.discriminator = None - if total is not None: - self.total = total - if size is not None: - self.size = size + self.size = size + self.total = total if throttle_specials is not None: self.throttle_specials = throttle_specials @property - def total(self): - """Gets the total of this ListSpecialThrottlingConfigurationsV2Response. + def size(self): + """Gets the size of this ListSpecialThrottlingConfigurationsV2Response. - 符合条件的特殊设置总数 + 本次返回的列表长度 - :return: The total of this ListSpecialThrottlingConfigurationsV2Response. + :return: The size of this ListSpecialThrottlingConfigurationsV2Response. :rtype: int """ - return self._total + return self._size - @total.setter - def total(self, total): - """Sets the total of this ListSpecialThrottlingConfigurationsV2Response. + @size.setter + def size(self, size): + """Sets the size of this ListSpecialThrottlingConfigurationsV2Response. - 符合条件的特殊设置总数 + 本次返回的列表长度 - :param total: The total of this ListSpecialThrottlingConfigurationsV2Response. + :param size: The size of this ListSpecialThrottlingConfigurationsV2Response. :type: int """ - self._total = total + self._size = size @property - def size(self): - """Gets the size of this ListSpecialThrottlingConfigurationsV2Response. + def total(self): + """Gets the total of this ListSpecialThrottlingConfigurationsV2Response. - 本次查询返回的列表长度 + 满足条件的记录数 - :return: The size of this ListSpecialThrottlingConfigurationsV2Response. + :return: The total of this ListSpecialThrottlingConfigurationsV2Response. :rtype: int """ - return self._size + return self._total - @size.setter - def size(self, size): - """Sets the size of this ListSpecialThrottlingConfigurationsV2Response. + @total.setter + def total(self, total): + """Sets the total of this ListSpecialThrottlingConfigurationsV2Response. - 本次查询返回的列表长度 + 满足条件的记录数 - :param size: The size of this ListSpecialThrottlingConfigurationsV2Response. + :param total: The total of this ListSpecialThrottlingConfigurationsV2Response. :type: int """ - self._size = size + self._total = total @property def throttle_specials(self): diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/show_details_of_api_group_v2_response.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/show_details_of_api_group_v2_response.py index dac2692f07..f72819cbd4 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/show_details_of_api_group_v2_response.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/show_details_of_api_group_v2_response.py @@ -374,7 +374,7 @@ def register_time(self, register_time): def status(self): """Gets the status of this ShowDetailsOfApiGroupV2Response. - 状态 + 状态 - 1: 有效 :return: The status of this ShowDetailsOfApiGroupV2Response. :rtype: int @@ -385,7 +385,7 @@ def status(self): def status(self, status): """Sets the status of this ShowDetailsOfApiGroupV2Response. - 状态 + 状态 - 1: 有效 :param status: The status of this ShowDetailsOfApiGroupV2Response. :type: int diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/show_details_of_api_v2_response.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/show_details_of_api_v2_response.py index 996ac776b0..da9770dc92 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/show_details_of_api_v2_response.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/show_details_of_api_v2_response.py @@ -232,7 +232,7 @@ def __init__(self, name=None, type=None, version=None, req_protocol=None, req_me def name(self): """Gets the name of this ShowDetailsOfApiV2Response. - API名称长度。 为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 + API名称。 长度为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 :return: The name of this ShowDetailsOfApiV2Response. :rtype: str @@ -243,7 +243,7 @@ def name(self): def name(self, name): """Sets the name of this ShowDetailsOfApiV2Response. - API名称长度。 为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 + API名称。 长度为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 :param name: The name of this ShowDetailsOfApiV2Response. :type: str @@ -342,7 +342,7 @@ def req_method(self, req_method): def req_uri(self): """Gets the req_uri of this ShowDetailsOfApiV2Response. - 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 支持环境变量,使用环境变量时,每个变量名的长度为3 ~ 32位的字符串,字符串由英文字母、数字、中划线、下划线组成,且只能以英文开头。 > 需要服从URI规范。 + 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 > 需要服从URI规范。 :return: The req_uri of this ShowDetailsOfApiV2Response. :rtype: str @@ -353,7 +353,7 @@ def req_uri(self): def req_uri(self, req_uri): """Sets the req_uri of this ShowDetailsOfApiV2Response. - 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 支持环境变量,使用环境变量时,每个变量名的长度为3 ~ 32位的字符串,字符串由英文字母、数字、中划线、下划线组成,且只能以英文开头。 > 需要服从URI规范。 + 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 > 需要服从URI规范。 :param req_uri: The req_uri of this ShowDetailsOfApiV2Response. :type: str @@ -736,7 +736,7 @@ def id(self, id): def status(self): """Gets the status of this ShowDetailsOfApiV2Response. - API的状态 + API状态 - 1: 有效 :return: The status of this ShowDetailsOfApiV2Response. :rtype: int @@ -747,7 +747,7 @@ def status(self): def status(self, status): """Sets the status of this ShowDetailsOfApiV2Response. - API的状态 + API状态 - 1: 有效 :param status: The status of this ShowDetailsOfApiV2Response. :type: int @@ -868,7 +868,7 @@ def group_version(self, group_version): def run_env_id(self): """Gets the run_env_id of this ShowDetailsOfApiV2Response. - 发布的环境id + 发布的环境编号 存在多个发布记录时,环境编号之间用|隔开 :return: The run_env_id of this ShowDetailsOfApiV2Response. :rtype: str @@ -879,7 +879,7 @@ def run_env_id(self): def run_env_id(self, run_env_id): """Sets the run_env_id of this ShowDetailsOfApiV2Response. - 发布的环境id + 发布的环境编号 存在多个发布记录时,环境编号之间用|隔开 :param run_env_id: The run_env_id of this ShowDetailsOfApiV2Response. :type: str @@ -890,7 +890,7 @@ def run_env_id(self, run_env_id): def run_env_name(self): """Gets the run_env_name of this ShowDetailsOfApiV2Response. - 发布的环境名称 + 发布的环境名称 存在多个发布记录时,环境名称之间用|隔开 :return: The run_env_name of this ShowDetailsOfApiV2Response. :rtype: str @@ -901,7 +901,7 @@ def run_env_name(self): def run_env_name(self, run_env_name): """Sets the run_env_name of this ShowDetailsOfApiV2Response. - 发布的环境名称 + 发布的环境名称 存在多个发布记录时,环境名称之间用|隔开 :param run_env_name: The run_env_name of this ShowDetailsOfApiV2Response. :type: str @@ -912,7 +912,7 @@ def run_env_name(self, run_env_name): def publish_id(self): """Gets the publish_id of this ShowDetailsOfApiV2Response. - 发布记录编号 存在多个发布记录时,编号之间用|隔开 + 发布记录编号 存在多个发布记录时,发布记录编号之间用|隔开 :return: The publish_id of this ShowDetailsOfApiV2Response. :rtype: str @@ -923,7 +923,7 @@ def publish_id(self): def publish_id(self, publish_id): """Sets the publish_id of this ShowDetailsOfApiV2Response. - 发布记录编号 存在多个发布记录时,编号之间用|隔开 + 发布记录编号 存在多个发布记录时,发布记录编号之间用|隔开 :param publish_id: The publish_id of this ShowDetailsOfApiV2Response. :type: str diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/throttle_special_req.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/throttle_special_req.py index aedf19cd40..e0653a667c 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/throttle_special_req.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/throttle_special_req.py @@ -74,7 +74,7 @@ def call_limits(self, call_limits): def object_id(self): """Gets the object_id of this ThrottleSpecialReq. - 特殊APP的编号或特殊租户的账号ID + 特殊APP的编号或特殊租户的帐号ID :return: The object_id of this ThrottleSpecialReq. :rtype: str @@ -85,7 +85,7 @@ def object_id(self): def object_id(self, object_id): """Sets the object_id of this ThrottleSpecialReq. - 特殊APP的编号或特殊租户的账号ID + 特殊APP的编号或特殊租户的帐号ID :param object_id: The object_id of this ThrottleSpecialReq. :type: str diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/update_api_group_v2_response.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/update_api_group_v2_response.py index 8812ff7a25..e673ee873c 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/update_api_group_v2_response.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/update_api_group_v2_response.py @@ -374,7 +374,7 @@ def register_time(self, register_time): def status(self): """Gets the status of this UpdateApiGroupV2Response. - 状态 + 状态 - 1: 有效 :return: The status of this UpdateApiGroupV2Response. :rtype: int @@ -385,7 +385,7 @@ def status(self): def status(self, status): """Sets the status of this UpdateApiGroupV2Response. - 状态 + 状态 - 1: 有效 :param status: The status of this UpdateApiGroupV2Response. :type: int diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/update_api_v2_response.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/update_api_v2_response.py index 3969d83301..ab2e40ffef 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/update_api_v2_response.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/update_api_v2_response.py @@ -232,7 +232,7 @@ def __init__(self, name=None, type=None, version=None, req_protocol=None, req_me def name(self): """Gets the name of this UpdateApiV2Response. - API名称长度。 为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 + API名称。 长度为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 :return: The name of this UpdateApiV2Response. :rtype: str @@ -243,7 +243,7 @@ def name(self): def name(self, name): """Sets the name of this UpdateApiV2Response. - API名称长度。 为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 + API名称。 长度为3 ~ 64位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。 :param name: The name of this UpdateApiV2Response. :type: str @@ -342,7 +342,7 @@ def req_method(self, req_method): def req_uri(self): """Gets the req_uri of this UpdateApiV2Response. - 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 支持环境变量,使用环境变量时,每个变量名的长度为3 ~ 32位的字符串,字符串由英文字母、数字、中划线、下划线组成,且只能以英文开头。 > 需要服从URI规范。 + 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 > 需要服从URI规范。 :return: The req_uri of this UpdateApiV2Response. :rtype: str @@ -353,7 +353,7 @@ def req_uri(self): def req_uri(self, req_uri): """Sets the req_uri of this UpdateApiV2Response. - 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 支持环境变量,使用环境变量时,每个变量名的长度为3 ~ 32位的字符串,字符串由英文字母、数字、中划线、下划线组成,且只能以英文开头。 > 需要服从URI规范。 + 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 > 需要服从URI规范。 :param req_uri: The req_uri of this UpdateApiV2Response. :type: str @@ -736,7 +736,7 @@ def id(self, id): def status(self): """Gets the status of this UpdateApiV2Response. - API的状态 + API状态 - 1: 有效 :return: The status of this UpdateApiV2Response. :rtype: int @@ -747,7 +747,7 @@ def status(self): def status(self, status): """Sets the status of this UpdateApiV2Response. - API的状态 + API状态 - 1: 有效 :param status: The status of this UpdateApiV2Response. :type: int @@ -868,7 +868,7 @@ def group_version(self, group_version): def run_env_id(self): """Gets the run_env_id of this UpdateApiV2Response. - 发布的环境id + 发布的环境编号 存在多个发布记录时,环境编号之间用|隔开 :return: The run_env_id of this UpdateApiV2Response. :rtype: str @@ -879,7 +879,7 @@ def run_env_id(self): def run_env_id(self, run_env_id): """Sets the run_env_id of this UpdateApiV2Response. - 发布的环境id + 发布的环境编号 存在多个发布记录时,环境编号之间用|隔开 :param run_env_id: The run_env_id of this UpdateApiV2Response. :type: str @@ -890,7 +890,7 @@ def run_env_id(self, run_env_id): def run_env_name(self): """Gets the run_env_name of this UpdateApiV2Response. - 发布的环境名称 + 发布的环境名称 存在多个发布记录时,环境名称之间用|隔开 :return: The run_env_name of this UpdateApiV2Response. :rtype: str @@ -901,7 +901,7 @@ def run_env_name(self): def run_env_name(self, run_env_name): """Sets the run_env_name of this UpdateApiV2Response. - 发布的环境名称 + 发布的环境名称 存在多个发布记录时,环境名称之间用|隔开 :param run_env_name: The run_env_name of this UpdateApiV2Response. :type: str @@ -912,7 +912,7 @@ def run_env_name(self, run_env_name): def publish_id(self): """Gets the publish_id of this UpdateApiV2Response. - 发布记录编号 存在多个发布记录时,编号之间用|隔开 + 发布记录编号 存在多个发布记录时,发布记录编号之间用|隔开 :return: The publish_id of this UpdateApiV2Response. :rtype: str @@ -923,7 +923,7 @@ def publish_id(self): def publish_id(self, publish_id): """Sets the publish_id of this UpdateApiV2Response. - 发布记录编号 存在多个发布记录时,编号之间用|隔开 + 发布记录编号 存在多个发布记录时,发布记录编号之间用|隔开 :param publish_id: The publish_id of this UpdateApiV2Response. :type: str diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/update_domain_v2_request.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/update_domain_v2_request.py new file mode 100644 index 0000000000..82268d4c68 --- /dev/null +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/update_domain_v2_request.py @@ -0,0 +1,186 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdateDomainV2Request: + + + """ + 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', + 'group_id': 'str', + 'domain_id': 'str', + 'body': 'UrlDomainModify' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'group_id': 'group_id', + 'domain_id': 'domain_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, group_id=None, domain_id=None, body=None): + """UpdateDomainV2Request - a model defined in huaweicloud sdk""" + + + + self._instance_id = None + self._group_id = None + self._domain_id = None + self._body = None + self.discriminator = None + + self.instance_id = instance_id + self.group_id = group_id + self.domain_id = domain_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this UpdateDomainV2Request. + + 实例编号 + + :return: The instance_id of this UpdateDomainV2Request. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UpdateDomainV2Request. + + 实例编号 + + :param instance_id: The instance_id of this UpdateDomainV2Request. + :type: str + """ + self._instance_id = instance_id + + @property + def group_id(self): + """Gets the group_id of this UpdateDomainV2Request. + + 分组的编号 + + :return: The group_id of this UpdateDomainV2Request. + :rtype: str + """ + return self._group_id + + @group_id.setter + def group_id(self, group_id): + """Sets the group_id of this UpdateDomainV2Request. + + 分组的编号 + + :param group_id: The group_id of this UpdateDomainV2Request. + :type: str + """ + self._group_id = group_id + + @property + def domain_id(self): + """Gets the domain_id of this UpdateDomainV2Request. + + 域名的编号 + + :return: The domain_id of this UpdateDomainV2Request. + :rtype: str + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this UpdateDomainV2Request. + + 域名的编号 + + :param domain_id: The domain_id of this UpdateDomainV2Request. + :type: str + """ + self._domain_id = domain_id + + @property + def body(self): + """Gets the body of this UpdateDomainV2Request. + + + :return: The body of this UpdateDomainV2Request. + :rtype: UrlDomainModify + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateDomainV2Request. + + + :param body: The body of this UpdateDomainV2Request. + :type: UrlDomainModify + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateDomainV2Request): + 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-apig/huaweicloudsdkapig/v2/model/update_domain_v2_response.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/update_domain_v2_response.py new file mode 100644 index 0000000000..f137524840 --- /dev/null +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/update_domain_v2_response.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class UpdateDomainV2Response(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 = { + 'url_domain': 'str', + 'id': 'str', + 'status': 'int', + 'min_ssl_version': 'str' + } + + attribute_map = { + 'url_domain': 'url_domain', + 'id': 'id', + 'status': 'status', + 'min_ssl_version': 'min_ssl_version' + } + + def __init__(self, url_domain=None, id=None, status=None, min_ssl_version=None): + """UpdateDomainV2Response - a model defined in huaweicloud sdk""" + + super(UpdateDomainV2Response, self).__init__() + + self._url_domain = None + self._id = None + self._status = None + self._min_ssl_version = None + self.discriminator = None + + if url_domain is not None: + self.url_domain = url_domain + if id is not None: + self.id = id + if status is not None: + self.status = status + if min_ssl_version is not None: + self.min_ssl_version = min_ssl_version + + @property + def url_domain(self): + """Gets the url_domain of this UpdateDomainV2Response. + + 自定义域名 + + :return: The url_domain of this UpdateDomainV2Response. + :rtype: str + """ + return self._url_domain + + @url_domain.setter + def url_domain(self, url_domain): + """Sets the url_domain of this UpdateDomainV2Response. + + 自定义域名 + + :param url_domain: The url_domain of this UpdateDomainV2Response. + :type: str + """ + self._url_domain = url_domain + + @property + def id(self): + """Gets the id of this UpdateDomainV2Response. + + 自定义域名的编号 + + :return: The id of this UpdateDomainV2Response. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this UpdateDomainV2Response. + + 自定义域名的编号 + + :param id: The id of this UpdateDomainV2Response. + :type: str + """ + self._id = id + + @property + def status(self): + """Gets the status of this UpdateDomainV2Response. + + CNAME解析状态 - 1: 未解析 - 2: 解析中 - 3: 解析成功 - 4: 解析失败 + + :return: The status of this UpdateDomainV2Response. + :rtype: int + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this UpdateDomainV2Response. + + CNAME解析状态 - 1: 未解析 - 2: 解析中 - 3: 解析成功 - 4: 解析失败 + + :param status: The status of this UpdateDomainV2Response. + :type: int + """ + self._status = status + + @property + def min_ssl_version(self): + """Gets the min_ssl_version of this UpdateDomainV2Response. + + 支持的最小SSL版本 + + :return: The min_ssl_version of this UpdateDomainV2Response. + :rtype: str + """ + return self._min_ssl_version + + @min_ssl_version.setter + def min_ssl_version(self, min_ssl_version): + """Sets the min_ssl_version of this UpdateDomainV2Response. + + 支持的最小SSL版本 + + :param min_ssl_version: The min_ssl_version of this UpdateDomainV2Response. + :type: str + """ + self._min_ssl_version = min_ssl_version + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateDomainV2Response): + 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-apig/huaweicloudsdkapig/v2/model/url_domain_base.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/url_domain_base.py new file mode 100644 index 0000000000..726a1434f8 --- /dev/null +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/url_domain_base.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UrlDomainBase: + + + """ + 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 = { + 'min_ssl_version': 'str' + } + + attribute_map = { + 'min_ssl_version': 'min_ssl_version' + } + + def __init__(self, min_ssl_version=None): + """UrlDomainBase - a model defined in huaweicloud sdk""" + + + + self._min_ssl_version = None + self.discriminator = None + + if min_ssl_version is not None: + self.min_ssl_version = min_ssl_version + + @property + def min_ssl_version(self): + """Gets the min_ssl_version of this UrlDomainBase. + + 最小ssl协议版本号。支持TLSv1.1或TLSv1.2 + + :return: The min_ssl_version of this UrlDomainBase. + :rtype: str + """ + return self._min_ssl_version + + @min_ssl_version.setter + def min_ssl_version(self, min_ssl_version): + """Sets the min_ssl_version of this UrlDomainBase. + + 最小ssl协议版本号。支持TLSv1.1或TLSv1.2 + + :param min_ssl_version: The min_ssl_version of this UrlDomainBase. + :type: str + """ + self._min_ssl_version = min_ssl_version + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UrlDomainBase): + 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-apig/huaweicloudsdkapig/v2/model/url_domain_base_info.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/url_domain_base_info.py new file mode 100644 index 0000000000..c2b50a8ede --- /dev/null +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/url_domain_base_info.py @@ -0,0 +1,187 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UrlDomainBaseInfo: + + + """ + 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 = { + 'url_domain': 'str', + 'id': 'str', + 'status': 'int', + 'min_ssl_version': 'str' + } + + attribute_map = { + 'url_domain': 'url_domain', + 'id': 'id', + 'status': 'status', + 'min_ssl_version': 'min_ssl_version' + } + + def __init__(self, url_domain=None, id=None, status=None, min_ssl_version=None): + """UrlDomainBaseInfo - a model defined in huaweicloud sdk""" + + + + self._url_domain = None + self._id = None + self._status = None + self._min_ssl_version = None + self.discriminator = None + + self.url_domain = url_domain + self.id = id + self.status = status + self.min_ssl_version = min_ssl_version + + @property + def url_domain(self): + """Gets the url_domain of this UrlDomainBaseInfo. + + 自定义域名 + + :return: The url_domain of this UrlDomainBaseInfo. + :rtype: str + """ + return self._url_domain + + @url_domain.setter + def url_domain(self, url_domain): + """Sets the url_domain of this UrlDomainBaseInfo. + + 自定义域名 + + :param url_domain: The url_domain of this UrlDomainBaseInfo. + :type: str + """ + self._url_domain = url_domain + + @property + def id(self): + """Gets the id of this UrlDomainBaseInfo. + + 自定义域名的编号 + + :return: The id of this UrlDomainBaseInfo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this UrlDomainBaseInfo. + + 自定义域名的编号 + + :param id: The id of this UrlDomainBaseInfo. + :type: str + """ + self._id = id + + @property + def status(self): + """Gets the status of this UrlDomainBaseInfo. + + CNAME解析状态 - 1: 未解析 - 2: 解析中 - 3: 解析成功 - 4: 解析失败 + + :return: The status of this UrlDomainBaseInfo. + :rtype: int + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this UrlDomainBaseInfo. + + CNAME解析状态 - 1: 未解析 - 2: 解析中 - 3: 解析成功 - 4: 解析失败 + + :param status: The status of this UrlDomainBaseInfo. + :type: int + """ + self._status = status + + @property + def min_ssl_version(self): + """Gets the min_ssl_version of this UrlDomainBaseInfo. + + 支持的最小SSL版本 + + :return: The min_ssl_version of this UrlDomainBaseInfo. + :rtype: str + """ + return self._min_ssl_version + + @min_ssl_version.setter + def min_ssl_version(self, min_ssl_version): + """Sets the min_ssl_version of this UrlDomainBaseInfo. + + 支持的最小SSL版本 + + :param min_ssl_version: The min_ssl_version of this UrlDomainBaseInfo. + :type: str + """ + self._min_ssl_version = min_ssl_version + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UrlDomainBaseInfo): + 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-apig/huaweicloudsdkapig/v2/model/url_domain_create.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/url_domain_create.py new file mode 100644 index 0000000000..b961f55a4b --- /dev/null +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/url_domain_create.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UrlDomainCreate: + + + """ + 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 = { + 'min_ssl_version': 'str', + 'url_domain': 'str' + } + + attribute_map = { + 'min_ssl_version': 'min_ssl_version', + 'url_domain': 'url_domain' + } + + def __init__(self, min_ssl_version=None, url_domain=None): + """UrlDomainCreate - a model defined in huaweicloud sdk""" + + + + self._min_ssl_version = None + self._url_domain = None + self.discriminator = None + + if min_ssl_version is not None: + self.min_ssl_version = min_ssl_version + if url_domain is not None: + self.url_domain = url_domain + + @property + def min_ssl_version(self): + """Gets the min_ssl_version of this UrlDomainCreate. + + 最小ssl协议版本号。支持TLSv1.1或TLSv1.2 + + :return: The min_ssl_version of this UrlDomainCreate. + :rtype: str + """ + return self._min_ssl_version + + @min_ssl_version.setter + def min_ssl_version(self, min_ssl_version): + """Sets the min_ssl_version of this UrlDomainCreate. + + 最小ssl协议版本号。支持TLSv1.1或TLSv1.2 + + :param min_ssl_version: The min_ssl_version of this UrlDomainCreate. + :type: str + """ + self._min_ssl_version = min_ssl_version + + @property + def url_domain(self): + """Gets the url_domain of this UrlDomainCreate. + + 自定义域名。长度为0-255位的字符串,需要符合域名规范。 + + :return: The url_domain of this UrlDomainCreate. + :rtype: str + """ + return self._url_domain + + @url_domain.setter + def url_domain(self, url_domain): + """Sets the url_domain of this UrlDomainCreate. + + 自定义域名。长度为0-255位的字符串,需要符合域名规范。 + + :param url_domain: The url_domain of this UrlDomainCreate. + :type: str + """ + self._url_domain = url_domain + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UrlDomainCreate): + 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-apig/huaweicloudsdkapig/v2/model/url_domain_modify.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/url_domain_modify.py new file mode 100644 index 0000000000..d9eaf85a0e --- /dev/null +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/url_domain_modify.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UrlDomainModify: + + + """ + 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 = { + 'min_ssl_version': 'str' + } + + attribute_map = { + 'min_ssl_version': 'min_ssl_version' + } + + def __init__(self, min_ssl_version=None): + """UrlDomainModify - a model defined in huaweicloud sdk""" + + + + self._min_ssl_version = None + self.discriminator = None + + self.min_ssl_version = min_ssl_version + + @property + def min_ssl_version(self): + """Gets the min_ssl_version of this UrlDomainModify. + + 最小ssl协议版本号。支持TLSv1.1或TLSv1.2 + + :return: The min_ssl_version of this UrlDomainModify. + :rtype: str + """ + return self._min_ssl_version + + @min_ssl_version.setter + def min_ssl_version(self, min_ssl_version): + """Sets the min_ssl_version of this UrlDomainModify. + + 最小ssl协议版本号。支持TLSv1.1或TLSv1.2 + + :param min_ssl_version: The min_ssl_version of this UrlDomainModify. + :type: str + """ + self._min_ssl_version = min_ssl_version + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UrlDomainModify): + 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-apig/huaweicloudsdkapig/v2/model/url_domains_resp.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/url_domains_resp.py index 3c9bfbe824..108b2e6258 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/url_domains_resp.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/url_domains_resp.py @@ -27,7 +27,8 @@ class UrlDomainsResp: 'domain': 'str', 'cname_status': 'int', 'ssl_id': 'str', - 'ssl_name': 'str' + 'ssl_name': 'str', + 'min_ssl_version': 'str' } attribute_map = { @@ -35,10 +36,11 @@ class UrlDomainsResp: 'domain': 'domain', 'cname_status': 'cname_status', 'ssl_id': 'ssl_id', - 'ssl_name': 'ssl_name' + 'ssl_name': 'ssl_name', + 'min_ssl_version': 'min_ssl_version' } - def __init__(self, id=None, domain=None, cname_status=None, ssl_id=None, ssl_name=None): + def __init__(self, id=None, domain=None, cname_status=None, ssl_id=None, ssl_name=None, min_ssl_version=None): """UrlDomainsResp - a model defined in huaweicloud sdk""" @@ -48,6 +50,7 @@ def __init__(self, id=None, domain=None, cname_status=None, ssl_id=None, ssl_nam self._cname_status = None self._ssl_id = None self._ssl_name = None + self._min_ssl_version = None self.discriminator = None if id is not None: @@ -60,6 +63,8 @@ def __init__(self, id=None, domain=None, cname_status=None, ssl_id=None, ssl_nam self.ssl_id = ssl_id if ssl_name is not None: self.ssl_name = ssl_name + if min_ssl_version is not None: + self.min_ssl_version = min_ssl_version @property def id(self): @@ -171,6 +176,28 @@ def ssl_name(self, ssl_name): """ self._ssl_name = ssl_name + @property + def min_ssl_version(self): + """Gets the min_ssl_version of this UrlDomainsResp. + + 最小SSL协议版本号,支持TLSv1.1或TLSv1.2 + + :return: The min_ssl_version of this UrlDomainsResp. + :rtype: str + """ + return self._min_ssl_version + + @min_ssl_version.setter + def min_ssl_version(self, min_ssl_version): + """Sets the min_ssl_version of this UrlDomainsResp. + + 最小SSL协议版本号,支持TLSv1.1或TLSv1.2 + + :param min_ssl_version: The min_ssl_version of this UrlDomainsResp. + :type: str + """ + self._min_ssl_version = min_ssl_version + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/region/apig_region.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/region/apig_region.py index 54353ec3b6..eda9004170 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/region/apig_region.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/region/apig_region.py @@ -26,6 +26,8 @@ def __init__(self): AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://apig.ap-southeast-3.myhuaweicloud.com") + RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://apig.ru-northwest-2.myhuaweicloud.com") + static_fields = { "cn-north-4": CN_NORTH_4, "cn-north-1": CN_NORTH_1, @@ -35,6 +37,7 @@ def __init__(self): "ap-southeast-2": AP_SOUTHEAST_2, "ap-southeast-1": AP_SOUTHEAST_1, "ap-southeast-3": AP_SOUTHEAST_3, + "ru-northwest-2": RU_NORTHWEST_2, } @staticmethod diff --git a/huaweicloud-sdk-apig/setup.py b/huaweicloud-sdk-apig/setup.py index d6efdcf4b9..9dbc516312 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "APIG"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-as/setup.py b/huaweicloud-sdk-as/setup.py index 07eab86630..468c0bd67f 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "AS"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-bcs/setup.py b/huaweicloud-sdk-bcs/setup.py index 58767ddf3a..4853cd6aa7 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "BCS"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/__init__.py b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/__init__.py index b826ab0255..8ca7f28aa1 100644 --- a/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/__init__.py +++ b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/__init__.py @@ -31,6 +31,8 @@ from huaweicloudsdkbms.v1.model.change_baremetal_name_server import ChangeBaremetalNameServer from huaweicloudsdkbms.v1.model.change_baremetal_server_name_request import ChangeBaremetalServerNameRequest from huaweicloudsdkbms.v1.model.change_baremetal_server_name_response import ChangeBaremetalServerNameResponse +from huaweicloudsdkbms.v1.model.change_baremetal_server_os_request import ChangeBaremetalServerOsRequest +from huaweicloudsdkbms.v1.model.change_baremetal_server_os_response import ChangeBaremetalServerOsResponse from huaweicloudsdkbms.v1.model.create_bare_metal_servers_request import CreateBareMetalServersRequest from huaweicloudsdkbms.v1.model.create_bare_metal_servers_response import CreateBareMetalServersResponse from huaweicloudsdkbms.v1.model.create_baremetal_servers_body import CreateBaremetalServersBody @@ -69,6 +71,8 @@ from huaweicloudsdkbms.v1.model.metadata_install import MetadataInstall from huaweicloudsdkbms.v1.model.metadata_list import MetadataList from huaweicloudsdkbms.v1.model.nics import Nics +from huaweicloudsdkbms.v1.model.os_change_req import OSChangeReq +from huaweicloudsdkbms.v1.model.os_change import OsChange from huaweicloudsdkbms.v1.model.os_extended_volumes import OsExtendedVolumes from huaweicloudsdkbms.v1.model.os_extended_volumes_info import OsExtendedVolumesInfo from huaweicloudsdkbms.v1.model.os_extra_specs import OsExtraSpecs diff --git a/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/bms_async_client.py b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/bms_async_client.py index 204f9ba73b..499f012260 100644 --- a/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/bms_async_client.py +++ b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/bms_async_client.py @@ -497,6 +497,71 @@ def change_baremetal_server_name_with_http_info(self, request): request_type=request.__class__.__name__) + def change_baremetal_server_os_async(self, request): + """change_baremetal_server_os + + 切换裸金属服务器的操作系统。切换操作系统支持密码或者密钥注入,该接口支持企业项目细粒度权限的校验,具体细粒度请参见 bms:servers:changeOS + + :param ChangeBaremetalServerOsRequest request + :return: ChangeBaremetalServerOsResponse + """ + return self.change_baremetal_server_os_with_http_info(request) + + def change_baremetal_server_os_with_http_info(self, request): + """change_baremetal_server_os + + 切换裸金属服务器的操作系统。切换操作系统支持密码或者密钥注入,该接口支持企业项目细粒度权限的校验,具体细粒度请参见 bms:servers:changeOS + + :param ChangeBaremetalServerOsRequest request + :return: ChangeBaremetalServerOsResponse + """ + + all_params = ['server_id', 'os_change_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'server_id' in local_var_params: + path_params['server_id'] = local_var_params['server_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/baremetalservers/{server_id}/changeos', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ChangeBaremetalServerOsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_bare_metal_servers_async(self, request): """创建裸金属服务器 diff --git a/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/bms_client.py b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/bms_client.py index 57acc700a9..0527095f2d 100644 --- a/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/bms_client.py +++ b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/bms_client.py @@ -497,6 +497,71 @@ def change_baremetal_server_name_with_http_info(self, request): request_type=request.__class__.__name__) + def change_baremetal_server_os(self, request): + """change_baremetal_server_os + + 切换裸金属服务器的操作系统。切换操作系统支持密码或者密钥注入,该接口支持企业项目细粒度权限的校验,具体细粒度请参见 bms:servers:changeOS + + :param ChangeBaremetalServerOsRequest request + :return: ChangeBaremetalServerOsResponse + """ + return self.change_baremetal_server_os_with_http_info(request) + + def change_baremetal_server_os_with_http_info(self, request): + """change_baremetal_server_os + + 切换裸金属服务器的操作系统。切换操作系统支持密码或者密钥注入,该接口支持企业项目细粒度权限的校验,具体细粒度请参见 bms:servers:changeOS + + :param ChangeBaremetalServerOsRequest request + :return: ChangeBaremetalServerOsResponse + """ + + all_params = ['server_id', 'os_change_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'server_id' in local_var_params: + path_params['server_id'] = local_var_params['server_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/baremetalservers/{server_id}/changeos', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ChangeBaremetalServerOsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_bare_metal_servers(self, request): """创建裸金属服务器 diff --git a/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/__init__.py b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/__init__.py index 85687ff61d..0a1bd63ac9 100644 --- a/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/__init__.py +++ b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/__init__.py @@ -28,6 +28,8 @@ from huaweicloudsdkbms.v1.model.change_baremetal_name_server import ChangeBaremetalNameServer from huaweicloudsdkbms.v1.model.change_baremetal_server_name_request import ChangeBaremetalServerNameRequest from huaweicloudsdkbms.v1.model.change_baremetal_server_name_response import ChangeBaremetalServerNameResponse +from huaweicloudsdkbms.v1.model.change_baremetal_server_os_request import ChangeBaremetalServerOsRequest +from huaweicloudsdkbms.v1.model.change_baremetal_server_os_response import ChangeBaremetalServerOsResponse from huaweicloudsdkbms.v1.model.create_bare_metal_servers_request import CreateBareMetalServersRequest from huaweicloudsdkbms.v1.model.create_bare_metal_servers_response import CreateBareMetalServersResponse from huaweicloudsdkbms.v1.model.create_baremetal_servers_body import CreateBaremetalServersBody @@ -66,6 +68,8 @@ from huaweicloudsdkbms.v1.model.metadata_install import MetadataInstall from huaweicloudsdkbms.v1.model.metadata_list import MetadataList from huaweicloudsdkbms.v1.model.nics import Nics +from huaweicloudsdkbms.v1.model.os_change_req import OSChangeReq +from huaweicloudsdkbms.v1.model.os_change import OsChange from huaweicloudsdkbms.v1.model.os_extended_volumes import OsExtendedVolumes from huaweicloudsdkbms.v1.model.os_extended_volumes_info import OsExtendedVolumesInfo from huaweicloudsdkbms.v1.model.os_extra_specs import OsExtraSpecs diff --git a/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/change_baremetal_name_responses_servers.py b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/change_baremetal_name_responses_servers.py index 71466a1145..5f2915040d 100644 --- a/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/change_baremetal_name_responses_servers.py +++ b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/change_baremetal_name_responses_servers.py @@ -65,7 +65,7 @@ class ChangeBaremetalNameResponsesServers: 'os_ext_srv_att_ruser_data': 'str', 'locked': 'bool', 'tags': 'list[str]', - 'server_tags': 'list[SystemTags]', + 'sys_tags': 'list[SystemTags]', 'enterprise_project_id': 'str', 'osscheduler_hints': 'ServerOsSchedulerHints' } @@ -113,12 +113,12 @@ class ChangeBaremetalNameResponsesServers: 'os_ext_srv_att_ruser_data': 'OS-EXT-SRV-ATTR:user_data', 'locked': 'locked', 'tags': 'tags', - 'server_tags': 'server_tags', + 'sys_tags': 'sys_tags', 'enterprise_project_id': 'enterprise_project_id', 'osscheduler_hints': 'os:scheduler_hints' } - def __init__(self, name=None, id=None, status=None, created=None, updated=None, flavor=None, image=None, tenant_id=None, key_name=None, user_id=None, metadata=None, host_id=None, addresses=None, security_groups=None, links=None, os_dc_fdisk_config=None, os_ext_a_zavailability_zone=None, os_ext_srv_att_rhost=None, os_ext_srv_att_rhypervisor_hostname=None, os_ext_srv_att_rinstance_name=None, os_ext_st_spower_state=None, os_ext_st_stask_state=None, os_ext_st_svm_state=None, os_srv_us_glaunched_at=None, os_srv_us_gterminated_at=None, os_extended_volumesvolumes_attached=None, access_i_pv4=None, access_i_pv6=None, fault=None, config_drive=None, progress=None, description=None, host_status=None, os_ext_srv_att_rhostname=None, os_ext_srv_att_rreservation_id=None, os_ext_srv_att_rlaunch_index=None, os_ext_srv_att_rkernel_id=None, os_ext_srv_att_rramdisk_id=None, os_ext_srv_att_rroot_device_name=None, os_ext_srv_att_ruser_data=None, locked=None, tags=None, server_tags=None, enterprise_project_id=None, osscheduler_hints=None): + def __init__(self, name=None, id=None, status=None, created=None, updated=None, flavor=None, image=None, tenant_id=None, key_name=None, user_id=None, metadata=None, host_id=None, addresses=None, security_groups=None, links=None, os_dc_fdisk_config=None, os_ext_a_zavailability_zone=None, os_ext_srv_att_rhost=None, os_ext_srv_att_rhypervisor_hostname=None, os_ext_srv_att_rinstance_name=None, os_ext_st_spower_state=None, os_ext_st_stask_state=None, os_ext_st_svm_state=None, os_srv_us_glaunched_at=None, os_srv_us_gterminated_at=None, os_extended_volumesvolumes_attached=None, access_i_pv4=None, access_i_pv6=None, fault=None, config_drive=None, progress=None, description=None, host_status=None, os_ext_srv_att_rhostname=None, os_ext_srv_att_rreservation_id=None, os_ext_srv_att_rlaunch_index=None, os_ext_srv_att_rkernel_id=None, os_ext_srv_att_rramdisk_id=None, os_ext_srv_att_rroot_device_name=None, os_ext_srv_att_ruser_data=None, locked=None, tags=None, sys_tags=None, enterprise_project_id=None, osscheduler_hints=None): """ChangeBaremetalNameResponsesServers - a model defined in huaweicloud sdk""" @@ -165,7 +165,7 @@ def __init__(self, name=None, id=None, status=None, created=None, updated=None, self._os_ext_srv_att_ruser_data = None self._locked = None self._tags = None - self._server_tags = None + self._sys_tags = None self._enterprise_project_id = None self._osscheduler_hints = None self.discriminator = None @@ -254,8 +254,8 @@ def __init__(self, name=None, id=None, status=None, created=None, updated=None, self.locked = locked if tags is not None: self.tags = tags - if server_tags is not None: - self.server_tags = server_tags + if sys_tags is not None: + self.sys_tags = sys_tags if enterprise_project_id is not None: self.enterprise_project_id = enterprise_project_id if osscheduler_hints is not None: @@ -1176,26 +1176,26 @@ def tags(self, tags): self._tags = tags @property - def server_tags(self): - """Gets the server_tags of this ChangeBaremetalNameResponsesServers. + def sys_tags(self): + """Gets the sys_tags of this ChangeBaremetalNameResponsesServers. 裸金属服务器的系统标签 - :return: The server_tags of this ChangeBaremetalNameResponsesServers. + :return: The sys_tags of this ChangeBaremetalNameResponsesServers. :rtype: list[SystemTags] """ - return self._server_tags + return self._sys_tags - @server_tags.setter - def server_tags(self, server_tags): - """Sets the server_tags of this ChangeBaremetalNameResponsesServers. + @sys_tags.setter + def sys_tags(self, sys_tags): + """Sets the sys_tags of this ChangeBaremetalNameResponsesServers. 裸金属服务器的系统标签 - :param server_tags: The server_tags of this ChangeBaremetalNameResponsesServers. + :param sys_tags: The sys_tags of this ChangeBaremetalNameResponsesServers. :type: list[SystemTags] """ - self._server_tags = server_tags + self._sys_tags = sys_tags @property def enterprise_project_id(self): diff --git a/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/change_baremetal_server_os_request.py b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/change_baremetal_server_os_request.py new file mode 100644 index 0000000000..0aea0dc384 --- /dev/null +++ b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/change_baremetal_server_os_request.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ChangeBaremetalServerOsRequest: + + + """ + 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 = { + 'server_id': 'str', + 'body': 'OSChangeReq' + } + + attribute_map = { + 'server_id': 'server_id', + 'body': 'body' + } + + def __init__(self, server_id=None, body=None): + """ChangeBaremetalServerOsRequest - a model defined in huaweicloud sdk""" + + + + self._server_id = None + self._body = None + self.discriminator = None + + self.server_id = server_id + if body is not None: + self.body = body + + @property + def server_id(self): + """Gets the server_id of this ChangeBaremetalServerOsRequest. + + 裸金属服务器ID + + :return: The server_id of this ChangeBaremetalServerOsRequest. + :rtype: str + """ + return self._server_id + + @server_id.setter + def server_id(self, server_id): + """Sets the server_id of this ChangeBaremetalServerOsRequest. + + 裸金属服务器ID + + :param server_id: The server_id of this ChangeBaremetalServerOsRequest. + :type: str + """ + self._server_id = server_id + + @property + def body(self): + """Gets the body of this ChangeBaremetalServerOsRequest. + + + :return: The body of this ChangeBaremetalServerOsRequest. + :rtype: OSChangeReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ChangeBaremetalServerOsRequest. + + + :param body: The body of this ChangeBaremetalServerOsRequest. + :type: OSChangeReq + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ChangeBaremetalServerOsRequest): + 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-bms/huaweicloudsdkbms/v1/model/change_baremetal_server_os_response.py b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/change_baremetal_server_os_response.py new file mode 100644 index 0000000000..dfc1f0fc1f --- /dev/null +++ b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/change_baremetal_server_os_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ChangeBaremetalServerOsResponse(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': 'jobId' + } + + def __init__(self, job_id=None): + """ChangeBaremetalServerOsResponse - a model defined in huaweicloud sdk""" + + super(ChangeBaremetalServerOsResponse, 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 ChangeBaremetalServerOsResponse. + + 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询 + + :return: The job_id of this ChangeBaremetalServerOsResponse. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this ChangeBaremetalServerOsResponse. + + 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询 + + :param job_id: The job_id of this ChangeBaremetalServerOsResponse. + :type: 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ChangeBaremetalServerOsResponse): + 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-bms/huaweicloudsdkbms/v1/model/os_change.py b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/os_change.py new file mode 100644 index 0000000000..2e8578a3d4 --- /dev/null +++ b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/os_change.py @@ -0,0 +1,215 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class OsChange: + + + """ + 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 = { + 'adminpass': 'str', + 'keyname': 'str', + 'userid': 'str', + 'imageid': 'str', + 'metadata': 'MetadataInstall' + } + + attribute_map = { + 'adminpass': 'adminpass', + 'keyname': 'keyname', + 'userid': 'userid', + 'imageid': 'imageid', + 'metadata': 'metadata' + } + + def __init__(self, adminpass=None, keyname=None, userid=None, imageid=None, metadata=None): + """OsChange - a model defined in huaweicloud sdk""" + + + + self._adminpass = None + self._keyname = None + self._userid = None + self._imageid = None + self._metadata = None + self.discriminator = None + + if adminpass is not None: + self.adminpass = adminpass + if keyname is not None: + self.keyname = keyname + if userid is not None: + self.userid = userid + self.imageid = imageid + if metadata is not None: + self.metadata = metadata + + @property + def adminpass(self): + """Gets the adminpass of this OsChange. + + 裸金属服务器管理员帐号的初始登录密码。其中,Linux管理员帐户为root,Windows管理员帐户为Administrator。建议密码复杂度如下:长度为8-26位。密码至少必须包含大写字母、小写字母、数字和特殊字符(!@$%^-_=+[{}]:,./?)中的三种。密码不能包含用户名或用户名的逆序。 说明:对于Windows裸金属服务器,不能包含用户名中超过两个连续字符的部分。对于Linux裸金属服务器也可使用user_data字段实现密码注入,此时adminpass字段无效。adminpass和keyname不能同时有值。adminpass和keyname如果同时为空,此时,metadata中的user_data属性必须有值。 + + :return: The adminpass of this OsChange. + :rtype: str + """ + return self._adminpass + + @adminpass.setter + def adminpass(self, adminpass): + """Sets the adminpass of this OsChange. + + 裸金属服务器管理员帐号的初始登录密码。其中,Linux管理员帐户为root,Windows管理员帐户为Administrator。建议密码复杂度如下:长度为8-26位。密码至少必须包含大写字母、小写字母、数字和特殊字符(!@$%^-_=+[{}]:,./?)中的三种。密码不能包含用户名或用户名的逆序。 说明:对于Windows裸金属服务器,不能包含用户名中超过两个连续字符的部分。对于Linux裸金属服务器也可使用user_data字段实现密码注入,此时adminpass字段无效。adminpass和keyname不能同时有值。adminpass和keyname如果同时为空,此时,metadata中的user_data属性必须有值。 + + :param adminpass: The adminpass of this OsChange. + :type: str + """ + self._adminpass = adminpass + + @property + def keyname(self): + """Gets the keyname of this OsChange. + + 密钥名称。密钥可以通过7.10.3-创建和导入SSH密钥(OpenStack原生)API创建,或者使用7.10.1-查询SSH密钥列表(OpenStack原生)API查询已有的密钥。 + + :return: The keyname of this OsChange. + :rtype: str + """ + return self._keyname + + @keyname.setter + def keyname(self, keyname): + """Sets the keyname of this OsChange. + + 密钥名称。密钥可以通过7.10.3-创建和导入SSH密钥(OpenStack原生)API创建,或者使用7.10.1-查询SSH密钥列表(OpenStack原生)API查询已有的密钥。 + + :param keyname: The keyname of this OsChange. + :type: str + """ + self._keyname = keyname + + @property + def userid(self): + """Gets the userid of this OsChange. + + 用户ID(登录管理控制台,进入我的凭证,即可看到“用户ID”)。 + + :return: The userid of this OsChange. + :rtype: str + """ + return self._userid + + @userid.setter + def userid(self, userid): + """Sets the userid of this OsChange. + + 用户ID(登录管理控制台,进入我的凭证,即可看到“用户ID”)。 + + :param userid: The userid of this OsChange. + :type: str + """ + self._userid = userid + + @property + def imageid(self): + """Gets the imageid of this OsChange. + + 镜像ID。镜像ID可以从镜像服务控制台获取,或者参考《镜像服务API参考》的“查询镜像列表”章节查询。在使用“查询镜像列表”API查询时,可以添加过滤字段“?virtual_env_type=Ironic”来筛选裸金属服务器镜像。 + + :return: The imageid of this OsChange. + :rtype: str + """ + return self._imageid + + @imageid.setter + def imageid(self, imageid): + """Sets the imageid of this OsChange. + + 镜像ID。镜像ID可以从镜像服务控制台获取,或者参考《镜像服务API参考》的“查询镜像列表”章节查询。在使用“查询镜像列表”API查询时,可以添加过滤字段“?virtual_env_type=Ironic”来筛选裸金属服务器镜像。 + + :param imageid: The imageid of this OsChange. + :type: str + """ + self._imageid = imageid + + @property + def metadata(self): + """Gets the metadata of this OsChange. + + + :return: The metadata of this OsChange. + :rtype: MetadataInstall + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this OsChange. + + + :param metadata: The metadata of this OsChange. + :type: MetadataInstall + """ + self._metadata = metadata + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, OsChange): + 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-bms/huaweicloudsdkbms/v1/model/os_change_req.py b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/os_change_req.py new file mode 100644 index 0000000000..660332ac2d --- /dev/null +++ b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/os_change_req.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class OSChangeReq: + + + """ + 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 = { + 'os_change': 'OsChange' + } + + attribute_map = { + 'os_change': 'os-change' + } + + def __init__(self, os_change=None): + """OSChangeReq - a model defined in huaweicloud sdk""" + + + + self._os_change = None + self.discriminator = None + + self.os_change = os_change + + @property + def os_change(self): + """Gets the os_change of this OSChangeReq. + + + :return: The os_change of this OSChangeReq. + :rtype: OsChange + """ + return self._os_change + + @os_change.setter + def os_change(self, os_change): + """Sets the os_change of this OSChangeReq. + + + :param os_change: The os_change of this OSChangeReq. + :type: OsChange + """ + self._os_change = os_change + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, OSChangeReq): + 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-bms/setup.py b/huaweicloud-sdk-bms/setup.py index f395d7e3b9..eb4f11dcb9 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "BMS"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/customer_on_demand_resource.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/customer_on_demand_resource.py index dadedbd474..0bafed1e89 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/customer_on_demand_resource.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/customer_on_demand_resource.py @@ -325,7 +325,7 @@ def status(self, status): def resource_spec_code(self): """Gets the resource_spec_code of this CustomerOnDemandResource. - 云服务产品的资源规格。如果是VM的资源规格,则需要在规格后面添加“.win”或“.linux”,例如“s2.small.1.linux”。具体请参见对应云服务的相关介绍。 + 云服务产品的资源规格。如果是VM的资源规格,则需要在规格后面添加“.win”或“.linux”,例如“s2.small.1.linux”。 :return: The resource_spec_code of this CustomerOnDemandResource. :rtype: str @@ -336,7 +336,7 @@ def resource_spec_code(self): def resource_spec_code(self, resource_spec_code): """Sets the resource_spec_code of this CustomerOnDemandResource. - 云服务产品的资源规格。如果是VM的资源规格,则需要在规格后面添加“.win”或“.linux”,例如“s2.small.1.linux”。具体请参见对应云服务的相关介绍。 + 云服务产品的资源规格。如果是VM的资源规格,则需要在规格后面添加“.win”或“.linux”,例如“s2.small.1.linux”。 :param resource_spec_code: The resource_spec_code of this CustomerOnDemandResource. :type: str diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/demand_product_info.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/demand_product_info.py index 8deea39646..e1c81a91fe 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/demand_product_info.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/demand_product_info.py @@ -157,7 +157,7 @@ def resource_type(self, resource_type): def resource_spec(self): """Gets the resource_spec of this DemandProductInfo. - 云服务产品的资源规格。如果是VM的资源规格,则需要在规格后面添加“.win”或“.linux”,例如“s2.small.1.linux”。具体请参见对应云服务的相关介绍。 + 云服务产品的资源规格。如果是VM的资源规格,则需要在规格后面添加“.win”或“.linux”,例如“s2.small.1.linux”。 :return: The resource_spec of this DemandProductInfo. :rtype: str @@ -168,7 +168,7 @@ def resource_spec(self): def resource_spec(self, resource_spec): """Sets the resource_spec of this DemandProductInfo. - 云服务产品的资源规格。如果是VM的资源规格,则需要在规格后面添加“.win”或“.linux”,例如“s2.small.1.linux”。具体请参见对应云服务的相关介绍。 + 云服务产品的资源规格。如果是VM的资源规格,则需要在规格后面添加“.win”或“.linux”,例如“s2.small.1.linux”。 :param resource_spec: The resource_spec of this DemandProductInfo. :type: str diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/free_resource_detail.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/free_resource_detail.py index a9f5b95c75..5374a45b42 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/free_resource_detail.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/free_resource_detail.py @@ -134,7 +134,7 @@ def free_resource_type_name(self, free_resource_type_name): def quota_reuse_cycle(self): """Gets the quota_reuse_cycle of this FreeResourceDetail. - 重置周期,只有quota_reuse_mode为可重置,该字段才有意义。 1:小时2:天3:周4:月5:年| + 重置周期,只有quota_reuse_mode为可重置,该字段才有意义。 1:小时2:天3:周4:月5:年 :return: The quota_reuse_cycle of this FreeResourceDetail. :rtype: int @@ -145,7 +145,7 @@ def quota_reuse_cycle(self): def quota_reuse_cycle(self, quota_reuse_cycle): """Sets the quota_reuse_cycle of this FreeResourceDetail. - 重置周期,只有quota_reuse_mode为可重置,该字段才有意义。 1:小时2:天3:周4:月5:年| + 重置周期,只有quota_reuse_mode为可重置,该字段才有意义。 1:小时2:天3:周4:月5:年 :param quota_reuse_cycle: The quota_reuse_cycle of this FreeResourceDetail. :type: int diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/free_resource_package.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/free_resource_package.py index 88373b5c3a..65e3818fb8 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/free_resource_package.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/free_resource_package.py @@ -291,7 +291,7 @@ def expire_time(self, expire_time): def status(self): """Gets the status of this FreeResourcePackage. - 状态: 0:未生效1:生效中2:已用完3:已失效 + 状态: 0:未生效1:生效中2:已用完3:已失效4:已退订 :return: The status of this FreeResourcePackage. :rtype: int @@ -302,7 +302,7 @@ def status(self): def status(self, status): """Sets the status of this FreeResourcePackage. - 状态: 0:未生效1:生效中2:已用完3:已失效 + 状态: 0:未生效1:生效中2:已用完3:已失效4:已退订 :param status: The status of this FreeResourcePackage. :type: int @@ -423,7 +423,7 @@ def quota_reuse_mode(self, quota_reuse_mode): def free_resources(self): """Gets the free_resources of this FreeResourcePackage. - 资源套餐内的资源项信息(资源项ID级的详情)。 + 资源套餐内的资源项信息(资源项ID级的详情),具体参见表3。 :return: The free_resources of this FreeResourcePackage. :rtype: list[FreeResource] @@ -434,7 +434,7 @@ def free_resources(self): def free_resources(self, free_resources): """Sets the free_resources of this FreeResourcePackage. - 资源套餐内的资源项信息(资源项ID级的详情)。 + 资源套餐内的资源项信息(资源项ID级的详情),具体参见表3。 :param free_resources: The free_resources of this FreeResourcePackage. :type: list[FreeResource] diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_free_resource_usages_req.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_free_resource_usages_req.py index 05f967cf3f..1e76491ec5 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_free_resource_usages_req.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_free_resource_usages_req.py @@ -38,8 +38,7 @@ def __init__(self, free_resource_ids=None): self._free_resource_ids = None self.discriminator = None - if free_resource_ids is not None: - self.free_resource_ids = free_resource_ids + self.free_resource_ids = free_resource_ids @property def free_resource_ids(self): diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_free_resource_usages_response.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_free_resource_usages_response.py index c0fe0863b3..debff57438 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_free_resource_usages_response.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_free_resource_usages_response.py @@ -45,7 +45,7 @@ def __init__(self, free_resources=None): def free_resources(self): """Gets the free_resources of this ListFreeResourceUsagesResponse. - 资源套餐内的资源项信息(资源项ID级的详情)。 + 资源套餐内的资源项信息(资源项ID级的详情),具体参见表2。 :return: The free_resources of this ListFreeResourceUsagesResponse. :rtype: list[FreeResourceDetail] @@ -56,7 +56,7 @@ def free_resources(self): def free_resources(self, free_resources): """Sets the free_resources of this ListFreeResourceUsagesResponse. - 资源套餐内的资源项信息(资源项ID级的详情)。 + 资源套餐内的资源项信息(资源项ID级的详情),具体参见表2。 :param free_resources: The free_resources of this ListFreeResourceUsagesResponse. :type: list[FreeResourceDetail] diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_free_resources_req.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_free_resources_req.py index e245c377bc..f8a798f1e2 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_free_resources_req.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_free_resources_req.py @@ -190,7 +190,7 @@ def enterprise_project_id(self, enterprise_project_id): def status(self): """Gets the status of this ListFreeResourcesReq. - 状态: 0:未生效1:生效中2:已用完3:已失效 + 状态: 0:未生效1:生效中2:已用完3:已失效4:已退订 :return: The status of this ListFreeResourcesReq. :rtype: int @@ -201,7 +201,7 @@ def status(self): def status(self, status): """Sets the status of this ListFreeResourcesReq. - 状态: 0:未生效1:生效中2:已用完3:已失效 + 状态: 0:未生效1:生效中2:已用完3:已失效4:已退订 :param status: The status of this ListFreeResourcesReq. :type: int diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_free_resources_response.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_free_resources_response.py index 1b45ea04d5..2b1536131c 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_free_resources_response.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_free_resources_response.py @@ -72,7 +72,7 @@ def total_count(self, total_count): def free_resource_packages(self): """Gets the free_resource_packages of this ListFreeResourcesResponse. - 资源包信息列表。 + 资源包信息列表,具体参见表2。 :return: The free_resource_packages of this ListFreeResourcesResponse. :rtype: list[FreeResourcePackage] @@ -83,7 +83,7 @@ def free_resource_packages(self): def free_resource_packages(self, free_resource_packages): """Sets the free_resource_packages of this ListFreeResourcesResponse. - 资源包信息列表。 + 资源包信息列表,具体参见表2。 :param free_resource_packages: The free_resource_packages of this ListFreeResourcesResponse. :type: list[FreeResourcePackage] diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/order_instance_v2.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/order_instance_v2.py index 165eb1369d..3ca81ccf4e 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/order_instance_v2.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/order_instance_v2.py @@ -247,7 +247,7 @@ def resource_type_code(self, resource_type_code): def resource_spec_code(self): """Gets the resource_spec_code of this OrderInstanceV2. - 云服务产品的资源规格。如果是VM的资源规格,则需要在规格后面添加“.win”或“.linux”,例如“s2.small.1.linux”。具体请参见对应云服务的相关介绍。 + 云服务产品的资源规格。如果是VM的资源规格,则需要在规格后面添加“.win”或“.linux”,例如“s2.small.1.linux”。 :return: The resource_spec_code of this OrderInstanceV2. :rtype: str @@ -258,7 +258,7 @@ def resource_spec_code(self): def resource_spec_code(self, resource_spec_code): """Sets the resource_spec_code of this OrderInstanceV2. - 云服务产品的资源规格。如果是VM的资源规格,则需要在规格后面添加“.win”或“.linux”,例如“s2.small.1.linux”。具体请参见对应云服务的相关介绍。 + 云服务产品的资源规格。如果是VM的资源规格,则需要在规格后面添加“.win”或“.linux”,例如“s2.small.1.linux”。 :param resource_spec_code: The resource_spec_code of this OrderInstanceV2. :type: str diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/period_product_info.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/period_product_info.py index 9d03134883..3c9933c708 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/period_product_info.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/period_product_info.py @@ -153,7 +153,7 @@ def resource_type(self, resource_type): def resource_spec(self): """Gets the resource_spec of this PeriodProductInfo. - 云服务产品的资源规格。如果是VM的资源规格,则需要在规格后面添加“.win”或“.linux”,例如“s2.small.1.linux”。具体请参见对应云服务的相关介绍。 + 云服务产品的资源规格。如果是VM的资源规格,则需要在规格后面添加“.win”或“.linux”,例如“s2.small.1.linux”。 :return: The resource_spec of this PeriodProductInfo. :rtype: str @@ -164,7 +164,7 @@ def resource_spec(self): def resource_spec(self, resource_spec): """Sets the resource_spec of this PeriodProductInfo. - 云服务产品的资源规格。如果是VM的资源规格,则需要在规格后面添加“.win”或“.linux”,例如“s2.small.1.linux”。具体请参见对应云服务的相关介绍。 + 云服务产品的资源规格。如果是VM的资源规格,则需要在规格后面添加“.win”或“.linux”,例如“s2.small.1.linux”。 :param resource_spec: The resource_spec of this PeriodProductInfo. :type: str diff --git a/huaweicloud-sdk-bss/setup.py b/huaweicloud-sdk-bss/setup.py index 0a252ea520..f3c64a9e96 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "BSS"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/list_free_resource_usages_req.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/list_free_resource_usages_req.py index 005bb11654..0f83e81009 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/list_free_resource_usages_req.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/list_free_resource_usages_req.py @@ -38,8 +38,7 @@ def __init__(self, free_resource_ids=None): self._free_resource_ids = None self.discriminator = None - if free_resource_ids is not None: - self.free_resource_ids = free_resource_ids + self.free_resource_ids = free_resource_ids @property def free_resource_ids(self): diff --git a/huaweicloud-sdk-bssintl/setup.py b/huaweicloud-sdk-bssintl/setup.py index 68982b4fb7..21d4ec8557 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "BSSINTL"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-cbr/setup.py b/huaweicloud-sdk-cbr/setup.py index 07c12abb5a..ef879aacff 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "CBR"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/cce_async_client.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/cce_async_client.py index 32aef3f38a..d19614987f 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/cce_async_client.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/cce_async_client.py @@ -656,7 +656,7 @@ def delete_cluster_with_http_info(self, request): :return: DeleteClusterResponse """ - all_params = ['cluster_id', 'error_status', 'delete_efs', 'delete_eni', 'delete_evs', 'delete_net', 'delete_obs', 'delete_sfs'] + all_params = ['cluster_id', 'delete_efs', 'delete_eni', 'delete_evs', 'delete_net', 'delete_obs', 'delete_sfs'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -669,8 +669,6 @@ def delete_cluster_with_http_info(self, request): path_params['cluster_id'] = local_var_params['cluster_id'] query_params = [] - if 'error_status' in local_var_params: - query_params.append(('errorStatus', local_var_params['error_status'])) if 'delete_efs' in local_var_params: query_params.append(('delete_efs', local_var_params['delete_efs'])) if 'delete_eni' in local_var_params: @@ -733,7 +731,7 @@ def delete_node_with_http_info(self, request): :return: DeleteNodeResponse """ - all_params = ['cluster_id', 'node_id', 'error_status', 'nodepool_scale_down'] + all_params = ['cluster_id', 'node_id', 'nodepool_scale_down'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -748,8 +746,6 @@ def delete_node_with_http_info(self, request): path_params['node_id'] = local_var_params['node_id'] query_params = [] - if 'error_status' in local_var_params: - query_params.append(('errorStatus', local_var_params['error_status'])) if 'nodepool_scale_down' in local_var_params: query_params.append(('nodepoolScaleDown', local_var_params['nodepool_scale_down'])) @@ -802,7 +798,7 @@ def delete_node_pool_with_http_info(self, request): :return: DeleteNodePoolResponse """ - all_params = ['cluster_id', 'nodepool_id', 'error_status'] + all_params = ['cluster_id', 'nodepool_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -817,8 +813,6 @@ def delete_node_pool_with_http_info(self, request): path_params['nodepool_id'] = local_var_params['nodepool_id'] query_params = [] - if 'error_status' in local_var_params: - query_params.append(('errorStatus', local_var_params['error_status'])) header_params = {} @@ -932,7 +926,7 @@ def list_addon_instances_with_http_info(self, request): :return: ListAddonInstancesResponse """ - all_params = ['cluster_id', 'addon_template_name'] + all_params = ['cluster_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -943,8 +937,6 @@ def list_addon_instances_with_http_info(self, request): path_params = {} query_params = [] - if 'addon_template_name' in local_var_params: - query_params.append(('addon_template_name', local_var_params['addon_template_name'])) if 'cluster_id' in local_var_params: query_params.append(('cluster_id', local_var_params['cluster_id'])) @@ -997,7 +989,7 @@ def list_addon_templates_with_http_info(self, request): :return: ListAddonTemplatesResponse """ - all_params = ['addon_template_name', 'base_update_addon_version', 'cluster_id', 'newest', 'version'] + all_params = ['addon_template_name'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1010,14 +1002,6 @@ def list_addon_templates_with_http_info(self, request): query_params = [] if 'addon_template_name' in local_var_params: query_params.append(('addon_template_name', local_var_params['addon_template_name'])) - if 'base_update_addon_version' in local_var_params: - query_params.append(('base_update_addon_version', local_var_params['base_update_addon_version'])) - if 'cluster_id' in local_var_params: - query_params.append(('cluster_id', local_var_params['cluster_id'])) - if 'newest' in local_var_params: - query_params.append(('newest', local_var_params['newest'])) - if 'version' in local_var_params: - query_params.append(('version', local_var_params['version'])) header_params = {} @@ -1068,7 +1052,7 @@ def list_clusters_with_http_info(self, request): :return: ListClustersResponse """ - all_params = ['error_status', 'detail', 'status', 'type', 'version'] + all_params = ['detail', 'status', 'type', 'version'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1079,8 +1063,6 @@ def list_clusters_with_http_info(self, request): path_params = {} query_params = [] - if 'error_status' in local_var_params: - query_params.append(('errorStatus', local_var_params['error_status'])) if 'detail' in local_var_params: query_params.append(('detail', local_var_params['detail'])) if 'status' in local_var_params: @@ -1139,7 +1121,7 @@ def list_node_pools_with_http_info(self, request): :return: ListNodePoolsResponse """ - all_params = ['cluster_id', 'error_status', 'show_default_node_pool'] + all_params = ['cluster_id', 'show_default_node_pool'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1152,8 +1134,6 @@ def list_node_pools_with_http_info(self, request): path_params['cluster_id'] = local_var_params['cluster_id'] query_params = [] - if 'error_status' in local_var_params: - query_params.append(('errorStatus', local_var_params['error_status'])) if 'show_default_node_pool' in local_var_params: query_params.append(('showDefaultNodePool', local_var_params['show_default_node_pool'])) @@ -1206,7 +1186,7 @@ def list_nodes_with_http_info(self, request): :return: ListNodesResponse """ - all_params = ['cluster_id', 'error_status'] + all_params = ['cluster_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1219,8 +1199,6 @@ def list_nodes_with_http_info(self, request): path_params['cluster_id'] = local_var_params['cluster_id'] query_params = [] - if 'error_status' in local_var_params: - query_params.append(('errorStatus', local_var_params['error_status'])) header_params = {} @@ -1336,7 +1314,7 @@ def show_cluster_with_http_info(self, request): :return: ShowClusterResponse """ - all_params = ['cluster_id', 'error_status', 'detail'] + all_params = ['cluster_id', 'detail'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1349,8 +1327,6 @@ def show_cluster_with_http_info(self, request): path_params['cluster_id'] = local_var_params['cluster_id'] query_params = [] - if 'error_status' in local_var_params: - query_params.append(('errorStatus', local_var_params['error_status'])) if 'detail' in local_var_params: query_params.append(('detail', local_var_params['detail'])) @@ -1466,7 +1442,7 @@ def show_node_with_http_info(self, request): :return: ShowNodeResponse """ - all_params = ['cluster_id', 'node_id', 'error_status'] + all_params = ['cluster_id', 'node_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1481,8 +1457,6 @@ def show_node_with_http_info(self, request): path_params['node_id'] = local_var_params['node_id'] query_params = [] - if 'error_status' in local_var_params: - query_params.append(('errorStatus', local_var_params['error_status'])) header_params = {} @@ -1533,7 +1507,7 @@ def show_node_pool_with_http_info(self, request): :return: ShowNodePoolResponse """ - all_params = ['cluster_id', 'nodepool_id', 'error_status'] + all_params = ['cluster_id', 'nodepool_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1548,8 +1522,6 @@ def show_node_pool_with_http_info(self, request): path_params['nodepool_id'] = local_var_params['nodepool_id'] query_params = [] - if 'error_status' in local_var_params: - query_params.append(('errorStatus', local_var_params['error_status'])) header_params = {} @@ -1665,7 +1637,7 @@ def update_cluster_with_http_info(self, request): :return: UpdateClusterResponse """ - all_params = ['cluster_id', 'update_cluster_request_body', 'error_status'] + all_params = ['cluster_id', 'update_cluster_request_body'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1678,8 +1650,6 @@ def update_cluster_with_http_info(self, request): path_params['cluster_id'] = local_var_params['cluster_id'] query_params = [] - if 'error_status' in local_var_params: - query_params.append(('errorStatus', local_var_params['error_status'])) header_params = {} @@ -1732,7 +1702,7 @@ def update_node_with_http_info(self, request): :return: UpdateNodeResponse """ - all_params = ['cluster_id', 'node_id', 'update_node_request_body', 'error_status'] + all_params = ['cluster_id', 'node_id', 'update_node_request_body'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1747,8 +1717,6 @@ def update_node_with_http_info(self, request): path_params['node_id'] = local_var_params['node_id'] query_params = [] - if 'error_status' in local_var_params: - query_params.append(('errorStatus', local_var_params['error_status'])) header_params = {} @@ -1801,7 +1769,7 @@ def update_node_pool_with_http_info(self, request): :return: UpdateNodePoolResponse """ - all_params = ['cluster_id', 'nodepool_id', 'update_node_pool_request_body', 'error_status'] + all_params = ['cluster_id', 'nodepool_id', 'update_node_pool_request_body'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1816,8 +1784,6 @@ def update_node_pool_with_http_info(self, request): path_params['nodepool_id'] = local_var_params['nodepool_id'] query_params = [] - if 'error_status' in local_var_params: - query_params.append(('errorStatus', local_var_params['error_status'])) header_params = {} diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/cce_client.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/cce_client.py index b18df382c3..d3168d50d7 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/cce_client.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/cce_client.py @@ -656,7 +656,7 @@ def delete_cluster_with_http_info(self, request): :return: DeleteClusterResponse """ - all_params = ['cluster_id', 'error_status', 'delete_efs', 'delete_eni', 'delete_evs', 'delete_net', 'delete_obs', 'delete_sfs'] + all_params = ['cluster_id', 'delete_efs', 'delete_eni', 'delete_evs', 'delete_net', 'delete_obs', 'delete_sfs'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -669,8 +669,6 @@ def delete_cluster_with_http_info(self, request): path_params['cluster_id'] = local_var_params['cluster_id'] query_params = [] - if 'error_status' in local_var_params: - query_params.append(('errorStatus', local_var_params['error_status'])) if 'delete_efs' in local_var_params: query_params.append(('delete_efs', local_var_params['delete_efs'])) if 'delete_eni' in local_var_params: @@ -733,7 +731,7 @@ def delete_node_with_http_info(self, request): :return: DeleteNodeResponse """ - all_params = ['cluster_id', 'node_id', 'error_status', 'nodepool_scale_down'] + all_params = ['cluster_id', 'node_id', 'nodepool_scale_down'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -748,8 +746,6 @@ def delete_node_with_http_info(self, request): path_params['node_id'] = local_var_params['node_id'] query_params = [] - if 'error_status' in local_var_params: - query_params.append(('errorStatus', local_var_params['error_status'])) if 'nodepool_scale_down' in local_var_params: query_params.append(('nodepoolScaleDown', local_var_params['nodepool_scale_down'])) @@ -802,7 +798,7 @@ def delete_node_pool_with_http_info(self, request): :return: DeleteNodePoolResponse """ - all_params = ['cluster_id', 'nodepool_id', 'error_status'] + all_params = ['cluster_id', 'nodepool_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -817,8 +813,6 @@ def delete_node_pool_with_http_info(self, request): path_params['nodepool_id'] = local_var_params['nodepool_id'] query_params = [] - if 'error_status' in local_var_params: - query_params.append(('errorStatus', local_var_params['error_status'])) header_params = {} @@ -932,7 +926,7 @@ def list_addon_instances_with_http_info(self, request): :return: ListAddonInstancesResponse """ - all_params = ['cluster_id', 'addon_template_name'] + all_params = ['cluster_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -943,8 +937,6 @@ def list_addon_instances_with_http_info(self, request): path_params = {} query_params = [] - if 'addon_template_name' in local_var_params: - query_params.append(('addon_template_name', local_var_params['addon_template_name'])) if 'cluster_id' in local_var_params: query_params.append(('cluster_id', local_var_params['cluster_id'])) @@ -997,7 +989,7 @@ def list_addon_templates_with_http_info(self, request): :return: ListAddonTemplatesResponse """ - all_params = ['addon_template_name', 'base_update_addon_version', 'cluster_id', 'newest', 'version'] + all_params = ['addon_template_name'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1010,14 +1002,6 @@ def list_addon_templates_with_http_info(self, request): query_params = [] if 'addon_template_name' in local_var_params: query_params.append(('addon_template_name', local_var_params['addon_template_name'])) - if 'base_update_addon_version' in local_var_params: - query_params.append(('base_update_addon_version', local_var_params['base_update_addon_version'])) - if 'cluster_id' in local_var_params: - query_params.append(('cluster_id', local_var_params['cluster_id'])) - if 'newest' in local_var_params: - query_params.append(('newest', local_var_params['newest'])) - if 'version' in local_var_params: - query_params.append(('version', local_var_params['version'])) header_params = {} @@ -1068,7 +1052,7 @@ def list_clusters_with_http_info(self, request): :return: ListClustersResponse """ - all_params = ['error_status', 'detail', 'status', 'type', 'version'] + all_params = ['detail', 'status', 'type', 'version'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1079,8 +1063,6 @@ def list_clusters_with_http_info(self, request): path_params = {} query_params = [] - if 'error_status' in local_var_params: - query_params.append(('errorStatus', local_var_params['error_status'])) if 'detail' in local_var_params: query_params.append(('detail', local_var_params['detail'])) if 'status' in local_var_params: @@ -1139,7 +1121,7 @@ def list_node_pools_with_http_info(self, request): :return: ListNodePoolsResponse """ - all_params = ['cluster_id', 'error_status', 'show_default_node_pool'] + all_params = ['cluster_id', 'show_default_node_pool'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1152,8 +1134,6 @@ def list_node_pools_with_http_info(self, request): path_params['cluster_id'] = local_var_params['cluster_id'] query_params = [] - if 'error_status' in local_var_params: - query_params.append(('errorStatus', local_var_params['error_status'])) if 'show_default_node_pool' in local_var_params: query_params.append(('showDefaultNodePool', local_var_params['show_default_node_pool'])) @@ -1206,7 +1186,7 @@ def list_nodes_with_http_info(self, request): :return: ListNodesResponse """ - all_params = ['cluster_id', 'error_status'] + all_params = ['cluster_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1219,8 +1199,6 @@ def list_nodes_with_http_info(self, request): path_params['cluster_id'] = local_var_params['cluster_id'] query_params = [] - if 'error_status' in local_var_params: - query_params.append(('errorStatus', local_var_params['error_status'])) header_params = {} @@ -1336,7 +1314,7 @@ def show_cluster_with_http_info(self, request): :return: ShowClusterResponse """ - all_params = ['cluster_id', 'error_status', 'detail'] + all_params = ['cluster_id', 'detail'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1349,8 +1327,6 @@ def show_cluster_with_http_info(self, request): path_params['cluster_id'] = local_var_params['cluster_id'] query_params = [] - if 'error_status' in local_var_params: - query_params.append(('errorStatus', local_var_params['error_status'])) if 'detail' in local_var_params: query_params.append(('detail', local_var_params['detail'])) @@ -1466,7 +1442,7 @@ def show_node_with_http_info(self, request): :return: ShowNodeResponse """ - all_params = ['cluster_id', 'node_id', 'error_status'] + all_params = ['cluster_id', 'node_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1481,8 +1457,6 @@ def show_node_with_http_info(self, request): path_params['node_id'] = local_var_params['node_id'] query_params = [] - if 'error_status' in local_var_params: - query_params.append(('errorStatus', local_var_params['error_status'])) header_params = {} @@ -1533,7 +1507,7 @@ def show_node_pool_with_http_info(self, request): :return: ShowNodePoolResponse """ - all_params = ['cluster_id', 'nodepool_id', 'error_status'] + all_params = ['cluster_id', 'nodepool_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1548,8 +1522,6 @@ def show_node_pool_with_http_info(self, request): path_params['nodepool_id'] = local_var_params['nodepool_id'] query_params = [] - if 'error_status' in local_var_params: - query_params.append(('errorStatus', local_var_params['error_status'])) header_params = {} @@ -1665,7 +1637,7 @@ def update_cluster_with_http_info(self, request): :return: UpdateClusterResponse """ - all_params = ['cluster_id', 'update_cluster_request_body', 'error_status'] + all_params = ['cluster_id', 'update_cluster_request_body'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1678,8 +1650,6 @@ def update_cluster_with_http_info(self, request): path_params['cluster_id'] = local_var_params['cluster_id'] query_params = [] - if 'error_status' in local_var_params: - query_params.append(('errorStatus', local_var_params['error_status'])) header_params = {} @@ -1732,7 +1702,7 @@ def update_node_with_http_info(self, request): :return: UpdateNodeResponse """ - all_params = ['cluster_id', 'node_id', 'update_node_request_body', 'error_status'] + all_params = ['cluster_id', 'node_id', 'update_node_request_body'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1747,8 +1717,6 @@ def update_node_with_http_info(self, request): path_params['node_id'] = local_var_params['node_id'] query_params = [] - if 'error_status' in local_var_params: - query_params.append(('errorStatus', local_var_params['error_status'])) header_params = {} @@ -1801,7 +1769,7 @@ def update_node_pool_with_http_info(self, request): :return: UpdateNodePoolResponse """ - all_params = ['cluster_id', 'nodepool_id', 'update_node_pool_request_body', 'error_status'] + all_params = ['cluster_id', 'nodepool_id', 'update_node_pool_request_body'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1816,8 +1784,6 @@ def update_node_pool_with_http_info(self, request): path_params['nodepool_id'] = local_var_params['nodepool_id'] query_params = [] - if 'error_status' in local_var_params: - query_params.append(('errorStatus', local_var_params['error_status'])) header_params = {} diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/delete_cluster_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/delete_cluster_request.py index d984f6a852..7d88704988 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/delete_cluster_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/delete_cluster_request.py @@ -24,7 +24,6 @@ class DeleteClusterRequest: openapi_types = { 'cluster_id': 'str', - 'error_status': 'str', 'delete_efs': 'str', 'delete_eni': 'str', 'delete_evs': 'str', @@ -35,7 +34,6 @@ class DeleteClusterRequest: attribute_map = { 'cluster_id': 'cluster_id', - 'error_status': 'errorStatus', 'delete_efs': 'delete_efs', 'delete_eni': 'delete_eni', 'delete_evs': 'delete_evs', @@ -44,13 +42,12 @@ class DeleteClusterRequest: 'delete_sfs': 'delete_sfs' } - def __init__(self, cluster_id=None, error_status=None, delete_efs=None, delete_eni=None, delete_evs=None, delete_net=None, delete_obs=None, delete_sfs=None): + def __init__(self, cluster_id=None, delete_efs=None, delete_eni=None, delete_evs=None, delete_net=None, delete_obs=None, delete_sfs=None): """DeleteClusterRequest - a model defined in huaweicloud sdk""" self._cluster_id = None - self._error_status = None self._delete_efs = None self._delete_eni = None self._delete_evs = None @@ -60,8 +57,6 @@ def __init__(self, cluster_id=None, error_status=None, delete_efs=None, delete_e self.discriminator = None self.cluster_id = cluster_id - if error_status is not None: - self.error_status = error_status if delete_efs is not None: self.delete_efs = delete_efs if delete_eni is not None: @@ -97,28 +92,6 @@ def cluster_id(self, cluster_id): """ self._cluster_id = cluster_id - @property - def error_status(self): - """Gets the error_status of this DeleteClusterRequest. - - 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。 - - :return: The error_status of this DeleteClusterRequest. - :rtype: str - """ - return self._error_status - - @error_status.setter - def error_status(self, error_status): - """Sets the error_status of this DeleteClusterRequest. - - 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。 - - :param error_status: The error_status of this DeleteClusterRequest. - :type: str - """ - self._error_status = error_status - @property def delete_efs(self): """Gets the delete_efs of this DeleteClusterRequest. diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/delete_node_pool_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/delete_node_pool_request.py index 2a738bcb0b..ebdda9b57b 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/delete_node_pool_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/delete_node_pool_request.py @@ -24,30 +24,25 @@ class DeleteNodePoolRequest: openapi_types = { 'cluster_id': 'str', - 'nodepool_id': 'str', - 'error_status': 'str' + 'nodepool_id': 'str' } attribute_map = { 'cluster_id': 'cluster_id', - 'nodepool_id': 'nodepool_id', - 'error_status': 'errorStatus' + 'nodepool_id': 'nodepool_id' } - def __init__(self, cluster_id=None, nodepool_id=None, error_status=None): + def __init__(self, cluster_id=None, nodepool_id=None): """DeleteNodePoolRequest - a model defined in huaweicloud sdk""" self._cluster_id = None self._nodepool_id = None - self._error_status = None self.discriminator = None self.cluster_id = cluster_id self.nodepool_id = nodepool_id - if error_status is not None: - self.error_status = error_status @property def cluster_id(self): @@ -93,28 +88,6 @@ def nodepool_id(self, nodepool_id): """ self._nodepool_id = nodepool_id - @property - def error_status(self): - """Gets the error_status of this DeleteNodePoolRequest. - - 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。 - - :return: The error_status of this DeleteNodePoolRequest. - :rtype: str - """ - return self._error_status - - @error_status.setter - def error_status(self, error_status): - """Sets the error_status of this DeleteNodePoolRequest. - - 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。 - - :param error_status: The error_status of this DeleteNodePoolRequest. - :type: str - """ - self._error_status = error_status - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/delete_node_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/delete_node_request.py index 5858fcf68b..37a8ada457 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/delete_node_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/delete_node_request.py @@ -25,32 +25,27 @@ class DeleteNodeRequest: openapi_types = { 'cluster_id': 'str', 'node_id': 'str', - 'error_status': 'str', 'nodepool_scale_down': 'str' } attribute_map = { 'cluster_id': 'cluster_id', 'node_id': 'node_id', - 'error_status': 'errorStatus', 'nodepool_scale_down': 'nodepoolScaleDown' } - def __init__(self, cluster_id=None, node_id=None, error_status=None, nodepool_scale_down=None): + def __init__(self, cluster_id=None, node_id=None, nodepool_scale_down=None): """DeleteNodeRequest - a model defined in huaweicloud sdk""" self._cluster_id = None self._node_id = None - self._error_status = None self._nodepool_scale_down = None self.discriminator = None self.cluster_id = cluster_id self.node_id = node_id - if error_status is not None: - self.error_status = error_status if nodepool_scale_down is not None: self.nodepool_scale_down = nodepool_scale_down @@ -98,28 +93,6 @@ def node_id(self, node_id): """ self._node_id = node_id - @property - def error_status(self): - """Gets the error_status of this DeleteNodeRequest. - - 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。 - - :return: The error_status of this DeleteNodeRequest. - :rtype: str - """ - return self._error_status - - @error_status.setter - def error_status(self, error_status): - """Sets the error_status of this DeleteNodeRequest. - - 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。 - - :param error_status: The error_status of this DeleteNodeRequest. - :type: str - """ - self._error_status = error_status - @property def nodepool_scale_down(self): """Gets the nodepool_scale_down of this DeleteNodeRequest. diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/list_addon_instances_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/list_addon_instances_request.py index f450577fe6..03f7c3ff2f 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/list_addon_instances_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/list_addon_instances_request.py @@ -23,50 +23,23 @@ class ListAddonInstancesRequest: sensitive_list = [] openapi_types = { - 'addon_template_name': 'str', 'cluster_id': 'str' } attribute_map = { - 'addon_template_name': 'addon_template_name', 'cluster_id': 'cluster_id' } - def __init__(self, addon_template_name=None, cluster_id=None): + def __init__(self, cluster_id=None): """ListAddonInstancesRequest - a model defined in huaweicloud sdk""" - self._addon_template_name = None self._cluster_id = None self.discriminator = None - if addon_template_name is not None: - self.addon_template_name = addon_template_name self.cluster_id = cluster_id - @property - def addon_template_name(self): - """Gets the addon_template_name of this ListAddonInstancesRequest. - - 含义:想要筛选的插件名称 属性:隐藏参数 - - :return: The addon_template_name of this ListAddonInstancesRequest. - :rtype: str - """ - return self._addon_template_name - - @addon_template_name.setter - def addon_template_name(self, addon_template_name): - """Sets the addon_template_name of this ListAddonInstancesRequest. - - 含义:想要筛选的插件名称 属性:隐藏参数 - - :param addon_template_name: The addon_template_name of this ListAddonInstancesRequest. - :type: str - """ - self._addon_template_name = addon_template_name - @property def cluster_id(self): """Gets the cluster_id of this ListAddonInstancesRequest. diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/list_addon_templates_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/list_addon_templates_request.py index a4686bb68e..6d94fd5019 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/list_addon_templates_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/list_addon_templates_request.py @@ -23,43 +23,23 @@ class ListAddonTemplatesRequest: sensitive_list = [] openapi_types = { - 'addon_template_name': 'str', - 'base_update_addon_version': 'str', - 'cluster_id': 'str', - 'newest': 'str', - 'version': 'str' + 'addon_template_name': 'str' } attribute_map = { - 'addon_template_name': 'addon_template_name', - 'base_update_addon_version': 'base_update_addon_version', - 'cluster_id': 'cluster_id', - 'newest': 'newest', - 'version': 'version' + 'addon_template_name': 'addon_template_name' } - def __init__(self, addon_template_name=None, base_update_addon_version=None, cluster_id=None, newest=None, version=None): + def __init__(self, addon_template_name=None): """ListAddonTemplatesRequest - a model defined in huaweicloud sdk""" self._addon_template_name = None - self._base_update_addon_version = None - self._cluster_id = None - self._newest = None - self._version = None self.discriminator = None if addon_template_name is not None: self.addon_template_name = addon_template_name - if base_update_addon_version is not None: - self.base_update_addon_version = base_update_addon_version - if cluster_id is not None: - self.cluster_id = cluster_id - if newest is not None: - self.newest = newest - if version is not None: - self.version = version @property def addon_template_name(self): @@ -83,94 +63,6 @@ def addon_template_name(self, addon_template_name): """ self._addon_template_name = addon_template_name - @property - def base_update_addon_version(self): - """Gets the base_update_addon_version of this ListAddonTemplatesRequest. - - 含义:可接受的最低升级版本 属性:隐藏参数 - - :return: The base_update_addon_version of this ListAddonTemplatesRequest. - :rtype: str - """ - return self._base_update_addon_version - - @base_update_addon_version.setter - def base_update_addon_version(self, base_update_addon_version): - """Sets the base_update_addon_version of this ListAddonTemplatesRequest. - - 含义:可接受的最低升级版本 属性:隐藏参数 - - :param base_update_addon_version: The base_update_addon_version of this ListAddonTemplatesRequest. - :type: str - """ - self._base_update_addon_version = base_update_addon_version - - @property - def cluster_id(self): - """Gets the cluster_id of this ListAddonTemplatesRequest. - - 含义:查询的集群 属性:隐藏参数 - - :return: The cluster_id of this ListAddonTemplatesRequest. - :rtype: str - """ - return self._cluster_id - - @cluster_id.setter - def cluster_id(self, cluster_id): - """Sets the cluster_id of this ListAddonTemplatesRequest. - - 含义:查询的集群 属性:隐藏参数 - - :param cluster_id: The cluster_id of this ListAddonTemplatesRequest. - :type: str - """ - self._cluster_id = cluster_id - - @property - def newest(self): - """Gets the newest of this ListAddonTemplatesRequest. - - 含义:是否获取最新插件 属性:隐藏参数 - - :return: The newest of this ListAddonTemplatesRequest. - :rtype: str - """ - return self._newest - - @newest.setter - def newest(self, newest): - """Sets the newest of this ListAddonTemplatesRequest. - - 含义:是否获取最新插件 属性:隐藏参数 - - :param newest: The newest of this ListAddonTemplatesRequest. - :type: str - """ - self._newest = newest - - @property - def version(self): - """Gets the version of this ListAddonTemplatesRequest. - - 含义:筛选的插件版本 属性:隐藏参数 - - :return: The version of this ListAddonTemplatesRequest. - :rtype: str - """ - return self._version - - @version.setter - def version(self, version): - """Sets the version of this ListAddonTemplatesRequest. - - 含义:筛选的插件版本 属性:隐藏参数 - - :param version: The version of this ListAddonTemplatesRequest. - :type: str - """ - self._version = version - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/list_clusters_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/list_clusters_request.py index a361ab730b..dca7bec27a 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/list_clusters_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/list_clusters_request.py @@ -23,7 +23,6 @@ class ListClustersRequest: sensitive_list = [] openapi_types = { - 'error_status': 'str', 'detail': 'str', 'status': 'str', 'type': 'str', @@ -31,27 +30,23 @@ class ListClustersRequest: } attribute_map = { - 'error_status': 'errorStatus', 'detail': 'detail', 'status': 'status', 'type': 'type', 'version': 'version' } - def __init__(self, error_status=None, detail=None, status=None, type=None, version=None): + def __init__(self, detail=None, status=None, type=None, version=None): """ListClustersRequest - a model defined in huaweicloud sdk""" - self._error_status = None self._detail = None self._status = None self._type = None self._version = None self.discriminator = None - if error_status is not None: - self.error_status = error_status if detail is not None: self.detail = detail if status is not None: @@ -61,28 +56,6 @@ def __init__(self, error_status=None, detail=None, status=None, type=None, versi if version is not None: self.version = version - @property - def error_status(self): - """Gets the error_status of this ListClustersRequest. - - 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。 - - :return: The error_status of this ListClustersRequest. - :rtype: str - """ - return self._error_status - - @error_status.setter - def error_status(self, error_status): - """Sets the error_status of this ListClustersRequest. - - 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。 - - :param error_status: The error_status of this ListClustersRequest. - :type: str - """ - self._error_status = error_status - @property def detail(self): """Gets the detail of this ListClustersRequest. diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/list_node_pools_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/list_node_pools_request.py index 4477886af7..0652643748 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/list_node_pools_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/list_node_pools_request.py @@ -24,29 +24,24 @@ class ListNodePoolsRequest: openapi_types = { 'cluster_id': 'str', - 'error_status': 'str', 'show_default_node_pool': 'str' } attribute_map = { 'cluster_id': 'cluster_id', - 'error_status': 'errorStatus', 'show_default_node_pool': 'showDefaultNodePool' } - def __init__(self, cluster_id=None, error_status=None, show_default_node_pool=None): + def __init__(self, cluster_id=None, show_default_node_pool=None): """ListNodePoolsRequest - a model defined in huaweicloud sdk""" self._cluster_id = None - self._error_status = None self._show_default_node_pool = None self.discriminator = None self.cluster_id = cluster_id - if error_status is not None: - self.error_status = error_status if show_default_node_pool is not None: self.show_default_node_pool = show_default_node_pool @@ -72,28 +67,6 @@ def cluster_id(self, cluster_id): """ self._cluster_id = cluster_id - @property - def error_status(self): - """Gets the error_status of this ListNodePoolsRequest. - - 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。 - - :return: The error_status of this ListNodePoolsRequest. - :rtype: str - """ - return self._error_status - - @error_status.setter - def error_status(self, error_status): - """Sets the error_status of this ListNodePoolsRequest. - - 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。 - - :param error_status: The error_status of this ListNodePoolsRequest. - :type: str - """ - self._error_status = error_status - @property def show_default_node_pool(self): """Gets the show_default_node_pool of this ListNodePoolsRequest. diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/list_nodes_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/list_nodes_request.py index a36f9a7256..2be3a8c43b 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/list_nodes_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/list_nodes_request.py @@ -23,27 +23,22 @@ class ListNodesRequest: sensitive_list = [] openapi_types = { - 'cluster_id': 'str', - 'error_status': 'str' + 'cluster_id': 'str' } attribute_map = { - 'cluster_id': 'cluster_id', - 'error_status': 'errorStatus' + 'cluster_id': 'cluster_id' } - def __init__(self, cluster_id=None, error_status=None): + def __init__(self, cluster_id=None): """ListNodesRequest - a model defined in huaweicloud sdk""" self._cluster_id = None - self._error_status = None self.discriminator = None self.cluster_id = cluster_id - if error_status is not None: - self.error_status = error_status @property def cluster_id(self): @@ -67,28 +62,6 @@ def cluster_id(self, cluster_id): """ self._cluster_id = cluster_id - @property - def error_status(self): - """Gets the error_status of this ListNodesRequest. - - 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。 - - :return: The error_status of this ListNodesRequest. - :rtype: str - """ - return self._error_status - - @error_status.setter - def error_status(self, error_status): - """Sets the error_status of this ListNodesRequest. - - 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。 - - :param error_status: The error_status of this ListNodesRequest. - :type: str - """ - self._error_status = error_status - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/master_spec.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/master_spec.py index c7a3cb983d..4b1dbfb23a 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/master_spec.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/master_spec.py @@ -23,33 +23,23 @@ class MasterSpec: sensitive_list = [] openapi_types = { - 'availability_zone': 'str', - 'flavor': 'str', - 'fault_domain': 'str' + 'availability_zone': 'str' } attribute_map = { - 'availability_zone': 'availabilityZone', - 'flavor': 'flavor', - 'fault_domain': 'faultDomain' + 'availability_zone': 'availabilityZone' } - def __init__(self, availability_zone=None, flavor=None, fault_domain=None): + def __init__(self, availability_zone=None): """MasterSpec - a model defined in huaweicloud sdk""" self._availability_zone = None - self._flavor = None - self._fault_domain = None self.discriminator = None if availability_zone is not None: self.availability_zone = availability_zone - if flavor is not None: - self.flavor = flavor - if fault_domain is not None: - self.fault_domain = fault_domain @property def availability_zone(self): @@ -73,50 +63,6 @@ def availability_zone(self, availability_zone): """ self._availability_zone = availability_zone - @property - def flavor(self): - """Gets the flavor of this MasterSpec. - - 规格 - - :return: The flavor of this MasterSpec. - :rtype: str - """ - return self._flavor - - @flavor.setter - def flavor(self, flavor): - """Sets the flavor of this MasterSpec. - - 规格 - - :param flavor: The flavor of this MasterSpec. - :type: str - """ - self._flavor = flavor - - @property - def fault_domain(self): - """Gets the fault_domain of this MasterSpec. - - 故障域。 1. 指定该字段需要当前系统已开启故障域特性,否则校验失败。 2. 仅单az场景支持且必须显式指定az。 - - :return: The fault_domain of this MasterSpec. - :rtype: str - """ - return self._fault_domain - - @fault_domain.setter - def fault_domain(self, fault_domain): - """Sets the fault_domain of this MasterSpec. - - 故障域。 1. 指定该字段需要当前系统已开启故障域特性,否则校验失败。 2. 仅单az场景支持且必须显式指定az。 - - :param fault_domain: The fault_domain of this MasterSpec. - :type: str - """ - self._fault_domain = fault_domain - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_cluster_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_cluster_request.py index 3184b86d95..475c7211b3 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_cluster_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_cluster_request.py @@ -24,29 +24,24 @@ class ShowClusterRequest: openapi_types = { 'cluster_id': 'str', - 'error_status': 'str', 'detail': 'str' } attribute_map = { 'cluster_id': 'cluster_id', - 'error_status': 'errorStatus', 'detail': 'detail' } - def __init__(self, cluster_id=None, error_status=None, detail=None): + def __init__(self, cluster_id=None, detail=None): """ShowClusterRequest - a model defined in huaweicloud sdk""" self._cluster_id = None - self._error_status = None self._detail = None self.discriminator = None self.cluster_id = cluster_id - if error_status is not None: - self.error_status = error_status if detail is not None: self.detail = detail @@ -72,28 +67,6 @@ def cluster_id(self, cluster_id): """ self._cluster_id = cluster_id - @property - def error_status(self): - """Gets the error_status of this ShowClusterRequest. - - 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。 - - :return: The error_status of this ShowClusterRequest. - :rtype: str - """ - return self._error_status - - @error_status.setter - def error_status(self, error_status): - """Sets the error_status of this ShowClusterRequest. - - 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。 - - :param error_status: The error_status of this ShowClusterRequest. - :type: str - """ - self._error_status = error_status - @property def detail(self): """Gets the detail of this ShowClusterRequest. diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_node_pool_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_node_pool_request.py index b0b311c65d..fb05e7be65 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_node_pool_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_node_pool_request.py @@ -24,30 +24,25 @@ class ShowNodePoolRequest: openapi_types = { 'cluster_id': 'str', - 'nodepool_id': 'str', - 'error_status': 'str' + 'nodepool_id': 'str' } attribute_map = { 'cluster_id': 'cluster_id', - 'nodepool_id': 'nodepool_id', - 'error_status': 'errorStatus' + 'nodepool_id': 'nodepool_id' } - def __init__(self, cluster_id=None, nodepool_id=None, error_status=None): + def __init__(self, cluster_id=None, nodepool_id=None): """ShowNodePoolRequest - a model defined in huaweicloud sdk""" self._cluster_id = None self._nodepool_id = None - self._error_status = None self.discriminator = None self.cluster_id = cluster_id self.nodepool_id = nodepool_id - if error_status is not None: - self.error_status = error_status @property def cluster_id(self): @@ -93,28 +88,6 @@ def nodepool_id(self, nodepool_id): """ self._nodepool_id = nodepool_id - @property - def error_status(self): - """Gets the error_status of this ShowNodePoolRequest. - - 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。 - - :return: The error_status of this ShowNodePoolRequest. - :rtype: str - """ - return self._error_status - - @error_status.setter - def error_status(self, error_status): - """Sets the error_status of this ShowNodePoolRequest. - - 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。 - - :param error_status: The error_status of this ShowNodePoolRequest. - :type: str - """ - self._error_status = error_status - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_node_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_node_request.py index 8eaa5f8253..ad03a8e00a 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_node_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_node_request.py @@ -24,30 +24,25 @@ class ShowNodeRequest: openapi_types = { 'cluster_id': 'str', - 'node_id': 'str', - 'error_status': 'str' + 'node_id': 'str' } attribute_map = { 'cluster_id': 'cluster_id', - 'node_id': 'node_id', - 'error_status': 'errorStatus' + 'node_id': 'node_id' } - def __init__(self, cluster_id=None, node_id=None, error_status=None): + def __init__(self, cluster_id=None, node_id=None): """ShowNodeRequest - a model defined in huaweicloud sdk""" self._cluster_id = None self._node_id = None - self._error_status = None self.discriminator = None self.cluster_id = cluster_id self.node_id = node_id - if error_status is not None: - self.error_status = error_status @property def cluster_id(self): @@ -93,28 +88,6 @@ def node_id(self, node_id): """ self._node_id = node_id - @property - def error_status(self): - """Gets the error_status of this ShowNodeRequest. - - 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。 - - :return: The error_status of this ShowNodeRequest. - :rtype: str - """ - return self._error_status - - @error_status.setter - def error_status(self, error_status): - """Sets the error_status of this ShowNodeRequest. - - 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。 - - :param error_status: The error_status of this ShowNodeRequest. - :type: str - """ - self._error_status = error_status - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_cluster_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_cluster_request.py index 78b32cf0d9..d569aa9fb4 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_cluster_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_cluster_request.py @@ -24,29 +24,24 @@ class UpdateClusterRequest: openapi_types = { 'cluster_id': 'str', - 'error_status': 'str', 'body': 'ClusterInformation' } attribute_map = { 'cluster_id': 'cluster_id', - 'error_status': 'errorStatus', 'body': 'body' } - def __init__(self, cluster_id=None, error_status=None, body=None): + def __init__(self, cluster_id=None, body=None): """UpdateClusterRequest - a model defined in huaweicloud sdk""" self._cluster_id = None - self._error_status = None self._body = None self.discriminator = None self.cluster_id = cluster_id - if error_status is not None: - self.error_status = error_status if body is not None: self.body = body @@ -72,28 +67,6 @@ def cluster_id(self, cluster_id): """ self._cluster_id = cluster_id - @property - def error_status(self): - """Gets the error_status of this UpdateClusterRequest. - - 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。 - - :return: The error_status of this UpdateClusterRequest. - :rtype: str - """ - return self._error_status - - @error_status.setter - def error_status(self, error_status): - """Sets the error_status of this UpdateClusterRequest. - - 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。 - - :param error_status: The error_status of this UpdateClusterRequest. - :type: str - """ - self._error_status = error_status - @property def body(self): """Gets the body of this UpdateClusterRequest. diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_node_pool_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_node_pool_request.py index 45e3dd77a4..9256e2cbd4 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_node_pool_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_node_pool_request.py @@ -25,32 +25,27 @@ class UpdateNodePoolRequest: openapi_types = { 'cluster_id': 'str', 'nodepool_id': 'str', - 'error_status': 'str', 'body': 'NodePool' } attribute_map = { 'cluster_id': 'cluster_id', 'nodepool_id': 'nodepool_id', - 'error_status': 'errorStatus', 'body': 'body' } - def __init__(self, cluster_id=None, nodepool_id=None, error_status=None, body=None): + def __init__(self, cluster_id=None, nodepool_id=None, body=None): """UpdateNodePoolRequest - a model defined in huaweicloud sdk""" self._cluster_id = None self._nodepool_id = None - self._error_status = None self._body = None self.discriminator = None self.cluster_id = cluster_id self.nodepool_id = nodepool_id - if error_status is not None: - self.error_status = error_status if body is not None: self.body = body @@ -98,28 +93,6 @@ def nodepool_id(self, nodepool_id): """ self._nodepool_id = nodepool_id - @property - def error_status(self): - """Gets the error_status of this UpdateNodePoolRequest. - - 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。 - - :return: The error_status of this UpdateNodePoolRequest. - :rtype: str - """ - return self._error_status - - @error_status.setter - def error_status(self, error_status): - """Sets the error_status of this UpdateNodePoolRequest. - - 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。 - - :param error_status: The error_status of this UpdateNodePoolRequest. - :type: str - """ - self._error_status = error_status - @property def body(self): """Gets the body of this UpdateNodePoolRequest. diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_node_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_node_request.py index 2040f07893..f14821258b 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_node_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_node_request.py @@ -25,32 +25,27 @@ class UpdateNodeRequest: openapi_types = { 'cluster_id': 'str', 'node_id': 'str', - 'error_status': 'str', 'body': 'CCEClusterNodeInformation' } attribute_map = { 'cluster_id': 'cluster_id', 'node_id': 'node_id', - 'error_status': 'errorStatus', 'body': 'body' } - def __init__(self, cluster_id=None, node_id=None, error_status=None, body=None): + def __init__(self, cluster_id=None, node_id=None, body=None): """UpdateNodeRequest - a model defined in huaweicloud sdk""" self._cluster_id = None self._node_id = None - self._error_status = None self._body = None self.discriminator = None self.cluster_id = cluster_id self.node_id = node_id - if error_status is not None: - self.error_status = error_status if body is not None: self.body = body @@ -98,28 +93,6 @@ def node_id(self, node_id): """ self._node_id = node_id - @property - def error_status(self): - """Gets the error_status of this UpdateNodeRequest. - - 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。 - - :return: The error_status of this UpdateNodeRequest. - :rtype: str - """ - return self._error_status - - @error_status.setter - def error_status(self, error_status): - """Sets the error_status of this UpdateNodeRequest. - - 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。 - - :param error_status: The error_status of this UpdateNodeRequest. - :type: str - """ - self._error_status = error_status - @property def body(self): """Gets the body of this UpdateNodeRequest. diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/v3_cluster_spec.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/v3_cluster_spec.py index d0df5cd557..339685db39 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/v3_cluster_spec.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/v3_cluster_spec.py @@ -28,7 +28,6 @@ class V3ClusterSpec: 'version': 'str', 'description': 'str', 'ipv6enable': 'bool', - 'offload_cluster': 'bool', 'host_network': 'HostNetwork', 'container_network': 'ContainerNetwork', 'eni_network': 'EniNetwork', @@ -49,7 +48,6 @@ class V3ClusterSpec: 'version': 'version', 'description': 'description', 'ipv6enable': 'ipv6enable', - 'offload_cluster': 'offloadCluster', 'host_network': 'hostNetwork', 'container_network': 'containerNetwork', 'eni_network': 'eniNetwork', @@ -64,7 +62,7 @@ class V3ClusterSpec: 'support_istio': 'supportIstio' } - def __init__(self, type=None, flavor=None, version=None, description=None, ipv6enable=None, offload_cluster=None, host_network=None, container_network=None, eni_network=None, authentication=None, billing_mode=None, masters=None, kubernetes_svc_ip_range=None, cluster_tags=None, kube_proxy_mode=None, az=None, extend_param=None, support_istio=None): + def __init__(self, type=None, flavor=None, version=None, description=None, ipv6enable=None, host_network=None, container_network=None, eni_network=None, authentication=None, billing_mode=None, masters=None, kubernetes_svc_ip_range=None, cluster_tags=None, kube_proxy_mode=None, az=None, extend_param=None, support_istio=None): """V3ClusterSpec - a model defined in huaweicloud sdk""" @@ -74,7 +72,6 @@ def __init__(self, type=None, flavor=None, version=None, description=None, ipv6e self._version = None self._description = None self._ipv6enable = None - self._offload_cluster = None self._host_network = None self._container_network = None self._eni_network = None @@ -97,8 +94,6 @@ def __init__(self, type=None, flavor=None, version=None, description=None, ipv6e self.description = description if ipv6enable is not None: self.ipv6enable = ipv6enable - if offload_cluster is not None: - self.offload_cluster = offload_cluster self.host_network = host_network self.container_network = container_network if eni_network is not None: @@ -232,28 +227,6 @@ def ipv6enable(self, ipv6enable): """ self._ipv6enable = ipv6enable - @property - def offload_cluster(self): - """Gets the offload_cluster of this V3ClusterSpec. - - CCE Turbo集群(公测) - - :return: The offload_cluster of this V3ClusterSpec. - :rtype: bool - """ - return self._offload_cluster - - @offload_cluster.setter - def offload_cluster(self, offload_cluster): - """Sets the offload_cluster of this V3ClusterSpec. - - CCE Turbo集群(公测) - - :param offload_cluster: The offload_cluster of this V3ClusterSpec. - :type: bool - """ - self._offload_cluster = offload_cluster - @property def host_network(self): """Gets the host_network of this V3ClusterSpec. diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/v3_node_spec.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/v3_node_spec.py index bbbd65c77c..6f113b0af8 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/v3_node_spec.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/v3_node_spec.py @@ -36,7 +36,6 @@ class V3NodeSpec: 'taints': 'list[Taint]', 'k8s_tags': 'dict(str, str)', 'ecs_group_id': 'str', - 'fault_domain': 'str', 'dedicated_host_id': 'str', 'offload_node': 'bool', 'user_tags': 'list[UserTag]', @@ -58,7 +57,6 @@ class V3NodeSpec: 'taints': 'taints', 'k8s_tags': 'k8sTags', 'ecs_group_id': 'ecsGroupId', - 'fault_domain': 'faultDomain', 'dedicated_host_id': 'dedicatedHostId', 'offload_node': 'offloadNode', 'user_tags': 'userTags', @@ -66,7 +64,7 @@ class V3NodeSpec: 'extend_param': 'extendParam' } - def __init__(self, flavor=None, az=None, os=None, login=None, root_volume=None, data_volumes=None, public_ip=None, node_nic_spec=None, count=None, billing_mode=None, taints=None, k8s_tags=None, ecs_group_id=None, fault_domain=None, dedicated_host_id=None, offload_node=None, user_tags=None, runtime=None, extend_param=None): + def __init__(self, flavor=None, az=None, os=None, login=None, root_volume=None, data_volumes=None, public_ip=None, node_nic_spec=None, count=None, billing_mode=None, taints=None, k8s_tags=None, ecs_group_id=None, dedicated_host_id=None, offload_node=None, user_tags=None, runtime=None, extend_param=None): """V3NodeSpec - a model defined in huaweicloud sdk""" @@ -84,7 +82,6 @@ def __init__(self, flavor=None, az=None, os=None, login=None, root_volume=None, self._taints = None self._k8s_tags = None self._ecs_group_id = None - self._fault_domain = None self._dedicated_host_id = None self._offload_node = None self._user_tags = None @@ -112,8 +109,6 @@ def __init__(self, flavor=None, az=None, os=None, login=None, root_volume=None, self.k8s_tags = k8s_tags if ecs_group_id is not None: self.ecs_group_id = ecs_group_id - if fault_domain is not None: - self.fault_domain = fault_domain if dedicated_host_id is not None: self.dedicated_host_id = dedicated_host_id if offload_node is not None: @@ -403,28 +398,6 @@ def ecs_group_id(self, ecs_group_id): """ self._ecs_group_id = ecs_group_id - @property - def fault_domain(self): - """Gets the fault_domain of this V3NodeSpec. - - 云服务器故障域,将节点创建在指定故障域下。\\n >必须同时指定故障域策略的云服务器ID,且需要开启故障域特性开关 - - :return: The fault_domain of this V3NodeSpec. - :rtype: str - """ - return self._fault_domain - - @fault_domain.setter - def fault_domain(self, fault_domain): - """Sets the fault_domain of this V3NodeSpec. - - 云服务器故障域,将节点创建在指定故障域下。\\n >必须同时指定故障域策略的云服务器ID,且需要开启故障域特性开关 - - :param fault_domain: The fault_domain of this V3NodeSpec. - :type: str - """ - self._fault_domain = fault_domain - @property def dedicated_host_id(self): """Gets the dedicated_host_id of this V3NodeSpec. diff --git a/huaweicloud-sdk-cce/setup.py b/huaweicloud-sdk-cce/setup.py index 9c3e233cfd..90cbf69bfb 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "CCE"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/__init__.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/__init__.py index b9087e027d..96f7e9d3af 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/__init__.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/__init__.py @@ -52,14 +52,12 @@ from huaweicloudsdkcdn.v1.model.origin_host_request import OriginHostRequest from huaweicloudsdkcdn.v1.model.origin_range_body import OriginRangeBody from huaweicloudsdkcdn.v1.model.origin_request import OriginRequest -from huaweicloudsdkcdn.v1.model.preheating_task import PreheatingTask from huaweicloudsdkcdn.v1.model.preheating_task_request import PreheatingTaskRequest from huaweicloudsdkcdn.v1.model.preheating_task_request_preheating_task import PreheatingTaskRequestPreheatingTask from huaweicloudsdkcdn.v1.model.range_status_request import RangeStatusRequest from huaweicloudsdkcdn.v1.model.referer import Referer from huaweicloudsdkcdn.v1.model.referer_body import RefererBody from huaweicloudsdkcdn.v1.model.referer_rsp import RefererRsp -from huaweicloudsdkcdn.v1.model.refresh_task import RefreshTask from huaweicloudsdkcdn.v1.model.refresh_task_request import RefreshTaskRequest from huaweicloudsdkcdn.v1.model.refresh_task_request_refresh_task import RefreshTaskRequestRefreshTask from huaweicloudsdkcdn.v1.model.resource_body import ResourceBody @@ -88,8 +86,11 @@ from huaweicloudsdkcdn.v1.model.show_logs_response import ShowLogsResponse from huaweicloudsdkcdn.v1.model.show_origin_host_request import ShowOriginHostRequest from huaweicloudsdkcdn.v1.model.show_origin_host_response import ShowOriginHostResponse -from huaweicloudsdkcdn.v1.model.show_referer_request import ShowRefererRequest -from huaweicloudsdkcdn.v1.model.show_referer_response import ShowRefererResponse +from huaweicloudsdkcdn.v1.model.show_quota_request import ShowQuotaRequest +from huaweicloudsdkcdn.v1.model.show_quota_response import ShowQuotaResponse +from huaweicloudsdkcdn.v1.model.show_quota_response_body_quotas import ShowQuotaResponseBodyQuotas +from huaweicloudsdkcdn.v1.model.show_refer_request import ShowReferRequest +from huaweicloudsdkcdn.v1.model.show_refer_response import ShowReferResponse from huaweicloudsdkcdn.v1.model.show_response_header_request import ShowResponseHeaderRequest from huaweicloudsdkcdn.v1.model.show_response_header_response import ShowResponseHeaderResponse from huaweicloudsdkcdn.v1.model.show_top_url_request import ShowTopUrlRequest diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/cdn_async_client.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/cdn_async_client.py index 797a2e0177..e77a27b69f 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/cdn_async_client.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/cdn_async_client.py @@ -1343,23 +1343,84 @@ def show_origin_host_with_http_info(self, request): request_type=request.__class__.__name__) - def show_referer_async(self, request): + def show_quota_async(self, request): + """查询用户配额 + + 查询当前用户域名、刷新文件、刷新目录和预热的配额 + + :param ShowQuotaRequest request + :return: ShowQuotaResponse + """ + return self.show_quota_with_http_info(request) + + def show_quota_with_http_info(self, request): + """查询用户配额 + + 查询当前用户域名、刷新文件、刷新目录和预热的配额 + + :param ShowQuotaRequest request + :return: ShowQuotaResponse + """ + + all_params = [] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/cdn/quota', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowQuotaResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_refer_async(self, request): """查询Referer过滤规则 查询Referer过滤规则。 - :param ShowRefererRequest request - :return: ShowRefererResponse + :param ShowReferRequest request + :return: ShowReferResponse """ - return self.show_referer_with_http_info(request) + return self.show_refer_with_http_info(request) - def show_referer_with_http_info(self, request): + def show_refer_with_http_info(self, request): """查询Referer过滤规则 查询Referer过滤规则。 - :param ShowRefererRequest request - :return: ShowRefererResponse + :param ShowReferRequest request + :return: ShowReferResponse """ all_params = ['domain_id', 'enterprise_project_id'] @@ -1401,7 +1462,7 @@ def show_referer_with_http_info(self, request): header_params=header_params, body=body_params, post_params=form_params, - response_type='ShowRefererResponse', + response_type='ShowReferResponse', response_headers=response_headers, auth_settings=auth_settings, collection_formats=collection_formats, diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/cdn_client.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/cdn_client.py index e3a493a3d2..2b7b5cf868 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/cdn_client.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/cdn_client.py @@ -1343,23 +1343,84 @@ def show_origin_host_with_http_info(self, request): request_type=request.__class__.__name__) - def show_referer(self, request): + def show_quota(self, request): + """查询用户配额 + + 查询当前用户域名、刷新文件、刷新目录和预热的配额 + + :param ShowQuotaRequest request + :return: ShowQuotaResponse + """ + return self.show_quota_with_http_info(request) + + def show_quota_with_http_info(self, request): + """查询用户配额 + + 查询当前用户域名、刷新文件、刷新目录和预热的配额 + + :param ShowQuotaRequest request + :return: ShowQuotaResponse + """ + + all_params = [] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/cdn/quota', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowQuotaResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_refer(self, request): """查询Referer过滤规则 查询Referer过滤规则。 - :param ShowRefererRequest request - :return: ShowRefererResponse + :param ShowReferRequest request + :return: ShowReferResponse """ - return self.show_referer_with_http_info(request) + return self.show_refer_with_http_info(request) - def show_referer_with_http_info(self, request): + def show_refer_with_http_info(self, request): """查询Referer过滤规则 查询Referer过滤规则。 - :param ShowRefererRequest request - :return: ShowRefererResponse + :param ShowReferRequest request + :return: ShowReferResponse """ all_params = ['domain_id', 'enterprise_project_id'] @@ -1401,7 +1462,7 @@ def show_referer_with_http_info(self, request): header_params=header_params, body=body_params, post_params=form_params, - response_type='ShowRefererResponse', + response_type='ShowReferResponse', response_headers=response_headers, auth_settings=auth_settings, collection_formats=collection_formats, diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/__init__.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/__init__.py index 4739ced0c9..12e3742ed4 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/__init__.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/__init__.py @@ -49,14 +49,12 @@ from huaweicloudsdkcdn.v1.model.origin_host_request import OriginHostRequest from huaweicloudsdkcdn.v1.model.origin_range_body import OriginRangeBody from huaweicloudsdkcdn.v1.model.origin_request import OriginRequest -from huaweicloudsdkcdn.v1.model.preheating_task import PreheatingTask from huaweicloudsdkcdn.v1.model.preheating_task_request import PreheatingTaskRequest from huaweicloudsdkcdn.v1.model.preheating_task_request_preheating_task import PreheatingTaskRequestPreheatingTask from huaweicloudsdkcdn.v1.model.range_status_request import RangeStatusRequest from huaweicloudsdkcdn.v1.model.referer import Referer from huaweicloudsdkcdn.v1.model.referer_body import RefererBody from huaweicloudsdkcdn.v1.model.referer_rsp import RefererRsp -from huaweicloudsdkcdn.v1.model.refresh_task import RefreshTask from huaweicloudsdkcdn.v1.model.refresh_task_request import RefreshTaskRequest from huaweicloudsdkcdn.v1.model.refresh_task_request_refresh_task import RefreshTaskRequestRefreshTask from huaweicloudsdkcdn.v1.model.resource_body import ResourceBody @@ -85,8 +83,11 @@ from huaweicloudsdkcdn.v1.model.show_logs_response import ShowLogsResponse from huaweicloudsdkcdn.v1.model.show_origin_host_request import ShowOriginHostRequest from huaweicloudsdkcdn.v1.model.show_origin_host_response import ShowOriginHostResponse -from huaweicloudsdkcdn.v1.model.show_referer_request import ShowRefererRequest -from huaweicloudsdkcdn.v1.model.show_referer_response import ShowRefererResponse +from huaweicloudsdkcdn.v1.model.show_quota_request import ShowQuotaRequest +from huaweicloudsdkcdn.v1.model.show_quota_response import ShowQuotaResponse +from huaweicloudsdkcdn.v1.model.show_quota_response_body_quotas import ShowQuotaResponseBodyQuotas +from huaweicloudsdkcdn.v1.model.show_refer_request import ShowReferRequest +from huaweicloudsdkcdn.v1.model.show_refer_response import ShowReferResponse from huaweicloudsdkcdn.v1.model.show_response_header_request import ShowResponseHeaderRequest from huaweicloudsdkcdn.v1.model.show_response_header_response import ShowResponseHeaderResponse from huaweicloudsdkcdn.v1.model.show_top_url_request import ShowTopUrlRequest diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/create_preheating_tasks_response.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/create_preheating_tasks_response.py index d89e346e2f..c59a0f5ac4 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/create_preheating_tasks_response.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/create_preheating_tasks_response.py @@ -23,7 +23,7 @@ class CreatePreheatingTasksResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'preheating_task': 'PreheatingTask' + 'preheating_task': 'str' } attribute_map = { @@ -45,9 +45,10 @@ def __init__(self, preheating_task=None): def preheating_task(self): """Gets the preheating_task of this CreatePreheatingTasksResponse. + 任务ID :return: The preheating_task of this CreatePreheatingTasksResponse. - :rtype: PreheatingTask + :rtype: str """ return self._preheating_task @@ -55,9 +56,10 @@ def preheating_task(self): def preheating_task(self, preheating_task): """Sets the preheating_task of this CreatePreheatingTasksResponse. + 任务ID :param preheating_task: The preheating_task of this CreatePreheatingTasksResponse. - :type: PreheatingTask + :type: str """ self._preheating_task = preheating_task diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/create_refresh_tasks_response.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/create_refresh_tasks_response.py index a9f5b98c05..c7312b6d9b 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/create_refresh_tasks_response.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/create_refresh_tasks_response.py @@ -23,7 +23,7 @@ class CreateRefreshTasksResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'refresh_task': 'RefreshTask' + 'refresh_task': 'str' } attribute_map = { @@ -45,9 +45,10 @@ def __init__(self, refresh_task=None): def refresh_task(self): """Gets the refresh_task of this CreateRefreshTasksResponse. + 任务ID :return: The refresh_task of this CreateRefreshTasksResponse. - :rtype: RefreshTask + :rtype: str """ return self._refresh_task @@ -55,9 +56,10 @@ def refresh_task(self): def refresh_task(self, refresh_task): """Sets the refresh_task of this CreateRefreshTasksResponse. + 任务ID :param refresh_task: The refresh_task of this CreateRefreshTasksResponse. - :type: RefreshTask + :type: str """ self._refresh_task = refresh_task diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/domain_body.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/domain_body.py index 2fe46cf85a..3ac43784b3 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/domain_body.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/domain_body.py @@ -105,7 +105,7 @@ def business_type(self, business_type): def sources(self): """Gets the sources of this DomainBody. - 源站域名或源站IP,IP仅支持IPv4,多个源站IP以多个对象传入,最多支持10个源站IP对象。 + 源站域名或源站IP,IP仅支持IPv4,多个源站IP以多个对象传入,多个对象的origin_type都必须为ipaddr,最多支持10个源站IP对象。 :return: The sources of this DomainBody. :rtype: list[Sources] @@ -116,7 +116,7 @@ def sources(self): def sources(self, sources): """Sets the sources of this DomainBody. - 源站域名或源站IP,IP仅支持IPv4,多个源站IP以多个对象传入,最多支持10个源站IP对象。 + 源站域名或源站IP,IP仅支持IPv4,多个源站IP以多个对象传入,多个对象的origin_type都必须为ipaddr,最多支持10个源站IP对象。 :param sources: The sources of this DomainBody. :type: list[Sources] diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/domains.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/domains.py index ce45876a67..1dd177aeaf 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/domains.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/domains.py @@ -277,7 +277,7 @@ def cname(self, cname): def sources(self): """Gets the sources of this Domains. - 源站域名或源站IP,IP仅支持IPv4,多个源站IP以多个对象传入,最多支持10个源站IP对象。 + 源站域名或源站IP,IP仅支持IPv4,多个源站IP以多个对象传入,多个对象的origin_type都必须为ipaddr,最多支持10个源站IP对象。 :return: The sources of this Domains. :rtype: list[SourceWithPort] @@ -288,7 +288,7 @@ def sources(self): def sources(self, sources): """Sets the sources of this Domains. - 源站域名或源站IP,IP仅支持IPv4,多个源站IP以多个对象传入,最多支持10个源站IP对象。 + 源站域名或源站IP,IP仅支持IPv4,多个源站IP以多个对象传入,多个对象的origin_type都必须为ipaddr,最多支持10个源站IP对象。 :param sources: The sources of this Domains. :type: list[SourceWithPort] diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/http_info_request_body.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/http_info_request_body.py index 23ce272e90..d74af33e98 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/http_info_request_body.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/http_info_request_body.py @@ -95,7 +95,7 @@ def cert_name(self, cert_name): def https_status(self): """Gets the https_status of this HttpInfoRequestBody. - HTTPS证书是否启用。0:不启用,此时无需填写证书及私钥参数;1:启用HTTPS加速并协议跟随回源;2:启用HTTPS加速并HTTP回源,开启时需要传递证书及私钥。 + HTTPS证书是否启用。0:不启用,此时无需填写证书及私钥参数;1:启用HTTPS加速并协议跟随回源;2:启用HTTPS加速并HTTP回源,首次配置证书需要传递证书及私钥,如已有证书可不用传证书及私钥。 :return: The https_status of this HttpInfoRequestBody. :rtype: int @@ -106,7 +106,7 @@ def https_status(self): def https_status(self, https_status): """Sets the https_status of this HttpInfoRequestBody. - HTTPS证书是否启用。0:不启用,此时无需填写证书及私钥参数;1:启用HTTPS加速并协议跟随回源;2:启用HTTPS加速并HTTP回源,开启时需要传递证书及私钥。 + HTTPS证书是否启用。0:不启用,此时无需填写证书及私钥参数;1:启用HTTPS加速并协议跟随回源;2:启用HTTPS加速并HTTP回源,首次配置证书需要传递证书及私钥,如已有证书可不用传证书及私钥。 :param https_status: The https_status of this HttpInfoRequestBody. :type: int @@ -117,7 +117,7 @@ def https_status(self, https_status): def certificate(self): """Gets the certificate of this HttpInfoRequestBody. - 功能说明:HTTPS协议使用的证书内容,不启用证书则无需输入。 取值范围:PEM编码格式。 + 功能说明:HTTPS协议使用的证书内容,不启用证书则无需输入。取值范围:PEM编码格式。初次配置证书时必传。 :return: The certificate of this HttpInfoRequestBody. :rtype: str @@ -128,7 +128,7 @@ def certificate(self): def certificate(self, certificate): """Sets the certificate of this HttpInfoRequestBody. - 功能说明:HTTPS协议使用的证书内容,不启用证书则无需输入。 取值范围:PEM编码格式。 + 功能说明:HTTPS协议使用的证书内容,不启用证书则无需输入。取值范围:PEM编码格式。初次配置证书时必传。 :param certificate: The certificate of this HttpInfoRequestBody. :type: str @@ -139,7 +139,7 @@ def certificate(self, certificate): def private_key(self): """Gets the private_key of this HttpInfoRequestBody. - 功能说明: HTTPS协议使用的私钥,不启用证书则无需输入。 取值范围:PEM编码格式。 + 功能说明: HTTPS协议使用的私钥,不启用证书则无需输入。取值范围:PEM编码格式。初次配置证书时必传。 :return: The private_key of this HttpInfoRequestBody. :rtype: str @@ -150,7 +150,7 @@ def private_key(self): def private_key(self, private_key): """Sets the private_key of this HttpInfoRequestBody. - 功能说明: HTTPS协议使用的私钥,不启用证书则无需输入。 取值范围:PEM编码格式。 + 功能说明: HTTPS协议使用的私钥,不启用证书则无需输入。取值范围:PEM编码格式。初次配置证书时必传。 :param private_key: The private_key of this HttpInfoRequestBody. :type: str @@ -183,7 +183,7 @@ def http2(self, http2): def certificate_type(self): """Gets the certificate_type of this HttpInfoRequestBody. - 证书类型。1:代表华为云托管证书;0:表示自有证书。 + 证书类型。1:代表华为云托管证书;0:表示自有证书。 默认值0。 :return: The certificate_type of this HttpInfoRequestBody. :rtype: int @@ -194,7 +194,7 @@ def certificate_type(self): def certificate_type(self, certificate_type): """Sets the certificate_type of this HttpInfoRequestBody. - 证书类型。1:代表华为云托管证书;0:表示自有证书。 + 证书类型。1:代表华为云托管证书;0:表示自有证书。 默认值0。 :param certificate_type: The certificate_type of this HttpInfoRequestBody. :type: int diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/http_info_response_body.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/http_info_response_body.py index 6e52f56b76..38c8ec659f 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/http_info_response_body.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/http_info_response_body.py @@ -23,7 +23,7 @@ class HttpInfoResponseBody: sensitive_list = [] openapi_types = { - 'https_status': 'str', + 'https_status': 'int', 'cert_name': 'str', 'certificate': 'str', 'private_key': 'str', @@ -88,7 +88,7 @@ def https_status(self): HTTPS证书是否启用。0:不启用,此时无需填写证书及私钥参数;1:启用HTTPS加速并协议跟随回源;2:启用HTTPS加速并HTTP回源,开启时需要传递证书及私钥 :return: The https_status of this HttpInfoResponseBody. - :rtype: str + :rtype: int """ return self._https_status @@ -99,7 +99,7 @@ def https_status(self, https_status): HTTPS证书是否启用。0:不启用,此时无需填写证书及私钥参数;1:启用HTTPS加速并协议跟随回源;2:启用HTTPS加速并HTTP回源,开启时需要传递证书及私钥 :param https_status: The https_status of this HttpInfoResponseBody. - :type: str + :type: int """ self._https_status = https_status diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/https_detail.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/https_detail.py index a253e6bd3c..bddf020868 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/https_detail.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/https_detail.py @@ -28,7 +28,7 @@ class HttpsDetail: 'cert_name': 'str', 'certificate': 'str', 'private_key': 'str', - 'certificate_type': 'str', + 'certificate_type': 'int', 'expiration_time': 'int', 'https_status': 'int', 'force_redirect_https': 'int', @@ -208,7 +208,7 @@ def certificate_type(self): 0:自有证书 1:云托管证书 :return: The certificate_type of this HttpsDetail. - :rtype: str + :rtype: int """ return self._certificate_type @@ -219,7 +219,7 @@ def certificate_type(self, certificate_type): 0:自有证书 1:云托管证书 :param certificate_type: The certificate_type of this HttpsDetail. - :type: str + :type: int """ self._certificate_type = certificate_type diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/preheating_task_request_preheating_task.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/preheating_task_request_preheating_task.py index 5cfe6ada6a..058d73b655 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/preheating_task_request_preheating_task.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/preheating_task_request_preheating_task.py @@ -44,7 +44,7 @@ def __init__(self, urls=None): def urls(self): """Gets the urls of this PreheatingTaskRequestPreheatingTask. - 预热urls + 输入URL必须带有“http://”或“https://”,多个URL用逗号分隔,目前不支持对目录的预热,单个url的长度限制为10240字符,单次最多输入1000个url。 :return: The urls of this PreheatingTaskRequestPreheatingTask. :rtype: list[str] @@ -55,7 +55,7 @@ def urls(self): def urls(self, urls): """Sets the urls of this PreheatingTaskRequestPreheatingTask. - 预热urls + 输入URL必须带有“http://”或“https://”,多个URL用逗号分隔,目前不支持对目录的预热,单个url的长度限制为10240字符,单次最多输入1000个url。 :param urls: The urls of this PreheatingTaskRequestPreheatingTask. :type: list[str] diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/referer.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/referer.py index c4b74f3795..99665ad1f5 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/referer.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/referer.py @@ -98,7 +98,7 @@ def referer_list(self, referer_list): def include_empty(self): """Gets the include_empty of this Referer. - 是否包含空Referer。如果是黑名单并开启该选项,则表示无referer不允许访问。如果是白名单并开启该选项,则表示无referer允许访问。默认不包含。 + 是否包含空Referer。如果是黑名单并开启该选项,则表示无referer不允许访问。如果是白名单并开启该选项,则表示无referer允许访问。默认值false。 :return: The include_empty of this Referer. :rtype: bool @@ -109,7 +109,7 @@ def include_empty(self): def include_empty(self, include_empty): """Sets the include_empty of this Referer. - 是否包含空Referer。如果是黑名单并开启该选项,则表示无referer不允许访问。如果是白名单并开启该选项,则表示无referer允许访问。默认不包含。 + 是否包含空Referer。如果是黑名单并开启该选项,则表示无referer不允许访问。如果是白名单并开启该选项,则表示无referer允许访问。默认值false。 :param include_empty: The include_empty of this Referer. :type: bool diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/refresh_task_request_refresh_task.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/refresh_task_request_refresh_task.py index a81628ae44..78558997ec 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/refresh_task_request_refresh_task.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/refresh_task_request_refresh_task.py @@ -71,7 +71,7 @@ def type(self, type): def urls(self): """Gets the urls of this RefreshTaskRequestRefreshTask. - 刷新urls + 输入URL必须带有“http://”或“https://”,多个URL用逗号分隔,单个url的长度限制为10240字符,单次最多输入1000个url。 :return: The urls of this RefreshTaskRequestRefreshTask. :rtype: list[str] @@ -82,7 +82,7 @@ def urls(self): def urls(self, urls): """Sets the urls of this RefreshTaskRequestRefreshTask. - 刷新urls + 输入URL必须带有“http://”或“https://”,多个URL用逗号分隔,单个url的长度限制为10240字符,单次最多输入1000个url。 :param urls: The urls of this RefreshTaskRequestRefreshTask. :type: list[str] diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/resource_body.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/resource_body.py index 2ffcd30b63..cc56f2a2fb 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/resource_body.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/resource_body.py @@ -44,7 +44,7 @@ def __init__(self, sources=None): def sources(self): """Gets the sources of this ResourceBody. - 源站域名或源站IP,IP仅支持IPv4,多个源站IP以多个对象传入,最多支持10个源站IP对象。 + 源站域名或源站IP,IP仅支持IPv4,多个源站IP以多个对象传入,多个对象的origin_type都必须为ipaddr,最多支持10个源站IP对象。 :return: The sources of this ResourceBody. :rtype: list[SourceWithPort] @@ -55,7 +55,7 @@ def sources(self): def sources(self, sources): """Sets the sources of this ResourceBody. - 源站域名或源站IP,IP仅支持IPv4,多个源站IP以多个对象传入,最多支持10个源站IP对象。 + 源站域名或源站IP,IP仅支持IPv4,多个源站IP以多个对象传入,多个对象的origin_type都必须为ipaddr,最多支持10个源站IP对象。 :param sources: The sources of this ResourceBody. :type: list[SourceWithPort] diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_history_task_details_request.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_history_task_details_request.py index 5d17e865b3..63e78b8a36 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_history_task_details_request.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_history_task_details_request.py @@ -28,7 +28,7 @@ class ShowHistoryTaskDetailsRequest: 'page_size': 'int', 'page_number': 'int', 'status': 'int', - 'url': 'int' + 'url': 'str' } attribute_map = { @@ -182,7 +182,7 @@ def url(self): url的地址,支持同一任务id的多个url,多个url用分号隔开。 :return: The url of this ShowHistoryTaskDetailsRequest. - :rtype: int + :rtype: str """ return self._url @@ -193,7 +193,7 @@ def url(self, url): url的地址,支持同一任务id的多个url,多个url用分号隔开。 :param url: The url of this ShowHistoryTaskDetailsRequest. - :type: int + :type: str """ self._url = url diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_quota_request.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_quota_request.py new file mode 100644 index 0000000000..0fdb76b699 --- /dev/null +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_quota_request.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ShowQuotaRequest: + + + """ + 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): + """ShowQuotaRequest - a 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowQuotaRequest): + 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-cdn/huaweicloudsdkcdn/v1/model/show_quota_response.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_quota_response.py new file mode 100644 index 0000000000..31a1ce4570 --- /dev/null +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_quota_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ShowQuotaResponse(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 = { + 'quotas': 'list[ShowQuotaResponseBodyQuotas]' + } + + attribute_map = { + 'quotas': 'quotas' + } + + def __init__(self, quotas=None): + """ShowQuotaResponse - a model defined in huaweicloud sdk""" + + super(ShowQuotaResponse, self).__init__() + + self._quotas = None + self.discriminator = None + + if quotas is not None: + self.quotas = quotas + + @property + def quotas(self): + """Gets the quotas of this ShowQuotaResponse. + + 配额数组 + + :return: The quotas of this ShowQuotaResponse. + :rtype: list[ShowQuotaResponseBodyQuotas] + """ + return self._quotas + + @quotas.setter + def quotas(self, quotas): + """Sets the quotas of this ShowQuotaResponse. + + 配额数组 + + :param quotas: The quotas of this ShowQuotaResponse. + :type: list[ShowQuotaResponseBodyQuotas] + """ + self._quotas = quotas + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowQuotaResponse): + 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-cdn/huaweicloudsdkcdn/v1/model/show_quota_response_body_quotas.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_quota_response_body_quotas.py new file mode 100644 index 0000000000..bd20a48f25 --- /dev/null +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_quota_response_body_quotas.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ShowQuotaResponseBodyQuotas: + + + """ + 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 = { + 'quota_limit': 'int', + 'type': 'str', + 'used': 'int', + 'user_domain_id': 'str' + } + + attribute_map = { + 'quota_limit': 'quota_limit', + 'type': 'type', + 'used': 'used', + 'user_domain_id': 'user_domain_id' + } + + def __init__(self, quota_limit=None, type=None, used=None, user_domain_id=None): + """ShowQuotaResponseBodyQuotas - a model defined in huaweicloud sdk""" + + + + self._quota_limit = None + self._type = None + self._used = None + self._user_domain_id = None + self.discriminator = None + + if quota_limit is not None: + self.quota_limit = quota_limit + if type is not None: + self.type = type + if used is not None: + self.used = used + if user_domain_id is not None: + self.user_domain_id = user_domain_id + + @property + def quota_limit(self): + """Gets the quota_limit of this ShowQuotaResponseBodyQuotas. + + 配额上限 + + :return: The quota_limit of this ShowQuotaResponseBodyQuotas. + :rtype: int + """ + return self._quota_limit + + @quota_limit.setter + def quota_limit(self, quota_limit): + """Sets the quota_limit of this ShowQuotaResponseBodyQuotas. + + 配额上限 + + :param quota_limit: The quota_limit of this ShowQuotaResponseBodyQuotas. + :type: int + """ + self._quota_limit = quota_limit + + @property + def type(self): + """Gets the type of this ShowQuotaResponseBodyQuotas. + + 配额类型 + + :return: The type of this ShowQuotaResponseBodyQuotas. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ShowQuotaResponseBodyQuotas. + + 配额类型 + + :param type: The type of this ShowQuotaResponseBodyQuotas. + :type: str + """ + self._type = type + + @property + def used(self): + """Gets the used of this ShowQuotaResponseBodyQuotas. + + 已使用配额数 + + :return: The used of this ShowQuotaResponseBodyQuotas. + :rtype: int + """ + return self._used + + @used.setter + def used(self, used): + """Sets the used of this ShowQuotaResponseBodyQuotas. + + 已使用配额数 + + :param used: The used of this ShowQuotaResponseBodyQuotas. + :type: int + """ + self._used = used + + @property + def user_domain_id(self): + """Gets the user_domain_id of this ShowQuotaResponseBodyQuotas. + + 域名所属用户的domain_id。 + + :return: The user_domain_id of this ShowQuotaResponseBodyQuotas. + :rtype: str + """ + return self._user_domain_id + + @user_domain_id.setter + def user_domain_id(self, user_domain_id): + """Sets the user_domain_id of this ShowQuotaResponseBodyQuotas. + + 域名所属用户的domain_id。 + + :param user_domain_id: The user_domain_id of this ShowQuotaResponseBodyQuotas. + :type: str + """ + self._user_domain_id = user_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowQuotaResponseBodyQuotas): + 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-cdn/huaweicloudsdkcdn/v1/model/show_referer_request.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_refer_request.py similarity index 84% rename from huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_referer_request.py rename to huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_refer_request.py index 3f465af146..ff9a061293 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_referer_request.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_refer_request.py @@ -9,7 +9,7 @@ -class ShowRefererRequest: +class ShowReferRequest: """ @@ -33,7 +33,7 @@ class ShowRefererRequest: } def __init__(self, enterprise_project_id=None, domain_id=None): - """ShowRefererRequest - a model defined in huaweicloud sdk""" + """ShowReferRequest - a model defined in huaweicloud sdk""" @@ -47,44 +47,44 @@ def __init__(self, enterprise_project_id=None, domain_id=None): @property def enterprise_project_id(self): - """Gets the enterprise_project_id of this ShowRefererRequest. + """Gets the enterprise_project_id of this ShowReferRequest. 当用户开启企业项目功能时,该参数生效,表示查资源所属项目,不传表示查询默认项目。 - :return: The enterprise_project_id of this ShowRefererRequest. + :return: The enterprise_project_id of this ShowReferRequest. :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 ShowRefererRequest. + """Sets the enterprise_project_id of this ShowReferRequest. 当用户开启企业项目功能时,该参数生效,表示查资源所属项目,不传表示查询默认项目。 - :param enterprise_project_id: The enterprise_project_id of this ShowRefererRequest. + :param enterprise_project_id: The enterprise_project_id of this ShowReferRequest. :type: str """ self._enterprise_project_id = enterprise_project_id @property def domain_id(self): - """Gets the domain_id of this ShowRefererRequest. + """Gets the domain_id of this ShowReferRequest. 加速域名ID。获取方法请参见查询加速域名。 - :return: The domain_id of this ShowRefererRequest. + :return: The domain_id of this ShowReferRequest. :rtype: str """ return self._domain_id @domain_id.setter def domain_id(self, domain_id): - """Sets the domain_id of this ShowRefererRequest. + """Sets the domain_id of this ShowReferRequest. 加速域名ID。获取方法请参见查询加速域名。 - :param domain_id: The domain_id of this ShowRefererRequest. + :param domain_id: The domain_id of this ShowReferRequest. :type: str """ self._domain_id = domain_id @@ -126,7 +126,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ShowRefererRequest): + if not isinstance(other, ShowReferRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_referer_response.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_refer_response.py similarity index 83% rename from huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_referer_response.py rename to huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_refer_response.py index bfcf3be345..ca8da5243a 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_referer_response.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_refer_response.py @@ -9,7 +9,7 @@ from huaweicloudsdkcore.sdk_response import SdkResponse -class ShowRefererResponse(SdkResponse): +class ShowReferResponse(SdkResponse): """ @@ -31,9 +31,9 @@ class ShowRefererResponse(SdkResponse): } def __init__(self, referer=None): - """ShowRefererResponse - a model defined in huaweicloud sdk""" + """ShowReferResponse - a model defined in huaweicloud sdk""" - super(ShowRefererResponse, self).__init__() + super(ShowReferResponse, self).__init__() self._referer = None self.discriminator = None @@ -43,20 +43,20 @@ def __init__(self, referer=None): @property def referer(self): - """Gets the referer of this ShowRefererResponse. + """Gets the referer of this ShowReferResponse. - :return: The referer of this ShowRefererResponse. + :return: The referer of this ShowReferResponse. :rtype: RefererRsp """ return self._referer @referer.setter def referer(self, referer): - """Sets the referer of this ShowRefererResponse. + """Sets the referer of this ShowReferResponse. - :param referer: The referer of this ShowRefererResponse. + :param referer: The referer of this ShowReferResponse. :type: RefererRsp """ self._referer = referer @@ -98,7 +98,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ShowRefererResponse): + if not isinstance(other, ShowReferResponse): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-cdn/setup.py b/huaweicloud-sdk-cdn/setup.py index 87304dda90..8e5417ed90 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "CDN"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-ces/setup.py b/huaweicloud-sdk-ces/setup.py index c3f9611565..ba4bf15296 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "CES"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-classroom/setup.py b/huaweicloud-sdk-classroom/setup.py index 4273c702ef..5076404252 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "Classroom"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-cloudide/setup.py b/huaweicloud-sdk-cloudide/setup.py index a26534aec7..c706baa5f2 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "CloudIDE"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-cloudpipeline/setup.py b/huaweicloud-sdk-cloudpipeline/setup.py index 6695cb140e..b9b874beda 100644 --- a/huaweicloud-sdk-cloudpipeline/setup.py +++ b/huaweicloud-sdk-cloudpipeline/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudpipeline" -VERSION = "3.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "CloudPipeline"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-cloudtest/setup.py b/huaweicloud-sdk-cloudtest/setup.py index f789fe2ddd..ea471eb817 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "Cloudtest"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-core/setup.py b/huaweicloud-sdk-core/setup.py index e020e6f51f..f98ee866eb 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -69,13 +69,13 @@ platforms=['any'], install_requires=INSTALL_REQUIRES, tests_require=TESTS_REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', diff --git a/huaweicloud-sdk-cts/setup.py b/huaweicloud-sdk-cts/setup.py index 1489e071b9..a129d30919 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "CTS"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-dcs/setup.py b/huaweicloud-sdk-dcs/setup.py index b0580c4d4f..916873e9eb 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "DCS"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-dds/setup.py b/huaweicloud-sdk-dds/setup.py index 4a56429acc..00fd52fe53 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "DDS"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-devstar/setup.py b/huaweicloud-sdk-devstar/setup.py index a884624465..eccf57d18f 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "DevStar"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-dgc/setup.py b/huaweicloud-sdk-dgc/setup.py index 76ea967287..57abca532c 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "DGC"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-dms/setup.py b/huaweicloud-sdk-dms/setup.py index 8d66607431..cf06297c7c 100644 --- a/huaweicloud-sdk-dms/setup.py +++ b/huaweicloud-sdk-dms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdms" -VERSION = "3.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "DMS"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-dns/setup.py b/huaweicloud-sdk-dns/setup.py index f1539e6d1e..05bf82b2ec 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "DNS"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/user_account_vo.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/user_account_vo.py index 1f3815658b..703b7d4b0e 100644 --- a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/user_account_vo.py +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/user_account_vo.py @@ -26,7 +26,7 @@ class UserAccountVO: 'id': 'str', 'account': 'str', 'comment': 'str', - 'is_transfer': 'str', + 'is_transfer': 'bool', 'privileges': 'list[str]', 'password': 'str', 'is_set_password': 'bool', @@ -149,7 +149,7 @@ def is_transfer(self): 是否支持迁移 :return: The is_transfer of this UserAccountVO. - :rtype: str + :rtype: bool """ return self._is_transfer @@ -160,7 +160,7 @@ def is_transfer(self, is_transfer): 是否支持迁移 :param is_transfer: The is_transfer of this UserAccountVO. - :type: str + :type: bool """ self._is_transfer = is_transfer diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/user_role_vo.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/user_role_vo.py index 83f720b670..510a14c81f 100644 --- a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/user_role_vo.py +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/user_role_vo.py @@ -25,10 +25,10 @@ class UserRoleVO: openapi_types = { 'role': 'str', 'comment': 'str', - 'is_transfer': 'str', + 'is_transfer': 'bool', 'privileges': 'str', 'inherits_roles': 'list[str]', - 'selected': 'str' + 'selected': 'bool' } attribute_map = { @@ -114,7 +114,7 @@ def is_transfer(self): 是否支持迁移。 :return: The is_transfer of this UserRoleVO. - :rtype: str + :rtype: bool """ return self._is_transfer @@ -125,7 +125,7 @@ def is_transfer(self, is_transfer): 是否支持迁移。 :param is_transfer: The is_transfer of this UserRoleVO. - :type: str + :type: bool """ self._is_transfer = is_transfer @@ -180,7 +180,7 @@ def selected(self): 是否选择。 :return: The selected of this UserRoleVO. - :rtype: str + :rtype: bool """ return self._selected @@ -191,7 +191,7 @@ def selected(self, selected): 是否选择。 :param selected: The selected of this UserRoleVO. - :type: str + :type: bool """ self._selected = selected diff --git a/huaweicloud-sdk-drs/setup.py b/huaweicloud-sdk-drs/setup.py index 86ca6842f8..9126e7b27f 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "DRS"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/list_resize_flavors_result.py b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/list_resize_flavors_result.py index 1cf4aa587a..156a62d1c9 100644 --- a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/list_resize_flavors_result.py +++ b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/list_resize_flavors_result.py @@ -36,7 +36,8 @@ class ListResizeFlavorsResult: 'rxtx_cap': 'str', 'os_flavor_accessis_public': 'bool', 'links': 'list[FlavorLink]', - 'extra_specs': 'FlavorExtraSpec' + 'extra_specs': 'FlavorExtraSpec', + 'instance_quota': 'object' } attribute_map = { @@ -53,10 +54,11 @@ class ListResizeFlavorsResult: 'rxtx_cap': 'rxtx_cap', 'os_flavor_accessis_public': 'os-flavor-access:is_public', 'links': 'links', - 'extra_specs': 'extra_specs' + 'extra_specs': 'extra_specs', + 'instance_quota': 'instance_quota' } - def __init__(self, id=None, name=None, vcpus=None, ram=None, disk=None, swap=None, os_flv_ext_dat_aephemeral=None, os_flv_disable_ddisabled=None, rxtx_factor=None, rxtx_quota=None, rxtx_cap=None, os_flavor_accessis_public=None, links=None, extra_specs=None): + def __init__(self, id=None, name=None, vcpus=None, ram=None, disk=None, swap=None, os_flv_ext_dat_aephemeral=None, os_flv_disable_ddisabled=None, rxtx_factor=None, rxtx_quota=None, rxtx_cap=None, os_flavor_accessis_public=None, links=None, extra_specs=None, instance_quota=None): """ListResizeFlavorsResult - a model defined in huaweicloud sdk""" @@ -75,6 +77,7 @@ def __init__(self, id=None, name=None, vcpus=None, ram=None, disk=None, swap=Non self._os_flavor_accessis_public = None self._links = None self._extra_specs = None + self._instance_quota = None self.discriminator = None self.id = id @@ -91,6 +94,7 @@ def __init__(self, id=None, name=None, vcpus=None, ram=None, disk=None, swap=Non self.os_flavor_accessis_public = os_flavor_accessis_public self.links = links self.extra_specs = extra_specs + self.instance_quota = instance_quota @property def id(self): @@ -398,6 +402,28 @@ def extra_specs(self, extra_specs): """ self._extra_specs = extra_specs + @property + def instance_quota(self): + """Gets the instance_quota of this ListResizeFlavorsResult. + + 预留属性。 + + :return: The instance_quota of this ListResizeFlavorsResult. + :rtype: object + """ + return self._instance_quota + + @instance_quota.setter + def instance_quota(self, instance_quota): + """Sets the instance_quota of this ListResizeFlavorsResult. + + 预留属性。 + + :param instance_quota: The instance_quota of this ListResizeFlavorsResult. + :type: object + """ + self._instance_quota = instance_quota + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-ecs/setup.py b/huaweicloud-sdk-ecs/setup.py index a1e7764f66..9b76aa5afd 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "ECS"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-eip/setup.py b/huaweicloud-sdk-eip/setup.py index baa86deed1..ebf36440f4 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "EIP"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-elb/setup.py b/huaweicloud-sdk-elb/setup.py index 970b8a44ee..7e9897fcae 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "ELB"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-eps/setup.py b/huaweicloud-sdk-eps/setup.py index d891368bf6..60335717d1 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "EPS"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-evs/setup.py b/huaweicloud-sdk-evs/setup.py index 2668391ca3..f4f824fd9c 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "EVS"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/mount_user.py b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/mount_user.py index dbeb9728bf..147b3538fe 100644 --- a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/mount_user.py +++ b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/mount_user.py @@ -23,8 +23,8 @@ class MountUser: sensitive_list = [] openapi_types = { - 'user_id': 'str', - 'user_group_id': 'str' + 'user_id': 'int', + 'user_group_id': 'int' } attribute_map = { @@ -51,7 +51,7 @@ def user_id(self): 用户ID(-1~65534的非0整数) :return: The user_id of this MountUser. - :rtype: str + :rtype: int """ return self._user_id @@ -62,7 +62,7 @@ def user_id(self, user_id): 用户ID(-1~65534的非0整数) :param user_id: The user_id of this MountUser. - :type: str + :type: int """ self._user_id = user_id @@ -73,7 +73,7 @@ def user_group_id(self): 用户组ID(-1~65534的非0整数) :return: The user_group_id of this MountUser. - :rtype: str + :rtype: int """ return self._user_group_id @@ -84,7 +84,7 @@ def user_group_id(self, user_group_id): 用户组ID(-1~65534的非0整数) :param user_group_id: The user_group_id of this MountUser. - :type: str + :type: int """ self._user_group_id = user_group_id diff --git a/huaweicloud-sdk-functiongraph/setup.py b/huaweicloud-sdk-functiongraph/setup.py index b294451a19..ed33e17ea6 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "FunctionGraph"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-gaussdbfornosql/setup.py b/huaweicloud-sdk-gaussdbfornosql/setup.py index 208fc12480..0be8fa1fa6 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "GaussDBforNoSQL"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-hss/setup.py b/huaweicloud-sdk-hss/setup.py index 0b0e166646..62f5049a0d 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "HSS"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/iam_async_client.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/iam_async_client.py index e5b4d0c25b..5350aea9d2 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/iam_async_client.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/iam_async_client.py @@ -2720,7 +2720,7 @@ def keystone_list_permissions_with_http_info(self, request): :return: KeystoneListPermissionsResponse """ - all_params = ['name', 'domain_id', 'page', 'per_page'] + all_params = ['name', 'domain_id', 'page', 'per_page', 'permission_type', 'display_name', 'type', 'catalog'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -2739,6 +2739,14 @@ def keystone_list_permissions_with_http_info(self, request): query_params.append(('page', local_var_params['page'])) if 'per_page' in local_var_params: query_params.append(('per_page', local_var_params['per_page'])) + if 'permission_type' in local_var_params: + query_params.append(('permission_type', local_var_params['permission_type'])) + if 'display_name' in local_var_params: + query_params.append(('display_name', local_var_params['display_name'])) + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + if 'catalog' in local_var_params: + query_params.append(('catalog', local_var_params['catalog'])) header_params = {} diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/iam_client.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/iam_client.py index 4fb7656381..0659bf4971 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/iam_client.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/iam_client.py @@ -2720,7 +2720,7 @@ def keystone_list_permissions_with_http_info(self, request): :return: KeystoneListPermissionsResponse """ - all_params = ['name', 'domain_id', 'page', 'per_page'] + all_params = ['name', 'domain_id', 'page', 'per_page', 'permission_type', 'display_name', 'type', 'catalog'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -2739,6 +2739,14 @@ def keystone_list_permissions_with_http_info(self, request): query_params.append(('page', local_var_params['page'])) if 'per_page' in local_var_params: query_params.append(('per_page', local_var_params['per_page'])) + if 'permission_type' in local_var_params: + query_params.append(('permission_type', local_var_params['permission_type'])) + if 'display_name' in local_var_params: + query_params.append(('display_name', local_var_params['display_name'])) + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + if 'catalog' in local_var_params: + query_params.append(('catalog', local_var_params['catalog'])) header_params = {} diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_list_permissions_request.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_list_permissions_request.py index 46fd8d0866..794b5fbf99 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_list_permissions_request.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_list_permissions_request.py @@ -26,17 +26,25 @@ class KeystoneListPermissionsRequest: 'name': 'str', 'domain_id': 'str', 'page': 'int', - 'per_page': 'int' + 'per_page': 'int', + 'permission_type': 'str', + 'display_name': 'str', + 'type': 'str', + 'catalog': 'str' } attribute_map = { 'name': 'name', 'domain_id': 'domain_id', 'page': 'page', - 'per_page': 'per_page' + 'per_page': 'per_page', + 'permission_type': 'permission_type', + 'display_name': 'display_name', + 'type': 'type', + 'catalog': 'catalog' } - def __init__(self, name=None, domain_id=None, page=None, per_page=None): + def __init__(self, name=None, domain_id=None, page=None, per_page=None, permission_type=None, display_name=None, type=None, catalog=None): """KeystoneListPermissionsRequest - a model defined in huaweicloud sdk""" @@ -45,6 +53,10 @@ def __init__(self, name=None, domain_id=None, page=None, per_page=None): self._domain_id = None self._page = None self._per_page = None + self._permission_type = None + self._display_name = None + self._type = None + self._catalog = None self.discriminator = None if name is not None: @@ -55,12 +67,20 @@ def __init__(self, name=None, domain_id=None, page=None, per_page=None): self.page = page if per_page is not None: self.per_page = per_page + if permission_type is not None: + self.permission_type = permission_type + if display_name is not None: + self.display_name = display_name + if type is not None: + self.type = type + if catalog is not None: + self.catalog = catalog @property def name(self): """Gets the name of this KeystoneListPermissionsRequest. - 权限名,获取方式请参见:[获取权限名、权限ID](https://support.huaweicloud.com/api-iam/iam_10_0001.html)。 + 系统内部呈现的权限名称。如云目录服务CCS普通用户权限CCS User的name为ccs_user。 建议您传参display_name,不传name参数。 :return: The name of this KeystoneListPermissionsRequest. :rtype: str @@ -71,7 +91,7 @@ def name(self): def name(self, name): """Sets the name of this KeystoneListPermissionsRequest. - 权限名,获取方式请参见:[获取权限名、权限ID](https://support.huaweicloud.com/api-iam/iam_10_0001.html)。 + 系统内部呈现的权限名称。如云目录服务CCS普通用户权限CCS User的name为ccs_user。 建议您传参display_name,不传name参数。 :param name: The name of this KeystoneListPermissionsRequest. :type: str @@ -82,7 +102,7 @@ def name(self, name): def domain_id(self): """Gets the domain_id of this KeystoneListPermissionsRequest. - 账号ID,获取方式请参见:[获取账号ID](https://support.huaweicloud.com/api-iam/iam_17_0002.html)。 > - 如果填写此参数,则返回账号下所有自定义策略。 > - 如果不填写此参数,则返回所有系统权限(包含系统策略和系统角色)。 + 账号ID,获取方式请参见:[获取账号ID](https://support.huaweicloud.com/api-iam/iam_17_0002.html)。 > - 如果填写此参数,则返回账号下所有自定义策略。 > - 如果不填写此参数,则返回所有系统权限(包含系统策略和系统角色)。 :return: The domain_id of this KeystoneListPermissionsRequest. :rtype: str @@ -93,7 +113,7 @@ def domain_id(self): def domain_id(self, domain_id): """Sets the domain_id of this KeystoneListPermissionsRequest. - 账号ID,获取方式请参见:[获取账号ID](https://support.huaweicloud.com/api-iam/iam_17_0002.html)。 > - 如果填写此参数,则返回账号下所有自定义策略。 > - 如果不填写此参数,则返回所有系统权限(包含系统策略和系统角色)。 + 账号ID,获取方式请参见:[获取账号ID](https://support.huaweicloud.com/api-iam/iam_17_0002.html)。 > - 如果填写此参数,则返回账号下所有自定义策略。 > - 如果不填写此参数,则返回所有系统权限(包含系统策略和系统角色)。 :param domain_id: The domain_id of this KeystoneListPermissionsRequest. :type: str @@ -104,7 +124,7 @@ def domain_id(self, domain_id): def page(self): """Gets the page of this KeystoneListPermissionsRequest. - 分页查询时数据的页数,查询值最小为1,默认值为1。需要与per_page同时使用。 + 分页查询时数据的页数,查询值最小为1。需要与per_page同时存在。传入domain_id参数查询自定义策略时,可配套使用。 :return: The page of this KeystoneListPermissionsRequest. :rtype: int @@ -115,7 +135,7 @@ def page(self): def page(self, page): """Sets the page of this KeystoneListPermissionsRequest. - 分页查询时数据的页数,查询值最小为1,默认值为1。需要与per_page同时使用。 + 分页查询时数据的页数,查询值最小为1。需要与per_page同时存在。传入domain_id参数查询自定义策略时,可配套使用。 :param page: The page of this KeystoneListPermissionsRequest. :type: int @@ -126,7 +146,7 @@ def page(self, page): def per_page(self): """Gets the per_page of this KeystoneListPermissionsRequest. - 分页查询时每页的数据个数,取值范围为[1,300], 默认值为300。需要与page同时使用。 + 分页查询时每页的数据个数,取值范围为[1,300],默认值为300。需要与page同时存在。不传page和per_page参数时,每页最多返回300个权限。 :return: The per_page of this KeystoneListPermissionsRequest. :rtype: int @@ -137,13 +157,101 @@ def per_page(self): def per_page(self, per_page): """Sets the per_page of this KeystoneListPermissionsRequest. - 分页查询时每页的数据个数,取值范围为[1,300], 默认值为300。需要与page同时使用。 + 分页查询时每页的数据个数,取值范围为[1,300],默认值为300。需要与page同时存在。不传page和per_page参数时,每页最多返回300个权限。 :param per_page: The per_page of this KeystoneListPermissionsRequest. :type: int """ self._per_page = per_page + @property + def permission_type(self): + """Gets the permission_type of this KeystoneListPermissionsRequest. + + 区分系统权限类型的参数。当domain_id参数为空时生效。 > - policy:返回系统策略。 > - role:返回系统角色。 + + :return: The permission_type of this KeystoneListPermissionsRequest. + :rtype: str + """ + return self._permission_type + + @permission_type.setter + def permission_type(self, permission_type): + """Sets the permission_type of this KeystoneListPermissionsRequest. + + 区分系统权限类型的参数。当domain_id参数为空时生效。 > - policy:返回系统策略。 > - role:返回系统角色。 + + :param permission_type: The permission_type of this KeystoneListPermissionsRequest. + :type: str + """ + self._permission_type = permission_type + + @property + def display_name(self): + """Gets the display_name of this KeystoneListPermissionsRequest. + + 过滤权限名称。如传参为Administrator,则返回满足条件的所有管理员权限。 + + :return: The display_name of this KeystoneListPermissionsRequest. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """Sets the display_name of this KeystoneListPermissionsRequest. + + 过滤权限名称。如传参为Administrator,则返回满足条件的所有管理员权限。 + + :param display_name: The display_name of this KeystoneListPermissionsRequest. + :type: str + """ + self._display_name = display_name + + @property + def type(self): + """Gets the type of this KeystoneListPermissionsRequest. + + 过滤权限的显示模式。取值范围:domain,project,all。type为domain时,返回type=AA或AX的权限;type为project时,返回type=AA或XA的权限;type为all时返回type为AA、AX、XA的权限。 > - AX表示在domain层显示。 > - XA表示在project层显示。 > - AA表示在domain和project层均显示。 > - XX表示在domain和project层均不显示。 + + :return: The type of this KeystoneListPermissionsRequest. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this KeystoneListPermissionsRequest. + + 过滤权限的显示模式。取值范围:domain,project,all。type为domain时,返回type=AA或AX的权限;type为project时,返回type=AA或XA的权限;type为all时返回type为AA、AX、XA的权限。 > - AX表示在domain层显示。 > - XA表示在project层显示。 > - AA表示在domain和project层均显示。 > - XX表示在domain和project层均不显示。 + + :param type: The type of this KeystoneListPermissionsRequest. + :type: str + """ + self._type = type + + @property + def catalog(self): + """Gets the catalog of this KeystoneListPermissionsRequest. + + 权限所在目录。catalog值精确匹配策略的catalog字段(可以过滤服务的策略、或者自定义策略)。 + + :return: The catalog of this KeystoneListPermissionsRequest. + :rtype: str + """ + return self._catalog + + @catalog.setter + def catalog(self, catalog): + """Sets the catalog of this KeystoneListPermissionsRequest. + + 权限所在目录。catalog值精确匹配策略的catalog字段(可以过滤服务的策略、或者自定义策略)。 + + :param catalog: The catalog of this KeystoneListPermissionsRequest. + :type: str + """ + self._catalog = catalog + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-iam/setup.py b/huaweicloud-sdk-iam/setup.py index cc3e41a265..fc7214a02b 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "IAM"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-iec/setup.py b/huaweicloud-sdk-iec/setup.py index 089b83436c..15e4379a84 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "IEC"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-image/setup.py b/huaweicloud-sdk-image/setup.py index d9f5280e35..d126d16f1b 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "Image"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-ims/setup.py b/huaweicloud-sdk-ims/setup.py index cec3f0f089..25c38456c7 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "IMS"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_async_client.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_async_client.py index fc6d59b004..9fc5be4917 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_async_client.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_async_client.py @@ -3356,7 +3356,7 @@ def create_rule_action_with_http_info(self, request): :return: CreateRuleActionResponse """ - all_params = ['create_rule_action_request_body', 'instance_id', 'x_lb_service'] + all_params = ['create_rule_action_request_body', 'instance_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -3371,8 +3371,6 @@ def create_rule_action_with_http_info(self, request): header_params = {} if 'instance_id' in local_var_params: header_params['Instance-Id'] = local_var_params['instance_id'] - if 'x_lb_service' in local_var_params: - header_params['x-LB-Service'] = local_var_params['x_lb_service'] form_params = {} diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_client.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_client.py index e2498da6b8..89a92e4c17 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_client.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_client.py @@ -3356,7 +3356,7 @@ def create_rule_action_with_http_info(self, request): :return: CreateRuleActionResponse """ - all_params = ['create_rule_action_request_body', 'instance_id', 'x_lb_service'] + all_params = ['create_rule_action_request_body', 'instance_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -3371,8 +3371,6 @@ def create_rule_action_with_http_info(self, request): header_params = {} if 'instance_id' in local_var_params: header_params['Instance-Id'] = local_var_params['instance_id'] - if 'x_lb_service' in local_var_params: - header_params['x-LB-Service'] = local_var_params['x_lb_service'] form_params = {} diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/add_action_req.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/add_action_req.py index 2f91272957..4799c6c524 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/add_action_req.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/add_action_req.py @@ -25,18 +25,16 @@ class AddActionReq: openapi_types = { 'rule_id': 'str', 'channel': 'str', - 'channel_detail': 'ChannelDetail', - 'batch': 'bool' + 'channel_detail': 'ChannelDetail' } attribute_map = { 'rule_id': 'rule_id', 'channel': 'channel', - 'channel_detail': 'channel_detail', - 'batch': 'batch' + 'channel_detail': 'channel_detail' } - def __init__(self, rule_id=None, channel=None, channel_detail=None, batch=None): + def __init__(self, rule_id=None, channel=None, channel_detail=None): """AddActionReq - a model defined in huaweicloud sdk""" @@ -44,14 +42,11 @@ def __init__(self, rule_id=None, channel=None, channel_detail=None, batch=None): self._rule_id = None self._channel = None self._channel_detail = None - self._batch = None self.discriminator = None self.rule_id = rule_id self.channel = channel self.channel_detail = channel_detail - if batch is not None: - self.batch = batch @property def rule_id(self): @@ -117,28 +112,6 @@ def channel_detail(self, channel_detail): """ self._channel_detail = channel_detail - @property - def batch(self): - """Gets the batch of this AddActionReq. - - **参数说明**:是否支持批量接收推送消息。 - - :return: The batch of this AddActionReq. - :rtype: bool - """ - return self._batch - - @batch.setter - def batch(self, batch): - """Sets the batch of this AddActionReq. - - **参数说明**:是否支持批量接收推送消息。 - - :param batch: The batch of this AddActionReq. - :type: bool - """ - self._batch = batch - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/add_application.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/add_application.py index 322d97df8c..5104060955 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/add_application.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/add_application.py @@ -23,37 +23,22 @@ class AddApplication: sensitive_list = [] openapi_types = { - 'app_name': 'str', - 'app_id': 'str', - 'instance_id': 'str', - 'service_name': 'str' + 'app_name': 'str' } attribute_map = { - 'app_name': 'app_name', - 'app_id': 'app_id', - 'instance_id': 'instance_id', - 'service_name': 'service_name' + 'app_name': 'app_name' } - def __init__(self, app_name=None, app_id=None, instance_id=None, service_name=None): + def __init__(self, app_name=None): """AddApplication - a model defined in huaweicloud sdk""" self._app_name = None - self._app_id = None - self._instance_id = None - self._service_name = None self.discriminator = None self.app_name = app_name - if app_id is not None: - self.app_id = app_id - if instance_id is not None: - self.instance_id = instance_id - if service_name is not None: - self.service_name = service_name @property def app_name(self): @@ -77,72 +62,6 @@ def app_name(self, app_name): """ self._app_name = app_name - @property - def app_id(self): - """Gets the app_id of this AddApplication. - - **参数说明**:资源空间ID。 **取值范围**:长度不超过64,只允许字母、数字、下划线(_)、连接符(-)的组合。 - - :return: The app_id of this AddApplication. - :rtype: str - """ - return self._app_id - - @app_id.setter - def app_id(self, app_id): - """Sets the app_id of this AddApplication. - - **参数说明**:资源空间ID。 **取值范围**:长度不超过64,只允许字母、数字、下划线(_)、连接符(-)的组合。 - - :param app_id: The app_id of this AddApplication. - :type: str - """ - self._app_id = app_id - - @property - def instance_id(self): - """Gets the instance_id of this AddApplication. - - **参数说明**:迁移前实例ID。 **取值范围**:长度不超过64,只允许字母、数字、下划线(_)、连接符(-)的组合。 - - :return: The instance_id of this AddApplication. - :rtype: str - """ - return self._instance_id - - @instance_id.setter - def instance_id(self, instance_id): - """Sets the instance_id of this AddApplication. - - **参数说明**:迁移前实例ID。 **取值范围**:长度不超过64,只允许字母、数字、下划线(_)、连接符(-)的组合。 - - :param instance_id: The instance_id of this AddApplication. - :type: str - """ - self._instance_id = instance_id - - @property - def service_name(self): - """Gets the service_name of this AddApplication. - - **参数说明**:对接的服务名。 **取值范围**: - IoTDA:代表华为云设备接入云服务。 - CTNBGW:代表天翼云设备接入服务。 - - :return: The service_name of this AddApplication. - :rtype: str - """ - return self._service_name - - @service_name.setter - def service_name(self, service_name): - """Sets the service_name of this AddApplication. - - **参数说明**:对接的服务名。 **取值范围**: - IoTDA:代表华为云设备接入云服务。 - CTNBGW:代表天翼云设备接入服务。 - - :param service_name: The service_name of this AddApplication. - :type: str - """ - self._service_name = service_name - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/add_application_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/add_application_response.py index c16c2ba877..231671cf3c 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/add_application_response.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/add_application_response.py @@ -26,33 +26,17 @@ class AddApplicationResponse(SdkResponse): 'app_id': 'str', 'app_name': 'str', 'create_time': 'str', - 'default_app': 'bool', - 'app_type': 'str', - 'username': 'str', - 'permission': 'str', - 'last_instance_id': 'str', - 'current_instance_id': 'str', - 'service_name': 'str', - 'freezed': 'bool', - 'request_instance_id': 'str' + 'default_app': 'bool' } attribute_map = { 'app_id': 'app_id', 'app_name': 'app_name', 'create_time': 'create_time', - 'default_app': 'default_app', - 'app_type': 'app_type', - 'username': 'username', - 'permission': 'permission', - 'last_instance_id': 'last_instance_id', - 'current_instance_id': 'current_instance_id', - 'service_name': 'service_name', - 'freezed': 'freezed', - 'request_instance_id': 'request_instance_id' + 'default_app': 'default_app' } - def __init__(self, app_id=None, app_name=None, create_time=None, default_app=None, app_type=None, username=None, permission=None, last_instance_id=None, current_instance_id=None, service_name=None, freezed=None, request_instance_id=None): + def __init__(self, app_id=None, app_name=None, create_time=None, default_app=None): """AddApplicationResponse - a model defined in huaweicloud sdk""" super(AddApplicationResponse, self).__init__() @@ -61,14 +45,6 @@ def __init__(self, app_id=None, app_name=None, create_time=None, default_app=Non self._app_name = None self._create_time = None self._default_app = None - self._app_type = None - self._username = None - self._permission = None - self._last_instance_id = None - self._current_instance_id = None - self._service_name = None - self._freezed = None - self._request_instance_id = None self.discriminator = None if app_id is not None: @@ -79,22 +55,6 @@ def __init__(self, app_id=None, app_name=None, create_time=None, default_app=Non self.create_time = create_time if default_app is not None: self.default_app = default_app - if app_type is not None: - self.app_type = app_type - if username is not None: - self.username = username - if permission is not None: - self.permission = permission - if last_instance_id is not None: - self.last_instance_id = last_instance_id - if current_instance_id is not None: - self.current_instance_id = current_instance_id - if service_name is not None: - self.service_name = service_name - if freezed is not None: - self.freezed = freezed - if request_instance_id is not None: - self.request_instance_id = request_instance_id @property def app_id(self): @@ -184,182 +144,6 @@ def default_app(self, default_app): """ self._default_app = default_app - @property - def app_type(self): - """Gets the app_type of this AddApplicationResponse. - - app的类型,标准版:Junior | 高级版:Normal - - :return: The app_type of this AddApplicationResponse. - :rtype: str - """ - return self._app_type - - @app_type.setter - def app_type(self, app_type): - """Sets the app_type of this AddApplicationResponse. - - app的类型,标准版:Junior | 高级版:Normal - - :param app_type: The app_type of this AddApplicationResponse. - :type: str - """ - self._app_type = app_type - - @property - def username(self): - """Gets the username of this AddApplicationResponse. - - 用户名。 - - :return: The username of this AddApplicationResponse. - :rtype: str - """ - return self._username - - @username.setter - def username(self, username): - """Sets the username of this AddApplicationResponse. - - 用户名。 - - :param username: The username of this AddApplicationResponse. - :type: str - """ - self._username = username - - @property - def permission(self): - """Gets the permission of this AddApplicationResponse. - - app与用户的授权关系时,响应为:all | bind | edit | query ,其中bind权限类似于ALL权限,属于子用户权限。 - - :return: The permission of this AddApplicationResponse. - :rtype: str - """ - return self._permission - - @permission.setter - def permission(self, permission): - """Sets the permission of this AddApplicationResponse. - - app与用户的授权关系时,响应为:all | bind | edit | query ,其中bind权限类似于ALL权限,属于子用户权限。 - - :param permission: The permission of this AddApplicationResponse. - :type: str - """ - self._permission = permission - - @property - def last_instance_id(self): - """Gets the last_instance_id of this AddApplicationResponse. - - 迁移前实例ID。 - - :return: The last_instance_id of this AddApplicationResponse. - :rtype: str - """ - return self._last_instance_id - - @last_instance_id.setter - def last_instance_id(self, last_instance_id): - """Sets the last_instance_id of this AddApplicationResponse. - - 迁移前实例ID。 - - :param last_instance_id: The last_instance_id of this AddApplicationResponse. - :type: str - """ - self._last_instance_id = last_instance_id - - @property - def current_instance_id(self): - """Gets the current_instance_id of this AddApplicationResponse. - - 当前实例ID。 - - :return: The current_instance_id of this AddApplicationResponse. - :rtype: str - """ - return self._current_instance_id - - @current_instance_id.setter - def current_instance_id(self, current_instance_id): - """Sets the current_instance_id of this AddApplicationResponse. - - 当前实例ID。 - - :param current_instance_id: The current_instance_id of this AddApplicationResponse. - :type: str - """ - self._current_instance_id = current_instance_id - - @property - def service_name(self): - """Gets the service_name of this AddApplicationResponse. - - 对接的服务名 - - :return: The service_name of this AddApplicationResponse. - :rtype: str - """ - return self._service_name - - @service_name.setter - def service_name(self, service_name): - """Sets the service_name of this AddApplicationResponse. - - 对接的服务名 - - :param service_name: The service_name of this AddApplicationResponse. - :type: str - """ - self._service_name = service_name - - @property - def freezed(self): - """Gets the freezed of this AddApplicationResponse. - - 是否冻结 - - :return: The freezed of this AddApplicationResponse. - :rtype: bool - """ - return self._freezed - - @freezed.setter - def freezed(self, freezed): - """Sets the freezed of this AddApplicationResponse. - - 是否冻结 - - :param freezed: The freezed of this AddApplicationResponse. - :type: bool - """ - self._freezed = freezed - - @property - def request_instance_id(self): - """Gets the request_instance_id of this AddApplicationResponse. - - 调用接口所属instanceId - - :return: The request_instance_id of this AddApplicationResponse. - :rtype: str - """ - return self._request_instance_id - - @request_instance_id.setter - def request_instance_id(self, request_instance_id): - """Sets the request_instance_id of this AddApplicationResponse. - - 调用接口所属instanceId - - :param request_instance_id: The request_instance_id of this AddApplicationResponse. - :type: str - """ - self._request_instance_id = request_instance_id - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/add_rule_req.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/add_rule_req.py index 06131fa9f6..3d6c4e2769 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/add_rule_req.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/add_rule_req.py @@ -29,8 +29,7 @@ class AddRuleReq: 'app_type': 'str', 'app_id': 'str', 'select': 'str', - 'where': 'str', - 'data_version': 'str' + 'where': 'str' } attribute_map = { @@ -40,11 +39,10 @@ class AddRuleReq: 'app_type': 'app_type', 'app_id': 'app_id', 'select': 'select', - 'where': 'where', - 'data_version': 'data_version' + 'where': 'where' } - def __init__(self, rule_name=None, description=None, subject=None, app_type=None, app_id=None, select=None, where=None, data_version=None): + def __init__(self, rule_name=None, description=None, subject=None, app_type=None, app_id=None, select=None, where=None): """AddRuleReq - a model defined in huaweicloud sdk""" @@ -56,7 +54,6 @@ def __init__(self, rule_name=None, description=None, subject=None, app_type=None self._app_id = None self._select = None self._where = None - self._data_version = None self.discriminator = None if rule_name is not None: @@ -72,8 +69,6 @@ def __init__(self, rule_name=None, description=None, subject=None, app_type=None self.select = select if where is not None: self.where = where - if data_version is not None: - self.data_version = data_version @property def rule_name(self): @@ -227,28 +222,6 @@ def where(self, where): """ self._where = where - @property - def data_version(self): - """Gets the data_version of this AddRuleReq. - - **参数说明**:规则推送消息的消息格式版本,租户无需设置,仅供内部兼容历史推送消息使用,iocsa的历史推送消息版本为V5.0.1 - - :return: The data_version of this AddRuleReq. - :rtype: str - """ - return self._data_version - - @data_version.setter - def data_version(self, data_version): - """Sets the data_version of this AddRuleReq. - - **参数说明**:规则推送消息的消息格式版本,租户无需设置,仅供内部兼容历史推送消息使用,iocsa的历史推送消息版本为V5.0.1 - - :param data_version: The data_version of this AddRuleReq. - :type: str - """ - self._data_version = data_version - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/application_dto.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/application_dto.py index 8bd8c7fbfa..f1758a5d7f 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/application_dto.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/application_dto.py @@ -26,33 +26,17 @@ class ApplicationDTO: 'app_id': 'str', 'app_name': 'str', 'create_time': 'str', - 'default_app': 'bool', - 'app_type': 'str', - 'username': 'str', - 'permission': 'str', - 'last_instance_id': 'str', - 'current_instance_id': 'str', - 'service_name': 'str', - 'freezed': 'bool', - 'request_instance_id': 'str' + 'default_app': 'bool' } attribute_map = { 'app_id': 'app_id', 'app_name': 'app_name', 'create_time': 'create_time', - 'default_app': 'default_app', - 'app_type': 'app_type', - 'username': 'username', - 'permission': 'permission', - 'last_instance_id': 'last_instance_id', - 'current_instance_id': 'current_instance_id', - 'service_name': 'service_name', - 'freezed': 'freezed', - 'request_instance_id': 'request_instance_id' + 'default_app': 'default_app' } - def __init__(self, app_id=None, app_name=None, create_time=None, default_app=None, app_type=None, username=None, permission=None, last_instance_id=None, current_instance_id=None, service_name=None, freezed=None, request_instance_id=None): + def __init__(self, app_id=None, app_name=None, create_time=None, default_app=None): """ApplicationDTO - a model defined in huaweicloud sdk""" @@ -61,14 +45,6 @@ def __init__(self, app_id=None, app_name=None, create_time=None, default_app=Non self._app_name = None self._create_time = None self._default_app = None - self._app_type = None - self._username = None - self._permission = None - self._last_instance_id = None - self._current_instance_id = None - self._service_name = None - self._freezed = None - self._request_instance_id = None self.discriminator = None if app_id is not None: @@ -79,22 +55,6 @@ def __init__(self, app_id=None, app_name=None, create_time=None, default_app=Non self.create_time = create_time if default_app is not None: self.default_app = default_app - if app_type is not None: - self.app_type = app_type - if username is not None: - self.username = username - if permission is not None: - self.permission = permission - if last_instance_id is not None: - self.last_instance_id = last_instance_id - if current_instance_id is not None: - self.current_instance_id = current_instance_id - if service_name is not None: - self.service_name = service_name - if freezed is not None: - self.freezed = freezed - if request_instance_id is not None: - self.request_instance_id = request_instance_id @property def app_id(self): @@ -184,182 +144,6 @@ def default_app(self, default_app): """ self._default_app = default_app - @property - def app_type(self): - """Gets the app_type of this ApplicationDTO. - - app的类型,标准版:Junior | 高级版:Normal - - :return: The app_type of this ApplicationDTO. - :rtype: str - """ - return self._app_type - - @app_type.setter - def app_type(self, app_type): - """Sets the app_type of this ApplicationDTO. - - app的类型,标准版:Junior | 高级版:Normal - - :param app_type: The app_type of this ApplicationDTO. - :type: str - """ - self._app_type = app_type - - @property - def username(self): - """Gets the username of this ApplicationDTO. - - 用户名。 - - :return: The username of this ApplicationDTO. - :rtype: str - """ - return self._username - - @username.setter - def username(self, username): - """Sets the username of this ApplicationDTO. - - 用户名。 - - :param username: The username of this ApplicationDTO. - :type: str - """ - self._username = username - - @property - def permission(self): - """Gets the permission of this ApplicationDTO. - - app与用户的授权关系时,响应为:all | bind | edit | query ,其中bind权限类似于ALL权限,属于子用户权限。 - - :return: The permission of this ApplicationDTO. - :rtype: str - """ - return self._permission - - @permission.setter - def permission(self, permission): - """Sets the permission of this ApplicationDTO. - - app与用户的授权关系时,响应为:all | bind | edit | query ,其中bind权限类似于ALL权限,属于子用户权限。 - - :param permission: The permission of this ApplicationDTO. - :type: str - """ - self._permission = permission - - @property - def last_instance_id(self): - """Gets the last_instance_id of this ApplicationDTO. - - 迁移前实例ID。 - - :return: The last_instance_id of this ApplicationDTO. - :rtype: str - """ - return self._last_instance_id - - @last_instance_id.setter - def last_instance_id(self, last_instance_id): - """Sets the last_instance_id of this ApplicationDTO. - - 迁移前实例ID。 - - :param last_instance_id: The last_instance_id of this ApplicationDTO. - :type: str - """ - self._last_instance_id = last_instance_id - - @property - def current_instance_id(self): - """Gets the current_instance_id of this ApplicationDTO. - - 当前实例ID。 - - :return: The current_instance_id of this ApplicationDTO. - :rtype: str - """ - return self._current_instance_id - - @current_instance_id.setter - def current_instance_id(self, current_instance_id): - """Sets the current_instance_id of this ApplicationDTO. - - 当前实例ID。 - - :param current_instance_id: The current_instance_id of this ApplicationDTO. - :type: str - """ - self._current_instance_id = current_instance_id - - @property - def service_name(self): - """Gets the service_name of this ApplicationDTO. - - 对接的服务名 - - :return: The service_name of this ApplicationDTO. - :rtype: str - """ - return self._service_name - - @service_name.setter - def service_name(self, service_name): - """Sets the service_name of this ApplicationDTO. - - 对接的服务名 - - :param service_name: The service_name of this ApplicationDTO. - :type: str - """ - self._service_name = service_name - - @property - def freezed(self): - """Gets the freezed of this ApplicationDTO. - - 是否冻结 - - :return: The freezed of this ApplicationDTO. - :rtype: bool - """ - return self._freezed - - @freezed.setter - def freezed(self, freezed): - """Sets the freezed of this ApplicationDTO. - - 是否冻结 - - :param freezed: The freezed of this ApplicationDTO. - :type: bool - """ - self._freezed = freezed - - @property - def request_instance_id(self): - """Gets the request_instance_id of this ApplicationDTO. - - 调用接口所属instanceId - - :return: The request_instance_id of this ApplicationDTO. - :rtype: str - """ - return self._request_instance_id - - @request_instance_id.setter - def request_instance_id(self, request_instance_id): - """Sets the request_instance_id of this ApplicationDTO. - - 调用接口所属instanceId - - :param request_instance_id: The request_instance_id of this ApplicationDTO. - :type: str - """ - self._request_instance_id = request_instance_id - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_rule_action_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_rule_action_request.py index a44c1f1c30..6dcd96dc44 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_rule_action_request.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_rule_action_request.py @@ -24,30 +24,25 @@ class CreateRuleActionRequest: openapi_types = { 'instance_id': 'str', - 'x_lb_service': 'str', 'body': 'AddActionReq' } attribute_map = { 'instance_id': 'Instance-Id', - 'x_lb_service': 'x-LB-Service', 'body': 'body' } - def __init__(self, instance_id=None, x_lb_service=None, body=None): + def __init__(self, instance_id=None, body=None): """CreateRuleActionRequest - a model defined in huaweicloud sdk""" self._instance_id = None - self._x_lb_service = None self._body = None self.discriminator = None if instance_id is not None: self.instance_id = instance_id - if x_lb_service is not None: - self.x_lb_service = x_lb_service if body is not None: self.body = body @@ -73,28 +68,6 @@ def instance_id(self, instance_id): """ self._instance_id = instance_id - @property - def x_lb_service(self): - """Gets the x_lb_service of this CreateRuleActionRequest. - - **参数说明**:此参数定义了lbservice - - :return: The x_lb_service of this CreateRuleActionRequest. - :rtype: str - """ - return self._x_lb_service - - @x_lb_service.setter - def x_lb_service(self, x_lb_service): - """Sets the x_lb_service of this CreateRuleActionRequest. - - **参数说明**:此参数定义了lbservice - - :param x_lb_service: The x_lb_service of this CreateRuleActionRequest. - :type: str - """ - self._x_lb_service = x_lb_service - @property def body(self): """Gets the body of this CreateRuleActionRequest. diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_rule_action_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_rule_action_response.py index 936828fb0b..329da52c68 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_rule_action_response.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_rule_action_response.py @@ -27,8 +27,7 @@ class CreateRuleActionResponse(SdkResponse): 'rule_id': 'str', 'app_id': 'str', 'channel': 'str', - 'channel_detail': 'ChannelDetail', - 'batch': 'bool' + 'channel_detail': 'ChannelDetail' } attribute_map = { @@ -36,11 +35,10 @@ class CreateRuleActionResponse(SdkResponse): 'rule_id': 'rule_id', 'app_id': 'app_id', 'channel': 'channel', - 'channel_detail': 'channel_detail', - 'batch': 'batch' + 'channel_detail': 'channel_detail' } - def __init__(self, action_id=None, rule_id=None, app_id=None, channel=None, channel_detail=None, batch=None): + def __init__(self, action_id=None, rule_id=None, app_id=None, channel=None, channel_detail=None): """CreateRuleActionResponse - a model defined in huaweicloud sdk""" super(CreateRuleActionResponse, self).__init__() @@ -50,7 +48,6 @@ def __init__(self, action_id=None, rule_id=None, app_id=None, channel=None, chan self._app_id = None self._channel = None self._channel_detail = None - self._batch = None self.discriminator = None if action_id is not None: @@ -63,8 +60,6 @@ def __init__(self, action_id=None, rule_id=None, app_id=None, channel=None, chan self.channel = channel if channel_detail is not None: self.channel_detail = channel_detail - if batch is not None: - self.batch = batch @property def action_id(self): @@ -174,28 +169,6 @@ def channel_detail(self, channel_detail): """ self._channel_detail = channel_detail - @property - def batch(self): - """Gets the batch of this CreateRuleActionResponse. - - 是否支持批量接收推送消息。 - - :return: The batch of this CreateRuleActionResponse. - :rtype: bool - """ - return self._batch - - @batch.setter - def batch(self, batch): - """Sets the batch of this CreateRuleActionResponse. - - 是否支持批量接收推送消息。 - - :param batch: The batch of this CreateRuleActionResponse. - :type: bool - """ - self._batch = batch - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_rule_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_rule_response.py index e08b783ccc..fa8d7dcc64 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_rule_response.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_rule_response.py @@ -30,9 +30,7 @@ class CreateRuleResponse(SdkResponse): 'actions': 'list[RuleAction]', 'rule_type': 'str', 'status': 'str', - 'app_id': 'str', - 'edge_node_ids': 'list[str]', - 'last_update_time': 'str' + 'app_id': 'str' } attribute_map = { @@ -43,12 +41,10 @@ class CreateRuleResponse(SdkResponse): 'actions': 'actions', 'rule_type': 'rule_type', 'status': 'status', - 'app_id': 'app_id', - 'edge_node_ids': 'edge_node_ids', - 'last_update_time': 'last_update_time' + 'app_id': 'app_id' } - def __init__(self, rule_id=None, name=None, description=None, condition_group=None, actions=None, rule_type=None, status=None, app_id=None, edge_node_ids=None, last_update_time=None): + def __init__(self, rule_id=None, name=None, description=None, condition_group=None, actions=None, rule_type=None, status=None, app_id=None): """CreateRuleResponse - a model defined in huaweicloud sdk""" super(CreateRuleResponse, self).__init__() @@ -61,8 +57,6 @@ def __init__(self, rule_id=None, name=None, description=None, condition_group=No self._rule_type = None self._status = None self._app_id = None - self._edge_node_ids = None - self._last_update_time = None self.discriminator = None if rule_id is not None: @@ -81,10 +75,6 @@ def __init__(self, rule_id=None, name=None, description=None, condition_group=No self.status = status if app_id is not None: self.app_id = app_id - if edge_node_ids is not None: - self.edge_node_ids = edge_node_ids - if last_update_time is not None: - self.last_update_time = last_update_time @property def rule_id(self): @@ -260,50 +250,6 @@ def app_id(self, app_id): """ self._app_id = app_id - @property - def edge_node_ids(self): - """Gets the edge_node_ids of this CreateRuleResponse. - - 归属边缘侧节点设备ID列表。 - - :return: The edge_node_ids of this CreateRuleResponse. - :rtype: list[str] - """ - return self._edge_node_ids - - @edge_node_ids.setter - def edge_node_ids(self, edge_node_ids): - """Sets the edge_node_ids of this CreateRuleResponse. - - 归属边缘侧节点设备ID列表。 - - :param edge_node_ids: The edge_node_ids of this CreateRuleResponse. - :type: list[str] - """ - self._edge_node_ids = edge_node_ids - - @property - def last_update_time(self): - """Gets the last_update_time of this CreateRuleResponse. - - 规则最后更新时间,使用UTC时区,格式:yyyyMMdd'T'HHmmss'Z'。 - - :return: The last_update_time of this CreateRuleResponse. - :rtype: str - """ - return self._last_update_time - - @last_update_time.setter - def last_update_time(self, last_update_time): - """Sets the last_update_time of this CreateRuleResponse. - - 规则最后更新时间,使用UTC时区,格式:yyyyMMdd'T'HHmmss'Z'。 - - :param last_update_time: The last_update_time of this CreateRuleResponse. - :type: str - """ - self._last_update_time = last_update_time - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/routing_rule_action.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/routing_rule_action.py index 3dce453e58..387ad65796 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/routing_rule_action.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/routing_rule_action.py @@ -27,8 +27,7 @@ class RoutingRuleAction: 'rule_id': 'str', 'app_id': 'str', 'channel': 'str', - 'channel_detail': 'ChannelDetail', - 'batch': 'bool' + 'channel_detail': 'ChannelDetail' } attribute_map = { @@ -36,11 +35,10 @@ class RoutingRuleAction: 'rule_id': 'rule_id', 'app_id': 'app_id', 'channel': 'channel', - 'channel_detail': 'channel_detail', - 'batch': 'batch' + 'channel_detail': 'channel_detail' } - def __init__(self, action_id=None, rule_id=None, app_id=None, channel=None, channel_detail=None, batch=None): + def __init__(self, action_id=None, rule_id=None, app_id=None, channel=None, channel_detail=None): """RoutingRuleAction - a model defined in huaweicloud sdk""" @@ -50,7 +48,6 @@ def __init__(self, action_id=None, rule_id=None, app_id=None, channel=None, chan self._app_id = None self._channel = None self._channel_detail = None - self._batch = None self.discriminator = None if action_id is not None: @@ -63,8 +60,6 @@ def __init__(self, action_id=None, rule_id=None, app_id=None, channel=None, chan self.channel = channel if channel_detail is not None: self.channel_detail = channel_detail - if batch is not None: - self.batch = batch @property def action_id(self): @@ -174,28 +169,6 @@ def channel_detail(self, channel_detail): """ self._channel_detail = channel_detail - @property - def batch(self): - """Gets the batch of this RoutingRuleAction. - - 是否支持批量接收推送消息。 - - :return: The batch of this RoutingRuleAction. - :rtype: bool - """ - return self._batch - - @batch.setter - def batch(self, batch): - """Sets the batch of this RoutingRuleAction. - - 是否支持批量接收推送消息。 - - :param batch: The batch of this RoutingRuleAction. - :type: bool - """ - self._batch = batch - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/rule.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/rule.py index ecdad98b41..488a191d44 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/rule.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/rule.py @@ -29,8 +29,7 @@ class Rule: 'actions': 'list[RuleAction]', 'rule_type': 'str', 'status': 'str', - 'app_id': 'str', - 'edge_node_ids': 'list[str]' + 'app_id': 'str' } attribute_map = { @@ -40,11 +39,10 @@ class Rule: 'actions': 'actions', 'rule_type': 'rule_type', 'status': 'status', - 'app_id': 'app_id', - 'edge_node_ids': 'edge_node_ids' + 'app_id': 'app_id' } - def __init__(self, name=None, description=None, condition_group=None, actions=None, rule_type=None, status=None, app_id=None, edge_node_ids=None): + def __init__(self, name=None, description=None, condition_group=None, actions=None, rule_type=None, status=None, app_id=None): """Rule - a model defined in huaweicloud sdk""" @@ -56,7 +54,6 @@ def __init__(self, name=None, description=None, condition_group=None, actions=No self._rule_type = None self._status = None self._app_id = None - self._edge_node_ids = None self.discriminator = None self.name = name @@ -69,8 +66,6 @@ def __init__(self, name=None, description=None, condition_group=None, actions=No self.status = status if app_id is not None: self.app_id = app_id - if edge_node_ids is not None: - self.edge_node_ids = edge_node_ids @property def name(self): @@ -224,28 +219,6 @@ def app_id(self, app_id): """ self._app_id = app_id - @property - def edge_node_ids(self): - """Gets the edge_node_ids of this Rule. - - **参数说明**:归属边缘侧节点设备ID列表。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 - - :return: The edge_node_ids of this Rule. - :rtype: list[str] - """ - return self._edge_node_ids - - @edge_node_ids.setter - def edge_node_ids(self, edge_node_ids): - """Sets the edge_node_ids of this Rule. - - **参数说明**:归属边缘侧节点设备ID列表。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 - - :param edge_node_ids: The edge_node_ids of this Rule. - :type: list[str] - """ - self._edge_node_ids = edge_node_ids - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/rule_action.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/rule_action.py index fbeb8c7cbe..511c95a11f 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/rule_action.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/rule_action.py @@ -24,7 +24,6 @@ class RuleAction: openapi_types = { 'type': 'str', - 'addition': 'list[str]', 'smn_forwarding': 'ActionSmnForwarding', 'device_alarm': 'ActionDeviceAlarm', 'device_command': 'ActionDeviceCommand', @@ -37,7 +36,6 @@ class RuleAction: attribute_map = { 'type': 'type', - 'addition': 'addition', 'smn_forwarding': 'smn_forwarding', 'device_alarm': 'device_alarm', 'device_command': 'device_command', @@ -48,13 +46,12 @@ class RuleAction: 'kafka_forwarding': 'kafka_forwarding' } - def __init__(self, type=None, addition=None, smn_forwarding=None, device_alarm=None, device_command=None, dis_forwarding=None, obs_forwarding=None, roma_forwarding=None, iota_forwarding=None, kafka_forwarding=None): + def __init__(self, type=None, smn_forwarding=None, device_alarm=None, device_command=None, dis_forwarding=None, obs_forwarding=None, roma_forwarding=None, iota_forwarding=None, kafka_forwarding=None): """RuleAction - a model defined in huaweicloud sdk""" self._type = None - self._addition = None self._smn_forwarding = None self._device_alarm = None self._device_command = None @@ -66,8 +63,6 @@ def __init__(self, type=None, addition=None, smn_forwarding=None, device_alarm=N self.discriminator = None self.type = type - if addition is not None: - self.addition = addition if smn_forwarding is not None: self.smn_forwarding = smn_forwarding if device_alarm is not None: @@ -107,28 +102,6 @@ def type(self, type): """ self._type = type - @property - def addition(self): - """Gets the addition of this RuleAction. - - **参数说明**:附加信息,在默认规则执行结果中附加额外内容,仅设备属性和消息类型数据转发规则支持。 **取值范围**:PRODUCT_ID - - :return: The addition of this RuleAction. - :rtype: list[str] - """ - return self._addition - - @addition.setter - def addition(self, addition): - """Sets the addition of this RuleAction. - - **参数说明**:附加信息,在默认规则执行结果中附加额外内容,仅设备属性和消息类型数据转发规则支持。 **取值范围**:PRODUCT_ID - - :param addition: The addition of this RuleAction. - :type: list[str] - """ - self._addition = addition - @property def smn_forwarding(self): """Gets the smn_forwarding of this RuleAction. diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/rule_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/rule_response.py index 27d56a89a3..d9f3da5c7a 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/rule_response.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/rule_response.py @@ -30,9 +30,7 @@ class RuleResponse: 'actions': 'list[RuleAction]', 'rule_type': 'str', 'status': 'str', - 'app_id': 'str', - 'edge_node_ids': 'list[str]', - 'last_update_time': 'str' + 'app_id': 'str' } attribute_map = { @@ -43,12 +41,10 @@ class RuleResponse: 'actions': 'actions', 'rule_type': 'rule_type', 'status': 'status', - 'app_id': 'app_id', - 'edge_node_ids': 'edge_node_ids', - 'last_update_time': 'last_update_time' + 'app_id': 'app_id' } - def __init__(self, rule_id=None, name=None, description=None, condition_group=None, actions=None, rule_type=None, status=None, app_id=None, edge_node_ids=None, last_update_time=None): + def __init__(self, rule_id=None, name=None, description=None, condition_group=None, actions=None, rule_type=None, status=None, app_id=None): """RuleResponse - a model defined in huaweicloud sdk""" @@ -61,8 +57,6 @@ def __init__(self, rule_id=None, name=None, description=None, condition_group=No self._rule_type = None self._status = None self._app_id = None - self._edge_node_ids = None - self._last_update_time = None self.discriminator = None if rule_id is not None: @@ -77,10 +71,6 @@ def __init__(self, rule_id=None, name=None, description=None, condition_group=No self.status = status if app_id is not None: self.app_id = app_id - if edge_node_ids is not None: - self.edge_node_ids = edge_node_ids - if last_update_time is not None: - self.last_update_time = last_update_time @property def rule_id(self): @@ -256,50 +246,6 @@ def app_id(self, app_id): """ self._app_id = app_id - @property - def edge_node_ids(self): - """Gets the edge_node_ids of this RuleResponse. - - 归属边缘侧节点设备ID列表。 - - :return: The edge_node_ids of this RuleResponse. - :rtype: list[str] - """ - return self._edge_node_ids - - @edge_node_ids.setter - def edge_node_ids(self, edge_node_ids): - """Sets the edge_node_ids of this RuleResponse. - - 归属边缘侧节点设备ID列表。 - - :param edge_node_ids: The edge_node_ids of this RuleResponse. - :type: list[str] - """ - self._edge_node_ids = edge_node_ids - - @property - def last_update_time(self): - """Gets the last_update_time of this RuleResponse. - - 规则最后更新时间,使用UTC时区,格式:yyyyMMdd'T'HHmmss'Z'。 - - :return: The last_update_time of this RuleResponse. - :rtype: str - """ - return self._last_update_time - - @last_update_time.setter - def last_update_time(self, last_update_time): - """Sets the last_update_time of this RuleResponse. - - 规则最后更新时间,使用UTC时区,格式:yyyyMMdd'T'HHmmss'Z'。 - - :param last_update_time: The last_update_time of this RuleResponse. - :type: str - """ - self._last_update_time = last_update_time - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_application_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_application_response.py index 924a0910a6..4de8c5d725 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_application_response.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_application_response.py @@ -26,33 +26,17 @@ class ShowApplicationResponse(SdkResponse): 'app_id': 'str', 'app_name': 'str', 'create_time': 'str', - 'default_app': 'bool', - 'app_type': 'str', - 'username': 'str', - 'permission': 'str', - 'last_instance_id': 'str', - 'current_instance_id': 'str', - 'service_name': 'str', - 'freezed': 'bool', - 'request_instance_id': 'str' + 'default_app': 'bool' } attribute_map = { 'app_id': 'app_id', 'app_name': 'app_name', 'create_time': 'create_time', - 'default_app': 'default_app', - 'app_type': 'app_type', - 'username': 'username', - 'permission': 'permission', - 'last_instance_id': 'last_instance_id', - 'current_instance_id': 'current_instance_id', - 'service_name': 'service_name', - 'freezed': 'freezed', - 'request_instance_id': 'request_instance_id' + 'default_app': 'default_app' } - def __init__(self, app_id=None, app_name=None, create_time=None, default_app=None, app_type=None, username=None, permission=None, last_instance_id=None, current_instance_id=None, service_name=None, freezed=None, request_instance_id=None): + def __init__(self, app_id=None, app_name=None, create_time=None, default_app=None): """ShowApplicationResponse - a model defined in huaweicloud sdk""" super(ShowApplicationResponse, self).__init__() @@ -61,14 +45,6 @@ def __init__(self, app_id=None, app_name=None, create_time=None, default_app=Non self._app_name = None self._create_time = None self._default_app = None - self._app_type = None - self._username = None - self._permission = None - self._last_instance_id = None - self._current_instance_id = None - self._service_name = None - self._freezed = None - self._request_instance_id = None self.discriminator = None if app_id is not None: @@ -79,22 +55,6 @@ def __init__(self, app_id=None, app_name=None, create_time=None, default_app=Non self.create_time = create_time if default_app is not None: self.default_app = default_app - if app_type is not None: - self.app_type = app_type - if username is not None: - self.username = username - if permission is not None: - self.permission = permission - if last_instance_id is not None: - self.last_instance_id = last_instance_id - if current_instance_id is not None: - self.current_instance_id = current_instance_id - if service_name is not None: - self.service_name = service_name - if freezed is not None: - self.freezed = freezed - if request_instance_id is not None: - self.request_instance_id = request_instance_id @property def app_id(self): @@ -184,182 +144,6 @@ def default_app(self, default_app): """ self._default_app = default_app - @property - def app_type(self): - """Gets the app_type of this ShowApplicationResponse. - - app的类型,标准版:Junior | 高级版:Normal - - :return: The app_type of this ShowApplicationResponse. - :rtype: str - """ - return self._app_type - - @app_type.setter - def app_type(self, app_type): - """Sets the app_type of this ShowApplicationResponse. - - app的类型,标准版:Junior | 高级版:Normal - - :param app_type: The app_type of this ShowApplicationResponse. - :type: str - """ - self._app_type = app_type - - @property - def username(self): - """Gets the username of this ShowApplicationResponse. - - 用户名。 - - :return: The username of this ShowApplicationResponse. - :rtype: str - """ - return self._username - - @username.setter - def username(self, username): - """Sets the username of this ShowApplicationResponse. - - 用户名。 - - :param username: The username of this ShowApplicationResponse. - :type: str - """ - self._username = username - - @property - def permission(self): - """Gets the permission of this ShowApplicationResponse. - - app与用户的授权关系时,响应为:all | bind | edit | query ,其中bind权限类似于ALL权限,属于子用户权限。 - - :return: The permission of this ShowApplicationResponse. - :rtype: str - """ - return self._permission - - @permission.setter - def permission(self, permission): - """Sets the permission of this ShowApplicationResponse. - - app与用户的授权关系时,响应为:all | bind | edit | query ,其中bind权限类似于ALL权限,属于子用户权限。 - - :param permission: The permission of this ShowApplicationResponse. - :type: str - """ - self._permission = permission - - @property - def last_instance_id(self): - """Gets the last_instance_id of this ShowApplicationResponse. - - 迁移前实例ID。 - - :return: The last_instance_id of this ShowApplicationResponse. - :rtype: str - """ - return self._last_instance_id - - @last_instance_id.setter - def last_instance_id(self, last_instance_id): - """Sets the last_instance_id of this ShowApplicationResponse. - - 迁移前实例ID。 - - :param last_instance_id: The last_instance_id of this ShowApplicationResponse. - :type: str - """ - self._last_instance_id = last_instance_id - - @property - def current_instance_id(self): - """Gets the current_instance_id of this ShowApplicationResponse. - - 当前实例ID。 - - :return: The current_instance_id of this ShowApplicationResponse. - :rtype: str - """ - return self._current_instance_id - - @current_instance_id.setter - def current_instance_id(self, current_instance_id): - """Sets the current_instance_id of this ShowApplicationResponse. - - 当前实例ID。 - - :param current_instance_id: The current_instance_id of this ShowApplicationResponse. - :type: str - """ - self._current_instance_id = current_instance_id - - @property - def service_name(self): - """Gets the service_name of this ShowApplicationResponse. - - 对接的服务名 - - :return: The service_name of this ShowApplicationResponse. - :rtype: str - """ - return self._service_name - - @service_name.setter - def service_name(self, service_name): - """Sets the service_name of this ShowApplicationResponse. - - 对接的服务名 - - :param service_name: The service_name of this ShowApplicationResponse. - :type: str - """ - self._service_name = service_name - - @property - def freezed(self): - """Gets the freezed of this ShowApplicationResponse. - - 是否冻结 - - :return: The freezed of this ShowApplicationResponse. - :rtype: bool - """ - return self._freezed - - @freezed.setter - def freezed(self, freezed): - """Sets the freezed of this ShowApplicationResponse. - - 是否冻结 - - :param freezed: The freezed of this ShowApplicationResponse. - :type: bool - """ - self._freezed = freezed - - @property - def request_instance_id(self): - """Gets the request_instance_id of this ShowApplicationResponse. - - 调用接口所属instanceId - - :return: The request_instance_id of this ShowApplicationResponse. - :rtype: str - """ - return self._request_instance_id - - @request_instance_id.setter - def request_instance_id(self, request_instance_id): - """Sets the request_instance_id of this ShowApplicationResponse. - - 调用接口所属instanceId - - :param request_instance_id: The request_instance_id of this ShowApplicationResponse. - :type: str - """ - self._request_instance_id = request_instance_id - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_rule_action_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_rule_action_response.py index 7d74973008..95b33fdb5f 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_rule_action_response.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_rule_action_response.py @@ -27,8 +27,7 @@ class ShowRuleActionResponse(SdkResponse): 'rule_id': 'str', 'app_id': 'str', 'channel': 'str', - 'channel_detail': 'ChannelDetail', - 'batch': 'bool' + 'channel_detail': 'ChannelDetail' } attribute_map = { @@ -36,11 +35,10 @@ class ShowRuleActionResponse(SdkResponse): 'rule_id': 'rule_id', 'app_id': 'app_id', 'channel': 'channel', - 'channel_detail': 'channel_detail', - 'batch': 'batch' + 'channel_detail': 'channel_detail' } - def __init__(self, action_id=None, rule_id=None, app_id=None, channel=None, channel_detail=None, batch=None): + def __init__(self, action_id=None, rule_id=None, app_id=None, channel=None, channel_detail=None): """ShowRuleActionResponse - a model defined in huaweicloud sdk""" super(ShowRuleActionResponse, self).__init__() @@ -50,7 +48,6 @@ def __init__(self, action_id=None, rule_id=None, app_id=None, channel=None, chan self._app_id = None self._channel = None self._channel_detail = None - self._batch = None self.discriminator = None if action_id is not None: @@ -63,8 +60,6 @@ def __init__(self, action_id=None, rule_id=None, app_id=None, channel=None, chan self.channel = channel if channel_detail is not None: self.channel_detail = channel_detail - if batch is not None: - self.batch = batch @property def action_id(self): @@ -174,28 +169,6 @@ def channel_detail(self, channel_detail): """ self._channel_detail = channel_detail - @property - def batch(self): - """Gets the batch of this ShowRuleActionResponse. - - 是否支持批量接收推送消息。 - - :return: The batch of this ShowRuleActionResponse. - :rtype: bool - """ - return self._batch - - @batch.setter - def batch(self, batch): - """Sets the batch of this ShowRuleActionResponse. - - 是否支持批量接收推送消息。 - - :param batch: The batch of this ShowRuleActionResponse. - :type: bool - """ - self._batch = batch - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_rule_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_rule_response.py index 91f91b68bc..6769c59841 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_rule_response.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_rule_response.py @@ -30,9 +30,7 @@ class ShowRuleResponse(SdkResponse): 'actions': 'list[RuleAction]', 'rule_type': 'str', 'status': 'str', - 'app_id': 'str', - 'edge_node_ids': 'list[str]', - 'last_update_time': 'str' + 'app_id': 'str' } attribute_map = { @@ -43,12 +41,10 @@ class ShowRuleResponse(SdkResponse): 'actions': 'actions', 'rule_type': 'rule_type', 'status': 'status', - 'app_id': 'app_id', - 'edge_node_ids': 'edge_node_ids', - 'last_update_time': 'last_update_time' + 'app_id': 'app_id' } - def __init__(self, rule_id=None, name=None, description=None, condition_group=None, actions=None, rule_type=None, status=None, app_id=None, edge_node_ids=None, last_update_time=None): + def __init__(self, rule_id=None, name=None, description=None, condition_group=None, actions=None, rule_type=None, status=None, app_id=None): """ShowRuleResponse - a model defined in huaweicloud sdk""" super(ShowRuleResponse, self).__init__() @@ -61,8 +57,6 @@ def __init__(self, rule_id=None, name=None, description=None, condition_group=No self._rule_type = None self._status = None self._app_id = None - self._edge_node_ids = None - self._last_update_time = None self.discriminator = None if rule_id is not None: @@ -81,10 +75,6 @@ def __init__(self, rule_id=None, name=None, description=None, condition_group=No self.status = status if app_id is not None: self.app_id = app_id - if edge_node_ids is not None: - self.edge_node_ids = edge_node_ids - if last_update_time is not None: - self.last_update_time = last_update_time @property def rule_id(self): @@ -260,50 +250,6 @@ def app_id(self, app_id): """ self._app_id = app_id - @property - def edge_node_ids(self): - """Gets the edge_node_ids of this ShowRuleResponse. - - 归属边缘侧节点设备ID列表。 - - :return: The edge_node_ids of this ShowRuleResponse. - :rtype: list[str] - """ - return self._edge_node_ids - - @edge_node_ids.setter - def edge_node_ids(self, edge_node_ids): - """Sets the edge_node_ids of this ShowRuleResponse. - - 归属边缘侧节点设备ID列表。 - - :param edge_node_ids: The edge_node_ids of this ShowRuleResponse. - :type: list[str] - """ - self._edge_node_ids = edge_node_ids - - @property - def last_update_time(self): - """Gets the last_update_time of this ShowRuleResponse. - - 规则最后更新时间,使用UTC时区,格式:yyyyMMdd'T'HHmmss'Z'。 - - :return: The last_update_time of this ShowRuleResponse. - :rtype: str - """ - return self._last_update_time - - @last_update_time.setter - def last_update_time(self, last_update_time): - """Sets the last_update_time of this ShowRuleResponse. - - 规则最后更新时间,使用UTC时区,格式:yyyyMMdd'T'HHmmss'Z'。 - - :param last_update_time: The last_update_time of this ShowRuleResponse. - :type: str - """ - self._last_update_time = last_update_time - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_action_req.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_action_req.py index c9c9cc417c..3d5a983983 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_action_req.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_action_req.py @@ -24,32 +24,27 @@ class UpdateActionReq: openapi_types = { 'channel': 'str', - 'channel_detail': 'ChannelDetail', - 'batch': 'bool' + 'channel_detail': 'ChannelDetail' } attribute_map = { 'channel': 'channel', - 'channel_detail': 'channel_detail', - 'batch': 'batch' + 'channel_detail': 'channel_detail' } - def __init__(self, channel=None, channel_detail=None, batch=None): + def __init__(self, channel=None, channel_detail=None): """UpdateActionReq - a model defined in huaweicloud sdk""" self._channel = None self._channel_detail = None - self._batch = None self.discriminator = None if channel is not None: self.channel = channel if channel_detail is not None: self.channel_detail = channel_detail - if batch is not None: - self.batch = batch @property def channel(self): @@ -93,28 +88,6 @@ def channel_detail(self, channel_detail): """ self._channel_detail = channel_detail - @property - def batch(self): - """Gets the batch of this UpdateActionReq. - - **参数说明**:是否支持批量接收推送消息。 - - :return: The batch of this UpdateActionReq. - :rtype: bool - """ - return self._batch - - @batch.setter - def batch(self, batch): - """Sets the batch of this UpdateActionReq. - - **参数说明**:是否支持批量接收推送消息。 - - :param batch: The batch of this UpdateActionReq. - :type: bool - """ - self._batch = batch - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_rule_action_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_rule_action_response.py index d98c07f1dd..b30b7b4b4a 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_rule_action_response.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_rule_action_response.py @@ -27,8 +27,7 @@ class UpdateRuleActionResponse(SdkResponse): 'rule_id': 'str', 'app_id': 'str', 'channel': 'str', - 'channel_detail': 'ChannelDetail', - 'batch': 'bool' + 'channel_detail': 'ChannelDetail' } attribute_map = { @@ -36,11 +35,10 @@ class UpdateRuleActionResponse(SdkResponse): 'rule_id': 'rule_id', 'app_id': 'app_id', 'channel': 'channel', - 'channel_detail': 'channel_detail', - 'batch': 'batch' + 'channel_detail': 'channel_detail' } - def __init__(self, action_id=None, rule_id=None, app_id=None, channel=None, channel_detail=None, batch=None): + def __init__(self, action_id=None, rule_id=None, app_id=None, channel=None, channel_detail=None): """UpdateRuleActionResponse - a model defined in huaweicloud sdk""" super(UpdateRuleActionResponse, self).__init__() @@ -50,7 +48,6 @@ def __init__(self, action_id=None, rule_id=None, app_id=None, channel=None, chan self._app_id = None self._channel = None self._channel_detail = None - self._batch = None self.discriminator = None if action_id is not None: @@ -63,8 +60,6 @@ def __init__(self, action_id=None, rule_id=None, app_id=None, channel=None, chan self.channel = channel if channel_detail is not None: self.channel_detail = channel_detail - if batch is not None: - self.batch = batch @property def action_id(self): @@ -174,28 +169,6 @@ def channel_detail(self, channel_detail): """ self._channel_detail = channel_detail - @property - def batch(self): - """Gets the batch of this UpdateRuleActionResponse. - - 是否支持批量接收推送消息。 - - :return: The batch of this UpdateRuleActionResponse. - :rtype: bool - """ - return self._batch - - @batch.setter - def batch(self, batch): - """Sets the batch of this UpdateRuleActionResponse. - - 是否支持批量接收推送消息。 - - :param batch: The batch of this UpdateRuleActionResponse. - :type: bool - """ - self._batch = batch - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_rule_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_rule_response.py index e93b09a083..b65d5ba224 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_rule_response.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_rule_response.py @@ -30,9 +30,7 @@ class UpdateRuleResponse(SdkResponse): 'actions': 'list[RuleAction]', 'rule_type': 'str', 'status': 'str', - 'app_id': 'str', - 'edge_node_ids': 'list[str]', - 'last_update_time': 'str' + 'app_id': 'str' } attribute_map = { @@ -43,12 +41,10 @@ class UpdateRuleResponse(SdkResponse): 'actions': 'actions', 'rule_type': 'rule_type', 'status': 'status', - 'app_id': 'app_id', - 'edge_node_ids': 'edge_node_ids', - 'last_update_time': 'last_update_time' + 'app_id': 'app_id' } - def __init__(self, rule_id=None, name=None, description=None, condition_group=None, actions=None, rule_type=None, status=None, app_id=None, edge_node_ids=None, last_update_time=None): + def __init__(self, rule_id=None, name=None, description=None, condition_group=None, actions=None, rule_type=None, status=None, app_id=None): """UpdateRuleResponse - a model defined in huaweicloud sdk""" super(UpdateRuleResponse, self).__init__() @@ -61,8 +57,6 @@ def __init__(self, rule_id=None, name=None, description=None, condition_group=No self._rule_type = None self._status = None self._app_id = None - self._edge_node_ids = None - self._last_update_time = None self.discriminator = None if rule_id is not None: @@ -81,10 +75,6 @@ def __init__(self, rule_id=None, name=None, description=None, condition_group=No self.status = status if app_id is not None: self.app_id = app_id - if edge_node_ids is not None: - self.edge_node_ids = edge_node_ids - if last_update_time is not None: - self.last_update_time = last_update_time @property def rule_id(self): @@ -260,50 +250,6 @@ def app_id(self, app_id): """ self._app_id = app_id - @property - def edge_node_ids(self): - """Gets the edge_node_ids of this UpdateRuleResponse. - - 归属边缘侧节点设备ID列表。 - - :return: The edge_node_ids of this UpdateRuleResponse. - :rtype: list[str] - """ - return self._edge_node_ids - - @edge_node_ids.setter - def edge_node_ids(self, edge_node_ids): - """Sets the edge_node_ids of this UpdateRuleResponse. - - 归属边缘侧节点设备ID列表。 - - :param edge_node_ids: The edge_node_ids of this UpdateRuleResponse. - :type: list[str] - """ - self._edge_node_ids = edge_node_ids - - @property - def last_update_time(self): - """Gets the last_update_time of this UpdateRuleResponse. - - 规则最后更新时间,使用UTC时区,格式:yyyyMMdd'T'HHmmss'Z'。 - - :return: The last_update_time of this UpdateRuleResponse. - :rtype: str - """ - return self._last_update_time - - @last_update_time.setter - def last_update_time(self, last_update_time): - """Sets the last_update_time of this UpdateRuleResponse. - - 规则最后更新时间,使用UTC时区,格式:yyyyMMdd'T'HHmmss'Z'。 - - :param last_update_time: The last_update_time of this UpdateRuleResponse. - :type: str - """ - self._last_update_time = last_update_time - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-iotda/setup.py b/huaweicloud-sdk-iotda/setup.py index 6a48af6947..5cdd281710 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "IoTDA"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-kafka/setup.py b/huaweicloud-sdk-kafka/setup.py index 7ccbf83fe3..688a8255e5 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "Kafka"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-kms/setup.py b/huaweicloud-sdk-kms/setup.py index 6cb20363e3..3592e1ad49 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "KMS"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-live/setup.py b/huaweicloud-sdk-live/setup.py index 56282d7169..a99d29c186 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "Live"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-lts/LICENSE b/huaweicloud-sdk-lts/LICENSE new file mode 100644 index 0000000000..808e3296c0 --- /dev/null +++ b/huaweicloud-sdk-lts/LICENSE @@ -0,0 +1,13 @@ +Copyright (c) Huawei Technologies Co., Ltd. 2020-present. All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. \ No newline at end of file diff --git a/huaweicloud-sdk-lts/README_PYPI.md b/huaweicloud-sdk-lts/README_PYPI.md new file mode 100644 index 0000000000..9711543c73 --- /dev/null +++ b/huaweicloud-sdk-lts/README_PYPI.md @@ -0,0 +1 @@ +See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3). \ No newline at end of file diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/__init__.py b/huaweicloud-sdk-lts/huaweicloudsdklts/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/__init__.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/__init__.py new file mode 100644 index 0000000000..ee30cf3a23 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/__init__.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +from __future__ import absolute_import + +# import LtsClient +from huaweicloudsdklts.v2.lts_client import LtsClient +from huaweicloudsdklts.v2.lts_async_client import LtsAsyncClient +# import models into sdk package +from huaweicloudsdklts.v2.model.create_log_dump_obs_request import CreateLogDumpObsRequest +from huaweicloudsdklts.v2.model.create_log_dump_obs_request_body import CreateLogDumpObsRequestBody +from huaweicloudsdklts.v2.model.create_log_dump_obs_response import CreateLogDumpObsResponse +from huaweicloudsdklts.v2.model.create_log_group_params import CreateLogGroupParams +from huaweicloudsdklts.v2.model.create_log_group_request import CreateLogGroupRequest +from huaweicloudsdklts.v2.model.create_log_group_response import CreateLogGroupResponse +from huaweicloudsdklts.v2.model.create_log_stream_params import CreateLogStreamParams +from huaweicloudsdklts.v2.model.create_log_stream_request import CreateLogStreamRequest +from huaweicloudsdklts.v2.model.create_log_stream_response import CreateLogStreamResponse +from huaweicloudsdklts.v2.model.delete_log_group_request import DeleteLogGroupRequest +from huaweicloudsdklts.v2.model.delete_log_group_response import DeleteLogGroupResponse +from huaweicloudsdklts.v2.model.delete_log_stream_request import DeleteLogStreamRequest +from huaweicloudsdklts.v2.model.delete_log_stream_response import DeleteLogStreamResponse +from huaweicloudsdklts.v2.model.disable_log_collection_request import DisableLogCollectionRequest +from huaweicloudsdklts.v2.model.disable_log_collection_response import DisableLogCollectionResponse +from huaweicloudsdklts.v2.model.enable_log_collection_request import EnableLogCollectionRequest +from huaweicloudsdklts.v2.model.enable_log_collection_response import EnableLogCollectionResponse +from huaweicloudsdklts.v2.model.list_log_groups_request import ListLogGroupsRequest +from huaweicloudsdklts.v2.model.list_log_groups_response import ListLogGroupsResponse +from huaweicloudsdklts.v2.model.list_log_stream_request import ListLogStreamRequest +from huaweicloudsdklts.v2.model.list_log_stream_response import ListLogStreamResponse +from huaweicloudsdklts.v2.model.log_contents import LogContents +from huaweicloudsdklts.v2.model.log_group import LogGroup +from huaweicloudsdklts.v2.model.log_stream import LogStream +from huaweicloudsdklts.v2.model.query_lts_log_params import QueryLTSLogParams +from huaweicloudsdklts.v2.model.query_lts_struct_log_params import QueryLTSStructLogParams +from huaweicloudsdklts.v2.model.query_lts_struct_log_params_new import QueryLTSStructLogParamsNew +from huaweicloudsdklts.v2.model.struct_log_contents import StructLogContents +from huaweicloudsdklts.v2.model.update_log_contents2_request import UpdateLogContents2Request +from huaweicloudsdklts.v2.model.update_log_contents2_response import UpdateLogContents2Response +from huaweicloudsdklts.v2.model.update_log_contents3_request import UpdateLogContents3Request +from huaweicloudsdklts.v2.model.update_log_contents3_response import UpdateLogContents3Response +from huaweicloudsdklts.v2.model.update_log_contents_request import UpdateLogContentsRequest +from huaweicloudsdklts.v2.model.update_log_contents_response import UpdateLogContentsResponse +from huaweicloudsdklts.v2.model.update_log_group_params import UpdateLogGroupParams +from huaweicloudsdklts.v2.model.update_log_group_request import UpdateLogGroupRequest +from huaweicloudsdklts.v2.model.update_log_group_response import UpdateLogGroupResponse + diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/lts_async_client.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/lts_async_client.py new file mode 100644 index 0000000000..5ac65573de --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/lts_async_client.py @@ -0,0 +1,917 @@ +# coding: utf-8 + +from __future__ import absolute_import + +import datetime +import re +import importlib + +import six + +from huaweicloudsdkcore.client import Client, ClientBuilder +from huaweicloudsdkcore.exceptions import exceptions +from huaweicloudsdkcore.utils import http_utils +from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest + + +class LtsAsyncClient(Client): + """ + :param configuration: .Configuration object for this client + :param pool_threads: The number of threads to use for async requests + to the API. More threads means more concurrent API requests. + """ + + PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int if six.PY3 else long, + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'object': object, + } + + def __init__(self): + super(LtsAsyncClient, self).__init__() + self.model_package = importlib.import_module("huaweicloudsdklts.v2.model") + self.preset_headers = {'User-Agent': 'HuaweiCloud-SDK-Python'} + + @classmethod + def new_builder(cls, clazz=None): + if clazz is None: + return ClientBuilder(cls) + + if clazz.__name__ != "LtsClient": + raise TypeError("client type error, support client type is LtsClient") + + return ClientBuilder(clazz) + + def create_log_dump_obs_async(self, request): + """日志转储 + + 该接口用于将指定的一个或多个日志流的日志转储到OBS服务。 + + :param CreateLogDumpObsRequest request + :return: CreateLogDumpObsResponse + """ + return self.create_log_dump_obs_with_http_info(request) + + def create_log_dump_obs_with_http_info(self, request): + """日志转储 + + 该接口用于将指定的一个或多个日志流的日志转储到OBS服务。 + + :param CreateLogDumpObsRequest request + :return: CreateLogDumpObsResponse + """ + + all_params = ['create_log_dump_obs_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/log-dump/obs', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateLogDumpObsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_log_group_async(self, request): + """创建日志组 + + 该接口用于创建一个日志组 + + :param CreateLogGroupRequest request + :return: CreateLogGroupResponse + """ + return self.create_log_group_with_http_info(request) + + def create_log_group_with_http_info(self, request): + """创建日志组 + + 该接口用于创建一个日志组 + + :param CreateLogGroupRequest request + :return: CreateLogGroupResponse + """ + + all_params = ['create_log_group_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/groups', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateLogGroupResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_log_stream_async(self, request): + """创建日志流 + + 该接口用于创建某个指定日志组下的日志流 + + :param CreateLogStreamRequest request + :return: CreateLogStreamResponse + """ + return self.create_log_stream_with_http_info(request) + + def create_log_stream_with_http_info(self, request): + """创建日志流 + + 该接口用于创建某个指定日志组下的日志流 + + :param CreateLogStreamRequest request + :return: CreateLogStreamResponse + """ + + all_params = ['log_group_id', 'create_log_stream_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'log_group_id' in local_var_params: + path_params['log_group_id'] = local_var_params['log_group_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/groups/{log_group_id}/streams', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateLogStreamResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_log_group_async(self, request): + """删除日志组 + + 该接口用于删除指定日志组。当日志组中的日志流配置了日志转储,需要取消日志转储后才可删除。 + + :param DeleteLogGroupRequest request + :return: DeleteLogGroupResponse + """ + return self.delete_log_group_with_http_info(request) + + def delete_log_group_with_http_info(self, request): + """删除日志组 + + 该接口用于删除指定日志组。当日志组中的日志流配置了日志转储,需要取消日志转储后才可删除。 + + :param DeleteLogGroupRequest request + :return: DeleteLogGroupResponse + """ + + all_params = ['log_group_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'log_group_id' in local_var_params: + path_params['log_group_id'] = local_var_params['log_group_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/groups/{log_group_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteLogGroupResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_log_stream_async(self, request): + """删除日志流 + + 该接口用于删除指定日志组下的指定日志流。当该日志流配置了日志转储,需要取消日志转储后才可删除。 + + :param DeleteLogStreamRequest request + :return: DeleteLogStreamResponse + """ + return self.delete_log_stream_with_http_info(request) + + def delete_log_stream_with_http_info(self, request): + """删除日志流 + + 该接口用于删除指定日志组下的指定日志流。当该日志流配置了日志转储,需要取消日志转储后才可删除。 + + :param DeleteLogStreamRequest request + :return: DeleteLogStreamResponse + """ + + all_params = ['log_group_id', 'log_stream_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'log_group_id' in local_var_params: + path_params['log_group_id'] = local_var_params['log_group_id'] + if 'log_stream_id' in local_var_params: + path_params['log_stream_id'] = local_var_params['log_stream_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteLogStreamResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def disable_log_collection_async(self, request): + """关闭超额采集开关 + + 该接口用于将超额采集日志功能关闭。 + + :param DisableLogCollectionRequest request + :return: DisableLogCollectionResponse + """ + return self.disable_log_collection_with_http_info(request) + + def disable_log_collection_with_http_info(self, request): + """关闭超额采集开关 + + 该接口用于将超额采集日志功能关闭。 + + :param DisableLogCollectionRequest request + :return: DisableLogCollectionResponse + """ + + all_params = [] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/collection/disable', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DisableLogCollectionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def enable_log_collection_async(self, request): + """打开超额采集开关 + + 该接口用于将超额采集日志功能打开。 + + :param EnableLogCollectionRequest request + :return: EnableLogCollectionResponse + """ + return self.enable_log_collection_with_http_info(request) + + def enable_log_collection_with_http_info(self, request): + """打开超额采集开关 + + 该接口用于将超额采集日志功能打开。 + + :param EnableLogCollectionRequest request + :return: EnableLogCollectionResponse + """ + + all_params = [] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/collection/enable', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='EnableLogCollectionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_log_groups_async(self, request): + """查询账号下所有日志组 + + 该接口用于查询账号下所有日志组。 + + :param ListLogGroupsRequest request + :return: ListLogGroupsResponse + """ + return self.list_log_groups_with_http_info(request) + + def list_log_groups_with_http_info(self, request): + """查询账号下所有日志组 + + 该接口用于查询账号下所有日志组。 + + :param ListLogGroupsRequest request + :return: ListLogGroupsResponse + """ + + all_params = [] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/groups', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListLogGroupsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_log_stream_async(self, request): + """查询指定日志组下的所有日志流 + + 该接口用于查询指定日志组下的所有日志流信息。 + + :param ListLogStreamRequest request + :return: ListLogStreamResponse + """ + return self.list_log_stream_with_http_info(request) + + def list_log_stream_with_http_info(self, request): + """查询指定日志组下的所有日志流 + + 该接口用于查询指定日志组下的所有日志流信息。 + + :param ListLogStreamRequest request + :return: ListLogStreamResponse + """ + + all_params = ['log_group_id', 'tag'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'log_group_id' in local_var_params: + path_params['log_group_id'] = local_var_params['log_group_id'] + + query_params = [] + if 'tag' in local_var_params: + query_params.append(('tag', local_var_params['tag'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/groups/{log_group_id}/streams', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListLogStreamResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_log_contents_async(self, request): + """查询日志 + + 该接口用于查询指定日志流下的日志内容。 + + :param UpdateLogContentsRequest request + :return: UpdateLogContentsResponse + """ + return self.update_log_contents_with_http_info(request) + + def update_log_contents_with_http_info(self, request): + """查询日志 + + 该接口用于查询指定日志流下的日志内容。 + + :param UpdateLogContentsRequest request + :return: UpdateLogContentsResponse + """ + + all_params = ['log_group_id', 'log_stream_id', 'update_log_contents_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'log_group_id' in local_var_params: + path_params['log_group_id'] = local_var_params['log_group_id'] + if 'log_stream_id' in local_var_params: + path_params['log_stream_id'] = local_var_params['log_stream_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/content/query', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateLogContentsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_log_contents2_async(self, request): + """查询结构化日志 + + 该接口用于查询指定日志流下的结构化日志内容。 + + :param UpdateLogContents2Request request + :return: UpdateLogContents2Response + """ + return self.update_log_contents2_with_http_info(request) + + def update_log_contents2_with_http_info(self, request): + """查询结构化日志 + + 该接口用于查询指定日志流下的结构化日志内容。 + + :param UpdateLogContents2Request request + :return: UpdateLogContents2Response + """ + + all_params = ['log_group_id', 'log_stream_id', 'update_log_contents2_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'log_group_id' in local_var_params: + path_params['log_group_id'] = local_var_params['log_group_id'] + if 'log_stream_id' in local_var_params: + path_params['log_stream_id'] = local_var_params['log_stream_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/struct-content/query', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateLogContents2Response', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_log_contents3_async(self, request): + """查询结构化日志(新版) + + 该接口用于查询指定日志流下的结构化日志内容(新版)。 + + :param UpdateLogContents3Request request + :return: UpdateLogContents3Response + """ + return self.update_log_contents3_with_http_info(request) + + def update_log_contents3_with_http_info(self, request): + """查询结构化日志(新版) + + 该接口用于查询指定日志流下的结构化日志内容(新版)。 + + :param UpdateLogContents3Request request + :return: UpdateLogContents3Response + """ + + all_params = ['log_stream_id', 'update_log_contents3_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'log_stream_id' in local_var_params: + path_params['log_stream_id'] = local_var_params['log_stream_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/streams/{log_stream_id}/struct-content/query', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateLogContents3Response', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_log_group_async(self, request): + """修改日志组 + + 该接口用于修改指定日志组下的日志存储时长。 + + :param UpdateLogGroupRequest request + :return: UpdateLogGroupResponse + """ + return self.update_log_group_with_http_info(request) + + def update_log_group_with_http_info(self, request): + """修改日志组 + + 该接口用于修改指定日志组下的日志存储时长。 + + :param UpdateLogGroupRequest request + :return: UpdateLogGroupResponse + """ + + all_params = ['log_group_id', 'update_log_group_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'log_group_id' in local_var_params: + path_params['log_group_id'] = local_var_params['log_group_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/groups/{log_group_id}', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateLogGroupResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, + post_params=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 dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: 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, + response_type=response_type, + response_headers=response_headers, + collection_formats=collection_formats, + request_type=request_type, + async_request=True) diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/lts_client.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/lts_client.py new file mode 100644 index 0000000000..fa68f37072 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/lts_client.py @@ -0,0 +1,915 @@ +# coding: utf-8 + +from __future__ import absolute_import + +import datetime +import re +import importlib + +import six + +from huaweicloudsdkcore.client import Client, ClientBuilder +from huaweicloudsdkcore.exceptions import exceptions +from huaweicloudsdkcore.utils import http_utils +from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest + + +class LtsClient(Client): + """ + :param configuration: .Configuration object for this client + :param pool_threads: The number of threads to use for async requests + to the API. More threads means more concurrent API requests. + """ + + PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int if six.PY3 else long, + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'object': object, + } + + def __init__(self): + super(LtsClient, self).__init__() + self.model_package = importlib.import_module("huaweicloudsdklts.v2.model") + self.preset_headers = {'User-Agent': 'HuaweiCloud-SDK-Python'} + + @classmethod + def new_builder(cls, clazz=None): + if clazz is None: + return ClientBuilder(cls) + + if clazz.__name__ != "LtsClient": + raise TypeError("client type error, support client type is LtsClient") + + return ClientBuilder(clazz) + + def create_log_dump_obs(self, request): + """日志转储 + + 该接口用于将指定的一个或多个日志流的日志转储到OBS服务。 + + :param CreateLogDumpObsRequest request + :return: CreateLogDumpObsResponse + """ + return self.create_log_dump_obs_with_http_info(request) + + def create_log_dump_obs_with_http_info(self, request): + """日志转储 + + 该接口用于将指定的一个或多个日志流的日志转储到OBS服务。 + + :param CreateLogDumpObsRequest request + :return: CreateLogDumpObsResponse + """ + + all_params = ['create_log_dump_obs_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/log-dump/obs', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateLogDumpObsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_log_group(self, request): + """创建日志组 + + 该接口用于创建一个日志组 + + :param CreateLogGroupRequest request + :return: CreateLogGroupResponse + """ + return self.create_log_group_with_http_info(request) + + def create_log_group_with_http_info(self, request): + """创建日志组 + + 该接口用于创建一个日志组 + + :param CreateLogGroupRequest request + :return: CreateLogGroupResponse + """ + + all_params = ['create_log_group_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/groups', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateLogGroupResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_log_stream(self, request): + """创建日志流 + + 该接口用于创建某个指定日志组下的日志流 + + :param CreateLogStreamRequest request + :return: CreateLogStreamResponse + """ + return self.create_log_stream_with_http_info(request) + + def create_log_stream_with_http_info(self, request): + """创建日志流 + + 该接口用于创建某个指定日志组下的日志流 + + :param CreateLogStreamRequest request + :return: CreateLogStreamResponse + """ + + all_params = ['log_group_id', 'create_log_stream_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'log_group_id' in local_var_params: + path_params['log_group_id'] = local_var_params['log_group_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/groups/{log_group_id}/streams', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateLogStreamResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_log_group(self, request): + """删除日志组 + + 该接口用于删除指定日志组。当日志组中的日志流配置了日志转储,需要取消日志转储后才可删除。 + + :param DeleteLogGroupRequest request + :return: DeleteLogGroupResponse + """ + return self.delete_log_group_with_http_info(request) + + def delete_log_group_with_http_info(self, request): + """删除日志组 + + 该接口用于删除指定日志组。当日志组中的日志流配置了日志转储,需要取消日志转储后才可删除。 + + :param DeleteLogGroupRequest request + :return: DeleteLogGroupResponse + """ + + all_params = ['log_group_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'log_group_id' in local_var_params: + path_params['log_group_id'] = local_var_params['log_group_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/groups/{log_group_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteLogGroupResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_log_stream(self, request): + """删除日志流 + + 该接口用于删除指定日志组下的指定日志流。当该日志流配置了日志转储,需要取消日志转储后才可删除。 + + :param DeleteLogStreamRequest request + :return: DeleteLogStreamResponse + """ + return self.delete_log_stream_with_http_info(request) + + def delete_log_stream_with_http_info(self, request): + """删除日志流 + + 该接口用于删除指定日志组下的指定日志流。当该日志流配置了日志转储,需要取消日志转储后才可删除。 + + :param DeleteLogStreamRequest request + :return: DeleteLogStreamResponse + """ + + all_params = ['log_group_id', 'log_stream_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'log_group_id' in local_var_params: + path_params['log_group_id'] = local_var_params['log_group_id'] + if 'log_stream_id' in local_var_params: + path_params['log_stream_id'] = local_var_params['log_stream_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteLogStreamResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def disable_log_collection(self, request): + """关闭超额采集开关 + + 该接口用于将超额采集日志功能关闭。 + + :param DisableLogCollectionRequest request + :return: DisableLogCollectionResponse + """ + return self.disable_log_collection_with_http_info(request) + + def disable_log_collection_with_http_info(self, request): + """关闭超额采集开关 + + 该接口用于将超额采集日志功能关闭。 + + :param DisableLogCollectionRequest request + :return: DisableLogCollectionResponse + """ + + all_params = [] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/collection/disable', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DisableLogCollectionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def enable_log_collection(self, request): + """打开超额采集开关 + + 该接口用于将超额采集日志功能打开。 + + :param EnableLogCollectionRequest request + :return: EnableLogCollectionResponse + """ + return self.enable_log_collection_with_http_info(request) + + def enable_log_collection_with_http_info(self, request): + """打开超额采集开关 + + 该接口用于将超额采集日志功能打开。 + + :param EnableLogCollectionRequest request + :return: EnableLogCollectionResponse + """ + + all_params = [] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/collection/enable', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='EnableLogCollectionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_log_groups(self, request): + """查询账号下所有日志组 + + 该接口用于查询账号下所有日志组。 + + :param ListLogGroupsRequest request + :return: ListLogGroupsResponse + """ + return self.list_log_groups_with_http_info(request) + + def list_log_groups_with_http_info(self, request): + """查询账号下所有日志组 + + 该接口用于查询账号下所有日志组。 + + :param ListLogGroupsRequest request + :return: ListLogGroupsResponse + """ + + all_params = [] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/groups', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListLogGroupsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_log_stream(self, request): + """查询指定日志组下的所有日志流 + + 该接口用于查询指定日志组下的所有日志流信息。 + + :param ListLogStreamRequest request + :return: ListLogStreamResponse + """ + return self.list_log_stream_with_http_info(request) + + def list_log_stream_with_http_info(self, request): + """查询指定日志组下的所有日志流 + + 该接口用于查询指定日志组下的所有日志流信息。 + + :param ListLogStreamRequest request + :return: ListLogStreamResponse + """ + + all_params = ['log_group_id', 'tag'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'log_group_id' in local_var_params: + path_params['log_group_id'] = local_var_params['log_group_id'] + + query_params = [] + if 'tag' in local_var_params: + query_params.append(('tag', local_var_params['tag'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/groups/{log_group_id}/streams', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListLogStreamResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_log_contents(self, request): + """查询日志 + + 该接口用于查询指定日志流下的日志内容。 + + :param UpdateLogContentsRequest request + :return: UpdateLogContentsResponse + """ + return self.update_log_contents_with_http_info(request) + + def update_log_contents_with_http_info(self, request): + """查询日志 + + 该接口用于查询指定日志流下的日志内容。 + + :param UpdateLogContentsRequest request + :return: UpdateLogContentsResponse + """ + + all_params = ['log_group_id', 'log_stream_id', 'update_log_contents_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'log_group_id' in local_var_params: + path_params['log_group_id'] = local_var_params['log_group_id'] + if 'log_stream_id' in local_var_params: + path_params['log_stream_id'] = local_var_params['log_stream_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/content/query', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateLogContentsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_log_contents2(self, request): + """查询结构化日志 + + 该接口用于查询指定日志流下的结构化日志内容。 + + :param UpdateLogContents2Request request + :return: UpdateLogContents2Response + """ + return self.update_log_contents2_with_http_info(request) + + def update_log_contents2_with_http_info(self, request): + """查询结构化日志 + + 该接口用于查询指定日志流下的结构化日志内容。 + + :param UpdateLogContents2Request request + :return: UpdateLogContents2Response + """ + + all_params = ['log_group_id', 'log_stream_id', 'update_log_contents2_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'log_group_id' in local_var_params: + path_params['log_group_id'] = local_var_params['log_group_id'] + if 'log_stream_id' in local_var_params: + path_params['log_stream_id'] = local_var_params['log_stream_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/struct-content/query', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateLogContents2Response', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_log_contents3(self, request): + """查询结构化日志(新版) + + 该接口用于查询指定日志流下的结构化日志内容(新版)。 + + :param UpdateLogContents3Request request + :return: UpdateLogContents3Response + """ + return self.update_log_contents3_with_http_info(request) + + def update_log_contents3_with_http_info(self, request): + """查询结构化日志(新版) + + 该接口用于查询指定日志流下的结构化日志内容(新版)。 + + :param UpdateLogContents3Request request + :return: UpdateLogContents3Response + """ + + all_params = ['log_stream_id', 'update_log_contents3_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'log_stream_id' in local_var_params: + path_params['log_stream_id'] = local_var_params['log_stream_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/streams/{log_stream_id}/struct-content/query', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateLogContents3Response', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_log_group(self, request): + """修改日志组 + + 该接口用于修改指定日志组下的日志存储时长。 + + :param UpdateLogGroupRequest request + :return: UpdateLogGroupResponse + """ + return self.update_log_group_with_http_info(request) + + def update_log_group_with_http_info(self, request): + """修改日志组 + + 该接口用于修改指定日志组下的日志存储时长。 + + :param UpdateLogGroupRequest request + :return: UpdateLogGroupResponse + """ + + all_params = ['log_group_id', 'update_log_group_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'log_group_id' in local_var_params: + path_params['log_group_id'] = local_var_params['log_group_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/groups/{log_group_id}', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateLogGroupResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, + post_params=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 dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: 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, + response_type=response_type, + response_headers=response_headers, + collection_formats=collection_formats, + request_type=request_type) diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/__init__.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/__init__.py new file mode 100644 index 0000000000..2a70dde128 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/__init__.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +from __future__ import absolute_import + +# import models into model package +from huaweicloudsdklts.v2.model.create_log_dump_obs_request import CreateLogDumpObsRequest +from huaweicloudsdklts.v2.model.create_log_dump_obs_request_body import CreateLogDumpObsRequestBody +from huaweicloudsdklts.v2.model.create_log_dump_obs_response import CreateLogDumpObsResponse +from huaweicloudsdklts.v2.model.create_log_group_params import CreateLogGroupParams +from huaweicloudsdklts.v2.model.create_log_group_request import CreateLogGroupRequest +from huaweicloudsdklts.v2.model.create_log_group_response import CreateLogGroupResponse +from huaweicloudsdklts.v2.model.create_log_stream_params import CreateLogStreamParams +from huaweicloudsdklts.v2.model.create_log_stream_request import CreateLogStreamRequest +from huaweicloudsdklts.v2.model.create_log_stream_response import CreateLogStreamResponse +from huaweicloudsdklts.v2.model.delete_log_group_request import DeleteLogGroupRequest +from huaweicloudsdklts.v2.model.delete_log_group_response import DeleteLogGroupResponse +from huaweicloudsdklts.v2.model.delete_log_stream_request import DeleteLogStreamRequest +from huaweicloudsdklts.v2.model.delete_log_stream_response import DeleteLogStreamResponse +from huaweicloudsdklts.v2.model.disable_log_collection_request import DisableLogCollectionRequest +from huaweicloudsdklts.v2.model.disable_log_collection_response import DisableLogCollectionResponse +from huaweicloudsdklts.v2.model.enable_log_collection_request import EnableLogCollectionRequest +from huaweicloudsdklts.v2.model.enable_log_collection_response import EnableLogCollectionResponse +from huaweicloudsdklts.v2.model.list_log_groups_request import ListLogGroupsRequest +from huaweicloudsdklts.v2.model.list_log_groups_response import ListLogGroupsResponse +from huaweicloudsdklts.v2.model.list_log_stream_request import ListLogStreamRequest +from huaweicloudsdklts.v2.model.list_log_stream_response import ListLogStreamResponse +from huaweicloudsdklts.v2.model.log_contents import LogContents +from huaweicloudsdklts.v2.model.log_group import LogGroup +from huaweicloudsdklts.v2.model.log_stream import LogStream +from huaweicloudsdklts.v2.model.query_lts_log_params import QueryLTSLogParams +from huaweicloudsdklts.v2.model.query_lts_struct_log_params import QueryLTSStructLogParams +from huaweicloudsdklts.v2.model.query_lts_struct_log_params_new import QueryLTSStructLogParamsNew +from huaweicloudsdklts.v2.model.struct_log_contents import StructLogContents +from huaweicloudsdklts.v2.model.update_log_contents2_request import UpdateLogContents2Request +from huaweicloudsdklts.v2.model.update_log_contents2_response import UpdateLogContents2Response +from huaweicloudsdklts.v2.model.update_log_contents3_request import UpdateLogContents3Request +from huaweicloudsdklts.v2.model.update_log_contents3_response import UpdateLogContents3Response +from huaweicloudsdklts.v2.model.update_log_contents_request import UpdateLogContentsRequest +from huaweicloudsdklts.v2.model.update_log_contents_response import UpdateLogContentsResponse +from huaweicloudsdklts.v2.model.update_log_group_params import UpdateLogGroupParams +from huaweicloudsdklts.v2.model.update_log_group_request import UpdateLogGroupRequest +from huaweicloudsdklts.v2.model.update_log_group_response import UpdateLogGroupResponse diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_log_dump_obs_request.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_log_dump_obs_request.py new file mode 100644 index 0000000000..bca629297c --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_log_dump_obs_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateLogDumpObsRequest: + + + """ + 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': 'CreateLogDumpObsRequestBody' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateLogDumpObsRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateLogDumpObsRequest. + + + :return: The body of this CreateLogDumpObsRequest. + :rtype: CreateLogDumpObsRequestBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateLogDumpObsRequest. + + + :param body: The body of this CreateLogDumpObsRequest. + :type: CreateLogDumpObsRequestBody + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateLogDumpObsRequest): + 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-lts/huaweicloudsdklts/v2/model/create_log_dump_obs_request_body.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_log_dump_obs_request_body.py new file mode 100644 index 0000000000..b81bc5babd --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_log_dump_obs_request_body.py @@ -0,0 +1,346 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateLogDumpObsRequestBody: + + + """ + 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 = { + 'log_group_id': 'str', + 'log_stream_ids': 'list[str]', + 'obs_bucket_name': 'str', + 'type': 'str', + 'storage_format': 'str', + 'switch_on': 'bool', + 'prefix_name': 'str', + 'dir_prefix_name': 'str', + 'period': 'int', + 'period_unit': 'str' + } + + attribute_map = { + 'log_group_id': 'log_group_id', + 'log_stream_ids': 'log_stream_ids', + 'obs_bucket_name': 'obs_bucket_name', + 'type': 'type', + 'storage_format': 'storage_format', + 'switch_on': 'switch_on', + 'prefix_name': 'prefix_name', + 'dir_prefix_name': 'dir_prefix_name', + 'period': 'period', + 'period_unit': 'period_unit' + } + + def __init__(self, log_group_id=None, log_stream_ids=None, obs_bucket_name=None, type=None, storage_format=None, switch_on=None, prefix_name=None, dir_prefix_name=None, period=None, period_unit=None): + """CreateLogDumpObsRequestBody - a model defined in huaweicloud sdk""" + + + + self._log_group_id = None + self._log_stream_ids = None + self._obs_bucket_name = None + self._type = None + self._storage_format = None + self._switch_on = None + self._prefix_name = None + self._dir_prefix_name = None + self._period = None + self._period_unit = None + self.discriminator = None + + self.log_group_id = log_group_id + self.log_stream_ids = log_stream_ids + self.obs_bucket_name = obs_bucket_name + self.type = type + self.storage_format = storage_format + if switch_on is not None: + self.switch_on = switch_on + if prefix_name is not None: + self.prefix_name = prefix_name + if dir_prefix_name is not None: + self.dir_prefix_name = dir_prefix_name + self.period = period + self.period_unit = period_unit + + @property + def log_group_id(self): + """Gets the log_group_id of this CreateLogDumpObsRequestBody. + + 日志组id。 + + :return: The log_group_id of this CreateLogDumpObsRequestBody. + :rtype: str + """ + return self._log_group_id + + @log_group_id.setter + def log_group_id(self, log_group_id): + """Sets the log_group_id of this CreateLogDumpObsRequestBody. + + 日志组id。 + + :param log_group_id: The log_group_id of this CreateLogDumpObsRequestBody. + :type: str + """ + self._log_group_id = log_group_id + + @property + def log_stream_ids(self): + """Gets the log_stream_ids of this CreateLogDumpObsRequestBody. + + 日志流id列表, 可以指定一个或多个日志流进行obs周期性转储 + + :return: The log_stream_ids of this CreateLogDumpObsRequestBody. + :rtype: list[str] + """ + return self._log_stream_ids + + @log_stream_ids.setter + def log_stream_ids(self, log_stream_ids): + """Sets the log_stream_ids of this CreateLogDumpObsRequestBody. + + 日志流id列表, 可以指定一个或多个日志流进行obs周期性转储 + + :param log_stream_ids: The log_stream_ids of this CreateLogDumpObsRequestBody. + :type: list[str] + """ + self._log_stream_ids = log_stream_ids + + @property + def obs_bucket_name(self): + """Gets the obs_bucket_name of this CreateLogDumpObsRequestBody. + + obs 桶名称。 + + :return: The obs_bucket_name of this CreateLogDumpObsRequestBody. + :rtype: str + """ + return self._obs_bucket_name + + @obs_bucket_name.setter + def obs_bucket_name(self, obs_bucket_name): + """Sets the obs_bucket_name of this CreateLogDumpObsRequestBody. + + obs 桶名称。 + + :param obs_bucket_name: The obs_bucket_name of this CreateLogDumpObsRequestBody. + :type: str + """ + self._obs_bucket_name = obs_bucket_name + + @property + def type(self): + """Gets the type of this CreateLogDumpObsRequestBody. + + 周期性转储, 必须填 cycle。 + + :return: The type of this CreateLogDumpObsRequestBody. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CreateLogDumpObsRequestBody. + + 周期性转储, 必须填 cycle。 + + :param type: The type of this CreateLogDumpObsRequestBody. + :type: str + """ + self._type = type + + @property + def storage_format(self): + """Gets the storage_format of this CreateLogDumpObsRequestBody. + + 转储格式 RAW/JSON, 默认为 RAW。 + + :return: The storage_format of this CreateLogDumpObsRequestBody. + :rtype: str + """ + return self._storage_format + + @storage_format.setter + def storage_format(self, storage_format): + """Sets the storage_format of this CreateLogDumpObsRequestBody. + + 转储格式 RAW/JSON, 默认为 RAW。 + + :param storage_format: The storage_format of this CreateLogDumpObsRequestBody. + :type: str + """ + self._storage_format = storage_format + + @property + def switch_on(self): + """Gets the switch_on of this CreateLogDumpObsRequestBody. + + 是否开启转储 true/false, 默认为 true + + :return: The switch_on of this CreateLogDumpObsRequestBody. + :rtype: bool + """ + return self._switch_on + + @switch_on.setter + def switch_on(self, switch_on): + """Sets the switch_on of this CreateLogDumpObsRequestBody. + + 是否开启转储 true/false, 默认为 true + + :param switch_on: The switch_on of this CreateLogDumpObsRequestBody. + :type: bool + """ + self._switch_on = switch_on + + @property + def prefix_name(self): + """Gets the prefix_name of this CreateLogDumpObsRequestBody. + + 转储至OBS桶中的日志文件前缀。 + + :return: The prefix_name of this CreateLogDumpObsRequestBody. + :rtype: str + """ + return self._prefix_name + + @prefix_name.setter + def prefix_name(self, prefix_name): + """Sets the prefix_name of this CreateLogDumpObsRequestBody. + + 转储至OBS桶中的日志文件前缀。 + + :param prefix_name: The prefix_name of this CreateLogDumpObsRequestBody. + :type: str + """ + self._prefix_name = prefix_name + + @property + def dir_prefix_name(self): + """Gets the dir_prefix_name of this CreateLogDumpObsRequestBody. + + 自定义文件夹路径。 + + :return: The dir_prefix_name of this CreateLogDumpObsRequestBody. + :rtype: str + """ + return self._dir_prefix_name + + @dir_prefix_name.setter + def dir_prefix_name(self, dir_prefix_name): + """Sets the dir_prefix_name of this CreateLogDumpObsRequestBody. + + 自定义文件夹路径。 + + :param dir_prefix_name: The dir_prefix_name of this CreateLogDumpObsRequestBody. + :type: str + """ + self._dir_prefix_name = dir_prefix_name + + @property + def period(self): + """Gets the period of this CreateLogDumpObsRequestBody. + + 转储周期的长度, 与 period_unit 拼接后必须在该列表中 [\"2min\",\"5min\",\"30min\",\"1hour\",\"3hour\",\"6hour\",\"12hour\"]。 + + :return: The period of this CreateLogDumpObsRequestBody. + :rtype: int + """ + return self._period + + @period.setter + def period(self, period): + """Sets the period of this CreateLogDumpObsRequestBody. + + 转储周期的长度, 与 period_unit 拼接后必须在该列表中 [\"2min\",\"5min\",\"30min\",\"1hour\",\"3hour\",\"6hour\",\"12hour\"]。 + + :param period: The period of this CreateLogDumpObsRequestBody. + :type: int + """ + self._period = period + + @property + def period_unit(self): + """Gets the period_unit of this CreateLogDumpObsRequestBody. + + 转储周期的单位, 与 period 拼接后必须在该列表中 [\"2min\",\"5min\",\"30min\",\"1hour\",\"3hour\",\"6hour\",\"12hour\"]。 + + :return: The period_unit of this CreateLogDumpObsRequestBody. + :rtype: str + """ + return self._period_unit + + @period_unit.setter + def period_unit(self, period_unit): + """Sets the period_unit of this CreateLogDumpObsRequestBody. + + 转储周期的单位, 与 period 拼接后必须在该列表中 [\"2min\",\"5min\",\"30min\",\"1hour\",\"3hour\",\"6hour\",\"12hour\"]。 + + :param period_unit: The period_unit of this CreateLogDumpObsRequestBody. + :type: str + """ + self._period_unit = period_unit + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateLogDumpObsRequestBody): + 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-lts/huaweicloudsdklts/v2/model/create_log_dump_obs_response.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_log_dump_obs_response.py new file mode 100644 index 0000000000..fa8b806329 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_log_dump_obs_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class CreateLogDumpObsResponse(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 = { + 'log_dump_obs_id': 'str' + } + + attribute_map = { + 'log_dump_obs_id': 'log_dump_obs_id' + } + + def __init__(self, log_dump_obs_id=None): + """CreateLogDumpObsResponse - a model defined in huaweicloud sdk""" + + super(CreateLogDumpObsResponse, self).__init__() + + self._log_dump_obs_id = None + self.discriminator = None + + if log_dump_obs_id is not None: + self.log_dump_obs_id = log_dump_obs_id + + @property + def log_dump_obs_id(self): + """Gets the log_dump_obs_id of this CreateLogDumpObsResponse. + + 转储id。 + + :return: The log_dump_obs_id of this CreateLogDumpObsResponse. + :rtype: str + """ + return self._log_dump_obs_id + + @log_dump_obs_id.setter + def log_dump_obs_id(self, log_dump_obs_id): + """Sets the log_dump_obs_id of this CreateLogDumpObsResponse. + + 转储id。 + + :param log_dump_obs_id: The log_dump_obs_id of this CreateLogDumpObsResponse. + :type: str + """ + self._log_dump_obs_id = log_dump_obs_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateLogDumpObsResponse): + 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-lts/huaweicloudsdklts/v2/model/create_log_group_params.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_log_group_params.py new file mode 100644 index 0000000000..7fbb8c37ca --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_log_group_params.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateLogGroupParams: + + + """ + 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 = { + 'log_group_name': 'str', + 'ttl_in_days': 'int' + } + + attribute_map = { + 'log_group_name': 'log_group_name', + 'ttl_in_days': 'ttl_in_days' + } + + def __init__(self, log_group_name=None, ttl_in_days=None): + """CreateLogGroupParams - a model defined in huaweicloud sdk""" + + + + self._log_group_name = None + self._ttl_in_days = None + self.discriminator = None + + self.log_group_name = log_group_name + self.ttl_in_days = ttl_in_days + + @property + def log_group_name(self): + """Gets the log_group_name of this CreateLogGroupParams. + + 需要创建的日志组名称。 + + :return: The log_group_name of this CreateLogGroupParams. + :rtype: str + """ + return self._log_group_name + + @log_group_name.setter + def log_group_name(self, log_group_name): + """Sets the log_group_name of this CreateLogGroupParams. + + 需要创建的日志组名称。 + + :param log_group_name: The log_group_name of this CreateLogGroupParams. + :type: str + """ + self._log_group_name = log_group_name + + @property + def ttl_in_days(self): + """Gets the ttl_in_days of this CreateLogGroupParams. + + 日志存储时间(天),取值范围:1-30。 + + :return: The ttl_in_days of this CreateLogGroupParams. + :rtype: int + """ + return self._ttl_in_days + + @ttl_in_days.setter + def ttl_in_days(self, ttl_in_days): + """Sets the ttl_in_days of this CreateLogGroupParams. + + 日志存储时间(天),取值范围:1-30。 + + :param ttl_in_days: The ttl_in_days of this CreateLogGroupParams. + :type: int + """ + self._ttl_in_days = ttl_in_days + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateLogGroupParams): + 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-lts/huaweicloudsdklts/v2/model/create_log_group_request.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_log_group_request.py new file mode 100644 index 0000000000..35a9fff0c5 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_log_group_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateLogGroupRequest: + + + """ + 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': 'CreateLogGroupParams' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateLogGroupRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateLogGroupRequest. + + + :return: The body of this CreateLogGroupRequest. + :rtype: CreateLogGroupParams + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateLogGroupRequest. + + + :param body: The body of this CreateLogGroupRequest. + :type: CreateLogGroupParams + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateLogGroupRequest): + 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-lts/huaweicloudsdklts/v2/model/create_log_group_response.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_log_group_response.py new file mode 100644 index 0000000000..e8dc5a9b28 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_log_group_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class CreateLogGroupResponse(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 = { + 'log_group_id': 'str' + } + + attribute_map = { + 'log_group_id': 'log_group_id' + } + + def __init__(self, log_group_id=None): + """CreateLogGroupResponse - a model defined in huaweicloud sdk""" + + super(CreateLogGroupResponse, self).__init__() + + self._log_group_id = None + self.discriminator = None + + if log_group_id is not None: + self.log_group_id = log_group_id + + @property + def log_group_id(self): + """Gets the log_group_id of this CreateLogGroupResponse. + + 创建的日志组的Id。 + + :return: The log_group_id of this CreateLogGroupResponse. + :rtype: str + """ + return self._log_group_id + + @log_group_id.setter + def log_group_id(self, log_group_id): + """Sets the log_group_id of this CreateLogGroupResponse. + + 创建的日志组的Id。 + + :param log_group_id: The log_group_id of this CreateLogGroupResponse. + :type: str + """ + self._log_group_id = log_group_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateLogGroupResponse): + 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-lts/huaweicloudsdklts/v2/model/create_log_stream_params.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_log_stream_params.py new file mode 100644 index 0000000000..bd27782f79 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_log_stream_params.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateLogStreamParams: + + + """ + 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 = { + 'log_stream_name': 'str', + 'tag': 'object' + } + + attribute_map = { + 'log_stream_name': 'log_stream_name', + 'tag': 'tag' + } + + def __init__(self, log_stream_name=None, tag=None): + """CreateLogStreamParams - a model defined in huaweicloud sdk""" + + + + self._log_stream_name = None + self._tag = None + self.discriminator = None + + self.log_stream_name = log_stream_name + if tag is not None: + self.tag = tag + + @property + def log_stream_name(self): + """Gets the log_stream_name of this CreateLogStreamParams. + + 需要创建的日志流名称。 + + :return: The log_stream_name of this CreateLogStreamParams. + :rtype: str + """ + return self._log_stream_name + + @log_stream_name.setter + def log_stream_name(self, log_stream_name): + """Sets the log_stream_name of this CreateLogStreamParams. + + 需要创建的日志流名称。 + + :param log_stream_name: The log_stream_name of this CreateLogStreamParams. + :type: str + """ + self._log_stream_name = log_stream_name + + @property + def tag(self): + """Gets the tag of this CreateLogStreamParams. + + 日志流Tag集合,不同日志流属性不同。 + + :return: The tag of this CreateLogStreamParams. + :rtype: object + """ + return self._tag + + @tag.setter + def tag(self, tag): + """Sets the tag of this CreateLogStreamParams. + + 日志流Tag集合,不同日志流属性不同。 + + :param tag: The tag of this CreateLogStreamParams. + :type: object + """ + self._tag = tag + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateLogStreamParams): + 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-lts/huaweicloudsdklts/v2/model/create_log_stream_request.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_log_stream_request.py new file mode 100644 index 0000000000..30e2fe3017 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_log_stream_request.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateLogStreamRequest: + + + """ + 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 = { + 'log_group_id': 'str', + 'body': 'CreateLogStreamParams' + } + + attribute_map = { + 'log_group_id': 'log_group_id', + 'body': 'body' + } + + def __init__(self, log_group_id=None, body=None): + """CreateLogStreamRequest - a model defined in huaweicloud sdk""" + + + + self._log_group_id = None + self._body = None + self.discriminator = None + + self.log_group_id = log_group_id + if body is not None: + self.body = body + + @property + def log_group_id(self): + """Gets the log_group_id of this CreateLogStreamRequest. + + 租户想创建的日志流所在的日志组的groupid,一般为36位字符串。 + + :return: The log_group_id of this CreateLogStreamRequest. + :rtype: str + """ + return self._log_group_id + + @log_group_id.setter + def log_group_id(self, log_group_id): + """Sets the log_group_id of this CreateLogStreamRequest. + + 租户想创建的日志流所在的日志组的groupid,一般为36位字符串。 + + :param log_group_id: The log_group_id of this CreateLogStreamRequest. + :type: str + """ + self._log_group_id = log_group_id + + @property + def body(self): + """Gets the body of this CreateLogStreamRequest. + + + :return: The body of this CreateLogStreamRequest. + :rtype: CreateLogStreamParams + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateLogStreamRequest. + + + :param body: The body of this CreateLogStreamRequest. + :type: CreateLogStreamParams + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateLogStreamRequest): + 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-lts/huaweicloudsdklts/v2/model/create_log_stream_response.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_log_stream_response.py new file mode 100644 index 0000000000..fd11f5cab8 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_log_stream_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class CreateLogStreamResponse(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 = { + 'log_stream_id': 'str' + } + + attribute_map = { + 'log_stream_id': 'log_stream_id' + } + + def __init__(self, log_stream_id=None): + """CreateLogStreamResponse - a model defined in huaweicloud sdk""" + + super(CreateLogStreamResponse, self).__init__() + + self._log_stream_id = None + self.discriminator = None + + if log_stream_id is not None: + self.log_stream_id = log_stream_id + + @property + def log_stream_id(self): + """Gets the log_stream_id of this CreateLogStreamResponse. + + 创建的日志流的Id。 + + :return: The log_stream_id of this CreateLogStreamResponse. + :rtype: str + """ + return self._log_stream_id + + @log_stream_id.setter + def log_stream_id(self, log_stream_id): + """Sets the log_stream_id of this CreateLogStreamResponse. + + 创建的日志流的Id。 + + :param log_stream_id: The log_stream_id of this CreateLogStreamResponse. + :type: str + """ + self._log_stream_id = log_stream_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateLogStreamResponse): + 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-lts/huaweicloudsdklts/v2/model/delete_log_group_request.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/delete_log_group_request.py new file mode 100644 index 0000000000..43873e4b96 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/delete_log_group_request.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class DeleteLogGroupRequest: + + + """ + 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 = { + 'log_group_id': 'str' + } + + attribute_map = { + 'log_group_id': 'log_group_id' + } + + def __init__(self, log_group_id=None): + """DeleteLogGroupRequest - a model defined in huaweicloud sdk""" + + + + self._log_group_id = None + self.discriminator = None + + self.log_group_id = log_group_id + + @property + def log_group_id(self): + """Gets the log_group_id of this DeleteLogGroupRequest. + + 日志组ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html) + + :return: The log_group_id of this DeleteLogGroupRequest. + :rtype: str + """ + return self._log_group_id + + @log_group_id.setter + def log_group_id(self, log_group_id): + """Sets the log_group_id of this DeleteLogGroupRequest. + + 日志组ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html) + + :param log_group_id: The log_group_id of this DeleteLogGroupRequest. + :type: str + """ + self._log_group_id = log_group_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteLogGroupRequest): + 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-lts/huaweicloudsdklts/v2/model/delete_log_group_response.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/delete_log_group_response.py new file mode 100644 index 0000000000..fded3dc8fe --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/delete_log_group_response.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class DeleteLogGroupResponse(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': 'str' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """DeleteLogGroupResponse - a model defined in huaweicloud sdk""" + + super(DeleteLogGroupResponse, 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 DeleteLogGroupResponse. + + + :return: The body of this DeleteLogGroupResponse. + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteLogGroupResponse. + + + :param body: The body of this DeleteLogGroupResponse. + :type: str + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteLogGroupResponse): + 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-lts/huaweicloudsdklts/v2/model/delete_log_stream_request.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/delete_log_stream_request.py new file mode 100644 index 0000000000..2d76e69a39 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/delete_log_stream_request.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class DeleteLogStreamRequest: + + + """ + 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 = { + 'log_group_id': 'str', + 'log_stream_id': 'str' + } + + attribute_map = { + 'log_group_id': 'log_group_id', + 'log_stream_id': 'log_stream_id' + } + + def __init__(self, log_group_id=None, log_stream_id=None): + """DeleteLogStreamRequest - a model defined in huaweicloud sdk""" + + + + self._log_group_id = None + self._log_stream_id = None + self.discriminator = None + + self.log_group_id = log_group_id + self.log_stream_id = log_stream_id + + @property + def log_group_id(self): + """Gets the log_group_id of this DeleteLogStreamRequest. + + 租户想删除的日志流所在的日志组的groupid,一般为36位字符串。 + + :return: The log_group_id of this DeleteLogStreamRequest. + :rtype: str + """ + return self._log_group_id + + @log_group_id.setter + def log_group_id(self, log_group_id): + """Sets the log_group_id of this DeleteLogStreamRequest. + + 租户想删除的日志流所在的日志组的groupid,一般为36位字符串。 + + :param log_group_id: The log_group_id of this DeleteLogStreamRequest. + :type: str + """ + self._log_group_id = log_group_id + + @property + def log_stream_id(self): + """Gets the log_stream_id of this DeleteLogStreamRequest. + + 需要删除的日志流ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。 + + :return: The log_stream_id of this DeleteLogStreamRequest. + :rtype: str + """ + return self._log_stream_id + + @log_stream_id.setter + def log_stream_id(self, log_stream_id): + """Sets the log_stream_id of this DeleteLogStreamRequest. + + 需要删除的日志流ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。 + + :param log_stream_id: The log_stream_id of this DeleteLogStreamRequest. + :type: str + """ + self._log_stream_id = log_stream_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteLogStreamRequest): + 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-lts/huaweicloudsdklts/v2/model/delete_log_stream_response.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/delete_log_stream_response.py new file mode 100644 index 0000000000..97459b1b42 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/delete_log_stream_response.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class DeleteLogStreamResponse(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': 'str' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """DeleteLogStreamResponse - a model defined in huaweicloud sdk""" + + super(DeleteLogStreamResponse, 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 DeleteLogStreamResponse. + + + :return: The body of this DeleteLogStreamResponse. + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteLogStreamResponse. + + + :param body: The body of this DeleteLogStreamResponse. + :type: str + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteLogStreamResponse): + 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-lts/huaweicloudsdklts/v2/model/disable_log_collection_request.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/disable_log_collection_request.py new file mode 100644 index 0000000000..34ed07aecf --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/disable_log_collection_request.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class DisableLogCollectionRequest: + + + """ + 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): + """DisableLogCollectionRequest - a 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DisableLogCollectionRequest): + 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-lts/huaweicloudsdklts/v2/model/disable_log_collection_response.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/disable_log_collection_response.py new file mode 100644 index 0000000000..387672068b --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/disable_log_collection_response.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class DisableLogCollectionResponse(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): + """DisableLogCollectionResponse - a model defined in huaweicloud sdk""" + + super(DisableLogCollectionResponse, 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DisableLogCollectionResponse): + 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-lts/huaweicloudsdklts/v2/model/enable_log_collection_request.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/enable_log_collection_request.py new file mode 100644 index 0000000000..69ebe868d5 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/enable_log_collection_request.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class EnableLogCollectionRequest: + + + """ + 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): + """EnableLogCollectionRequest - a 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EnableLogCollectionRequest): + 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-lts/huaweicloudsdklts/v2/model/enable_log_collection_response.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/enable_log_collection_response.py new file mode 100644 index 0000000000..32314afca6 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/enable_log_collection_response.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class EnableLogCollectionResponse(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): + """EnableLogCollectionResponse - a model defined in huaweicloud sdk""" + + super(EnableLogCollectionResponse, 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EnableLogCollectionResponse): + 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-lts/huaweicloudsdklts/v2/model/list_log_groups_request.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/list_log_groups_request.py new file mode 100644 index 0000000000..b73ce92e4e --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/list_log_groups_request.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListLogGroupsRequest: + + + """ + 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): + """ListLogGroupsRequest - a 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListLogGroupsRequest): + 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-lts/huaweicloudsdklts/v2/model/list_log_groups_response.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/list_log_groups_response.py new file mode 100644 index 0000000000..813c493333 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/list_log_groups_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListLogGroupsResponse(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 = { + 'log_groups': 'list[LogGroup]' + } + + attribute_map = { + 'log_groups': 'log_groups' + } + + def __init__(self, log_groups=None): + """ListLogGroupsResponse - a model defined in huaweicloud sdk""" + + super(ListLogGroupsResponse, self).__init__() + + self._log_groups = None + self.discriminator = None + + if log_groups is not None: + self.log_groups = log_groups + + @property + def log_groups(self): + """Gets the log_groups of this ListLogGroupsResponse. + + 日志组信息。 + + :return: The log_groups of this ListLogGroupsResponse. + :rtype: list[LogGroup] + """ + return self._log_groups + + @log_groups.setter + def log_groups(self, log_groups): + """Sets the log_groups of this ListLogGroupsResponse. + + 日志组信息。 + + :param log_groups: The log_groups of this ListLogGroupsResponse. + :type: list[LogGroup] + """ + self._log_groups = log_groups + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListLogGroupsResponse): + 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-lts/huaweicloudsdklts/v2/model/list_log_stream_request.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/list_log_stream_request.py new file mode 100644 index 0000000000..ae2913d79d --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/list_log_stream_request.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListLogStreamRequest: + + + """ + 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 = { + 'log_group_id': 'str', + 'tag': 'str' + } + + attribute_map = { + 'log_group_id': 'log_group_id', + 'tag': 'tag' + } + + def __init__(self, log_group_id=None, tag=None): + """ListLogStreamRequest - a model defined in huaweicloud sdk""" + + + + self._log_group_id = None + self._tag = None + self.discriminator = None + + self.log_group_id = log_group_id + if tag is not None: + self.tag = tag + + @property + def log_group_id(self): + """Gets the log_group_id of this ListLogStreamRequest. + + 租户想查询的日志流所在的日志组的groupid,一般为36位字符串。 + + :return: The log_group_id of this ListLogStreamRequest. + :rtype: str + """ + return self._log_group_id + + @log_group_id.setter + def log_group_id(self, log_group_id): + """Sets the log_group_id of this ListLogStreamRequest. + + 租户想查询的日志流所在的日志组的groupid,一般为36位字符串。 + + :param log_group_id: The log_group_id of this ListLogStreamRequest. + :type: str + """ + self._log_group_id = log_group_id + + @property + def tag(self): + """Gets the tag of this ListLogStreamRequest. + + 按条件搜索,内容设置为日志流的tag键值对,比如k1=v1; + + :return: The tag of this ListLogStreamRequest. + :rtype: str + """ + return self._tag + + @tag.setter + def tag(self, tag): + """Sets the tag of this ListLogStreamRequest. + + 按条件搜索,内容设置为日志流的tag键值对,比如k1=v1; + + :param tag: The tag of this ListLogStreamRequest. + :type: str + """ + self._tag = tag + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListLogStreamRequest): + 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-lts/huaweicloudsdklts/v2/model/list_log_stream_response.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/list_log_stream_response.py new file mode 100644 index 0000000000..ff1d615d87 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/list_log_stream_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListLogStreamResponse(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 = { + 'log_streams': 'list[LogStream]' + } + + attribute_map = { + 'log_streams': 'log_streams' + } + + def __init__(self, log_streams=None): + """ListLogStreamResponse - a model defined in huaweicloud sdk""" + + super(ListLogStreamResponse, self).__init__() + + self._log_streams = None + self.discriminator = None + + if log_streams is not None: + self.log_streams = log_streams + + @property + def log_streams(self): + """Gets the log_streams of this ListLogStreamResponse. + + 日志组数组。 + + :return: The log_streams of this ListLogStreamResponse. + :rtype: list[LogStream] + """ + return self._log_streams + + @log_streams.setter + def log_streams(self, log_streams): + """Sets the log_streams of this ListLogStreamResponse. + + 日志组数组。 + + :param log_streams: The log_streams of this ListLogStreamResponse. + :type: list[LogStream] + """ + self._log_streams = log_streams + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListLogStreamResponse): + 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-lts/huaweicloudsdklts/v2/model/log_contents.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/log_contents.py new file mode 100644 index 0000000000..8bd7ba2a8f --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/log_contents.py @@ -0,0 +1,164 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class LogContents: + + + """ + 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': 'str', + 'line_num': 'str', + 'labels': 'object' + } + + attribute_map = { + 'content': 'content', + 'line_num': 'line_num', + 'labels': 'labels' + } + + def __init__(self, content=None, line_num=None, labels=None): + """LogContents - a model defined in huaweicloud sdk""" + + + + self._content = None + self._line_num = None + self._labels = None + self.discriminator = None + + if content is not None: + self.content = content + if line_num is not None: + self.line_num = line_num + if labels is not None: + self.labels = labels + + @property + def content(self): + """Gets the content of this LogContents. + + 日志原数据。 + + :return: The content of this LogContents. + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this LogContents. + + 日志原数据。 + + :param content: The content of this LogContents. + :type: str + """ + self._content = content + + @property + def line_num(self): + """Gets the line_num of this LogContents. + + 日志单行序列号。 + + :return: The line_num of this LogContents. + :rtype: str + """ + return self._line_num + + @line_num.setter + def line_num(self, line_num): + """Sets the line_num of this LogContents. + + 日志单行序列号。 + + :param line_num: The line_num of this LogContents. + :type: str + """ + self._line_num = line_num + + @property + def labels(self): + """Gets the labels of this LogContents. + + 该条日志包含的 labels。 + + :return: The labels of this LogContents. + :rtype: object + """ + return self._labels + + @labels.setter + def labels(self, labels): + """Sets the labels of this LogContents. + + 该条日志包含的 labels。 + + :param labels: The labels of this LogContents. + :type: object + """ + self._labels = labels + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, LogContents): + 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-lts/huaweicloudsdklts/v2/model/log_group.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/log_group.py new file mode 100644 index 0000000000..2dae695095 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/log_group.py @@ -0,0 +1,187 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class LogGroup: + + + """ + 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 = { + 'creation_time': 'float', + 'log_group_name': 'str', + 'log_group_id': 'str', + 'ttl_in_days': 'int' + } + + attribute_map = { + 'creation_time': 'creation_time', + 'log_group_name': 'log_group_name', + 'log_group_id': 'log_group_id', + 'ttl_in_days': 'ttl_in_days' + } + + def __init__(self, creation_time=None, log_group_name=None, log_group_id=None, ttl_in_days=None): + """LogGroup - a model defined in huaweicloud sdk""" + + + + self._creation_time = None + self._log_group_name = None + self._log_group_id = None + self._ttl_in_days = None + self.discriminator = None + + self.creation_time = creation_time + self.log_group_name = log_group_name + self.log_group_id = log_group_id + self.ttl_in_days = ttl_in_days + + @property + def creation_time(self): + """Gets the creation_time of this LogGroup. + + 创建时间 + + :return: The creation_time of this LogGroup. + :rtype: float + """ + return self._creation_time + + @creation_time.setter + def creation_time(self, creation_time): + """Sets the creation_time of this LogGroup. + + 创建时间 + + :param creation_time: The creation_time of this LogGroup. + :type: float + """ + self._creation_time = creation_time + + @property + def log_group_name(self): + """Gets the log_group_name of this LogGroup. + + 日志组名称 + + :return: The log_group_name of this LogGroup. + :rtype: str + """ + return self._log_group_name + + @log_group_name.setter + def log_group_name(self, log_group_name): + """Sets the log_group_name of this LogGroup. + + 日志组名称 + + :param log_group_name: The log_group_name of this LogGroup. + :type: str + """ + self._log_group_name = log_group_name + + @property + def log_group_id(self): + """Gets the log_group_id of this LogGroup. + + 日志组ID + + :return: The log_group_id of this LogGroup. + :rtype: str + """ + return self._log_group_id + + @log_group_id.setter + def log_group_id(self, log_group_id): + """Sets the log_group_id of this LogGroup. + + 日志组ID + + :param log_group_id: The log_group_id of this LogGroup. + :type: str + """ + self._log_group_id = log_group_id + + @property + def ttl_in_days(self): + """Gets the ttl_in_days of this LogGroup. + + 日志存储时间 天 + + :return: The ttl_in_days of this LogGroup. + :rtype: int + """ + return self._ttl_in_days + + @ttl_in_days.setter + def ttl_in_days(self, ttl_in_days): + """Sets the ttl_in_days of this LogGroup. + + 日志存储时间 天 + + :param ttl_in_days: The ttl_in_days of this LogGroup. + :type: int + """ + self._ttl_in_days = ttl_in_days + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, LogGroup): + 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-lts/huaweicloudsdklts/v2/model/log_stream.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/log_stream.py new file mode 100644 index 0000000000..09d3ac888f --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/log_stream.py @@ -0,0 +1,187 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class LogStream: + + + """ + 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 = { + 'creation_time': 'int', + 'log_stream_name': 'str', + 'log_stream_id': 'str', + 'filter_count': 'int' + } + + attribute_map = { + 'creation_time': 'creation_time', + 'log_stream_name': 'log_stream_name', + 'log_stream_id': 'log_stream_id', + 'filter_count': 'filter_count' + } + + def __init__(self, creation_time=None, log_stream_name=None, log_stream_id=None, filter_count=None): + """LogStream - a model defined in huaweicloud sdk""" + + + + self._creation_time = None + self._log_stream_name = None + self._log_stream_id = None + self._filter_count = None + self.discriminator = None + + self.creation_time = creation_time + self.log_stream_name = log_stream_name + self.log_stream_id = log_stream_id + self.filter_count = filter_count + + @property + def creation_time(self): + """Gets the creation_time of this LogStream. + + 创建时间 + + :return: The creation_time of this LogStream. + :rtype: int + """ + return self._creation_time + + @creation_time.setter + def creation_time(self, creation_time): + """Sets the creation_time of this LogStream. + + 创建时间 + + :param creation_time: The creation_time of this LogStream. + :type: int + """ + self._creation_time = creation_time + + @property + def log_stream_name(self): + """Gets the log_stream_name of this LogStream. + + 日志流名称 + + :return: The log_stream_name of this LogStream. + :rtype: str + """ + return self._log_stream_name + + @log_stream_name.setter + def log_stream_name(self, log_stream_name): + """Sets the log_stream_name of this LogStream. + + 日志流名称 + + :param log_stream_name: The log_stream_name of this LogStream. + :type: str + """ + self._log_stream_name = log_stream_name + + @property + def log_stream_id(self): + """Gets the log_stream_id of this LogStream. + + 日志流ID + + :return: The log_stream_id of this LogStream. + :rtype: str + """ + return self._log_stream_id + + @log_stream_id.setter + def log_stream_id(self, log_stream_id): + """Sets the log_stream_id of this LogStream. + + 日志流ID + + :param log_stream_id: The log_stream_id of this LogStream. + :type: str + """ + self._log_stream_id = log_stream_id + + @property + def filter_count(self): + """Gets the filter_count of this LogStream. + + 过滤器个数 + + :return: The filter_count of this LogStream. + :rtype: int + """ + return self._filter_count + + @filter_count.setter + def filter_count(self, filter_count): + """Sets the filter_count of this LogStream. + + 过滤器个数 + + :param filter_count: The filter_count of this LogStream. + :type: int + """ + self._filter_count = filter_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, LogStream): + 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-lts/huaweicloudsdklts/v2/model/query_lts_log_params.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/query_lts_log_params.py new file mode 100644 index 0000000000..4cf5ea7e27 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/query_lts_log_params.py @@ -0,0 +1,297 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class QueryLTSLogParams: + + + """ + 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', + 'labels': 'object', + 'keywords': 'str', + 'line_num': 'str', + 'is_desc': 'bool', + 'search_type': 'str', + 'limit': 'int' + } + + attribute_map = { + 'start_time': 'start_time', + 'end_time': 'end_time', + 'labels': 'labels', + 'keywords': 'keywords', + 'line_num': 'line_num', + 'is_desc': 'is_desc', + 'search_type': 'search_type', + 'limit': 'limit' + } + + def __init__(self, start_time=None, end_time=None, labels=None, keywords=None, line_num=None, is_desc=None, search_type=None, limit=None): + """QueryLTSLogParams - a model defined in huaweicloud sdk""" + + + + self._start_time = None + self._end_time = None + self._labels = None + self._keywords = None + self._line_num = None + self._is_desc = None + self._search_type = None + self._limit = None + self.discriminator = None + + self.start_time = start_time + self.end_time = end_time + if labels is not None: + self.labels = labels + if keywords is not None: + self.keywords = keywords + if line_num is not None: + self.line_num = line_num + if is_desc is not None: + self.is_desc = is_desc + if search_type is not None: + self.search_type = search_type + if limit is not None: + self.limit = limit + + @property + def start_time(self): + """Gets the start_time of this QueryLTSLogParams. + + 搜索起始时间(UTC时间,毫秒级)。 + + :return: The start_time of this QueryLTSLogParams. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this QueryLTSLogParams. + + 搜索起始时间(UTC时间,毫秒级)。 + + :param start_time: The start_time of this QueryLTSLogParams. + :type: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this QueryLTSLogParams. + + 搜索结束时间(UTC时间,毫秒级)。 + + :return: The end_time of this QueryLTSLogParams. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this QueryLTSLogParams. + + 搜索结束时间(UTC时间,毫秒级)。 + + :param end_time: The end_time of this QueryLTSLogParams. + :type: str + """ + self._end_time = end_time + + @property + def labels(self): + """Gets the labels of this QueryLTSLogParams. + + 日志过滤条件集合,不同日志来源所需字段不同。 + + :return: The labels of this QueryLTSLogParams. + :rtype: object + """ + return self._labels + + @labels.setter + def labels(self, labels): + """Sets the labels of this QueryLTSLogParams. + + 日志过滤条件集合,不同日志来源所需字段不同。 + + :param labels: The labels of this QueryLTSLogParams. + :type: object + """ + self._labels = labels + + @property + def keywords(self): + """Gets the keywords of this QueryLTSLogParams. + + 支持关键词精确搜索。关键词指相邻两个分词符之间的单词。 + + :return: The keywords of this QueryLTSLogParams. + :rtype: str + """ + return self._keywords + + @keywords.setter + def keywords(self, keywords): + """Sets the keywords of this QueryLTSLogParams. + + 支持关键词精确搜索。关键词指相邻两个分词符之间的单词。 + + :param keywords: The keywords of this QueryLTSLogParams. + :type: str + """ + self._keywords = keywords + + @property + def line_num(self): + """Gets the line_num of this QueryLTSLogParams. + + 日志单行序列号,第一次查询时不需要此参数,后续分页查询时需要使用,可从上次查询的返回信息中获取。line_num应在start_time 和 end_time 之间。 + + :return: The line_num of this QueryLTSLogParams. + :rtype: str + """ + return self._line_num + + @line_num.setter + def line_num(self, line_num): + """Sets the line_num of this QueryLTSLogParams. + + 日志单行序列号,第一次查询时不需要此参数,后续分页查询时需要使用,可从上次查询的返回信息中获取。line_num应在start_time 和 end_time 之间。 + + :param line_num: The line_num of this QueryLTSLogParams. + :type: str + """ + self._line_num = line_num + + @property + def is_desc(self): + """Gets the is_desc of this QueryLTSLogParams. + + 顺序或者倒序查询, 默认为false(顺序查询) + + :return: The is_desc of this QueryLTSLogParams. + :rtype: bool + """ + return self._is_desc + + @is_desc.setter + def is_desc(self, is_desc): + """Sets the is_desc of this QueryLTSLogParams. + + 顺序或者倒序查询, 默认为false(顺序查询) + + :param is_desc: The is_desc of this QueryLTSLogParams. + :type: bool + """ + self._is_desc = is_desc + + @property + def search_type(self): + """Gets the search_type of this QueryLTSLogParams. + + 首次查询为 “init”, 分页查询时为 “forwards”或者“backwards”, 默认为首次查询“init”, 与 is_desc 参数配合进行分页查询。 + + :return: The search_type of this QueryLTSLogParams. + :rtype: str + """ + return self._search_type + + @search_type.setter + def search_type(self, search_type): + """Sets the search_type of this QueryLTSLogParams. + + 首次查询为 “init”, 分页查询时为 “forwards”或者“backwards”, 默认为首次查询“init”, 与 is_desc 参数配合进行分页查询。 + + :param search_type: The search_type of this QueryLTSLogParams. + :type: str + """ + self._search_type = search_type + + @property + def limit(self): + """Gets the limit of this QueryLTSLogParams. + + 表示每次查询的日志条数,不填时默认为5000,建议您设置为100。 + + :return: The limit of this QueryLTSLogParams. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this QueryLTSLogParams. + + 表示每次查询的日志条数,不填时默认为5000,建议您设置为100。 + + :param limit: The limit of this QueryLTSLogParams. + :type: int + """ + self._limit = limit + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, QueryLTSLogParams): + 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-lts/huaweicloudsdklts/v2/model/query_lts_struct_log_params.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/query_lts_struct_log_params.py new file mode 100644 index 0000000000..7d15cbdfdd --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/query_lts_struct_log_params.py @@ -0,0 +1,189 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class QueryLTSStructLogParams: + + + """ + 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', + 'sql_expression': 'str', + 'original_content': 'bool' + } + + attribute_map = { + 'start_time': 'start_time', + 'end_time': 'end_time', + 'sql_expression': 'sql_expression', + 'original_content': 'original_content' + } + + def __init__(self, start_time=None, end_time=None, sql_expression=None, original_content=None): + """QueryLTSStructLogParams - a model defined in huaweicloud sdk""" + + + + self._start_time = None + self._end_time = None + self._sql_expression = None + self._original_content = None + self.discriminator = None + + self.start_time = start_time + self.end_time = end_time + if sql_expression is not None: + self.sql_expression = sql_expression + if original_content is not None: + self.original_content = original_content + + @property + def start_time(self): + """Gets the start_time of this QueryLTSStructLogParams. + + 搜索起始时间(UTC时间,毫秒级)。 + + :return: The start_time of this QueryLTSStructLogParams. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this QueryLTSStructLogParams. + + 搜索起始时间(UTC时间,毫秒级)。 + + :param start_time: The start_time of this QueryLTSStructLogParams. + :type: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this QueryLTSStructLogParams. + + 搜索结束时间(UTC时间,毫秒级)。 + + :return: The end_time of this QueryLTSStructLogParams. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this QueryLTSStructLogParams. + + 搜索结束时间(UTC时间,毫秒级)。 + + :param end_time: The end_time of this QueryLTSStructLogParams. + :type: str + """ + self._end_time = end_time + + @property + def sql_expression(self): + """Gets the sql_expression of this QueryLTSStructLogParams. + + 支持SQL语句搜索, 目前支持\"GROUP BY\", \"LIKE\"和\"WHERE\"。 + + :return: The sql_expression of this QueryLTSStructLogParams. + :rtype: str + """ + return self._sql_expression + + @sql_expression.setter + def sql_expression(self, sql_expression): + """Sets the sql_expression of this QueryLTSStructLogParams. + + 支持SQL语句搜索, 目前支持\"GROUP BY\", \"LIKE\"和\"WHERE\"。 + + :param sql_expression: The sql_expression of this QueryLTSStructLogParams. + :type: str + """ + self._sql_expression = sql_expression + + @property + def original_content(self): + """Gets the original_content of this QueryLTSStructLogParams. + + 返回内容中是否包含原始日志, 默认为false。 + + :return: The original_content of this QueryLTSStructLogParams. + :rtype: bool + """ + return self._original_content + + @original_content.setter + def original_content(self, original_content): + """Sets the original_content of this QueryLTSStructLogParams. + + 返回内容中是否包含原始日志, 默认为false。 + + :param original_content: The original_content of this QueryLTSStructLogParams. + :type: bool + """ + self._original_content = original_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, QueryLTSStructLogParams): + 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-lts/huaweicloudsdklts/v2/model/query_lts_struct_log_params_new.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/query_lts_struct_log_params_new.py new file mode 100644 index 0000000000..0cb2289c0b --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/query_lts_struct_log_params_new.py @@ -0,0 +1,161 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class QueryLTSStructLogParamsNew: + + + """ + 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 = { + 'query': 'str', + 'format': 'str', + 'time_range': 'object' + } + + attribute_map = { + 'query': 'query', + 'format': 'format', + 'time_range': 'time_range' + } + + def __init__(self, query=None, format=None, time_range=None): + """QueryLTSStructLogParamsNew - a model defined in huaweicloud sdk""" + + + + self._query = None + self._format = None + self._time_range = None + self.discriminator = None + + self.query = query + self.format = format + self.time_range = time_range + + @property + def query(self): + """Gets the query of this QueryLTSStructLogParamsNew. + + sql语句字符串。 + + :return: The query of this QueryLTSStructLogParamsNew. + :rtype: str + """ + return self._query + + @query.setter + def query(self, query): + """Sets the query of this QueryLTSStructLogParamsNew. + + sql语句字符串。 + + :param query: The query of this QueryLTSStructLogParamsNew. + :type: str + """ + self._query = query + + @property + def format(self): + """Gets the format of this QueryLTSStructLogParamsNew. + + 查询结果格式。当前仅支持:\"k-v\"。 + + :return: The format of this QueryLTSStructLogParamsNew. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this QueryLTSStructLogParamsNew. + + 查询结果格式。当前仅支持:\"k-v\"。 + + :param format: The format of this QueryLTSStructLogParamsNew. + :type: str + """ + self._format = format + + @property + def time_range(self): + """Gets the time_range of this QueryLTSStructLogParamsNew. + + 时间范围信息。 + + :return: The time_range of this QueryLTSStructLogParamsNew. + :rtype: object + """ + return self._time_range + + @time_range.setter + def time_range(self, time_range): + """Sets the time_range of this QueryLTSStructLogParamsNew. + + 时间范围信息。 + + :param time_range: The time_range of this QueryLTSStructLogParamsNew. + :type: object + """ + self._time_range = time_range + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, QueryLTSStructLogParamsNew): + 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-lts/huaweicloudsdklts/v2/model/struct_log_contents.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/struct_log_contents.py new file mode 100644 index 0000000000..97eb1ed4e7 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/struct_log_contents.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class StructLogContents: + + + """ + 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 = { + 'log_content': 'str', + 'line_num': 'str' + } + + attribute_map = { + 'log_content': 'log_content', + 'line_num': 'line_num' + } + + def __init__(self, log_content=None, line_num=None): + """StructLogContents - a model defined in huaweicloud sdk""" + + + + self._log_content = None + self._line_num = None + self.discriminator = None + + if log_content is not None: + self.log_content = log_content + if line_num is not None: + self.line_num = line_num + + @property + def log_content(self): + """Gets the log_content of this StructLogContents. + + 日志原数据。 + + :return: The log_content of this StructLogContents. + :rtype: str + """ + return self._log_content + + @log_content.setter + def log_content(self, log_content): + """Sets the log_content of this StructLogContents. + + 日志原数据。 + + :param log_content: The log_content of this StructLogContents. + :type: str + """ + self._log_content = log_content + + @property + def line_num(self): + """Gets the line_num of this StructLogContents. + + 日志单行序列号。 + + :return: The line_num of this StructLogContents. + :rtype: str + """ + return self._line_num + + @line_num.setter + def line_num(self, line_num): + """Sets the line_num of this StructLogContents. + + 日志单行序列号。 + + :param line_num: The line_num of this StructLogContents. + :type: str + """ + self._line_num = line_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StructLogContents): + 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-lts/huaweicloudsdklts/v2/model/update_log_contents2_request.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_log_contents2_request.py new file mode 100644 index 0000000000..2396253db9 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_log_contents2_request.py @@ -0,0 +1,160 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdateLogContents2Request: + + + """ + 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 = { + 'log_group_id': 'str', + 'log_stream_id': 'str', + 'body': 'QueryLTSStructLogParams' + } + + attribute_map = { + 'log_group_id': 'log_group_id', + 'log_stream_id': 'log_stream_id', + 'body': 'body' + } + + def __init__(self, log_group_id=None, log_stream_id=None, body=None): + """UpdateLogContents2Request - a model defined in huaweicloud sdk""" + + + + self._log_group_id = None + self._log_stream_id = None + self._body = None + self.discriminator = None + + self.log_group_id = log_group_id + self.log_stream_id = log_stream_id + if body is not None: + self.body = body + + @property + def log_group_id(self): + """Gets the log_group_id of this UpdateLogContents2Request. + + 日志组id。 + + :return: The log_group_id of this UpdateLogContents2Request. + :rtype: str + """ + return self._log_group_id + + @log_group_id.setter + def log_group_id(self, log_group_id): + """Sets the log_group_id of this UpdateLogContents2Request. + + 日志组id。 + + :param log_group_id: The log_group_id of this UpdateLogContents2Request. + :type: str + """ + self._log_group_id = log_group_id + + @property + def log_stream_id(self): + """Gets the log_stream_id of this UpdateLogContents2Request. + + 日志流id。 + + :return: The log_stream_id of this UpdateLogContents2Request. + :rtype: str + """ + return self._log_stream_id + + @log_stream_id.setter + def log_stream_id(self, log_stream_id): + """Sets the log_stream_id of this UpdateLogContents2Request. + + 日志流id。 + + :param log_stream_id: The log_stream_id of this UpdateLogContents2Request. + :type: str + """ + self._log_stream_id = log_stream_id + + @property + def body(self): + """Gets the body of this UpdateLogContents2Request. + + + :return: The body of this UpdateLogContents2Request. + :rtype: QueryLTSStructLogParams + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateLogContents2Request. + + + :param body: The body of this UpdateLogContents2Request. + :type: QueryLTSStructLogParams + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateLogContents2Request): + 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-lts/huaweicloudsdklts/v2/model/update_log_contents2_response.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_log_contents2_response.py new file mode 100644 index 0000000000..42860acc8b --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_log_contents2_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class UpdateLogContents2Response(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 = { + 'struct_logs': 'list[StructLogContents]' + } + + attribute_map = { + 'struct_logs': 'struct_logs' + } + + def __init__(self, struct_logs=None): + """UpdateLogContents2Response - a model defined in huaweicloud sdk""" + + super(UpdateLogContents2Response, self).__init__() + + self._struct_logs = None + self.discriminator = None + + if struct_logs is not None: + self.struct_logs = struct_logs + + @property + def struct_logs(self): + """Gets the struct_logs of this UpdateLogContents2Response. + + 日志信息。 + + :return: The struct_logs of this UpdateLogContents2Response. + :rtype: list[StructLogContents] + """ + return self._struct_logs + + @struct_logs.setter + def struct_logs(self, struct_logs): + """Sets the struct_logs of this UpdateLogContents2Response. + + 日志信息。 + + :param struct_logs: The struct_logs of this UpdateLogContents2Response. + :type: list[StructLogContents] + """ + self._struct_logs = struct_logs + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateLogContents2Response): + 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-lts/huaweicloudsdklts/v2/model/update_log_contents3_request.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_log_contents3_request.py new file mode 100644 index 0000000000..8aca53fe2e --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_log_contents3_request.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdateLogContents3Request: + + + """ + 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 = { + 'log_stream_id': 'str', + 'body': 'QueryLTSStructLogParamsNew' + } + + attribute_map = { + 'log_stream_id': 'log_stream_id', + 'body': 'body' + } + + def __init__(self, log_stream_id=None, body=None): + """UpdateLogContents3Request - a model defined in huaweicloud sdk""" + + + + self._log_stream_id = None + self._body = None + self.discriminator = None + + self.log_stream_id = log_stream_id + if body is not None: + self.body = body + + @property + def log_stream_id(self): + """Gets the log_stream_id of this UpdateLogContents3Request. + + 日志流id,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。 + + :return: The log_stream_id of this UpdateLogContents3Request. + :rtype: str + """ + return self._log_stream_id + + @log_stream_id.setter + def log_stream_id(self, log_stream_id): + """Sets the log_stream_id of this UpdateLogContents3Request. + + 日志流id,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。 + + :param log_stream_id: The log_stream_id of this UpdateLogContents3Request. + :type: str + """ + self._log_stream_id = log_stream_id + + @property + def body(self): + """Gets the body of this UpdateLogContents3Request. + + + :return: The body of this UpdateLogContents3Request. + :rtype: QueryLTSStructLogParamsNew + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateLogContents3Request. + + + :param body: The body of this UpdateLogContents3Request. + :type: QueryLTSStructLogParamsNew + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateLogContents3Request): + 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-lts/huaweicloudsdklts/v2/model/update_log_contents3_response.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_log_contents3_response.py new file mode 100644 index 0000000000..593cfc3c64 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_log_contents3_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class UpdateLogContents3Response(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 = { + 'context': 'str' + } + + attribute_map = { + 'context': 'context' + } + + def __init__(self, context=None): + """UpdateLogContents3Response - a model defined in huaweicloud sdk""" + + super(UpdateLogContents3Response, self).__init__() + + self._context = None + self.discriminator = None + + if context is not None: + self.context = context + + @property + def context(self): + """Gets the context of this UpdateLogContents3Response. + + 查询结构化日志结果信息。此处仅为示例,具体参数名称取决于查询的字段。 + + :return: The context of this UpdateLogContents3Response. + :rtype: str + """ + return self._context + + @context.setter + def context(self, context): + """Sets the context of this UpdateLogContents3Response. + + 查询结构化日志结果信息。此处仅为示例,具体参数名称取决于查询的字段。 + + :param context: The context of this UpdateLogContents3Response. + :type: str + """ + self._context = context + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateLogContents3Response): + 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-lts/huaweicloudsdklts/v2/model/update_log_contents_request.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_log_contents_request.py new file mode 100644 index 0000000000..c84bd72617 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_log_contents_request.py @@ -0,0 +1,160 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdateLogContentsRequest: + + + """ + 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 = { + 'log_group_id': 'str', + 'log_stream_id': 'str', + 'body': 'QueryLTSLogParams' + } + + attribute_map = { + 'log_group_id': 'log_group_id', + 'log_stream_id': 'log_stream_id', + 'body': 'body' + } + + def __init__(self, log_group_id=None, log_stream_id=None, body=None): + """UpdateLogContentsRequest - a model defined in huaweicloud sdk""" + + + + self._log_group_id = None + self._log_stream_id = None + self._body = None + self.discriminator = None + + self.log_group_id = log_group_id + self.log_stream_id = log_stream_id + if body is not None: + self.body = body + + @property + def log_group_id(self): + """Gets the log_group_id of this UpdateLogContentsRequest. + + 日志组id。 + + :return: The log_group_id of this UpdateLogContentsRequest. + :rtype: str + """ + return self._log_group_id + + @log_group_id.setter + def log_group_id(self, log_group_id): + """Sets the log_group_id of this UpdateLogContentsRequest. + + 日志组id。 + + :param log_group_id: The log_group_id of this UpdateLogContentsRequest. + :type: str + """ + self._log_group_id = log_group_id + + @property + def log_stream_id(self): + """Gets the log_stream_id of this UpdateLogContentsRequest. + + 日志流id。 + + :return: The log_stream_id of this UpdateLogContentsRequest. + :rtype: str + """ + return self._log_stream_id + + @log_stream_id.setter + def log_stream_id(self, log_stream_id): + """Sets the log_stream_id of this UpdateLogContentsRequest. + + 日志流id。 + + :param log_stream_id: The log_stream_id of this UpdateLogContentsRequest. + :type: str + """ + self._log_stream_id = log_stream_id + + @property + def body(self): + """Gets the body of this UpdateLogContentsRequest. + + + :return: The body of this UpdateLogContentsRequest. + :rtype: QueryLTSLogParams + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateLogContentsRequest. + + + :param body: The body of this UpdateLogContentsRequest. + :type: QueryLTSLogParams + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateLogContentsRequest): + 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-lts/huaweicloudsdklts/v2/model/update_log_contents_response.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_log_contents_response.py new file mode 100644 index 0000000000..739fb2b677 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_log_contents_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class UpdateLogContentsResponse(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 = { + 'logs': 'list[LogContents]' + } + + attribute_map = { + 'logs': 'logs' + } + + def __init__(self, logs=None): + """UpdateLogContentsResponse - a model defined in huaweicloud sdk""" + + super(UpdateLogContentsResponse, self).__init__() + + self._logs = None + self.discriminator = None + + if logs is not None: + self.logs = logs + + @property + def logs(self): + """Gets the logs of this UpdateLogContentsResponse. + + 日志信息。 + + :return: The logs of this UpdateLogContentsResponse. + :rtype: list[LogContents] + """ + return self._logs + + @logs.setter + def logs(self, logs): + """Sets the logs of this UpdateLogContentsResponse. + + 日志信息。 + + :param logs: The logs of this UpdateLogContentsResponse. + :type: list[LogContents] + """ + self._logs = logs + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateLogContentsResponse): + 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-lts/huaweicloudsdklts/v2/model/update_log_group_params.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_log_group_params.py new file mode 100644 index 0000000000..0adb0283df --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_log_group_params.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdateLogGroupParams: + + + """ + 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 = { + 'ttl_in_days': 'int' + } + + attribute_map = { + 'ttl_in_days': 'ttl_in_days' + } + + def __init__(self, ttl_in_days=None): + """UpdateLogGroupParams - a model defined in huaweicloud sdk""" + + + + self._ttl_in_days = None + self.discriminator = None + + self.ttl_in_days = ttl_in_days + + @property + def ttl_in_days(self): + """Gets the ttl_in_days of this UpdateLogGroupParams. + + 日志存储时间 天。 取值范围为 [1, 30] + + :return: The ttl_in_days of this UpdateLogGroupParams. + :rtype: int + """ + return self._ttl_in_days + + @ttl_in_days.setter + def ttl_in_days(self, ttl_in_days): + """Sets the ttl_in_days of this UpdateLogGroupParams. + + 日志存储时间 天。 取值范围为 [1, 30] + + :param ttl_in_days: The ttl_in_days of this UpdateLogGroupParams. + :type: int + """ + self._ttl_in_days = ttl_in_days + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateLogGroupParams): + 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-lts/huaweicloudsdklts/v2/model/update_log_group_request.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_log_group_request.py new file mode 100644 index 0000000000..012fb658cc --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_log_group_request.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdateLogGroupRequest: + + + """ + 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 = { + 'log_group_id': 'str', + 'body': 'UpdateLogGroupParams' + } + + attribute_map = { + 'log_group_id': 'log_group_id', + 'body': 'body' + } + + def __init__(self, log_group_id=None, body=None): + """UpdateLogGroupRequest - a model defined in huaweicloud sdk""" + + + + self._log_group_id = None + self._body = None + self.discriminator = None + + self.log_group_id = log_group_id + if body is not None: + self.body = body + + @property + def log_group_id(self): + """Gets the log_group_id of this UpdateLogGroupRequest. + + 日志组ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html) + + :return: The log_group_id of this UpdateLogGroupRequest. + :rtype: str + """ + return self._log_group_id + + @log_group_id.setter + def log_group_id(self, log_group_id): + """Sets the log_group_id of this UpdateLogGroupRequest. + + 日志组ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html) + + :param log_group_id: The log_group_id of this UpdateLogGroupRequest. + :type: str + """ + self._log_group_id = log_group_id + + @property + def body(self): + """Gets the body of this UpdateLogGroupRequest. + + + :return: The body of this UpdateLogGroupRequest. + :rtype: UpdateLogGroupParams + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateLogGroupRequest. + + + :param body: The body of this UpdateLogGroupRequest. + :type: UpdateLogGroupParams + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateLogGroupRequest): + 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-lts/huaweicloudsdklts/v2/model/update_log_group_response.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_log_group_response.py new file mode 100644 index 0000000000..6d36402490 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_log_group_response.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class UpdateLogGroupResponse(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 = { + 'creation_time': 'float', + 'log_group_name': 'str', + 'log_group_id': 'str', + 'ttl_in_days': 'int' + } + + attribute_map = { + 'creation_time': 'creation_time', + 'log_group_name': 'log_group_name', + 'log_group_id': 'log_group_id', + 'ttl_in_days': 'ttl_in_days' + } + + def __init__(self, creation_time=None, log_group_name=None, log_group_id=None, ttl_in_days=None): + """UpdateLogGroupResponse - a model defined in huaweicloud sdk""" + + super(UpdateLogGroupResponse, self).__init__() + + self._creation_time = None + self._log_group_name = None + self._log_group_id = None + self._ttl_in_days = None + self.discriminator = None + + if creation_time is not None: + self.creation_time = creation_time + if log_group_name is not None: + self.log_group_name = log_group_name + if log_group_id is not None: + self.log_group_id = log_group_id + if ttl_in_days is not None: + self.ttl_in_days = ttl_in_days + + @property + def creation_time(self): + """Gets the creation_time of this UpdateLogGroupResponse. + + 创建该日志组的时间, 毫秒级。 + + :return: The creation_time of this UpdateLogGroupResponse. + :rtype: float + """ + return self._creation_time + + @creation_time.setter + def creation_time(self, creation_time): + """Sets the creation_time of this UpdateLogGroupResponse. + + 创建该日志组的时间, 毫秒级。 + + :param creation_time: The creation_time of this UpdateLogGroupResponse. + :type: float + """ + self._creation_time = creation_time + + @property + def log_group_name(self): + """Gets the log_group_name of this UpdateLogGroupResponse. + + 日志组的名称。 + + :return: The log_group_name of this UpdateLogGroupResponse. + :rtype: str + """ + return self._log_group_name + + @log_group_name.setter + def log_group_name(self, log_group_name): + """Sets the log_group_name of this UpdateLogGroupResponse. + + 日志组的名称。 + + :param log_group_name: The log_group_name of this UpdateLogGroupResponse. + :type: str + """ + self._log_group_name = log_group_name + + @property + def log_group_id(self): + """Gets the log_group_id of this UpdateLogGroupResponse. + + 日志组ID。 + + :return: The log_group_id of this UpdateLogGroupResponse. + :rtype: str + """ + return self._log_group_id + + @log_group_id.setter + def log_group_id(self, log_group_id): + """Sets the log_group_id of this UpdateLogGroupResponse. + + 日志组ID。 + + :param log_group_id: The log_group_id of this UpdateLogGroupResponse. + :type: str + """ + self._log_group_id = log_group_id + + @property + def ttl_in_days(self): + """Gets the ttl_in_days of this UpdateLogGroupResponse. + + 日志存储时间(天)。 + + :return: The ttl_in_days of this UpdateLogGroupResponse. + :rtype: int + """ + return self._ttl_in_days + + @ttl_in_days.setter + def ttl_in_days(self, ttl_in_days): + """Sets the ttl_in_days of this UpdateLogGroupResponse. + + 日志存储时间(天)。 + + :param ttl_in_days: The ttl_in_days of this UpdateLogGroupResponse. + :type: int + """ + self._ttl_in_days = ttl_in_days + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateLogGroupResponse): + 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-lts/huaweicloudsdklts/v2/region/__init__.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/region/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/region/lts_region.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/region/lts_region.py new file mode 100644 index 0000000000..8460203483 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/region/lts_region.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +import types +import six + +from huaweicloudsdkcore.region.region import Region + + +class LtsRegion: + def __init__(self): + pass + + CN_EAST_2 = Region(id="cn-east-2", endpoint="https://lts.cn-east-2.myhuaweicloud.com") + + CN_EAST_3 = Region(id="cn-east-3", endpoint="https://lts.cn-east-3.myhuaweicloud.com") + + CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://lts.cn-north-1.myhuaweicloud.com") + + CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://lts.cn-north-2.myhuaweicloud.com") + + CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://lts.cn-north-4.myhuaweicloud.com") + + CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://lts.cn-south-1.myhuaweicloud.com") + + CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://lts.cn-southwest-2.myhuaweicloud.com") + + AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://lts.af-south-1.myhuaweicloud.com") + + AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://lts.ap-southeast-1.myhuaweicloud.com") + + AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://lts.ap-southeast-2.myhuaweicloud.com") + + AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://lts.ap-southeast-3.myhuaweicloud.com") + + static_fields = { + "cn-east-2": CN_EAST_2, + "cn-east-3": CN_EAST_3, + "cn-north-1": CN_NORTH_1, + "cn-north-2": CN_NORTH_2, + "cn-north-4": CN_NORTH_4, + "cn-south-1": CN_SOUTH_1, + "cn-southwest-2": CN_SOUTHWEST_2, + "af-south-1": AF_SOUTH_1, + "ap-southeast-1": AP_SOUTHEAST_1, + "ap-southeast-2": AP_SOUTHEAST_2, + "ap-southeast-3": AP_SOUTHEAST_3, + } + + @staticmethod + def value_of(region_id, static_fields=types.MappingProxyType(static_fields) if six.PY3 else static_fields): + if region_id is None or len(region_id) == 0: + raise KeyError("Unexpected empty parameter: region_id.") + if not static_fields.get(region_id): + raise KeyError("Unexpected region_id: " + region_id) + return static_fields.get(region_id) + + diff --git a/huaweicloud-sdk-lts/requirements.txt b/huaweicloud-sdk-lts/requirements.txt new file mode 100644 index 0000000000..bf54e8e3d8 --- /dev/null +++ b/huaweicloud-sdk-lts/requirements.txt @@ -0,0 +1 @@ +huaweicloud-sdk-python-core diff --git a/huaweicloud-sdk-lts/setup.py b/huaweicloud-sdk-lts/setup.py new file mode 100644 index 0000000000..bfef2f5d46 --- /dev/null +++ b/huaweicloud-sdk-lts/setup.py @@ -0,0 +1,55 @@ +# coding: utf-8 +from os import path + +from setuptools import setup, find_packages + +NAME = "huaweicloudsdklts" +VERSION = "3.0.49" +AUTHOR = "HuaweiCloud SDK" +AUTHOR_EMAIL = "hwcloudsdk@huawei.com" +URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" + +DESCRIPTION = "LTS" +this_directory = path.abspath(path.dirname(__file__)) +with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: + LONG_DESCRIPTION = f.read() + +REQUIRES = ["huaweicloudsdkcore"] + +OPTIONS = { + 'bdist_wheel': { + 'universal': True + } +} + +setup( + name=NAME, + version=VERSION, + options=OPTIONS, + description=DESCRIPTION, + long_description=LONG_DESCRIPTION, + long_description_content_type='text/markdown', + author=AUTHOR, + author_email=AUTHOR_EMAIL, + license="Apache LICENSE 2.0", + url=URL, + keywords=["huaweicloud", "sdk", "LTS"], + packages=find_packages(exclude=["tests*"]), + install_requires=REQUIRES, + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", + include_package_data=True, + classifiers=[ + 'Development Status :: 5 - Production/Stable', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: Apache Software License', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Topic :: Software Development' + ] +) diff --git a/huaweicloud-sdk-lts/test-requirements.txt b/huaweicloud-sdk-lts/test-requirements.txt new file mode 100644 index 0000000000..2702246c0e --- /dev/null +++ b/huaweicloud-sdk-lts/test-requirements.txt @@ -0,0 +1,5 @@ +coverage>=4.0.3 +nose>=1.3.7 +pluggy>=0.3.1 +py>=1.4.31 +randomize>=0.13 diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/__init__.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/__init__.py index 219b92f430..d6d583ae46 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/__init__.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/__init__.py @@ -119,6 +119,9 @@ from huaweicloudsdkmeeting.v1.model.image_moderation_result import ImageModerationResult from huaweicloudsdkmeeting.v1.model.invite_participant_request import InviteParticipantRequest from huaweicloudsdkmeeting.v1.model.invite_participant_response import InviteParticipantResponse +from huaweicloudsdkmeeting.v1.model.invite_share_dto import InviteShareDTO +from huaweicloudsdkmeeting.v1.model.invite_share_request import InviteShareRequest +from huaweicloudsdkmeeting.v1.model.invite_share_response import InviteShareResponse from huaweicloudsdkmeeting.v1.model.invite_user_request import InviteUserRequest from huaweicloudsdkmeeting.v1.model.invite_user_response import InviteUserResponse from huaweicloudsdkmeeting.v1.model.invite_with_pwd_request import InviteWithPwdRequest @@ -163,6 +166,9 @@ from huaweicloudsdkmeeting.v1.model.open_schedule_conf_req import OpenScheduleConfReq from huaweicloudsdkmeeting.v1.model.open_upload_file_info import OpenUploadFileInfo from huaweicloudsdkmeeting.v1.model.open_webinar_base_info import OpenWebinarBaseInfo +from huaweicloudsdkmeeting.v1.model.open_webinar_history_info import OpenWebinarHistoryInfo +from huaweicloudsdkmeeting.v1.model.open_webinar_ongoing_info import OpenWebinarOngoingInfo +from huaweicloudsdkmeeting.v1.model.open_webinar_upcoming_info import OpenWebinarUpcomingInfo from huaweicloudsdkmeeting.v1.model.org_group_dto import OrgGroupDTO from huaweicloudsdkmeeting.v1.model.org_property_dto import OrgPropertyDTO from huaweicloudsdkmeeting.v1.model.page_participant import PageParticipant diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_async_client.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_async_client.py index 8e609dbce1..9175a2b0dc 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_async_client.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_async_client.py @@ -3028,6 +3028,75 @@ def invite_participant_with_http_info(self, request): request_type=request.__class__.__name__) + def invite_share_async(self, request): + """邀请共享 + + 场景描述:主席邀请、取消邀请会场共享 功能描述:主席邀请、取消邀请会场共享 + + :param InviteShareRequest request + :return: InviteShareResponse + """ + return self.invite_share_with_http_info(request) + + def invite_share_with_http_info(self, request): + """邀请共享 + + 场景描述:主席邀请、取消邀请会场共享 功能描述:主席邀请、取消邀请会场共享 + + :param InviteShareRequest request + :return: InviteShareResponse + """ + + all_params = ['conference_id', 'participant_id', 'x_conference_authorization', 'req_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'conference_id' in local_var_params: + query_params.append(('conferenceID', local_var_params['conference_id'])) + if 'participant_id' in local_var_params: + query_params.append(('participantID', local_var_params['participant_id'])) + + header_params = {} + if 'x_conference_authorization' in local_var_params: + header_params['X-Conference-Authorization'] = local_var_params['x_conference_authorization'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/mmc/control/conferences/participants/share/invite', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='InviteShareResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def invite_user_async(self, request): """邀请用户 diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_client.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_client.py index 5c48a6d168..8ab3379a37 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_client.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_client.py @@ -3028,6 +3028,75 @@ def invite_participant_with_http_info(self, request): request_type=request.__class__.__name__) + def invite_share(self, request): + """邀请共享 + + 场景描述:主席邀请、取消邀请会场共享 功能描述:主席邀请、取消邀请会场共享 + + :param InviteShareRequest request + :return: InviteShareResponse + """ + return self.invite_share_with_http_info(request) + + def invite_share_with_http_info(self, request): + """邀请共享 + + 场景描述:主席邀请、取消邀请会场共享 功能描述:主席邀请、取消邀请会场共享 + + :param InviteShareRequest request + :return: InviteShareResponse + """ + + all_params = ['conference_id', 'participant_id', 'x_conference_authorization', 'req_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'conference_id' in local_var_params: + query_params.append(('conferenceID', local_var_params['conference_id'])) + if 'participant_id' in local_var_params: + query_params.append(('participantID', local_var_params['participant_id'])) + + header_params = {} + if 'x_conference_authorization' in local_var_params: + header_params['X-Conference-Authorization'] = local_var_params['x_conference_authorization'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/mmc/control/conferences/participants/share/invite', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='InviteShareResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def invite_user(self, request): """邀请用户 diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/__init__.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/__init__.py index b5d7ca8af7..93e42e72b2 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/__init__.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/__init__.py @@ -116,6 +116,9 @@ from huaweicloudsdkmeeting.v1.model.image_moderation_result import ImageModerationResult from huaweicloudsdkmeeting.v1.model.invite_participant_request import InviteParticipantRequest from huaweicloudsdkmeeting.v1.model.invite_participant_response import InviteParticipantResponse +from huaweicloudsdkmeeting.v1.model.invite_share_dto import InviteShareDTO +from huaweicloudsdkmeeting.v1.model.invite_share_request import InviteShareRequest +from huaweicloudsdkmeeting.v1.model.invite_share_response import InviteShareResponse from huaweicloudsdkmeeting.v1.model.invite_user_request import InviteUserRequest from huaweicloudsdkmeeting.v1.model.invite_user_response import InviteUserResponse from huaweicloudsdkmeeting.v1.model.invite_with_pwd_request import InviteWithPwdRequest @@ -160,6 +163,9 @@ from huaweicloudsdkmeeting.v1.model.open_schedule_conf_req import OpenScheduleConfReq from huaweicloudsdkmeeting.v1.model.open_upload_file_info import OpenUploadFileInfo from huaweicloudsdkmeeting.v1.model.open_webinar_base_info import OpenWebinarBaseInfo +from huaweicloudsdkmeeting.v1.model.open_webinar_history_info import OpenWebinarHistoryInfo +from huaweicloudsdkmeeting.v1.model.open_webinar_ongoing_info import OpenWebinarOngoingInfo +from huaweicloudsdkmeeting.v1.model.open_webinar_upcoming_info import OpenWebinarUpcomingInfo from huaweicloudsdkmeeting.v1.model.org_group_dto import OrgGroupDTO from huaweicloudsdkmeeting.v1.model.org_property_dto import OrgPropertyDTO from huaweicloudsdkmeeting.v1.model.page_participant import PageParticipant diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/create_webinar_response.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/create_webinar_response.py index 4e6ad4edcc..d5fc3792f7 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/create_webinar_response.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/create_webinar_response.py @@ -43,7 +43,8 @@ class CreateWebinarResponse(SdkResponse): 'guest_join_uri': 'str', 'guest_passwd': 'str', 'audience_join_uri': 'str', - 'audience_passwd': 'str' + 'audience_passwd': 'str', + 'attendees': 'list[str]' } attribute_map = { @@ -67,10 +68,11 @@ class CreateWebinarResponse(SdkResponse): 'guest_join_uri': 'guestJoinUri', 'guest_passwd': 'guestPasswd', 'audience_join_uri': 'audienceJoinUri', - 'audience_passwd': 'audiencePasswd' + 'audience_passwd': 'audiencePasswd', + 'attendees': 'attendees' } - def __init__(self, conference_id=None, corp_id=None, subject=None, description=None, start_time=None, duration=None, time_zone_id=None, state=None, scheduser_id=None, dept_name=None, scheduser_name=None, vmr_pkg_name=None, call_restriction=None, scope=None, audience_scope=None, chair_join_uri=None, chair_passwd=None, guest_join_uri=None, guest_passwd=None, audience_join_uri=None, audience_passwd=None): + def __init__(self, conference_id=None, corp_id=None, subject=None, description=None, start_time=None, duration=None, time_zone_id=None, state=None, scheduser_id=None, dept_name=None, scheduser_name=None, vmr_pkg_name=None, call_restriction=None, scope=None, audience_scope=None, chair_join_uri=None, chair_passwd=None, guest_join_uri=None, guest_passwd=None, audience_join_uri=None, audience_passwd=None, attendees=None): """CreateWebinarResponse - a model defined in huaweicloud sdk""" super(CreateWebinarResponse, self).__init__() @@ -96,6 +98,7 @@ def __init__(self, conference_id=None, corp_id=None, subject=None, description=N self._guest_passwd = None self._audience_join_uri = None self._audience_passwd = None + self._attendees = None self.discriminator = None if conference_id is not None: @@ -140,6 +143,8 @@ def __init__(self, conference_id=None, corp_id=None, subject=None, description=N self.audience_join_uri = audience_join_uri if audience_passwd is not None: self.audience_passwd = audience_passwd + if attendees is not None: + self.attendees = attendees @property def conference_id(self): @@ -601,6 +606,26 @@ def audience_passwd(self, audience_passwd): """ self._audience_passwd = audience_passwd + @property + def attendees(self): + """Gets the attendees of this CreateWebinarResponse. + + + :return: The attendees of this CreateWebinarResponse. + :rtype: list[str] + """ + return self._attendees + + @attendees.setter + def attendees(self, attendees): + """Sets the attendees of this CreateWebinarResponse. + + + :param attendees: The attendees of this CreateWebinarResponse. + :type: list[str] + """ + self._attendees = attendees + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/invite_share_dto.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/invite_share_dto.py new file mode 100644 index 0000000000..4670506510 --- /dev/null +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/invite_share_dto.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class InviteShareDTO: + + + """ + 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 = { + 'share': 'int' + } + + attribute_map = { + 'share': 'share' + } + + def __init__(self, share=None): + """InviteShareDTO - a model defined in huaweicloud sdk""" + + + + self._share = None + self.discriminator = None + + if share is not None: + self.share = share + + @property + def share(self): + """Gets the share of this InviteShareDTO. + + 0:取消邀请 1:邀请 + + :return: The share of this InviteShareDTO. + :rtype: int + """ + return self._share + + @share.setter + def share(self, share): + """Sets the share of this InviteShareDTO. + + 0:取消邀请 1:邀请 + + :param share: The share of this InviteShareDTO. + :type: int + """ + self._share = share + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InviteShareDTO): + 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-meeting/huaweicloudsdkmeeting/v1/model/invite_share_request.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/invite_share_request.py new file mode 100644 index 0000000000..81eb270096 --- /dev/null +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/invite_share_request.py @@ -0,0 +1,186 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class InviteShareRequest: + + + """ + 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 = { + 'conference_id': 'str', + 'participant_id': 'str', + 'x_conference_authorization': 'str', + 'body': 'InviteShareDTO' + } + + attribute_map = { + 'conference_id': 'conferenceID', + 'participant_id': 'participantID', + 'x_conference_authorization': 'X-Conference-Authorization', + 'body': 'body' + } + + def __init__(self, conference_id=None, participant_id=None, x_conference_authorization=None, body=None): + """InviteShareRequest - a model defined in huaweicloud sdk""" + + + + self._conference_id = None + self._participant_id = None + self._x_conference_authorization = None + self._body = None + self.discriminator = None + + self.conference_id = conference_id + self.participant_id = participant_id + self.x_conference_authorization = x_conference_authorization + if body is not None: + self.body = body + + @property + def conference_id(self): + """Gets the conference_id of this InviteShareRequest. + + 会议id,创建会议时生成 + + :return: The conference_id of this InviteShareRequest. + :rtype: str + """ + return self._conference_id + + @conference_id.setter + def conference_id(self, conference_id): + """Sets the conference_id of this InviteShareRequest. + + 会议id,创建会议时生成 + + :param conference_id: The conference_id of this InviteShareRequest. + :type: str + """ + self._conference_id = conference_id + + @property + def participant_id(self): + """Gets the participant_id of this InviteShareRequest. + + 会场id,可以通过查询会场id接口获取 + + :return: The participant_id of this InviteShareRequest. + :rtype: str + """ + return self._participant_id + + @participant_id.setter + def participant_id(self, participant_id): + """Sets the participant_id of this InviteShareRequest. + + 会场id,可以通过查询会场id接口获取 + + :param participant_id: The participant_id of this InviteShareRequest. + :type: str + """ + self._participant_id = participant_id + + @property + def x_conference_authorization(self): + """Gets the x_conference_authorization of this InviteShareRequest. + + 会控授权令牌,通过调用申请会控token的接口生成 + + :return: The x_conference_authorization of this InviteShareRequest. + :rtype: str + """ + return self._x_conference_authorization + + @x_conference_authorization.setter + def x_conference_authorization(self, x_conference_authorization): + """Sets the x_conference_authorization of this InviteShareRequest. + + 会控授权令牌,通过调用申请会控token的接口生成 + + :param x_conference_authorization: The x_conference_authorization of this InviteShareRequest. + :type: str + """ + self._x_conference_authorization = x_conference_authorization + + @property + def body(self): + """Gets the body of this InviteShareRequest. + + + :return: The body of this InviteShareRequest. + :rtype: InviteShareDTO + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this InviteShareRequest. + + + :param body: The body of this InviteShareRequest. + :type: InviteShareDTO + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InviteShareRequest): + 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-meeting/huaweicloudsdkmeeting/v1/model/invite_share_response.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/invite_share_response.py new file mode 100644 index 0000000000..0c2e39e1d7 --- /dev/null +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/invite_share_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class InviteShareResponse(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 = { + 'return_code': 'int', + 'return_desc': 'str' + } + + attribute_map = { + 'return_code': 'returnCode', + 'return_desc': 'returnDesc' + } + + def __init__(self, return_code=None, return_desc=None): + """InviteShareResponse - a model defined in huaweicloud sdk""" + + super(InviteShareResponse, self).__init__() + + self._return_code = None + self._return_desc = None + self.discriminator = None + + if return_code is not None: + self.return_code = return_code + if return_desc is not None: + self.return_desc = return_desc + + @property + def return_code(self): + """Gets the return_code of this InviteShareResponse. + + 结果码 + + :return: The return_code of this InviteShareResponse. + :rtype: int + """ + return self._return_code + + @return_code.setter + def return_code(self, return_code): + """Sets the return_code of this InviteShareResponse. + + 结果码 + + :param return_code: The return_code of this InviteShareResponse. + :type: int + """ + self._return_code = return_code + + @property + def return_desc(self): + """Gets the return_desc of this InviteShareResponse. + + 结果描述 + + :return: The return_desc of this InviteShareResponse. + :rtype: str + """ + return self._return_desc + + @return_desc.setter + def return_desc(self, return_desc): + """Sets the return_desc of this InviteShareResponse. + + 结果描述 + + :param return_desc: The return_desc of this InviteShareResponse. + :type: str + """ + self._return_desc = return_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InviteShareResponse): + 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-meeting/huaweicloudsdkmeeting/v1/model/list_history_webinars_response.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/list_history_webinars_response.py index 598b14f412..da73178f1f 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/list_history_webinars_response.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/list_history_webinars_response.py @@ -25,16 +25,18 @@ class ListHistoryWebinarsResponse(SdkResponse): openapi_types = { 'offset': 'int', 'limit': 'int', - 'count': 'int' + 'count': 'int', + 'data': 'list[OpenWebinarHistoryInfo]' } attribute_map = { 'offset': 'offset', 'limit': 'limit', - 'count': 'count' + 'count': 'count', + 'data': 'data' } - def __init__(self, offset=None, limit=None, count=None): + def __init__(self, offset=None, limit=None, count=None, data=None): """ListHistoryWebinarsResponse - a model defined in huaweicloud sdk""" super(ListHistoryWebinarsResponse, self).__init__() @@ -42,11 +44,14 @@ def __init__(self, offset=None, limit=None, count=None): self._offset = None self._limit = None self._count = None + self._data = None self.discriminator = None self.offset = offset self.limit = limit self.count = count + if data is not None: + self.data = data @property def offset(self): @@ -114,6 +119,26 @@ def count(self, count): """ self._count = count + @property + def data(self): + """Gets the data of this ListHistoryWebinarsResponse. + + + :return: The data of this ListHistoryWebinarsResponse. + :rtype: list[OpenWebinarHistoryInfo] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListHistoryWebinarsResponse. + + + :param data: The data of this ListHistoryWebinarsResponse. + :type: list[OpenWebinarHistoryInfo] + """ + self._data = data + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/list_ongoing_webinars_response.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/list_ongoing_webinars_response.py index 7be401d673..4da9df2d4d 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/list_ongoing_webinars_response.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/list_ongoing_webinars_response.py @@ -25,16 +25,18 @@ class ListOngoingWebinarsResponse(SdkResponse): openapi_types = { 'offset': 'int', 'limit': 'int', - 'count': 'int' + 'count': 'int', + 'data': 'list[OpenWebinarOngoingInfo]' } attribute_map = { 'offset': 'offset', 'limit': 'limit', - 'count': 'count' + 'count': 'count', + 'data': 'data' } - def __init__(self, offset=None, limit=None, count=None): + def __init__(self, offset=None, limit=None, count=None, data=None): """ListOngoingWebinarsResponse - a model defined in huaweicloud sdk""" super(ListOngoingWebinarsResponse, self).__init__() @@ -42,11 +44,14 @@ def __init__(self, offset=None, limit=None, count=None): self._offset = None self._limit = None self._count = None + self._data = None self.discriminator = None self.offset = offset self.limit = limit self.count = count + if data is not None: + self.data = data @property def offset(self): @@ -114,6 +119,26 @@ def count(self, count): """ self._count = count + @property + def data(self): + """Gets the data of this ListOngoingWebinarsResponse. + + + :return: The data of this ListOngoingWebinarsResponse. + :rtype: list[OpenWebinarOngoingInfo] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListOngoingWebinarsResponse. + + + :param data: The data of this ListOngoingWebinarsResponse. + :type: list[OpenWebinarOngoingInfo] + """ + self._data = data + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/list_up_coming_webinars_response.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/list_up_coming_webinars_response.py index f38dbd89fb..2b4e8dd001 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/list_up_coming_webinars_response.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/list_up_coming_webinars_response.py @@ -25,16 +25,18 @@ class ListUpComingWebinarsResponse(SdkResponse): openapi_types = { 'offset': 'int', 'limit': 'int', - 'count': 'int' + 'count': 'int', + 'data': 'list[OpenWebinarUpcomingInfo]' } attribute_map = { 'offset': 'offset', 'limit': 'limit', - 'count': 'count' + 'count': 'count', + 'data': 'data' } - def __init__(self, offset=None, limit=None, count=None): + def __init__(self, offset=None, limit=None, count=None, data=None): """ListUpComingWebinarsResponse - a model defined in huaweicloud sdk""" super(ListUpComingWebinarsResponse, self).__init__() @@ -42,11 +44,14 @@ def __init__(self, offset=None, limit=None, count=None): self._offset = None self._limit = None self._count = None + self._data = None self.discriminator = None self.offset = offset self.limit = limit self.count = count + if data is not None: + self.data = data @property def offset(self): @@ -114,6 +119,26 @@ def count(self, count): """ self._count = count + @property + def data(self): + """Gets the data of this ListUpComingWebinarsResponse. + + + :return: The data of this ListUpComingWebinarsResponse. + :rtype: list[OpenWebinarUpcomingInfo] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListUpComingWebinarsResponse. + + + :param data: The data of this ListUpComingWebinarsResponse. + :type: list[OpenWebinarUpcomingInfo] + """ + self._data = data + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/open_attendee_entity.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/open_attendee_entity.py index d013cb1741..bd55e0718c 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/open_attendee_entity.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/open_attendee_entity.py @@ -30,7 +30,6 @@ class OpenAttendeeEntity: 'phone': 'str', 'email': 'str', 'sms': 'str', - 'is_external_contact': 'bool', 'is_hard_terminal': 'bool' } @@ -42,11 +41,10 @@ class OpenAttendeeEntity: 'phone': 'phone', 'email': 'email', 'sms': 'sms', - 'is_external_contact': 'isExternalContact', 'is_hard_terminal': 'isHardTerminal' } - def __init__(self, app_id=None, user_account=None, user_name=None, dept_name=None, phone=None, email=None, sms=None, is_external_contact=None, is_hard_terminal=None): + def __init__(self, app_id=None, user_account=None, user_name=None, dept_name=None, phone=None, email=None, sms=None, is_hard_terminal=None): """OpenAttendeeEntity - a model defined in huaweicloud sdk""" @@ -58,7 +56,6 @@ def __init__(self, app_id=None, user_account=None, user_name=None, dept_name=Non self._phone = None self._email = None self._sms = None - self._is_external_contact = None self._is_hard_terminal = None self.discriminator = None @@ -75,8 +72,6 @@ def __init__(self, app_id=None, user_account=None, user_name=None, dept_name=Non self.email = email if sms is not None: self.sms = sms - if is_external_contact is not None: - self.is_external_contact = is_external_contact if is_hard_terminal is not None: self.is_hard_terminal = is_hard_terminal @@ -234,28 +229,6 @@ def sms(self, sms): """ self._sms = sms - @property - def is_external_contact(self): - """Gets the is_external_contact of this OpenAttendeeEntity. - - 是否外部联系人。 - - :return: The is_external_contact of this OpenAttendeeEntity. - :rtype: bool - """ - return self._is_external_contact - - @is_external_contact.setter - def is_external_contact(self, is_external_contact): - """Sets the is_external_contact of this OpenAttendeeEntity. - - 是否外部联系人。 - - :param is_external_contact: The is_external_contact of this OpenAttendeeEntity. - :type: bool - """ - self._is_external_contact = is_external_contact - @property def is_hard_terminal(self): """Gets the is_hard_terminal of this OpenAttendeeEntity. diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/open_webinar_history_info.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/open_webinar_history_info.py new file mode 100644 index 0000000000..5f77fbd92c --- /dev/null +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/open_webinar_history_info.py @@ -0,0 +1,596 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class OpenWebinarHistoryInfo: + + + """ + 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 = { + 'conference_id': 'str', + 'conf_uuid': 'str', + 'subject': 'str', + 'scheduser_name': 'str', + 'moderator': 'str', + 'dept_name': 'str', + 'time_zone_id': 'int', + 'start_time': 'str', + 'duration': 'int', + 'actual_start_time': 'str', + 'end_time': 'str', + 'actual_duration': 'int', + 'attendee_count': 'int', + 'chair_count': 'int', + 'guest_count': 'int', + 'audience_count': 'int', + 'vmr_id': 'str', + 'vmr_pkg_audience_parties': 'int', + 'vmr_pkg_name': 'str' + } + + attribute_map = { + 'conference_id': 'conferenceId', + 'conf_uuid': 'confUUID', + 'subject': 'subject', + 'scheduser_name': 'scheduserName', + 'moderator': 'moderator', + 'dept_name': 'deptName', + 'time_zone_id': 'timeZoneId', + 'start_time': 'startTime', + 'duration': 'duration', + 'actual_start_time': 'actualStartTime', + 'end_time': 'endTime', + 'actual_duration': 'actualDuration', + 'attendee_count': 'attendeeCount', + 'chair_count': 'chairCount', + 'guest_count': 'guestCount', + 'audience_count': 'audienceCount', + 'vmr_id': 'vmrId', + 'vmr_pkg_audience_parties': 'vmrPkgAudienceParties', + 'vmr_pkg_name': 'vmrPkgName' + } + + def __init__(self, conference_id=None, conf_uuid=None, subject=None, scheduser_name=None, moderator=None, dept_name=None, time_zone_id=None, start_time=None, duration=None, actual_start_time=None, end_time=None, actual_duration=None, attendee_count=None, chair_count=None, guest_count=None, audience_count=None, vmr_id=None, vmr_pkg_audience_parties=None, vmr_pkg_name=None): + """OpenWebinarHistoryInfo - a model defined in huaweicloud sdk""" + + + + self._conference_id = None + self._conf_uuid = None + self._subject = None + self._scheduser_name = None + self._moderator = None + self._dept_name = None + self._time_zone_id = None + self._start_time = None + self._duration = None + self._actual_start_time = None + self._end_time = None + self._actual_duration = None + self._attendee_count = None + self._chair_count = None + self._guest_count = None + self._audience_count = None + self._vmr_id = None + self._vmr_pkg_audience_parties = None + self._vmr_pkg_name = None + self.discriminator = None + + if conference_id is not None: + self.conference_id = conference_id + if conf_uuid is not None: + self.conf_uuid = conf_uuid + if subject is not None: + self.subject = subject + if scheduser_name is not None: + self.scheduser_name = scheduser_name + if moderator is not None: + self.moderator = moderator + if dept_name is not None: + self.dept_name = dept_name + if time_zone_id is not None: + self.time_zone_id = time_zone_id + if start_time is not None: + self.start_time = start_time + if duration is not None: + self.duration = duration + if actual_start_time is not None: + self.actual_start_time = actual_start_time + if end_time is not None: + self.end_time = end_time + if actual_duration is not None: + self.actual_duration = actual_duration + if attendee_count is not None: + self.attendee_count = attendee_count + if chair_count is not None: + self.chair_count = chair_count + if guest_count is not None: + self.guest_count = guest_count + if audience_count is not None: + self.audience_count = audience_count + if vmr_id is not None: + self.vmr_id = vmr_id + if vmr_pkg_audience_parties is not None: + self.vmr_pkg_audience_parties = vmr_pkg_audience_parties + if vmr_pkg_name is not None: + self.vmr_pkg_name = vmr_pkg_name + + @property + def conference_id(self): + """Gets the conference_id of this OpenWebinarHistoryInfo. + + 会议id + + :return: The conference_id of this OpenWebinarHistoryInfo. + :rtype: str + """ + return self._conference_id + + @conference_id.setter + def conference_id(self, conference_id): + """Sets the conference_id of this OpenWebinarHistoryInfo. + + 会议id + + :param conference_id: The conference_id of this OpenWebinarHistoryInfo. + :type: str + """ + self._conference_id = conference_id + + @property + def conf_uuid(self): + """Gets the conf_uuid of this OpenWebinarHistoryInfo. + + 会议UUID + + :return: The conf_uuid of this OpenWebinarHistoryInfo. + :rtype: str + """ + return self._conf_uuid + + @conf_uuid.setter + def conf_uuid(self, conf_uuid): + """Sets the conf_uuid of this OpenWebinarHistoryInfo. + + 会议UUID + + :param conf_uuid: The conf_uuid of this OpenWebinarHistoryInfo. + :type: str + """ + self._conf_uuid = conf_uuid + + @property + def subject(self): + """Gets the subject of this OpenWebinarHistoryInfo. + + 主题 + + :return: The subject of this OpenWebinarHistoryInfo. + :rtype: str + """ + return self._subject + + @subject.setter + def subject(self, subject): + """Sets the subject of this OpenWebinarHistoryInfo. + + 主题 + + :param subject: The subject of this OpenWebinarHistoryInfo. + :type: str + """ + self._subject = subject + + @property + def scheduser_name(self): + """Gets the scheduser_name of this OpenWebinarHistoryInfo. + + 会议订阅者 + + :return: The scheduser_name of this OpenWebinarHistoryInfo. + :rtype: str + """ + return self._scheduser_name + + @scheduser_name.setter + def scheduser_name(self, scheduser_name): + """Sets the scheduser_name of this OpenWebinarHistoryInfo. + + 会议订阅者 + + :param scheduser_name: The scheduser_name of this OpenWebinarHistoryInfo. + :type: str + """ + self._scheduser_name = scheduser_name + + @property + def moderator(self): + """Gets the moderator of this OpenWebinarHistoryInfo. + + 会议主持人 + + :return: The moderator of this OpenWebinarHistoryInfo. + :rtype: str + """ + return self._moderator + + @moderator.setter + def moderator(self, moderator): + """Sets the moderator of this OpenWebinarHistoryInfo. + + 会议主持人 + + :param moderator: The moderator of this OpenWebinarHistoryInfo. + :type: str + """ + self._moderator = moderator + + @property + def dept_name(self): + """Gets the dept_name of this OpenWebinarHistoryInfo. + + 部门名称 + + :return: The dept_name of this OpenWebinarHistoryInfo. + :rtype: str + """ + return self._dept_name + + @dept_name.setter + def dept_name(self, dept_name): + """Sets the dept_name of this OpenWebinarHistoryInfo. + + 部门名称 + + :param dept_name: The dept_name of this OpenWebinarHistoryInfo. + :type: str + """ + self._dept_name = dept_name + + @property + def time_zone_id(self): + """Gets the time_zone_id of this OpenWebinarHistoryInfo. + + 时区ID + + :return: The time_zone_id of this OpenWebinarHistoryInfo. + :rtype: int + """ + return self._time_zone_id + + @time_zone_id.setter + def time_zone_id(self, time_zone_id): + """Sets the time_zone_id of this OpenWebinarHistoryInfo. + + 时区ID + + :param time_zone_id: The time_zone_id of this OpenWebinarHistoryInfo. + :type: int + """ + self._time_zone_id = time_zone_id + + @property + def start_time(self): + """Gets the start_time of this OpenWebinarHistoryInfo. + + 会议预约时间 + + :return: The start_time of this OpenWebinarHistoryInfo. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this OpenWebinarHistoryInfo. + + 会议预约时间 + + :param start_time: The start_time of this OpenWebinarHistoryInfo. + :type: str + """ + self._start_time = start_time + + @property + def duration(self): + """Gets the duration of this OpenWebinarHistoryInfo. + + 预约会议时长,单位分钟 + + :return: The duration of this OpenWebinarHistoryInfo. + :rtype: int + """ + return self._duration + + @duration.setter + def duration(self, duration): + """Sets the duration of this OpenWebinarHistoryInfo. + + 预约会议时长,单位分钟 + + :param duration: The duration of this OpenWebinarHistoryInfo. + :type: int + """ + self._duration = duration + + @property + def actual_start_time(self): + """Gets the actual_start_time of this OpenWebinarHistoryInfo. + + 会议开始时间 + + :return: The actual_start_time of this OpenWebinarHistoryInfo. + :rtype: str + """ + return self._actual_start_time + + @actual_start_time.setter + def actual_start_time(self, actual_start_time): + """Sets the actual_start_time of this OpenWebinarHistoryInfo. + + 会议开始时间 + + :param actual_start_time: The actual_start_time of this OpenWebinarHistoryInfo. + :type: str + """ + self._actual_start_time = actual_start_time + + @property + def end_time(self): + """Gets the end_time of this OpenWebinarHistoryInfo. + + 会议结束时间 + + :return: The end_time of this OpenWebinarHistoryInfo. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this OpenWebinarHistoryInfo. + + 会议结束时间 + + :param end_time: The end_time of this OpenWebinarHistoryInfo. + :type: str + """ + self._end_time = end_time + + @property + def actual_duration(self): + """Gets the actual_duration of this OpenWebinarHistoryInfo. + + 实际会议时长,单位分钟 + + :return: The actual_duration of this OpenWebinarHistoryInfo. + :rtype: int + """ + return self._actual_duration + + @actual_duration.setter + def actual_duration(self, actual_duration): + """Sets the actual_duration of this OpenWebinarHistoryInfo. + + 实际会议时长,单位分钟 + + :param actual_duration: The actual_duration of this OpenWebinarHistoryInfo. + :type: int + """ + self._actual_duration = actual_duration + + @property + def attendee_count(self): + """Gets the attendee_count of this OpenWebinarHistoryInfo. + + 与会人数 + + :return: The attendee_count of this OpenWebinarHistoryInfo. + :rtype: int + """ + return self._attendee_count + + @attendee_count.setter + def attendee_count(self, attendee_count): + """Sets the attendee_count of this OpenWebinarHistoryInfo. + + 与会人数 + + :param attendee_count: The attendee_count of this OpenWebinarHistoryInfo. + :type: int + """ + self._attendee_count = attendee_count + + @property + def chair_count(self): + """Gets the chair_count of this OpenWebinarHistoryInfo. + + 主持人人数 + + :return: The chair_count of this OpenWebinarHistoryInfo. + :rtype: int + """ + return self._chair_count + + @chair_count.setter + def chair_count(self, chair_count): + """Sets the chair_count of this OpenWebinarHistoryInfo. + + 主持人人数 + + :param chair_count: The chair_count of this OpenWebinarHistoryInfo. + :type: int + """ + self._chair_count = chair_count + + @property + def guest_count(self): + """Gets the guest_count of this OpenWebinarHistoryInfo. + + 嘉宾人数 + + :return: The guest_count of this OpenWebinarHistoryInfo. + :rtype: int + """ + return self._guest_count + + @guest_count.setter + def guest_count(self, guest_count): + """Sets the guest_count of this OpenWebinarHistoryInfo. + + 嘉宾人数 + + :param guest_count: The guest_count of this OpenWebinarHistoryInfo. + :type: int + """ + self._guest_count = guest_count + + @property + def audience_count(self): + """Gets the audience_count of this OpenWebinarHistoryInfo. + + 观众人数 + + :return: The audience_count of this OpenWebinarHistoryInfo. + :rtype: int + """ + return self._audience_count + + @audience_count.setter + def audience_count(self, audience_count): + """Sets the audience_count of this OpenWebinarHistoryInfo. + + 观众人数 + + :param audience_count: The audience_count of this OpenWebinarHistoryInfo. + :type: int + """ + self._audience_count = audience_count + + @property + def vmr_id(self): + """Gets the vmr_id of this OpenWebinarHistoryInfo. + + VMR ID + + :return: The vmr_id of this OpenWebinarHistoryInfo. + :rtype: str + """ + return self._vmr_id + + @vmr_id.setter + def vmr_id(self, vmr_id): + """Sets the vmr_id of this OpenWebinarHistoryInfo. + + VMR ID + + :param vmr_id: The vmr_id of this OpenWebinarHistoryInfo. + :type: str + """ + self._vmr_id = vmr_id + + @property + def vmr_pkg_audience_parties(self): + """Gets the vmr_pkg_audience_parties of this OpenWebinarHistoryInfo. + + VMR资源规格-最大观众数 + + :return: The vmr_pkg_audience_parties of this OpenWebinarHistoryInfo. + :rtype: int + """ + return self._vmr_pkg_audience_parties + + @vmr_pkg_audience_parties.setter + def vmr_pkg_audience_parties(self, vmr_pkg_audience_parties): + """Sets the vmr_pkg_audience_parties of this OpenWebinarHistoryInfo. + + VMR资源规格-最大观众数 + + :param vmr_pkg_audience_parties: The vmr_pkg_audience_parties of this OpenWebinarHistoryInfo. + :type: int + """ + self._vmr_pkg_audience_parties = vmr_pkg_audience_parties + + @property + def vmr_pkg_name(self): + """Gets the vmr_pkg_name of this OpenWebinarHistoryInfo. + + 网络研讨会资源名 + + :return: The vmr_pkg_name of this OpenWebinarHistoryInfo. + :rtype: str + """ + return self._vmr_pkg_name + + @vmr_pkg_name.setter + def vmr_pkg_name(self, vmr_pkg_name): + """Sets the vmr_pkg_name of this OpenWebinarHistoryInfo. + + 网络研讨会资源名 + + :param vmr_pkg_name: The vmr_pkg_name of this OpenWebinarHistoryInfo. + :type: str + """ + self._vmr_pkg_name = vmr_pkg_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, OpenWebinarHistoryInfo): + 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-meeting/huaweicloudsdkmeeting/v1/model/open_webinar_ongoing_info.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/open_webinar_ongoing_info.py new file mode 100644 index 0000000000..386c74914a --- /dev/null +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/open_webinar_ongoing_info.py @@ -0,0 +1,569 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class OpenWebinarOngoingInfo: + + + """ + 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 = { + 'online_attendee_count': 'int', + 'conf_uuid': 'str', + 'dept_name': 'str', + 'conference_id': 'str', + 'corp_id': 'str', + 'subject': 'str', + 'description': 'str', + 'start_time': 'str', + 'time_zone_id': 'int', + 'scheduser_id': 'str', + 'scheduser_name': 'str', + 'vmr_pkg_name': 'str', + 'chair_join_uri': 'str', + 'chair_passwd': 'str', + 'guest_join_uri': 'str', + 'guest_passwd': 'str', + 'audience_join_uri': 'str', + 'audience_passwd': 'str' + } + + attribute_map = { + 'online_attendee_count': 'onlineAttendeeCount', + 'conf_uuid': 'confUUID', + 'dept_name': 'deptName', + 'conference_id': 'conferenceId', + 'corp_id': 'corpId', + 'subject': 'subject', + 'description': 'description', + 'start_time': 'startTime', + 'time_zone_id': 'timeZoneId', + 'scheduser_id': 'scheduserId', + 'scheduser_name': 'scheduserName', + 'vmr_pkg_name': 'vmrPkgName', + 'chair_join_uri': 'chairJoinUri', + 'chair_passwd': 'chairPasswd', + 'guest_join_uri': 'guestJoinUri', + 'guest_passwd': 'guestPasswd', + 'audience_join_uri': 'audienceJoinUri', + 'audience_passwd': 'audiencePasswd' + } + + def __init__(self, online_attendee_count=None, conf_uuid=None, dept_name=None, conference_id=None, corp_id=None, subject=None, description=None, start_time=None, time_zone_id=None, scheduser_id=None, scheduser_name=None, vmr_pkg_name=None, chair_join_uri=None, chair_passwd=None, guest_join_uri=None, guest_passwd=None, audience_join_uri=None, audience_passwd=None): + """OpenWebinarOngoingInfo - a model defined in huaweicloud sdk""" + + + + self._online_attendee_count = None + self._conf_uuid = None + self._dept_name = None + self._conference_id = None + self._corp_id = None + self._subject = None + self._description = None + self._start_time = None + self._time_zone_id = None + self._scheduser_id = None + self._scheduser_name = None + self._vmr_pkg_name = None + self._chair_join_uri = None + self._chair_passwd = None + self._guest_join_uri = None + self._guest_passwd = None + self._audience_join_uri = None + self._audience_passwd = None + self.discriminator = None + + if online_attendee_count is not None: + self.online_attendee_count = online_attendee_count + if conf_uuid is not None: + self.conf_uuid = conf_uuid + if dept_name is not None: + self.dept_name = dept_name + if conference_id is not None: + self.conference_id = conference_id + if corp_id is not None: + self.corp_id = corp_id + if subject is not None: + self.subject = subject + if description is not None: + self.description = description + if start_time is not None: + self.start_time = start_time + if time_zone_id is not None: + self.time_zone_id = time_zone_id + if scheduser_id is not None: + self.scheduser_id = scheduser_id + if scheduser_name is not None: + self.scheduser_name = scheduser_name + if vmr_pkg_name is not None: + self.vmr_pkg_name = vmr_pkg_name + if chair_join_uri is not None: + self.chair_join_uri = chair_join_uri + if chair_passwd is not None: + self.chair_passwd = chair_passwd + if guest_join_uri is not None: + self.guest_join_uri = guest_join_uri + if guest_passwd is not None: + self.guest_passwd = guest_passwd + if audience_join_uri is not None: + self.audience_join_uri = audience_join_uri + if audience_passwd is not None: + self.audience_passwd = audience_passwd + + @property + def online_attendee_count(self): + """Gets the online_attendee_count of this OpenWebinarOngoingInfo. + + 实时在线人数 + + :return: The online_attendee_count of this OpenWebinarOngoingInfo. + :rtype: int + """ + return self._online_attendee_count + + @online_attendee_count.setter + def online_attendee_count(self, online_attendee_count): + """Sets the online_attendee_count of this OpenWebinarOngoingInfo. + + 实时在线人数 + + :param online_attendee_count: The online_attendee_count of this OpenWebinarOngoingInfo. + :type: int + """ + self._online_attendee_count = online_attendee_count + + @property + def conf_uuid(self): + """Gets the conf_uuid of this OpenWebinarOngoingInfo. + + 会议UUID + + :return: The conf_uuid of this OpenWebinarOngoingInfo. + :rtype: str + """ + return self._conf_uuid + + @conf_uuid.setter + def conf_uuid(self, conf_uuid): + """Sets the conf_uuid of this OpenWebinarOngoingInfo. + + 会议UUID + + :param conf_uuid: The conf_uuid of this OpenWebinarOngoingInfo. + :type: str + """ + self._conf_uuid = conf_uuid + + @property + def dept_name(self): + """Gets the dept_name of this OpenWebinarOngoingInfo. + + 预订人部门 + + :return: The dept_name of this OpenWebinarOngoingInfo. + :rtype: str + """ + return self._dept_name + + @dept_name.setter + def dept_name(self, dept_name): + """Sets the dept_name of this OpenWebinarOngoingInfo. + + 预订人部门 + + :param dept_name: The dept_name of this OpenWebinarOngoingInfo. + :type: str + """ + self._dept_name = dept_name + + @property + def conference_id(self): + """Gets the conference_id of this OpenWebinarOngoingInfo. + + 会议ID。长度限制为32个字符。 + + :return: The conference_id of this OpenWebinarOngoingInfo. + :rtype: str + """ + return self._conference_id + + @conference_id.setter + def conference_id(self, conference_id): + """Sets the conference_id of this OpenWebinarOngoingInfo. + + 会议ID。长度限制为32个字符。 + + :param conference_id: The conference_id of this OpenWebinarOngoingInfo. + :type: str + """ + self._conference_id = conference_id + + @property + def corp_id(self): + """Gets the corp_id of this OpenWebinarOngoingInfo. + + 企业id + + :return: The corp_id of this OpenWebinarOngoingInfo. + :rtype: str + """ + return self._corp_id + + @corp_id.setter + def corp_id(self, corp_id): + """Sets the corp_id of this OpenWebinarOngoingInfo. + + 企业id + + :param corp_id: The corp_id of this OpenWebinarOngoingInfo. + :type: str + """ + self._corp_id = corp_id + + @property + def subject(self): + """Gets the subject of this OpenWebinarOngoingInfo. + + 主题 + + :return: The subject of this OpenWebinarOngoingInfo. + :rtype: str + """ + return self._subject + + @subject.setter + def subject(self, subject): + """Sets the subject of this OpenWebinarOngoingInfo. + + 主题 + + :param subject: The subject of this OpenWebinarOngoingInfo. + :type: str + """ + self._subject = subject + + @property + def description(self): + """Gets the description of this OpenWebinarOngoingInfo. + + 描述 + + :return: The description of this OpenWebinarOngoingInfo. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this OpenWebinarOngoingInfo. + + 描述 + + :param description: The description of this OpenWebinarOngoingInfo. + :type: str + """ + self._description = description + + @property + def start_time(self): + """Gets the start_time of this OpenWebinarOngoingInfo. + + 会议召开时间 + + :return: The start_time of this OpenWebinarOngoingInfo. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this OpenWebinarOngoingInfo. + + 会议召开时间 + + :param start_time: The start_time of this OpenWebinarOngoingInfo. + :type: str + """ + self._start_time = start_time + + @property + def time_zone_id(self): + """Gets the time_zone_id of this OpenWebinarOngoingInfo. + + 时区ID + + :return: The time_zone_id of this OpenWebinarOngoingInfo. + :rtype: int + """ + return self._time_zone_id + + @time_zone_id.setter + def time_zone_id(self, time_zone_id): + """Sets the time_zone_id of this OpenWebinarOngoingInfo. + + 时区ID + + :param time_zone_id: The time_zone_id of this OpenWebinarOngoingInfo. + :type: int + """ + self._time_zone_id = time_zone_id + + @property + def scheduser_id(self): + """Gets the scheduser_id of this OpenWebinarOngoingInfo. + + 会议预订者ID + + :return: The scheduser_id of this OpenWebinarOngoingInfo. + :rtype: str + """ + return self._scheduser_id + + @scheduser_id.setter + def scheduser_id(self, scheduser_id): + """Sets the scheduser_id of this OpenWebinarOngoingInfo. + + 会议预订者ID + + :param scheduser_id: The scheduser_id of this OpenWebinarOngoingInfo. + :type: str + """ + self._scheduser_id = scheduser_id + + @property + def scheduser_name(self): + """Gets the scheduser_name of this OpenWebinarOngoingInfo. + + 会议预订者帐号名称。长度最大限制为96个字符。 + + :return: The scheduser_name of this OpenWebinarOngoingInfo. + :rtype: str + """ + return self._scheduser_name + + @scheduser_name.setter + def scheduser_name(self, scheduser_name): + """Sets the scheduser_name of this OpenWebinarOngoingInfo. + + 会议预订者帐号名称。长度最大限制为96个字符。 + + :param scheduser_name: The scheduser_name of this OpenWebinarOngoingInfo. + :type: str + """ + self._scheduser_name = scheduser_name + + @property + def vmr_pkg_name(self): + """Gets the vmr_pkg_name of this OpenWebinarOngoingInfo. + + 网络研讨会资源名 + + :return: The vmr_pkg_name of this OpenWebinarOngoingInfo. + :rtype: str + """ + return self._vmr_pkg_name + + @vmr_pkg_name.setter + def vmr_pkg_name(self, vmr_pkg_name): + """Sets the vmr_pkg_name of this OpenWebinarOngoingInfo. + + 网络研讨会资源名 + + :param vmr_pkg_name: The vmr_pkg_name of this OpenWebinarOngoingInfo. + :type: str + """ + self._vmr_pkg_name = vmr_pkg_name + + @property + def chair_join_uri(self): + """Gets the chair_join_uri of this OpenWebinarOngoingInfo. + + 主持人入会地址。 + + :return: The chair_join_uri of this OpenWebinarOngoingInfo. + :rtype: str + """ + return self._chair_join_uri + + @chair_join_uri.setter + def chair_join_uri(self, chair_join_uri): + """Sets the chair_join_uri of this OpenWebinarOngoingInfo. + + 主持人入会地址。 + + :param chair_join_uri: The chair_join_uri of this OpenWebinarOngoingInfo. + :type: str + """ + self._chair_join_uri = chair_join_uri + + @property + def chair_passwd(self): + """Gets the chair_passwd of this OpenWebinarOngoingInfo. + + 主持人密码。 + + :return: The chair_passwd of this OpenWebinarOngoingInfo. + :rtype: str + """ + return self._chair_passwd + + @chair_passwd.setter + def chair_passwd(self, chair_passwd): + """Sets the chair_passwd of this OpenWebinarOngoingInfo. + + 主持人密码。 + + :param chair_passwd: The chair_passwd of this OpenWebinarOngoingInfo. + :type: str + """ + self._chair_passwd = chair_passwd + + @property + def guest_join_uri(self): + """Gets the guest_join_uri of this OpenWebinarOngoingInfo. + + 嘉宾入会地址。 + + :return: The guest_join_uri of this OpenWebinarOngoingInfo. + :rtype: str + """ + return self._guest_join_uri + + @guest_join_uri.setter + def guest_join_uri(self, guest_join_uri): + """Sets the guest_join_uri of this OpenWebinarOngoingInfo. + + 嘉宾入会地址。 + + :param guest_join_uri: The guest_join_uri of this OpenWebinarOngoingInfo. + :type: str + """ + self._guest_join_uri = guest_join_uri + + @property + def guest_passwd(self): + """Gets the guest_passwd of this OpenWebinarOngoingInfo. + + 嘉宾密码。 + + :return: The guest_passwd of this OpenWebinarOngoingInfo. + :rtype: str + """ + return self._guest_passwd + + @guest_passwd.setter + def guest_passwd(self, guest_passwd): + """Sets the guest_passwd of this OpenWebinarOngoingInfo. + + 嘉宾密码。 + + :param guest_passwd: The guest_passwd of this OpenWebinarOngoingInfo. + :type: str + """ + self._guest_passwd = guest_passwd + + @property + def audience_join_uri(self): + """Gets the audience_join_uri of this OpenWebinarOngoingInfo. + + 观众入会地址。 + + :return: The audience_join_uri of this OpenWebinarOngoingInfo. + :rtype: str + """ + return self._audience_join_uri + + @audience_join_uri.setter + def audience_join_uri(self, audience_join_uri): + """Sets the audience_join_uri of this OpenWebinarOngoingInfo. + + 观众入会地址。 + + :param audience_join_uri: The audience_join_uri of this OpenWebinarOngoingInfo. + :type: str + """ + self._audience_join_uri = audience_join_uri + + @property + def audience_passwd(self): + """Gets the audience_passwd of this OpenWebinarOngoingInfo. + + 观众密码。 + + :return: The audience_passwd of this OpenWebinarOngoingInfo. + :rtype: str + """ + return self._audience_passwd + + @audience_passwd.setter + def audience_passwd(self, audience_passwd): + """Sets the audience_passwd of this OpenWebinarOngoingInfo. + + 观众密码。 + + :param audience_passwd: The audience_passwd of this OpenWebinarOngoingInfo. + :type: str + """ + self._audience_passwd = audience_passwd + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, OpenWebinarOngoingInfo): + 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-meeting/huaweicloudsdkmeeting/v1/model/open_webinar_upcoming_info.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/open_webinar_upcoming_info.py new file mode 100644 index 0000000000..3335db6e47 --- /dev/null +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/open_webinar_upcoming_info.py @@ -0,0 +1,542 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class OpenWebinarUpcomingInfo: + + + """ + 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 = { + 'conference_id': 'str', + 'corp_id': 'str', + 'subject': 'str', + 'description': 'str', + 'start_time': 'str', + 'duration': 'int', + 'time_zone_id': 'int', + 'scheduser_id': 'str', + 'dept_name': 'str', + 'scheduser_name': 'str', + 'vmr_pkg_name': 'str', + 'chair_join_uri': 'str', + 'chair_passwd': 'str', + 'guest_join_uri': 'str', + 'guest_passwd': 'str', + 'audience_join_uri': 'str', + 'audience_passwd': 'str' + } + + attribute_map = { + 'conference_id': 'conferenceId', + 'corp_id': 'corpId', + 'subject': 'subject', + 'description': 'description', + 'start_time': 'startTime', + 'duration': 'duration', + 'time_zone_id': 'timeZoneId', + 'scheduser_id': 'scheduserId', + 'dept_name': 'deptName', + 'scheduser_name': 'scheduserName', + 'vmr_pkg_name': 'vmrPkgName', + 'chair_join_uri': 'chairJoinUri', + 'chair_passwd': 'chairPasswd', + 'guest_join_uri': 'guestJoinUri', + 'guest_passwd': 'guestPasswd', + 'audience_join_uri': 'audienceJoinUri', + 'audience_passwd': 'audiencePasswd' + } + + def __init__(self, conference_id=None, corp_id=None, subject=None, description=None, start_time=None, duration=None, time_zone_id=None, scheduser_id=None, dept_name=None, scheduser_name=None, vmr_pkg_name=None, chair_join_uri=None, chair_passwd=None, guest_join_uri=None, guest_passwd=None, audience_join_uri=None, audience_passwd=None): + """OpenWebinarUpcomingInfo - a model defined in huaweicloud sdk""" + + + + self._conference_id = None + self._corp_id = None + self._subject = None + self._description = None + self._start_time = None + self._duration = None + self._time_zone_id = None + self._scheduser_id = None + self._dept_name = None + self._scheduser_name = None + self._vmr_pkg_name = None + self._chair_join_uri = None + self._chair_passwd = None + self._guest_join_uri = None + self._guest_passwd = None + self._audience_join_uri = None + self._audience_passwd = None + self.discriminator = None + + if conference_id is not None: + self.conference_id = conference_id + if corp_id is not None: + self.corp_id = corp_id + if subject is not None: + self.subject = subject + if description is not None: + self.description = description + if start_time is not None: + self.start_time = start_time + if duration is not None: + self.duration = duration + if time_zone_id is not None: + self.time_zone_id = time_zone_id + if scheduser_id is not None: + self.scheduser_id = scheduser_id + if dept_name is not None: + self.dept_name = dept_name + if scheduser_name is not None: + self.scheduser_name = scheduser_name + if vmr_pkg_name is not None: + self.vmr_pkg_name = vmr_pkg_name + if chair_join_uri is not None: + self.chair_join_uri = chair_join_uri + if chair_passwd is not None: + self.chair_passwd = chair_passwd + if guest_join_uri is not None: + self.guest_join_uri = guest_join_uri + if guest_passwd is not None: + self.guest_passwd = guest_passwd + if audience_join_uri is not None: + self.audience_join_uri = audience_join_uri + if audience_passwd is not None: + self.audience_passwd = audience_passwd + + @property + def conference_id(self): + """Gets the conference_id of this OpenWebinarUpcomingInfo. + + 会议ID。长度限制为32个字符。 + + :return: The conference_id of this OpenWebinarUpcomingInfo. + :rtype: str + """ + return self._conference_id + + @conference_id.setter + def conference_id(self, conference_id): + """Sets the conference_id of this OpenWebinarUpcomingInfo. + + 会议ID。长度限制为32个字符。 + + :param conference_id: The conference_id of this OpenWebinarUpcomingInfo. + :type: str + """ + self._conference_id = conference_id + + @property + def corp_id(self): + """Gets the corp_id of this OpenWebinarUpcomingInfo. + + 企业id + + :return: The corp_id of this OpenWebinarUpcomingInfo. + :rtype: str + """ + return self._corp_id + + @corp_id.setter + def corp_id(self, corp_id): + """Sets the corp_id of this OpenWebinarUpcomingInfo. + + 企业id + + :param corp_id: The corp_id of this OpenWebinarUpcomingInfo. + :type: str + """ + self._corp_id = corp_id + + @property + def subject(self): + """Gets the subject of this OpenWebinarUpcomingInfo. + + 主题 + + :return: The subject of this OpenWebinarUpcomingInfo. + :rtype: str + """ + return self._subject + + @subject.setter + def subject(self, subject): + """Sets the subject of this OpenWebinarUpcomingInfo. + + 主题 + + :param subject: The subject of this OpenWebinarUpcomingInfo. + :type: str + """ + self._subject = subject + + @property + def description(self): + """Gets the description of this OpenWebinarUpcomingInfo. + + 描述 + + :return: The description of this OpenWebinarUpcomingInfo. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this OpenWebinarUpcomingInfo. + + 描述 + + :param description: The description of this OpenWebinarUpcomingInfo. + :type: str + """ + self._description = description + + @property + def start_time(self): + """Gets the start_time of this OpenWebinarUpcomingInfo. + + 开始时间 + + :return: The start_time of this OpenWebinarUpcomingInfo. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this OpenWebinarUpcomingInfo. + + 开始时间 + + :param start_time: The start_time of this OpenWebinarUpcomingInfo. + :type: str + """ + self._start_time = start_time + + @property + def duration(self): + """Gets the duration of this OpenWebinarUpcomingInfo. + + 时长,单位分钟 + + :return: The duration of this OpenWebinarUpcomingInfo. + :rtype: int + """ + return self._duration + + @duration.setter + def duration(self, duration): + """Sets the duration of this OpenWebinarUpcomingInfo. + + 时长,单位分钟 + + :param duration: The duration of this OpenWebinarUpcomingInfo. + :type: int + """ + self._duration = duration + + @property + def time_zone_id(self): + """Gets the time_zone_id of this OpenWebinarUpcomingInfo. + + 时区ID + + :return: The time_zone_id of this OpenWebinarUpcomingInfo. + :rtype: int + """ + return self._time_zone_id + + @time_zone_id.setter + def time_zone_id(self, time_zone_id): + """Sets the time_zone_id of this OpenWebinarUpcomingInfo. + + 时区ID + + :param time_zone_id: The time_zone_id of this OpenWebinarUpcomingInfo. + :type: int + """ + self._time_zone_id = time_zone_id + + @property + def scheduser_id(self): + """Gets the scheduser_id of this OpenWebinarUpcomingInfo. + + 会议预订者ID + + :return: The scheduser_id of this OpenWebinarUpcomingInfo. + :rtype: str + """ + return self._scheduser_id + + @scheduser_id.setter + def scheduser_id(self, scheduser_id): + """Sets the scheduser_id of this OpenWebinarUpcomingInfo. + + 会议预订者ID + + :param scheduser_id: The scheduser_id of this OpenWebinarUpcomingInfo. + :type: str + """ + self._scheduser_id = scheduser_id + + @property + def dept_name(self): + """Gets the dept_name of this OpenWebinarUpcomingInfo. + + 预订人部门 + + :return: The dept_name of this OpenWebinarUpcomingInfo. + :rtype: str + """ + return self._dept_name + + @dept_name.setter + def dept_name(self, dept_name): + """Sets the dept_name of this OpenWebinarUpcomingInfo. + + 预订人部门 + + :param dept_name: The dept_name of this OpenWebinarUpcomingInfo. + :type: str + """ + self._dept_name = dept_name + + @property + def scheduser_name(self): + """Gets the scheduser_name of this OpenWebinarUpcomingInfo. + + 会议预订者帐号名称。长度最大限制为96个字符。 + + :return: The scheduser_name of this OpenWebinarUpcomingInfo. + :rtype: str + """ + return self._scheduser_name + + @scheduser_name.setter + def scheduser_name(self, scheduser_name): + """Sets the scheduser_name of this OpenWebinarUpcomingInfo. + + 会议预订者帐号名称。长度最大限制为96个字符。 + + :param scheduser_name: The scheduser_name of this OpenWebinarUpcomingInfo. + :type: str + """ + self._scheduser_name = scheduser_name + + @property + def vmr_pkg_name(self): + """Gets the vmr_pkg_name of this OpenWebinarUpcomingInfo. + + 网络研讨会资源名 + + :return: The vmr_pkg_name of this OpenWebinarUpcomingInfo. + :rtype: str + """ + return self._vmr_pkg_name + + @vmr_pkg_name.setter + def vmr_pkg_name(self, vmr_pkg_name): + """Sets the vmr_pkg_name of this OpenWebinarUpcomingInfo. + + 网络研讨会资源名 + + :param vmr_pkg_name: The vmr_pkg_name of this OpenWebinarUpcomingInfo. + :type: str + """ + self._vmr_pkg_name = vmr_pkg_name + + @property + def chair_join_uri(self): + """Gets the chair_join_uri of this OpenWebinarUpcomingInfo. + + 主持人入会地址。 + + :return: The chair_join_uri of this OpenWebinarUpcomingInfo. + :rtype: str + """ + return self._chair_join_uri + + @chair_join_uri.setter + def chair_join_uri(self, chair_join_uri): + """Sets the chair_join_uri of this OpenWebinarUpcomingInfo. + + 主持人入会地址。 + + :param chair_join_uri: The chair_join_uri of this OpenWebinarUpcomingInfo. + :type: str + """ + self._chair_join_uri = chair_join_uri + + @property + def chair_passwd(self): + """Gets the chair_passwd of this OpenWebinarUpcomingInfo. + + 主持人密码。 + + :return: The chair_passwd of this OpenWebinarUpcomingInfo. + :rtype: str + """ + return self._chair_passwd + + @chair_passwd.setter + def chair_passwd(self, chair_passwd): + """Sets the chair_passwd of this OpenWebinarUpcomingInfo. + + 主持人密码。 + + :param chair_passwd: The chair_passwd of this OpenWebinarUpcomingInfo. + :type: str + """ + self._chair_passwd = chair_passwd + + @property + def guest_join_uri(self): + """Gets the guest_join_uri of this OpenWebinarUpcomingInfo. + + 嘉宾入会地址。 + + :return: The guest_join_uri of this OpenWebinarUpcomingInfo. + :rtype: str + """ + return self._guest_join_uri + + @guest_join_uri.setter + def guest_join_uri(self, guest_join_uri): + """Sets the guest_join_uri of this OpenWebinarUpcomingInfo. + + 嘉宾入会地址。 + + :param guest_join_uri: The guest_join_uri of this OpenWebinarUpcomingInfo. + :type: str + """ + self._guest_join_uri = guest_join_uri + + @property + def guest_passwd(self): + """Gets the guest_passwd of this OpenWebinarUpcomingInfo. + + 嘉宾密码。 + + :return: The guest_passwd of this OpenWebinarUpcomingInfo. + :rtype: str + """ + return self._guest_passwd + + @guest_passwd.setter + def guest_passwd(self, guest_passwd): + """Sets the guest_passwd of this OpenWebinarUpcomingInfo. + + 嘉宾密码。 + + :param guest_passwd: The guest_passwd of this OpenWebinarUpcomingInfo. + :type: str + """ + self._guest_passwd = guest_passwd + + @property + def audience_join_uri(self): + """Gets the audience_join_uri of this OpenWebinarUpcomingInfo. + + 观众入会地址。 + + :return: The audience_join_uri of this OpenWebinarUpcomingInfo. + :rtype: str + """ + return self._audience_join_uri + + @audience_join_uri.setter + def audience_join_uri(self, audience_join_uri): + """Sets the audience_join_uri of this OpenWebinarUpcomingInfo. + + 观众入会地址。 + + :param audience_join_uri: The audience_join_uri of this OpenWebinarUpcomingInfo. + :type: str + """ + self._audience_join_uri = audience_join_uri + + @property + def audience_passwd(self): + """Gets the audience_passwd of this OpenWebinarUpcomingInfo. + + 观众密码。 + + :return: The audience_passwd of this OpenWebinarUpcomingInfo. + :rtype: str + """ + return self._audience_passwd + + @audience_passwd.setter + def audience_passwd(self, audience_passwd): + """Sets the audience_passwd of this OpenWebinarUpcomingInfo. + + 观众密码。 + + :param audience_passwd: The audience_passwd of this OpenWebinarUpcomingInfo. + :type: str + """ + self._audience_passwd = audience_passwd + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, OpenWebinarUpcomingInfo): + 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-meeting/huaweicloudsdkmeeting/v1/model/qos_participant_info.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/qos_participant_info.py index 5021024b1f..b56d1bcc8a 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/qos_participant_info.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/qos_participant_info.py @@ -51,7 +51,8 @@ class QosParticipantInfo: 'microphone_info': 'str', 'speaker_info': 'str', 'camera_info': 'str', - 'data_center': 'str' + 'data_center': 'str', + 'left_reason': 'int' } attribute_map = { @@ -83,10 +84,11 @@ class QosParticipantInfo: 'microphone_info': 'microphoneInfo', 'speaker_info': 'speakerInfo', 'camera_info': 'cameraInfo', - 'data_center': 'dataCenter' + 'data_center': 'dataCenter', + 'left_reason': 'leftReason' } - def __init__(self, conf_uuid=None, conference_id=None, participant_id=None, user_uuid=None, display_name=None, dept_name=None, terminal_type=None, role=None, ip_address=None, country=None, province=None, city=None, app_version=None, join_time=None, left_time=None, system_info=None, network_type=None, alarm=None, audio_alarm_send=None, video_alarm_send=None, screen_alarm_send=None, audio_alarm_rec=None, video_alarm_rec=None, screen_alarm_rec=None, cpu_alarm=None, microphone_info=None, speaker_info=None, camera_info=None, data_center=None): + def __init__(self, conf_uuid=None, conference_id=None, participant_id=None, user_uuid=None, display_name=None, dept_name=None, terminal_type=None, role=None, ip_address=None, country=None, province=None, city=None, app_version=None, join_time=None, left_time=None, system_info=None, network_type=None, alarm=None, audio_alarm_send=None, video_alarm_send=None, screen_alarm_send=None, audio_alarm_rec=None, video_alarm_rec=None, screen_alarm_rec=None, cpu_alarm=None, microphone_info=None, speaker_info=None, camera_info=None, data_center=None, left_reason=None): """QosParticipantInfo - a model defined in huaweicloud sdk""" @@ -120,6 +122,7 @@ def __init__(self, conf_uuid=None, conference_id=None, participant_id=None, user self._speaker_info = None self._camera_info = None self._data_center = None + self._left_reason = None self.discriminator = None if conf_uuid is not None: @@ -180,6 +183,8 @@ def __init__(self, conf_uuid=None, conference_id=None, participant_id=None, user self.camera_info = camera_info if data_center is not None: self.data_center = data_center + if left_reason is not None: + self.left_reason = left_reason @property def conf_uuid(self): @@ -819,6 +824,28 @@ def data_center(self, data_center): """ self._data_center = data_center + @property + def left_reason(self): + """Gets the left_reason of this QosParticipantInfo. + + 离会原因。此字段仅标识离会原因,不做为是否已离会的判断依据。正在与会人员的离会原因初始值 = 0。 说明: * 0:正常离会。 * 1:网络异常离会。 + + :return: The left_reason of this QosParticipantInfo. + :rtype: int + """ + return self._left_reason + + @left_reason.setter + def left_reason(self, left_reason): + """Sets the left_reason of this QosParticipantInfo. + + 离会原因。此字段仅标识离会原因,不做为是否已离会的判断依据。正在与会人员的离会原因初始值 = 0。 说明: * 0:正常离会。 * 1:网络异常离会。 + + :param left_reason: The left_reason of this QosParticipantInfo. + :type: int + """ + self._left_reason = left_reason + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/rest_mixed_picture_body.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/rest_mixed_picture_body.py index 58c3fce32b..62f10c5092 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/rest_mixed_picture_body.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/rest_mixed_picture_body.py @@ -26,17 +26,19 @@ class RestMixedPictureBody: 'manual_set': 'int', 'image_type': 'str', 'subscriber_in_pics': 'list[SubscriberInPic]', - 'switch_time': 'int' + 'switch_time': 'int', + 'multi_pic_save_only': 'bool' } attribute_map = { 'manual_set': 'manualSet', 'image_type': 'imageType', 'subscriber_in_pics': 'subscriberInPics', - 'switch_time': 'switchTime' + 'switch_time': 'switchTime', + 'multi_pic_save_only': 'multiPicSaveOnly' } - def __init__(self, manual_set=None, image_type=None, subscriber_in_pics=None, switch_time=None): + def __init__(self, manual_set=None, image_type=None, subscriber_in_pics=None, switch_time=None, multi_pic_save_only=None): """RestMixedPictureBody - a model defined in huaweicloud sdk""" @@ -45,6 +47,7 @@ def __init__(self, manual_set=None, image_type=None, subscriber_in_pics=None, sw self._image_type = None self._subscriber_in_pics = None self._switch_time = None + self._multi_pic_save_only = None self.discriminator = None self.manual_set = manual_set @@ -54,6 +57,8 @@ def __init__(self, manual_set=None, image_type=None, subscriber_in_pics=None, sw self.subscriber_in_pics = subscriber_in_pics if switch_time is not None: self.switch_time = switch_time + if multi_pic_save_only is not None: + self.multi_pic_save_only = multi_pic_save_only @property def manual_set(self): @@ -143,6 +148,28 @@ def switch_time(self, switch_time): """ self._switch_time = switch_time + @property + def multi_pic_save_only(self): + """Gets the multi_pic_save_only of this RestMixedPictureBody. + + 多画面仅保存 + + :return: The multi_pic_save_only of this RestMixedPictureBody. + :rtype: bool + """ + return self._multi_pic_save_only + + @multi_pic_save_only.setter + def multi_pic_save_only(self, multi_pic_save_only): + """Sets the multi_pic_save_only of this RestMixedPictureBody. + + 多画面仅保存 + + :param multi_pic_save_only: The multi_pic_save_only of this RestMixedPictureBody. + :type: bool + """ + self._multi_pic_save_only = multi_pic_save_only + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/show_webinar_response.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/show_webinar_response.py index f051222fca..44e1886ea6 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/show_webinar_response.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/show_webinar_response.py @@ -43,7 +43,9 @@ class ShowWebinarResponse(SdkResponse): 'guest_join_uri': 'str', 'guest_passwd': 'str', 'audience_join_uri': 'str', - 'audience_passwd': 'str' + 'audience_passwd': 'str', + 'notify_setting': 'OpenNotifySetting', + 'attendees': 'list[str]' } attribute_map = { @@ -67,10 +69,12 @@ class ShowWebinarResponse(SdkResponse): 'guest_join_uri': 'guestJoinUri', 'guest_passwd': 'guestPasswd', 'audience_join_uri': 'audienceJoinUri', - 'audience_passwd': 'audiencePasswd' + 'audience_passwd': 'audiencePasswd', + 'notify_setting': 'notifySetting', + 'attendees': 'attendees' } - def __init__(self, conference_id=None, corp_id=None, subject=None, description=None, start_time=None, duration=None, time_zone_id=None, state=None, scheduser_id=None, dept_name=None, scheduser_name=None, vmr_pkg_name=None, call_restriction=None, scope=None, audience_scope=None, chair_join_uri=None, chair_passwd=None, guest_join_uri=None, guest_passwd=None, audience_join_uri=None, audience_passwd=None): + def __init__(self, conference_id=None, corp_id=None, subject=None, description=None, start_time=None, duration=None, time_zone_id=None, state=None, scheduser_id=None, dept_name=None, scheduser_name=None, vmr_pkg_name=None, call_restriction=None, scope=None, audience_scope=None, chair_join_uri=None, chair_passwd=None, guest_join_uri=None, guest_passwd=None, audience_join_uri=None, audience_passwd=None, notify_setting=None, attendees=None): """ShowWebinarResponse - a model defined in huaweicloud sdk""" super(ShowWebinarResponse, self).__init__() @@ -96,6 +100,8 @@ def __init__(self, conference_id=None, corp_id=None, subject=None, description=N self._guest_passwd = None self._audience_join_uri = None self._audience_passwd = None + self._notify_setting = None + self._attendees = None self.discriminator = None if conference_id is not None: @@ -140,6 +146,10 @@ def __init__(self, conference_id=None, corp_id=None, subject=None, description=N self.audience_join_uri = audience_join_uri if audience_passwd is not None: self.audience_passwd = audience_passwd + if notify_setting is not None: + self.notify_setting = notify_setting + if attendees is not None: + self.attendees = attendees @property def conference_id(self): @@ -601,6 +611,46 @@ def audience_passwd(self, audience_passwd): """ self._audience_passwd = audience_passwd + @property + def notify_setting(self): + """Gets the notify_setting of this ShowWebinarResponse. + + + :return: The notify_setting of this ShowWebinarResponse. + :rtype: OpenNotifySetting + """ + return self._notify_setting + + @notify_setting.setter + def notify_setting(self, notify_setting): + """Sets the notify_setting of this ShowWebinarResponse. + + + :param notify_setting: The notify_setting of this ShowWebinarResponse. + :type: OpenNotifySetting + """ + self._notify_setting = notify_setting + + @property + def attendees(self): + """Gets the attendees of this ShowWebinarResponse. + + + :return: The attendees of this ShowWebinarResponse. + :rtype: list[str] + """ + return self._attendees + + @attendees.setter + def attendees(self, attendees): + """Sets the attendees of this ShowWebinarResponse. + + + :param attendees: The attendees of this ShowWebinarResponse. + :type: list[str] + """ + self._attendees = attendees + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-meeting/setup.py b/huaweicloud-sdk-meeting/setup.py index cf96af2e92..a9cde48671 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "Meeting"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-moderation/setup.py b/huaweicloud-sdk-moderation/setup.py index 2011493edb..fd033767e5 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "Moderation"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/common.py b/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/common.py index 44301d98cd..05789fdff5 100644 --- a/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/common.py +++ b/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/common.py @@ -23,72 +23,35 @@ class Common: sensitive_list = [] openapi_types = { - 'qds': 'bool', 'pvc': 'bool', - 'pvc_version': 'str', - 'pvc_strength': 'str', 'hls_interval': 'int', 'dash_interval': 'int', 'pack_type': 'int' } attribute_map = { - 'qds': 'QDS', 'pvc': 'PVC', - 'pvc_version': 'PVC_version', - 'pvc_strength': 'PVC_strength', 'hls_interval': 'hls_interval', 'dash_interval': 'dash_interval', 'pack_type': 'pack_type' } - def __init__(self, qds=None, pvc=None, pvc_version=None, pvc_strength=None, hls_interval=None, dash_interval=None, pack_type=None): + def __init__(self, pvc=None, hls_interval=None, dash_interval=None, pack_type=None): """Common - a model defined in huaweicloud sdk""" - self._qds = None self._pvc = None - self._pvc_version = None - self._pvc_strength = None self._hls_interval = None self._dash_interval = None self._pack_type = None self.discriminator = None - if qds is not None: - self.qds = qds self.pvc = pvc - if pvc_version is not None: - self.pvc_version = pvc_version - if pvc_strength is not None: - self.pvc_strength = pvc_strength self.hls_interval = hls_interval self.dash_interval = dash_interval self.pack_type = pack_type - @property - def qds(self): - """Gets the qds of this Common. - - QDS开关 0:关闭(当前默认关闭) 1:开启 - - :return: The qds of this Common. - :rtype: bool - """ - return self._qds - - @qds.setter - def qds(self, qds): - """Sets the qds of this Common. - - QDS开关 0:关闭(当前默认关闭) 1:开启 - - :param qds: The qds of this Common. - :type: bool - """ - self._qds = qds - @property def pvc(self): """Gets the pvc of this Common. @@ -111,50 +74,6 @@ def pvc(self, pvc): """ self._pvc = pvc - @property - def pvc_version(self): - """Gets the pvc_version of this Common. - - PVC版本(PVC开启时,此字段才生效) “2.0_normal”:感知编码2.0(降码率30%~40%) “2.0_high”:感知编码2.0+画质增强 - - :return: The pvc_version of this Common. - :rtype: str - """ - return self._pvc_version - - @pvc_version.setter - def pvc_version(self, pvc_version): - """Sets the pvc_version of this Common. - - PVC版本(PVC开启时,此字段才生效) “2.0_normal”:感知编码2.0(降码率30%~40%) “2.0_high”:感知编码2.0+画质增强 - - :param pvc_version: The pvc_version of this Common. - :type: str - """ - self._pvc_version = pvc_version - - @property - def pvc_strength(self): - """Gets the pvc_strength of this Common. - - PVC感知编码强度(PVC开启时,此字段才生效),默认取值 “100” “100”:主观质量不变 “70”:主观质量适当下降 - - :return: The pvc_strength of this Common. - :rtype: str - """ - return self._pvc_strength - - @pvc_strength.setter - def pvc_strength(self, pvc_strength): - """Sets the pvc_strength of this Common. - - PVC感知编码强度(PVC开启时,此字段才生效),默认取值 “100” “100”:主观质量不变 “70”:主观质量适当下降 - - :param pvc_strength: The pvc_strength of this Common. - :type: str - """ - self._pvc_strength = pvc_strength - @property def hls_interval(self): """Gets the hls_interval of this Common. diff --git a/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/create_remux_task_req.py b/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/create_remux_task_req.py index 35fda9ba44..9b9dbbb681 100644 --- a/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/create_remux_task_req.py +++ b/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/create_remux_task_req.py @@ -26,19 +26,17 @@ class CreateRemuxTaskReq: 'input': 'ObsObjInfo', 'output': 'ObsObjInfo', 'user_data': 'str', - 'output_param': 'RemuxOutputParam', - 'notify_url': 'str' + 'output_param': 'RemuxOutputParam' } attribute_map = { 'input': 'input', 'output': 'output', 'user_data': 'user_data', - 'output_param': 'output_param', - 'notify_url': 'notify_url' + 'output_param': 'output_param' } - def __init__(self, input=None, output=None, user_data=None, output_param=None, notify_url=None): + def __init__(self, input=None, output=None, user_data=None, output_param=None): """CreateRemuxTaskReq - a model defined in huaweicloud sdk""" @@ -47,7 +45,6 @@ def __init__(self, input=None, output=None, user_data=None, output_param=None, n self._output = None self._user_data = None self._output_param = None - self._notify_url = None self.discriminator = None if input is not None: @@ -58,8 +55,6 @@ def __init__(self, input=None, output=None, user_data=None, output_param=None, n self.user_data = user_data if output_param is not None: self.output_param = output_param - if notify_url is not None: - self.notify_url = notify_url @property def input(self): @@ -143,28 +138,6 @@ def output_param(self, output_param): """ self._output_param = output_param - @property - def notify_url(self): - """Gets the notify_url of this CreateRemuxTaskReq. - - 提供给mpe通知回调用的的url - - :return: The notify_url of this CreateRemuxTaskReq. - :rtype: str - """ - return self._notify_url - - @notify_url.setter - def notify_url(self, notify_url): - """Sets the notify_url of this CreateRemuxTaskReq. - - 提供给mpe通知回调用的的url - - :param notify_url: The notify_url of this CreateRemuxTaskReq. - :type: str - """ - self._notify_url = notify_url - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/create_transcoding_req.py b/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/create_transcoding_req.py index 6686682788..196651006a 100644 --- a/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/create_transcoding_req.py +++ b/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/create_transcoding_req.py @@ -32,11 +32,6 @@ class CreateTranscodingReq: 'watermarks': 'list[WatermarkRequest]', 'thumbnail': 'Thumbnail', 'digital_watermark': 'DigitalWatermark', - 'project_id': 'str', - 'vip_user': 'bool', - 'task_id': 'str', - 'domain_name': 'str', - 'tenant_project_id': 'str', 'priority': 'int', 'audit': 'Audit', 'subtitle': 'Subtitle', @@ -62,11 +57,6 @@ class CreateTranscodingReq: 'watermarks': 'watermarks', 'thumbnail': 'thumbnail', 'digital_watermark': 'digital_watermark', - 'project_id': 'project_id', - 'vip_user': 'vip_user', - 'task_id': 'task_id', - 'domain_name': 'domain_name', - 'tenant_project_id': 'tenant_project_id', 'priority': 'priority', 'audit': 'audit', 'subtitle': 'subtitle', @@ -82,7 +72,7 @@ class CreateTranscodingReq: 'template_extend': 'template_extend' } - def __init__(self, input=None, output=None, trans_template_id=None, av_parameters=None, output_filenames=None, user_data=None, watermarks=None, thumbnail=None, digital_watermark=None, project_id=None, vip_user=None, task_id=None, domain_name=None, tenant_project_id=None, priority=None, audit=None, subtitle=None, special_effect=None, encryption=None, crop=None, audio_track=None, multi_audio=None, video_process=None, audio_process=None, quality_enhance=None, system_process=None, template_extend=None): + def __init__(self, input=None, output=None, trans_template_id=None, av_parameters=None, output_filenames=None, user_data=None, watermarks=None, thumbnail=None, digital_watermark=None, priority=None, audit=None, subtitle=None, special_effect=None, encryption=None, crop=None, audio_track=None, multi_audio=None, video_process=None, audio_process=None, quality_enhance=None, system_process=None, template_extend=None): """CreateTranscodingReq - a model defined in huaweicloud sdk""" @@ -96,11 +86,6 @@ def __init__(self, input=None, output=None, trans_template_id=None, av_parameter self._watermarks = None self._thumbnail = None self._digital_watermark = None - self._project_id = None - self._vip_user = None - self._task_id = None - self._domain_name = None - self._tenant_project_id = None self._priority = None self._audit = None self._subtitle = None @@ -133,16 +118,6 @@ def __init__(self, input=None, output=None, trans_template_id=None, av_parameter self.thumbnail = thumbnail if digital_watermark is not None: self.digital_watermark = digital_watermark - if project_id is not None: - self.project_id = project_id - if vip_user is not None: - self.vip_user = vip_user - if task_id is not None: - self.task_id = task_id - if domain_name is not None: - self.domain_name = domain_name - if tenant_project_id is not None: - self.tenant_project_id = tenant_project_id if priority is not None: self.priority = priority if audit is not None: @@ -360,116 +335,6 @@ def digital_watermark(self, digital_watermark): """ self._digital_watermark = digital_watermark - @property - def project_id(self): - """Gets the project_id of this CreateTranscodingReq. - - 项目ID - - :return: The project_id of this CreateTranscodingReq. - :rtype: str - """ - return self._project_id - - @project_id.setter - def project_id(self, project_id): - """Sets the project_id of this CreateTranscodingReq. - - 项目ID - - :param project_id: The project_id of this CreateTranscodingReq. - :type: str - """ - self._project_id = project_id - - @property - def vip_user(self): - """Gets the vip_user of this CreateTranscodingReq. - - 是否vip用户 - - :return: The vip_user of this CreateTranscodingReq. - :rtype: bool - """ - return self._vip_user - - @vip_user.setter - def vip_user(self, vip_user): - """Sets the vip_user of this CreateTranscodingReq. - - 是否vip用户 - - :param vip_user: The vip_user of this CreateTranscodingReq. - :type: bool - """ - self._vip_user = vip_user - - @property - def task_id(self): - """Gets the task_id of this CreateTranscodingReq. - - 任务Id - - :return: The task_id of this CreateTranscodingReq. - :rtype: str - """ - return self._task_id - - @task_id.setter - def task_id(self, task_id): - """Sets the task_id of this CreateTranscodingReq. - - 任务Id - - :param task_id: The task_id of this CreateTranscodingReq. - :type: str - """ - self._task_id = task_id - - @property - def domain_name(self): - """Gets the domain_name of this CreateTranscodingReq. - - 租户域名 - - :return: The domain_name of this CreateTranscodingReq. - :rtype: str - """ - return self._domain_name - - @domain_name.setter - def domain_name(self, domain_name): - """Sets the domain_name of this CreateTranscodingReq. - - 租户域名 - - :param domain_name: The domain_name of this CreateTranscodingReq. - :type: str - """ - self._domain_name = domain_name - - @property - def tenant_project_id(self): - """Gets the tenant_project_id of this CreateTranscodingReq. - - 租户Id - - :return: The tenant_project_id of this CreateTranscodingReq. - :rtype: str - """ - return self._tenant_project_id - - @tenant_project_id.setter - def tenant_project_id(self, tenant_project_id): - """Sets the tenant_project_id of this CreateTranscodingReq. - - 租户Id - - :param tenant_project_id: The tenant_project_id of this CreateTranscodingReq. - :type: str - """ - self._tenant_project_id = tenant_project_id - @property def priority(self): """Gets the priority of this CreateTranscodingReq. diff --git a/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/task_detail_info.py b/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/task_detail_info.py index 9f32ce7e11..e197b7ebbc 100644 --- a/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/task_detail_info.py +++ b/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/task_detail_info.py @@ -32,7 +32,6 @@ class TaskDetailInfo: 'output': 'ObsObjInfo', 'user_data': 'str', 'audit_report': 'AuditReport', - 'output_url': 'str', 'error_code': 'str', 'description': 'str', 'media_detail': 'MediaDetail', @@ -49,14 +48,13 @@ class TaskDetailInfo: 'output': 'output', 'user_data': 'user_data', 'audit_report': 'audit_report', - 'output_url': 'output_url', 'error_code': 'error_code', 'description': 'description', 'media_detail': 'media_detail', 'xcode_error': 'xcode_error' } - def __init__(self, task_id=None, status=None, create_time=None, start_time=None, end_time=None, input=None, output=None, user_data=None, audit_report=None, output_url=None, error_code=None, description=None, media_detail=None, xcode_error=None): + def __init__(self, task_id=None, status=None, create_time=None, start_time=None, end_time=None, input=None, output=None, user_data=None, audit_report=None, error_code=None, description=None, media_detail=None, xcode_error=None): """TaskDetailInfo - a model defined in huaweicloud sdk""" @@ -70,7 +68,6 @@ def __init__(self, task_id=None, status=None, create_time=None, start_time=None, self._output = None self._user_data = None self._audit_report = None - self._output_url = None self._error_code = None self._description = None self._media_detail = None @@ -95,8 +92,6 @@ def __init__(self, task_id=None, status=None, create_time=None, start_time=None, self.user_data = user_data if audit_report is not None: self.audit_report = audit_report - if output_url is not None: - self.output_url = output_url if error_code is not None: self.error_code = error_code if description is not None: @@ -298,28 +293,6 @@ def audit_report(self, audit_report): """ self._audit_report = audit_report - @property - def output_url(self): - """Gets the output_url of this TaskDetailInfo. - - 质检文件输出路径 - - :return: The output_url of this TaskDetailInfo. - :rtype: str - """ - return self._output_url - - @output_url.setter - def output_url(self, output_url): - """Sets the output_url of this TaskDetailInfo. - - 质检文件输出路径 - - :param output_url: The output_url of this TaskDetailInfo. - :type: str - """ - self._output_url = output_url - @property def error_code(self): """Gets the error_code of this TaskDetailInfo. diff --git a/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/trans_template.py b/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/trans_template.py index f5ef72fb9d..e47a06d59a 100644 --- a/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/trans_template.py +++ b/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/trans_template.py @@ -23,7 +23,6 @@ class TransTemplate: sensitive_list = [] openapi_types = { - 'tenant_id': 'str', 'template_name': 'str', 'video': 'Video', 'audio': 'Audio', @@ -31,27 +30,23 @@ class TransTemplate: } attribute_map = { - 'tenant_id': 'tenant_id', 'template_name': 'template_name', 'video': 'video', 'audio': 'audio', 'common': 'common' } - def __init__(self, tenant_id=None, template_name=None, video=None, audio=None, common=None): + def __init__(self, template_name=None, video=None, audio=None, common=None): """TransTemplate - a model defined in huaweicloud sdk""" - self._tenant_id = None self._template_name = None self._video = None self._audio = None self._common = None self.discriminator = None - if tenant_id is not None: - self.tenant_id = tenant_id self.template_name = template_name if video is not None: self.video = video @@ -59,28 +54,6 @@ def __init__(self, tenant_id=None, template_name=None, video=None, audio=None, c self.audio = audio self.common = common - @property - def tenant_id(self): - """Gets the tenant_id of this TransTemplate. - - 租户Id - - :return: The tenant_id of this TransTemplate. - :rtype: str - """ - return self._tenant_id - - @tenant_id.setter - def tenant_id(self, tenant_id): - """Sets the tenant_id of this TransTemplate. - - 租户Id - - :param tenant_id: The tenant_id of this TransTemplate. - :type: str - """ - self._tenant_id = tenant_id - @property def template_name(self): """Gets the template_name of this TransTemplate. diff --git a/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/video.py b/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/video.py index 218d48434b..fdd33734ae 100644 --- a/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/video.py +++ b/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/video.py @@ -33,13 +33,10 @@ class Video: 'max_iframes_interval': 'int', 'bframes_count': 'int', 'frame_rate': 'int', - 'sync_timestamp': 'bool', 'width': 'int', 'height': 'int', 'aspect_ratio': 'int', - 'black_cut': 'int', - 'gop_structure': 'bool', - 'sr_factor': 'str' + 'black_cut': 'int' } attribute_map = { @@ -53,16 +50,13 @@ class Video: 'max_iframes_interval': 'max_iframes_interval', 'bframes_count': 'bframes_count', 'frame_rate': 'frame_rate', - 'sync_timestamp': 'sync_timestamp', 'width': 'width', 'height': 'height', 'aspect_ratio': 'aspect_ratio', - 'black_cut': 'black_cut', - 'gop_structure': 'GOP_structure', - 'sr_factor': 'sr_factor' + 'black_cut': 'black_cut' } - def __init__(self, output_policy=None, codec=None, bitrate=None, profile=None, level=None, preset=None, ref_frames_count=None, max_iframes_interval=None, bframes_count=None, frame_rate=None, sync_timestamp=None, width=None, height=None, aspect_ratio=None, black_cut=None, gop_structure=None, sr_factor=None): + def __init__(self, output_policy=None, codec=None, bitrate=None, profile=None, level=None, preset=None, ref_frames_count=None, max_iframes_interval=None, bframes_count=None, frame_rate=None, width=None, height=None, aspect_ratio=None, black_cut=None): """Video - a model defined in huaweicloud sdk""" @@ -77,13 +71,10 @@ def __init__(self, output_policy=None, codec=None, bitrate=None, profile=None, l self._max_iframes_interval = None self._bframes_count = None self._frame_rate = None - self._sync_timestamp = None self._width = None self._height = None self._aspect_ratio = None self._black_cut = None - self._gop_structure = None - self._sr_factor = None self.discriminator = None if output_policy is not None: @@ -106,8 +97,6 @@ def __init__(self, output_policy=None, codec=None, bitrate=None, profile=None, l self.bframes_count = bframes_count if frame_rate is not None: self.frame_rate = frame_rate - if sync_timestamp is not None: - self.sync_timestamp = sync_timestamp if width is not None: self.width = width if height is not None: @@ -116,10 +105,6 @@ def __init__(self, output_policy=None, codec=None, bitrate=None, profile=None, l self.aspect_ratio = aspect_ratio if black_cut is not None: self.black_cut = black_cut - if gop_structure is not None: - self.gop_structure = gop_structure - if sr_factor is not None: - self.sr_factor = sr_factor @property def output_policy(self): @@ -341,28 +326,6 @@ def frame_rate(self, frame_rate): """ self._frame_rate = frame_rate - @property - def sync_timestamp(self): - """Gets the sync_timestamp of this Video. - - 降帧率时是否同步调整时间戳 在配置降帧率场景下有效 取值范围: false:不调整时间戳; true:根据 frame_rate 配置的帧率,重新计算时间戳; - - :return: The sync_timestamp of this Video. - :rtype: bool - """ - return self._sync_timestamp - - @sync_timestamp.setter - def sync_timestamp(self, sync_timestamp): - """Sets the sync_timestamp of this Video. - - 降帧率时是否同步调整时间戳 在配置降帧率场景下有效 取值范围: false:不调整时间戳; true:根据 frame_rate 配置的帧率,重新计算时间戳; - - :param sync_timestamp: The sync_timestamp of this Video. - :type: bool - """ - self._sync_timestamp = sync_timestamp - @property def width(self): """Gets the width of this Video. @@ -451,50 +414,6 @@ def black_cut(self, black_cut): """ self._black_cut = black_cut - @property - def gop_structure(self): - """Gets the gop_structure of this Video. - - GOP类型(暂不开放) 0: Closed (Default) 1:Open - - :return: The gop_structure of this Video. - :rtype: bool - """ - return self._gop_structure - - @gop_structure.setter - def gop_structure(self, gop_structure): - """Sets the gop_structure of this Video. - - GOP类型(暂不开放) 0: Closed (Default) 1:Open - - :param gop_structure: The gop_structure of this Video. - :type: bool - """ - self._gop_structure = gop_structure - - @property - def sr_factor(self): - """Gets the sr_factor of this Video. - - 超分倍数 \"2\":两倍超分 - - :return: The sr_factor of this Video. - :rtype: str - """ - return self._sr_factor - - @sr_factor.setter - def sr_factor(self, sr_factor): - """Sets the sr_factor of this Video. - - 超分倍数 \"2\":两倍超分 - - :param sr_factor: The sr_factor of this Video. - :type: str - """ - self._sr_factor = sr_factor - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/video_common.py b/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/video_common.py index 2aa0d09fce..429b9fa2af 100644 --- a/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/video_common.py +++ b/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/video_common.py @@ -32,7 +32,6 @@ class VideoCommon: 'max_iframes_interval': 'int', 'bframes_count': 'int', 'frame_rate': 'int', - 'sync_timestamp': 'bool', 'aspect_ratio': 'int', 'black_cut': 'int', 'gop_structure': 'bool', @@ -49,14 +48,13 @@ class VideoCommon: 'max_iframes_interval': 'max_iframes_interval', 'bframes_count': 'bframes_count', 'frame_rate': 'frame_rate', - 'sync_timestamp': 'sync_timestamp', 'aspect_ratio': 'aspect_ratio', 'black_cut': 'black_cut', 'gop_structure': 'GOP_structure', 'sr_factor': 'sr_factor' } - def __init__(self, output_policy=None, codec=None, profile=None, level=None, preset=None, ref_frames_count=None, max_iframes_interval=None, bframes_count=None, frame_rate=None, sync_timestamp=None, aspect_ratio=None, black_cut=None, gop_structure=None, sr_factor=None): + def __init__(self, output_policy=None, codec=None, profile=None, level=None, preset=None, ref_frames_count=None, max_iframes_interval=None, bframes_count=None, frame_rate=None, aspect_ratio=None, black_cut=None, gop_structure=None, sr_factor=None): """VideoCommon - a model defined in huaweicloud sdk""" @@ -70,7 +68,6 @@ def __init__(self, output_policy=None, codec=None, profile=None, level=None, pre self._max_iframes_interval = None self._bframes_count = None self._frame_rate = None - self._sync_timestamp = None self._aspect_ratio = None self._black_cut = None self._gop_structure = None @@ -95,8 +92,6 @@ def __init__(self, output_policy=None, codec=None, profile=None, level=None, pre self.bframes_count = bframes_count if frame_rate is not None: self.frame_rate = frame_rate - if sync_timestamp is not None: - self.sync_timestamp = sync_timestamp if aspect_ratio is not None: self.aspect_ratio = aspect_ratio if black_cut is not None: @@ -304,28 +299,6 @@ def frame_rate(self, frame_rate): """ self._frame_rate = frame_rate - @property - def sync_timestamp(self): - """Gets the sync_timestamp of this VideoCommon. - - 降帧率时是否同步调整时间戳 在配置降帧率场景下有效。 取值如下: - false:不调整时间戳; - true:根据 frame_rate 配置的帧率,重新计算时间戳。 - - :return: The sync_timestamp of this VideoCommon. - :rtype: bool - """ - return self._sync_timestamp - - @sync_timestamp.setter - def sync_timestamp(self, sync_timestamp): - """Sets the sync_timestamp of this VideoCommon. - - 降帧率时是否同步调整时间戳 在配置降帧率场景下有效。 取值如下: - false:不调整时间戳; - true:根据 frame_rate 配置的帧率,重新计算时间戳。 - - :param sync_timestamp: The sync_timestamp of this VideoCommon. - :type: bool - """ - self._sync_timestamp = sync_timestamp - @property def aspect_ratio(self): """Gets the aspect_ratio of this VideoCommon. diff --git a/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/video_parameters.py b/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/video_parameters.py index 4432fc5672..ee50434daa 100644 --- a/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/video_parameters.py +++ b/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/video_parameters.py @@ -33,7 +33,6 @@ class VideoParameters: 'max_iframes_interval': 'int', 'bframes_count': 'int', 'frame_rate': 'int', - 'sync_timestamp': 'bool', 'width': 'int', 'height': 'int', 'aspect_ratio': 'int', @@ -53,7 +52,6 @@ class VideoParameters: 'max_iframes_interval': 'max_iframes_interval', 'bframes_count': 'bframes_count', 'frame_rate': 'frame_rate', - 'sync_timestamp': 'sync_timestamp', 'width': 'width', 'height': 'height', 'aspect_ratio': 'aspect_ratio', @@ -62,7 +60,7 @@ class VideoParameters: 'sr_factor': 'sr_factor' } - def __init__(self, output_policy=None, codec=None, bitrate=None, profile=None, level=None, preset=None, ref_frames_count=None, max_iframes_interval=None, bframes_count=None, frame_rate=None, sync_timestamp=None, width=None, height=None, aspect_ratio=None, black_cut=None, gop_structure=None, sr_factor=None): + def __init__(self, output_policy=None, codec=None, bitrate=None, profile=None, level=None, preset=None, ref_frames_count=None, max_iframes_interval=None, bframes_count=None, frame_rate=None, width=None, height=None, aspect_ratio=None, black_cut=None, gop_structure=None, sr_factor=None): """VideoParameters - a model defined in huaweicloud sdk""" @@ -77,7 +75,6 @@ def __init__(self, output_policy=None, codec=None, bitrate=None, profile=None, l self._max_iframes_interval = None self._bframes_count = None self._frame_rate = None - self._sync_timestamp = None self._width = None self._height = None self._aspect_ratio = None @@ -106,8 +103,6 @@ def __init__(self, output_policy=None, codec=None, bitrate=None, profile=None, l self.bframes_count = bframes_count if frame_rate is not None: self.frame_rate = frame_rate - if sync_timestamp is not None: - self.sync_timestamp = sync_timestamp if width is not None: self.width = width if height is not None: @@ -341,28 +336,6 @@ def frame_rate(self, frame_rate): """ self._frame_rate = frame_rate - @property - def sync_timestamp(self): - """Gets the sync_timestamp of this VideoParameters. - - 降帧率时是否同步调整时间戳 在配置降帧率场景下有效。 取值范围: - false:不调整时间戳 - true:根据 frame_rate 配置的帧率,重新计算时间戳 - - :return: The sync_timestamp of this VideoParameters. - :rtype: bool - """ - return self._sync_timestamp - - @sync_timestamp.setter - def sync_timestamp(self, sync_timestamp): - """Sets the sync_timestamp of this VideoParameters. - - 降帧率时是否同步调整时间戳 在配置降帧率场景下有效。 取值范围: - false:不调整时间戳 - true:根据 frame_rate 配置的帧率,重新计算时间戳 - - :param sync_timestamp: The sync_timestamp of this VideoParameters. - :type: bool - """ - self._sync_timestamp = sync_timestamp - @property def width(self): """Gets the width of this VideoParameters. diff --git a/huaweicloud-sdk-mpc/setup.py b/huaweicloud-sdk-mpc/setup.py index 0db81f0a7c..238101d496 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "MPC"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-nat/setup.py b/huaweicloud-sdk-nat/setup.py index 2744aa8ab0..516898bdd5 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "NAT"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/__init__.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/__init__.py index 400913725c..c7c4ec0cef 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/__init__.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/__init__.py @@ -30,8 +30,8 @@ from huaweicloudsdkocr.v1.model.handwriting_request_body import HandwritingRequestBody from huaweicloudsdkocr.v1.model.handwriting_result import HandwritingResult from huaweicloudsdkocr.v1.model.handwriting_words_block_list import HandwritingWordsBlockList -from huaweicloudsdkocr.v1.model.id_card_request_body import IDCardRequestBody -from huaweicloudsdkocr.v1.model.id_card_result import IDCardResult +from huaweicloudsdkocr.v1.model.id_card_request_body import IdCardRequestBody +from huaweicloudsdkocr.v1.model.id_card_result import IdCardResult from huaweicloudsdkocr.v1.model.item_list import ItemList from huaweicloudsdkocr.v1.model.itinerary_list import ItineraryList from huaweicloudsdkocr.v1.model.license_plate_request_body import LicensePlateRequestBody @@ -61,8 +61,8 @@ from huaweicloudsdkocr.v1.model.recognize_general_text_response import RecognizeGeneralTextResponse from huaweicloudsdkocr.v1.model.recognize_handwriting_request import RecognizeHandwritingRequest from huaweicloudsdkocr.v1.model.recognize_handwriting_response import RecognizeHandwritingResponse -from huaweicloudsdkocr.v1.model.recognize_id_card_request import RecognizeIDCardRequest -from huaweicloudsdkocr.v1.model.recognize_id_card_response import RecognizeIDCardResponse +from huaweicloudsdkocr.v1.model.recognize_id_card_request import RecognizeIdCardRequest +from huaweicloudsdkocr.v1.model.recognize_id_card_response import RecognizeIdCardResponse from huaweicloudsdkocr.v1.model.recognize_license_plate_request import RecognizeLicensePlateRequest from huaweicloudsdkocr.v1.model.recognize_license_plate_response import RecognizeLicensePlateResponse from huaweicloudsdkocr.v1.model.recognize_mvs_invoice_request import RecognizeMvsInvoiceRequest diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/__init__.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/__init__.py index 626291b643..44f2275392 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/__init__.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/__init__.py @@ -27,8 +27,8 @@ from huaweicloudsdkocr.v1.model.handwriting_request_body import HandwritingRequestBody from huaweicloudsdkocr.v1.model.handwriting_result import HandwritingResult from huaweicloudsdkocr.v1.model.handwriting_words_block_list import HandwritingWordsBlockList -from huaweicloudsdkocr.v1.model.id_card_request_body import IDCardRequestBody -from huaweicloudsdkocr.v1.model.id_card_result import IDCardResult +from huaweicloudsdkocr.v1.model.id_card_request_body import IdCardRequestBody +from huaweicloudsdkocr.v1.model.id_card_result import IdCardResult from huaweicloudsdkocr.v1.model.item_list import ItemList from huaweicloudsdkocr.v1.model.itinerary_list import ItineraryList from huaweicloudsdkocr.v1.model.license_plate_request_body import LicensePlateRequestBody @@ -58,8 +58,8 @@ from huaweicloudsdkocr.v1.model.recognize_general_text_response import RecognizeGeneralTextResponse from huaweicloudsdkocr.v1.model.recognize_handwriting_request import RecognizeHandwritingRequest from huaweicloudsdkocr.v1.model.recognize_handwriting_response import RecognizeHandwritingResponse -from huaweicloudsdkocr.v1.model.recognize_id_card_request import RecognizeIDCardRequest -from huaweicloudsdkocr.v1.model.recognize_id_card_response import RecognizeIDCardResponse +from huaweicloudsdkocr.v1.model.recognize_id_card_request import RecognizeIdCardRequest +from huaweicloudsdkocr.v1.model.recognize_id_card_response import RecognizeIdCardResponse from huaweicloudsdkocr.v1.model.recognize_license_plate_request import RecognizeLicensePlateRequest from huaweicloudsdkocr.v1.model.recognize_license_plate_response import RecognizeLicensePlateResponse from huaweicloudsdkocr.v1.model.recognize_mvs_invoice_request import RecognizeMvsInvoiceRequest diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/auto_classification_result.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/auto_classification_result.py index 110a8e410e..213604c639 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/auto_classification_result.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/auto_classification_result.py @@ -26,7 +26,7 @@ class AutoClassificationResult: 'status': 'object', 'content': 'object', 'type': 'str', - 'location': 'list[int]', + 'location': 'list[list[int]]', 'confidence': 'object' } @@ -130,7 +130,7 @@ def location(self): 文字块的区域位置信息,列表形式,包含文字区域四个顶点的二维坐标(x,y);坐标原点为图片左上角,x轴沿水平方向,y轴沿竖直方向。 :return: The location of this AutoClassificationResult. - :rtype: list[int] + :rtype: list[list[int]] """ return self._location @@ -141,7 +141,7 @@ def location(self, location): 文字块的区域位置信息,列表形式,包含文字区域四个顶点的二维坐标(x,y);坐标原点为图片左上角,x轴沿水平方向,y轴沿竖直方向。 :param location: The location of this AutoClassificationResult. - :type: list[int] + :type: list[list[int]] """ self._location = location diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/general_table_words_block_list.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/general_table_words_block_list.py index fc8cf3d586..a406592aa9 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/general_table_words_block_list.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/general_table_words_block_list.py @@ -27,8 +27,8 @@ class GeneralTableWordsBlockList: 'words_list': 'list[object]', 'rows': 'list[int]', 'columns': 'list[int]', - 'location': 'list[object]', - 'cell_location': 'list[object]', + 'location': 'list[list[int]]', + 'cell_location': 'list[list[int]]', 'confidence': 'float', 'excel': 'str' } @@ -68,7 +68,8 @@ def __init__(self, words=None, words_list=None, rows=None, columns=None, locatio self.location = location if cell_location is not None: self.cell_location = cell_location - self.confidence = confidence + if confidence is not None: + self.confidence = confidence if excel is not None: self.excel = excel @@ -167,7 +168,7 @@ def location(self): 文字块位置信息,列表形式,分别表示文字块4个顶点的x, y坐标;坐标原点为图片左上角,x轴沿水平方向,y轴沿竖直方向。 :return: The location of this GeneralTableWordsBlockList. - :rtype: list[object] + :rtype: list[list[int]] """ return self._location @@ -178,7 +179,7 @@ def location(self, location): 文字块位置信息,列表形式,分别表示文字块4个顶点的x, y坐标;坐标原点为图片左上角,x轴沿水平方向,y轴沿竖直方向。 :param location: The location of this GeneralTableWordsBlockList. - :type: list[object] + :type: list[list[int]] """ self._location = location @@ -189,7 +190,7 @@ def cell_location(self): 单元格位置信息,列表形式,分别表示单元格4个顶点的x, y坐标;坐标原点为图片左上角,x轴沿水平方向,y轴沿竖直方向。 :return: The cell_location of this GeneralTableWordsBlockList. - :rtype: list[object] + :rtype: list[list[int]] """ return self._cell_location @@ -200,7 +201,7 @@ def cell_location(self, cell_location): 单元格位置信息,列表形式,分别表示单元格4个顶点的x, y坐标;坐标原点为图片左上角,x轴沿水平方向,y轴沿竖直方向。 :param cell_location: The cell_location of this GeneralTableWordsBlockList. - :type: list[object] + :type: list[list[int]] """ self._cell_location = cell_location diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/general_text_words_block_list.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/general_text_words_block_list.py index 72c2dec8db..021f67cf8c 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/general_text_words_block_list.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/general_text_words_block_list.py @@ -24,7 +24,7 @@ class GeneralTextWordsBlockList: openapi_types = { 'words': 'str', - 'location': 'list[int]' + 'location': 'list[list[int]]' } attribute_map = { @@ -73,7 +73,7 @@ def location(self): 文字块的区域位置信息,列表形式,包含文字区域四个顶点的二维坐标(x,y);坐标原点为图片左上角,x轴沿水平方向,y轴沿竖直方向。 :return: The location of this GeneralTextWordsBlockList. - :rtype: list[int] + :rtype: list[list[int]] """ return self._location @@ -84,7 +84,7 @@ def location(self, location): 文字块的区域位置信息,列表形式,包含文字区域四个顶点的二维坐标(x,y);坐标原点为图片左上角,x轴沿水平方向,y轴沿竖直方向。 :param location: The location of this GeneralTextWordsBlockList. - :type: list[int] + :type: list[list[int]] """ self._location = location diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/handwriting_words_block_list.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/handwriting_words_block_list.py index 7bdeb7e126..b4db0f2b89 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/handwriting_words_block_list.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/handwriting_words_block_list.py @@ -26,7 +26,7 @@ class HandwritingWordsBlockList: 'words': 'str', 'type': 'str', 'confidence': 'float', - 'location': 'list[int]' + 'location': 'list[list[int]]' } attribute_map = { @@ -129,7 +129,7 @@ def location(self): 文字块words的区域位置信息,列表形式,分别表示文字块顶点的x, y坐标;坐标原点为图片左上角,x轴沿水平方向,y轴沿竖直方向。 :return: The location of this HandwritingWordsBlockList. - :rtype: list[int] + :rtype: list[list[int]] """ return self._location @@ -140,7 +140,7 @@ def location(self, location): 文字块words的区域位置信息,列表形式,分别表示文字块顶点的x, y坐标;坐标原点为图片左上角,x轴沿水平方向,y轴沿竖直方向。 :param location: The location of this HandwritingWordsBlockList. - :type: list[int] + :type: list[list[int]] """ self._location = location diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/id_card_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/id_card_request_body.py index 3419347664..5ae7ef1166 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/id_card_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/id_card_request_body.py @@ -9,7 +9,7 @@ -class IDCardRequestBody: +class IdCardRequestBody: """ @@ -35,7 +35,7 @@ class IDCardRequestBody: } def __init__(self, image=None, url=None, side=None): - """IDCardRequestBody - a model defined in huaweicloud sdk""" + """IdCardRequestBody - a model defined in huaweicloud sdk""" @@ -53,66 +53,66 @@ def __init__(self, image=None, url=None, side=None): @property def image(self): - """Gets the image of this IDCardRequestBody. + """Gets the image of this IdCardRequestBody. 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8000px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 - :return: The image of this IDCardRequestBody. + :return: The image of this IdCardRequestBody. :rtype: str """ return self._image @image.setter def image(self, image): - """Sets the image of this IDCardRequestBody. + """Sets the image of this IdCardRequestBody. 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8000px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 - :param image: The image of this IDCardRequestBody. + :param image: The image of this IdCardRequestBody. :type: str """ self._image = image @property def url(self): - """Gets the url of this IDCardRequestBody. + """Gets the url of this IdCardRequestBody. 与image二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - :return: The url of this IDCardRequestBody. + :return: The url of this IdCardRequestBody. :rtype: str """ return self._url @url.setter def url(self, url): - """Sets the url of this IDCardRequestBody. + """Sets the url of this IdCardRequestBody. 与image二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - :param url: The url of this IDCardRequestBody. + :param url: The url of this IdCardRequestBody. :type: str """ self._url = url @property def side(self): - """Gets the side of this IDCardRequestBody. + """Gets the side of this IdCardRequestBody. - front:身份证正面。 - back:身份证背面。 > 说明: 如果参数值为空或无该参数,系统自动识别,建议填写,准确率更高。 - :return: The side of this IDCardRequestBody. + :return: The side of this IdCardRequestBody. :rtype: str """ return self._side @side.setter def side(self, side): - """Sets the side of this IDCardRequestBody. + """Sets the side of this IdCardRequestBody. - front:身份证正面。 - back:身份证背面。 > 说明: 如果参数值为空或无该参数,系统自动识别,建议填写,准确率更高。 - :param side: The side of this IDCardRequestBody. + :param side: The side of this IdCardRequestBody. :type: str """ self._side = side @@ -154,7 +154,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, IDCardRequestBody): + if not isinstance(other, IdCardRequestBody): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/id_card_result.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/id_card_result.py index 5c4ada54a1..0c88f9437f 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/id_card_result.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/id_card_result.py @@ -9,7 +9,7 @@ -class IDCardResult: +class IdCardResult: """ @@ -47,7 +47,7 @@ class IDCardResult: } def __init__(self, name=None, sex=None, birth=None, ethnicity=None, address=None, number=None, issue=None, valid_from=None, valid_to=None): - """IDCardResult - a model defined in huaweicloud sdk""" + """IdCardResult - a model defined in huaweicloud sdk""" @@ -83,198 +83,198 @@ def __init__(self, name=None, sex=None, birth=None, ethnicity=None, address=None @property def name(self): - """Gets the name of this IDCardResult. + """Gets the name of this IdCardResult. 姓名。 - :return: The name of this IDCardResult. + :return: The name of this IdCardResult. :rtype: str """ return self._name @name.setter def name(self, name): - """Sets the name of this IDCardResult. + """Sets the name of this IdCardResult. 姓名。 - :param name: The name of this IDCardResult. + :param name: The name of this IdCardResult. :type: str """ self._name = name @property def sex(self): - """Gets the sex of this IDCardResult. + """Gets the sex of this IdCardResult. 性别。 - :return: The sex of this IDCardResult. + :return: The sex of this IdCardResult. :rtype: str """ return self._sex @sex.setter def sex(self, sex): - """Sets the sex of this IDCardResult. + """Sets the sex of this IdCardResult. 性别。 - :param sex: The sex of this IDCardResult. + :param sex: The sex of this IdCardResult. :type: str """ self._sex = sex @property def birth(self): - """Gets the birth of this IDCardResult. + """Gets the birth of this IdCardResult. 出生日期。 - :return: The birth of this IDCardResult. + :return: The birth of this IdCardResult. :rtype: str """ return self._birth @birth.setter def birth(self, birth): - """Sets the birth of this IDCardResult. + """Sets the birth of this IdCardResult. 出生日期。 - :param birth: The birth of this IDCardResult. + :param birth: The birth of this IdCardResult. :type: str """ self._birth = birth @property def ethnicity(self): - """Gets the ethnicity of this IDCardResult. + """Gets the ethnicity of this IdCardResult. 民族。 - :return: The ethnicity of this IDCardResult. + :return: The ethnicity of this IdCardResult. :rtype: str """ return self._ethnicity @ethnicity.setter def ethnicity(self, ethnicity): - """Sets the ethnicity of this IDCardResult. + """Sets the ethnicity of this IdCardResult. 民族。 - :param ethnicity: The ethnicity of this IDCardResult. + :param ethnicity: The ethnicity of this IdCardResult. :type: str """ self._ethnicity = ethnicity @property def address(self): - """Gets the address of this IDCardResult. + """Gets the address of this IdCardResult. 地址。 - :return: The address of this IDCardResult. + :return: The address of this IdCardResult. :rtype: str """ return self._address @address.setter def address(self, address): - """Sets the address of this IDCardResult. + """Sets the address of this IdCardResult. 地址。 - :param address: The address of this IDCardResult. + :param address: The address of this IdCardResult. :type: str """ self._address = address @property def number(self): - """Gets the number of this IDCardResult. + """Gets the number of this IdCardResult. 身份证号。 - :return: The number of this IDCardResult. + :return: The number of this IdCardResult. :rtype: str """ return self._number @number.setter def number(self, number): - """Sets the number of this IDCardResult. + """Sets the number of this IdCardResult. 身份证号。 - :param number: The number of this IDCardResult. + :param number: The number of this IdCardResult. :type: str """ self._number = number @property def issue(self): - """Gets the issue of this IDCardResult. + """Gets the issue of this IdCardResult. 发证机关。 - :return: The issue of this IDCardResult. + :return: The issue of this IdCardResult. :rtype: str """ return self._issue @issue.setter def issue(self, issue): - """Sets the issue of this IDCardResult. + """Sets the issue of this IdCardResult. 发证机关。 - :param issue: The issue of this IDCardResult. + :param issue: The issue of this IdCardResult. :type: str """ self._issue = issue @property def valid_from(self): - """Gets the valid_from of this IDCardResult. + """Gets the valid_from of this IdCardResult. 有效起始日期。 - :return: The valid_from of this IDCardResult. + :return: The valid_from of this IdCardResult. :rtype: str """ return self._valid_from @valid_from.setter def valid_from(self, valid_from): - """Sets the valid_from of this IDCardResult. + """Sets the valid_from of this IdCardResult. 有效起始日期。 - :param valid_from: The valid_from of this IDCardResult. + :param valid_from: The valid_from of this IdCardResult. :type: str """ self._valid_from = valid_from @property def valid_to(self): - """Gets the valid_to of this IDCardResult. + """Gets the valid_to of this IdCardResult. 有效结束日期。 > 说明: - 身份证识别只支持中国大陆汉族身份证识别。 - :return: The valid_to of this IDCardResult. + :return: The valid_to of this IdCardResult. :rtype: str """ return self._valid_to @valid_to.setter def valid_to(self, valid_to): - """Sets the valid_to of this IDCardResult. + """Sets the valid_to of this IdCardResult. 有效结束日期。 > 说明: - 身份证识别只支持中国大陆汉族身份证识别。 - :param valid_to: The valid_to of this IDCardResult. + :param valid_to: The valid_to of this IdCardResult. :type: str """ self._valid_to = valid_to @@ -316,7 +316,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, IDCardResult): + if not isinstance(other, IdCardResult): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/license_plate_result.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/license_plate_result.py index b250c6f569..a27edc3daa 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/license_plate_result.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/license_plate_result.py @@ -25,7 +25,7 @@ class LicensePlateResult: openapi_types = { 'plate_number': 'str', 'plate_color': 'str', - 'plate_location': 'list[int]', + 'plate_location': 'list[list[int]]', 'confidence': 'float' } @@ -103,7 +103,7 @@ def plate_location(self): 车牌的区域位置信息,列表形式,包含文字区域四个顶点的二维坐标(x,y);坐标原点为图片左上角,x轴沿水平方向,y轴沿竖直方向。 :return: The plate_location of this LicensePlateResult. - :rtype: list[int] + :rtype: list[list[int]] """ return self._plate_location @@ -114,7 +114,7 @@ def plate_location(self, plate_location): 车牌的区域位置信息,列表形式,包含文字区域四个顶点的二维坐标(x,y);坐标原点为图片左上角,x轴沿水平方向,y轴沿竖直方向。 :param plate_location: The plate_location of this LicensePlateResult. - :type: list[int] + :type: list[list[int]] """ self._plate_location = plate_location diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/recognize_id_card_request.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/recognize_id_card_request.py index 6d9ec451bc..d995e656ef 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/recognize_id_card_request.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/recognize_id_card_request.py @@ -9,7 +9,7 @@ -class RecognizeIDCardRequest: +class RecognizeIdCardRequest: """ @@ -24,7 +24,7 @@ class RecognizeIDCardRequest: openapi_types = { 'project_id': 'str', - 'body': 'IDCardRequestBody' + 'body': 'IdCardRequestBody' } attribute_map = { @@ -33,7 +33,7 @@ class RecognizeIDCardRequest: } def __init__(self, project_id=None, body=None): - """RecognizeIDCardRequest - a model defined in huaweicloud sdk""" + """RecognizeIdCardRequest - a model defined in huaweicloud sdk""" @@ -47,43 +47,43 @@ def __init__(self, project_id=None, body=None): @property def project_id(self): - """Gets the project_id of this RecognizeIDCardRequest. + """Gets the project_id of this RecognizeIdCardRequest. 项目ID,您可以从[获取项目ID](https://support.huaweicloud.com/api-ocr/ocr_03_0130.html)中获取。 - :return: The project_id of this RecognizeIDCardRequest. + :return: The project_id of this RecognizeIdCardRequest. :rtype: str """ return self._project_id @project_id.setter def project_id(self, project_id): - """Sets the project_id of this RecognizeIDCardRequest. + """Sets the project_id of this RecognizeIdCardRequest. 项目ID,您可以从[获取项目ID](https://support.huaweicloud.com/api-ocr/ocr_03_0130.html)中获取。 - :param project_id: The project_id of this RecognizeIDCardRequest. + :param project_id: The project_id of this RecognizeIdCardRequest. :type: str """ self._project_id = project_id @property def body(self): - """Gets the body of this RecognizeIDCardRequest. + """Gets the body of this RecognizeIdCardRequest. - :return: The body of this RecognizeIDCardRequest. - :rtype: IDCardRequestBody + :return: The body of this RecognizeIdCardRequest. + :rtype: IdCardRequestBody """ return self._body @body.setter def body(self, body): - """Sets the body of this RecognizeIDCardRequest. + """Sets the body of this RecognizeIdCardRequest. - :param body: The body of this RecognizeIDCardRequest. - :type: IDCardRequestBody + :param body: The body of this RecognizeIdCardRequest. + :type: IdCardRequestBody """ self._body = body @@ -124,7 +124,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RecognizeIDCardRequest): + if not isinstance(other, RecognizeIdCardRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/recognize_id_card_response.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/recognize_id_card_response.py index adb7774525..03c61672e2 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/recognize_id_card_response.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/recognize_id_card_response.py @@ -9,7 +9,7 @@ from huaweicloudsdkcore.sdk_response import SdkResponse -class RecognizeIDCardResponse(SdkResponse): +class RecognizeIdCardResponse(SdkResponse): """ @@ -23,7 +23,7 @@ class RecognizeIDCardResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'result': 'IDCardResult' + 'result': 'IdCardResult' } attribute_map = { @@ -31,9 +31,9 @@ class RecognizeIDCardResponse(SdkResponse): } def __init__(self, result=None): - """RecognizeIDCardResponse - a model defined in huaweicloud sdk""" + """RecognizeIdCardResponse - a model defined in huaweicloud sdk""" - super(RecognizeIDCardResponse, self).__init__() + super(RecognizeIdCardResponse, self).__init__() self._result = None self.discriminator = None @@ -43,21 +43,21 @@ def __init__(self, result=None): @property def result(self): - """Gets the result of this RecognizeIDCardResponse. + """Gets the result of this RecognizeIdCardResponse. - :return: The result of this RecognizeIDCardResponse. - :rtype: IDCardResult + :return: The result of this RecognizeIdCardResponse. + :rtype: IdCardResult """ return self._result @result.setter def result(self, result): - """Sets the result of this RecognizeIDCardResponse. + """Sets the result of this RecognizeIdCardResponse. - :param result: The result of this RecognizeIDCardResponse. - :type: IDCardResult + :param result: The result of this RecognizeIdCardResponse. + :type: IdCardResult """ self._result = result @@ -98,7 +98,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RecognizeIDCardResponse): + if not isinstance(other, RecognizeIdCardResponse): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/web_image_words_block_list.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/web_image_words_block_list.py index df3a64c63d..7c217e7402 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/web_image_words_block_list.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/web_image_words_block_list.py @@ -25,7 +25,7 @@ class WebImageWordsBlockList: openapi_types = { 'words': 'str', 'confidence': 'float', - 'location': 'list[int]', + 'location': 'list[list[int]]', 'extracted_data': 'object', 'contact_info': 'object', 'image_size': 'object', @@ -157,7 +157,7 @@ def location(self): 文字块的区域位置信息,列表形式,包含文字区域四个顶点的二维坐标(x,y);坐标原点为图片左上角,x轴沿水平方向,y轴沿竖直方向。 :return: The location of this WebImageWordsBlockList. - :rtype: list[int] + :rtype: list[list[int]] """ return self._location @@ -168,7 +168,7 @@ def location(self, location): 文字块的区域位置信息,列表形式,包含文字区域四个顶点的二维坐标(x,y);坐标原点为图片左上角,x轴沿水平方向,y轴沿竖直方向。 :param location: The location of this WebImageWordsBlockList. - :type: list[int] + :type: list[list[int]] """ self._location = location diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/words_region_list.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/words_region_list.py index d17be4e277..bd8e64be70 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/words_region_list.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/words_region_list.py @@ -24,7 +24,7 @@ class WordsRegionList: openapi_types = { 'type': 'str', - 'words_block_count': 'str', + 'words_block_count': 'int', 'words_block_list': 'list[GeneralTableWordsBlockList]' } @@ -77,7 +77,7 @@ def words_block_count(self): 子区域识别文字块数目。 :return: The words_block_count of this WordsRegionList. - :rtype: str + :rtype: int """ return self._words_block_count @@ -88,7 +88,7 @@ def words_block_count(self, words_block_count): 子区域识别文字块数目。 :param words_block_count: The words_block_count of this WordsRegionList. - :type: str + :type: int """ self._words_block_count = words_block_count diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/ocr_async_client.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/ocr_async_client.py index 635c6066ec..08f7afde8e 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/ocr_async_client.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/ocr_async_client.py @@ -638,8 +638,8 @@ def recognize_id_card_async(self, request): 识别身份证图片中的文字内容,并将识别的结果返回给用户。 说明: 身份证识别只支持中国大陆汉族身份证识别。 如果图片中包含多张卡证票据,请调用[智能分类识别](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=OCR&api=AutoClassification)服务。 - :param RecognizeIDCardRequest request - :return: RecognizeIDCardResponse + :param RecognizeIdCardRequest request + :return: RecognizeIdCardResponse """ return self.recognize_id_card_with_http_info(request) @@ -648,8 +648,8 @@ def recognize_id_card_with_http_info(self, request): 识别身份证图片中的文字内容,并将识别的结果返回给用户。 说明: 身份证识别只支持中国大陆汉族身份证识别。 如果图片中包含多张卡证票据,请调用[智能分类识别](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=OCR&api=AutoClassification)服务。 - :param RecognizeIDCardRequest request - :return: RecognizeIDCardResponse + :param RecognizeIdCardRequest request + :return: RecognizeIdCardResponse """ all_params = ['project_id', 'id_card_request_body'] @@ -691,7 +691,7 @@ def recognize_id_card_with_http_info(self, request): header_params=header_params, body=body_params, post_params=form_params, - response_type='RecognizeIDCardResponse', + response_type='RecognizeIdCardResponse', response_headers=response_headers, auth_settings=auth_settings, collection_formats=collection_formats, diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/ocr_client.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/ocr_client.py index 486b5cd7f4..9d1d5bf2bc 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/ocr_client.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/ocr_client.py @@ -638,8 +638,8 @@ def recognize_id_card(self, request): 识别身份证图片中的文字内容,并将识别的结果返回给用户。 说明: 身份证识别只支持中国大陆汉族身份证识别。 如果图片中包含多张卡证票据,请调用[智能分类识别](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=OCR&api=AutoClassification)服务。 - :param RecognizeIDCardRequest request - :return: RecognizeIDCardResponse + :param RecognizeIdCardRequest request + :return: RecognizeIdCardResponse """ return self.recognize_id_card_with_http_info(request) @@ -648,8 +648,8 @@ def recognize_id_card_with_http_info(self, request): 识别身份证图片中的文字内容,并将识别的结果返回给用户。 说明: 身份证识别只支持中国大陆汉族身份证识别。 如果图片中包含多张卡证票据,请调用[智能分类识别](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=OCR&api=AutoClassification)服务。 - :param RecognizeIDCardRequest request - :return: RecognizeIDCardResponse + :param RecognizeIdCardRequest request + :return: RecognizeIdCardResponse """ all_params = ['project_id', 'id_card_request_body'] @@ -691,7 +691,7 @@ def recognize_id_card_with_http_info(self, request): header_params=header_params, body=body_params, post_params=form_params, - response_type='RecognizeIDCardResponse', + response_type='RecognizeIdCardResponse', response_headers=response_headers, auth_settings=auth_settings, collection_formats=collection_formats, diff --git a/huaweicloud-sdk-ocr/setup.py b/huaweicloud-sdk-ocr/setup.py index 431609daaf..10fbd4c627 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "OCR"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-oms/setup.py b/huaweicloud-sdk-oms/setup.py index 8e66010201..3c4487cf56 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "OMS"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-osm/setup.py b/huaweicloud-sdk-osm/setup.py index 2c2c3d933a..2d80574e59 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "OSM"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-projectman/setup.py b/huaweicloud-sdk-projectman/setup.py index c3c9bf416c..ba63a41e9d 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "ProjectMan"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-rabbitmq/setup.py b/huaweicloud-sdk-rabbitmq/setup.py index f6242794aa..c86315c362 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "RabbitMQ"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-rds/setup.py b/huaweicloud-sdk-rds/setup.py index c15307a32e..31802dd669 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "RDS"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-rms/setup.py b/huaweicloud-sdk-rms/setup.py index 0fd3b2d6a4..345443dd63 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "RMS"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-servicestage/setup.py b/huaweicloud-sdk-servicestage/setup.py index c29770c413..81385d1979 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "ServiceStage"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-smn/setup.py b/huaweicloud-sdk-smn/setup.py index 92fa259fd3..34f48c51fe 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "SMN"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-swr/setup.py b/huaweicloud-sdk-swr/setup.py index a2b17e2bea..5409fb2fee 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "SWR"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-tms/setup.py b/huaweicloud-sdk-tms/setup.py index 67cfd003ea..0b0f0a3ab3 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "TMS"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-vod/LICENSE b/huaweicloud-sdk-vod/LICENSE new file mode 100644 index 0000000000..808e3296c0 --- /dev/null +++ b/huaweicloud-sdk-vod/LICENSE @@ -0,0 +1,13 @@ +Copyright (c) Huawei Technologies Co., Ltd. 2020-present. All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. \ No newline at end of file diff --git a/huaweicloud-sdk-vod/README_PYPI.md b/huaweicloud-sdk-vod/README_PYPI.md new file mode 100644 index 0000000000..9711543c73 --- /dev/null +++ b/huaweicloud-sdk-vod/README_PYPI.md @@ -0,0 +1 @@ +See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3). \ No newline at end of file diff --git a/huaweicloud-sdk-vod/huaweicloudsdkvod/__init__.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/__init__.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/__init__.py new file mode 100644 index 0000000000..79996d856b --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/__init__.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +from __future__ import absolute_import + +# import VodClient +from huaweicloudsdkvod.v1.vod_client import VodClient +from huaweicloudsdkvod.v1.vod_async_client import VodAsyncClient +# import models into sdk package +from huaweicloudsdkvod.v1.model.asset_details import AssetDetails +from huaweicloudsdkvod.v1.model.asset_info import AssetInfo +from huaweicloudsdkvod.v1.model.asset_process_req import AssetProcessReq +from huaweicloudsdkvod.v1.model.asset_review_req import AssetReviewReq +from huaweicloudsdkvod.v1.model.asset_summary import AssetSummary +from huaweicloudsdkvod.v1.model.audio_template_info import AudioTemplateInfo +from huaweicloudsdkvod.v1.model.base_info import BaseInfo +from huaweicloudsdkvod.v1.model.bucket_authorized_req import BucketAuthorizedReq +from huaweicloudsdkvod.v1.model.cancel_asset_transcode_task_request import CancelAssetTranscodeTaskRequest +from huaweicloudsdkvod.v1.model.cancel_asset_transcode_task_response import CancelAssetTranscodeTaskResponse +from huaweicloudsdkvod.v1.model.cancel_extract_audio_task_request import CancelExtractAudioTaskRequest +from huaweicloudsdkvod.v1.model.cancel_extract_audio_task_response import CancelExtractAudioTaskResponse +from huaweicloudsdkvod.v1.model.check_md5_duplication_request import CheckMd5DuplicationRequest +from huaweicloudsdkvod.v1.model.check_md5_duplication_response import CheckMd5DuplicationResponse +from huaweicloudsdkvod.v1.model.common import Common +from huaweicloudsdkvod.v1.model.confirm_asset_upload_req import ConfirmAssetUploadReq +from huaweicloudsdkvod.v1.model.confirm_asset_upload_request import ConfirmAssetUploadRequest +from huaweicloudsdkvod.v1.model.confirm_asset_upload_response import ConfirmAssetUploadResponse +from huaweicloudsdkvod.v1.model.confirm_image_upload_req import ConfirmImageUploadReq +from huaweicloudsdkvod.v1.model.confirm_image_upload_request import ConfirmImageUploadRequest +from huaweicloudsdkvod.v1.model.confirm_image_upload_response import ConfirmImageUploadResponse +from huaweicloudsdkvod.v1.model.cover_info import CoverInfo +from huaweicloudsdkvod.v1.model.create_asset_by_file_req import CreateAssetByFileReq +from huaweicloudsdkvod.v1.model.create_asset_by_file_upload_request import CreateAssetByFileUploadRequest +from huaweicloudsdkvod.v1.model.create_asset_by_file_upload_response import CreateAssetByFileUploadResponse +from huaweicloudsdkvod.v1.model.create_asset_category_request import CreateAssetCategoryRequest +from huaweicloudsdkvod.v1.model.create_asset_category_response import CreateAssetCategoryResponse +from huaweicloudsdkvod.v1.model.create_asset_process_task_request import CreateAssetProcessTaskRequest +from huaweicloudsdkvod.v1.model.create_asset_process_task_response import CreateAssetProcessTaskResponse +from huaweicloudsdkvod.v1.model.create_asset_review_task_request import CreateAssetReviewTaskRequest +from huaweicloudsdkvod.v1.model.create_asset_review_task_response import CreateAssetReviewTaskResponse +from huaweicloudsdkvod.v1.model.create_category_req import CreateCategoryReq +from huaweicloudsdkvod.v1.model.create_extract_audio_task_request import CreateExtractAudioTaskRequest +from huaweicloudsdkvod.v1.model.create_extract_audio_task_response import CreateExtractAudioTaskResponse +from huaweicloudsdkvod.v1.model.create_preheating_asset_req import CreatePreheatingAssetReq +from huaweicloudsdkvod.v1.model.create_preheating_asset_request import CreatePreheatingAssetRequest +from huaweicloudsdkvod.v1.model.create_preheating_asset_response import CreatePreheatingAssetResponse +from huaweicloudsdkvod.v1.model.create_take_over_task_req import CreateTakeOverTaskReq +from huaweicloudsdkvod.v1.model.create_take_over_task_request import CreateTakeOverTaskRequest +from huaweicloudsdkvod.v1.model.create_take_over_task_response import CreateTakeOverTaskResponse +from huaweicloudsdkvod.v1.model.create_template_group_request import CreateTemplateGroupRequest +from huaweicloudsdkvod.v1.model.create_template_group_response import CreateTemplateGroupResponse +from huaweicloudsdkvod.v1.model.create_watermark_template_req import CreateWatermarkTemplateReq +from huaweicloudsdkvod.v1.model.create_watermark_template_request import CreateWatermarkTemplateRequest +from huaweicloudsdkvod.v1.model.create_watermark_template_response import CreateWatermarkTemplateResponse +from huaweicloudsdkvod.v1.model.delete_asset_category_request import DeleteAssetCategoryRequest +from huaweicloudsdkvod.v1.model.delete_asset_category_response import DeleteAssetCategoryResponse +from huaweicloudsdkvod.v1.model.delete_assets_request import DeleteAssetsRequest +from huaweicloudsdkvod.v1.model.delete_assets_response import DeleteAssetsResponse +from huaweicloudsdkvod.v1.model.delete_result import DeleteResult +from huaweicloudsdkvod.v1.model.delete_template_group_request import DeleteTemplateGroupRequest +from huaweicloudsdkvod.v1.model.delete_template_group_response import DeleteTemplateGroupResponse +from huaweicloudsdkvod.v1.model.delete_watermark_template_request import DeleteWatermarkTemplateRequest +from huaweicloudsdkvod.v1.model.delete_watermark_template_response import DeleteWatermarkTemplateResponse +from huaweicloudsdkvod.v1.model.extract_audio_task_req import ExtractAudioTaskReq +from huaweicloudsdkvod.v1.model.file_addr import FileAddr +from huaweicloudsdkvod.v1.model.list_asset_category_request import ListAssetCategoryRequest +from huaweicloudsdkvod.v1.model.list_asset_category_response import ListAssetCategoryResponse +from huaweicloudsdkvod.v1.model.list_asset_list_request import ListAssetListRequest +from huaweicloudsdkvod.v1.model.list_asset_list_response import ListAssetListResponse +from huaweicloudsdkvod.v1.model.list_take_over_task_request import ListTakeOverTaskRequest +from huaweicloudsdkvod.v1.model.list_take_over_task_response import ListTakeOverTaskResponse +from huaweicloudsdkvod.v1.model.list_template_group_request import ListTemplateGroupRequest +from huaweicloudsdkvod.v1.model.list_template_group_response import ListTemplateGroupResponse +from huaweicloudsdkvod.v1.model.list_top_statistics_request import ListTopStatisticsRequest +from huaweicloudsdkvod.v1.model.list_top_statistics_response import ListTopStatisticsResponse +from huaweicloudsdkvod.v1.model.list_watermark_template_request import ListWatermarkTemplateRequest +from huaweicloudsdkvod.v1.model.list_watermark_template_response import ListWatermarkTemplateResponse +from huaweicloudsdkvod.v1.model.meta_data import MetaData +from huaweicloudsdkvod.v1.model.modify_trans_template_group import ModifyTransTemplateGroup +from huaweicloudsdkvod.v1.model.output import Output +from huaweicloudsdkvod.v1.model.parameter import Parameter +from huaweicloudsdkvod.v1.model.picture_review_ret import PictureReviewRet +from huaweicloudsdkvod.v1.model.play_info import PlayInfo +from huaweicloudsdkvod.v1.model.preheating_result import PreheatingResult +from huaweicloudsdkvod.v1.model.publish_asset_from_obs_req import PublishAssetFromObsReq +from huaweicloudsdkvod.v1.model.publish_asset_from_obs_request import PublishAssetFromObsRequest +from huaweicloudsdkvod.v1.model.publish_asset_from_obs_response import PublishAssetFromObsResponse +from huaweicloudsdkvod.v1.model.publish_asset_req import PublishAssetReq +from huaweicloudsdkvod.v1.model.publish_assets_request import PublishAssetsRequest +from huaweicloudsdkvod.v1.model.publish_assets_response import PublishAssetsResponse +from huaweicloudsdkvod.v1.model.quality_info import QualityInfo +from huaweicloudsdkvod.v1.model.query_category_rsp import QueryCategoryRsp +from huaweicloudsdkvod.v1.model.review import Review +from huaweicloudsdkvod.v1.model.review_detail import ReviewDetail +from huaweicloudsdkvod.v1.model.review_info import ReviewInfo +from huaweicloudsdkvod.v1.model.show_asset_cipher_request import ShowAssetCipherRequest +from huaweicloudsdkvod.v1.model.show_asset_cipher_response import ShowAssetCipherResponse +from huaweicloudsdkvod.v1.model.show_asset_detail_request import ShowAssetDetailRequest +from huaweicloudsdkvod.v1.model.show_asset_detail_response import ShowAssetDetailResponse +from huaweicloudsdkvod.v1.model.show_asset_meta_request import ShowAssetMetaRequest +from huaweicloudsdkvod.v1.model.show_asset_meta_response import ShowAssetMetaResponse +from huaweicloudsdkvod.v1.model.show_asset_temp_authority_request import ShowAssetTempAuthorityRequest +from huaweicloudsdkvod.v1.model.show_asset_temp_authority_response import ShowAssetTempAuthorityResponse +from huaweicloudsdkvod.v1.model.show_cdn_statistics_request import ShowCdnStatisticsRequest +from huaweicloudsdkvod.v1.model.show_cdn_statistics_response import ShowCdnStatisticsResponse +from huaweicloudsdkvod.v1.model.show_preheating_asset_request import ShowPreheatingAssetRequest +from huaweicloudsdkvod.v1.model.show_preheating_asset_response import ShowPreheatingAssetResponse +from huaweicloudsdkvod.v1.model.show_take_over_asset_details_request import ShowTakeOverAssetDetailsRequest +from huaweicloudsdkvod.v1.model.show_take_over_asset_details_response import ShowTakeOverAssetDetailsResponse +from huaweicloudsdkvod.v1.model.show_take_over_task_details_request import ShowTakeOverTaskDetailsRequest +from huaweicloudsdkvod.v1.model.show_take_over_task_details_response import ShowTakeOverTaskDetailsResponse +from huaweicloudsdkvod.v1.model.show_vod_statistics_request import ShowVodStatisticsRequest +from huaweicloudsdkvod.v1.model.show_vod_statistics_response import ShowVodStatisticsResponse +from huaweicloudsdkvod.v1.model.status import Status +from huaweicloudsdkvod.v1.model.subtitle import Subtitle +from huaweicloudsdkvod.v1.model.subtitle_info import SubtitleInfo +from huaweicloudsdkvod.v1.model.take_over_task import TakeOverTask +from huaweicloudsdkvod.v1.model.template_group import TemplateGroup +from huaweicloudsdkvod.v1.model.text_review_ret import TextReviewRet +from huaweicloudsdkvod.v1.model.thumbnail import Thumbnail +from huaweicloudsdkvod.v1.model.thumbnail_info import ThumbnailInfo +from huaweicloudsdkvod.v1.model.thumbnail_rsp import ThumbnailRsp +from huaweicloudsdkvod.v1.model.top_url import TopUrl +from huaweicloudsdkvod.v1.model.trans_template_group import TransTemplateGroup +from huaweicloudsdkvod.v1.model.transcode_info import TranscodeInfo +from huaweicloudsdkvod.v1.model.unpublish_assets_request import UnpublishAssetsRequest +from huaweicloudsdkvod.v1.model.unpublish_assets_response import UnpublishAssetsResponse +from huaweicloudsdkvod.v1.model.update_asset_category_request import UpdateAssetCategoryRequest +from huaweicloudsdkvod.v1.model.update_asset_category_response import UpdateAssetCategoryResponse +from huaweicloudsdkvod.v1.model.update_asset_meta_req import UpdateAssetMetaReq +from huaweicloudsdkvod.v1.model.update_asset_meta_request import UpdateAssetMetaRequest +from huaweicloudsdkvod.v1.model.update_asset_meta_response import UpdateAssetMetaResponse +from huaweicloudsdkvod.v1.model.update_asset_req import UpdateAssetReq +from huaweicloudsdkvod.v1.model.update_asset_request import UpdateAssetRequest +from huaweicloudsdkvod.v1.model.update_asset_response import UpdateAssetResponse +from huaweicloudsdkvod.v1.model.update_bucket_authorized_request import UpdateBucketAuthorizedRequest +from huaweicloudsdkvod.v1.model.update_bucket_authorized_response import UpdateBucketAuthorizedResponse +from huaweicloudsdkvod.v1.model.update_category_req import UpdateCategoryReq +from huaweicloudsdkvod.v1.model.update_cover_by_thumbnail_req import UpdateCoverByThumbnailReq +from huaweicloudsdkvod.v1.model.update_cover_by_thumbnail_request import UpdateCoverByThumbnailRequest +from huaweicloudsdkvod.v1.model.update_cover_by_thumbnail_response import UpdateCoverByThumbnailResponse +from huaweicloudsdkvod.v1.model.update_template_group_request import UpdateTemplateGroupRequest +from huaweicloudsdkvod.v1.model.update_template_group_response import UpdateTemplateGroupResponse +from huaweicloudsdkvod.v1.model.update_watermark_template_req import UpdateWatermarkTemplateReq +from huaweicloudsdkvod.v1.model.update_watermark_template_request import UpdateWatermarkTemplateRequest +from huaweicloudsdkvod.v1.model.update_watermark_template_response import UpdateWatermarkTemplateResponse +from huaweicloudsdkvod.v1.model.upload_asset import UploadAsset +from huaweicloudsdkvod.v1.model.upload_meta_data_by_url import UploadMetaDataByUrl +from huaweicloudsdkvod.v1.model.upload_meta_data_by_url_req import UploadMetaDataByUrlReq +from huaweicloudsdkvod.v1.model.upload_meta_data_by_url_request import UploadMetaDataByUrlRequest +from huaweicloudsdkvod.v1.model.upload_meta_data_by_url_response import UploadMetaDataByUrlResponse +from huaweicloudsdkvod.v1.model.video_template_info import VideoTemplateInfo +from huaweicloudsdkvod.v1.model.video_type_ref import VideoTypeRef +from huaweicloudsdkvod.v1.model.vod_sample_data import VodSampleData +from huaweicloudsdkvod.v1.model.watermark_template import WatermarkTemplate + diff --git a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/__init__.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/__init__.py new file mode 100644 index 0000000000..0fb81427de --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/__init__.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +from __future__ import absolute_import + +# import models into model package +from huaweicloudsdkvod.v1.model.asset_details import AssetDetails +from huaweicloudsdkvod.v1.model.asset_info import AssetInfo +from huaweicloudsdkvod.v1.model.asset_process_req import AssetProcessReq +from huaweicloudsdkvod.v1.model.asset_review_req import AssetReviewReq +from huaweicloudsdkvod.v1.model.asset_summary import AssetSummary +from huaweicloudsdkvod.v1.model.audio_template_info import AudioTemplateInfo +from huaweicloudsdkvod.v1.model.base_info import BaseInfo +from huaweicloudsdkvod.v1.model.bucket_authorized_req import BucketAuthorizedReq +from huaweicloudsdkvod.v1.model.cancel_asset_transcode_task_request import CancelAssetTranscodeTaskRequest +from huaweicloudsdkvod.v1.model.cancel_asset_transcode_task_response import CancelAssetTranscodeTaskResponse +from huaweicloudsdkvod.v1.model.cancel_extract_audio_task_request import CancelExtractAudioTaskRequest +from huaweicloudsdkvod.v1.model.cancel_extract_audio_task_response import CancelExtractAudioTaskResponse +from huaweicloudsdkvod.v1.model.check_md5_duplication_request import CheckMd5DuplicationRequest +from huaweicloudsdkvod.v1.model.check_md5_duplication_response import CheckMd5DuplicationResponse +from huaweicloudsdkvod.v1.model.common import Common +from huaweicloudsdkvod.v1.model.confirm_asset_upload_req import ConfirmAssetUploadReq +from huaweicloudsdkvod.v1.model.confirm_asset_upload_request import ConfirmAssetUploadRequest +from huaweicloudsdkvod.v1.model.confirm_asset_upload_response import ConfirmAssetUploadResponse +from huaweicloudsdkvod.v1.model.confirm_image_upload_req import ConfirmImageUploadReq +from huaweicloudsdkvod.v1.model.confirm_image_upload_request import ConfirmImageUploadRequest +from huaweicloudsdkvod.v1.model.confirm_image_upload_response import ConfirmImageUploadResponse +from huaweicloudsdkvod.v1.model.cover_info import CoverInfo +from huaweicloudsdkvod.v1.model.create_asset_by_file_req import CreateAssetByFileReq +from huaweicloudsdkvod.v1.model.create_asset_by_file_upload_request import CreateAssetByFileUploadRequest +from huaweicloudsdkvod.v1.model.create_asset_by_file_upload_response import CreateAssetByFileUploadResponse +from huaweicloudsdkvod.v1.model.create_asset_category_request import CreateAssetCategoryRequest +from huaweicloudsdkvod.v1.model.create_asset_category_response import CreateAssetCategoryResponse +from huaweicloudsdkvod.v1.model.create_asset_process_task_request import CreateAssetProcessTaskRequest +from huaweicloudsdkvod.v1.model.create_asset_process_task_response import CreateAssetProcessTaskResponse +from huaweicloudsdkvod.v1.model.create_asset_review_task_request import CreateAssetReviewTaskRequest +from huaweicloudsdkvod.v1.model.create_asset_review_task_response import CreateAssetReviewTaskResponse +from huaweicloudsdkvod.v1.model.create_category_req import CreateCategoryReq +from huaweicloudsdkvod.v1.model.create_extract_audio_task_request import CreateExtractAudioTaskRequest +from huaweicloudsdkvod.v1.model.create_extract_audio_task_response import CreateExtractAudioTaskResponse +from huaweicloudsdkvod.v1.model.create_preheating_asset_req import CreatePreheatingAssetReq +from huaweicloudsdkvod.v1.model.create_preheating_asset_request import CreatePreheatingAssetRequest +from huaweicloudsdkvod.v1.model.create_preheating_asset_response import CreatePreheatingAssetResponse +from huaweicloudsdkvod.v1.model.create_take_over_task_req import CreateTakeOverTaskReq +from huaweicloudsdkvod.v1.model.create_take_over_task_request import CreateTakeOverTaskRequest +from huaweicloudsdkvod.v1.model.create_take_over_task_response import CreateTakeOverTaskResponse +from huaweicloudsdkvod.v1.model.create_template_group_request import CreateTemplateGroupRequest +from huaweicloudsdkvod.v1.model.create_template_group_response import CreateTemplateGroupResponse +from huaweicloudsdkvod.v1.model.create_watermark_template_req import CreateWatermarkTemplateReq +from huaweicloudsdkvod.v1.model.create_watermark_template_request import CreateWatermarkTemplateRequest +from huaweicloudsdkvod.v1.model.create_watermark_template_response import CreateWatermarkTemplateResponse +from huaweicloudsdkvod.v1.model.delete_asset_category_request import DeleteAssetCategoryRequest +from huaweicloudsdkvod.v1.model.delete_asset_category_response import DeleteAssetCategoryResponse +from huaweicloudsdkvod.v1.model.delete_assets_request import DeleteAssetsRequest +from huaweicloudsdkvod.v1.model.delete_assets_response import DeleteAssetsResponse +from huaweicloudsdkvod.v1.model.delete_result import DeleteResult +from huaweicloudsdkvod.v1.model.delete_template_group_request import DeleteTemplateGroupRequest +from huaweicloudsdkvod.v1.model.delete_template_group_response import DeleteTemplateGroupResponse +from huaweicloudsdkvod.v1.model.delete_watermark_template_request import DeleteWatermarkTemplateRequest +from huaweicloudsdkvod.v1.model.delete_watermark_template_response import DeleteWatermarkTemplateResponse +from huaweicloudsdkvod.v1.model.extract_audio_task_req import ExtractAudioTaskReq +from huaweicloudsdkvod.v1.model.file_addr import FileAddr +from huaweicloudsdkvod.v1.model.list_asset_category_request import ListAssetCategoryRequest +from huaweicloudsdkvod.v1.model.list_asset_category_response import ListAssetCategoryResponse +from huaweicloudsdkvod.v1.model.list_asset_list_request import ListAssetListRequest +from huaweicloudsdkvod.v1.model.list_asset_list_response import ListAssetListResponse +from huaweicloudsdkvod.v1.model.list_take_over_task_request import ListTakeOverTaskRequest +from huaweicloudsdkvod.v1.model.list_take_over_task_response import ListTakeOverTaskResponse +from huaweicloudsdkvod.v1.model.list_template_group_request import ListTemplateGroupRequest +from huaweicloudsdkvod.v1.model.list_template_group_response import ListTemplateGroupResponse +from huaweicloudsdkvod.v1.model.list_top_statistics_request import ListTopStatisticsRequest +from huaweicloudsdkvod.v1.model.list_top_statistics_response import ListTopStatisticsResponse +from huaweicloudsdkvod.v1.model.list_watermark_template_request import ListWatermarkTemplateRequest +from huaweicloudsdkvod.v1.model.list_watermark_template_response import ListWatermarkTemplateResponse +from huaweicloudsdkvod.v1.model.meta_data import MetaData +from huaweicloudsdkvod.v1.model.modify_trans_template_group import ModifyTransTemplateGroup +from huaweicloudsdkvod.v1.model.output import Output +from huaweicloudsdkvod.v1.model.parameter import Parameter +from huaweicloudsdkvod.v1.model.picture_review_ret import PictureReviewRet +from huaweicloudsdkvod.v1.model.play_info import PlayInfo +from huaweicloudsdkvod.v1.model.preheating_result import PreheatingResult +from huaweicloudsdkvod.v1.model.publish_asset_from_obs_req import PublishAssetFromObsReq +from huaweicloudsdkvod.v1.model.publish_asset_from_obs_request import PublishAssetFromObsRequest +from huaweicloudsdkvod.v1.model.publish_asset_from_obs_response import PublishAssetFromObsResponse +from huaweicloudsdkvod.v1.model.publish_asset_req import PublishAssetReq +from huaweicloudsdkvod.v1.model.publish_assets_request import PublishAssetsRequest +from huaweicloudsdkvod.v1.model.publish_assets_response import PublishAssetsResponse +from huaweicloudsdkvod.v1.model.quality_info import QualityInfo +from huaweicloudsdkvod.v1.model.query_category_rsp import QueryCategoryRsp +from huaweicloudsdkvod.v1.model.review import Review +from huaweicloudsdkvod.v1.model.review_detail import ReviewDetail +from huaweicloudsdkvod.v1.model.review_info import ReviewInfo +from huaweicloudsdkvod.v1.model.show_asset_cipher_request import ShowAssetCipherRequest +from huaweicloudsdkvod.v1.model.show_asset_cipher_response import ShowAssetCipherResponse +from huaweicloudsdkvod.v1.model.show_asset_detail_request import ShowAssetDetailRequest +from huaweicloudsdkvod.v1.model.show_asset_detail_response import ShowAssetDetailResponse +from huaweicloudsdkvod.v1.model.show_asset_meta_request import ShowAssetMetaRequest +from huaweicloudsdkvod.v1.model.show_asset_meta_response import ShowAssetMetaResponse +from huaweicloudsdkvod.v1.model.show_asset_temp_authority_request import ShowAssetTempAuthorityRequest +from huaweicloudsdkvod.v1.model.show_asset_temp_authority_response import ShowAssetTempAuthorityResponse +from huaweicloudsdkvod.v1.model.show_cdn_statistics_request import ShowCdnStatisticsRequest +from huaweicloudsdkvod.v1.model.show_cdn_statistics_response import ShowCdnStatisticsResponse +from huaweicloudsdkvod.v1.model.show_preheating_asset_request import ShowPreheatingAssetRequest +from huaweicloudsdkvod.v1.model.show_preheating_asset_response import ShowPreheatingAssetResponse +from huaweicloudsdkvod.v1.model.show_take_over_asset_details_request import ShowTakeOverAssetDetailsRequest +from huaweicloudsdkvod.v1.model.show_take_over_asset_details_response import ShowTakeOverAssetDetailsResponse +from huaweicloudsdkvod.v1.model.show_take_over_task_details_request import ShowTakeOverTaskDetailsRequest +from huaweicloudsdkvod.v1.model.show_take_over_task_details_response import ShowTakeOverTaskDetailsResponse +from huaweicloudsdkvod.v1.model.show_vod_statistics_request import ShowVodStatisticsRequest +from huaweicloudsdkvod.v1.model.show_vod_statistics_response import ShowVodStatisticsResponse +from huaweicloudsdkvod.v1.model.status import Status +from huaweicloudsdkvod.v1.model.subtitle import Subtitle +from huaweicloudsdkvod.v1.model.subtitle_info import SubtitleInfo +from huaweicloudsdkvod.v1.model.take_over_task import TakeOverTask +from huaweicloudsdkvod.v1.model.template_group import TemplateGroup +from huaweicloudsdkvod.v1.model.text_review_ret import TextReviewRet +from huaweicloudsdkvod.v1.model.thumbnail import Thumbnail +from huaweicloudsdkvod.v1.model.thumbnail_info import ThumbnailInfo +from huaweicloudsdkvod.v1.model.thumbnail_rsp import ThumbnailRsp +from huaweicloudsdkvod.v1.model.top_url import TopUrl +from huaweicloudsdkvod.v1.model.trans_template_group import TransTemplateGroup +from huaweicloudsdkvod.v1.model.transcode_info import TranscodeInfo +from huaweicloudsdkvod.v1.model.unpublish_assets_request import UnpublishAssetsRequest +from huaweicloudsdkvod.v1.model.unpublish_assets_response import UnpublishAssetsResponse +from huaweicloudsdkvod.v1.model.update_asset_category_request import UpdateAssetCategoryRequest +from huaweicloudsdkvod.v1.model.update_asset_category_response import UpdateAssetCategoryResponse +from huaweicloudsdkvod.v1.model.update_asset_meta_req import UpdateAssetMetaReq +from huaweicloudsdkvod.v1.model.update_asset_meta_request import UpdateAssetMetaRequest +from huaweicloudsdkvod.v1.model.update_asset_meta_response import UpdateAssetMetaResponse +from huaweicloudsdkvod.v1.model.update_asset_req import UpdateAssetReq +from huaweicloudsdkvod.v1.model.update_asset_request import UpdateAssetRequest +from huaweicloudsdkvod.v1.model.update_asset_response import UpdateAssetResponse +from huaweicloudsdkvod.v1.model.update_bucket_authorized_request import UpdateBucketAuthorizedRequest +from huaweicloudsdkvod.v1.model.update_bucket_authorized_response import UpdateBucketAuthorizedResponse +from huaweicloudsdkvod.v1.model.update_category_req import UpdateCategoryReq +from huaweicloudsdkvod.v1.model.update_cover_by_thumbnail_req import UpdateCoverByThumbnailReq +from huaweicloudsdkvod.v1.model.update_cover_by_thumbnail_request import UpdateCoverByThumbnailRequest +from huaweicloudsdkvod.v1.model.update_cover_by_thumbnail_response import UpdateCoverByThumbnailResponse +from huaweicloudsdkvod.v1.model.update_template_group_request import UpdateTemplateGroupRequest +from huaweicloudsdkvod.v1.model.update_template_group_response import UpdateTemplateGroupResponse +from huaweicloudsdkvod.v1.model.update_watermark_template_req import UpdateWatermarkTemplateReq +from huaweicloudsdkvod.v1.model.update_watermark_template_request import UpdateWatermarkTemplateRequest +from huaweicloudsdkvod.v1.model.update_watermark_template_response import UpdateWatermarkTemplateResponse +from huaweicloudsdkvod.v1.model.upload_asset import UploadAsset +from huaweicloudsdkvod.v1.model.upload_meta_data_by_url import UploadMetaDataByUrl +from huaweicloudsdkvod.v1.model.upload_meta_data_by_url_req import UploadMetaDataByUrlReq +from huaweicloudsdkvod.v1.model.upload_meta_data_by_url_request import UploadMetaDataByUrlRequest +from huaweicloudsdkvod.v1.model.upload_meta_data_by_url_response import UploadMetaDataByUrlResponse +from huaweicloudsdkvod.v1.model.video_template_info import VideoTemplateInfo +from huaweicloudsdkvod.v1.model.video_type_ref import VideoTypeRef +from huaweicloudsdkvod.v1.model.vod_sample_data import VodSampleData +from huaweicloudsdkvod.v1.model.watermark_template import WatermarkTemplate diff --git a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/asset_details.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/asset_details.py new file mode 100644 index 0000000000..190505facd --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/asset_details.py @@ -0,0 +1,213 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class AssetDetails: + + + """ + 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 = { + 'asset_id': 'str', + 'asset_status': 'str', + 'transcode_status': 'str', + 'base_info': 'BaseInfo', + 'transcode_info': 'TranscodeInfo' + } + + attribute_map = { + 'asset_id': 'asset_id', + 'asset_status': 'asset_status', + 'transcode_status': 'transcode_status', + 'base_info': 'base_info', + 'transcode_info': 'transcode_info' + } + + def __init__(self, asset_id=None, asset_status=None, transcode_status=None, base_info=None, transcode_info=None): + """AssetDetails - a model defined in huaweicloud sdk""" + + + + self._asset_id = None + self._asset_status = None + self._transcode_status = None + self._base_info = None + self._transcode_info = None + self.discriminator = None + + self.asset_id = asset_id + if asset_status is not None: + self.asset_status = asset_status + if transcode_status is not None: + self.transcode_status = transcode_status + if base_info is not None: + self.base_info = base_info + if transcode_info is not None: + self.transcode_info = transcode_info + + @property + def asset_id(self): + """Gets the asset_id of this AssetDetails. + + 媒资ID + + :return: The asset_id of this AssetDetails. + :rtype: str + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this AssetDetails. + + 媒资ID + + :param asset_id: The asset_id of this AssetDetails. + :type: str + """ + self._asset_id = asset_id + + @property + def asset_status(self): + """Gets the asset_status of this AssetDetails. + + 媒资状态。 \"CREATING\" //上传中 \"FAILED\" //上传失败 \"CREATED\" //上传成功 \"PUBLISHED\" //已发布 \"DELETED\" //已删除 + + :return: The asset_status of this AssetDetails. + :rtype: str + """ + return self._asset_status + + @asset_status.setter + def asset_status(self, asset_status): + """Sets the asset_status of this AssetDetails. + + 媒资状态。 \"CREATING\" //上传中 \"FAILED\" //上传失败 \"CREATED\" //上传成功 \"PUBLISHED\" //已发布 \"DELETED\" //已删除 + + :param asset_status: The asset_status of this AssetDetails. + :type: str + """ + self._asset_status = asset_status + + @property + def transcode_status(self): + """Gets the transcode_status of this AssetDetails. + + 转码状态 \"UN_TRANSCODE\" //未转码 \"WAITING_TRANSCODE\" //等待转码,排队中 \"TRANSCODING\" //转码中 \"TRANSCODE_SUCCEED\" //转码成功 \"TRANSCODE_FAILED\" //转码失败 + + :return: The transcode_status of this AssetDetails. + :rtype: str + """ + return self._transcode_status + + @transcode_status.setter + def transcode_status(self, transcode_status): + """Sets the transcode_status of this AssetDetails. + + 转码状态 \"UN_TRANSCODE\" //未转码 \"WAITING_TRANSCODE\" //等待转码,排队中 \"TRANSCODING\" //转码中 \"TRANSCODE_SUCCEED\" //转码成功 \"TRANSCODE_FAILED\" //转码失败 + + :param transcode_status: The transcode_status of this AssetDetails. + :type: str + """ + self._transcode_status = transcode_status + + @property + def base_info(self): + """Gets the base_info of this AssetDetails. + + + :return: The base_info of this AssetDetails. + :rtype: BaseInfo + """ + return self._base_info + + @base_info.setter + def base_info(self, base_info): + """Sets the base_info of this AssetDetails. + + + :param base_info: The base_info of this AssetDetails. + :type: BaseInfo + """ + self._base_info = base_info + + @property + def transcode_info(self): + """Gets the transcode_info of this AssetDetails. + + + :return: The transcode_info of this AssetDetails. + :rtype: TranscodeInfo + """ + return self._transcode_info + + @transcode_info.setter + def transcode_info(self, transcode_info): + """Sets the transcode_info of this AssetDetails. + + + :param transcode_info: The transcode_info of this AssetDetails. + :type: TranscodeInfo + """ + self._transcode_info = transcode_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AssetDetails): + 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-vod/huaweicloudsdkvod/v1/model/asset_info.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/asset_info.py new file mode 100644 index 0000000000..514ba640ea --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/asset_info.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class AssetInfo: + + + """ + 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 = { + 'asset_id': 'str', + 'status': 'Status', + 'description': 'str', + 'base_info': 'BaseInfo', + 'play_info_array': 'list[PlayInfo]' + } + + attribute_map = { + 'asset_id': 'asset_id', + 'status': 'status', + 'description': 'description', + 'base_info': 'base_info', + 'play_info_array': 'play_info_array' + } + + def __init__(self, asset_id=None, status=None, description=None, base_info=None, play_info_array=None): + """AssetInfo - a model defined in huaweicloud sdk""" + + + + self._asset_id = None + self._status = None + self._description = None + self._base_info = None + self._play_info_array = None + self.discriminator = None + + if asset_id is not None: + self.asset_id = asset_id + if status is not None: + self.status = status + if description is not None: + self.description = description + if base_info is not None: + self.base_info = base_info + if play_info_array is not None: + self.play_info_array = play_info_array + + @property + def asset_id(self): + """Gets the asset_id of this AssetInfo. + + 媒体ID
+ + :return: The asset_id of this AssetInfo. + :rtype: str + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this AssetInfo. + + 媒体ID
+ + :param asset_id: The asset_id of this AssetInfo. + :type: str + """ + self._asset_id = asset_id + + @property + def status(self): + """Gets the status of this AssetInfo. + + + :return: The status of this AssetInfo. + :rtype: Status + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this AssetInfo. + + + :param status: The status of this AssetInfo. + :type: Status + """ + self._status = status + + @property + def description(self): + """Gets the description of this AssetInfo. + + 媒资描述信息
+ + :return: The description of this AssetInfo. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this AssetInfo. + + 媒资描述信息
+ + :param description: The description of this AssetInfo. + :type: str + """ + self._description = description + + @property + def base_info(self): + """Gets the base_info of this AssetInfo. + + + :return: The base_info of this AssetInfo. + :rtype: BaseInfo + """ + return self._base_info + + @base_info.setter + def base_info(self, base_info): + """Sets the base_info of this AssetInfo. + + + :param base_info: The base_info of this AssetInfo. + :type: BaseInfo + """ + self._base_info = base_info + + @property + def play_info_array(self): + """Gets the play_info_array of this AssetInfo. + + 播放信息数组
+ + :return: The play_info_array of this AssetInfo. + :rtype: list[PlayInfo] + """ + return self._play_info_array + + @play_info_array.setter + def play_info_array(self, play_info_array): + """Sets the play_info_array of this AssetInfo. + + 播放信息数组
+ + :param play_info_array: The play_info_array of this AssetInfo. + :type: list[PlayInfo] + """ + self._play_info_array = play_info_array + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AssetInfo): + 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-vod/huaweicloudsdkvod/v1/model/asset_process_req.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/asset_process_req.py new file mode 100644 index 0000000000..b57ecac4e0 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/asset_process_req.py @@ -0,0 +1,215 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class AssetProcessReq: + + + """ + 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 = { + 'asset_id': 'str', + 'template_group_name': 'str', + 'auto_encrypt': 'int', + 'thumbnail': 'Thumbnail', + 'subtitle_id': 'list[int]' + } + + attribute_map = { + 'asset_id': 'asset_id', + 'template_group_name': 'template_group_name', + 'auto_encrypt': 'auto_encrypt', + 'thumbnail': 'thumbnail', + 'subtitle_id': 'subtitle_id' + } + + def __init__(self, asset_id=None, template_group_name=None, auto_encrypt=None, thumbnail=None, subtitle_id=None): + """AssetProcessReq - a model defined in huaweicloud sdk""" + + + + self._asset_id = None + self._template_group_name = None + self._auto_encrypt = None + self._thumbnail = None + self._subtitle_id = None + self.discriminator = None + + self.asset_id = asset_id + if template_group_name is not None: + self.template_group_name = template_group_name + if auto_encrypt is not None: + self.auto_encrypt = auto_encrypt + if thumbnail is not None: + self.thumbnail = thumbnail + if subtitle_id is not None: + self.subtitle_id = subtitle_id + + @property + def asset_id(self): + """Gets the asset_id of this AssetProcessReq. + + 媒体ID
+ + :return: The asset_id of this AssetProcessReq. + :rtype: str + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this AssetProcessReq. + + 媒体ID
+ + :param asset_id: The asset_id of this AssetProcessReq. + :type: str + """ + self._asset_id = asset_id + + @property + def template_group_name(self): + """Gets the template_group_name of this AssetProcessReq. + + 转码模板组名称
+ + :return: The template_group_name of this AssetProcessReq. + :rtype: str + """ + return self._template_group_name + + @template_group_name.setter + def template_group_name(self, template_group_name): + """Sets the template_group_name of this AssetProcessReq. + + 转码模板组名称
+ + :param template_group_name: The template_group_name of this AssetProcessReq. + :type: str + """ + self._template_group_name = template_group_name + + @property + def auto_encrypt(self): + """Gets the auto_encrypt of this AssetProcessReq. + + 是否自动加密,取值[0,1] 0表示不加密,1表示需要加密。默认值为0 加密时必须要转码,且转码的输出是HLS。 + + :return: The auto_encrypt of this AssetProcessReq. + :rtype: int + """ + return self._auto_encrypt + + @auto_encrypt.setter + def auto_encrypt(self, auto_encrypt): + """Sets the auto_encrypt of this AssetProcessReq. + + 是否自动加密,取值[0,1] 0表示不加密,1表示需要加密。默认值为0 加密时必须要转码,且转码的输出是HLS。 + + :param auto_encrypt: The auto_encrypt of this AssetProcessReq. + :type: int + """ + self._auto_encrypt = auto_encrypt + + @property + def thumbnail(self): + """Gets the thumbnail of this AssetProcessReq. + + + :return: The thumbnail of this AssetProcessReq. + :rtype: Thumbnail + """ + return self._thumbnail + + @thumbnail.setter + def thumbnail(self, thumbnail): + """Sets the thumbnail of this AssetProcessReq. + + + :param thumbnail: The thumbnail of this AssetProcessReq. + :type: Thumbnail + """ + self._thumbnail = thumbnail + + @property + def subtitle_id(self): + """Gets the subtitle_id of this AssetProcessReq. + + 字幕文件id
+ + :return: The subtitle_id of this AssetProcessReq. + :rtype: list[int] + """ + return self._subtitle_id + + @subtitle_id.setter + def subtitle_id(self, subtitle_id): + """Sets the subtitle_id of this AssetProcessReq. + + 字幕文件id
+ + :param subtitle_id: The subtitle_id of this AssetProcessReq. + :type: list[int] + """ + self._subtitle_id = subtitle_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AssetProcessReq): + 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-vod/huaweicloudsdkvod/v1/model/asset_review_req.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/asset_review_req.py new file mode 100644 index 0000000000..007c0a41c1 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/asset_review_req.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class AssetReviewReq: + + + """ + 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 = { + 'asset_id': 'str', + 'review': 'Review' + } + + attribute_map = { + 'asset_id': 'asset_id', + 'review': 'review' + } + + def __init__(self, asset_id=None, review=None): + """AssetReviewReq - a model defined in huaweicloud sdk""" + + + + self._asset_id = None + self._review = None + self.discriminator = None + + self.asset_id = asset_id + self.review = review + + @property + def asset_id(self): + """Gets the asset_id of this AssetReviewReq. + + 媒资ID + + :return: The asset_id of this AssetReviewReq. + :rtype: str + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this AssetReviewReq. + + 媒资ID + + :param asset_id: The asset_id of this AssetReviewReq. + :type: str + """ + self._asset_id = asset_id + + @property + def review(self): + """Gets the review of this AssetReviewReq. + + + :return: The review of this AssetReviewReq. + :rtype: Review + """ + return self._review + + @review.setter + def review(self, review): + """Sets the review of this AssetReviewReq. + + + :param review: The review of this AssetReviewReq. + :type: Review + """ + self._review = review + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AssetReviewReq): + 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-vod/huaweicloudsdkvod/v1/model/asset_summary.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/asset_summary.py new file mode 100644 index 0000000000..fcb166a67a --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/asset_summary.py @@ -0,0 +1,483 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class AssetSummary: + + + """ + 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 = { + 'asset_id': 'str', + 'title': 'str', + 'description': 'str', + 'duration': 'int', + 'size': 'int', + 'original_url': 'str', + 'category': 'str', + 'covers': 'list[CoverInfo]', + 'create_time': 'str', + 'asset_status': 'str', + 'transcode_status': 'str', + 'thumbnail_status': 'str', + 'review_status': 'str', + 'exec_desc': 'str', + 'media_type': 'str' + } + + attribute_map = { + 'asset_id': 'asset_id', + 'title': 'title', + 'description': 'description', + 'duration': 'duration', + 'size': 'size', + 'original_url': 'original_url', + 'category': 'category', + 'covers': 'covers', + 'create_time': 'create_time', + 'asset_status': 'asset_status', + 'transcode_status': 'transcode_status', + 'thumbnail_status': 'thumbnail_status', + 'review_status': 'review_status', + 'exec_desc': 'exec_desc', + 'media_type': 'media_type' + } + + def __init__(self, asset_id=None, title=None, description=None, duration=None, size=None, original_url=None, category=None, covers=None, create_time=None, asset_status=None, transcode_status=None, thumbnail_status=None, review_status=None, exec_desc=None, media_type=None): + """AssetSummary - a model defined in huaweicloud sdk""" + + + + self._asset_id = None + self._title = None + self._description = None + self._duration = None + self._size = None + self._original_url = None + self._category = None + self._covers = None + self._create_time = None + self._asset_status = None + self._transcode_status = None + self._thumbnail_status = None + self._review_status = None + self._exec_desc = None + self._media_type = None + self.discriminator = None + + self.asset_id = asset_id + self.title = title + if description is not None: + self.description = description + self.duration = duration + self.size = size + if original_url is not None: + self.original_url = original_url + if category is not None: + self.category = category + if covers is not None: + self.covers = covers + if create_time is not None: + self.create_time = create_time + self.asset_status = asset_status + if transcode_status is not None: + self.transcode_status = transcode_status + if thumbnail_status is not None: + self.thumbnail_status = thumbnail_status + if review_status is not None: + self.review_status = review_status + if exec_desc is not None: + self.exec_desc = exec_desc + if media_type is not None: + self.media_type = media_type + + @property + def asset_id(self): + """Gets the asset_id of this AssetSummary. + + 媒资ID。 + + :return: The asset_id of this AssetSummary. + :rtype: str + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this AssetSummary. + + 媒资ID。 + + :param asset_id: The asset_id of this AssetSummary. + :type: str + """ + self._asset_id = asset_id + + @property + def title(self): + """Gets the title of this AssetSummary. + + 媒体标题。 长度不超过128 个字节,utf-8 编码。 + + :return: The title of this AssetSummary. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this AssetSummary. + + 媒体标题。 长度不超过128 个字节,utf-8 编码。 + + :param title: The title of this AssetSummary. + :type: str + """ + self._title = title + + @property + def description(self): + """Gets the description of this AssetSummary. + + 视频描述。 长度不超过 1024个字节。 + + :return: The description of this AssetSummary. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this AssetSummary. + + 视频描述。 长度不超过 1024个字节。 + + :param description: The description of this AssetSummary. + :type: str + """ + self._description = description + + @property + def duration(self): + """Gets the duration of this AssetSummary. + + 视频时长。单位为秒 + + :return: The duration of this AssetSummary. + :rtype: int + """ + return self._duration + + @duration.setter + def duration(self, duration): + """Sets the duration of this AssetSummary. + + 视频时长。单位为秒 + + :param duration: The duration of this AssetSummary. + :type: int + """ + self._duration = duration + + @property + def size(self): + """Gets the size of this AssetSummary. + + 视频大小。单位为字节。 + + :return: The size of this AssetSummary. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this AssetSummary. + + 视频大小。单位为字节。 + + :param size: The size of this AssetSummary. + :type: int + """ + self._size = size + + @property + def original_url(self): + """Gets the original_url of this AssetSummary. + + 原始播放url。 + + :return: The original_url of this AssetSummary. + :rtype: str + """ + return self._original_url + + @original_url.setter + def original_url(self, original_url): + """Sets the original_url of this AssetSummary. + + 原始播放url。 + + :param original_url: The original_url of this AssetSummary. + :type: str + """ + self._original_url = original_url + + @property + def category(self): + """Gets the category of this AssetSummary. + + 媒资分类名称。 + + :return: The category of this AssetSummary. + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this AssetSummary. + + 媒资分类名称。 + + :param category: The category of this AssetSummary. + :type: str + """ + self._category = category + + @property + def covers(self): + """Gets the covers of this AssetSummary. + + 封面信息。 + + :return: The covers of this AssetSummary. + :rtype: list[CoverInfo] + """ + return self._covers + + @covers.setter + def covers(self, covers): + """Sets the covers of this AssetSummary. + + 封面信息。 + + :param covers: The covers of this AssetSummary. + :type: list[CoverInfo] + """ + self._covers = covers + + @property + def create_time(self): + """Gets the create_time of this AssetSummary. + + 媒资创建时 间。 格式为 yyyymmddhhm mss。必须是 与时区无关的 UTC时间。 + + :return: The create_time of this AssetSummary. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this AssetSummary. + + 媒资创建时 间。 格式为 yyyymmddhhm mss。必须是 与时区无关的 UTC时间。 + + :param create_time: The create_time of this AssetSummary. + :type: str + """ + self._create_time = create_time + + @property + def asset_status(self): + """Gets the asset_status of this AssetSummary. + + 媒资状态。 \"CREATING\" //上传中 \"FAILED\" //上传失败 \"CREATED\" //上传成功 \"PUBLISHED\" //已发布 \"DELETED\" //已删除 + + :return: The asset_status of this AssetSummary. + :rtype: str + """ + return self._asset_status + + @asset_status.setter + def asset_status(self, asset_status): + """Sets the asset_status of this AssetSummary. + + 媒资状态。 \"CREATING\" //上传中 \"FAILED\" //上传失败 \"CREATED\" //上传成功 \"PUBLISHED\" //已发布 \"DELETED\" //已删除 + + :param asset_status: The asset_status of this AssetSummary. + :type: str + """ + self._asset_status = asset_status + + @property + def transcode_status(self): + """Gets the transcode_status of this AssetSummary. + + 转码状态 \"UN_TRANSCODE\" //未转码 \"WAITING_TRANSCODE\" //等待转码,排队中 \"TRANSCODING\" //转码中 \"TRANSCODE_SUCCEED\" //转码成功 \"TRANSCODE_FAILED\" //转码失败 + + :return: The transcode_status of this AssetSummary. + :rtype: str + """ + return self._transcode_status + + @transcode_status.setter + def transcode_status(self, transcode_status): + """Sets the transcode_status of this AssetSummary. + + 转码状态 \"UN_TRANSCODE\" //未转码 \"WAITING_TRANSCODE\" //等待转码,排队中 \"TRANSCODING\" //转码中 \"TRANSCODE_SUCCEED\" //转码成功 \"TRANSCODE_FAILED\" //转码失败 + + :param transcode_status: The transcode_status of this AssetSummary. + :type: str + """ + self._transcode_status = transcode_status + + @property + def thumbnail_status(self): + """Gets the thumbnail_status of this AssetSummary. + + 截图状态 \"UN_THUMBNAIL\" //未截图 \"THUMBNAILING\" //截图中 \"THUMBNAIL_SUCCEED\" //截图成功 \"THUMBNAIL_FAILED\" //截图失败 + + :return: The thumbnail_status of this AssetSummary. + :rtype: str + """ + return self._thumbnail_status + + @thumbnail_status.setter + def thumbnail_status(self, thumbnail_status): + """Sets the thumbnail_status of this AssetSummary. + + 截图状态 \"UN_THUMBNAIL\" //未截图 \"THUMBNAILING\" //截图中 \"THUMBNAIL_SUCCEED\" //截图成功 \"THUMBNAIL_FAILED\" //截图失败 + + :param thumbnail_status: The thumbnail_status of this AssetSummary. + :type: str + """ + self._thumbnail_status = thumbnail_status + + @property + def review_status(self): + """Gets the review_status of this AssetSummary. + + 内容审核状态 \"UN_REVIEW\" //未审核 \"REVIEWING\" //审核中 \"REVIEW_SUSPICIOUS \" //审核不过,待人工复审 \"REVIEW_PASSED\" //审核通过 \"REVIEW_FAILED\" //审核任务失败 \"REVIEW_BLOCKED\" //已屏蔽 + + :return: The review_status of this AssetSummary. + :rtype: str + """ + return self._review_status + + @review_status.setter + def review_status(self, review_status): + """Sets the review_status of this AssetSummary. + + 内容审核状态 \"UN_REVIEW\" //未审核 \"REVIEWING\" //审核中 \"REVIEW_SUSPICIOUS \" //审核不过,待人工复审 \"REVIEW_PASSED\" //审核通过 \"REVIEW_FAILED\" //审核任务失败 \"REVIEW_BLOCKED\" //已屏蔽 + + :param review_status: The review_status of this AssetSummary. + :type: str + """ + self._review_status = review_status + + @property + def exec_desc(self): + """Gets the exec_desc of this AssetSummary. + + 媒资的任务执行描述汇总。 + + :return: The exec_desc of this AssetSummary. + :rtype: str + """ + return self._exec_desc + + @exec_desc.setter + def exec_desc(self, exec_desc): + """Sets the exec_desc of this AssetSummary. + + 媒资的任务执行描述汇总。 + + :param exec_desc: The exec_desc of this AssetSummary. + :type: str + """ + self._exec_desc = exec_desc + + @property + def media_type(self): + """Gets the media_type of this AssetSummary. + + 媒资的音视频文件格式。 + + :return: The media_type of this AssetSummary. + :rtype: str + """ + return self._media_type + + @media_type.setter + def media_type(self, media_type): + """Sets the media_type of this AssetSummary. + + 媒资的音视频文件格式。 + + :param media_type: The media_type of this AssetSummary. + :type: str + """ + self._media_type = media_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AssetSummary): + 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-vod/huaweicloudsdkvod/v1/model/audio_template_info.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/audio_template_info.py new file mode 100644 index 0000000000..03ca7b4980 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/audio_template_info.py @@ -0,0 +1,162 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class AudioTemplateInfo: + + + """ + 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 = { + 'sample_rate': 'int', + 'bitrate': 'int', + 'channels': 'int' + } + + attribute_map = { + 'sample_rate': 'sample_rate', + 'bitrate': 'bitrate', + 'channels': 'channels' + } + + def __init__(self, sample_rate=None, bitrate=None, channels=None): + """AudioTemplateInfo - a model defined in huaweicloud sdk""" + + + + self._sample_rate = None + self._bitrate = None + self._channels = None + self.discriminator = None + + self.sample_rate = sample_rate + if bitrate is not None: + self.bitrate = bitrate + self.channels = channels + + @property + def sample_rate(self): + """Gets the sample_rate of this AudioTemplateInfo. + + 音频采样率(有效值范围)
AUDIO_SAMPLE_AUTO=1 (default), AUDIO_SAMPLE_22050=2
AUDIO_SAMPLE_32000=3
AUDIO_SAMPLE_44100=4
AUDIO_SAMPLE_48000=5
AUDIO_SAMPLE_96000=6
+ + :return: The sample_rate of this AudioTemplateInfo. + :rtype: int + """ + return self._sample_rate + + @sample_rate.setter + def sample_rate(self, sample_rate): + """Sets the sample_rate of this AudioTemplateInfo. + + 音频采样率(有效值范围)
AUDIO_SAMPLE_AUTO=1 (default), AUDIO_SAMPLE_22050=2
AUDIO_SAMPLE_32000=3
AUDIO_SAMPLE_44100=4
AUDIO_SAMPLE_48000=5
AUDIO_SAMPLE_96000=6
+ + :param sample_rate: The sample_rate of this AudioTemplateInfo. + :type: int + """ + self._sample_rate = sample_rate + + @property + def bitrate(self): + """Gets the bitrate of this AudioTemplateInfo. + + 音频码率(单位:Kbps)
+ + :return: The bitrate of this AudioTemplateInfo. + :rtype: int + """ + return self._bitrate + + @bitrate.setter + def bitrate(self, bitrate): + """Sets the bitrate of this AudioTemplateInfo. + + 音频码率(单位:Kbps)
+ + :param bitrate: The bitrate of this AudioTemplateInfo. + :type: int + """ + self._bitrate = bitrate + + @property + def channels(self): + """Gets the channels of this AudioTemplateInfo. + + 声道数(有效值范围)
AUDIO_CHANNELS_1=1
AUDIO_CHANNELS_2=2
+ + :return: The channels of this AudioTemplateInfo. + :rtype: int + """ + return self._channels + + @channels.setter + def channels(self, channels): + """Sets the channels of this AudioTemplateInfo. + + 声道数(有效值范围)
AUDIO_CHANNELS_1=1
AUDIO_CHANNELS_2=2
+ + :param channels: The channels of this AudioTemplateInfo. + :type: int + """ + self._channels = channels + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AudioTemplateInfo): + 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-vod/huaweicloudsdkvod/v1/model/base_info.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/base_info.py new file mode 100644 index 0000000000..1fdc8d8abb --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/base_info.py @@ -0,0 +1,642 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class BaseInfo: + + + """ + 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 = { + 'asset_status': 'str', + 'title': 'str', + 'video_name': 'str', + 'description': 'str', + 'category_id': 'int', + 'category_name': 'str', + 'create_time': 'str', + 'last_modified': 'str', + 'video_type': 'str', + 'tags': 'str', + 'meta_data': 'MetaData', + 'video_url': 'str', + 'cover_info_array': 'list[CoverInfo]', + 'subtitle_info': 'list[SubtitleInfo]', + 'sourch_path': 'FileAddr', + 'source_path': 'FileAddr', + 'output_path': 'FileAddr', + 'create_user': 'str', + 'privilege': 'str', + 'folder_name': 'str', + 'custom_metadata': 'dict(str, object)' + } + + attribute_map = { + 'asset_status': 'asset_status', + 'title': 'title', + 'video_name': 'video_name', + 'description': 'description', + 'category_id': 'category_id', + 'category_name': 'category_name', + 'create_time': 'create_time', + 'last_modified': 'last_modified', + 'video_type': 'video_type', + 'tags': 'tags', + 'meta_data': 'meta_data', + 'video_url': 'video_url', + 'cover_info_array': 'cover_info_array', + 'subtitle_info': 'subtitle_info', + 'sourch_path': 'sourch_path', + 'source_path': 'source_path', + 'output_path': 'output_path', + 'create_user': 'create_user', + 'privilege': 'privilege', + 'folder_name': 'folder_name', + 'custom_metadata': 'custom_metadata' + } + + def __init__(self, asset_status=None, title=None, video_name=None, description=None, category_id=None, category_name=None, create_time=None, last_modified=None, video_type=None, tags=None, meta_data=None, video_url=None, cover_info_array=None, subtitle_info=None, sourch_path=None, source_path=None, output_path=None, create_user=None, privilege=None, folder_name=None, custom_metadata=None): + """BaseInfo - a model defined in huaweicloud sdk""" + + + + self._asset_status = None + self._title = None + self._video_name = None + self._description = None + self._category_id = None + self._category_name = None + self._create_time = None + self._last_modified = None + self._video_type = None + self._tags = None + self._meta_data = None + self._video_url = None + self._cover_info_array = None + self._subtitle_info = None + self._sourch_path = None + self._source_path = None + self._output_path = None + self._create_user = None + self._privilege = None + self._folder_name = None + self._custom_metadata = None + self.discriminator = None + + if asset_status is not None: + self.asset_status = asset_status + if title is not None: + self.title = title + if video_name is not None: + self.video_name = video_name + if description is not None: + self.description = description + if category_id is not None: + self.category_id = category_id + if category_name is not None: + self.category_name = category_name + if create_time is not None: + self.create_time = create_time + if last_modified is not None: + self.last_modified = last_modified + if video_type is not None: + self.video_type = video_type + if tags is not None: + self.tags = tags + if meta_data is not None: + self.meta_data = meta_data + if video_url is not None: + self.video_url = video_url + if cover_info_array is not None: + self.cover_info_array = cover_info_array + if subtitle_info is not None: + self.subtitle_info = subtitle_info + if sourch_path is not None: + self.sourch_path = sourch_path + if source_path is not None: + self.source_path = source_path + if output_path is not None: + self.output_path = output_path + if create_user is not None: + self.create_user = create_user + if privilege is not None: + self.privilege = privilege + if folder_name is not None: + self.folder_name = folder_name + if custom_metadata is not None: + self.custom_metadata = custom_metadata + + @property + def asset_status(self): + """Gets the asset_status of this BaseInfo. + + 媒资状态。 \"CREATING\" //上传中 \"FAILED\" //上传失败 \"CREATED\" //上传成功 \"PUBLISHED\" //已发布 \"DELETED\" //已删除 + + :return: The asset_status of this BaseInfo. + :rtype: str + """ + return self._asset_status + + @asset_status.setter + def asset_status(self, asset_status): + """Sets the asset_status of this BaseInfo. + + 媒资状态。 \"CREATING\" //上传中 \"FAILED\" //上传失败 \"CREATED\" //上传成功 \"PUBLISHED\" //已发布 \"DELETED\" //已删除 + + :param asset_status: The asset_status of this BaseInfo. + :type: str + """ + self._asset_status = asset_status + + @property + def title(self): + """Gets the title of this BaseInfo. + + 媒体标题
+ + :return: The title of this BaseInfo. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this BaseInfo. + + 媒体标题
+ + :param title: The title of this BaseInfo. + :type: str + """ + self._title = title + + @property + def video_name(self): + """Gets the video_name of this BaseInfo. + + 视频文件名
+ + :return: The video_name of this BaseInfo. + :rtype: str + """ + return self._video_name + + @video_name.setter + def video_name(self, video_name): + """Sets the video_name of this BaseInfo. + + 视频文件名
+ + :param video_name: The video_name of this BaseInfo. + :type: str + """ + self._video_name = video_name + + @property + def description(self): + """Gets the description of this BaseInfo. + + 视频描述
+ + :return: The description of this BaseInfo. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this BaseInfo. + + 视频描述
+ + :param description: The description of this BaseInfo. + :type: str + """ + self._description = description + + @property + def category_id(self): + """Gets the category_id of this BaseInfo. + + 媒资分类id
+ + :return: The category_id of this BaseInfo. + :rtype: int + """ + return self._category_id + + @category_id.setter + def category_id(self, category_id): + """Sets the category_id of this BaseInfo. + + 媒资分类id
+ + :param category_id: The category_id of this BaseInfo. + :type: int + """ + self._category_id = category_id + + @property + def category_name(self): + """Gets the category_name of this BaseInfo. + + 媒资分类名称
+ + :return: The category_name of this BaseInfo. + :rtype: str + """ + return self._category_name + + @category_name.setter + def category_name(self, category_name): + """Sets the category_name of this BaseInfo. + + 媒资分类名称
+ + :param category_name: The category_name of this BaseInfo. + :type: str + """ + self._category_name = category_name + + @property + def create_time(self): + """Gets the create_time of this BaseInfo. + + 媒资创建时间
+ + :return: The create_time of this BaseInfo. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this BaseInfo. + + 媒资创建时间
+ + :param create_time: The create_time of this BaseInfo. + :type: str + """ + self._create_time = create_time + + @property + def last_modified(self): + """Gets the last_modified of this BaseInfo. + + 媒资最近修改时间
+ + :return: The last_modified of this BaseInfo. + :rtype: str + """ + return self._last_modified + + @last_modified.setter + def last_modified(self, last_modified): + """Sets the last_modified of this BaseInfo. + + 媒资最近修改时间
+ + :param last_modified: The last_modified of this BaseInfo. + :type: str + """ + self._last_modified = last_modified + + @property + def video_type(self): + """Gets the video_type of this BaseInfo. + + 音视频文件类型。 取值如下: 视频文件:MP4、TS、MOV、MXF、MPG、FLV、WMV、AVI、M4V、F4V、MPEG、3GP、ASF、MKV 音频文件:MP3、OGG、WAV、WMA、APE、FLAC、AAC、AC3、MMF、AMR、M4A、M4R、WV、MP2 + + :return: The video_type of this BaseInfo. + :rtype: str + """ + return self._video_type + + @video_type.setter + def video_type(self, video_type): + """Sets the video_type of this BaseInfo. + + 音视频文件类型。 取值如下: 视频文件:MP4、TS、MOV、MXF、MPG、FLV、WMV、AVI、M4V、F4V、MPEG、3GP、ASF、MKV 音频文件:MP3、OGG、WAV、WMA、APE、FLAC、AAC、AC3、MMF、AMR、M4A、M4R、WV、MP2 + + :param video_type: The video_type of this BaseInfo. + :type: str + """ + self._video_type = video_type + + @property + def tags(self): + """Gets the tags of this BaseInfo. + + 视频标签
+ + :return: The tags of this BaseInfo. + :rtype: str + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this BaseInfo. + + 视频标签
+ + :param tags: The tags of this BaseInfo. + :type: str + """ + self._tags = tags + + @property + def meta_data(self): + """Gets the meta_data of this BaseInfo. + + + :return: The meta_data of this BaseInfo. + :rtype: MetaData + """ + return self._meta_data + + @meta_data.setter + def meta_data(self, meta_data): + """Sets the meta_data of this BaseInfo. + + + :param meta_data: The meta_data of this BaseInfo. + :type: MetaData + """ + self._meta_data = meta_data + + @property + def video_url(self): + """Gets the video_url of this BaseInfo. + + 原始视频文件的下载地址
+ + :return: The video_url of this BaseInfo. + :rtype: str + """ + return self._video_url + + @video_url.setter + def video_url(self, video_url): + """Sets the video_url of this BaseInfo. + + 原始视频文件的下载地址
+ + :param video_url: The video_url of this BaseInfo. + :type: str + """ + self._video_url = video_url + + @property + def cover_info_array(self): + """Gets the cover_info_array of this BaseInfo. + + 封面信息数组
+ + :return: The cover_info_array of this BaseInfo. + :rtype: list[CoverInfo] + """ + return self._cover_info_array + + @cover_info_array.setter + def cover_info_array(self, cover_info_array): + """Sets the cover_info_array of this BaseInfo. + + 封面信息数组
+ + :param cover_info_array: The cover_info_array of this BaseInfo. + :type: list[CoverInfo] + """ + self._cover_info_array = cover_info_array + + @property + def subtitle_info(self): + """Gets the subtitle_info of this BaseInfo. + + 字幕信息数组
+ + :return: The subtitle_info of this BaseInfo. + :rtype: list[SubtitleInfo] + """ + return self._subtitle_info + + @subtitle_info.setter + def subtitle_info(self, subtitle_info): + """Sets the subtitle_info of this BaseInfo. + + 字幕信息数组
+ + :param subtitle_info: The subtitle_info of this BaseInfo. + :type: list[SubtitleInfo] + """ + self._subtitle_info = subtitle_info + + @property + def sourch_path(self): + """Gets the sourch_path of this BaseInfo. + + + :return: The sourch_path of this BaseInfo. + :rtype: FileAddr + """ + return self._sourch_path + + @sourch_path.setter + def sourch_path(self, sourch_path): + """Sets the sourch_path of this BaseInfo. + + + :param sourch_path: The sourch_path of this BaseInfo. + :type: FileAddr + """ + self._sourch_path = sourch_path + + @property + def source_path(self): + """Gets the source_path of this BaseInfo. + + + :return: The source_path of this BaseInfo. + :rtype: FileAddr + """ + return self._source_path + + @source_path.setter + def source_path(self, source_path): + """Sets the source_path of this BaseInfo. + + + :param source_path: The source_path of this BaseInfo. + :type: FileAddr + """ + self._source_path = source_path + + @property + def output_path(self): + """Gets the output_path of this BaseInfo. + + + :return: The output_path of this BaseInfo. + :rtype: FileAddr + """ + return self._output_path + + @output_path.setter + def output_path(self, output_path): + """Sets the output_path of this BaseInfo. + + + :param output_path: The output_path of this BaseInfo. + :type: FileAddr + """ + self._output_path = output_path + + @property + def create_user(self): + """Gets the create_user of this BaseInfo. + + 创建该资源的用户
+ + :return: The create_user of this BaseInfo. + :rtype: str + """ + return self._create_user + + @create_user.setter + def create_user(self, create_user): + """Sets the create_user of this BaseInfo. + + 创建该资源的用户
+ + :param create_user: The create_user of this BaseInfo. + :type: str + """ + self._create_user = create_user + + @property + def privilege(self): + """Gets the privilege of this BaseInfo. + + 权限
+ + :return: The privilege of this BaseInfo. + :rtype: str + """ + return self._privilege + + @privilege.setter + def privilege(self, privilege): + """Sets the privilege of this BaseInfo. + + 权限
+ + :param privilege: The privilege of this BaseInfo. + :type: str + """ + self._privilege = privilege + + @property + def folder_name(self): + """Gets the folder_name of this BaseInfo. + + 文件夹code
+ + :return: The folder_name of this BaseInfo. + :rtype: str + """ + return self._folder_name + + @folder_name.setter + def folder_name(self, folder_name): + """Sets the folder_name of this BaseInfo. + + 文件夹code
+ + :param folder_name: The folder_name of this BaseInfo. + :type: str + """ + self._folder_name = folder_name + + @property + def custom_metadata(self): + """Gets the custom_metadata of this BaseInfo. + + 自定义元数据
+ + :return: The custom_metadata of this BaseInfo. + :rtype: dict(str, object) + """ + return self._custom_metadata + + @custom_metadata.setter + def custom_metadata(self, custom_metadata): + """Sets the custom_metadata of this BaseInfo. + + 自定义元数据
+ + :param custom_metadata: The custom_metadata of this BaseInfo. + :type: dict(str, object) + """ + self._custom_metadata = custom_metadata + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BaseInfo): + 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-vod/huaweicloudsdkvod/v1/model/bucket_authorized_req.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/bucket_authorized_req.py new file mode 100644 index 0000000000..daacf4d088 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/bucket_authorized_req.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class BucketAuthorizedReq: + + + """ + 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 = { + 'bucket': 'str', + 'operation': 'str' + } + + attribute_map = { + 'bucket': 'bucket', + 'operation': 'operation' + } + + def __init__(self, bucket=None, operation=None): + """BucketAuthorizedReq - a model defined in huaweicloud sdk""" + + + + self._bucket = None + self._operation = None + self.discriminator = None + + self.bucket = bucket + self.operation = operation + + @property + def bucket(self): + """Gets the bucket of this BucketAuthorizedReq. + + 桶名称 ID + + :return: The bucket of this BucketAuthorizedReq. + :rtype: str + """ + return self._bucket + + @bucket.setter + def bucket(self, bucket): + """Sets the bucket of this BucketAuthorizedReq. + + 桶名称 ID + + :param bucket: The bucket of this BucketAuthorizedReq. + :type: str + """ + self._bucket = bucket + + @property + def operation(self): + """Gets the operation of this BucketAuthorizedReq. + + 操作标记,0表示取消授权,1表示授权 + + :return: The operation of this BucketAuthorizedReq. + :rtype: str + """ + return self._operation + + @operation.setter + def operation(self, operation): + """Sets the operation of this BucketAuthorizedReq. + + 操作标记,0表示取消授权,1表示授权 + + :param operation: The operation of this BucketAuthorizedReq. + :type: str + """ + self._operation = 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BucketAuthorizedReq): + 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-apig/huaweicloudsdkapig/v2/model/domain_req.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/cancel_asset_transcode_task_request.py similarity index 70% rename from huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/domain_req.py rename to huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/cancel_asset_transcode_task_request.py index fa37b9df79..f588c48308 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/domain_req.py +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/cancel_asset_transcode_task_request.py @@ -9,7 +9,7 @@ -class DomainReq: +class CancelAssetTranscodeTaskRequest: """ @@ -23,44 +23,44 @@ class DomainReq: sensitive_list = [] openapi_types = { - 'url_domain': 'str' + 'asset_id': 'str' } attribute_map = { - 'url_domain': 'url_domain' + 'asset_id': 'asset_id' } - def __init__(self, url_domain=None): - """DomainReq - a model defined in huaweicloud sdk""" + def __init__(self, asset_id=None): + """CancelAssetTranscodeTaskRequest - a model defined in huaweicloud sdk""" - self._url_domain = None + self._asset_id = None self.discriminator = None - self.url_domain = url_domain + self.asset_id = asset_id @property - def url_domain(self): - """Gets the url_domain of this DomainReq. + def asset_id(self): + """Gets the asset_id of this CancelAssetTranscodeTaskRequest. - 自定义域名。长度为0-255位的字符串,需要符合域名规范。 + 媒姿ID - :return: The url_domain of this DomainReq. + :return: The asset_id of this CancelAssetTranscodeTaskRequest. :rtype: str """ - return self._url_domain + return self._asset_id - @url_domain.setter - def url_domain(self, url_domain): - """Sets the url_domain of this DomainReq. + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this CancelAssetTranscodeTaskRequest. - 自定义域名。长度为0-255位的字符串,需要符合域名规范。 + 媒姿ID - :param url_domain: The url_domain of this DomainReq. + :param asset_id: The asset_id of this CancelAssetTranscodeTaskRequest. :type: str """ - self._url_domain = url_domain + self._asset_id = asset_id def to_dict(self): """Returns the model properties as a dict""" @@ -99,7 +99,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, DomainReq): + if not isinstance(other, CancelAssetTranscodeTaskRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/cancel_asset_transcode_task_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/cancel_asset_transcode_task_response.py new file mode 100644 index 0000000000..3c3a6e6805 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/cancel_asset_transcode_task_response.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class CancelAssetTranscodeTaskResponse(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): + """CancelAssetTranscodeTaskResponse - a model defined in huaweicloud sdk""" + + super(CancelAssetTranscodeTaskResponse, 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CancelAssetTranscodeTaskResponse): + 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-vod/huaweicloudsdkvod/v1/model/cancel_extract_audio_task_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/cancel_extract_audio_task_request.py new file mode 100644 index 0000000000..292a1c737c --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/cancel_extract_audio_task_request.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CancelExtractAudioTaskRequest: + + + """ + 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 = { + 'asset_id': 'str' + } + + attribute_map = { + 'asset_id': 'asset_id' + } + + def __init__(self, asset_id=None): + """CancelExtractAudioTaskRequest - a model defined in huaweicloud sdk""" + + + + self._asset_id = None + self.discriminator = None + + self.asset_id = asset_id + + @property + def asset_id(self): + """Gets the asset_id of this CancelExtractAudioTaskRequest. + + 媒姿ID + + :return: The asset_id of this CancelExtractAudioTaskRequest. + :rtype: str + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this CancelExtractAudioTaskRequest. + + 媒姿ID + + :param asset_id: The asset_id of this CancelExtractAudioTaskRequest. + :type: str + """ + self._asset_id = asset_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CancelExtractAudioTaskRequest): + 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-vod/huaweicloudsdkvod/v1/model/cancel_extract_audio_task_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/cancel_extract_audio_task_response.py new file mode 100644 index 0000000000..b66e51e369 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/cancel_extract_audio_task_response.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class CancelExtractAudioTaskResponse(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): + """CancelExtractAudioTaskResponse - a model defined in huaweicloud sdk""" + + super(CancelExtractAudioTaskResponse, 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CancelExtractAudioTaskResponse): + 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-vod/huaweicloudsdkvod/v1/model/check_md5_duplication_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/check_md5_duplication_request.py new file mode 100644 index 0000000000..fdb425ec08 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/check_md5_duplication_request.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CheckMd5DuplicationRequest: + + + """ + 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 = { + 'size': 'int', + 'md5': 'str' + } + + attribute_map = { + 'size': 'size', + 'md5': 'md5' + } + + def __init__(self, size=None, md5=None): + """CheckMd5DuplicationRequest - a model defined in huaweicloud sdk""" + + + + self._size = None + self._md5 = None + self.discriminator = None + + self.size = size + self.md5 = md5 + + @property + def size(self): + """Gets the size of this CheckMd5DuplicationRequest. + + 文件大小 + + :return: The size of this CheckMd5DuplicationRequest. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this CheckMd5DuplicationRequest. + + 文件大小 + + :param size: The size of this CheckMd5DuplicationRequest. + :type: int + """ + self._size = size + + @property + def md5(self): + """Gets the md5 of this CheckMd5DuplicationRequest. + + 文件MD5 + + :return: The md5 of this CheckMd5DuplicationRequest. + :rtype: str + """ + return self._md5 + + @md5.setter + def md5(self, md5): + """Sets the md5 of this CheckMd5DuplicationRequest. + + 文件MD5 + + :param md5: The md5 of this CheckMd5DuplicationRequest. + :type: str + """ + self._md5 = md5 + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CheckMd5DuplicationRequest): + 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-vod/huaweicloudsdkvod/v1/model/check_md5_duplication_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/check_md5_duplication_response.py new file mode 100644 index 0000000000..bc7fc6bee5 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/check_md5_duplication_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class CheckMd5DuplicationResponse(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 = { + 'is_duplicated': 'int', + 'asset_ids': 'list[str]' + } + + attribute_map = { + 'is_duplicated': 'is_duplicated', + 'asset_ids': 'asset_ids' + } + + def __init__(self, is_duplicated=None, asset_ids=None): + """CheckMd5DuplicationResponse - a model defined in huaweicloud sdk""" + + super(CheckMd5DuplicationResponse, self).__init__() + + self._is_duplicated = None + self._asset_ids = None + self.discriminator = None + + if is_duplicated is not None: + self.is_duplicated = is_duplicated + if asset_ids is not None: + self.asset_ids = asset_ids + + @property + def is_duplicated(self): + """Gets the is_duplicated of this CheckMd5DuplicationResponse. + + 是否重复 + + :return: The is_duplicated of this CheckMd5DuplicationResponse. + :rtype: int + """ + return self._is_duplicated + + @is_duplicated.setter + def is_duplicated(self, is_duplicated): + """Sets the is_duplicated of this CheckMd5DuplicationResponse. + + 是否重复 + + :param is_duplicated: The is_duplicated of this CheckMd5DuplicationResponse. + :type: int + """ + self._is_duplicated = is_duplicated + + @property + def asset_ids(self): + """Gets the asset_ids of this CheckMd5DuplicationResponse. + + 重复的媒资ID + + :return: The asset_ids of this CheckMd5DuplicationResponse. + :rtype: list[str] + """ + return self._asset_ids + + @asset_ids.setter + def asset_ids(self, asset_ids): + """Sets the asset_ids of this CheckMd5DuplicationResponse. + + 重复的媒资ID + + :param asset_ids: The asset_ids of this CheckMd5DuplicationResponse. + :type: list[str] + """ + self._asset_ids = asset_ids + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CheckMd5DuplicationResponse): + 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-vod/huaweicloudsdkvod/v1/model/common.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/common.py new file mode 100644 index 0000000000..520b5223fb --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/common.py @@ -0,0 +1,217 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class Common: + + + """ + 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 = { + 'pvc': 'str', + 'pvc_version': 'str', + 'video_codec': 'str', + 'audio_codec': 'str', + 'hls_interval': 'int' + } + + attribute_map = { + 'pvc': 'pvc', + 'pvc_version': 'pvc_version', + 'video_codec': 'video_codec', + 'audio_codec': 'audio_codec', + 'hls_interval': 'hls_interval' + } + + def __init__(self, pvc=None, pvc_version=None, video_codec=None, audio_codec=None, hls_interval=None): + """Common - a model defined in huaweicloud sdk""" + + + + self._pvc = None + self._pvc_version = None + self._video_codec = None + self._audio_codec = None + self._hls_interval = None + self.discriminator = None + + self.pvc = pvc + if pvc_version is not None: + self.pvc_version = pvc_version + if video_codec is not None: + self.video_codec = video_codec + if audio_codec is not None: + self.audio_codec = audio_codec + if hls_interval is not None: + self.hls_interval = hls_interval + + @property + def pvc(self): + """Gets the pvc of this Common. + + pvc开关
+ + :return: The pvc of this Common. + :rtype: str + """ + return self._pvc + + @pvc.setter + def pvc(self, pvc): + """Sets the pvc of this Common. + + pvc开关
+ + :param pvc: The pvc of this Common. + :type: str + """ + self._pvc = pvc + + @property + def pvc_version(self): + """Gets the pvc_version of this Common. + + pvc版本
+ + :return: The pvc_version of this Common. + :rtype: str + """ + return self._pvc_version + + @pvc_version.setter + def pvc_version(self, pvc_version): + """Sets the pvc_version of this Common. + + pvc版本
+ + :param pvc_version: The pvc_version of this Common. + :type: str + """ + self._pvc_version = pvc_version + + @property + def video_codec(self): + """Gets the video_codec of this Common. + + 视频编码格式
+ + :return: The video_codec of this Common. + :rtype: str + """ + return self._video_codec + + @video_codec.setter + def video_codec(self, video_codec): + """Sets the video_codec of this Common. + + 视频编码格式
+ + :param video_codec: The video_codec of this Common. + :type: str + """ + self._video_codec = video_codec + + @property + def audio_codec(self): + """Gets the audio_codec of this Common. + + 音频编码格式(有效值范围)
AUDIO_CODECTYPE_AAC=1 (default)
AUDIO_CODECTYPE_HEAAC1=2
AUDIO_CODECTYPE_HEAAC2=3
AUDIO_CODECTYPE_MP3=4
+ + :return: The audio_codec of this Common. + :rtype: str + """ + return self._audio_codec + + @audio_codec.setter + def audio_codec(self, audio_codec): + """Sets the audio_codec of this Common. + + 音频编码格式(有效值范围)
AUDIO_CODECTYPE_AAC=1 (default)
AUDIO_CODECTYPE_HEAAC1=2
AUDIO_CODECTYPE_HEAAC2=3
AUDIO_CODECTYPE_MP3=4
+ + :param audio_codec: The audio_codec of this Common. + :type: str + """ + self._audio_codec = audio_codec + + @property + def hls_interval(self): + """Gets the hls_interval of this Common. + + 分片时长(默认为5秒)
+ + :return: The hls_interval of this Common. + :rtype: int + """ + return self._hls_interval + + @hls_interval.setter + def hls_interval(self, hls_interval): + """Sets the hls_interval of this Common. + + 分片时长(默认为5秒)
+ + :param hls_interval: The hls_interval of this Common. + :type: int + """ + self._hls_interval = hls_interval + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Common): + 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-vod/huaweicloudsdkvod/v1/model/confirm_asset_upload_req.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/confirm_asset_upload_req.py new file mode 100644 index 0000000000..d2cea2486f --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/confirm_asset_upload_req.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ConfirmAssetUploadReq: + + + """ + 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 = { + 'asset_id': 'str', + 'status': 'str' + } + + attribute_map = { + 'asset_id': 'asset_id', + 'status': 'status' + } + + def __init__(self, asset_id=None, status=None): + """ConfirmAssetUploadReq - a model defined in huaweicloud sdk""" + + + + self._asset_id = None + self._status = None + self.discriminator = None + + self.asset_id = asset_id + self.status = status + + @property + def asset_id(self): + """Gets the asset_id of this ConfirmAssetUploadReq. + + 媒体ID
+ + :return: The asset_id of this ConfirmAssetUploadReq. + :rtype: str + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this ConfirmAssetUploadReq. + + 媒体ID
+ + :param asset_id: The asset_id of this ConfirmAssetUploadReq. + :type: str + """ + self._asset_id = asset_id + + @property + def status(self): + """Gets the status of this ConfirmAssetUploadReq. + + 上传状态
+ + :return: The status of this ConfirmAssetUploadReq. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ConfirmAssetUploadReq. + + 上传状态
+ + :param status: The status of this ConfirmAssetUploadReq. + :type: str + """ + self._status = 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConfirmAssetUploadReq): + 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-vod/huaweicloudsdkvod/v1/model/confirm_asset_upload_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/confirm_asset_upload_request.py new file mode 100644 index 0000000000..d2d048e125 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/confirm_asset_upload_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ConfirmAssetUploadRequest: + + + """ + 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': 'ConfirmAssetUploadReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """ConfirmAssetUploadRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this ConfirmAssetUploadRequest. + + + :return: The body of this ConfirmAssetUploadRequest. + :rtype: ConfirmAssetUploadReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ConfirmAssetUploadRequest. + + + :param body: The body of this ConfirmAssetUploadRequest. + :type: ConfirmAssetUploadReq + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConfirmAssetUploadRequest): + 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-vod/huaweicloudsdkvod/v1/model/confirm_asset_upload_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/confirm_asset_upload_response.py new file mode 100644 index 0000000000..47d1439bda --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/confirm_asset_upload_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ConfirmAssetUploadResponse(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 = { + 'asset_id': 'str' + } + + attribute_map = { + 'asset_id': 'asset_id' + } + + def __init__(self, asset_id=None): + """ConfirmAssetUploadResponse - a model defined in huaweicloud sdk""" + + super(ConfirmAssetUploadResponse, self).__init__() + + self._asset_id = None + self.discriminator = None + + if asset_id is not None: + self.asset_id = asset_id + + @property + def asset_id(self): + """Gets the asset_id of this ConfirmAssetUploadResponse. + + 媒资ID + + :return: The asset_id of this ConfirmAssetUploadResponse. + :rtype: str + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this ConfirmAssetUploadResponse. + + 媒资ID + + :param asset_id: The asset_id of this ConfirmAssetUploadResponse. + :type: str + """ + self._asset_id = asset_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConfirmAssetUploadResponse): + 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-vod/huaweicloudsdkvod/v1/model/confirm_image_upload_req.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/confirm_image_upload_req.py new file mode 100644 index 0000000000..55e90cc19c --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/confirm_image_upload_req.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ConfirmImageUploadReq: + + + """ + 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' + } + + attribute_map = { + 'id': 'id', + 'status': 'status' + } + + def __init__(self, id=None, status=None): + """ConfirmImageUploadReq - a model defined in huaweicloud sdk""" + + + + self._id = None + self._status = None + self.discriminator = None + + if id is not None: + self.id = id + if status is not None: + self.status = status + + @property + def id(self): + """Gets the id of this ConfirmImageUploadReq. + + 水印配置模板id
+ + :return: The id of this ConfirmImageUploadReq. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ConfirmImageUploadReq. + + 水印配置模板id
+ + :param id: The id of this ConfirmImageUploadReq. + :type: str + """ + self._id = id + + @property + def status(self): + """Gets the status of this ConfirmImageUploadReq. + + 水印图片格式类型
+ + :return: The status of this ConfirmImageUploadReq. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ConfirmImageUploadReq. + + 水印图片格式类型
+ + :param status: The status of this ConfirmImageUploadReq. + :type: str + """ + self._status = 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConfirmImageUploadReq): + 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-vod/huaweicloudsdkvod/v1/model/confirm_image_upload_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/confirm_image_upload_request.py new file mode 100644 index 0000000000..ea60ec43f9 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/confirm_image_upload_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ConfirmImageUploadRequest: + + + """ + 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': 'ConfirmImageUploadReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """ConfirmImageUploadRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this ConfirmImageUploadRequest. + + + :return: The body of this ConfirmImageUploadRequest. + :rtype: ConfirmImageUploadReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ConfirmImageUploadRequest. + + + :param body: The body of this ConfirmImageUploadRequest. + :type: ConfirmImageUploadReq + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConfirmImageUploadRequest): + 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-vod/huaweicloudsdkvod/v1/model/confirm_image_upload_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/confirm_image_upload_response.py new file mode 100644 index 0000000000..b593d2ecf0 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/confirm_image_upload_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ConfirmImageUploadResponse(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', + 'image_url': 'str' + } + + attribute_map = { + 'id': 'id', + 'image_url': 'image_url' + } + + def __init__(self, id=None, image_url=None): + """ConfirmImageUploadResponse - a model defined in huaweicloud sdk""" + + super(ConfirmImageUploadResponse, self).__init__() + + self._id = None + self._image_url = None + self.discriminator = None + + if id is not None: + self.id = id + if image_url is not None: + self.image_url = image_url + + @property + def id(self): + """Gets the id of this ConfirmImageUploadResponse. + + 水印配置模板id
+ + :return: The id of this ConfirmImageUploadResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ConfirmImageUploadResponse. + + 水印配置模板id
+ + :param id: The id of this ConfirmImageUploadResponse. + :type: str + """ + self._id = id + + @property + def image_url(self): + """Gets the image_url of this ConfirmImageUploadResponse. + + 水印图片的下载url
+ + :return: The image_url of this ConfirmImageUploadResponse. + :rtype: str + """ + return self._image_url + + @image_url.setter + def image_url(self, image_url): + """Sets the image_url of this ConfirmImageUploadResponse. + + 水印图片的下载url
+ + :param image_url: The image_url of this ConfirmImageUploadResponse. + :type: str + """ + self._image_url = image_url + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConfirmImageUploadResponse): + 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-vod/huaweicloudsdkvod/v1/model/cover_info.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/cover_info.py new file mode 100644 index 0000000000..83b0890d4a --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/cover_info.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CoverInfo: + + + """ + 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 = { + 'cover_url': 'str' + } + + attribute_map = { + 'cover_url': 'cover_url' + } + + def __init__(self, cover_url=None): + """CoverInfo - a model defined in huaweicloud sdk""" + + + + self._cover_url = None + self.discriminator = None + + if cover_url is not None: + self.cover_url = cover_url + + @property + def cover_url(self): + """Gets the cover_url of this CoverInfo. + + 封面文件的下载地址
+ + :return: The cover_url of this CoverInfo. + :rtype: str + """ + return self._cover_url + + @cover_url.setter + def cover_url(self, cover_url): + """Sets the cover_url of this CoverInfo. + + 封面文件的下载地址
+ + :param cover_url: The cover_url of this CoverInfo. + :type: str + """ + self._cover_url = cover_url + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoverInfo): + 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-vod/huaweicloudsdkvod/v1/model/create_asset_by_file_req.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_asset_by_file_req.py new file mode 100644 index 0000000000..1bb8c1ab13 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_asset_by_file_req.py @@ -0,0 +1,538 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateAssetByFileReq: + + + """ + 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 = { + 'video_type': 'str', + 'title': 'str', + 'description': 'str', + 'category_id': 'int', + 'tags': 'str', + 'auto_publish': 'int', + 'template_group_name': 'str', + 'auto_encrypt': 'int', + 'auto_preheat': 'int', + 'thumbnail': 'Thumbnail', + 'review': 'Review', + 'workflow_name': 'str', + 'video_name': 'str', + 'video_md5': 'str', + 'cover_type': 'str', + 'cover_md5': 'str', + 'subtitles': 'list[Subtitle]' + } + + attribute_map = { + 'video_type': 'video_type', + 'title': 'title', + 'description': 'description', + 'category_id': 'category_id', + 'tags': 'tags', + 'auto_publish': 'auto_publish', + 'template_group_name': 'template_group_name', + 'auto_encrypt': 'auto_encrypt', + 'auto_preheat': 'auto_preheat', + 'thumbnail': 'thumbnail', + 'review': 'review', + 'workflow_name': 'workflow_name', + 'video_name': 'video_name', + 'video_md5': 'video_md5', + 'cover_type': 'cover_type', + 'cover_md5': 'cover_md5', + 'subtitles': 'subtitles' + } + + def __init__(self, video_type=None, title=None, description=None, category_id=None, tags=None, auto_publish=None, template_group_name=None, auto_encrypt=None, auto_preheat=None, thumbnail=None, review=None, workflow_name=None, video_name=None, video_md5=None, cover_type=None, cover_md5=None, subtitles=None): + """CreateAssetByFileReq - a model defined in huaweicloud sdk""" + + + + self._video_type = None + self._title = None + self._description = None + self._category_id = None + self._tags = None + self._auto_publish = None + self._template_group_name = None + self._auto_encrypt = None + self._auto_preheat = None + self._thumbnail = None + self._review = None + self._workflow_name = None + self._video_name = None + self._video_md5 = None + self._cover_type = None + self._cover_md5 = None + self._subtitles = None + self.discriminator = None + + if video_type is not None: + self.video_type = video_type + if title is not None: + self.title = title + if description is not None: + self.description = description + if category_id is not None: + self.category_id = category_id + if tags is not None: + self.tags = tags + if auto_publish is not None: + self.auto_publish = auto_publish + if template_group_name is not None: + self.template_group_name = template_group_name + if auto_encrypt is not None: + self.auto_encrypt = auto_encrypt + if auto_preheat is not None: + self.auto_preheat = auto_preheat + if thumbnail is not None: + self.thumbnail = thumbnail + if review is not None: + self.review = review + if workflow_name is not None: + self.workflow_name = workflow_name + if video_name is not None: + self.video_name = video_name + if video_md5 is not None: + self.video_md5 = video_md5 + if cover_type is not None: + self.cover_type = cover_type + if cover_md5 is not None: + self.cover_md5 = cover_md5 + if subtitles is not None: + self.subtitles = subtitles + + @property + def video_type(self): + """Gets the video_type of this CreateAssetByFileReq. + + 视频类型
+ + :return: The video_type of this CreateAssetByFileReq. + :rtype: str + """ + return self._video_type + + @video_type.setter + def video_type(self, video_type): + """Sets the video_type of this CreateAssetByFileReq. + + 视频类型
+ + :param video_type: The video_type of this CreateAssetByFileReq. + :type: str + """ + self._video_type = video_type + + @property + def title(self): + """Gets the title of this CreateAssetByFileReq. + + 媒资标题
+ + :return: The title of this CreateAssetByFileReq. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this CreateAssetByFileReq. + + 媒资标题
+ + :param title: The title of this CreateAssetByFileReq. + :type: str + """ + self._title = title + + @property + def description(self): + """Gets the description of this CreateAssetByFileReq. + + 视频描述
+ + :return: The description of this CreateAssetByFileReq. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateAssetByFileReq. + + 视频描述
+ + :param description: The description of this CreateAssetByFileReq. + :type: str + """ + self._description = description + + @property + def category_id(self): + """Gets the category_id of this CreateAssetByFileReq. + + 媒资分类id
+ + :return: The category_id of this CreateAssetByFileReq. + :rtype: int + """ + return self._category_id + + @category_id.setter + def category_id(self, category_id): + """Sets the category_id of this CreateAssetByFileReq. + + 媒资分类id
+ + :param category_id: The category_id of this CreateAssetByFileReq. + :type: int + """ + self._category_id = category_id + + @property + def tags(self): + """Gets the tags of this CreateAssetByFileReq. + + 视频标签
+ + :return: The tags of this CreateAssetByFileReq. + :rtype: str + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this CreateAssetByFileReq. + + 视频标签
+ + :param tags: The tags of this CreateAssetByFileReq. + :type: str + """ + self._tags = tags + + @property + def auto_publish(self): + """Gets the auto_publish of this CreateAssetByFileReq. + + 是否自动发布
+ + :return: The auto_publish of this CreateAssetByFileReq. + :rtype: int + """ + return self._auto_publish + + @auto_publish.setter + def auto_publish(self, auto_publish): + """Sets the auto_publish of this CreateAssetByFileReq. + + 是否自动发布
+ + :param auto_publish: The auto_publish of this CreateAssetByFileReq. + :type: int + """ + self._auto_publish = auto_publish + + @property + def template_group_name(self): + """Gets the template_group_name of this CreateAssetByFileReq. + + 转码模板组名称
+ + :return: The template_group_name of this CreateAssetByFileReq. + :rtype: str + """ + return self._template_group_name + + @template_group_name.setter + def template_group_name(self, template_group_name): + """Sets the template_group_name of this CreateAssetByFileReq. + + 转码模板组名称
+ + :param template_group_name: The template_group_name of this CreateAssetByFileReq. + :type: str + """ + self._template_group_name = template_group_name + + @property + def auto_encrypt(self): + """Gets the auto_encrypt of this CreateAssetByFileReq. + + 是否自动加密,取值[0,1],0表示需要不加密;1表示需要加密。加密与转码必须要一起进行,当需要加密时,转码参数不能为空,且转码输出必须要为HLS + + :return: The auto_encrypt of this CreateAssetByFileReq. + :rtype: int + """ + return self._auto_encrypt + + @auto_encrypt.setter + def auto_encrypt(self, auto_encrypt): + """Sets the auto_encrypt of this CreateAssetByFileReq. + + 是否自动加密,取值[0,1],0表示需要不加密;1表示需要加密。加密与转码必须要一起进行,当需要加密时,转码参数不能为空,且转码输出必须要为HLS + + :param auto_encrypt: The auto_encrypt of this CreateAssetByFileReq. + :type: int + """ + self._auto_encrypt = auto_encrypt + + @property + def auto_preheat(self): + """Gets the auto_preheat of this CreateAssetByFileReq. + + 是否自动预热到CDN,取值[0,1],0表示不自动预热 + + :return: The auto_preheat of this CreateAssetByFileReq. + :rtype: int + """ + return self._auto_preheat + + @auto_preheat.setter + def auto_preheat(self, auto_preheat): + """Sets the auto_preheat of this CreateAssetByFileReq. + + 是否自动预热到CDN,取值[0,1],0表示不自动预热 + + :param auto_preheat: The auto_preheat of this CreateAssetByFileReq. + :type: int + """ + self._auto_preheat = auto_preheat + + @property + def thumbnail(self): + """Gets the thumbnail of this CreateAssetByFileReq. + + + :return: The thumbnail of this CreateAssetByFileReq. + :rtype: Thumbnail + """ + return self._thumbnail + + @thumbnail.setter + def thumbnail(self, thumbnail): + """Sets the thumbnail of this CreateAssetByFileReq. + + + :param thumbnail: The thumbnail of this CreateAssetByFileReq. + :type: Thumbnail + """ + self._thumbnail = thumbnail + + @property + def review(self): + """Gets the review of this CreateAssetByFileReq. + + + :return: The review of this CreateAssetByFileReq. + :rtype: Review + """ + return self._review + + @review.setter + def review(self, review): + """Sets the review of this CreateAssetByFileReq. + + + :param review: The review of this CreateAssetByFileReq. + :type: Review + """ + self._review = review + + @property + def workflow_name(self): + """Gets the workflow_name of this CreateAssetByFileReq. + + 工作流ID + + :return: The workflow_name of this CreateAssetByFileReq. + :rtype: str + """ + return self._workflow_name + + @workflow_name.setter + def workflow_name(self, workflow_name): + """Sets the workflow_name of this CreateAssetByFileReq. + + 工作流ID + + :param workflow_name: The workflow_name of this CreateAssetByFileReq. + :type: str + """ + self._workflow_name = workflow_name + + @property + def video_name(self): + """Gets the video_name of this CreateAssetByFileReq. + + 视频文件名
+ + :return: The video_name of this CreateAssetByFileReq. + :rtype: str + """ + return self._video_name + + @video_name.setter + def video_name(self, video_name): + """Sets the video_name of this CreateAssetByFileReq. + + 视频文件名
+ + :param video_name: The video_name of this CreateAssetByFileReq. + :type: str + """ + self._video_name = video_name + + @property + def video_md5(self): + """Gets the video_md5 of this CreateAssetByFileReq. + + 视频文件MD5值
+ + :return: The video_md5 of this CreateAssetByFileReq. + :rtype: str + """ + return self._video_md5 + + @video_md5.setter + def video_md5(self, video_md5): + """Sets the video_md5 of this CreateAssetByFileReq. + + 视频文件MD5值
+ + :param video_md5: The video_md5 of this CreateAssetByFileReq. + :type: str + """ + self._video_md5 = video_md5 + + @property + def cover_type(self): + """Gets the cover_type of this CreateAssetByFileReq. + + 封面图片文件类型
+ + :return: The cover_type of this CreateAssetByFileReq. + :rtype: str + """ + return self._cover_type + + @cover_type.setter + def cover_type(self, cover_type): + """Sets the cover_type of this CreateAssetByFileReq. + + 封面图片文件类型
+ + :param cover_type: The cover_type of this CreateAssetByFileReq. + :type: str + """ + self._cover_type = cover_type + + @property + def cover_md5(self): + """Gets the cover_md5 of this CreateAssetByFileReq. + + 封面文件MD5值
+ + :return: The cover_md5 of this CreateAssetByFileReq. + :rtype: str + """ + return self._cover_md5 + + @cover_md5.setter + def cover_md5(self, cover_md5): + """Sets the cover_md5 of this CreateAssetByFileReq. + + 封面文件MD5值
+ + :param cover_md5: The cover_md5 of this CreateAssetByFileReq. + :type: str + """ + self._cover_md5 = cover_md5 + + @property + def subtitles(self): + """Gets the subtitles of this CreateAssetByFileReq. + + 字幕文件信息
+ + :return: The subtitles of this CreateAssetByFileReq. + :rtype: list[Subtitle] + """ + return self._subtitles + + @subtitles.setter + def subtitles(self, subtitles): + """Sets the subtitles of this CreateAssetByFileReq. + + 字幕文件信息
+ + :param subtitles: The subtitles of this CreateAssetByFileReq. + :type: list[Subtitle] + """ + self._subtitles = subtitles + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAssetByFileReq): + 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-vod/huaweicloudsdkvod/v1/model/create_asset_by_file_upload_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_asset_by_file_upload_request.py new file mode 100644 index 0000000000..7260af8109 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_asset_by_file_upload_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateAssetByFileUploadRequest: + + + """ + 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': 'CreateAssetByFileReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateAssetByFileUploadRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateAssetByFileUploadRequest. + + + :return: The body of this CreateAssetByFileUploadRequest. + :rtype: CreateAssetByFileReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateAssetByFileUploadRequest. + + + :param body: The body of this CreateAssetByFileUploadRequest. + :type: CreateAssetByFileReq + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAssetByFileUploadRequest): + 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-vod/huaweicloudsdkvod/v1/model/create_asset_by_file_upload_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_asset_by_file_upload_response.py new file mode 100644 index 0000000000..e99240852b --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_asset_by_file_upload_response.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class CreateAssetByFileUploadResponse(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 = { + 'asset_id': 'str', + 'video_upload_url': 'str', + 'cover_upload_url': 'str', + 'subtitle_upload_urls': 'list[str]', + 'target': 'FileAddr' + } + + attribute_map = { + 'asset_id': 'asset_id', + 'video_upload_url': 'video_upload_url', + 'cover_upload_url': 'cover_upload_url', + 'subtitle_upload_urls': 'subtitle_upload_urls', + 'target': 'target' + } + + def __init__(self, asset_id=None, video_upload_url=None, cover_upload_url=None, subtitle_upload_urls=None, target=None): + """CreateAssetByFileUploadResponse - a model defined in huaweicloud sdk""" + + super(CreateAssetByFileUploadResponse, self).__init__() + + self._asset_id = None + self._video_upload_url = None + self._cover_upload_url = None + self._subtitle_upload_urls = None + self._target = None + self.discriminator = None + + if asset_id is not None: + self.asset_id = asset_id + if video_upload_url is not None: + self.video_upload_url = video_upload_url + if cover_upload_url is not None: + self.cover_upload_url = cover_upload_url + if subtitle_upload_urls is not None: + self.subtitle_upload_urls = subtitle_upload_urls + if target is not None: + self.target = target + + @property + def asset_id(self): + """Gets the asset_id of this CreateAssetByFileUploadResponse. + + 媒体ID
+ + :return: The asset_id of this CreateAssetByFileUploadResponse. + :rtype: str + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this CreateAssetByFileUploadResponse. + + 媒体ID
+ + :param asset_id: The asset_id of this CreateAssetByFileUploadResponse. + :type: str + """ + self._asset_id = asset_id + + @property + def video_upload_url(self): + """Gets the video_upload_url of this CreateAssetByFileUploadResponse. + + 视频上传URL
+ + :return: The video_upload_url of this CreateAssetByFileUploadResponse. + :rtype: str + """ + return self._video_upload_url + + @video_upload_url.setter + def video_upload_url(self, video_upload_url): + """Sets the video_upload_url of this CreateAssetByFileUploadResponse. + + 视频上传URL
+ + :param video_upload_url: The video_upload_url of this CreateAssetByFileUploadResponse. + :type: str + """ + self._video_upload_url = video_upload_url + + @property + def cover_upload_url(self): + """Gets the cover_upload_url of this CreateAssetByFileUploadResponse. + + 封面上传地址
+ + :return: The cover_upload_url of this CreateAssetByFileUploadResponse. + :rtype: str + """ + return self._cover_upload_url + + @cover_upload_url.setter + def cover_upload_url(self, cover_upload_url): + """Sets the cover_upload_url of this CreateAssetByFileUploadResponse. + + 封面上传地址
+ + :param cover_upload_url: The cover_upload_url of this CreateAssetByFileUploadResponse. + :type: str + """ + self._cover_upload_url = cover_upload_url + + @property + def subtitle_upload_urls(self): + """Gets the subtitle_upload_urls of this CreateAssetByFileUploadResponse. + + 字幕文件上传url数组
+ + :return: The subtitle_upload_urls of this CreateAssetByFileUploadResponse. + :rtype: list[str] + """ + return self._subtitle_upload_urls + + @subtitle_upload_urls.setter + def subtitle_upload_urls(self, subtitle_upload_urls): + """Sets the subtitle_upload_urls of this CreateAssetByFileUploadResponse. + + 字幕文件上传url数组
+ + :param subtitle_upload_urls: The subtitle_upload_urls of this CreateAssetByFileUploadResponse. + :type: list[str] + """ + self._subtitle_upload_urls = subtitle_upload_urls + + @property + def target(self): + """Gets the target of this CreateAssetByFileUploadResponse. + + + :return: The target of this CreateAssetByFileUploadResponse. + :rtype: FileAddr + """ + return self._target + + @target.setter + def target(self, target): + """Sets the target of this CreateAssetByFileUploadResponse. + + + :param target: The target of this CreateAssetByFileUploadResponse. + :type: FileAddr + """ + self._target = target + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAssetByFileUploadResponse): + 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-vod/huaweicloudsdkvod/v1/model/create_asset_category_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_asset_category_request.py new file mode 100644 index 0000000000..26113b04e2 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_asset_category_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateAssetCategoryRequest: + + + """ + 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': 'CreateCategoryReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateAssetCategoryRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateAssetCategoryRequest. + + + :return: The body of this CreateAssetCategoryRequest. + :rtype: CreateCategoryReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateAssetCategoryRequest. + + + :param body: The body of this CreateAssetCategoryRequest. + :type: CreateCategoryReq + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAssetCategoryRequest): + 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-vod/huaweicloudsdkvod/v1/model/create_asset_category_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_asset_category_response.py new file mode 100644 index 0000000000..9f89a6b329 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_asset_category_response.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class CreateAssetCategoryResponse(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 = { + 'name': 'str', + 'parent_id': 'int', + 'id': 'int', + 'level': 'int', + 'project_id': 'str' + } + + attribute_map = { + 'name': 'name', + 'parent_id': 'parent_id', + 'id': 'id', + 'level': 'level', + 'project_id': 'projectId' + } + + def __init__(self, name=None, parent_id=None, id=None, level=None, project_id=None): + """CreateAssetCategoryResponse - a model defined in huaweicloud sdk""" + + super(CreateAssetCategoryResponse, self).__init__() + + self._name = None + self._parent_id = None + self._id = None + self._level = None + self._project_id = None + self.discriminator = None + + if name is not None: + self.name = name + if parent_id is not None: + self.parent_id = parent_id + if id is not None: + self.id = id + if level is not None: + self.level = level + if project_id is not None: + self.project_id = project_id + + @property + def name(self): + """Gets the name of this CreateAssetCategoryResponse. + + 视频分类名称
+ + :return: The name of this CreateAssetCategoryResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateAssetCategoryResponse. + + 视频分类名称
+ + :param name: The name of this CreateAssetCategoryResponse. + :type: str + """ + self._name = name + + @property + def parent_id(self): + """Gets the parent_id of this CreateAssetCategoryResponse. + + 父分类ID
+ + :return: The parent_id of this CreateAssetCategoryResponse. + :rtype: int + """ + return self._parent_id + + @parent_id.setter + def parent_id(self, parent_id): + """Sets the parent_id of this CreateAssetCategoryResponse. + + 父分类ID
+ + :param parent_id: The parent_id of this CreateAssetCategoryResponse. + :type: int + """ + self._parent_id = parent_id + + @property + def id(self): + """Gets the id of this CreateAssetCategoryResponse. + + 视频分类ID
+ + :return: The id of this CreateAssetCategoryResponse. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateAssetCategoryResponse. + + 视频分类ID
+ + :param id: The id of this CreateAssetCategoryResponse. + :type: int + """ + self._id = id + + @property + def level(self): + """Gets the level of this CreateAssetCategoryResponse. + + 视频分类层级
+ + :return: The level of this CreateAssetCategoryResponse. + :rtype: int + """ + return self._level + + @level.setter + def level(self, level): + """Sets the level of this CreateAssetCategoryResponse. + + 视频分类层级
+ + :param level: The level of this CreateAssetCategoryResponse. + :type: int + """ + self._level = level + + @property + def project_id(self): + """Gets the project_id of this CreateAssetCategoryResponse. + + + :return: The project_id of this CreateAssetCategoryResponse. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CreateAssetCategoryResponse. + + + :param project_id: The project_id of this CreateAssetCategoryResponse. + :type: str + """ + self._project_id = 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAssetCategoryResponse): + 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-vod/huaweicloudsdkvod/v1/model/create_asset_process_task_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_asset_process_task_request.py new file mode 100644 index 0000000000..1ceb8b1f3b --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_asset_process_task_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateAssetProcessTaskRequest: + + + """ + 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': 'AssetProcessReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateAssetProcessTaskRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateAssetProcessTaskRequest. + + + :return: The body of this CreateAssetProcessTaskRequest. + :rtype: AssetProcessReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateAssetProcessTaskRequest. + + + :param body: The body of this CreateAssetProcessTaskRequest. + :type: AssetProcessReq + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAssetProcessTaskRequest): + 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-vod/huaweicloudsdkvod/v1/model/create_asset_process_task_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_asset_process_task_response.py new file mode 100644 index 0000000000..3b5ff64258 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_asset_process_task_response.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class CreateAssetProcessTaskResponse(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 = { + 'asset_id': 'str' + } + + attribute_map = { + 'asset_id': 'asset_id' + } + + def __init__(self, asset_id=None): + """CreateAssetProcessTaskResponse - a model defined in huaweicloud sdk""" + + super(CreateAssetProcessTaskResponse, self).__init__() + + self._asset_id = None + self.discriminator = None + + if asset_id is not None: + self.asset_id = asset_id + + @property + def asset_id(self): + """Gets the asset_id of this CreateAssetProcessTaskResponse. + + + :return: The asset_id of this CreateAssetProcessTaskResponse. + :rtype: str + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this CreateAssetProcessTaskResponse. + + + :param asset_id: The asset_id of this CreateAssetProcessTaskResponse. + :type: str + """ + self._asset_id = asset_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAssetProcessTaskResponse): + 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-vod/huaweicloudsdkvod/v1/model/create_asset_review_task_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_asset_review_task_request.py new file mode 100644 index 0000000000..ed4bbfe19d --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_asset_review_task_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateAssetReviewTaskRequest: + + + """ + 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': 'AssetReviewReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateAssetReviewTaskRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateAssetReviewTaskRequest. + + + :return: The body of this CreateAssetReviewTaskRequest. + :rtype: AssetReviewReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateAssetReviewTaskRequest. + + + :param body: The body of this CreateAssetReviewTaskRequest. + :type: AssetReviewReq + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAssetReviewTaskRequest): + 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-vod/huaweicloudsdkvod/v1/model/create_asset_review_task_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_asset_review_task_response.py new file mode 100644 index 0000000000..dafef5b5ce --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_asset_review_task_response.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class CreateAssetReviewTaskResponse(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 = { + 'asset_id': 'str', + 'review': 'Review' + } + + attribute_map = { + 'asset_id': 'asset_id', + 'review': 'review' + } + + def __init__(self, asset_id=None, review=None): + """CreateAssetReviewTaskResponse - a model defined in huaweicloud sdk""" + + super(CreateAssetReviewTaskResponse, self).__init__() + + self._asset_id = None + self._review = None + self.discriminator = None + + if asset_id is not None: + self.asset_id = asset_id + if review is not None: + self.review = review + + @property + def asset_id(self): + """Gets the asset_id of this CreateAssetReviewTaskResponse. + + 媒资ID + + :return: The asset_id of this CreateAssetReviewTaskResponse. + :rtype: str + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this CreateAssetReviewTaskResponse. + + 媒资ID + + :param asset_id: The asset_id of this CreateAssetReviewTaskResponse. + :type: str + """ + self._asset_id = asset_id + + @property + def review(self): + """Gets the review of this CreateAssetReviewTaskResponse. + + + :return: The review of this CreateAssetReviewTaskResponse. + :rtype: Review + """ + return self._review + + @review.setter + def review(self, review): + """Sets the review of this CreateAssetReviewTaskResponse. + + + :param review: The review of this CreateAssetReviewTaskResponse. + :type: Review + """ + self._review = review + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAssetReviewTaskResponse): + 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-vod/huaweicloudsdkvod/v1/model/create_category_req.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_category_req.py new file mode 100644 index 0000000000..7c74c3cb64 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_category_req.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateCategoryReq: + + + """ + 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', + 'parent_id': 'int' + } + + attribute_map = { + 'name': 'name', + 'parent_id': 'parent_id' + } + + def __init__(self, name=None, parent_id=None): + """CreateCategoryReq - a model defined in huaweicloud sdk""" + + + + self._name = None + self._parent_id = None + self.discriminator = None + + self.name = name + if parent_id is not None: + self.parent_id = parent_id + + @property + def name(self): + """Gets the name of this CreateCategoryReq. + + 视频分类名称 + + :return: The name of this CreateCategoryReq. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateCategoryReq. + + 视频分类名称 + + :param name: The name of this CreateCategoryReq. + :type: str + """ + self._name = name + + @property + def parent_id(self): + """Gets the parent_id of this CreateCategoryReq. + + 父分类ID + + :return: The parent_id of this CreateCategoryReq. + :rtype: int + """ + return self._parent_id + + @parent_id.setter + def parent_id(self, parent_id): + """Sets the parent_id of this CreateCategoryReq. + + 父分类ID + + :param parent_id: The parent_id of this CreateCategoryReq. + :type: int + """ + self._parent_id = parent_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateCategoryReq): + 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-vod/huaweicloudsdkvod/v1/model/create_extract_audio_task_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_extract_audio_task_request.py new file mode 100644 index 0000000000..3d0870752b --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_extract_audio_task_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateExtractAudioTaskRequest: + + + """ + 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': 'ExtractAudioTaskReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateExtractAudioTaskRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateExtractAudioTaskRequest. + + + :return: The body of this CreateExtractAudioTaskRequest. + :rtype: ExtractAudioTaskReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateExtractAudioTaskRequest. + + + :param body: The body of this CreateExtractAudioTaskRequest. + :type: ExtractAudioTaskReq + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateExtractAudioTaskRequest): + 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-vod/huaweicloudsdkvod/v1/model/create_extract_audio_task_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_extract_audio_task_response.py new file mode 100644 index 0000000000..0f3a543d10 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_extract_audio_task_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class CreateExtractAudioTaskResponse(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 = { + 'asset_id': 'str', + 'audio_asset_id': 'str' + } + + attribute_map = { + 'asset_id': 'asset_id', + 'audio_asset_id': 'audio_asset_id' + } + + def __init__(self, asset_id=None, audio_asset_id=None): + """CreateExtractAudioTaskResponse - a model defined in huaweicloud sdk""" + + super(CreateExtractAudioTaskResponse, self).__init__() + + self._asset_id = None + self._audio_asset_id = None + self.discriminator = None + + if asset_id is not None: + self.asset_id = asset_id + if audio_asset_id is not None: + self.audio_asset_id = audio_asset_id + + @property + def asset_id(self): + """Gets the asset_id of this CreateExtractAudioTaskResponse. + + 视频源媒资ID
+ + :return: The asset_id of this CreateExtractAudioTaskResponse. + :rtype: str + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this CreateExtractAudioTaskResponse. + + 视频源媒资ID
+ + :param asset_id: The asset_id of this CreateExtractAudioTaskResponse. + :type: str + """ + self._asset_id = asset_id + + @property + def audio_asset_id(self): + """Gets the audio_asset_id of this CreateExtractAudioTaskResponse. + + 提取的音频媒资ID
+ + :return: The audio_asset_id of this CreateExtractAudioTaskResponse. + :rtype: str + """ + return self._audio_asset_id + + @audio_asset_id.setter + def audio_asset_id(self, audio_asset_id): + """Sets the audio_asset_id of this CreateExtractAudioTaskResponse. + + 提取的音频媒资ID
+ + :param audio_asset_id: The audio_asset_id of this CreateExtractAudioTaskResponse. + :type: str + """ + self._audio_asset_id = audio_asset_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateExtractAudioTaskResponse): + 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-vod/huaweicloudsdkvod/v1/model/create_preheating_asset_req.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_preheating_asset_req.py new file mode 100644 index 0000000000..a94f946871 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_preheating_asset_req.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreatePreheatingAssetReq: + + + """ + 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 = { + 'asset_id': 'str', + 'urls': 'list[str]' + } + + attribute_map = { + 'asset_id': 'asset_id', + 'urls': 'urls' + } + + def __init__(self, asset_id=None, urls=None): + """CreatePreheatingAssetReq - a model defined in huaweicloud sdk""" + + + + self._asset_id = None + self._urls = None + self.discriminator = None + + if asset_id is not None: + self.asset_id = asset_id + if urls is not None: + self.urls = urls + + @property + def asset_id(self): + """Gets the asset_id of this CreatePreheatingAssetReq. + + 根据媒资ID预热时,必选。 + + :return: The asset_id of this CreatePreheatingAssetReq. + :rtype: str + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this CreatePreheatingAssetReq. + + 根据媒资ID预热时,必选。 + + :param asset_id: The asset_id of this CreatePreheatingAssetReq. + :type: str + """ + self._asset_id = asset_id + + @property + def urls(self): + """Gets the urls of this CreatePreheatingAssetReq. + + 根据url预热时,必选。
+ + :return: The urls of this CreatePreheatingAssetReq. + :rtype: list[str] + """ + return self._urls + + @urls.setter + def urls(self, urls): + """Sets the urls of this CreatePreheatingAssetReq. + + 根据url预热时,必选。
+ + :param urls: The urls of this CreatePreheatingAssetReq. + :type: list[str] + """ + self._urls = urls + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatePreheatingAssetReq): + 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-vod/huaweicloudsdkvod/v1/model/create_preheating_asset_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_preheating_asset_request.py new file mode 100644 index 0000000000..90a35981dc --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_preheating_asset_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreatePreheatingAssetRequest: + + + """ + 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': 'CreatePreheatingAssetReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreatePreheatingAssetRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreatePreheatingAssetRequest. + + + :return: The body of this CreatePreheatingAssetRequest. + :rtype: CreatePreheatingAssetReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreatePreheatingAssetRequest. + + + :param body: The body of this CreatePreheatingAssetRequest. + :type: CreatePreheatingAssetReq + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatePreheatingAssetRequest): + 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-vod/huaweicloudsdkvod/v1/model/create_preheating_asset_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_preheating_asset_response.py new file mode 100644 index 0000000000..2bf608d4a0 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_preheating_asset_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class CreatePreheatingAssetResponse(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 = { + 'task_id': 'str' + } + + attribute_map = { + 'task_id': 'task_id' + } + + def __init__(self, task_id=None): + """CreatePreheatingAssetResponse - a model defined in huaweicloud sdk""" + + super(CreatePreheatingAssetResponse, self).__init__() + + self._task_id = None + self.discriminator = None + + if task_id is not None: + self.task_id = task_id + + @property + def task_id(self): + """Gets the task_id of this CreatePreheatingAssetResponse. + + 预热任务ID
+ + :return: The task_id of this CreatePreheatingAssetResponse. + :rtype: str + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this CreatePreheatingAssetResponse. + + 预热任务ID
+ + :param task_id: The task_id of this CreatePreheatingAssetResponse. + :type: str + """ + self._task_id = task_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatePreheatingAssetResponse): + 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-vod/huaweicloudsdkvod/v1/model/create_take_over_task_req.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_take_over_task_req.py new file mode 100644 index 0000000000..af17cf7d31 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_take_over_task_req.py @@ -0,0 +1,297 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateTakeOverTaskReq: + + + """ + 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 = { + 'bucket': 'str', + 'object': 'str', + 'suffix': 'list[str]', + 'template_group_name': 'str', + 'workflow_name': 'str', + 'host_type': 'int', + 'output_bucket': 'str', + 'output_path': 'str' + } + + attribute_map = { + 'bucket': 'bucket', + 'object': 'object', + 'suffix': 'suffix', + 'template_group_name': 'template_group_name', + 'workflow_name': 'workflow_name', + 'host_type': 'host_type', + 'output_bucket': 'output_bucket', + 'output_path': 'output_path' + } + + def __init__(self, bucket=None, object=None, suffix=None, template_group_name=None, workflow_name=None, host_type=None, output_bucket=None, output_path=None): + """CreateTakeOverTaskReq - a model defined in huaweicloud sdk""" + + + + self._bucket = None + self._object = None + self._suffix = None + self._template_group_name = None + self._workflow_name = None + self._host_type = None + self._output_bucket = None + self._output_path = None + self.discriminator = None + + self.bucket = bucket + self.object = object + if suffix is not None: + self.suffix = suffix + if template_group_name is not None: + self.template_group_name = template_group_name + if workflow_name is not None: + self.workflow_name = workflow_name + if host_type is not None: + self.host_type = host_type + if output_bucket is not None: + self.output_bucket = output_bucket + if output_path is not None: + self.output_path = output_path + + @property + def bucket(self): + """Gets the bucket of this CreateTakeOverTaskReq. + + 桶
+ + :return: The bucket of this CreateTakeOverTaskReq. + :rtype: str + """ + return self._bucket + + @bucket.setter + def bucket(self, bucket): + """Sets the bucket of this CreateTakeOverTaskReq. + + 桶
+ + :param bucket: The bucket of this CreateTakeOverTaskReq. + :type: str + """ + self._bucket = bucket + + @property + def object(self): + """Gets the object of this CreateTakeOverTaskReq. + + 目录 + + :return: The object of this CreateTakeOverTaskReq. + :rtype: str + """ + return self._object + + @object.setter + def object(self, object): + """Sets the object of this CreateTakeOverTaskReq. + + 目录 + + :param object: The object of this CreateTakeOverTaskReq. + :type: str + """ + self._object = object + + @property + def suffix(self): + """Gets the suffix of this CreateTakeOverTaskReq. + + 指定托管文件后缀名 - 如果不传,或传空数组,则不会进行文件后缀名过滤。 + + :return: The suffix of this CreateTakeOverTaskReq. + :rtype: list[str] + """ + return self._suffix + + @suffix.setter + def suffix(self, suffix): + """Sets the suffix of this CreateTakeOverTaskReq. + + 指定托管文件后缀名 - 如果不传,或传空数组,则不会进行文件后缀名过滤。 + + :param suffix: The suffix of this CreateTakeOverTaskReq. + :type: list[str] + """ + self._suffix = suffix + + @property + def template_group_name(self): + """Gets the template_group_name of this CreateTakeOverTaskReq. + + 转码模板组
若未设置template_group_name和workflow_name,则不进行转码动作。 若同时设置了“template_group_name”和“workflow_name”字段,则“template_group_name”字段生效。 + + :return: The template_group_name of this CreateTakeOverTaskReq. + :rtype: str + """ + return self._template_group_name + + @template_group_name.setter + def template_group_name(self, template_group_name): + """Sets the template_group_name of this CreateTakeOverTaskReq. + + 转码模板组
若未设置template_group_name和workflow_name,则不进行转码动作。 若同时设置了“template_group_name”和“workflow_name”字段,则“template_group_name”字段生效。 + + :param template_group_name: The template_group_name of this CreateTakeOverTaskReq. + :type: str + """ + self._template_group_name = template_group_name + + @property + def workflow_name(self): + """Gets the workflow_name of this CreateTakeOverTaskReq. + + '工作流ID' 若同时设置了“template_group_name”和“workflow_name”字段,则“template_group_name”字段生效。 + + :return: The workflow_name of this CreateTakeOverTaskReq. + :rtype: str + """ + return self._workflow_name + + @workflow_name.setter + def workflow_name(self, workflow_name): + """Sets the workflow_name of this CreateTakeOverTaskReq. + + '工作流ID' 若同时设置了“template_group_name”和“workflow_name”字段,则“template_group_name”字段生效。 + + :param workflow_name: The workflow_name of this CreateTakeOverTaskReq. + :type: str + """ + self._workflow_name = workflow_name + + @property + def host_type(self): + """Gets the host_type of this CreateTakeOverTaskReq. + + 托管类型:0表示存储到点播桶 1表示存储在租户桶 2表示存储到租户桶,并且存储路径与源文件一致。
+ + :return: The host_type of this CreateTakeOverTaskReq. + :rtype: int + """ + return self._host_type + + @host_type.setter + def host_type(self, host_type): + """Sets the host_type of this CreateTakeOverTaskReq. + + 托管类型:0表示存储到点播桶 1表示存储在租户桶 2表示存储到租户桶,并且存储路径与源文件一致。
+ + :param host_type: The host_type of this CreateTakeOverTaskReq. + :type: int + """ + self._host_type = host_type + + @property + def output_bucket(self): + """Gets the output_bucket of this CreateTakeOverTaskReq. + + 输出桶
约束: - host_type为1时,必选 + + :return: The output_bucket of this CreateTakeOverTaskReq. + :rtype: str + """ + return self._output_bucket + + @output_bucket.setter + def output_bucket(self, output_bucket): + """Sets the output_bucket of this CreateTakeOverTaskReq. + + 输出桶
约束: - host_type为1时,必选 + + :param output_bucket: The output_bucket of this CreateTakeOverTaskReq. + :type: str + """ + self._output_bucket = output_bucket + + @property + def output_path(self): + """Gets the output_path of this CreateTakeOverTaskReq. + + 输出路径
约束: - host_type为1时,必选 + + :return: The output_path of this CreateTakeOverTaskReq. + :rtype: str + """ + return self._output_path + + @output_path.setter + def output_path(self, output_path): + """Sets the output_path of this CreateTakeOverTaskReq. + + 输出路径
约束: - host_type为1时,必选 + + :param output_path: The output_path of this CreateTakeOverTaskReq. + :type: str + """ + self._output_path = output_path + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateTakeOverTaskReq): + 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-vod/huaweicloudsdkvod/v1/model/create_take_over_task_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_take_over_task_request.py new file mode 100644 index 0000000000..2b885a0143 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_take_over_task_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateTakeOverTaskRequest: + + + """ + 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': 'CreateTakeOverTaskReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateTakeOverTaskRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateTakeOverTaskRequest. + + + :return: The body of this CreateTakeOverTaskRequest. + :rtype: CreateTakeOverTaskReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateTakeOverTaskRequest. + + + :param body: The body of this CreateTakeOverTaskRequest. + :type: CreateTakeOverTaskReq + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateTakeOverTaskRequest): + 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-vod/huaweicloudsdkvod/v1/model/create_take_over_task_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_take_over_task_response.py new file mode 100644 index 0000000000..e0e9271f1c --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_take_over_task_response.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class CreateTakeOverTaskResponse(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 = { + 'task_id': 'str' + } + + attribute_map = { + 'task_id': 'task_id' + } + + def __init__(self, task_id=None): + """CreateTakeOverTaskResponse - a model defined in huaweicloud sdk""" + + super(CreateTakeOverTaskResponse, self).__init__() + + self._task_id = None + self.discriminator = None + + if task_id is not None: + self.task_id = task_id + + @property + def task_id(self): + """Gets the task_id of this CreateTakeOverTaskResponse. + + + :return: The task_id of this CreateTakeOverTaskResponse. + :rtype: str + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this CreateTakeOverTaskResponse. + + + :param task_id: The task_id of this CreateTakeOverTaskResponse. + :type: str + """ + self._task_id = task_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateTakeOverTaskResponse): + 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-vod/huaweicloudsdkvod/v1/model/create_template_group_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_template_group_request.py new file mode 100644 index 0000000000..bd7ccea651 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_template_group_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateTemplateGroupRequest: + + + """ + 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': 'TransTemplateGroup' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateTemplateGroupRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateTemplateGroupRequest. + + + :return: The body of this CreateTemplateGroupRequest. + :rtype: TransTemplateGroup + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateTemplateGroupRequest. + + + :param body: The body of this CreateTemplateGroupRequest. + :type: TransTemplateGroup + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateTemplateGroupRequest): + 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-vod/huaweicloudsdkvod/v1/model/create_template_group_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_template_group_response.py new file mode 100644 index 0000000000..288ffb09a5 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_template_group_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class CreateTemplateGroupResponse(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 = { + 'group_id': 'str' + } + + attribute_map = { + 'group_id': 'group_id' + } + + def __init__(self, group_id=None): + """CreateTemplateGroupResponse - a model defined in huaweicloud sdk""" + + super(CreateTemplateGroupResponse, self).__init__() + + self._group_id = None + self.discriminator = None + + if group_id is not None: + self.group_id = group_id + + @property + def group_id(self): + """Gets the group_id of this CreateTemplateGroupResponse. + + 模板组ID
+ + :return: The group_id of this CreateTemplateGroupResponse. + :rtype: str + """ + return self._group_id + + @group_id.setter + def group_id(self, group_id): + """Sets the group_id of this CreateTemplateGroupResponse. + + 模板组ID
+ + :param group_id: The group_id of this CreateTemplateGroupResponse. + :type: str + """ + self._group_id = group_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateTemplateGroupResponse): + 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-vod/huaweicloudsdkvod/v1/model/create_watermark_template_req.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_watermark_template_req.py new file mode 100644 index 0000000000..824d369665 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_watermark_template_req.py @@ -0,0 +1,407 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateWatermarkTemplateReq: + + + """ + 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', + 'watermark_type': 'str', + 'image_process': 'str', + 'dx': 'str', + 'dy': 'str', + 'position': 'str', + 'width': 'str', + 'height': 'str', + 'timeline_start': 'str', + 'timeline_duration': 'str', + 'type': 'str', + 'md5': 'str' + } + + attribute_map = { + 'name': 'name', + 'watermark_type': 'watermark_type', + 'image_process': 'image_process', + 'dx': 'dx', + 'dy': 'dy', + 'position': 'position', + 'width': 'width', + 'height': 'height', + 'timeline_start': 'timeline_start', + 'timeline_duration': 'timeline_duration', + 'type': 'type', + 'md5': 'md5' + } + + def __init__(self, name=None, watermark_type=None, image_process=None, dx=None, dy=None, position=None, width=None, height=None, timeline_start=None, timeline_duration=None, type=None, md5=None): + """CreateWatermarkTemplateReq - a model defined in huaweicloud sdk""" + + + + self._name = None + self._watermark_type = None + self._image_process = None + self._dx = None + self._dy = None + self._position = None + self._width = None + self._height = None + self._timeline_start = None + self._timeline_duration = None + self._type = None + self._md5 = None + self.discriminator = None + + if name is not None: + self.name = name + if watermark_type is not None: + self.watermark_type = watermark_type + if image_process is not None: + self.image_process = image_process + if dx is not None: + self.dx = dx + if dy is not None: + self.dy = dy + if position is not None: + self.position = position + if width is not None: + self.width = width + if height is not None: + self.height = height + if timeline_start is not None: + self.timeline_start = timeline_start + if timeline_duration is not None: + self.timeline_duration = timeline_duration + if type is not None: + self.type = type + if md5 is not None: + self.md5 = md5 + + @property + def name(self): + """Gets the name of this CreateWatermarkTemplateReq. + + 水印模板名称
+ + :return: The name of this CreateWatermarkTemplateReq. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateWatermarkTemplateReq. + + 水印模板名称
+ + :param name: The name of this CreateWatermarkTemplateReq. + :type: str + """ + self._name = name + + @property + def watermark_type(self): + """Gets the watermark_type of this CreateWatermarkTemplateReq. + + 水印类型,当前只支持Image(图片水印)
+ + :return: The watermark_type of this CreateWatermarkTemplateReq. + :rtype: str + """ + return self._watermark_type + + @watermark_type.setter + def watermark_type(self, watermark_type): + """Sets the watermark_type of this CreateWatermarkTemplateReq. + + 水印类型,当前只支持Image(图片水印)
+ + :param watermark_type: The watermark_type of this CreateWatermarkTemplateReq. + :type: str + """ + self._watermark_type = watermark_type + + @property + def image_process(self): + """Gets the image_process of this CreateWatermarkTemplateReq. + + type设置为Image时有效,目前包括Original(只做简单缩放,不做其他处理),Transparent(图片底色透明),Grayed(彩色图片变灰)
+ + :return: The image_process of this CreateWatermarkTemplateReq. + :rtype: str + """ + return self._image_process + + @image_process.setter + def image_process(self, image_process): + """Sets the image_process of this CreateWatermarkTemplateReq. + + type设置为Image时有效,目前包括Original(只做简单缩放,不做其他处理),Transparent(图片底色透明),Grayed(彩色图片变灰)
+ + :param image_process: The image_process of this CreateWatermarkTemplateReq. + :type: str + """ + self._image_process = image_process + + @property + def dx(self): + """Gets the dx of this CreateWatermarkTemplateReq. + + 水印图片相对输出视频的水平偏移量,默认值是0
+ + :return: The dx of this CreateWatermarkTemplateReq. + :rtype: str + """ + return self._dx + + @dx.setter + def dx(self, dx): + """Sets the dx of this CreateWatermarkTemplateReq. + + 水印图片相对输出视频的水平偏移量,默认值是0
+ + :param dx: The dx of this CreateWatermarkTemplateReq. + :type: str + """ + self._dx = dx + + @property + def dy(self): + """Gets the dy of this CreateWatermarkTemplateReq. + + 水印图片相对输出视频的垂直偏移量,默认值是0
+ + :return: The dy of this CreateWatermarkTemplateReq. + :rtype: str + """ + return self._dy + + @dy.setter + def dy(self, dy): + """Sets the dy of this CreateWatermarkTemplateReq. + + 水印图片相对输出视频的垂直偏移量,默认值是0
+ + :param dy: The dy of this CreateWatermarkTemplateReq. + :type: str + """ + self._dy = dy + + @property + def position(self): + """Gets the position of this CreateWatermarkTemplateReq. + + 水印的位置
+ + :return: The position of this CreateWatermarkTemplateReq. + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this CreateWatermarkTemplateReq. + + 水印的位置
+ + :param position: The position of this CreateWatermarkTemplateReq. + :type: str + """ + self._position = position + + @property + def width(self): + """Gets the width of this CreateWatermarkTemplateReq. + + 水印图片宽
+ + :return: The width of this CreateWatermarkTemplateReq. + :rtype: str + """ + return self._width + + @width.setter + def width(self, width): + """Sets the width of this CreateWatermarkTemplateReq. + + 水印图片宽
+ + :param width: The width of this CreateWatermarkTemplateReq. + :type: str + """ + self._width = width + + @property + def height(self): + """Gets the height of this CreateWatermarkTemplateReq. + + 水印图片高
+ + :return: The height of this CreateWatermarkTemplateReq. + :rtype: str + """ + return self._height + + @height.setter + def height(self, height): + """Sets the height of this CreateWatermarkTemplateReq. + + 水印图片高
+ + :param height: The height of this CreateWatermarkTemplateReq. + :type: str + """ + self._height = height + + @property + def timeline_start(self): + """Gets the timeline_start of this CreateWatermarkTemplateReq. + + 水印开始时间
+ + :return: The timeline_start of this CreateWatermarkTemplateReq. + :rtype: str + """ + return self._timeline_start + + @timeline_start.setter + def timeline_start(self, timeline_start): + """Sets the timeline_start of this CreateWatermarkTemplateReq. + + 水印开始时间
+ + :param timeline_start: The timeline_start of this CreateWatermarkTemplateReq. + :type: str + """ + self._timeline_start = timeline_start + + @property + def timeline_duration(self): + """Gets the timeline_duration of this CreateWatermarkTemplateReq. + + 水印持续时间
+ + :return: The timeline_duration of this CreateWatermarkTemplateReq. + :rtype: str + """ + return self._timeline_duration + + @timeline_duration.setter + def timeline_duration(self, timeline_duration): + """Sets the timeline_duration of this CreateWatermarkTemplateReq. + + 水印持续时间
+ + :param timeline_duration: The timeline_duration of this CreateWatermarkTemplateReq. + :type: str + """ + self._timeline_duration = timeline_duration + + @property + def type(self): + """Gets the type of this CreateWatermarkTemplateReq. + + 水印图片格式类型
+ + :return: The type of this CreateWatermarkTemplateReq. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CreateWatermarkTemplateReq. + + 水印图片格式类型
+ + :param type: The type of this CreateWatermarkTemplateReq. + :type: str + """ + self._type = type + + @property + def md5(self): + """Gets the md5 of this CreateWatermarkTemplateReq. + + 水印图片MD5值
+ + :return: The md5 of this CreateWatermarkTemplateReq. + :rtype: str + """ + return self._md5 + + @md5.setter + def md5(self, md5): + """Sets the md5 of this CreateWatermarkTemplateReq. + + 水印图片MD5值
+ + :param md5: The md5 of this CreateWatermarkTemplateReq. + :type: str + """ + self._md5 = md5 + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateWatermarkTemplateReq): + 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-vod/huaweicloudsdkvod/v1/model/create_watermark_template_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_watermark_template_request.py new file mode 100644 index 0000000000..940fc8c7ba --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_watermark_template_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateWatermarkTemplateRequest: + + + """ + 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': 'CreateWatermarkTemplateReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateWatermarkTemplateRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateWatermarkTemplateRequest. + + + :return: The body of this CreateWatermarkTemplateRequest. + :rtype: CreateWatermarkTemplateReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateWatermarkTemplateRequest. + + + :param body: The body of this CreateWatermarkTemplateRequest. + :type: CreateWatermarkTemplateReq + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateWatermarkTemplateRequest): + 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-vod/huaweicloudsdkvod/v1/model/create_watermark_template_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_watermark_template_response.py new file mode 100644 index 0000000000..9813100a77 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_watermark_template_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class CreateWatermarkTemplateResponse(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', + 'upload_url': 'str' + } + + attribute_map = { + 'id': 'id', + 'upload_url': 'upload_url' + } + + def __init__(self, id=None, upload_url=None): + """CreateWatermarkTemplateResponse - a model defined in huaweicloud sdk""" + + super(CreateWatermarkTemplateResponse, self).__init__() + + self._id = None + self._upload_url = None + self.discriminator = None + + if id is not None: + self.id = id + if upload_url is not None: + self.upload_url = upload_url + + @property + def id(self): + """Gets the id of this CreateWatermarkTemplateResponse. + + 水印配置模板id
+ + :return: The id of this CreateWatermarkTemplateResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateWatermarkTemplateResponse. + + 水印配置模板id
+ + :param id: The id of this CreateWatermarkTemplateResponse. + :type: str + """ + self._id = id + + @property + def upload_url(self): + """Gets the upload_url of this CreateWatermarkTemplateResponse. + + 水印图片上传地址
+ + :return: The upload_url of this CreateWatermarkTemplateResponse. + :rtype: str + """ + return self._upload_url + + @upload_url.setter + def upload_url(self, upload_url): + """Sets the upload_url of this CreateWatermarkTemplateResponse. + + 水印图片上传地址
+ + :param upload_url: The upload_url of this CreateWatermarkTemplateResponse. + :type: str + """ + self._upload_url = upload_url + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateWatermarkTemplateResponse): + 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-vod/huaweicloudsdkvod/v1/model/delete_asset_category_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/delete_asset_category_request.py new file mode 100644 index 0000000000..a6d64ee533 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/delete_asset_category_request.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class DeleteAssetCategoryRequest: + + + """ + 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': 'int' + } + + attribute_map = { + 'id': 'id' + } + + def __init__(self, id=None): + """DeleteAssetCategoryRequest - a model defined in huaweicloud sdk""" + + + + self._id = None + self.discriminator = None + + self.id = id + + @property + def id(self): + """Gets the id of this DeleteAssetCategoryRequest. + + 视频分类ID + + :return: The id of this DeleteAssetCategoryRequest. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this DeleteAssetCategoryRequest. + + 视频分类ID + + :param id: The id of this DeleteAssetCategoryRequest. + :type: int + """ + self._id = 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteAssetCategoryRequest): + 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-vod/huaweicloudsdkvod/v1/model/delete_asset_category_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/delete_asset_category_response.py new file mode 100644 index 0000000000..9249f8e613 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/delete_asset_category_response.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class DeleteAssetCategoryResponse(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): + """DeleteAssetCategoryResponse - a model defined in huaweicloud sdk""" + + super(DeleteAssetCategoryResponse, 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteAssetCategoryResponse): + 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-vod/huaweicloudsdkvod/v1/model/delete_assets_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/delete_assets_request.py new file mode 100644 index 0000000000..f454c6df16 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/delete_assets_request.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class DeleteAssetsRequest: + + + """ + 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 = { + 'asset_id': 'list[str]' + } + + attribute_map = { + 'asset_id': 'asset_id' + } + + def __init__(self, asset_id=None): + """DeleteAssetsRequest - a model defined in huaweicloud sdk""" + + + + self._asset_id = None + self.discriminator = None + + self.asset_id = asset_id + + @property + def asset_id(self): + """Gets the asset_id of this DeleteAssetsRequest. + + 媒资ID + + :return: The asset_id of this DeleteAssetsRequest. + :rtype: list[str] + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this DeleteAssetsRequest. + + 媒资ID + + :param asset_id: The asset_id of this DeleteAssetsRequest. + :type: list[str] + """ + self._asset_id = asset_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteAssetsRequest): + 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-vod/huaweicloudsdkvod/v1/model/delete_assets_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/delete_assets_response.py new file mode 100644 index 0000000000..0db6751e55 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/delete_assets_response.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class DeleteAssetsResponse(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 = { + 'delete_result_array': 'list[DeleteResult]' + } + + attribute_map = { + 'delete_result_array': 'delete_result_array' + } + + def __init__(self, delete_result_array=None): + """DeleteAssetsResponse - a model defined in huaweicloud sdk""" + + super(DeleteAssetsResponse, self).__init__() + + self._delete_result_array = None + self.discriminator = None + + if delete_result_array is not None: + self.delete_result_array = delete_result_array + + @property + def delete_result_array(self): + """Gets the delete_result_array of this DeleteAssetsResponse. + + + :return: The delete_result_array of this DeleteAssetsResponse. + :rtype: list[DeleteResult] + """ + return self._delete_result_array + + @delete_result_array.setter + def delete_result_array(self, delete_result_array): + """Sets the delete_result_array of this DeleteAssetsResponse. + + + :param delete_result_array: The delete_result_array of this DeleteAssetsResponse. + :type: list[DeleteResult] + """ + self._delete_result_array = delete_result_array + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteAssetsResponse): + 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-vod/huaweicloudsdkvod/v1/model/delete_result.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/delete_result.py new file mode 100644 index 0000000000..4185976a57 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/delete_result.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class DeleteResult: + + + """ + 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 = { + 'asset_id': 'str', + 'status': 'str' + } + + attribute_map = { + 'asset_id': 'asset_id', + 'status': 'status' + } + + def __init__(self, asset_id=None, status=None): + """DeleteResult - a model defined in huaweicloud sdk""" + + + + self._asset_id = None + self._status = None + self.discriminator = None + + if asset_id is not None: + self.asset_id = asset_id + if status is not None: + self.status = status + + @property + def asset_id(self): + """Gets the asset_id of this DeleteResult. + + 媒体ID
+ + :return: The asset_id of this DeleteResult. + :rtype: str + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this DeleteResult. + + 媒体ID
+ + :param asset_id: The asset_id of this DeleteResult. + :type: str + """ + self._asset_id = asset_id + + @property + def status(self): + """Gets the status of this DeleteResult. + + 删除状态
+ + :return: The status of this DeleteResult. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this DeleteResult. + + 删除状态
+ + :param status: The status of this DeleteResult. + :type: str + """ + self._status = 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteResult): + 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-vod/huaweicloudsdkvod/v1/model/delete_template_group_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/delete_template_group_request.py new file mode 100644 index 0000000000..2c748f192e --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/delete_template_group_request.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class DeleteTemplateGroupRequest: + + + """ + 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 = { + 'group_id': 'str' + } + + attribute_map = { + 'group_id': 'group_id' + } + + def __init__(self, group_id=None): + """DeleteTemplateGroupRequest - a model defined in huaweicloud sdk""" + + + + self._group_id = None + self.discriminator = None + + self.group_id = group_id + + @property + def group_id(self): + """Gets the group_id of this DeleteTemplateGroupRequest. + + 模板组id + + :return: The group_id of this DeleteTemplateGroupRequest. + :rtype: str + """ + return self._group_id + + @group_id.setter + def group_id(self, group_id): + """Sets the group_id of this DeleteTemplateGroupRequest. + + 模板组id + + :param group_id: The group_id of this DeleteTemplateGroupRequest. + :type: str + """ + self._group_id = group_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteTemplateGroupRequest): + 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-vod/huaweicloudsdkvod/v1/model/delete_template_group_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/delete_template_group_response.py new file mode 100644 index 0000000000..43809b0244 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/delete_template_group_response.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class DeleteTemplateGroupResponse(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): + """DeleteTemplateGroupResponse - a model defined in huaweicloud sdk""" + + super(DeleteTemplateGroupResponse, 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteTemplateGroupResponse): + 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-cdn/huaweicloudsdkcdn/v1/model/preheating_task.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/delete_watermark_template_request.py similarity index 80% rename from huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/preheating_task.py rename to huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/delete_watermark_template_request.py index acc90e6936..93eace9693 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/preheating_task.py +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/delete_watermark_template_request.py @@ -9,7 +9,7 @@ -class PreheatingTask: +class DeleteWatermarkTemplateRequest: """ @@ -31,34 +31,33 @@ class PreheatingTask: } def __init__(self, id=None): - """PreheatingTask - a model defined in huaweicloud sdk""" + """DeleteWatermarkTemplateRequest - a model defined in huaweicloud sdk""" self._id = None self.discriminator = None - if id is not None: - self.id = id + self.id = id @property def id(self): - """Gets the id of this PreheatingTask. + """Gets the id of this DeleteWatermarkTemplateRequest. - 任务id + 水印模板配置id - :return: The id of this PreheatingTask. + :return: The id of this DeleteWatermarkTemplateRequest. :rtype: str """ return self._id @id.setter def id(self, id): - """Sets the id of this PreheatingTask. + """Sets the id of this DeleteWatermarkTemplateRequest. - 任务id + 水印模板配置id - :param id: The id of this PreheatingTask. + :param id: The id of this DeleteWatermarkTemplateRequest. :type: str """ self._id = id @@ -100,7 +99,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, PreheatingTask): + if not isinstance(other, DeleteWatermarkTemplateRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/delete_watermark_template_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/delete_watermark_template_response.py new file mode 100644 index 0000000000..f949964629 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/delete_watermark_template_response.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class DeleteWatermarkTemplateResponse(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): + """DeleteWatermarkTemplateResponse - a model defined in huaweicloud sdk""" + + super(DeleteWatermarkTemplateResponse, 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteWatermarkTemplateResponse): + 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-vod/huaweicloudsdkvod/v1/model/extract_audio_task_req.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/extract_audio_task_req.py new file mode 100644 index 0000000000..9b7b931299 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/extract_audio_task_req.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ExtractAudioTaskReq: + + + """ + 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 = { + 'asset_id': 'str', + 'parameter': 'Parameter' + } + + attribute_map = { + 'asset_id': 'asset_id', + 'parameter': 'parameter' + } + + def __init__(self, asset_id=None, parameter=None): + """ExtractAudioTaskReq - a model defined in huaweicloud sdk""" + + + + self._asset_id = None + self._parameter = None + self.discriminator = None + + self.asset_id = asset_id + if parameter is not None: + self.parameter = parameter + + @property + def asset_id(self): + """Gets the asset_id of this ExtractAudioTaskReq. + + 媒资id
+ + :return: The asset_id of this ExtractAudioTaskReq. + :rtype: str + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this ExtractAudioTaskReq. + + 媒资id
+ + :param asset_id: The asset_id of this ExtractAudioTaskReq. + :type: str + """ + self._asset_id = asset_id + + @property + def parameter(self): + """Gets the parameter of this ExtractAudioTaskReq. + + + :return: The parameter of this ExtractAudioTaskReq. + :rtype: Parameter + """ + return self._parameter + + @parameter.setter + def parameter(self, parameter): + """Sets the parameter of this ExtractAudioTaskReq. + + + :param parameter: The parameter of this ExtractAudioTaskReq. + :type: Parameter + """ + self._parameter = parameter + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ExtractAudioTaskReq): + 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-vod/huaweicloudsdkvod/v1/model/file_addr.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/file_addr.py new file mode 100644 index 0000000000..368a6256ff --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/file_addr.py @@ -0,0 +1,161 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class FileAddr: + + + """ + 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 = { + 'bucket': 'str', + 'location': 'str', + 'object': 'str' + } + + attribute_map = { + 'bucket': 'bucket', + 'location': 'location', + 'object': 'object' + } + + def __init__(self, bucket=None, location=None, object=None): + """FileAddr - a model defined in huaweicloud sdk""" + + + + self._bucket = None + self._location = None + self._object = None + self.discriminator = None + + self.bucket = bucket + self.location = location + self.object = object + + @property + def bucket(self): + """Gets the bucket of this FileAddr. + + OBS的bucket名称。
+ + :return: The bucket of this FileAddr. + :rtype: str + """ + return self._bucket + + @bucket.setter + def bucket(self, bucket): + """Sets the bucket of this FileAddr. + + OBS的bucket名称。
+ + :param bucket: The bucket of this FileAddr. + :type: str + """ + self._bucket = bucket + + @property + def location(self): + """Gets the location of this FileAddr. + + 输入OBS Bucket所在数据中心(OBS Location)。
+ + :return: The location of this FileAddr. + :rtype: str + """ + return self._location + + @location.setter + def location(self, location): + """Sets the location of this FileAddr. + + 输入OBS Bucket所在数据中心(OBS Location)。
+ + :param location: The location of this FileAddr. + :type: str + """ + self._location = location + + @property + def object(self): + """Gets the object of this FileAddr. + + OBS对象路径,遵守OSS Object定义。
当用于指示input时,需要指定到具体对象
当用于指示output时, 只需指定到转码结果期望存放的路径
+ + :return: The object of this FileAddr. + :rtype: str + """ + return self._object + + @object.setter + def object(self, object): + """Sets the object of this FileAddr. + + OBS对象路径,遵守OSS Object定义。
当用于指示input时,需要指定到具体对象
当用于指示output时, 只需指定到转码结果期望存放的路径
+ + :param object: The object of this FileAddr. + :type: str + """ + self._object = object + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FileAddr): + 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-cdn/huaweicloudsdkcdn/v1/model/refresh_task.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/list_asset_category_request.py similarity index 80% rename from huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/refresh_task.py rename to huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/list_asset_category_request.py index a2292740ea..590fb8baf1 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/refresh_task.py +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/list_asset_category_request.py @@ -9,7 +9,7 @@ -class RefreshTask: +class ListAssetCategoryRequest: """ @@ -23,7 +23,7 @@ class RefreshTask: sensitive_list = [] openapi_types = { - 'id': 'str' + 'id': 'int' } attribute_map = { @@ -31,35 +31,34 @@ class RefreshTask: } def __init__(self, id=None): - """RefreshTask - a model defined in huaweicloud sdk""" + """ListAssetCategoryRequest - a model defined in huaweicloud sdk""" self._id = None self.discriminator = None - if id is not None: - self.id = id + self.id = id @property def id(self): - """Gets the id of this RefreshTask. + """Gets the id of this ListAssetCategoryRequest. - 任务id + 视频分类ID - :return: The id of this RefreshTask. - :rtype: str + :return: The id of this ListAssetCategoryRequest. + :rtype: int """ return self._id @id.setter def id(self, id): - """Sets the id of this RefreshTask. + """Sets the id of this ListAssetCategoryRequest. - 任务id + 视频分类ID - :param id: The id of this RefreshTask. - :type: str + :param id: The id of this ListAssetCategoryRequest. + :type: int """ self._id = id @@ -100,7 +99,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RefreshTask): + if not isinstance(other, ListAssetCategoryRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/list_asset_category_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/list_asset_category_response.py new file mode 100644 index 0000000000..2dc5890f4e --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/list_asset_category_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListAssetCategoryResponse(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[QueryCategoryRsp]' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """ListAssetCategoryResponse - a model defined in huaweicloud sdk""" + + super(ListAssetCategoryResponse, 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 ListAssetCategoryResponse. + + 分类返回值
+ + :return: The body of this ListAssetCategoryResponse. + :rtype: list[QueryCategoryRsp] + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ListAssetCategoryResponse. + + 分类返回值
+ + :param body: The body of this ListAssetCategoryResponse. + :type: list[QueryCategoryRsp] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListAssetCategoryResponse): + 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-vod/huaweicloudsdkvod/v1/model/list_asset_list_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/list_asset_list_request.py new file mode 100644 index 0000000000..2bb9c1c14c --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/list_asset_list_request.py @@ -0,0 +1,380 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListAssetListRequest: + + + """ + 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 = { + 'asset_id': 'list[str]', + 'status': 'list[str]', + 'start_time': 'str', + 'end_time': 'str', + 'category_id': 'int', + 'tags': 'str', + 'query_string': 'str', + 'media_type': 'list[str]', + 'page': 'int', + 'size': 'int', + 'order': 'str' + } + + attribute_map = { + 'asset_id': 'asset_id', + 'status': 'status', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'category_id': 'category_id', + 'tags': 'tags', + 'query_string': 'query_string', + 'media_type': 'media_type', + 'page': 'page', + 'size': 'size', + 'order': 'order' + } + + def __init__(self, asset_id=None, status=None, start_time=None, end_time=None, category_id=None, tags=None, query_string=None, media_type=None, page=None, size=None, order=None): + """ListAssetListRequest - a model defined in huaweicloud sdk""" + + + + self._asset_id = None + self._status = None + self._start_time = None + self._end_time = None + self._category_id = None + self._tags = None + self._query_string = None + self._media_type = None + self._page = None + self._size = None + self._order = None + self.discriminator = None + + if asset_id is not None: + self.asset_id = asset_id + if status is not None: + self.status = status + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if category_id is not None: + self.category_id = category_id + if tags is not None: + self.tags = tags + if query_string is not None: + self.query_string = query_string + if media_type is not None: + self.media_type = media_type + if page is not None: + self.page = page + if size is not None: + self.size = size + if order is not None: + self.order = order + + @property + def asset_id(self): + """Gets the asset_id of this ListAssetListRequest. + + 媒资ID数组,一次最多查询10个媒资 + + :return: The asset_id of this ListAssetListRequest. + :rtype: list[str] + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this ListAssetListRequest. + + 媒资ID数组,一次最多查询10个媒资 + + :param asset_id: The asset_id of this ListAssetListRequest. + :type: list[str] + """ + self._asset_id = asset_id + + @property + def status(self): + """Gets the status of this ListAssetListRequest. + + 媒资状态。 \"CREATING\" //上传中 \"FAILED\" //上传失败 \"CREATED\" //上传成功 \"PUBLISHED\" //已发布 \"WAITING_TRANSCODE\" //等待转码,排队中 \"TRANSCODING\" //转码中 \"TRANSCODE_SUCCEED\" //转码成功 \"TRANSCODE_FAILED\" //转码失败 \"THUMBNAILING\" //截图中 \"THUMBNAIL_SUCCEED\" //截图成功 \"THUMBNAIL_FAILED\" //截图失败 \"UN_REVIEW\" //未审核 \"REVIEWING\" //审核中 \"REVIEW_SUSPICIOUS\" //审核不过,待人工复审 \"REVIEW_PASSED\" //审核通过 \"REVIEW_FAILED\" //审核任务失败 \"REVIEW_BLOCKED\" //已屏蔽 + + :return: The status of this ListAssetListRequest. + :rtype: list[str] + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ListAssetListRequest. + + 媒资状态。 \"CREATING\" //上传中 \"FAILED\" //上传失败 \"CREATED\" //上传成功 \"PUBLISHED\" //已发布 \"WAITING_TRANSCODE\" //等待转码,排队中 \"TRANSCODING\" //转码中 \"TRANSCODE_SUCCEED\" //转码成功 \"TRANSCODE_FAILED\" //转码失败 \"THUMBNAILING\" //截图中 \"THUMBNAIL_SUCCEED\" //截图成功 \"THUMBNAIL_FAILED\" //截图失败 \"UN_REVIEW\" //未审核 \"REVIEWING\" //审核中 \"REVIEW_SUSPICIOUS\" //审核不过,待人工复审 \"REVIEW_PASSED\" //审核通过 \"REVIEW_FAILED\" //审核任务失败 \"REVIEW_BLOCKED\" //已屏蔽 + + :param status: The status of this ListAssetListRequest. + :type: list[str] + """ + self._status = status + + @property + def start_time(self): + """Gets the start_time of this ListAssetListRequest. + + 起始时间。格式为 yyyymmddhhm mss。必须是与时区无关的 UTC时间。 + + :return: The start_time of this ListAssetListRequest. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ListAssetListRequest. + + 起始时间。格式为 yyyymmddhhm mss。必须是与时区无关的 UTC时间。 + + :param start_time: The start_time of this ListAssetListRequest. + :type: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ListAssetListRequest. + + 结束时间。格式为 yyyymmddhhm mss。必须是与时区无关的 UTC时间。 + + :return: The end_time of this ListAssetListRequest. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ListAssetListRequest. + + 结束时间。格式为 yyyymmddhhm mss。必须是与时区无关的 UTC时间。 + + :param end_time: The end_time of this ListAssetListRequest. + :type: str + """ + self._end_time = end_time + + @property + def category_id(self): + """Gets the category_id of this ListAssetListRequest. + + 分类ID。 + + :return: The category_id of this ListAssetListRequest. + :rtype: int + """ + return self._category_id + + @category_id.setter + def category_id(self, category_id): + """Sets the category_id of this ListAssetListRequest. + + 分类ID。 + + :param category_id: The category_id of this ListAssetListRequest. + :type: int + """ + self._category_id = category_id + + @property + def tags(self): + """Gets the tags of this ListAssetListRequest. + + 视频标签。 单个标签不string超 过16个字节, 最多不超过16 个标签。 多个用逗号分 隔,UTF8编 码。 + + :return: The tags of this ListAssetListRequest. + :rtype: str + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this ListAssetListRequest. + + 视频标签。 单个标签不string超 过16个字节, 最多不超过16 个标签。 多个用逗号分 隔,UTF8编 码。 + + :param tags: The tags of this ListAssetListRequest. + :type: str + """ + self._tags = tags + + @property + def query_string(self): + """Gets the query_string of this ListAssetListRequest. + + 在媒资标题、 描述、分类名称中模糊查 询的字符串。 + + :return: The query_string of this ListAssetListRequest. + :rtype: str + """ + return self._query_string + + @query_string.setter + def query_string(self, query_string): + """Sets the query_string of this ListAssetListRequest. + + 在媒资标题、 描述、分类名称中模糊查 询的字符串。 + + :param query_string: The query_string of this ListAssetListRequest. + :type: str + """ + self._query_string = query_string + + @property + def media_type(self): + """Gets the media_type of this ListAssetListRequest. + + 音视频文件类型,一次最多查询20种音视频文件类型 + + :return: The media_type of this ListAssetListRequest. + :rtype: list[str] + """ + return self._media_type + + @media_type.setter + def media_type(self, media_type): + """Sets the media_type of this ListAssetListRequest. + + 音视频文件类型,一次最多查询20种音视频文件类型 + + :param media_type: The media_type of this ListAssetListRequest. + :type: list[str] + """ + self._media_type = media_type + + @property + def page(self): + """Gets the page of this ListAssetListRequest. + + 分页编号。默认为0。 + + :return: The page of this ListAssetListRequest. + :rtype: int + """ + return self._page + + @page.setter + def page(self, page): + """Sets the page of this ListAssetListRequest. + + 分页编号。默认为0。 + + :param page: The page of this ListAssetListRequest. + :type: int + """ + self._page = page + + @property + def size(self): + """Gets the size of this ListAssetListRequest. + + 每页记录数。默认10,范围 [1,100]。 + + :return: The size of this ListAssetListRequest. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this ListAssetListRequest. + + 每页记录数。默认10,范围 [1,100]。 + + :param size: The size of this ListAssetListRequest. + :type: int + """ + self._size = size + + @property + def order(self): + """Gets the order of this ListAssetListRequest. + + 查询顺序,按createTime顺序还是倒序 + + :return: The order of this ListAssetListRequest. + :rtype: str + """ + return self._order + + @order.setter + def order(self, order): + """Sets the order of this ListAssetListRequest. + + 查询顺序,按createTime顺序还是倒序 + + :param order: The order of this ListAssetListRequest. + :type: str + """ + self._order = order + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListAssetListRequest): + 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-vod/huaweicloudsdkvod/v1/model/list_asset_list_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/list_asset_list_response.py new file mode 100644 index 0000000000..f37e9d9a7a --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/list_asset_list_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListAssetListResponse(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', + 'assets': 'list[AssetSummary]' + } + + attribute_map = { + 'total': 'total', + 'assets': 'assets' + } + + def __init__(self, total=None, assets=None): + """ListAssetListResponse - a model defined in huaweicloud sdk""" + + super(ListAssetListResponse, self).__init__() + + self._total = None + self._assets = None + self.discriminator = None + + if total is not None: + self.total = total + if assets is not None: + self.assets = assets + + @property + def total(self): + """Gets the total of this ListAssetListResponse. + + 媒资总数 + + :return: The total of this ListAssetListResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListAssetListResponse. + + 媒资总数 + + :param total: The total of this ListAssetListResponse. + :type: int + """ + self._total = total + + @property + def assets(self): + """Gets the assets of this ListAssetListResponse. + + 媒资列表 + + :return: The assets of this ListAssetListResponse. + :rtype: list[AssetSummary] + """ + return self._assets + + @assets.setter + def assets(self, assets): + """Sets the assets of this ListAssetListResponse. + + 媒资列表 + + :param assets: The assets of this ListAssetListResponse. + :type: list[AssetSummary] + """ + self._assets = assets + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListAssetListResponse): + 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-vod/huaweicloudsdkvod/v1/model/list_take_over_task_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/list_take_over_task_request.py new file mode 100644 index 0000000000..dcef882dcb --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/list_take_over_task_request.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListTakeOverTaskRequest: + + + """ + 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 = { + 'status': 'str', + 'task_id': 'str', + 'page': 'int', + 'size': 'int' + } + + attribute_map = { + 'status': 'status', + 'task_id': 'task_id', + 'page': 'page', + 'size': 'size' + } + + def __init__(self, status=None, task_id=None, page=None, size=None): + """ListTakeOverTaskRequest - a model defined in huaweicloud sdk""" + + + + self._status = None + self._task_id = None + self._page = None + self._size = None + self.discriminator = None + + if status is not None: + self.status = status + if task_id is not None: + self.task_id = task_id + if page is not None: + self.page = page + if size is not None: + self.size = size + + @property + def status(self): + """Gets the status of this ListTakeOverTaskRequest. + + 状态
+ + :return: The status of this ListTakeOverTaskRequest. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ListTakeOverTaskRequest. + + 状态
+ + :param status: The status of this ListTakeOverTaskRequest. + :type: str + """ + self._status = status + + @property + def task_id(self): + """Gets the task_id of this ListTakeOverTaskRequest. + + 起始时间.指定task_id时该参数无效
+ + :return: The task_id of this ListTakeOverTaskRequest. + :rtype: str + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this ListTakeOverTaskRequest. + + 起始时间.指定task_id时该参数无效
+ + :param task_id: The task_id of this ListTakeOverTaskRequest. + :type: str + """ + self._task_id = task_id + + @property + def page(self): + """Gets the page of this ListTakeOverTaskRequest. + + 分页编号,默认为0。
+ + :return: The page of this ListTakeOverTaskRequest. + :rtype: int + """ + return self._page + + @page.setter + def page(self, page): + """Sets the page of this ListTakeOverTaskRequest. + + 分页编号,默认为0。
+ + :param page: The page of this ListTakeOverTaskRequest. + :type: int + """ + self._page = page + + @property + def size(self): + """Gets the size of this ListTakeOverTaskRequest. + + 每页记录数。默认10,范围[1,100]
指定task_id时该参数无效
+ + :return: The size of this ListTakeOverTaskRequest. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this ListTakeOverTaskRequest. + + 每页记录数。默认10,范围[1,100]
指定task_id时该参数无效
+ + :param size: The size of this ListTakeOverTaskRequest. + :type: int + """ + self._size = size + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListTakeOverTaskRequest): + 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-vod/huaweicloudsdkvod/v1/model/list_take_over_task_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/list_take_over_task_response.py new file mode 100644 index 0000000000..fe19cbacc9 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/list_take_over_task_response.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListTakeOverTaskResponse(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 = { + 'tasks': 'list[TakeOverTask]', + 'total': 'int' + } + + attribute_map = { + 'tasks': 'tasks', + 'total': 'total' + } + + def __init__(self, tasks=None, total=None): + """ListTakeOverTaskResponse - a model defined in huaweicloud sdk""" + + super(ListTakeOverTaskResponse, self).__init__() + + self._tasks = None + self._total = None + self.discriminator = None + + if tasks is not None: + self.tasks = tasks + if total is not None: + self.total = total + + @property + def tasks(self): + """Gets the tasks of this ListTakeOverTaskResponse. + + + :return: The tasks of this ListTakeOverTaskResponse. + :rtype: list[TakeOverTask] + """ + return self._tasks + + @tasks.setter + def tasks(self, tasks): + """Sets the tasks of this ListTakeOverTaskResponse. + + + :param tasks: The tasks of this ListTakeOverTaskResponse. + :type: list[TakeOverTask] + """ + self._tasks = tasks + + @property + def total(self): + """Gets the total of this ListTakeOverTaskResponse. + + + :return: The total of this ListTakeOverTaskResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListTakeOverTaskResponse. + + + :param total: The total of this ListTakeOverTaskResponse. + :type: int + """ + self._total = total + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListTakeOverTaskResponse): + 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-vod/huaweicloudsdkvod/v1/model/list_template_group_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/list_template_group_request.py new file mode 100644 index 0000000000..1fab04564b --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/list_template_group_request.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListTemplateGroupRequest: + + + """ + 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 = { + 'group_id': 'str', + 'status': 'str', + 'page': 'int', + 'size': 'int' + } + + attribute_map = { + 'group_id': 'group_id', + 'status': 'status', + 'page': 'page', + 'size': 'size' + } + + def __init__(self, group_id=None, status=None, page=None, size=None): + """ListTemplateGroupRequest - a model defined in huaweicloud sdk""" + + + + self._group_id = None + self._status = None + self._page = None + self._size = None + self.discriminator = None + + if group_id is not None: + self.group_id = group_id + if status is not None: + self.status = status + if page is not None: + self.page = page + if size is not None: + self.size = size + + @property + def group_id(self): + """Gets the group_id of this ListTemplateGroupRequest. + + 模板组id + + :return: The group_id of this ListTemplateGroupRequest. + :rtype: str + """ + return self._group_id + + @group_id.setter + def group_id(self, group_id): + """Sets the group_id of this ListTemplateGroupRequest. + + 模板组id + + :param group_id: The group_id of this ListTemplateGroupRequest. + :type: str + """ + self._group_id = group_id + + @property + def status(self): + """Gets the status of this ListTemplateGroupRequest. + + 模板启用状态 + + :return: The status of this ListTemplateGroupRequest. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ListTemplateGroupRequest. + + 模板启用状态 + + :param status: The status of this ListTemplateGroupRequest. + :type: str + """ + self._status = status + + @property + def page(self): + """Gets the page of this ListTemplateGroupRequest. + + 分页编号。默认为0。指定group_id时该参数无效。
+ + :return: The page of this ListTemplateGroupRequest. + :rtype: int + """ + return self._page + + @page.setter + def page(self, page): + """Sets the page of this ListTemplateGroupRequest. + + 分页编号。默认为0。指定group_id时该参数无效。
+ + :param page: The page of this ListTemplateGroupRequest. + :type: int + """ + self._page = page + + @property + def size(self): + """Gets the size of this ListTemplateGroupRequest. + + 每页记录数。默认为10,范围[1,100]。指定group_id时该参数无效。
+ + :return: The size of this ListTemplateGroupRequest. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this ListTemplateGroupRequest. + + 每页记录数。默认为10,范围[1,100]。指定group_id时该参数无效。
+ + :param size: The size of this ListTemplateGroupRequest. + :type: int + """ + self._size = size + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListTemplateGroupRequest): + 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-vod/huaweicloudsdkvod/v1/model/list_template_group_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/list_template_group_response.py new file mode 100644 index 0000000000..7c0c739b89 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/list_template_group_response.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListTemplateGroupResponse(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 = { + 'template_group_list': 'list[TemplateGroup]', + 'total': 'int', + 'error_code': 'str', + 'error_msg': 'str' + } + + attribute_map = { + 'template_group_list': 'template_group_list', + 'total': 'total', + 'error_code': 'error_code', + 'error_msg': 'error_msg' + } + + def __init__(self, template_group_list=None, total=None, error_code=None, error_msg=None): + """ListTemplateGroupResponse - a model defined in huaweicloud sdk""" + + super(ListTemplateGroupResponse, self).__init__() + + self._template_group_list = None + self._total = None + self._error_code = None + self._error_msg = None + self.discriminator = None + + if template_group_list is not None: + self.template_group_list = template_group_list + if total is not None: + self.total = total + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + + @property + def template_group_list(self): + """Gets the template_group_list of this ListTemplateGroupResponse. + + 模板组信息
+ + :return: The template_group_list of this ListTemplateGroupResponse. + :rtype: list[TemplateGroup] + """ + return self._template_group_list + + @template_group_list.setter + def template_group_list(self, template_group_list): + """Sets the template_group_list of this ListTemplateGroupResponse. + + 模板组信息
+ + :param template_group_list: The template_group_list of this ListTemplateGroupResponse. + :type: list[TemplateGroup] + """ + self._template_group_list = template_group_list + + @property + def total(self): + """Gets the total of this ListTemplateGroupResponse. + + 总记录条数
+ + :return: The total of this ListTemplateGroupResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListTemplateGroupResponse. + + 总记录条数
+ + :param total: The total of this ListTemplateGroupResponse. + :type: int + """ + self._total = total + + @property + def error_code(self): + """Gets the error_code of this ListTemplateGroupResponse. + + 错误码
+ + :return: The error_code of this ListTemplateGroupResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this ListTemplateGroupResponse. + + 错误码
+ + :param error_code: The error_code of this ListTemplateGroupResponse. + :type: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this ListTemplateGroupResponse. + + 错误描述
+ + :return: The error_msg of this ListTemplateGroupResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this ListTemplateGroupResponse. + + 错误描述
+ + :param error_msg: The error_msg of this ListTemplateGroupResponse. + :type: str + """ + self._error_msg = error_msg + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListTemplateGroupResponse): + 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-vod/huaweicloudsdkvod/v1/model/list_top_statistics_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/list_top_statistics_request.py new file mode 100644 index 0000000000..c6b406a99c --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/list_top_statistics_request.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListTopStatisticsRequest: + + + """ + 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': 'str', + 'date': 'str' + } + + attribute_map = { + 'domain': 'domain', + 'date': 'date' + } + + def __init__(self, domain=None, date=None): + """ListTopStatisticsRequest - a model defined in huaweicloud sdk""" + + + + self._domain = None + self._date = None + self.discriminator = None + + self.domain = domain + self.date = date + + @property + def domain(self): + """Gets the domain of this ListTopStatisticsRequest. + + 加速域名,格式:www.test1.com。ALL表示查询名下全部域名。(TopN视频信息要么查询单个域名要么查询所有域名) + + :return: The domain of this ListTopStatisticsRequest. + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this ListTopStatisticsRequest. + + 加速域名,格式:www.test1.com。ALL表示查询名下全部域名。(TopN视频信息要么查询单个域名要么查询所有域名) + + :param domain: The domain of this ListTopStatisticsRequest. + :type: str + """ + self._domain = domain + + @property + def date(self): + """Gets the date of this ListTopStatisticsRequest. + + 查询日期,格式为yyyymmdd。 1) date必须为昨天或之前的日期 2) 只能查最近一个月内的数据 + + :return: The date of this ListTopStatisticsRequest. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this ListTopStatisticsRequest. + + 查询日期,格式为yyyymmdd。 1) date必须为昨天或之前的日期 2) 只能查最近一个月内的数据 + + :param date: The date of this ListTopStatisticsRequest. + :type: str + """ + self._date = date + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListTopStatisticsRequest): + 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-vod/huaweicloudsdkvod/v1/model/list_top_statistics_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/list_top_statistics_response.py new file mode 100644 index 0000000000..3031034766 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/list_top_statistics_response.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListTopStatisticsResponse(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 = { + 'top_urls': 'list[TopUrl]' + } + + attribute_map = { + 'top_urls': 'top_urls' + } + + def __init__(self, top_urls=None): + """ListTopStatisticsResponse - a model defined in huaweicloud sdk""" + + super(ListTopStatisticsResponse, self).__init__() + + self._top_urls = None + self.discriminator = None + + if top_urls is not None: + self.top_urls = top_urls + + @property + def top_urls(self): + """Gets the top_urls of this ListTopStatisticsResponse. + + + :return: The top_urls of this ListTopStatisticsResponse. + :rtype: list[TopUrl] + """ + return self._top_urls + + @top_urls.setter + def top_urls(self, top_urls): + """Sets the top_urls of this ListTopStatisticsResponse. + + + :param top_urls: The top_urls of this ListTopStatisticsResponse. + :type: list[TopUrl] + """ + self._top_urls = top_urls + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListTopStatisticsResponse): + 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-vod/huaweicloudsdkvod/v1/model/list_watermark_template_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/list_watermark_template_request.py new file mode 100644 index 0000000000..373c47cf9a --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/list_watermark_template_request.py @@ -0,0 +1,164 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListWatermarkTemplateRequest: + + + """ + 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': 'list[str]', + 'page': 'int', + 'size': 'int' + } + + attribute_map = { + 'id': 'id', + 'page': 'page', + 'size': 'size' + } + + def __init__(self, id=None, page=None, size=None): + """ListWatermarkTemplateRequest - a model defined in huaweicloud sdk""" + + + + self._id = None + self._page = None + self._size = None + self.discriminator = None + + if id is not None: + self.id = id + if page is not None: + self.page = page + if size is not None: + self.size = size + + @property + def id(self): + """Gets the id of this ListWatermarkTemplateRequest. + + 水印模板配置id,一次最多10个
+ + :return: The id of this ListWatermarkTemplateRequest. + :rtype: list[str] + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ListWatermarkTemplateRequest. + + 水印模板配置id,一次最多10个
+ + :param id: The id of this ListWatermarkTemplateRequest. + :type: list[str] + """ + self._id = id + + @property + def page(self): + """Gets the page of this ListWatermarkTemplateRequest. + + 分页编号。默认为0。指定id时该参数无效。
+ + :return: The page of this ListWatermarkTemplateRequest. + :rtype: int + """ + return self._page + + @page.setter + def page(self, page): + """Sets the page of this ListWatermarkTemplateRequest. + + 分页编号。默认为0。指定id时该参数无效。
+ + :param page: The page of this ListWatermarkTemplateRequest. + :type: int + """ + self._page = page + + @property + def size(self): + """Gets the size of this ListWatermarkTemplateRequest. + + 每页记录数。默认为10,范围[1,100]。指定id时该参数无效。
+ + :return: The size of this ListWatermarkTemplateRequest. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this ListWatermarkTemplateRequest. + + 每页记录数。默认为10,范围[1,100]。指定id时该参数无效。
+ + :param size: The size of this ListWatermarkTemplateRequest. + :type: int + """ + self._size = size + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListWatermarkTemplateRequest): + 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-vod/huaweicloudsdkvod/v1/model/list_watermark_template_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/list_watermark_template_response.py new file mode 100644 index 0000000000..40d502b461 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/list_watermark_template_response.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListWatermarkTemplateResponse(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 = { + 'templates': 'list[WatermarkTemplate]', + 'total': 'int' + } + + attribute_map = { + 'templates': 'templates', + 'total': 'total' + } + + def __init__(self, templates=None, total=None): + """ListWatermarkTemplateResponse - a model defined in huaweicloud sdk""" + + super(ListWatermarkTemplateResponse, self).__init__() + + self._templates = None + self._total = None + self.discriminator = None + + if templates is not None: + self.templates = templates + if total is not None: + self.total = total + + @property + def templates(self): + """Gets the templates of this ListWatermarkTemplateResponse. + + + :return: The templates of this ListWatermarkTemplateResponse. + :rtype: list[WatermarkTemplate] + """ + return self._templates + + @templates.setter + def templates(self, templates): + """Sets the templates of this ListWatermarkTemplateResponse. + + + :param templates: The templates of this ListWatermarkTemplateResponse. + :type: list[WatermarkTemplate] + """ + self._templates = templates + + @property + def total(self): + """Gets the total of this ListWatermarkTemplateResponse. + + + :return: The total of this ListWatermarkTemplateResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListWatermarkTemplateResponse. + + + :param total: The total of this ListWatermarkTemplateResponse. + :type: int + """ + self._total = total + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListWatermarkTemplateResponse): + 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-vod/huaweicloudsdkvod/v1/model/meta_data.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/meta_data.py new file mode 100644 index 0000000000..0d26e8782a --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/meta_data.py @@ -0,0 +1,380 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class MetaData: + + + """ + 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': 'int', + 'pack_type': 'str', + 'codec': 'str', + 'duration': 'int', + 'video_size': 'int', + 'width': 'int', + 'hight': 'int', + 'bit_rate': 'int', + 'frame_rate': 'int', + 'quality': 'str', + 'audio_channels': 'int' + } + + attribute_map = { + 'play_type': 'play_type', + 'pack_type': 'pack_type', + 'codec': 'codec', + 'duration': 'duration', + 'video_size': 'video_size', + 'width': 'width', + 'hight': 'hight', + 'bit_rate': 'bit_rate', + 'frame_rate': 'frame_rate', + 'quality': 'quality', + 'audio_channels': 'audio_channels' + } + + def __init__(self, play_type=None, pack_type=None, codec=None, duration=None, video_size=None, width=None, hight=None, bit_rate=None, frame_rate=None, quality=None, audio_channels=None): + """MetaData - a model defined in huaweicloud sdk""" + + + + self._play_type = None + self._pack_type = None + self._codec = None + self._duration = None + self._video_size = None + self._width = None + self._hight = None + self._bit_rate = None + self._frame_rate = None + self._quality = None + self._audio_channels = None + self.discriminator = None + + if play_type is not None: + self.play_type = play_type + if pack_type is not None: + self.pack_type = pack_type + if codec is not None: + self.codec = codec + if duration is not None: + self.duration = duration + if video_size is not None: + self.video_size = video_size + if width is not None: + self.width = width + if hight is not None: + self.hight = hight + if bit_rate is not None: + self.bit_rate = bit_rate + if frame_rate is not None: + self.frame_rate = frame_rate + if quality is not None: + self.quality = quality + if audio_channels is not None: + self.audio_channels = audio_channels + + @property + def play_type(self): + """Gets the play_type of this MetaData. + + 封装类型,TS/MP4等
+ + :return: The play_type of this MetaData. + :rtype: int + """ + return self._play_type + + @play_type.setter + def play_type(self, play_type): + """Sets the play_type of this MetaData. + + 封装类型,TS/MP4等
+ + :param play_type: The play_type of this MetaData. + :type: int + """ + self._play_type = play_type + + @property + def pack_type(self): + """Gets the pack_type of this MetaData. + + 封装类型,TS/MP4等
+ + :return: The pack_type of this MetaData. + :rtype: str + """ + return self._pack_type + + @pack_type.setter + def pack_type(self, pack_type): + """Sets the pack_type of this MetaData. + + 封装类型,TS/MP4等
+ + :param pack_type: The pack_type of this MetaData. + :type: str + """ + self._pack_type = pack_type + + @property + def codec(self): + """Gets the codec of this MetaData. + + 编码类型:H.264、H.265等
+ + :return: The codec of this MetaData. + :rtype: str + """ + return self._codec + + @codec.setter + def codec(self, codec): + """Sets the codec of this MetaData. + + 编码类型:H.264、H.265等
+ + :param codec: The codec of this MetaData. + :type: str + """ + self._codec = codec + + @property + def duration(self): + """Gets the duration of this MetaData. + + 视频时长
+ + :return: The duration of this MetaData. + :rtype: int + """ + return self._duration + + @duration.setter + def duration(self, duration): + """Sets the duration of this MetaData. + + 视频时长
+ + :param duration: The duration of this MetaData. + :type: int + """ + self._duration = duration + + @property + def video_size(self): + """Gets the video_size of this MetaData. + + 视频文件大小
+ + :return: The video_size of this MetaData. + :rtype: int + """ + return self._video_size + + @video_size.setter + def video_size(self, video_size): + """Sets the video_size of this MetaData. + + 视频文件大小
+ + :param video_size: The video_size of this MetaData. + :type: int + """ + self._video_size = video_size + + @property + def width(self): + """Gets the width of this MetaData. + + 视频宽度
+ + :return: The width of this MetaData. + :rtype: int + """ + return self._width + + @width.setter + def width(self, width): + """Sets the width of this MetaData. + + 视频宽度
+ + :param width: The width of this MetaData. + :type: int + """ + self._width = width + + @property + def hight(self): + """Gets the hight of this MetaData. + + 视频高度
+ + :return: The hight of this MetaData. + :rtype: int + """ + return self._hight + + @hight.setter + def hight(self, hight): + """Sets the hight of this MetaData. + + 视频高度
+ + :param hight: The hight of this MetaData. + :type: int + """ + self._hight = hight + + @property + def bit_rate(self): + """Gets the bit_rate of this MetaData. + + 视频平均码率
+ + :return: The bit_rate of this MetaData. + :rtype: int + """ + return self._bit_rate + + @bit_rate.setter + def bit_rate(self, bit_rate): + """Sets the bit_rate of this MetaData. + + 视频平均码率
+ + :param bit_rate: The bit_rate of this MetaData. + :type: int + """ + self._bit_rate = bit_rate + + @property + def frame_rate(self): + """Gets the frame_rate of this MetaData. + + 帧率
+ + :return: The frame_rate of this MetaData. + :rtype: int + """ + return self._frame_rate + + @frame_rate.setter + def frame_rate(self, frame_rate): + """Sets the frame_rate of this MetaData. + + 帧率
+ + :param frame_rate: The frame_rate of this MetaData. + :type: int + """ + self._frame_rate = frame_rate + + @property + def quality(self): + """Gets the quality of this MetaData. + + 分辨率
+ + :return: The quality of this MetaData. + :rtype: str + """ + return self._quality + + @quality.setter + def quality(self, quality): + """Sets the quality of this MetaData. + + 分辨率
+ + :param quality: The quality of this MetaData. + :type: str + """ + self._quality = quality + + @property + def audio_channels(self): + """Gets the audio_channels of this MetaData. + + 音频声道数
+ + :return: The audio_channels of this MetaData. + :rtype: int + """ + return self._audio_channels + + @audio_channels.setter + def audio_channels(self, audio_channels): + """Sets the audio_channels of this MetaData. + + 音频声道数
+ + :param audio_channels: The audio_channels of this MetaData. + :type: int + """ + self._audio_channels = audio_channels + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MetaData): + 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-vod/huaweicloudsdkvod/v1/model/modify_trans_template_group.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/modify_trans_template_group.py new file mode 100644 index 0000000000..8ea76811cb --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/modify_trans_template_group.py @@ -0,0 +1,297 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ModifyTransTemplateGroup: + + + """ + 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 = { + 'group_id': 'str', + 'name': 'str', + 'status': 'str', + 'auto_encrypt': 'int', + 'quality_info_list': 'list[QualityInfo]', + 'watermark_template_ids': 'list[str]', + 'description': 'str', + 'common': 'Common' + } + + attribute_map = { + 'group_id': 'group_id', + 'name': 'name', + 'status': 'status', + 'auto_encrypt': 'auto_encrypt', + 'quality_info_list': 'quality_info_list', + 'watermark_template_ids': 'watermark_template_ids', + 'description': 'description', + 'common': 'common' + } + + def __init__(self, group_id=None, name=None, status=None, auto_encrypt=None, quality_info_list=None, watermark_template_ids=None, description=None, common=None): + """ModifyTransTemplateGroup - a model defined in huaweicloud sdk""" + + + + self._group_id = None + self._name = None + self._status = None + self._auto_encrypt = None + self._quality_info_list = None + self._watermark_template_ids = None + self._description = None + self._common = None + self.discriminator = None + + if group_id is not None: + self.group_id = group_id + if name is not None: + self.name = name + if status is not None: + self.status = status + if auto_encrypt is not None: + self.auto_encrypt = auto_encrypt + if quality_info_list is not None: + self.quality_info_list = quality_info_list + if watermark_template_ids is not None: + self.watermark_template_ids = watermark_template_ids + if description is not None: + self.description = description + if common is not None: + self.common = common + + @property + def group_id(self): + """Gets the group_id of this ModifyTransTemplateGroup. + + 模板组名称
+ + :return: The group_id of this ModifyTransTemplateGroup. + :rtype: str + """ + return self._group_id + + @group_id.setter + def group_id(self, group_id): + """Sets the group_id of this ModifyTransTemplateGroup. + + 模板组名称
+ + :param group_id: The group_id of this ModifyTransTemplateGroup. + :type: str + """ + self._group_id = group_id + + @property + def name(self): + """Gets the name of this ModifyTransTemplateGroup. + + 模板组名称
+ + :return: The name of this ModifyTransTemplateGroup. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ModifyTransTemplateGroup. + + 模板组名称
+ + :param name: The name of this ModifyTransTemplateGroup. + :type: str + """ + self._name = name + + @property + def status(self): + """Gets the status of this ModifyTransTemplateGroup. + + 是否设置默认
+ + :return: The status of this ModifyTransTemplateGroup. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ModifyTransTemplateGroup. + + 是否设置默认
+ + :param status: The status of this ModifyTransTemplateGroup. + :type: str + """ + self._status = status + + @property + def auto_encrypt(self): + """Gets the auto_encrypt of this ModifyTransTemplateGroup. + + 是否自动加密 + + :return: The auto_encrypt of this ModifyTransTemplateGroup. + :rtype: int + """ + return self._auto_encrypt + + @auto_encrypt.setter + def auto_encrypt(self, auto_encrypt): + """Sets the auto_encrypt of this ModifyTransTemplateGroup. + + 是否自动加密 + + :param auto_encrypt: The auto_encrypt of this ModifyTransTemplateGroup. + :type: int + """ + self._auto_encrypt = auto_encrypt + + @property + def quality_info_list(self): + """Gets the quality_info_list of this ModifyTransTemplateGroup. + + 画质配置信息列表
+ + :return: The quality_info_list of this ModifyTransTemplateGroup. + :rtype: list[QualityInfo] + """ + return self._quality_info_list + + @quality_info_list.setter + def quality_info_list(self, quality_info_list): + """Sets the quality_info_list of this ModifyTransTemplateGroup. + + 画质配置信息列表
+ + :param quality_info_list: The quality_info_list of this ModifyTransTemplateGroup. + :type: list[QualityInfo] + """ + self._quality_info_list = quality_info_list + + @property + def watermark_template_ids(self): + """Gets the watermark_template_ids of this ModifyTransTemplateGroup. + + 绑定的水印模板组ID数组
+ + :return: The watermark_template_ids of this ModifyTransTemplateGroup. + :rtype: list[str] + """ + return self._watermark_template_ids + + @watermark_template_ids.setter + def watermark_template_ids(self, watermark_template_ids): + """Sets the watermark_template_ids of this ModifyTransTemplateGroup. + + 绑定的水印模板组ID数组
+ + :param watermark_template_ids: The watermark_template_ids of this ModifyTransTemplateGroup. + :type: list[str] + """ + self._watermark_template_ids = watermark_template_ids + + @property + def description(self): + """Gets the description of this ModifyTransTemplateGroup. + + 模板介绍
+ + :return: The description of this ModifyTransTemplateGroup. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ModifyTransTemplateGroup. + + 模板介绍
+ + :param description: The description of this ModifyTransTemplateGroup. + :type: str + """ + self._description = description + + @property + def common(self): + """Gets the common of this ModifyTransTemplateGroup. + + + :return: The common of this ModifyTransTemplateGroup. + :rtype: Common + """ + return self._common + + @common.setter + def common(self, common): + """Sets the common of this ModifyTransTemplateGroup. + + + :param common: The common of this ModifyTransTemplateGroup. + :type: Common + """ + self._common = common + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ModifyTransTemplateGroup): + 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-vod/huaweicloudsdkvod/v1/model/output.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/output.py new file mode 100644 index 0000000000..d13167e2d6 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/output.py @@ -0,0 +1,213 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class Output: + + + """ + 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', + 'url': 'str', + 'encrypted': 'int', + 'quality': 'str', + 'meta_data': 'MetaData' + } + + attribute_map = { + 'play_type': 'play_type', + 'url': 'url', + 'encrypted': 'encrypted', + 'quality': 'quality', + 'meta_data': 'meta_data' + } + + def __init__(self, play_type=None, url=None, encrypted=None, quality=None, meta_data=None): + """Output - a model defined in huaweicloud sdk""" + + + + self._play_type = None + self._url = None + self._encrypted = None + self._quality = None + self._meta_data = None + self.discriminator = None + + self.play_type = play_type + self.url = url + if encrypted is not None: + self.encrypted = encrypted + if quality is not None: + self.quality = quality + self.meta_data = meta_data + + @property + def play_type(self): + """Gets the play_type of this Output. + + 协议类型。 取值hls、 dash、mp4、mp3、aac + + :return: The play_type of this Output. + :rtype: str + """ + return self._play_type + + @play_type.setter + def play_type(self, play_type): + """Sets the play_type of this Output. + + 协议类型。 取值hls、 dash、mp4、mp3、aac + + :param play_type: The play_type of this Output. + :type: str + """ + self._play_type = play_type + + @property + def url(self): + """Gets the url of this Output. + + 访问URL + + :return: The url of this Output. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this Output. + + 访问URL + + :param url: The url of this Output. + :type: str + """ + self._url = url + + @property + def encrypted(self): + """Gets the encrypted of this Output. + + 标记流是否已被加密,取值[0,1] 0表示未加密,1表示已被加密。 + + :return: The encrypted of this Output. + :rtype: int + """ + return self._encrypted + + @encrypted.setter + def encrypted(self, encrypted): + """Sets the encrypted of this Output. + + 标记流是否已被加密,取值[0,1] 0表示未加密,1表示已被加密。 + + :param encrypted: The encrypted of this Output. + :type: int + """ + self._encrypted = encrypted + + @property + def quality(self): + """Gets the quality of this Output. + + 清晰度 + + :return: The quality of this Output. + :rtype: str + """ + return self._quality + + @quality.setter + def quality(self, quality): + """Sets the quality of this Output. + + 清晰度 + + :param quality: The quality of this Output. + :type: str + """ + self._quality = quality + + @property + def meta_data(self): + """Gets the meta_data of this Output. + + + :return: The meta_data of this Output. + :rtype: MetaData + """ + return self._meta_data + + @meta_data.setter + def meta_data(self, meta_data): + """Sets the meta_data of this Output. + + + :param meta_data: The meta_data of this Output. + :type: MetaData + """ + self._meta_data = meta_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Output): + 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-vod/huaweicloudsdkvod/v1/model/parameter.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/parameter.py new file mode 100644 index 0000000000..1d2f65cd1b --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/parameter.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class Parameter: + + + """ + 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 = { + 'format': 'str' + } + + attribute_map = { + 'format': 'format' + } + + def __init__(self, format=None): + """Parameter - a model defined in huaweicloud sdk""" + + + + self._format = None + self.discriminator = None + + if format is not None: + self.format = format + + @property + def format(self): + """Gets the format of this Parameter. + + 封装格式,可选值:“MP3”。
+ + :return: The format of this Parameter. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this Parameter. + + 封装格式,可选值:“MP3”。
+ + :param format: The format of this Parameter. + :type: str + """ + self._format = format + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Parameter): + 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-vod/huaweicloudsdkvod/v1/model/picture_review_ret.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/picture_review_ret.py new file mode 100644 index 0000000000..c10699e177 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/picture_review_ret.py @@ -0,0 +1,238 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class PictureReviewRet: + + + """ + 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 = { + 'suggestion': 'str', + 'offset': 'int', + 'url': 'str', + 'politics': 'list[ReviewDetail]', + 'terrorism': 'list[ReviewDetail]', + 'porn': 'list[ReviewDetail]' + } + + attribute_map = { + 'suggestion': 'suggestion', + 'offset': 'offset', + 'url': 'url', + 'politics': 'politics', + 'terrorism': 'terrorism', + 'porn': 'porn' + } + + def __init__(self, suggestion=None, offset=None, url=None, politics=None, terrorism=None, porn=None): + """PictureReviewRet - a model defined in huaweicloud sdk""" + + + + self._suggestion = None + self._offset = None + self._url = None + self._politics = None + self._terrorism = None + self._porn = None + self.discriminator = None + + if suggestion is not None: + self.suggestion = suggestion + if offset is not None: + self.offset = offset + self.url = url + if politics is not None: + self.politics = politics + if terrorism is not None: + self.terrorism = terrorism + if porn is not None: + self.porn = porn + + @property + def suggestion(self): + """Gets the suggestion of this PictureReviewRet. + + 检测结果是否通过。 block:包含敏感信息,不通过。 pass:不包含敏感信息,通过。 review:需要人工复查。 + + :return: The suggestion of this PictureReviewRet. + :rtype: str + """ + return self._suggestion + + @suggestion.setter + def suggestion(self, suggestion): + """Sets the suggestion of this PictureReviewRet. + + 检测结果是否通过。 block:包含敏感信息,不通过。 pass:不包含敏感信息,通过。 review:需要人工复查。 + + :param suggestion: The suggestion of this PictureReviewRet. + :type: str + """ + self._suggestion = suggestion + + @property + def offset(self): + """Gets the offset of this PictureReviewRet. + + 截图在视频中的时间偏移值,单位为秒。封面不涉及此字段 + + :return: The offset of this PictureReviewRet. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this PictureReviewRet. + + 截图在视频中的时间偏移值,单位为秒。封面不涉及此字段 + + :param offset: The offset of this PictureReviewRet. + :type: int + """ + self._offset = offset + + @property + def url(self): + """Gets the url of this PictureReviewRet. + + 对应截图/封面的的访问url + + :return: The url of this PictureReviewRet. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this PictureReviewRet. + + 对应截图/封面的的访问url + + :param url: The url of this PictureReviewRet. + :type: str + """ + self._url = url + + @property + def politics(self): + """Gets the politics of this PictureReviewRet. + + + :return: The politics of this PictureReviewRet. + :rtype: list[ReviewDetail] + """ + return self._politics + + @politics.setter + def politics(self, politics): + """Sets the politics of this PictureReviewRet. + + + :param politics: The politics of this PictureReviewRet. + :type: list[ReviewDetail] + """ + self._politics = politics + + @property + def terrorism(self): + """Gets the terrorism of this PictureReviewRet. + + + :return: The terrorism of this PictureReviewRet. + :rtype: list[ReviewDetail] + """ + return self._terrorism + + @terrorism.setter + def terrorism(self, terrorism): + """Sets the terrorism of this PictureReviewRet. + + + :param terrorism: The terrorism of this PictureReviewRet. + :type: list[ReviewDetail] + """ + self._terrorism = terrorism + + @property + def porn(self): + """Gets the porn of this PictureReviewRet. + + + :return: The porn of this PictureReviewRet. + :rtype: list[ReviewDetail] + """ + return self._porn + + @porn.setter + def porn(self, porn): + """Sets the porn of this PictureReviewRet. + + + :param porn: The porn of this PictureReviewRet. + :type: list[ReviewDetail] + """ + self._porn = porn + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PictureReviewRet): + 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-vod/huaweicloudsdkvod/v1/model/play_info.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/play_info.py new file mode 100644 index 0000000000..5cd2b6fcd9 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/play_info.py @@ -0,0 +1,189 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class PlayInfo: + + + """ + 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', + 'url': 'str', + 'encrypted': 'int', + 'meta_data': 'MetaData' + } + + attribute_map = { + 'play_type': 'play_type', + 'url': 'url', + 'encrypted': 'encrypted', + 'meta_data': 'meta_data' + } + + def __init__(self, play_type=None, url=None, encrypted=None, meta_data=None): + """PlayInfo - a model defined in huaweicloud sdk""" + + + + self._play_type = None + self._url = None + self._encrypted = None + self._meta_data = None + self.discriminator = None + + if play_type is not None: + self.play_type = play_type + if url is not None: + self.url = url + if encrypted is not None: + self.encrypted = encrypted + if meta_data is not None: + self.meta_data = meta_data + + @property + def play_type(self): + """Gets the play_type of this PlayInfo. + + 播放协议类型
+ + :return: The play_type of this PlayInfo. + :rtype: str + """ + return self._play_type + + @play_type.setter + def play_type(self, play_type): + """Sets the play_type of this PlayInfo. + + 播放协议类型
+ + :param play_type: The play_type of this PlayInfo. + :type: str + """ + self._play_type = play_type + + @property + def url(self): + """Gets the url of this PlayInfo. + + 播放url
+ + :return: The url of this PlayInfo. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this PlayInfo. + + 播放url
+ + :param url: The url of this PlayInfo. + :type: str + """ + self._url = url + + @property + def encrypted(self): + """Gets the encrypted of this PlayInfo. + + 标记流是否已被加密,取值[0,1] 0表示未加密,1表示已被加密。
+ + :return: The encrypted of this PlayInfo. + :rtype: int + """ + return self._encrypted + + @encrypted.setter + def encrypted(self, encrypted): + """Sets the encrypted of this PlayInfo. + + 标记流是否已被加密,取值[0,1] 0表示未加密,1表示已被加密。
+ + :param encrypted: The encrypted of this PlayInfo. + :type: int + """ + self._encrypted = encrypted + + @property + def meta_data(self): + """Gets the meta_data of this PlayInfo. + + + :return: The meta_data of this PlayInfo. + :rtype: MetaData + """ + return self._meta_data + + @meta_data.setter + def meta_data(self, meta_data): + """Sets the meta_data of this PlayInfo. + + + :param meta_data: The meta_data of this PlayInfo. + :type: MetaData + """ + self._meta_data = meta_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PlayInfo): + 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-vod/huaweicloudsdkvod/v1/model/preheating_result.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/preheating_result.py new file mode 100644 index 0000000000..156b8a380f --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/preheating_result.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class PreheatingResult: + + + """ + 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 = { + 'url': 'str', + 'status': 'str' + } + + attribute_map = { + 'url': 'url', + 'status': 'status' + } + + def __init__(self, url=None, status=None): + """PreheatingResult - a model defined in huaweicloud sdk""" + + + + self._url = None + self._status = None + self.discriminator = None + + if url is not None: + self.url = url + if status is not None: + self.status = status + + @property + def url(self): + """Gets the url of this PreheatingResult. + + 预热任务数组。
+ + :return: The url of this PreheatingResult. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this PreheatingResult. + + 预热任务数组。
+ + :param url: The url of this PreheatingResult. + :type: str + """ + self._url = url + + @property + def status(self): + """Gets the status of this PreheatingResult. + + 预热任务状态,取值processing, succeed, failed,分别表示处理中,完成,失败。
+ + :return: The status of this PreheatingResult. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this PreheatingResult. + + 预热任务状态,取值processing, succeed, failed,分别表示处理中,完成,失败。
+ + :param status: The status of this PreheatingResult. + :type: str + """ + self._status = 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PreheatingResult): + 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-vod/huaweicloudsdkvod/v1/model/publish_asset_from_obs_req.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/publish_asset_from_obs_req.py new file mode 100644 index 0000000000..c6aedfcb42 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/publish_asset_from_obs_req.py @@ -0,0 +1,509 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class PublishAssetFromObsReq: + + + """ + 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 = { + 'video_type': 'str', + 'title': 'str', + 'description': 'str', + 'category_id': 'int', + 'tags': 'str', + 'auto_publish': 'int', + 'template_group_name': 'str', + 'auto_encrypt': 'int', + 'auto_preheat': 'int', + 'thumbnail': 'Thumbnail', + 'review': 'Review', + 'workflow_name': 'str', + 'storage_mode': 'int', + 'input': 'FileAddr', + 'output_bucket': 'str', + 'output_path': 'str' + } + + attribute_map = { + 'video_type': 'video_type', + 'title': 'title', + 'description': 'description', + 'category_id': 'category_id', + 'tags': 'tags', + 'auto_publish': 'auto_publish', + 'template_group_name': 'template_group_name', + 'auto_encrypt': 'auto_encrypt', + 'auto_preheat': 'auto_preheat', + 'thumbnail': 'thumbnail', + 'review': 'review', + 'workflow_name': 'workflow_name', + 'storage_mode': 'storage_mode', + 'input': 'input', + 'output_bucket': 'output_bucket', + 'output_path': 'output_path' + } + + def __init__(self, video_type=None, title=None, description=None, category_id=None, tags=None, auto_publish=None, template_group_name=None, auto_encrypt=None, auto_preheat=None, thumbnail=None, review=None, workflow_name=None, storage_mode=None, input=None, output_bucket=None, output_path=None): + """PublishAssetFromObsReq - a model defined in huaweicloud sdk""" + + + + self._video_type = None + self._title = None + self._description = None + self._category_id = None + self._tags = None + self._auto_publish = None + self._template_group_name = None + self._auto_encrypt = None + self._auto_preheat = None + self._thumbnail = None + self._review = None + self._workflow_name = None + self._storage_mode = None + self._input = None + self._output_bucket = None + self._output_path = None + self.discriminator = None + + if video_type is not None: + self.video_type = video_type + if title is not None: + self.title = title + if description is not None: + self.description = description + if category_id is not None: + self.category_id = category_id + if tags is not None: + self.tags = tags + if auto_publish is not None: + self.auto_publish = auto_publish + if template_group_name is not None: + self.template_group_name = template_group_name + if auto_encrypt is not None: + self.auto_encrypt = auto_encrypt + if auto_preheat is not None: + self.auto_preheat = auto_preheat + if thumbnail is not None: + self.thumbnail = thumbnail + if review is not None: + self.review = review + if workflow_name is not None: + self.workflow_name = workflow_name + if storage_mode is not None: + self.storage_mode = storage_mode + if input is not None: + self.input = input + if output_bucket is not None: + self.output_bucket = output_bucket + if output_path is not None: + self.output_path = output_path + + @property + def video_type(self): + """Gets the video_type of this PublishAssetFromObsReq. + + 视频类型
+ + :return: The video_type of this PublishAssetFromObsReq. + :rtype: str + """ + return self._video_type + + @video_type.setter + def video_type(self, video_type): + """Sets the video_type of this PublishAssetFromObsReq. + + 视频类型
+ + :param video_type: The video_type of this PublishAssetFromObsReq. + :type: str + """ + self._video_type = video_type + + @property + def title(self): + """Gets the title of this PublishAssetFromObsReq. + + 媒资标题
+ + :return: The title of this PublishAssetFromObsReq. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this PublishAssetFromObsReq. + + 媒资标题
+ + :param title: The title of this PublishAssetFromObsReq. + :type: str + """ + self._title = title + + @property + def description(self): + """Gets the description of this PublishAssetFromObsReq. + + 视频描述
+ + :return: The description of this PublishAssetFromObsReq. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this PublishAssetFromObsReq. + + 视频描述
+ + :param description: The description of this PublishAssetFromObsReq. + :type: str + """ + self._description = description + + @property + def category_id(self): + """Gets the category_id of this PublishAssetFromObsReq. + + 媒资分类id
+ + :return: The category_id of this PublishAssetFromObsReq. + :rtype: int + """ + return self._category_id + + @category_id.setter + def category_id(self, category_id): + """Sets the category_id of this PublishAssetFromObsReq. + + 媒资分类id
+ + :param category_id: The category_id of this PublishAssetFromObsReq. + :type: int + """ + self._category_id = category_id + + @property + def tags(self): + """Gets the tags of this PublishAssetFromObsReq. + + 视频标签
+ + :return: The tags of this PublishAssetFromObsReq. + :rtype: str + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this PublishAssetFromObsReq. + + 视频标签
+ + :param tags: The tags of this PublishAssetFromObsReq. + :type: str + """ + self._tags = tags + + @property + def auto_publish(self): + """Gets the auto_publish of this PublishAssetFromObsReq. + + 是否自动发布
+ + :return: The auto_publish of this PublishAssetFromObsReq. + :rtype: int + """ + return self._auto_publish + + @auto_publish.setter + def auto_publish(self, auto_publish): + """Sets the auto_publish of this PublishAssetFromObsReq. + + 是否自动发布
+ + :param auto_publish: The auto_publish of this PublishAssetFromObsReq. + :type: int + """ + self._auto_publish = auto_publish + + @property + def template_group_name(self): + """Gets the template_group_name of this PublishAssetFromObsReq. + + 转码模板组名称
+ + :return: The template_group_name of this PublishAssetFromObsReq. + :rtype: str + """ + return self._template_group_name + + @template_group_name.setter + def template_group_name(self, template_group_name): + """Sets the template_group_name of this PublishAssetFromObsReq. + + 转码模板组名称
+ + :param template_group_name: The template_group_name of this PublishAssetFromObsReq. + :type: str + """ + self._template_group_name = template_group_name + + @property + def auto_encrypt(self): + """Gets the auto_encrypt of this PublishAssetFromObsReq. + + 是否自动加密,取值[0,1],0表示需要不加密;1表示需要加密。加密与转码必须要一起进行,当需要加密时,转码参数不能为空,且转码输出必须要为HLS + + :return: The auto_encrypt of this PublishAssetFromObsReq. + :rtype: int + """ + return self._auto_encrypt + + @auto_encrypt.setter + def auto_encrypt(self, auto_encrypt): + """Sets the auto_encrypt of this PublishAssetFromObsReq. + + 是否自动加密,取值[0,1],0表示需要不加密;1表示需要加密。加密与转码必须要一起进行,当需要加密时,转码参数不能为空,且转码输出必须要为HLS + + :param auto_encrypt: The auto_encrypt of this PublishAssetFromObsReq. + :type: int + """ + self._auto_encrypt = auto_encrypt + + @property + def auto_preheat(self): + """Gets the auto_preheat of this PublishAssetFromObsReq. + + 是否自动预热到CDN,取值[0,1],0表示不自动预热 + + :return: The auto_preheat of this PublishAssetFromObsReq. + :rtype: int + """ + return self._auto_preheat + + @auto_preheat.setter + def auto_preheat(self, auto_preheat): + """Sets the auto_preheat of this PublishAssetFromObsReq. + + 是否自动预热到CDN,取值[0,1],0表示不自动预热 + + :param auto_preheat: The auto_preheat of this PublishAssetFromObsReq. + :type: int + """ + self._auto_preheat = auto_preheat + + @property + def thumbnail(self): + """Gets the thumbnail of this PublishAssetFromObsReq. + + + :return: The thumbnail of this PublishAssetFromObsReq. + :rtype: Thumbnail + """ + return self._thumbnail + + @thumbnail.setter + def thumbnail(self, thumbnail): + """Sets the thumbnail of this PublishAssetFromObsReq. + + + :param thumbnail: The thumbnail of this PublishAssetFromObsReq. + :type: Thumbnail + """ + self._thumbnail = thumbnail + + @property + def review(self): + """Gets the review of this PublishAssetFromObsReq. + + + :return: The review of this PublishAssetFromObsReq. + :rtype: Review + """ + return self._review + + @review.setter + def review(self, review): + """Sets the review of this PublishAssetFromObsReq. + + + :param review: The review of this PublishAssetFromObsReq. + :type: Review + """ + self._review = review + + @property + def workflow_name(self): + """Gets the workflow_name of this PublishAssetFromObsReq. + + 工作流ID + + :return: The workflow_name of this PublishAssetFromObsReq. + :rtype: str + """ + return self._workflow_name + + @workflow_name.setter + def workflow_name(self, workflow_name): + """Sets the workflow_name of this PublishAssetFromObsReq. + + 工作流ID + + :param workflow_name: The workflow_name of this PublishAssetFromObsReq. + :type: str + """ + self._workflow_name = workflow_name + + @property + def storage_mode(self): + """Gets the storage_mode of this PublishAssetFromObsReq. + + 存储模式:0表示视频拷贝到点播桶 1表示视频存在租户的桶
+ + :return: The storage_mode of this PublishAssetFromObsReq. + :rtype: int + """ + return self._storage_mode + + @storage_mode.setter + def storage_mode(self, storage_mode): + """Sets the storage_mode of this PublishAssetFromObsReq. + + 存储模式:0表示视频拷贝到点播桶 1表示视频存在租户的桶
+ + :param storage_mode: The storage_mode of this PublishAssetFromObsReq. + :type: int + """ + self._storage_mode = storage_mode + + @property + def input(self): + """Gets the input of this PublishAssetFromObsReq. + + + :return: The input of this PublishAssetFromObsReq. + :rtype: FileAddr + """ + return self._input + + @input.setter + def input(self, input): + """Sets the input of this PublishAssetFromObsReq. + + + :param input: The input of this PublishAssetFromObsReq. + :type: FileAddr + """ + self._input = input + + @property + def output_bucket(self): + """Gets the output_bucket of this PublishAssetFromObsReq. + + 输出桶,storage_mode为1的时候才选择此参数
+ + :return: The output_bucket of this PublishAssetFromObsReq. + :rtype: str + """ + return self._output_bucket + + @output_bucket.setter + def output_bucket(self, output_bucket): + """Sets the output_bucket of this PublishAssetFromObsReq. + + 输出桶,storage_mode为1的时候才选择此参数
+ + :param output_bucket: The output_bucket of this PublishAssetFromObsReq. + :type: str + """ + self._output_bucket = output_bucket + + @property + def output_path(self): + """Gets the output_path of this PublishAssetFromObsReq. + + 输出路径,storage_mode为1的时候才选择此参数
+ + :return: The output_path of this PublishAssetFromObsReq. + :rtype: str + """ + return self._output_path + + @output_path.setter + def output_path(self, output_path): + """Sets the output_path of this PublishAssetFromObsReq. + + 输出路径,storage_mode为1的时候才选择此参数
+ + :param output_path: The output_path of this PublishAssetFromObsReq. + :type: str + """ + self._output_path = output_path + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PublishAssetFromObsReq): + 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-vod/huaweicloudsdkvod/v1/model/publish_asset_from_obs_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/publish_asset_from_obs_request.py new file mode 100644 index 0000000000..9c65ff8fe5 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/publish_asset_from_obs_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class PublishAssetFromObsRequest: + + + """ + 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': 'PublishAssetFromObsReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """PublishAssetFromObsRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this PublishAssetFromObsRequest. + + + :return: The body of this PublishAssetFromObsRequest. + :rtype: PublishAssetFromObsReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this PublishAssetFromObsRequest. + + + :param body: The body of this PublishAssetFromObsRequest. + :type: PublishAssetFromObsReq + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PublishAssetFromObsRequest): + 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-vod/huaweicloudsdkvod/v1/model/publish_asset_from_obs_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/publish_asset_from_obs_response.py new file mode 100644 index 0000000000..0620cc2754 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/publish_asset_from_obs_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class PublishAssetFromObsResponse(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 = { + 'asset_id': 'str' + } + + attribute_map = { + 'asset_id': 'asset_id' + } + + def __init__(self, asset_id=None): + """PublishAssetFromObsResponse - a model defined in huaweicloud sdk""" + + super(PublishAssetFromObsResponse, self).__init__() + + self._asset_id = None + self.discriminator = None + + if asset_id is not None: + self.asset_id = asset_id + + @property + def asset_id(self): + """Gets the asset_id of this PublishAssetFromObsResponse. + + 媒资ID + + :return: The asset_id of this PublishAssetFromObsResponse. + :rtype: str + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this PublishAssetFromObsResponse. + + 媒资ID + + :param asset_id: The asset_id of this PublishAssetFromObsResponse. + :type: str + """ + self._asset_id = asset_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PublishAssetFromObsResponse): + 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-vod/huaweicloudsdkvod/v1/model/publish_asset_req.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/publish_asset_req.py new file mode 100644 index 0000000000..ee1f8ca176 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/publish_asset_req.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class PublishAssetReq: + + + """ + 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 = { + 'asset_id': 'list[str]' + } + + attribute_map = { + 'asset_id': 'asset_id' + } + + def __init__(self, asset_id=None): + """PublishAssetReq - a model defined in huaweicloud sdk""" + + + + self._asset_id = None + self.discriminator = None + + self.asset_id = asset_id + + @property + def asset_id(self): + """Gets the asset_id of this PublishAssetReq. + + + :return: The asset_id of this PublishAssetReq. + :rtype: list[str] + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this PublishAssetReq. + + + :param asset_id: The asset_id of this PublishAssetReq. + :type: list[str] + """ + self._asset_id = asset_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PublishAssetReq): + 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-vod/huaweicloudsdkvod/v1/model/publish_assets_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/publish_assets_request.py new file mode 100644 index 0000000000..61fbd734df --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/publish_assets_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class PublishAssetsRequest: + + + """ + 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': 'PublishAssetReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """PublishAssetsRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this PublishAssetsRequest. + + + :return: The body of this PublishAssetsRequest. + :rtype: PublishAssetReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this PublishAssetsRequest. + + + :param body: The body of this PublishAssetsRequest. + :type: PublishAssetReq + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PublishAssetsRequest): + 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-vod/huaweicloudsdkvod/v1/model/publish_assets_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/publish_assets_response.py new file mode 100644 index 0000000000..624c37af0f --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/publish_assets_response.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class PublishAssetsResponse(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 = { + 'asset_info_array': 'list[AssetInfo]' + } + + attribute_map = { + 'asset_info_array': 'asset_info_array' + } + + def __init__(self, asset_info_array=None): + """PublishAssetsResponse - a model defined in huaweicloud sdk""" + + super(PublishAssetsResponse, self).__init__() + + self._asset_info_array = None + self.discriminator = None + + if asset_info_array is not None: + self.asset_info_array = asset_info_array + + @property + def asset_info_array(self): + """Gets the asset_info_array of this PublishAssetsResponse. + + + :return: The asset_info_array of this PublishAssetsResponse. + :rtype: list[AssetInfo] + """ + return self._asset_info_array + + @asset_info_array.setter + def asset_info_array(self, asset_info_array): + """Sets the asset_info_array of this PublishAssetsResponse. + + + :param asset_info_array: The asset_info_array of this PublishAssetsResponse. + :type: list[AssetInfo] + """ + self._asset_info_array = asset_info_array + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PublishAssetsResponse): + 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-vod/huaweicloudsdkvod/v1/model/quality_info.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/quality_info.py new file mode 100644 index 0000000000..93a09fe530 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/quality_info.py @@ -0,0 +1,159 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class QualityInfo: + + + """ + 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 = { + 'video': 'VideoTemplateInfo', + 'audio': 'AudioTemplateInfo', + 'format': 'str' + } + + attribute_map = { + 'video': 'video', + 'audio': 'audio', + 'format': 'format' + } + + def __init__(self, video=None, audio=None, format=None): + """QualityInfo - a model defined in huaweicloud sdk""" + + + + self._video = None + self._audio = None + self._format = None + self.discriminator = None + + if video is not None: + self.video = video + if audio is not None: + self.audio = audio + self.format = format + + @property + def video(self): + """Gets the video of this QualityInfo. + + + :return: The video of this QualityInfo. + :rtype: VideoTemplateInfo + """ + return self._video + + @video.setter + def video(self, video): + """Sets the video of this QualityInfo. + + + :param video: The video of this QualityInfo. + :type: VideoTemplateInfo + """ + self._video = video + + @property + def audio(self): + """Gets the audio of this QualityInfo. + + + :return: The audio of this QualityInfo. + :rtype: AudioTemplateInfo + """ + return self._audio + + @audio.setter + def audio(self, audio): + """Sets the audio of this QualityInfo. + + + :param audio: The audio of this QualityInfo. + :type: AudioTemplateInfo + """ + self._audio = audio + + @property + def format(self): + """Gets the format of this QualityInfo. + + 格式
+ + :return: The format of this QualityInfo. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this QualityInfo. + + 格式
+ + :param format: The format of this QualityInfo. + :type: str + """ + self._format = format + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, QualityInfo): + 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-vod/huaweicloudsdkvod/v1/model/query_category_rsp.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/query_category_rsp.py new file mode 100644 index 0000000000..d97b127bb6 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/query_category_rsp.py @@ -0,0 +1,164 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class QueryCategoryRsp: + + + """ + 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', + 'children': 'list[QueryCategoryRsp]' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'children': 'children' + } + + def __init__(self, id=None, name=None, children=None): + """QueryCategoryRsp - a model defined in huaweicloud sdk""" + + + + self._id = None + self._name = None + self._children = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if children is not None: + self.children = children + + @property + def id(self): + """Gets the id of this QueryCategoryRsp. + + 视频分类ID
+ + :return: The id of this QueryCategoryRsp. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this QueryCategoryRsp. + + 视频分类ID
+ + :param id: The id of this QueryCategoryRsp. + :type: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this QueryCategoryRsp. + + 视频分类名称
+ + :return: The name of this QueryCategoryRsp. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this QueryCategoryRsp. + + 视频分类名称
+ + :param name: The name of this QueryCategoryRsp. + :type: str + """ + self._name = name + + @property + def children(self): + """Gets the children of this QueryCategoryRsp. + + 子分类信息
+ + :return: The children of this QueryCategoryRsp. + :rtype: list[QueryCategoryRsp] + """ + return self._children + + @children.setter + def children(self, children): + """Sets the children of this QueryCategoryRsp. + + 子分类信息
+ + :param children: The children of this QueryCategoryRsp. + :type: list[QueryCategoryRsp] + """ + self._children = children + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, QueryCategoryRsp): + 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-vod/huaweicloudsdkvod/v1/model/review.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/review.py new file mode 100644 index 0000000000..287d7e980d --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/review.py @@ -0,0 +1,217 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class Review: + + + """ + 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 = { + 'template_id': 'str', + 'interval': 'int', + 'politics': 'int', + 'terrorism': 'int', + 'porn': 'int' + } + + attribute_map = { + 'template_id': 'template_id', + 'interval': 'interval', + 'politics': 'politics', + 'terrorism': 'terrorism', + 'porn': 'porn' + } + + def __init__(self, template_id=None, interval=None, politics=None, terrorism=None, porn=None): + """Review - a model defined in huaweicloud sdk""" + + + + self._template_id = None + self._interval = None + self._politics = None + self._terrorism = None + self._porn = None + self.discriminator = None + + self.template_id = template_id + if interval is not None: + self.interval = interval + if politics is not None: + self.politics = politics + if terrorism is not None: + self.terrorism = terrorism + if porn is not None: + self.porn = porn + + @property + def template_id(self): + """Gets the template_id of this Review. + + 审核模板ID + + :return: The template_id of this Review. + :rtype: str + """ + return self._template_id + + @template_id.setter + def template_id(self, template_id): + """Sets the template_id of this Review. + + 审核模板ID + + :param template_id: The template_id of this Review. + :type: str + """ + self._template_id = template_id + + @property + def interval(self): + """Gets the interval of this Review. + + 截图的时间间隔。单位为秒 + + :return: The interval of this Review. + :rtype: int + """ + return self._interval + + @interval.setter + def interval(self, interval): + """Sets the interval of this Review. + + 截图的时间间隔。单位为秒 + + :param interval: The interval of this Review. + :type: int + """ + self._interval = interval + + @property + def politics(self): + """Gets the politics of this Review. + + 进行政治人物检测时的置信度。 1) 未传参时表示不进行此项检测。 2) 传 -1 表示采用默认的置信度 + + :return: The politics of this Review. + :rtype: int + """ + return self._politics + + @politics.setter + def politics(self, politics): + """Sets the politics of this Review. + + 进行政治人物检测时的置信度。 1) 未传参时表示不进行此项检测。 2) 传 -1 表示采用默认的置信度 + + :param politics: The politics of this Review. + :type: int + """ + self._politics = politics + + @property + def terrorism(self): + """Gets the terrorism of this Review. + + 进行暴恐元素检测时的置信度。 1) 未传参时表示不进行此项检测。 2) 传 -1 表示采用默认的置信度 + + :return: The terrorism of this Review. + :rtype: int + """ + return self._terrorism + + @terrorism.setter + def terrorism(self, terrorism): + """Sets the terrorism of this Review. + + 进行暴恐元素检测时的置信度。 1) 未传参时表示不进行此项检测。 2) 传 -1 表示采用默认的置信度 + + :param terrorism: The terrorism of this Review. + :type: int + """ + self._terrorism = terrorism + + @property + def porn(self): + """Gets the porn of this Review. + + 进行涉黄内容检测时的置信度。 1) 未传参时表示不进行此项检测。 2) 传 -1 表示采用默认的置信度 + + :return: The porn of this Review. + :rtype: int + """ + return self._porn + + @porn.setter + def porn(self, porn): + """Sets the porn of this Review. + + 进行涉黄内容检测时的置信度。 1) 未传参时表示不进行此项检测。 2) 传 -1 表示采用默认的置信度 + + :param porn: The porn of this Review. + :type: int + """ + self._porn = porn + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Review): + 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-vod/huaweicloudsdkvod/v1/model/review_detail.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/review_detail.py new file mode 100644 index 0000000000..9421c3f12c --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/review_detail.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ReviewDetail: + + + """ + 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 = { + 'confidence': 'str', + 'label': 'str' + } + + attribute_map = { + 'confidence': 'confidence', + 'label': 'label' + } + + def __init__(self, confidence=None, label=None): + """ReviewDetail - a model defined in huaweicloud sdk""" + + + + self._confidence = None + self._label = None + self.discriminator = None + + self.confidence = confidence + if label is not None: + self.label = label + + @property + def confidence(self): + """Gets the confidence of this ReviewDetail. + + 置信度,取值介于0与1之间。 + + :return: The confidence of this ReviewDetail. + :rtype: str + """ + return self._confidence + + @confidence.setter + def confidence(self, confidence): + """Sets the confidence of this ReviewDetail. + + 置信度,取值介于0与1之间。 + + :param confidence: The confidence of this ReviewDetail. + :type: str + """ + self._confidence = confidence + + @property + def label(self): + """Gets the label of this ReviewDetail. + + 每个检测结果的标签化说明,在politics场景中 label为对应的政治人物信息,在terrorism场景中 label为对应的暴恐元素(枪支、刀具、火灾等) 信息,在porn场景中label为对应的涉黄元素(涉 黄、性感等)信息。 + + :return: The label of this ReviewDetail. + :rtype: str + """ + return self._label + + @label.setter + def label(self, label): + """Sets the label of this ReviewDetail. + + 每个检测结果的标签化说明,在politics场景中 label为对应的政治人物信息,在terrorism场景中 label为对应的暴恐元素(枪支、刀具、火灾等) 信息,在porn场景中label为对应的涉黄元素(涉 黄、性感等)信息。 + + :param label: The label of this ReviewDetail. + :type: str + """ + self._label = label + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ReviewDetail): + 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-vod/huaweicloudsdkvod/v1/model/review_info.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/review_info.py new file mode 100644 index 0000000000..d24ad0d9ae --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/review_info.py @@ -0,0 +1,234 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ReviewInfo: + + + """ + 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 = { + 'suggestion': 'str', + 'text': 'TextReviewRet', + 'cover': 'list[PictureReviewRet]', + 'video': 'list[PictureReviewRet]', + 'exec_desc': 'str', + 'review_status': 'str' + } + + attribute_map = { + 'suggestion': 'suggestion', + 'text': 'text', + 'cover': 'cover', + 'video': 'video', + 'exec_desc': 'exec_desc', + 'review_status': 'review_status' + } + + def __init__(self, suggestion=None, text=None, cover=None, video=None, exec_desc=None, review_status=None): + """ReviewInfo - a model defined in huaweicloud sdk""" + + + + self._suggestion = None + self._text = None + self._cover = None + self._video = None + self._exec_desc = None + self._review_status = None + self.discriminator = None + + if suggestion is not None: + self.suggestion = suggestion + if text is not None: + self.text = text + if cover is not None: + self.cover = cover + if video is not None: + self.video = video + if exec_desc is not None: + self.exec_desc = exec_desc + self.review_status = review_status + + @property + def suggestion(self): + """Gets the suggestion of this ReviewInfo. + + 检测结果是否通过。 - block:包含敏感信息,不通过。 - pass:不包含敏感信息,通过。 - review:需要人工复检。 > 说明: > 当同时检测多个场景时,suggestion的值以最可能包含敏感信息的场景为准。即任一场景出现了block则总的suggestion为block,所有场景都pass时suggestion为pass,这两种情况之外则一定有场景需要review,此时suggestion为review。 + + :return: The suggestion of this ReviewInfo. + :rtype: str + """ + return self._suggestion + + @suggestion.setter + def suggestion(self, suggestion): + """Sets the suggestion of this ReviewInfo. + + 检测结果是否通过。 - block:包含敏感信息,不通过。 - pass:不包含敏感信息,通过。 - review:需要人工复检。 > 说明: > 当同时检测多个场景时,suggestion的值以最可能包含敏感信息的场景为准。即任一场景出现了block则总的suggestion为block,所有场景都pass时suggestion为pass,这两种情况之外则一定有场景需要review,此时suggestion为review。 + + :param suggestion: The suggestion of this ReviewInfo. + :type: str + """ + self._suggestion = suggestion + + @property + def text(self): + """Gets the text of this ReviewInfo. + + + :return: The text of this ReviewInfo. + :rtype: TextReviewRet + """ + return self._text + + @text.setter + def text(self, text): + """Sets the text of this ReviewInfo. + + + :param text: The text of this ReviewInfo. + :type: TextReviewRet + """ + self._text = text + + @property + def cover(self): + """Gets the cover of this ReviewInfo. + + + :return: The cover of this ReviewInfo. + :rtype: list[PictureReviewRet] + """ + return self._cover + + @cover.setter + def cover(self, cover): + """Sets the cover of this ReviewInfo. + + + :param cover: The cover of this ReviewInfo. + :type: list[PictureReviewRet] + """ + self._cover = cover + + @property + def video(self): + """Gets the video of this ReviewInfo. + + + :return: The video of this ReviewInfo. + :rtype: list[PictureReviewRet] + """ + return self._video + + @video.setter + def video(self, video): + """Sets the video of this ReviewInfo. + + + :param video: The video of this ReviewInfo. + :type: list[PictureReviewRet] + """ + self._video = video + + @property + def exec_desc(self): + """Gets the exec_desc of this ReviewInfo. + + + :return: The exec_desc of this ReviewInfo. + :rtype: str + """ + return self._exec_desc + + @exec_desc.setter + def exec_desc(self, exec_desc): + """Sets the exec_desc of this ReviewInfo. + + + :param exec_desc: The exec_desc of this ReviewInfo. + :type: str + """ + self._exec_desc = exec_desc + + @property + def review_status(self): + """Gets the review_status of this ReviewInfo. + + + :return: The review_status of this ReviewInfo. + :rtype: str + """ + return self._review_status + + @review_status.setter + def review_status(self, review_status): + """Sets the review_status of this ReviewInfo. + + + :param review_status: The review_status of this ReviewInfo. + :type: str + """ + self._review_status = review_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ReviewInfo): + 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-vod/huaweicloudsdkvod/v1/model/show_asset_cipher_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_asset_cipher_request.py new file mode 100644 index 0000000000..7a42add443 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_asset_cipher_request.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ShowAssetCipherRequest: + + + """ + 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 = { + 'asset_id': 'str' + } + + attribute_map = { + 'asset_id': 'asset_id' + } + + def __init__(self, asset_id=None): + """ShowAssetCipherRequest - a model defined in huaweicloud sdk""" + + + + self._asset_id = None + self.discriminator = None + + self.asset_id = asset_id + + @property + def asset_id(self): + """Gets the asset_id of this ShowAssetCipherRequest. + + 媒资id
+ + :return: The asset_id of this ShowAssetCipherRequest. + :rtype: str + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this ShowAssetCipherRequest. + + 媒资id
+ + :param asset_id: The asset_id of this ShowAssetCipherRequest. + :type: str + """ + self._asset_id = asset_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAssetCipherRequest): + 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-vod/huaweicloudsdkvod/v1/model/show_asset_cipher_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_asset_cipher_response.py new file mode 100644 index 0000000000..769b077896 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_asset_cipher_response.py @@ -0,0 +1,164 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ShowAssetCipherResponse(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 = { + 'asset_id': 'str', + 'edk': 'str', + 'dk': 'str' + } + + attribute_map = { + 'asset_id': 'asset_id', + 'edk': 'edk', + 'dk': 'dk' + } + + def __init__(self, asset_id=None, edk=None, dk=None): + """ShowAssetCipherResponse - a model defined in huaweicloud sdk""" + + super(ShowAssetCipherResponse, self).__init__() + + self._asset_id = None + self._edk = None + self._dk = None + self.discriminator = None + + if asset_id is not None: + self.asset_id = asset_id + if edk is not None: + self.edk = edk + if dk is not None: + self.dk = dk + + @property + def asset_id(self): + """Gets the asset_id of this ShowAssetCipherResponse. + + 媒资id
+ + :return: The asset_id of this ShowAssetCipherResponse. + :rtype: str + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this ShowAssetCipherResponse. + + 媒资id
+ + :param asset_id: The asset_id of this ShowAssetCipherResponse. + :type: str + """ + self._asset_id = asset_id + + @property + def edk(self): + """Gets the edk of this ShowAssetCipherResponse. + + 密钥密文。未加密、正在加密或加密失败的媒资不会包含此字段。
+ + :return: The edk of this ShowAssetCipherResponse. + :rtype: str + """ + return self._edk + + @edk.setter + def edk(self, edk): + """Sets the edk of this ShowAssetCipherResponse. + + 密钥密文。未加密、正在加密或加密失败的媒资不会包含此字段。
+ + :param edk: The edk of this ShowAssetCipherResponse. + :type: str + """ + self._edk = edk + + @property + def dk(self): + """Gets the dk of this ShowAssetCipherResponse. + + 密钥明文。未加密、正在加密或加密失败的媒资不会包含此字段。
+ + :return: The dk of this ShowAssetCipherResponse. + :rtype: str + """ + return self._dk + + @dk.setter + def dk(self, dk): + """Sets the dk of this ShowAssetCipherResponse. + + 密钥明文。未加密、正在加密或加密失败的媒资不会包含此字段。
+ + :param dk: The dk of this ShowAssetCipherResponse. + :type: str + """ + self._dk = dk + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAssetCipherResponse): + 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-vod/huaweicloudsdkvod/v1/model/show_asset_detail_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_asset_detail_request.py new file mode 100644 index 0000000000..5aff1f6fc9 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_asset_detail_request.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ShowAssetDetailRequest: + + + """ + 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 = { + 'asset_id': 'str', + 'categories': 'list[str]' + } + + attribute_map = { + 'asset_id': 'asset_id', + 'categories': 'categories' + } + + def __init__(self, asset_id=None, categories=None): + """ShowAssetDetailRequest - a model defined in huaweicloud sdk""" + + + + self._asset_id = None + self._categories = None + self.discriminator = None + + self.asset_id = asset_id + if categories is not None: + self.categories = categories + + @property + def asset_id(self): + """Gets the asset_id of this ShowAssetDetailRequest. + + 媒资ID + + :return: The asset_id of this ShowAssetDetailRequest. + :rtype: str + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this ShowAssetDetailRequest. + + 媒资ID + + :param asset_id: The asset_id of this ShowAssetDetailRequest. + :type: str + """ + self._asset_id = asset_id + + @property + def categories(self): + """Gets the categories of this ShowAssetDetailRequest. + + 要查询的信息类型,可同时查询多个类型的信息。不指定时表示查询所有信息。 \"base_info\" //媒资基本信息 \"transcode_info\" //转码结果信息 \"thumbnail_info\" //截图结果信息 \"review_info\" //审核结果信息 + + :return: The categories of this ShowAssetDetailRequest. + :rtype: list[str] + """ + return self._categories + + @categories.setter + def categories(self, categories): + """Sets the categories of this ShowAssetDetailRequest. + + 要查询的信息类型,可同时查询多个类型的信息。不指定时表示查询所有信息。 \"base_info\" //媒资基本信息 \"transcode_info\" //转码结果信息 \"thumbnail_info\" //截图结果信息 \"review_info\" //审核结果信息 + + :param categories: The categories of this ShowAssetDetailRequest. + :type: list[str] + """ + self._categories = categories + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAssetDetailRequest): + 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-vod/huaweicloudsdkvod/v1/model/show_asset_detail_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_asset_detail_response.py new file mode 100644 index 0000000000..0b9e4d5801 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_asset_detail_response.py @@ -0,0 +1,210 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ShowAssetDetailResponse(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 = { + 'asset_id': 'str', + 'base_info': 'BaseInfo', + 'transcode_info': 'TranscodeInfo', + 'thumbnail_info': 'ThumbnailInfo', + 'review_info': 'ReviewInfo' + } + + attribute_map = { + 'asset_id': 'asset_id', + 'base_info': 'base_info', + 'transcode_info': 'transcode_info', + 'thumbnail_info': 'thumbnail_info', + 'review_info': 'review_info' + } + + def __init__(self, asset_id=None, base_info=None, transcode_info=None, thumbnail_info=None, review_info=None): + """ShowAssetDetailResponse - a model defined in huaweicloud sdk""" + + super(ShowAssetDetailResponse, self).__init__() + + self._asset_id = None + self._base_info = None + self._transcode_info = None + self._thumbnail_info = None + self._review_info = None + self.discriminator = None + + if asset_id is not None: + self.asset_id = asset_id + if base_info is not None: + self.base_info = base_info + if transcode_info is not None: + self.transcode_info = transcode_info + if thumbnail_info is not None: + self.thumbnail_info = thumbnail_info + if review_info is not None: + self.review_info = review_info + + @property + def asset_id(self): + """Gets the asset_id of this ShowAssetDetailResponse. + + 媒资ID + + :return: The asset_id of this ShowAssetDetailResponse. + :rtype: str + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this ShowAssetDetailResponse. + + 媒资ID + + :param asset_id: The asset_id of this ShowAssetDetailResponse. + :type: str + """ + self._asset_id = asset_id + + @property + def base_info(self): + """Gets the base_info of this ShowAssetDetailResponse. + + + :return: The base_info of this ShowAssetDetailResponse. + :rtype: BaseInfo + """ + return self._base_info + + @base_info.setter + def base_info(self, base_info): + """Sets the base_info of this ShowAssetDetailResponse. + + + :param base_info: The base_info of this ShowAssetDetailResponse. + :type: BaseInfo + """ + self._base_info = base_info + + @property + def transcode_info(self): + """Gets the transcode_info of this ShowAssetDetailResponse. + + + :return: The transcode_info of this ShowAssetDetailResponse. + :rtype: TranscodeInfo + """ + return self._transcode_info + + @transcode_info.setter + def transcode_info(self, transcode_info): + """Sets the transcode_info of this ShowAssetDetailResponse. + + + :param transcode_info: The transcode_info of this ShowAssetDetailResponse. + :type: TranscodeInfo + """ + self._transcode_info = transcode_info + + @property + def thumbnail_info(self): + """Gets the thumbnail_info of this ShowAssetDetailResponse. + + + :return: The thumbnail_info of this ShowAssetDetailResponse. + :rtype: ThumbnailInfo + """ + return self._thumbnail_info + + @thumbnail_info.setter + def thumbnail_info(self, thumbnail_info): + """Sets the thumbnail_info of this ShowAssetDetailResponse. + + + :param thumbnail_info: The thumbnail_info of this ShowAssetDetailResponse. + :type: ThumbnailInfo + """ + self._thumbnail_info = thumbnail_info + + @property + def review_info(self): + """Gets the review_info of this ShowAssetDetailResponse. + + + :return: The review_info of this ShowAssetDetailResponse. + :rtype: ReviewInfo + """ + return self._review_info + + @review_info.setter + def review_info(self, review_info): + """Sets the review_info of this ShowAssetDetailResponse. + + + :param review_info: The review_info of this ShowAssetDetailResponse. + :type: ReviewInfo + """ + self._review_info = review_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAssetDetailResponse): + 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-vod/huaweicloudsdkvod/v1/model/show_asset_meta_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_asset_meta_request.py new file mode 100644 index 0000000000..4727fa84ee --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_asset_meta_request.py @@ -0,0 +1,405 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ShowAssetMetaRequest: + + + """ + 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 = { + 'asset_id': 'list[str]', + 'status': 'list[str]', + 'transcode_status': 'list[str]', + 'asset_status': 'list[str]', + 'start_time': 'str', + 'end_time': 'str', + 'category_id': 'int', + 'tags': 'str', + 'query_string': 'str', + 'page': 'int', + 'size': 'int', + 'order': 'str' + } + + attribute_map = { + 'asset_id': 'asset_id', + 'status': 'status', + 'transcode_status': 'transcodeStatus', + 'asset_status': 'assetStatus', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'category_id': 'category_id', + 'tags': 'tags', + 'query_string': 'query_string', + 'page': 'page', + 'size': 'size', + 'order': 'order' + } + + def __init__(self, asset_id=None, status=None, transcode_status=None, asset_status=None, start_time=None, end_time=None, category_id=None, tags=None, query_string=None, page=None, size=None, order=None): + """ShowAssetMetaRequest - a model defined in huaweicloud sdk""" + + + + self._asset_id = None + self._status = None + self._transcode_status = None + self._asset_status = None + self._start_time = None + self._end_time = None + self._category_id = None + self._tags = None + self._query_string = None + self._page = None + self._size = None + self._order = None + self.discriminator = None + + if asset_id is not None: + self.asset_id = asset_id + if status is not None: + self.status = status + if transcode_status is not None: + self.transcode_status = transcode_status + if asset_status is not None: + self.asset_status = asset_status + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if category_id is not None: + self.category_id = category_id + if tags is not None: + self.tags = tags + if query_string is not None: + self.query_string = query_string + if page is not None: + self.page = page + if size is not None: + self.size = size + if order is not None: + self.order = order + + @property + def asset_id(self): + """Gets the asset_id of this ShowAssetMetaRequest. + + 媒资id。一次最多10个
+ + :return: The asset_id of this ShowAssetMetaRequest. + :rtype: list[str] + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this ShowAssetMetaRequest. + + 媒资id。一次最多10个
+ + :param asset_id: The asset_id of this ShowAssetMetaRequest. + :type: list[str] + """ + self._asset_id = asset_id + + @property + def status(self): + """Gets the status of this ShowAssetMetaRequest. + + 媒资状态
+ + :return: The status of this ShowAssetMetaRequest. + :rtype: list[str] + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ShowAssetMetaRequest. + + 媒资状态
+ + :param status: The status of this ShowAssetMetaRequest. + :type: list[str] + """ + self._status = status + + @property + def transcode_status(self): + """Gets the transcode_status of this ShowAssetMetaRequest. + + 转码状态
+ + :return: The transcode_status of this ShowAssetMetaRequest. + :rtype: list[str] + """ + return self._transcode_status + + @transcode_status.setter + def transcode_status(self, transcode_status): + """Sets the transcode_status of this ShowAssetMetaRequest. + + 转码状态
+ + :param transcode_status: The transcode_status of this ShowAssetMetaRequest. + :type: list[str] + """ + self._transcode_status = transcode_status + + @property + def asset_status(self): + """Gets the asset_status of this ShowAssetMetaRequest. + + 媒资状态
+ + :return: The asset_status of this ShowAssetMetaRequest. + :rtype: list[str] + """ + return self._asset_status + + @asset_status.setter + def asset_status(self, asset_status): + """Sets the asset_status of this ShowAssetMetaRequest. + + 媒资状态
+ + :param asset_status: The asset_status of this ShowAssetMetaRequest. + :type: list[str] + """ + self._asset_status = asset_status + + @property + def start_time(self): + """Gets the start_time of this ShowAssetMetaRequest. + + 起始时间.指定task_id时该参数无效
+ + :return: The start_time of this ShowAssetMetaRequest. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ShowAssetMetaRequest. + + 起始时间.指定task_id时该参数无效
+ + :param start_time: The start_time of this ShowAssetMetaRequest. + :type: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ShowAssetMetaRequest. + + 结束时间.指定task_id时该参数无效
+ + :return: The end_time of this ShowAssetMetaRequest. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ShowAssetMetaRequest. + + 结束时间.指定task_id时该参数无效
+ + :param end_time: The end_time of this ShowAssetMetaRequest. + :type: str + """ + self._end_time = end_time + + @property + def category_id(self): + """Gets the category_id of this ShowAssetMetaRequest. + + 分类ID
+ + :return: The category_id of this ShowAssetMetaRequest. + :rtype: int + """ + return self._category_id + + @category_id.setter + def category_id(self, category_id): + """Sets the category_id of this ShowAssetMetaRequest. + + 分类ID
+ + :param category_id: The category_id of this ShowAssetMetaRequest. + :type: int + """ + self._category_id = category_id + + @property + def tags(self): + """Gets the tags of this ShowAssetMetaRequest. + + 视频标签。
单个标签不超过16个字节,最多不超过16个标签。
多个用逗号分隔,UTF8编码。
+ + :return: The tags of this ShowAssetMetaRequest. + :rtype: str + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this ShowAssetMetaRequest. + + 视频标签。
单个标签不超过16个字节,最多不超过16个标签。
多个用逗号分隔,UTF8编码。
+ + :param tags: The tags of this ShowAssetMetaRequest. + :type: str + """ + self._tags = tags + + @property + def query_string(self): + """Gets the query_string of this ShowAssetMetaRequest. + + 在媒资标题、描述中模糊查询的字符串。
暂不支持模糊查询。
+ + :return: The query_string of this ShowAssetMetaRequest. + :rtype: str + """ + return self._query_string + + @query_string.setter + def query_string(self, query_string): + """Sets the query_string of this ShowAssetMetaRequest. + + 在媒资标题、描述中模糊查询的字符串。
暂不支持模糊查询。
+ + :param query_string: The query_string of this ShowAssetMetaRequest. + :type: str + """ + self._query_string = query_string + + @property + def page(self): + """Gets the page of this ShowAssetMetaRequest. + + 分页编号,默认为0。
+ + :return: The page of this ShowAssetMetaRequest. + :rtype: int + """ + return self._page + + @page.setter + def page(self, page): + """Sets the page of this ShowAssetMetaRequest. + + 分页编号,默认为0。
+ + :param page: The page of this ShowAssetMetaRequest. + :type: int + """ + self._page = page + + @property + def size(self): + """Gets the size of this ShowAssetMetaRequest. + + 每页记录数。默认10,范围[1,100]
指定task_id时该参数无效
+ + :return: The size of this ShowAssetMetaRequest. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this ShowAssetMetaRequest. + + 每页记录数。默认10,范围[1,100]
指定task_id时该参数无效
+ + :param size: The size of this ShowAssetMetaRequest. + :type: int + """ + self._size = size + + @property + def order(self): + """Gets the order of this ShowAssetMetaRequest. + + + :return: The order of this ShowAssetMetaRequest. + :rtype: str + """ + return self._order + + @order.setter + def order(self, order): + """Sets the order of this ShowAssetMetaRequest. + + + :param order: The order of this ShowAssetMetaRequest. + :type: str + """ + self._order = order + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAssetMetaRequest): + 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-vod/huaweicloudsdkvod/v1/model/show_asset_meta_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_asset_meta_response.py new file mode 100644 index 0000000000..9027fb8c66 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_asset_meta_response.py @@ -0,0 +1,158 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ShowAssetMetaResponse(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 = { + 'asset_info_array': 'list[AssetInfo]', + 'is_truncated': 'int', + 'total': 'int' + } + + attribute_map = { + 'asset_info_array': 'asset_info_array', + 'is_truncated': 'is_truncated', + 'total': 'total' + } + + def __init__(self, asset_info_array=None, is_truncated=None, total=None): + """ShowAssetMetaResponse - a model defined in huaweicloud sdk""" + + super(ShowAssetMetaResponse, self).__init__() + + self._asset_info_array = None + self._is_truncated = None + self._total = None + self.discriminator = None + + if asset_info_array is not None: + self.asset_info_array = asset_info_array + if is_truncated is not None: + self.is_truncated = is_truncated + if total is not None: + self.total = total + + @property + def asset_info_array(self): + """Gets the asset_info_array of this ShowAssetMetaResponse. + + + :return: The asset_info_array of this ShowAssetMetaResponse. + :rtype: list[AssetInfo] + """ + return self._asset_info_array + + @asset_info_array.setter + def asset_info_array(self, asset_info_array): + """Sets the asset_info_array of this ShowAssetMetaResponse. + + + :param asset_info_array: The asset_info_array of this ShowAssetMetaResponse. + :type: list[AssetInfo] + """ + self._asset_info_array = asset_info_array + + @property + def is_truncated(self): + """Gets the is_truncated of this ShowAssetMetaResponse. + + + :return: The is_truncated of this ShowAssetMetaResponse. + :rtype: int + """ + return self._is_truncated + + @is_truncated.setter + def is_truncated(self, is_truncated): + """Sets the is_truncated of this ShowAssetMetaResponse. + + + :param is_truncated: The is_truncated of this ShowAssetMetaResponse. + :type: int + """ + self._is_truncated = is_truncated + + @property + def total(self): + """Gets the total of this ShowAssetMetaResponse. + + + :return: The total of this ShowAssetMetaResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ShowAssetMetaResponse. + + + :param total: The total of this ShowAssetMetaResponse. + :type: int + """ + self._total = total + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAssetMetaResponse): + 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-vod/huaweicloudsdkvod/v1/model/show_asset_temp_authority_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_asset_temp_authority_request.py new file mode 100644 index 0000000000..739a48ef74 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_asset_temp_authority_request.py @@ -0,0 +1,269 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ShowAssetTempAuthorityRequest: + + + """ + 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 = { + 'http_verb': 'str', + 'content_md5': 'str', + 'content_type': 'str', + 'bucket': 'str', + 'object_key': 'str', + 'upload_id': 'str', + 'part_number': 'int' + } + + attribute_map = { + 'http_verb': 'http_verb', + 'content_md5': 'content_md5', + 'content_type': 'content_type', + 'bucket': 'bucket', + 'object_key': 'object_key', + 'upload_id': 'upload_id', + 'part_number': 'part_number' + } + + def __init__(self, http_verb=None, content_md5=None, content_type=None, bucket=None, object_key=None, upload_id=None, part_number=None): + """ShowAssetTempAuthorityRequest - a model defined in huaweicloud sdk""" + + + + self._http_verb = None + self._content_md5 = None + self._content_type = None + self._bucket = None + self._object_key = None + self._upload_id = None + self._part_number = None + self.discriminator = None + + self.http_verb = http_verb + if content_md5 is not None: + self.content_md5 = content_md5 + if content_type is not None: + self.content_type = content_type + self.bucket = bucket + self.object_key = object_key + if upload_id is not None: + self.upload_id = upload_id + if part_number is not None: + self.part_number = part_number + + @property + def http_verb(self): + """Gets the http_verb of this ShowAssetTempAuthorityRequest. + + http方法
初始化多段上传任务为POST,列举多段上传任务为GET,
上传段为PUT,合并段为POST,列举已上传段为GET,取消段合并为DELETE。 + + :return: The http_verb of this ShowAssetTempAuthorityRequest. + :rtype: str + """ + return self._http_verb + + @http_verb.setter + def http_verb(self, http_verb): + """Sets the http_verb of this ShowAssetTempAuthorityRequest. + + http方法
初始化多段上传任务为POST,列举多段上传任务为GET,
上传段为PUT,合并段为POST,列举已上传段为GET,取消段合并为DELETE。 + + :param http_verb: The http_verb of this ShowAssetTempAuthorityRequest. + :type: str + """ + self._http_verb = http_verb + + @property + def content_md5(self): + """Gets the content_md5 of this ShowAssetTempAuthorityRequest. + + 上传段时,每段媒资内容的md5值,非上传段操作不涉及此字段
+ + :return: The content_md5 of this ShowAssetTempAuthorityRequest. + :rtype: str + """ + return self._content_md5 + + @content_md5.setter + def content_md5(self, content_md5): + """Sets the content_md5 of this ShowAssetTempAuthorityRequest. + + 上传段时,每段媒资内容的md5值,非上传段操作不涉及此字段
+ + :param content_md5: The content_md5 of this ShowAssetTempAuthorityRequest. + :type: str + """ + self._content_md5 = content_md5 + + @property + def content_type(self): + """Gets the content_type of this ShowAssetTempAuthorityRequest. + + 上传段时,媒资内容对应的content-type值,非上传段操作不涉及此字段
+ + :return: The content_type of this ShowAssetTempAuthorityRequest. + :rtype: str + """ + return self._content_type + + @content_type.setter + def content_type(self, content_type): + """Sets the content_type of this ShowAssetTempAuthorityRequest. + + 上传段时,媒资内容对应的content-type值,非上传段操作不涉及此字段
+ + :param content_type: The content_type of this ShowAssetTempAuthorityRequest. + :type: str + """ + self._content_type = content_type + + @property + def bucket(self): + """Gets the bucket of this ShowAssetTempAuthorityRequest. + + 桶名
+ + :return: The bucket of this ShowAssetTempAuthorityRequest. + :rtype: str + """ + return self._bucket + + @bucket.setter + def bucket(self, bucket): + """Sets the bucket of this ShowAssetTempAuthorityRequest. + + 桶名
+ + :param bucket: The bucket of this ShowAssetTempAuthorityRequest. + :type: str + """ + self._bucket = bucket + + @property + def object_key(self): + """Gets the object_key of this ShowAssetTempAuthorityRequest. + + 对象名
+ + :return: The object_key of this ShowAssetTempAuthorityRequest. + :rtype: str + """ + return self._object_key + + @object_key.setter + def object_key(self, object_key): + """Sets the object_key of this ShowAssetTempAuthorityRequest. + + 对象名
+ + :param object_key: The object_key of this ShowAssetTempAuthorityRequest. + :type: str + """ + self._object_key = object_key + + @property + def upload_id(self): + """Gets the upload_id of this ShowAssetTempAuthorityRequest. + + 上传任务id,由OBS分配
+ + :return: The upload_id of this ShowAssetTempAuthorityRequest. + :rtype: str + """ + return self._upload_id + + @upload_id.setter + def upload_id(self, upload_id): + """Sets the upload_id of this ShowAssetTempAuthorityRequest. + + 上传任务id,由OBS分配
+ + :param upload_id: The upload_id of this ShowAssetTempAuthorityRequest. + :type: str + """ + self._upload_id = upload_id + + @property + def part_number(self): + """Gets the part_number of this ShowAssetTempAuthorityRequest. + + 上传段号,取值[1,10000]
+ + :return: The part_number of this ShowAssetTempAuthorityRequest. + :rtype: int + """ + return self._part_number + + @part_number.setter + def part_number(self, part_number): + """Sets the part_number of this ShowAssetTempAuthorityRequest. + + 上传段号,取值[1,10000]
+ + :param part_number: The part_number of this ShowAssetTempAuthorityRequest. + :type: int + """ + self._part_number = part_number + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAssetTempAuthorityRequest): + 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-vod/huaweicloudsdkvod/v1/model/show_asset_temp_authority_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_asset_temp_authority_response.py new file mode 100644 index 0000000000..fc58a0c1b9 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_asset_temp_authority_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ShowAssetTempAuthorityResponse(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 = { + 'sign_str': 'str' + } + + attribute_map = { + 'sign_str': 'sign_str' + } + + def __init__(self, sign_str=None): + """ShowAssetTempAuthorityResponse - a model defined in huaweicloud sdk""" + + super(ShowAssetTempAuthorityResponse, self).__init__() + + self._sign_str = None + self.discriminator = None + + if sign_str is not None: + self.sign_str = sign_str + + @property + def sign_str(self): + """Gets the sign_str of this ShowAssetTempAuthorityResponse. + + 带授权签名字符串的URL。样例: ``` https://{obs_domain}/{bucket}?AWSAccessKeyId={AccessKeyID}&Expires={ExpiresValue}&Signature={Signature} + + :return: The sign_str of this ShowAssetTempAuthorityResponse. + :rtype: str + """ + return self._sign_str + + @sign_str.setter + def sign_str(self, sign_str): + """Sets the sign_str of this ShowAssetTempAuthorityResponse. + + 带授权签名字符串的URL。样例: ``` https://{obs_domain}/{bucket}?AWSAccessKeyId={AccessKeyID}&Expires={ExpiresValue}&Signature={Signature} + + :param sign_str: The sign_str of this ShowAssetTempAuthorityResponse. + :type: str + """ + self._sign_str = sign_str + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAssetTempAuthorityResponse): + 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-vod/huaweicloudsdkvod/v1/model/show_cdn_statistics_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_cdn_statistics_request.py new file mode 100644 index 0000000000..c66f331085 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_cdn_statistics_request.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ShowCdnStatisticsRequest: + + + """ + 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', + 'stat_type': 'str', + 'domain': 'str', + 'interval': 'int' + } + + attribute_map = { + 'start_time': 'start_time', + 'end_time': 'end_time', + 'stat_type': 'stat_type', + 'domain': 'domain', + 'interval': 'interval' + } + + def __init__(self, start_time=None, end_time=None, stat_type=None, domain=None, interval=None): + """ShowCdnStatisticsRequest - a model defined in huaweicloud sdk""" + + + + self._start_time = None + self._end_time = None + self._stat_type = None + self._domain = None + self._interval = None + self.discriminator = None + + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + self.stat_type = stat_type + self.domain = domain + if interval is not None: + self.interval = interval + + @property + def start_time(self): + """Gets the start_time of this ShowCdnStatisticsRequest. + + 开始时间 + + :return: The start_time of this ShowCdnStatisticsRequest. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ShowCdnStatisticsRequest. + + 开始时间 + + :param start_time: The start_time of this ShowCdnStatisticsRequest. + :type: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ShowCdnStatisticsRequest. + + 结束时间 + + :return: The end_time of this ShowCdnStatisticsRequest. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ShowCdnStatisticsRequest. + + 结束时间 + + :param end_time: The end_time of this ShowCdnStatisticsRequest. + :type: str + """ + self._end_time = end_time + + @property + def stat_type(self): + """Gets the stat_type of this ShowCdnStatisticsRequest. + + 支持的参数类型 cdn_bw:CDN峰值带宽cdn_flux:CDN流量req_num:请求总数req_hit_rate:请求命中率flux_hit_rate:流量命中率 + + :return: The stat_type of this ShowCdnStatisticsRequest. + :rtype: str + """ + return self._stat_type + + @stat_type.setter + def stat_type(self, stat_type): + """Sets the stat_type of this ShowCdnStatisticsRequest. + + 支持的参数类型 cdn_bw:CDN峰值带宽cdn_flux:CDN流量req_num:请求总数req_hit_rate:请求命中率flux_hit_rate:流量命中率 + + :param stat_type: The stat_type of this ShowCdnStatisticsRequest. + :type: str + """ + self._stat_type = stat_type + + @property + def domain(self): + """Gets the domain of this ShowCdnStatisticsRequest. + + 域名列表,多个域名以逗号(半角)分隔 + + :return: The domain of this ShowCdnStatisticsRequest. + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this ShowCdnStatisticsRequest. + + 域名列表,多个域名以逗号(半角)分隔 + + :param domain: The domain of this ShowCdnStatisticsRequest. + :type: str + """ + self._domain = domain + + @property + def interval(self): + """Gets the interval of this ShowCdnStatisticsRequest. + + 采样间隔,单位:秒,取值说明: 时间跨度1天:5分钟、1小时、4小时、8小时,分别对应300秒、3600秒、14400秒和28800秒。 时间跨度2~7天:1小时、4小时、8小时、1天,分别对应3600秒、14400秒、28800秒和86400秒。 时间跨度8~31天:4小时、8小时、1天,分别对应14400秒、28800秒和86400秒。 如果不传,默认取对应时间跨度的最小间隔。 + + :return: The interval of this ShowCdnStatisticsRequest. + :rtype: int + """ + return self._interval + + @interval.setter + def interval(self, interval): + """Sets the interval of this ShowCdnStatisticsRequest. + + 采样间隔,单位:秒,取值说明: 时间跨度1天:5分钟、1小时、4小时、8小时,分别对应300秒、3600秒、14400秒和28800秒。 时间跨度2~7天:1小时、4小时、8小时、1天,分别对应3600秒、14400秒、28800秒和86400秒。 时间跨度8~31天:4小时、8小时、1天,分别对应14400秒、28800秒和86400秒。 如果不传,默认取对应时间跨度的最小间隔。 + + :param interval: The interval of this ShowCdnStatisticsRequest. + :type: int + """ + self._interval = interval + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowCdnStatisticsRequest): + 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-vod/huaweicloudsdkvod/v1/model/show_cdn_statistics_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_cdn_statistics_response.py new file mode 100644 index 0000000000..8865f98e99 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_cdn_statistics_response.py @@ -0,0 +1,162 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ShowCdnStatisticsResponse(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 = { + 'start_time': 'str', + 'interval': 'int', + 'values': 'list[int]' + } + + attribute_map = { + 'start_time': 'start_time', + 'interval': 'interval', + 'values': 'values' + } + + def __init__(self, start_time=None, interval=None, values=None): + """ShowCdnStatisticsResponse - a model defined in huaweicloud sdk""" + + super(ShowCdnStatisticsResponse, self).__init__() + + self._start_time = None + self._interval = None + self._values = None + self.discriminator = None + + if start_time is not None: + self.start_time = start_time + if interval is not None: + self.interval = interval + if values is not None: + self.values = values + + @property + def start_time(self): + """Gets the start_time of this ShowCdnStatisticsResponse. + + 统计起始时间 + + :return: The start_time of this ShowCdnStatisticsResponse. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ShowCdnStatisticsResponse. + + 统计起始时间 + + :param start_time: The start_time of this ShowCdnStatisticsResponse. + :type: str + """ + self._start_time = start_time + + @property + def interval(self): + """Gets the interval of this ShowCdnStatisticsResponse. + + 采样时间间隔 + + :return: The interval of this ShowCdnStatisticsResponse. + :rtype: int + """ + return self._interval + + @interval.setter + def interval(self, interval): + """Sets the interval of this ShowCdnStatisticsResponse. + + 采样时间间隔 + + :param interval: The interval of this ShowCdnStatisticsResponse. + :type: int + """ + self._interval = interval + + @property + def values(self): + """Gets the values of this ShowCdnStatisticsResponse. + + + :return: The values of this ShowCdnStatisticsResponse. + :rtype: list[int] + """ + return self._values + + @values.setter + def values(self, values): + """Sets the values of this ShowCdnStatisticsResponse. + + + :param values: The values of this ShowCdnStatisticsResponse. + :type: list[int] + """ + self._values = values + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowCdnStatisticsResponse): + 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-vod/huaweicloudsdkvod/v1/model/show_preheating_asset_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_preheating_asset_request.py new file mode 100644 index 0000000000..cc4863d6b2 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_preheating_asset_request.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ShowPreheatingAssetRequest: + + + """ + 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 = { + 'task_id': 'str' + } + + attribute_map = { + 'task_id': 'task_id' + } + + def __init__(self, task_id=None): + """ShowPreheatingAssetRequest - a model defined in huaweicloud sdk""" + + + + self._task_id = None + self.discriminator = None + + self.task_id = task_id + + @property + def task_id(self): + """Gets the task_id of this ShowPreheatingAssetRequest. + + 任务ID + + :return: The task_id of this ShowPreheatingAssetRequest. + :rtype: str + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this ShowPreheatingAssetRequest. + + 任务ID + + :param task_id: The task_id of this ShowPreheatingAssetRequest. + :type: str + """ + self._task_id = task_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPreheatingAssetRequest): + 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-vod/huaweicloudsdkvod/v1/model/show_preheating_asset_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_preheating_asset_response.py new file mode 100644 index 0000000000..2816d34ac2 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_preheating_asset_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ShowPreheatingAssetResponse(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 = { + 'preheating_results': 'list[PreheatingResult]' + } + + attribute_map = { + 'preheating_results': 'preheating_results' + } + + def __init__(self, preheating_results=None): + """ShowPreheatingAssetResponse - a model defined in huaweicloud sdk""" + + super(ShowPreheatingAssetResponse, self).__init__() + + self._preheating_results = None + self.discriminator = None + + if preheating_results is not None: + self.preheating_results = preheating_results + + @property + def preheating_results(self): + """Gets the preheating_results of this ShowPreheatingAssetResponse. + + 预热任务数组
+ + :return: The preheating_results of this ShowPreheatingAssetResponse. + :rtype: list[PreheatingResult] + """ + return self._preheating_results + + @preheating_results.setter + def preheating_results(self, preheating_results): + """Sets the preheating_results of this ShowPreheatingAssetResponse. + + 预热任务数组
+ + :param preheating_results: The preheating_results of this ShowPreheatingAssetResponse. + :type: list[PreheatingResult] + """ + self._preheating_results = preheating_results + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPreheatingAssetResponse): + 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-vod/huaweicloudsdkvod/v1/model/show_take_over_asset_details_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_take_over_asset_details_request.py new file mode 100644 index 0000000000..7e200d3092 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_take_over_asset_details_request.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ShowTakeOverAssetDetailsRequest: + + + """ + 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 = { + 'source_bucket': 'str', + 'source_object': 'str' + } + + attribute_map = { + 'source_bucket': 'source_bucket', + 'source_object': 'source_object' + } + + def __init__(self, source_bucket=None, source_object=None): + """ShowTakeOverAssetDetailsRequest - a model defined in huaweicloud sdk""" + + + + self._source_bucket = None + self._source_object = None + self.discriminator = None + + self.source_bucket = source_bucket + self.source_object = source_object + + @property + def source_bucket(self): + """Gets the source_bucket of this ShowTakeOverAssetDetailsRequest. + + 媒资原始输入存放的桶
+ + :return: The source_bucket of this ShowTakeOverAssetDetailsRequest. + :rtype: str + """ + return self._source_bucket + + @source_bucket.setter + def source_bucket(self, source_bucket): + """Sets the source_bucket of this ShowTakeOverAssetDetailsRequest. + + 媒资原始输入存放的桶
+ + :param source_bucket: The source_bucket of this ShowTakeOverAssetDetailsRequest. + :type: str + """ + self._source_bucket = source_bucket + + @property + def source_object(self): + """Gets the source_object of this ShowTakeOverAssetDetailsRequest. + + 媒资原始输入的objectKey。
+ + :return: The source_object of this ShowTakeOverAssetDetailsRequest. + :rtype: str + """ + return self._source_object + + @source_object.setter + def source_object(self, source_object): + """Sets the source_object of this ShowTakeOverAssetDetailsRequest. + + 媒资原始输入的objectKey。
+ + :param source_object: The source_object of this ShowTakeOverAssetDetailsRequest. + :type: str + """ + self._source_object = source_object + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowTakeOverAssetDetailsRequest): + 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-vod/huaweicloudsdkvod/v1/model/show_take_over_asset_details_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_take_over_asset_details_response.py new file mode 100644 index 0000000000..edf2cc389b --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_take_over_asset_details_response.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ShowTakeOverAssetDetailsResponse(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 = { + 'asset_id': 'str', + 'asset_status': 'str', + 'transcode_status': 'str', + 'base_info': 'BaseInfo', + 'transcode_info': 'TranscodeInfo' + } + + attribute_map = { + 'asset_id': 'asset_id', + 'asset_status': 'asset_status', + 'transcode_status': 'transcode_status', + 'base_info': 'base_info', + 'transcode_info': 'transcode_info' + } + + def __init__(self, asset_id=None, asset_status=None, transcode_status=None, base_info=None, transcode_info=None): + """ShowTakeOverAssetDetailsResponse - a model defined in huaweicloud sdk""" + + super(ShowTakeOverAssetDetailsResponse, self).__init__() + + self._asset_id = None + self._asset_status = None + self._transcode_status = None + self._base_info = None + self._transcode_info = None + self.discriminator = None + + if asset_id is not None: + self.asset_id = asset_id + if asset_status is not None: + self.asset_status = asset_status + if transcode_status is not None: + self.transcode_status = transcode_status + if base_info is not None: + self.base_info = base_info + if transcode_info is not None: + self.transcode_info = transcode_info + + @property + def asset_id(self): + """Gets the asset_id of this ShowTakeOverAssetDetailsResponse. + + 媒资ID + + :return: The asset_id of this ShowTakeOverAssetDetailsResponse. + :rtype: str + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this ShowTakeOverAssetDetailsResponse. + + 媒资ID + + :param asset_id: The asset_id of this ShowTakeOverAssetDetailsResponse. + :type: str + """ + self._asset_id = asset_id + + @property + def asset_status(self): + """Gets the asset_status of this ShowTakeOverAssetDetailsResponse. + + 媒资状态。 \"CREATING\" //上传中 \"FAILED\" //上传失败 \"CREATED\" //上传成功 \"PUBLISHED\" //已发布 \"DELETED\" //已删除 + + :return: The asset_status of this ShowTakeOverAssetDetailsResponse. + :rtype: str + """ + return self._asset_status + + @asset_status.setter + def asset_status(self, asset_status): + """Sets the asset_status of this ShowTakeOverAssetDetailsResponse. + + 媒资状态。 \"CREATING\" //上传中 \"FAILED\" //上传失败 \"CREATED\" //上传成功 \"PUBLISHED\" //已发布 \"DELETED\" //已删除 + + :param asset_status: The asset_status of this ShowTakeOverAssetDetailsResponse. + :type: str + """ + self._asset_status = asset_status + + @property + def transcode_status(self): + """Gets the transcode_status of this ShowTakeOverAssetDetailsResponse. + + 转码状态 \"UN_TRANSCODE\" //未转码 \"WAITING_TRANSCODE\" //等待转码,排队中 \"TRANSCODING\" //转码中 \"TRANSCODE_SUCCEED\" //转码成功 \"TRANSCODE_FAILED\" //转码失败 + + :return: The transcode_status of this ShowTakeOverAssetDetailsResponse. + :rtype: str + """ + return self._transcode_status + + @transcode_status.setter + def transcode_status(self, transcode_status): + """Sets the transcode_status of this ShowTakeOverAssetDetailsResponse. + + 转码状态 \"UN_TRANSCODE\" //未转码 \"WAITING_TRANSCODE\" //等待转码,排队中 \"TRANSCODING\" //转码中 \"TRANSCODE_SUCCEED\" //转码成功 \"TRANSCODE_FAILED\" //转码失败 + + :param transcode_status: The transcode_status of this ShowTakeOverAssetDetailsResponse. + :type: str + """ + self._transcode_status = transcode_status + + @property + def base_info(self): + """Gets the base_info of this ShowTakeOverAssetDetailsResponse. + + + :return: The base_info of this ShowTakeOverAssetDetailsResponse. + :rtype: BaseInfo + """ + return self._base_info + + @base_info.setter + def base_info(self, base_info): + """Sets the base_info of this ShowTakeOverAssetDetailsResponse. + + + :param base_info: The base_info of this ShowTakeOverAssetDetailsResponse. + :type: BaseInfo + """ + self._base_info = base_info + + @property + def transcode_info(self): + """Gets the transcode_info of this ShowTakeOverAssetDetailsResponse. + + + :return: The transcode_info of this ShowTakeOverAssetDetailsResponse. + :rtype: TranscodeInfo + """ + return self._transcode_info + + @transcode_info.setter + def transcode_info(self, transcode_info): + """Sets the transcode_info of this ShowTakeOverAssetDetailsResponse. + + + :param transcode_info: The transcode_info of this ShowTakeOverAssetDetailsResponse. + :type: TranscodeInfo + """ + self._transcode_info = transcode_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowTakeOverAssetDetailsResponse): + 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-vod/huaweicloudsdkvod/v1/model/show_take_over_task_details_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_take_over_task_details_request.py new file mode 100644 index 0000000000..9873383756 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_take_over_task_details_request.py @@ -0,0 +1,164 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ShowTakeOverTaskDetailsRequest: + + + """ + 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 = { + 'task_id': 'str', + 'page': 'int', + 'size': 'int' + } + + attribute_map = { + 'task_id': 'task_id', + 'page': 'page', + 'size': 'size' + } + + def __init__(self, task_id=None, page=None, size=None): + """ShowTakeOverTaskDetailsRequest - a model defined in huaweicloud sdk""" + + + + self._task_id = None + self._page = None + self._size = None + self.discriminator = None + + if task_id is not None: + self.task_id = task_id + if page is not None: + self.page = page + if size is not None: + self.size = size + + @property + def task_id(self): + """Gets the task_id of this ShowTakeOverTaskDetailsRequest. + + 起始时间.指定task_id时该参数无效
+ + :return: The task_id of this ShowTakeOverTaskDetailsRequest. + :rtype: str + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this ShowTakeOverTaskDetailsRequest. + + 起始时间.指定task_id时该参数无效
+ + :param task_id: The task_id of this ShowTakeOverTaskDetailsRequest. + :type: str + """ + self._task_id = task_id + + @property + def page(self): + """Gets the page of this ShowTakeOverTaskDetailsRequest. + + 分页编号,默认为0。
+ + :return: The page of this ShowTakeOverTaskDetailsRequest. + :rtype: int + """ + return self._page + + @page.setter + def page(self, page): + """Sets the page of this ShowTakeOverTaskDetailsRequest. + + 分页编号,默认为0。
+ + :param page: The page of this ShowTakeOverTaskDetailsRequest. + :type: int + """ + self._page = page + + @property + def size(self): + """Gets the size of this ShowTakeOverTaskDetailsRequest. + + 每页记录数。默认10,范围[1,100]
+ + :return: The size of this ShowTakeOverTaskDetailsRequest. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this ShowTakeOverTaskDetailsRequest. + + 每页记录数。默认10,范围[1,100]
+ + :param size: The size of this ShowTakeOverTaskDetailsRequest. + :type: int + """ + self._size = size + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowTakeOverTaskDetailsRequest): + 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-vod/huaweicloudsdkvod/v1/model/show_take_over_task_details_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_take_over_task_details_response.py new file mode 100644 index 0000000000..6b4a103339 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_take_over_task_details_response.py @@ -0,0 +1,183 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ShowTakeOverTaskDetailsResponse(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', + 'task_id': 'str', + 'task_status': 'str', + 'assets': 'list[AssetDetails]' + } + + attribute_map = { + 'total': 'total', + 'task_id': 'task_id', + 'task_status': 'task_status', + 'assets': 'assets' + } + + def __init__(self, total=None, task_id=None, task_status=None, assets=None): + """ShowTakeOverTaskDetailsResponse - a model defined in huaweicloud sdk""" + + super(ShowTakeOverTaskDetailsResponse, self).__init__() + + self._total = None + self._task_id = None + self._task_status = None + self._assets = None + self.discriminator = None + + if total is not None: + self.total = total + if task_id is not None: + self.task_id = task_id + if task_status is not None: + self.task_status = task_status + if assets is not None: + self.assets = assets + + @property + def total(self): + """Gets the total of this ShowTakeOverTaskDetailsResponse. + + + :return: The total of this ShowTakeOverTaskDetailsResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ShowTakeOverTaskDetailsResponse. + + + :param total: The total of this ShowTakeOverTaskDetailsResponse. + :type: int + """ + self._total = total + + @property + def task_id(self): + """Gets the task_id of this ShowTakeOverTaskDetailsResponse. + + + :return: The task_id of this ShowTakeOverTaskDetailsResponse. + :rtype: str + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this ShowTakeOverTaskDetailsResponse. + + + :param task_id: The task_id of this ShowTakeOverTaskDetailsResponse. + :type: str + """ + self._task_id = task_id + + @property + def task_status(self): + """Gets the task_status of this ShowTakeOverTaskDetailsResponse. + + + :return: The task_status of this ShowTakeOverTaskDetailsResponse. + :rtype: str + """ + return self._task_status + + @task_status.setter + def task_status(self, task_status): + """Sets the task_status of this ShowTakeOverTaskDetailsResponse. + + + :param task_status: The task_status of this ShowTakeOverTaskDetailsResponse. + :type: str + """ + self._task_status = task_status + + @property + def assets(self): + """Gets the assets of this ShowTakeOverTaskDetailsResponse. + + + :return: The assets of this ShowTakeOverTaskDetailsResponse. + :rtype: list[AssetDetails] + """ + return self._assets + + @assets.setter + def assets(self, assets): + """Sets the assets of this ShowTakeOverTaskDetailsResponse. + + + :param assets: The assets of this ShowTakeOverTaskDetailsResponse. + :type: list[AssetDetails] + """ + self._assets = assets + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowTakeOverTaskDetailsResponse): + 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-vod/huaweicloudsdkvod/v1/model/show_vod_statistics_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_vod_statistics_request.py new file mode 100644 index 0000000000..2fe42953df --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_vod_statistics_request.py @@ -0,0 +1,164 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ShowVodStatisticsRequest: + + + """ + 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', + 'interval': 'int' + } + + attribute_map = { + 'start_time': 'start_time', + 'end_time': 'end_time', + 'interval': 'interval' + } + + def __init__(self, start_time=None, end_time=None, interval=None): + """ShowVodStatisticsRequest - a model defined in huaweicloud sdk""" + + + + self._start_time = None + self._end_time = None + self._interval = None + self.discriminator = None + + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if interval is not None: + self.interval = interval + + @property + def start_time(self): + """Gets the start_time of this ShowVodStatisticsRequest. + + 开始时间 + + :return: The start_time of this ShowVodStatisticsRequest. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ShowVodStatisticsRequest. + + 开始时间 + + :param start_time: The start_time of this ShowVodStatisticsRequest. + :type: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ShowVodStatisticsRequest. + + 结束时间 + + :return: The end_time of this ShowVodStatisticsRequest. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ShowVodStatisticsRequest. + + 结束时间 + + :param end_time: The end_time of this ShowVodStatisticsRequest. + :type: str + """ + self._end_time = end_time + + @property + def interval(self): + """Gets the interval of this ShowVodStatisticsRequest. + + 采样间隔,单位:秒,取值说明: 时间跨度1天:1小时、4小时、8小时,分别对应3600秒、14400秒和28800秒。 时间跨度2~7天:1小时、4小时、8小时、1天,分别对应3600秒、14400秒、28800秒和86400秒。 时间跨度8~31天:4小时、8小时、1天,分别对应14400秒、28800秒和86400秒。 如果不传,默认取对应时间跨度的最小间隔。 + + :return: The interval of this ShowVodStatisticsRequest. + :rtype: int + """ + return self._interval + + @interval.setter + def interval(self, interval): + """Sets the interval of this ShowVodStatisticsRequest. + + 采样间隔,单位:秒,取值说明: 时间跨度1天:1小时、4小时、8小时,分别对应3600秒、14400秒和28800秒。 时间跨度2~7天:1小时、4小时、8小时、1天,分别对应3600秒、14400秒、28800秒和86400秒。 时间跨度8~31天:4小时、8小时、1天,分别对应14400秒、28800秒和86400秒。 如果不传,默认取对应时间跨度的最小间隔。 + + :param interval: The interval of this ShowVodStatisticsRequest. + :type: int + """ + self._interval = interval + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowVodStatisticsRequest): + 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-vod/huaweicloudsdkvod/v1/model/show_vod_statistics_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_vod_statistics_response.py new file mode 100644 index 0000000000..337c469d42 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_vod_statistics_response.py @@ -0,0 +1,162 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ShowVodStatisticsResponse(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 = { + 'start_time': 'str', + 'interval': 'int', + 'sample_data': 'list[VodSampleData]' + } + + attribute_map = { + 'start_time': 'start_time', + 'interval': 'interval', + 'sample_data': 'sample_data' + } + + def __init__(self, start_time=None, interval=None, sample_data=None): + """ShowVodStatisticsResponse - a model defined in huaweicloud sdk""" + + super(ShowVodStatisticsResponse, self).__init__() + + self._start_time = None + self._interval = None + self._sample_data = None + self.discriminator = None + + if start_time is not None: + self.start_time = start_time + if interval is not None: + self.interval = interval + if sample_data is not None: + self.sample_data = sample_data + + @property + def start_time(self): + """Gets the start_time of this ShowVodStatisticsResponse. + + 统计起始时间 + + :return: The start_time of this ShowVodStatisticsResponse. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ShowVodStatisticsResponse. + + 统计起始时间 + + :param start_time: The start_time of this ShowVodStatisticsResponse. + :type: str + """ + self._start_time = start_time + + @property + def interval(self): + """Gets the interval of this ShowVodStatisticsResponse. + + 采样时间间隔 + + :return: The interval of this ShowVodStatisticsResponse. + :rtype: int + """ + return self._interval + + @interval.setter + def interval(self, interval): + """Sets the interval of this ShowVodStatisticsResponse. + + 采样时间间隔 + + :param interval: The interval of this ShowVodStatisticsResponse. + :type: int + """ + self._interval = interval + + @property + def sample_data(self): + """Gets the sample_data of this ShowVodStatisticsResponse. + + + :return: The sample_data of this ShowVodStatisticsResponse. + :rtype: list[VodSampleData] + """ + return self._sample_data + + @sample_data.setter + def sample_data(self, sample_data): + """Sets the sample_data of this ShowVodStatisticsResponse. + + + :param sample_data: The sample_data of this ShowVodStatisticsResponse. + :type: list[VodSampleData] + """ + self._sample_data = sample_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowVodStatisticsResponse): + 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-vod/huaweicloudsdkvod/v1/model/status.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/status.py new file mode 100644 index 0000000000..91b4b8e61d --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/status.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class Status: + """ + allowed enum values + """ + + UNCREATED = "UNCREATED" + DELETED = "DELETED" + CANCELLED = "CANCELLED" + SERVER_ERROR = "SERVER_ERROR" + UPLOAD_FAILED = "UPLOAD_FAILED" + CREATING = "CREATING" + PUBLISHED = "PUBLISHED" + WAITING_TRANSCODE = "WAITING_TRANSCODE" + TRANSCODING = "TRANSCODING" + TRANSCODE_FAILED = "TRANSCODE_FAILED" + TRANSCODE_SUCCEED = "TRANSCODE_SUCCEED" + CREATED = "CREATED" + UNPUBLISHED = "UNPUBLISHED" + NO_ASSET = "NO_ASSET" + DELETING = "DELETING" + DELETE_FAILED = "DELETE_FAILED" + OBS_CREATING = "OBS_CREATING" + OBS_CREATE_FAILED = "OBS_CREATE_FAILED" + OBS_CREATE_SUCCESS = "OBS_CREATE_SUCCESS" + UNKNOW = "UNkNOW" + + """ + 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): + """Status - a 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Status): + 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-vod/huaweicloudsdkvod/v1/model/subtitle.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/subtitle.py new file mode 100644 index 0000000000..3458c9d108 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/subtitle.py @@ -0,0 +1,215 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class Subtitle: + + + """ + 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': 'int', + 'type': 'str', + 'language': 'str', + 'md5': 'str', + 'description': 'str' + } + + attribute_map = { + 'id': 'id', + 'type': 'type', + 'language': 'language', + 'md5': 'md5', + 'description': 'description' + } + + def __init__(self, id=None, type=None, language=None, md5=None, description=None): + """Subtitle - a model defined in huaweicloud sdk""" + + + + self._id = None + self._type = None + self._language = None + self._md5 = None + self._description = None + self.discriminator = None + + self.id = id + self.type = type + self.language = language + if md5 is not None: + self.md5 = md5 + if description is not None: + self.description = description + + @property + def id(self): + """Gets the id of this Subtitle. + + 字幕文件id
+ + :return: The id of this Subtitle. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Subtitle. + + 字幕文件id
+ + :param id: The id of this Subtitle. + :type: int + """ + self._id = id + + @property + def type(self): + """Gets the type of this Subtitle. + + 字幕文件类型
+ + :return: The type of this Subtitle. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this Subtitle. + + 字幕文件类型
+ + :param type: The type of this Subtitle. + :type: str + """ + self._type = type + + @property + def language(self): + """Gets the language of this Subtitle. + + 字幕文件语音种类
+ + :return: The language of this Subtitle. + :rtype: str + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this Subtitle. + + 字幕文件语音种类
+ + :param language: The language of this Subtitle. + :type: str + """ + self._language = language + + @property + def md5(self): + """Gets the md5 of this Subtitle. + + 字幕文件md5值
+ + :return: The md5 of this Subtitle. + :rtype: str + """ + return self._md5 + + @md5.setter + def md5(self, md5): + """Sets the md5 of this Subtitle. + + 字幕文件md5值
+ + :param md5: The md5 of this Subtitle. + :type: str + """ + self._md5 = md5 + + @property + def description(self): + """Gets the description of this Subtitle. + + 字幕文件描述
+ + :return: The description of this Subtitle. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this Subtitle. + + 字幕文件描述
+ + :param description: The description of this Subtitle. + :type: 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Subtitle): + 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-vod/huaweicloudsdkvod/v1/model/subtitle_info.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/subtitle_info.py new file mode 100644 index 0000000000..89d9049031 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/subtitle_info.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class SubtitleInfo: + + + """ + 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 = { + 'url': 'str', + 'id': 'int', + 'type': 'str', + 'language': 'str' + } + + attribute_map = { + 'url': 'url', + 'id': 'id', + 'type': 'type', + 'language': 'language' + } + + def __init__(self, url=None, id=None, type=None, language=None): + """SubtitleInfo - a model defined in huaweicloud sdk""" + + + + self._url = None + self._id = None + self._type = None + self._language = None + self.discriminator = None + + if url is not None: + self.url = url + if id is not None: + self.id = id + if type is not None: + self.type = type + if language is not None: + self.language = language + + @property + def url(self): + """Gets the url of this SubtitleInfo. + + 字幕文件的下载地址
+ + :return: The url of this SubtitleInfo. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this SubtitleInfo. + + 字幕文件的下载地址
+ + :param url: The url of this SubtitleInfo. + :type: str + """ + self._url = url + + @property + def id(self): + """Gets the id of this SubtitleInfo. + + 字幕文件id
+ + :return: The id of this SubtitleInfo. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this SubtitleInfo. + + 字幕文件id
+ + :param id: The id of this SubtitleInfo. + :type: int + """ + self._id = id + + @property + def type(self): + """Gets the type of this SubtitleInfo. + + 字幕文件类型
+ + :return: The type of this SubtitleInfo. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this SubtitleInfo. + + 字幕文件类型
+ + :param type: The type of this SubtitleInfo. + :type: str + """ + self._type = type + + @property + def language(self): + """Gets the language of this SubtitleInfo. + + 字幕文件语言种类
+ + :return: The language of this SubtitleInfo. + :rtype: str + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this SubtitleInfo. + + 字幕文件语言种类
+ + :param language: The language of this SubtitleInfo. + :type: str + """ + self._language = 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SubtitleInfo): + 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-vod/huaweicloudsdkvod/v1/model/take_over_task.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/take_over_task.py new file mode 100644 index 0000000000..a8c62dbacb --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/take_over_task.py @@ -0,0 +1,403 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class TakeOverTask: + + + """ + 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 = { + 'bucket': 'str', + 'object': 'str', + 'host_type': 'int', + 'output_bucket': 'str', + 'output_path': 'str', + 'task_id': 'str', + 'suffix': 'list[str]', + 'template_group_name': 'str', + 'create_time': 'str', + 'end_time': 'str', + 'status': 'str', + 'exec_desc': 'str' + } + + attribute_map = { + 'bucket': 'bucket', + 'object': 'object', + 'host_type': 'host_type', + 'output_bucket': 'output_bucket', + 'output_path': 'output_path', + 'task_id': 'task_id', + 'suffix': 'suffix', + 'template_group_name': 'template_group_name', + 'create_time': 'create_time', + 'end_time': 'end_time', + 'status': 'status', + 'exec_desc': 'exec_desc' + } + + def __init__(self, bucket=None, object=None, host_type=None, output_bucket=None, output_path=None, task_id=None, suffix=None, template_group_name=None, create_time=None, end_time=None, status=None, exec_desc=None): + """TakeOverTask - a model defined in huaweicloud sdk""" + + + + self._bucket = None + self._object = None + self._host_type = None + self._output_bucket = None + self._output_path = None + self._task_id = None + self._suffix = None + self._template_group_name = None + self._create_time = None + self._end_time = None + self._status = None + self._exec_desc = None + self.discriminator = None + + if bucket is not None: + self.bucket = bucket + if object is not None: + self.object = object + if host_type is not None: + self.host_type = host_type + if output_bucket is not None: + self.output_bucket = output_bucket + if output_path is not None: + self.output_path = output_path + if task_id is not None: + self.task_id = task_id + if suffix is not None: + self.suffix = suffix + if template_group_name is not None: + self.template_group_name = template_group_name + if create_time is not None: + self.create_time = create_time + if end_time is not None: + self.end_time = end_time + if status is not None: + self.status = status + if exec_desc is not None: + self.exec_desc = exec_desc + + @property + def bucket(self): + """Gets the bucket of this TakeOverTask. + + 桶
+ + :return: The bucket of this TakeOverTask. + :rtype: str + """ + return self._bucket + + @bucket.setter + def bucket(self, bucket): + """Sets the bucket of this TakeOverTask. + + 桶
+ + :param bucket: The bucket of this TakeOverTask. + :type: str + """ + self._bucket = bucket + + @property + def object(self): + """Gets the object of this TakeOverTask. + + 目录 + + :return: The object of this TakeOverTask. + :rtype: str + """ + return self._object + + @object.setter + def object(self, object): + """Sets the object of this TakeOverTask. + + 目录 + + :param object: The object of this TakeOverTask. + :type: str + """ + self._object = object + + @property + def host_type(self): + """Gets the host_type of this TakeOverTask. + + 托管类型:0表示存储到点播桶 1表示存储在租户桶 2表示存储到租户桶,并且源文件名跟随
+ + :return: The host_type of this TakeOverTask. + :rtype: int + """ + return self._host_type + + @host_type.setter + def host_type(self, host_type): + """Sets the host_type of this TakeOverTask. + + 托管类型:0表示存储到点播桶 1表示存储在租户桶 2表示存储到租户桶,并且源文件名跟随
+ + :param host_type: The host_type of this TakeOverTask. + :type: int + """ + self._host_type = host_type + + @property + def output_bucket(self): + """Gets the output_bucket of this TakeOverTask. + + 输出桶
+ + :return: The output_bucket of this TakeOverTask. + :rtype: str + """ + return self._output_bucket + + @output_bucket.setter + def output_bucket(self, output_bucket): + """Sets the output_bucket of this TakeOverTask. + + 输出桶
+ + :param output_bucket: The output_bucket of this TakeOverTask. + :type: str + """ + self._output_bucket = output_bucket + + @property + def output_path(self): + """Gets the output_path of this TakeOverTask. + + 输出路径
+ + :return: The output_path of this TakeOverTask. + :rtype: str + """ + return self._output_path + + @output_path.setter + def output_path(self, output_path): + """Sets the output_path of this TakeOverTask. + + 输出路径
+ + :param output_path: The output_path of this TakeOverTask. + :type: str + """ + self._output_path = output_path + + @property + def task_id(self): + """Gets the task_id of this TakeOverTask. + + 任务ID
+ + :return: The task_id of this TakeOverTask. + :rtype: str + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this TakeOverTask. + + 任务ID
+ + :param task_id: The task_id of this TakeOverTask. + :type: str + """ + self._task_id = task_id + + @property + def suffix(self): + """Gets the suffix of this TakeOverTask. + + + :return: The suffix of this TakeOverTask. + :rtype: list[str] + """ + return self._suffix + + @suffix.setter + def suffix(self, suffix): + """Sets the suffix of this TakeOverTask. + + + :param suffix: The suffix of this TakeOverTask. + :type: list[str] + """ + self._suffix = suffix + + @property + def template_group_name(self): + """Gets the template_group_name of this TakeOverTask. + + 转码模板组
+ + :return: The template_group_name of this TakeOverTask. + :rtype: str + """ + return self._template_group_name + + @template_group_name.setter + def template_group_name(self, template_group_name): + """Sets the template_group_name of this TakeOverTask. + + 转码模板组
+ + :param template_group_name: The template_group_name of this TakeOverTask. + :type: str + """ + self._template_group_name = template_group_name + + @property + def create_time(self): + """Gets the create_time of this TakeOverTask. + + 创建时间
+ + :return: The create_time of this TakeOverTask. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this TakeOverTask. + + 创建时间
+ + :param create_time: The create_time of this TakeOverTask. + :type: str + """ + self._create_time = create_time + + @property + def end_time(self): + """Gets the end_time of this TakeOverTask. + + 结束时间
+ + :return: The end_time of this TakeOverTask. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this TakeOverTask. + + 结束时间
+ + :param end_time: The end_time of this TakeOverTask. + :type: str + """ + self._end_time = end_time + + @property + def status(self): + """Gets the status of this TakeOverTask. + + + :return: The status of this TakeOverTask. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this TakeOverTask. + + + :param status: The status of this TakeOverTask. + :type: str + """ + self._status = status + + @property + def exec_desc(self): + """Gets the exec_desc of this TakeOverTask. + + 媒资的任务执行描述汇总。 + + :return: The exec_desc of this TakeOverTask. + :rtype: str + """ + return self._exec_desc + + @exec_desc.setter + def exec_desc(self, exec_desc): + """Sets the exec_desc of this TakeOverTask. + + 媒资的任务执行描述汇总。 + + :param exec_desc: The exec_desc of this TakeOverTask. + :type: str + """ + self._exec_desc = exec_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TakeOverTask): + 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-vod/huaweicloudsdkvod/v1/model/template_group.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/template_group.py new file mode 100644 index 0000000000..f5927eb9b1 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/template_group.py @@ -0,0 +1,324 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class TemplateGroup: + + + """ + 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 = { + 'group_id': 'str', + 'name': 'str', + 'status': 'str', + 'type': 'str', + 'auto_encrypt': 'int', + 'quality_info_list': 'list[QualityInfo]', + 'watermark_template_ids': 'list[str]', + 'description': 'str', + 'common': 'Common' + } + + attribute_map = { + 'group_id': 'group_id', + 'name': 'name', + 'status': 'status', + 'type': 'type', + 'auto_encrypt': 'auto_encrypt', + 'quality_info_list': 'quality_info_list', + 'watermark_template_ids': 'watermark_template_ids', + 'description': 'description', + 'common': 'common' + } + + def __init__(self, group_id=None, name=None, status=None, type=None, auto_encrypt=None, quality_info_list=None, watermark_template_ids=None, description=None, common=None): + """TemplateGroup - a model defined in huaweicloud sdk""" + + + + self._group_id = None + self._name = None + self._status = None + self._type = None + self._auto_encrypt = None + self._quality_info_list = None + self._watermark_template_ids = None + self._description = None + self._common = None + self.discriminator = None + + if group_id is not None: + self.group_id = group_id + if name is not None: + self.name = name + if status is not None: + self.status = status + if type is not None: + self.type = type + if auto_encrypt is not None: + self.auto_encrypt = auto_encrypt + if quality_info_list is not None: + self.quality_info_list = quality_info_list + if watermark_template_ids is not None: + self.watermark_template_ids = watermark_template_ids + if description is not None: + self.description = description + if common is not None: + self.common = common + + @property + def group_id(self): + """Gets the group_id of this TemplateGroup. + + 模板组id
+ + :return: The group_id of this TemplateGroup. + :rtype: str + """ + return self._group_id + + @group_id.setter + def group_id(self, group_id): + """Sets the group_id of this TemplateGroup. + + 模板组id
+ + :param group_id: The group_id of this TemplateGroup. + :type: str + """ + self._group_id = group_id + + @property + def name(self): + """Gets the name of this TemplateGroup. + + 模板组名称
+ + :return: The name of this TemplateGroup. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this TemplateGroup. + + 模板组名称
+ + :param name: The name of this TemplateGroup. + :type: str + """ + self._name = name + + @property + def status(self): + """Gets the status of this TemplateGroup. + + 是否默认
+ + :return: The status of this TemplateGroup. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this TemplateGroup. + + 是否默认
+ + :param status: The status of this TemplateGroup. + :type: str + """ + self._status = status + + @property + def type(self): + """Gets the type of this TemplateGroup. + + 模板组类型
+ + :return: The type of this TemplateGroup. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this TemplateGroup. + + 模板组类型
+ + :param type: The type of this TemplateGroup. + :type: str + """ + self._type = type + + @property + def auto_encrypt(self): + """Gets the auto_encrypt of this TemplateGroup. + + 是否自动加密 + + :return: The auto_encrypt of this TemplateGroup. + :rtype: int + """ + return self._auto_encrypt + + @auto_encrypt.setter + def auto_encrypt(self, auto_encrypt): + """Sets the auto_encrypt of this TemplateGroup. + + 是否自动加密 + + :param auto_encrypt: The auto_encrypt of this TemplateGroup. + :type: int + """ + self._auto_encrypt = auto_encrypt + + @property + def quality_info_list(self): + """Gets the quality_info_list of this TemplateGroup. + + 画质配置信息列表
+ + :return: The quality_info_list of this TemplateGroup. + :rtype: list[QualityInfo] + """ + return self._quality_info_list + + @quality_info_list.setter + def quality_info_list(self, quality_info_list): + """Sets the quality_info_list of this TemplateGroup. + + 画质配置信息列表
+ + :param quality_info_list: The quality_info_list of this TemplateGroup. + :type: list[QualityInfo] + """ + self._quality_info_list = quality_info_list + + @property + def watermark_template_ids(self): + """Gets the watermark_template_ids of this TemplateGroup. + + 绑定的水印模板组ID数组
+ + :return: The watermark_template_ids of this TemplateGroup. + :rtype: list[str] + """ + return self._watermark_template_ids + + @watermark_template_ids.setter + def watermark_template_ids(self, watermark_template_ids): + """Sets the watermark_template_ids of this TemplateGroup. + + 绑定的水印模板组ID数组
+ + :param watermark_template_ids: The watermark_template_ids of this TemplateGroup. + :type: list[str] + """ + self._watermark_template_ids = watermark_template_ids + + @property + def description(self): + """Gets the description of this TemplateGroup. + + 模板介绍
+ + :return: The description of this TemplateGroup. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this TemplateGroup. + + 模板介绍
+ + :param description: The description of this TemplateGroup. + :type: str + """ + self._description = description + + @property + def common(self): + """Gets the common of this TemplateGroup. + + + :return: The common of this TemplateGroup. + :rtype: Common + """ + return self._common + + @common.setter + def common(self, common): + """Sets the common of this TemplateGroup. + + + :param common: The common of this TemplateGroup. + :type: Common + """ + self._common = common + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TemplateGroup): + 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-vod/huaweicloudsdkvod/v1/model/text_review_ret.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/text_review_ret.py new file mode 100644 index 0000000000..90dea88efe --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/text_review_ret.py @@ -0,0 +1,190 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class TextReviewRet: + + + """ + 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 = { + 'suggestion': 'str', + 'politics': 'str', + 'porn': 'str', + 'abuse': 'str' + } + + attribute_map = { + 'suggestion': 'suggestion', + 'politics': 'politics', + 'porn': 'porn', + 'abuse': 'abuse' + } + + def __init__(self, suggestion=None, politics=None, porn=None, abuse=None): + """TextReviewRet - a model defined in huaweicloud sdk""" + + + + self._suggestion = None + self._politics = None + self._porn = None + self._abuse = None + self.discriminator = None + + self.suggestion = suggestion + if politics is not None: + self.politics = politics + if porn is not None: + self.porn = porn + if abuse is not None: + self.abuse = abuse + + @property + def suggestion(self): + """Gets the suggestion of this TextReviewRet. + + 检测结果是否通过。 block:包含敏感信息,不通过。 pass:不包含敏感信息,通过。 review:需要人工复查。 + + :return: The suggestion of this TextReviewRet. + :rtype: str + """ + return self._suggestion + + @suggestion.setter + def suggestion(self, suggestion): + """Sets the suggestion of this TextReviewRet. + + 检测结果是否通过。 block:包含敏感信息,不通过。 pass:不包含敏感信息,通过。 review:需要人工复查。 + + :param suggestion: The suggestion of this TextReviewRet. + :type: str + """ + self._suggestion = suggestion + + @property + def politics(self): + """Gets the politics of this TextReviewRet. + + 涉政敏感词列表 + + :return: The politics of this TextReviewRet. + :rtype: str + """ + return self._politics + + @politics.setter + def politics(self, politics): + """Sets the politics of this TextReviewRet. + + 涉政敏感词列表 + + :param politics: The politics of this TextReviewRet. + :type: str + """ + self._politics = politics + + @property + def porn(self): + """Gets the porn of this TextReviewRet. + + 涉黄敏感词列表 + + :return: The porn of this TextReviewRet. + :rtype: str + """ + return self._porn + + @porn.setter + def porn(self, porn): + """Sets the porn of this TextReviewRet. + + 涉黄敏感词列表 + + :param porn: The porn of this TextReviewRet. + :type: str + """ + self._porn = porn + + @property + def abuse(self): + """Gets the abuse of this TextReviewRet. + + 辱骂敏感词列表 + + :return: The abuse of this TextReviewRet. + :rtype: str + """ + return self._abuse + + @abuse.setter + def abuse(self, abuse): + """Sets the abuse of this TextReviewRet. + + 辱骂敏感词列表 + + :param abuse: The abuse of this TextReviewRet. + :type: str + """ + self._abuse = abuse + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TextReviewRet): + 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-vod/huaweicloudsdkvod/v1/model/thumbnail.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/thumbnail.py new file mode 100644 index 0000000000..51b6b68dca --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/thumbnail.py @@ -0,0 +1,298 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class Thumbnail: + + + """ + 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', + 'percent': 'int', + 'time': 'int', + 'dots': 'list[int]', + 'cover_position': 'int', + 'format': 'int', + 'aspect_ratio': 'int', + 'max_length': 'int' + } + + attribute_map = { + 'type': 'type', + 'percent': 'percent', + 'time': 'time', + 'dots': 'dots', + 'cover_position': 'cover_position', + 'format': 'format', + 'aspect_ratio': 'aspect_ratio', + 'max_length': 'max_length' + } + + def __init__(self, type=None, percent=None, time=None, dots=None, cover_position=None, format=None, aspect_ratio=None, max_length=None): + """Thumbnail - a model defined in huaweicloud sdk""" + + + + self._type = None + self._percent = None + self._time = None + self._dots = None + self._cover_position = None + self._format = None + self._aspect_ratio = None + self._max_length = None + self.discriminator = None + + self.type = type + if percent is not None: + self.percent = percent + if time is not None: + self.time = time + if dots is not None: + self.dots = dots + if cover_position is not None: + self.cover_position = cover_position + if format is not None: + self.format = format + if aspect_ratio is not None: + self.aspect_ratio = aspect_ratio + if max_length is not None: + self.max_length = max_length + + @property + def type(self): + """Gets the type of this Thumbnail. + + 采样类型。支持三种采样方式(当前只支持“time”): “percent”:根据视频时长的百分比间隔采样 “time”:根据时间间隔采样 “dots” : 指定时间点截图 + + :return: The type of this Thumbnail. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this Thumbnail. + + 采样类型。支持三种采样方式(当前只支持“time”): “percent”:根据视频时长的百分比间隔采样 “time”:根据时间间隔采样 “dots” : 指定时间点截图 + + :param type: The type of this Thumbnail. + :type: str + """ + self._type = type + + @property + def percent(self): + """Gets the percent of this Thumbnail. + + 根据视频时长百分比间隔采样时的百分比值 + + :return: The percent of this Thumbnail. + :rtype: int + """ + return self._percent + + @percent.setter + def percent(self, percent): + """Sets the percent of this Thumbnail. + + 根据视频时长百分比间隔采样时的百分比值 + + :param percent: The percent of this Thumbnail. + :type: int + """ + self._percent = percent + + @property + def time(self): + """Gets the time of this Thumbnail. + + 根据时间间隔采样时的时间间隔值 + + :return: The time of this Thumbnail. + :rtype: int + """ + return self._time + + @time.setter + def time(self, time): + """Sets the time of this Thumbnail. + + 根据时间间隔采样时的时间间隔值 + + :param time: The time of this Thumbnail. + :type: int + """ + self._time = time + + @property + def dots(self): + """Gets the dots of this Thumbnail. + + 指定时间截图时的时间点数组 + + :return: The dots of this Thumbnail. + :rtype: list[int] + """ + return self._dots + + @dots.setter + def dots(self, dots): + """Sets the dots of this Thumbnail. + + 指定时间截图时的时间点数组 + + :param dots: The dots of this Thumbnail. + :type: list[int] + """ + self._dots = dots + + @property + def cover_position(self): + """Gets the cover_position of this Thumbnail. + + 该值表示指定第几张截图作为封面(从1开始) + + :return: The cover_position of this Thumbnail. + :rtype: int + """ + return self._cover_position + + @cover_position.setter + def cover_position(self, cover_position): + """Sets the cover_position of this Thumbnail. + + 该值表示指定第几张截图作为封面(从1开始) + + :param cover_position: The cover_position of this Thumbnail. + :type: int + """ + self._cover_position = cover_position + + @property + def format(self): + """Gets the format of this Thumbnail. + + 截图文件格式,枚举值(jpg,png,webP)。当前只支持jpg。1 : jpg。 + + :return: The format of this Thumbnail. + :rtype: int + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this Thumbnail. + + 截图文件格式,枚举值(jpg,png,webP)。当前只支持jpg。1 : jpg。 + + :param format: The format of this Thumbnail. + :type: int + """ + self._format = format + + @property + def aspect_ratio(self): + """Gets the aspect_ratio of this Thumbnail. + + 纵横比(保留,图像缩放方式)。0:自适应(保持原有宽高比)。1:16:9 + + :return: The aspect_ratio of this Thumbnail. + :rtype: int + """ + return self._aspect_ratio + + @aspect_ratio.setter + def aspect_ratio(self, aspect_ratio): + """Sets the aspect_ratio of this Thumbnail. + + 纵横比(保留,图像缩放方式)。0:自适应(保持原有宽高比)。1:16:9 + + :param aspect_ratio: The aspect_ratio of this Thumbnail. + :type: int + """ + self._aspect_ratio = aspect_ratio + + @property + def max_length(self): + """Gets the max_length of this Thumbnail. + + 截图最长边的尺寸(单位:像素)(宽边尺寸按照该尺寸与原始视频像素等比缩放计算) + + :return: The max_length of this Thumbnail. + :rtype: int + """ + return self._max_length + + @max_length.setter + def max_length(self, max_length): + """Sets the max_length of this Thumbnail. + + 截图最长边的尺寸(单位:像素)(宽边尺寸按照该尺寸与原始视频像素等比缩放计算) + + :param max_length: The max_length of this Thumbnail. + :type: int + """ + self._max_length = max_length + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Thumbnail): + 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-vod/huaweicloudsdkvod/v1/model/thumbnail_info.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/thumbnail_info.py new file mode 100644 index 0000000000..f0778da236 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/thumbnail_info.py @@ -0,0 +1,183 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ThumbnailInfo: + + + """ + 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 = { + 'sample': 'list[ThumbnailRsp]', + 'dots': 'list[ThumbnailRsp]', + 'exec_desc': 'str', + 'thumbnail_status': 'str' + } + + attribute_map = { + 'sample': 'sample', + 'dots': 'dots', + 'exec_desc': 'exec_desc', + 'thumbnail_status': 'thumbnail_status' + } + + def __init__(self, sample=None, dots=None, exec_desc=None, thumbnail_status=None): + """ThumbnailInfo - a model defined in huaweicloud sdk""" + + + + self._sample = None + self._dots = None + self._exec_desc = None + self._thumbnail_status = None + self.discriminator = None + + if sample is not None: + self.sample = sample + if dots is not None: + self.dots = dots + if exec_desc is not None: + self.exec_desc = exec_desc + if thumbnail_status is not None: + self.thumbnail_status = thumbnail_status + + @property + def sample(self): + """Gets the sample of this ThumbnailInfo. + + + :return: The sample of this ThumbnailInfo. + :rtype: list[ThumbnailRsp] + """ + return self._sample + + @sample.setter + def sample(self, sample): + """Sets the sample of this ThumbnailInfo. + + + :param sample: The sample of this ThumbnailInfo. + :type: list[ThumbnailRsp] + """ + self._sample = sample + + @property + def dots(self): + """Gets the dots of this ThumbnailInfo. + + + :return: The dots of this ThumbnailInfo. + :rtype: list[ThumbnailRsp] + """ + return self._dots + + @dots.setter + def dots(self, dots): + """Sets the dots of this ThumbnailInfo. + + + :param dots: The dots of this ThumbnailInfo. + :type: list[ThumbnailRsp] + """ + self._dots = dots + + @property + def exec_desc(self): + """Gets the exec_desc of this ThumbnailInfo. + + + :return: The exec_desc of this ThumbnailInfo. + :rtype: str + """ + return self._exec_desc + + @exec_desc.setter + def exec_desc(self, exec_desc): + """Sets the exec_desc of this ThumbnailInfo. + + + :param exec_desc: The exec_desc of this ThumbnailInfo. + :type: str + """ + self._exec_desc = exec_desc + + @property + def thumbnail_status(self): + """Gets the thumbnail_status of this ThumbnailInfo. + + + :return: The thumbnail_status of this ThumbnailInfo. + :rtype: str + """ + return self._thumbnail_status + + @thumbnail_status.setter + def thumbnail_status(self, thumbnail_status): + """Sets the thumbnail_status of this ThumbnailInfo. + + + :param thumbnail_status: The thumbnail_status of this ThumbnailInfo. + :type: str + """ + self._thumbnail_status = thumbnail_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ThumbnailInfo): + 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-vod/huaweicloudsdkvod/v1/model/thumbnail_rsp.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/thumbnail_rsp.py new file mode 100644 index 0000000000..58d02a8a04 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/thumbnail_rsp.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ThumbnailRsp: + + + """ + 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 = { + 'offset': 'int', + 'url': 'str' + } + + attribute_map = { + 'offset': 'offset', + 'url': 'url' + } + + def __init__(self, offset=None, url=None): + """ThumbnailRsp - a model defined in huaweicloud sdk""" + + + + self._offset = None + self._url = None + self.discriminator = None + + self.offset = offset + self.url = url + + @property + def offset(self): + """Gets the offset of this ThumbnailRsp. + + 截图在视频中的时间偏移,单位为秒。 + + :return: The offset of this ThumbnailRsp. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ThumbnailRsp. + + 截图在视频中的时间偏移,单位为秒。 + + :param offset: The offset of this ThumbnailRsp. + :type: int + """ + self._offset = offset + + @property + def url(self): + """Gets the url of this ThumbnailRsp. + + 截图访问URL + + :return: The url of this ThumbnailRsp. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this ThumbnailRsp. + + 截图访问URL + + :param url: The url of this ThumbnailRsp. + :type: str + """ + self._url = url + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ThumbnailRsp): + 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-vod/huaweicloudsdkvod/v1/model/top_url.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/top_url.py new file mode 100644 index 0000000000..cde5e08c74 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/top_url.py @@ -0,0 +1,218 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class TopUrl: + + + """ + 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 = { + 'value': 'int', + 'asset_id': 'str', + 'title': 'str', + 'duration': 'int', + 'size': 'int' + } + + attribute_map = { + 'value': 'value', + 'asset_id': 'asset_id', + 'title': 'title', + 'duration': 'duration', + 'size': 'size' + } + + def __init__(self, value=None, asset_id=None, title=None, duration=None, size=None): + """TopUrl - a model defined in huaweicloud sdk""" + + + + self._value = None + self._asset_id = None + self._title = None + self._duration = None + self._size = None + self.discriminator = None + + if value is not None: + self.value = value + if asset_id is not None: + self.asset_id = asset_id + if title is not None: + self.title = title + if duration is not None: + self.duration = duration + if size is not None: + self.size = size + + @property + def value(self): + """Gets the value of this TopUrl. + + 总播放次数 + + :return: The value of this TopUrl. + :rtype: int + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this TopUrl. + + 总播放次数 + + :param value: The value of this TopUrl. + :type: int + """ + self._value = value + + @property + def asset_id(self): + """Gets the asset_id of this TopUrl. + + 媒资ID + + :return: The asset_id of this TopUrl. + :rtype: str + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this TopUrl. + + 媒资ID + + :param asset_id: The asset_id of this TopUrl. + :type: str + """ + self._asset_id = asset_id + + @property + def title(self): + """Gets the title of this TopUrl. + + 媒资名称 + + :return: The title of this TopUrl. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this TopUrl. + + 媒资名称 + + :param title: The title of this TopUrl. + :type: str + """ + self._title = title + + @property + def duration(self): + """Gets the duration of this TopUrl. + + 媒资时长,单位为秒 + + :return: The duration of this TopUrl. + :rtype: int + """ + return self._duration + + @duration.setter + def duration(self, duration): + """Sets the duration of this TopUrl. + + 媒资时长,单位为秒 + + :param duration: The duration of this TopUrl. + :type: int + """ + self._duration = duration + + @property + def size(self): + """Gets the size of this TopUrl. + + 媒资原始视频大小,单位为字节 + + :return: The size of this TopUrl. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this TopUrl. + + 媒资原始视频大小,单位为字节 + + :param size: The size of this TopUrl. + :type: int + """ + self._size = size + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TopUrl): + 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-vod/huaweicloudsdkvod/v1/model/trans_template_group.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/trans_template_group.py new file mode 100644 index 0000000000..108aa4923b --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/trans_template_group.py @@ -0,0 +1,297 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class TransTemplateGroup: + + + """ + 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', + 'status': 'str', + 'type': 'str', + 'auto_encrypt': 'int', + 'quality_info_list': 'list[QualityInfo]', + 'common': 'Common', + 'watermark_template_ids': 'list[str]', + 'description': 'str' + } + + attribute_map = { + 'name': 'name', + 'status': 'status', + 'type': 'type', + 'auto_encrypt': 'auto_encrypt', + 'quality_info_list': 'quality_info_list', + 'common': 'common', + 'watermark_template_ids': 'watermark_template_ids', + 'description': 'description' + } + + def __init__(self, name=None, status=None, type=None, auto_encrypt=None, quality_info_list=None, common=None, watermark_template_ids=None, description=None): + """TransTemplateGroup - a model defined in huaweicloud sdk""" + + + + self._name = None + self._status = None + self._type = None + self._auto_encrypt = None + self._quality_info_list = None + self._common = None + self._watermark_template_ids = None + self._description = None + self.discriminator = None + + if name is not None: + self.name = name + if status is not None: + self.status = status + if type is not None: + self.type = type + if auto_encrypt is not None: + self.auto_encrypt = auto_encrypt + if quality_info_list is not None: + self.quality_info_list = quality_info_list + if common is not None: + self.common = common + if watermark_template_ids is not None: + self.watermark_template_ids = watermark_template_ids + if description is not None: + self.description = description + + @property + def name(self): + """Gets the name of this TransTemplateGroup. + + 模板组名称
+ + :return: The name of this TransTemplateGroup. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this TransTemplateGroup. + + 模板组名称
+ + :param name: The name of this TransTemplateGroup. + :type: str + """ + self._name = name + + @property + def status(self): + """Gets the status of this TransTemplateGroup. + + 是否设置默认
+ + :return: The status of this TransTemplateGroup. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this TransTemplateGroup. + + 是否设置默认
+ + :param status: The status of this TransTemplateGroup. + :type: str + """ + self._status = status + + @property + def type(self): + """Gets the type of this TransTemplateGroup. + + 模板组类型
+ + :return: The type of this TransTemplateGroup. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this TransTemplateGroup. + + 模板组类型
+ + :param type: The type of this TransTemplateGroup. + :type: str + """ + self._type = type + + @property + def auto_encrypt(self): + """Gets the auto_encrypt of this TransTemplateGroup. + + 是否自动加密 + + :return: The auto_encrypt of this TransTemplateGroup. + :rtype: int + """ + return self._auto_encrypt + + @auto_encrypt.setter + def auto_encrypt(self, auto_encrypt): + """Sets the auto_encrypt of this TransTemplateGroup. + + 是否自动加密 + + :param auto_encrypt: The auto_encrypt of this TransTemplateGroup. + :type: int + """ + self._auto_encrypt = auto_encrypt + + @property + def quality_info_list(self): + """Gets the quality_info_list of this TransTemplateGroup. + + 画质配置信息列表
+ + :return: The quality_info_list of this TransTemplateGroup. + :rtype: list[QualityInfo] + """ + return self._quality_info_list + + @quality_info_list.setter + def quality_info_list(self, quality_info_list): + """Sets the quality_info_list of this TransTemplateGroup. + + 画质配置信息列表
+ + :param quality_info_list: The quality_info_list of this TransTemplateGroup. + :type: list[QualityInfo] + """ + self._quality_info_list = quality_info_list + + @property + def common(self): + """Gets the common of this TransTemplateGroup. + + + :return: The common of this TransTemplateGroup. + :rtype: Common + """ + return self._common + + @common.setter + def common(self, common): + """Sets the common of this TransTemplateGroup. + + + :param common: The common of this TransTemplateGroup. + :type: Common + """ + self._common = common + + @property + def watermark_template_ids(self): + """Gets the watermark_template_ids of this TransTemplateGroup. + + 绑定的水印模板组ID数组
+ + :return: The watermark_template_ids of this TransTemplateGroup. + :rtype: list[str] + """ + return self._watermark_template_ids + + @watermark_template_ids.setter + def watermark_template_ids(self, watermark_template_ids): + """Sets the watermark_template_ids of this TransTemplateGroup. + + 绑定的水印模板组ID数组
+ + :param watermark_template_ids: The watermark_template_ids of this TransTemplateGroup. + :type: list[str] + """ + self._watermark_template_ids = watermark_template_ids + + @property + def description(self): + """Gets the description of this TransTemplateGroup. + + 模板介绍
+ + :return: The description of this TransTemplateGroup. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this TransTemplateGroup. + + 模板介绍
+ + :param description: The description of this TransTemplateGroup. + :type: 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TransTemplateGroup): + 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-vod/huaweicloudsdkvod/v1/model/transcode_info.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/transcode_info.py new file mode 100644 index 0000000000..645659e0bb --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/transcode_info.py @@ -0,0 +1,183 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class TranscodeInfo: + + + """ + 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 = { + 'template_group_name': 'str', + 'output': 'list[Output]', + 'exec_desc': 'str', + 'transcode_status': 'str' + } + + attribute_map = { + 'template_group_name': 'template_group_name', + 'output': 'output', + 'exec_desc': 'exec_desc', + 'transcode_status': 'transcode_status' + } + + def __init__(self, template_group_name=None, output=None, exec_desc=None, transcode_status=None): + """TranscodeInfo - a model defined in huaweicloud sdk""" + + + + self._template_group_name = None + self._output = None + self._exec_desc = None + self._transcode_status = None + self.discriminator = None + + self.template_group_name = template_group_name + self.output = output + if exec_desc is not None: + self.exec_desc = exec_desc + if transcode_status is not None: + self.transcode_status = transcode_status + + @property + def template_group_name(self): + """Gets the template_group_name of this TranscodeInfo. + + 转码模板组名称 + + :return: The template_group_name of this TranscodeInfo. + :rtype: str + """ + return self._template_group_name + + @template_group_name.setter + def template_group_name(self, template_group_name): + """Sets the template_group_name of this TranscodeInfo. + + 转码模板组名称 + + :param template_group_name: The template_group_name of this TranscodeInfo. + :type: str + """ + self._template_group_name = template_group_name + + @property + def output(self): + """Gets the output of this TranscodeInfo. + + + :return: The output of this TranscodeInfo. + :rtype: list[Output] + """ + return self._output + + @output.setter + def output(self, output): + """Sets the output of this TranscodeInfo. + + + :param output: The output of this TranscodeInfo. + :type: list[Output] + """ + self._output = output + + @property + def exec_desc(self): + """Gets the exec_desc of this TranscodeInfo. + + + :return: The exec_desc of this TranscodeInfo. + :rtype: str + """ + return self._exec_desc + + @exec_desc.setter + def exec_desc(self, exec_desc): + """Sets the exec_desc of this TranscodeInfo. + + + :param exec_desc: The exec_desc of this TranscodeInfo. + :type: str + """ + self._exec_desc = exec_desc + + @property + def transcode_status(self): + """Gets the transcode_status of this TranscodeInfo. + + + :return: The transcode_status of this TranscodeInfo. + :rtype: str + """ + return self._transcode_status + + @transcode_status.setter + def transcode_status(self, transcode_status): + """Sets the transcode_status of this TranscodeInfo. + + + :param transcode_status: The transcode_status of this TranscodeInfo. + :type: str + """ + self._transcode_status = transcode_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TranscodeInfo): + 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-vod/huaweicloudsdkvod/v1/model/unpublish_assets_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/unpublish_assets_request.py new file mode 100644 index 0000000000..efa4270b0c --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/unpublish_assets_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UnpublishAssetsRequest: + + + """ + 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': 'PublishAssetReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """UnpublishAssetsRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this UnpublishAssetsRequest. + + + :return: The body of this UnpublishAssetsRequest. + :rtype: PublishAssetReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UnpublishAssetsRequest. + + + :param body: The body of this UnpublishAssetsRequest. + :type: PublishAssetReq + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UnpublishAssetsRequest): + 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-vod/huaweicloudsdkvod/v1/model/unpublish_assets_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/unpublish_assets_response.py new file mode 100644 index 0000000000..d8d7303c02 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/unpublish_assets_response.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class UnpublishAssetsResponse(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 = { + 'asset_info_array': 'list[AssetInfo]' + } + + attribute_map = { + 'asset_info_array': 'asset_info_array' + } + + def __init__(self, asset_info_array=None): + """UnpublishAssetsResponse - a model defined in huaweicloud sdk""" + + super(UnpublishAssetsResponse, self).__init__() + + self._asset_info_array = None + self.discriminator = None + + if asset_info_array is not None: + self.asset_info_array = asset_info_array + + @property + def asset_info_array(self): + """Gets the asset_info_array of this UnpublishAssetsResponse. + + + :return: The asset_info_array of this UnpublishAssetsResponse. + :rtype: list[AssetInfo] + """ + return self._asset_info_array + + @asset_info_array.setter + def asset_info_array(self, asset_info_array): + """Sets the asset_info_array of this UnpublishAssetsResponse. + + + :param asset_info_array: The asset_info_array of this UnpublishAssetsResponse. + :type: list[AssetInfo] + """ + self._asset_info_array = asset_info_array + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UnpublishAssetsResponse): + 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-vod/huaweicloudsdkvod/v1/model/update_asset_category_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_asset_category_request.py new file mode 100644 index 0000000000..6519f7709f --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_asset_category_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdateAssetCategoryRequest: + + + """ + 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': 'UpdateCategoryReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """UpdateAssetCategoryRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this UpdateAssetCategoryRequest. + + + :return: The body of this UpdateAssetCategoryRequest. + :rtype: UpdateCategoryReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateAssetCategoryRequest. + + + :param body: The body of this UpdateAssetCategoryRequest. + :type: UpdateCategoryReq + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateAssetCategoryRequest): + 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-vod/huaweicloudsdkvod/v1/model/update_asset_category_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_asset_category_response.py new file mode 100644 index 0000000000..2d326c0841 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_asset_category_response.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class UpdateAssetCategoryResponse(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 = { + 'name': 'str', + 'parent_id': 'int', + 'id': 'int', + 'level': 'int', + 'project_id': 'str' + } + + attribute_map = { + 'name': 'name', + 'parent_id': 'parent_id', + 'id': 'id', + 'level': 'level', + 'project_id': 'projectId' + } + + def __init__(self, name=None, parent_id=None, id=None, level=None, project_id=None): + """UpdateAssetCategoryResponse - a model defined in huaweicloud sdk""" + + super(UpdateAssetCategoryResponse, self).__init__() + + self._name = None + self._parent_id = None + self._id = None + self._level = None + self._project_id = None + self.discriminator = None + + if name is not None: + self.name = name + if parent_id is not None: + self.parent_id = parent_id + if id is not None: + self.id = id + if level is not None: + self.level = level + if project_id is not None: + self.project_id = project_id + + @property + def name(self): + """Gets the name of this UpdateAssetCategoryResponse. + + 视频分类名称
+ + :return: The name of this UpdateAssetCategoryResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this UpdateAssetCategoryResponse. + + 视频分类名称
+ + :param name: The name of this UpdateAssetCategoryResponse. + :type: str + """ + self._name = name + + @property + def parent_id(self): + """Gets the parent_id of this UpdateAssetCategoryResponse. + + 父分类ID
+ + :return: The parent_id of this UpdateAssetCategoryResponse. + :rtype: int + """ + return self._parent_id + + @parent_id.setter + def parent_id(self, parent_id): + """Sets the parent_id of this UpdateAssetCategoryResponse. + + 父分类ID
+ + :param parent_id: The parent_id of this UpdateAssetCategoryResponse. + :type: int + """ + self._parent_id = parent_id + + @property + def id(self): + """Gets the id of this UpdateAssetCategoryResponse. + + 视频分类ID
+ + :return: The id of this UpdateAssetCategoryResponse. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this UpdateAssetCategoryResponse. + + 视频分类ID
+ + :param id: The id of this UpdateAssetCategoryResponse. + :type: int + """ + self._id = id + + @property + def level(self): + """Gets the level of this UpdateAssetCategoryResponse. + + 视频分类层级
+ + :return: The level of this UpdateAssetCategoryResponse. + :rtype: int + """ + return self._level + + @level.setter + def level(self, level): + """Sets the level of this UpdateAssetCategoryResponse. + + 视频分类层级
+ + :param level: The level of this UpdateAssetCategoryResponse. + :type: int + """ + self._level = level + + @property + def project_id(self): + """Gets the project_id of this UpdateAssetCategoryResponse. + + + :return: The project_id of this UpdateAssetCategoryResponse. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this UpdateAssetCategoryResponse. + + + :param project_id: The project_id of this UpdateAssetCategoryResponse. + :type: str + """ + self._project_id = 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateAssetCategoryResponse): + 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-vod/huaweicloudsdkvod/v1/model/update_asset_meta_req.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_asset_meta_req.py new file mode 100644 index 0000000000..e1507d4e3d --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_asset_meta_req.py @@ -0,0 +1,298 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdateAssetMetaReq: + + + """ + 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 = { + 'asset_id': 'str', + 'title': 'str', + 'description': 'str', + 'category_id': 'int', + 'tags': 'str', + 'folder_name': 'str', + 'custom_metadata': 'dict(str, object)', + 'privilege': 'str' + } + + attribute_map = { + 'asset_id': 'asset_id', + 'title': 'title', + 'description': 'description', + 'category_id': 'category_id', + 'tags': 'tags', + 'folder_name': 'folder_name', + 'custom_metadata': 'custom_metadata', + 'privilege': 'privilege' + } + + def __init__(self, asset_id=None, title=None, description=None, category_id=None, tags=None, folder_name=None, custom_metadata=None, privilege=None): + """UpdateAssetMetaReq - a model defined in huaweicloud sdk""" + + + + self._asset_id = None + self._title = None + self._description = None + self._category_id = None + self._tags = None + self._folder_name = None + self._custom_metadata = None + self._privilege = None + self.discriminator = None + + self.asset_id = asset_id + if title is not None: + self.title = title + if description is not None: + self.description = description + if category_id is not None: + self.category_id = category_id + if tags is not None: + self.tags = tags + if folder_name is not None: + self.folder_name = folder_name + if custom_metadata is not None: + self.custom_metadata = custom_metadata + if privilege is not None: + self.privilege = privilege + + @property + def asset_id(self): + """Gets the asset_id of this UpdateAssetMetaReq. + + 媒体ID
+ + :return: The asset_id of this UpdateAssetMetaReq. + :rtype: str + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this UpdateAssetMetaReq. + + 媒体ID
+ + :param asset_id: The asset_id of this UpdateAssetMetaReq. + :type: str + """ + self._asset_id = asset_id + + @property + def title(self): + """Gets the title of this UpdateAssetMetaReq. + + 媒体标题
+ + :return: The title of this UpdateAssetMetaReq. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this UpdateAssetMetaReq. + + 媒体标题
+ + :param title: The title of this UpdateAssetMetaReq. + :type: str + """ + self._title = title + + @property + def description(self): + """Gets the description of this UpdateAssetMetaReq. + + 视频描述
+ + :return: The description of this UpdateAssetMetaReq. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UpdateAssetMetaReq. + + 视频描述
+ + :param description: The description of this UpdateAssetMetaReq. + :type: str + """ + self._description = description + + @property + def category_id(self): + """Gets the category_id of this UpdateAssetMetaReq. + + 媒资分类id
+ + :return: The category_id of this UpdateAssetMetaReq. + :rtype: int + """ + return self._category_id + + @category_id.setter + def category_id(self, category_id): + """Sets the category_id of this UpdateAssetMetaReq. + + 媒资分类id
+ + :param category_id: The category_id of this UpdateAssetMetaReq. + :type: int + """ + self._category_id = category_id + + @property + def tags(self): + """Gets the tags of this UpdateAssetMetaReq. + + 视频标签
+ + :return: The tags of this UpdateAssetMetaReq. + :rtype: str + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this UpdateAssetMetaReq. + + 视频标签
+ + :param tags: The tags of this UpdateAssetMetaReq. + :type: str + """ + self._tags = tags + + @property + def folder_name(self): + """Gets the folder_name of this UpdateAssetMetaReq. + + 媒资所在文件夹id + + :return: The folder_name of this UpdateAssetMetaReq. + :rtype: str + """ + return self._folder_name + + @folder_name.setter + def folder_name(self, folder_name): + """Sets the folder_name of this UpdateAssetMetaReq. + + 媒资所在文件夹id + + :param folder_name: The folder_name of this UpdateAssetMetaReq. + :type: str + """ + self._folder_name = folder_name + + @property + def custom_metadata(self): + """Gets the custom_metadata of this UpdateAssetMetaReq. + + 自定义元数据
+ + :return: The custom_metadata of this UpdateAssetMetaReq. + :rtype: dict(str, object) + """ + return self._custom_metadata + + @custom_metadata.setter + def custom_metadata(self, custom_metadata): + """Sets the custom_metadata of this UpdateAssetMetaReq. + + 自定义元数据
+ + :param custom_metadata: The custom_metadata of this UpdateAssetMetaReq. + :type: dict(str, object) + """ + self._custom_metadata = custom_metadata + + @property + def privilege(self): + """Gets the privilege of this UpdateAssetMetaReq. + + 权限
+ + :return: The privilege of this UpdateAssetMetaReq. + :rtype: str + """ + return self._privilege + + @privilege.setter + def privilege(self, privilege): + """Sets the privilege of this UpdateAssetMetaReq. + + 权限
+ + :param privilege: The privilege of this UpdateAssetMetaReq. + :type: str + """ + self._privilege = privilege + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateAssetMetaReq): + 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-vod/huaweicloudsdkvod/v1/model/update_asset_meta_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_asset_meta_request.py new file mode 100644 index 0000000000..05ab7eb1be --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_asset_meta_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdateAssetMetaRequest: + + + """ + 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': 'UpdateAssetMetaReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """UpdateAssetMetaRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this UpdateAssetMetaRequest. + + + :return: The body of this UpdateAssetMetaRequest. + :rtype: UpdateAssetMetaReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateAssetMetaRequest. + + + :param body: The body of this UpdateAssetMetaRequest. + :type: UpdateAssetMetaReq + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateAssetMetaRequest): + 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-vod/huaweicloudsdkvod/v1/model/update_asset_meta_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_asset_meta_response.py new file mode 100644 index 0000000000..c225b28842 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_asset_meta_response.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class UpdateAssetMetaResponse(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): + """UpdateAssetMetaResponse - a model defined in huaweicloud sdk""" + + super(UpdateAssetMetaResponse, 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateAssetMetaResponse): + 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-vod/huaweicloudsdkvod/v1/model/update_asset_req.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_asset_req.py new file mode 100644 index 0000000000..3020df172d --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_asset_req.py @@ -0,0 +1,298 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdateAssetReq: + + + """ + 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 = { + 'asset_id': 'str', + 'video_md5': 'str', + 'video_name': 'str', + 'video_type': 'str', + 'cover_id': 'int', + 'cover_type': 'str', + 'cover_md5': 'str', + 'subtitles': 'list[Subtitle]' + } + + attribute_map = { + 'asset_id': 'asset_id', + 'video_md5': 'video_md5', + 'video_name': 'video_name', + 'video_type': 'video_type', + 'cover_id': 'cover_id', + 'cover_type': 'cover_type', + 'cover_md5': 'cover_md5', + 'subtitles': 'subtitles' + } + + def __init__(self, asset_id=None, video_md5=None, video_name=None, video_type=None, cover_id=None, cover_type=None, cover_md5=None, subtitles=None): + """UpdateAssetReq - a model defined in huaweicloud sdk""" + + + + self._asset_id = None + self._video_md5 = None + self._video_name = None + self._video_type = None + self._cover_id = None + self._cover_type = None + self._cover_md5 = None + self._subtitles = None + self.discriminator = None + + self.asset_id = asset_id + if video_md5 is not None: + self.video_md5 = video_md5 + if video_name is not None: + self.video_name = video_name + if video_type is not None: + self.video_type = video_type + if cover_id is not None: + self.cover_id = cover_id + if cover_type is not None: + self.cover_type = cover_type + if cover_md5 is not None: + self.cover_md5 = cover_md5 + if subtitles is not None: + self.subtitles = subtitles + + @property + def asset_id(self): + """Gets the asset_id of this UpdateAssetReq. + + 媒体ID
+ + :return: The asset_id of this UpdateAssetReq. + :rtype: str + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this UpdateAssetReq. + + 媒体ID
+ + :param asset_id: The asset_id of this UpdateAssetReq. + :type: str + """ + self._asset_id = asset_id + + @property + def video_md5(self): + """Gets the video_md5 of this UpdateAssetReq. + + 视频文件MD5值
+ + :return: The video_md5 of this UpdateAssetReq. + :rtype: str + """ + return self._video_md5 + + @video_md5.setter + def video_md5(self, video_md5): + """Sets the video_md5 of this UpdateAssetReq. + + 视频文件MD5值
+ + :param video_md5: The video_md5 of this UpdateAssetReq. + :type: str + """ + self._video_md5 = video_md5 + + @property + def video_name(self): + """Gets the video_name of this UpdateAssetReq. + + 视频文件名
+ + :return: The video_name of this UpdateAssetReq. + :rtype: str + """ + return self._video_name + + @video_name.setter + def video_name(self, video_name): + """Sets the video_name of this UpdateAssetReq. + + 视频文件名
+ + :param video_name: The video_name of this UpdateAssetReq. + :type: str + """ + self._video_name = video_name + + @property + def video_type(self): + """Gets the video_type of this UpdateAssetReq. + + 视频文件类型
+ + :return: The video_type of this UpdateAssetReq. + :rtype: str + """ + return self._video_type + + @video_type.setter + def video_type(self, video_type): + """Sets the video_type of this UpdateAssetReq. + + 视频文件类型
+ + :param video_type: The video_type of this UpdateAssetReq. + :type: str + """ + self._video_type = video_type + + @property + def cover_id(self): + """Gets the cover_id of this UpdateAssetReq. + + 封面ID,取值0-7。当前只支持一张封面,只能填0
+ + :return: The cover_id of this UpdateAssetReq. + :rtype: int + """ + return self._cover_id + + @cover_id.setter + def cover_id(self, cover_id): + """Sets the cover_id of this UpdateAssetReq. + + 封面ID,取值0-7。当前只支持一张封面,只能填0
+ + :param cover_id: The cover_id of this UpdateAssetReq. + :type: int + """ + self._cover_id = cover_id + + @property + def cover_type(self): + """Gets the cover_type of this UpdateAssetReq. + + 封面图片格式类型
+ + :return: The cover_type of this UpdateAssetReq. + :rtype: str + """ + return self._cover_type + + @cover_type.setter + def cover_type(self, cover_type): + """Sets the cover_type of this UpdateAssetReq. + + 封面图片格式类型
+ + :param cover_type: The cover_type of this UpdateAssetReq. + :type: str + """ + self._cover_type = cover_type + + @property + def cover_md5(self): + """Gets the cover_md5 of this UpdateAssetReq. + + 封面文件MD5值
+ + :return: The cover_md5 of this UpdateAssetReq. + :rtype: str + """ + return self._cover_md5 + + @cover_md5.setter + def cover_md5(self, cover_md5): + """Sets the cover_md5 of this UpdateAssetReq. + + 封面文件MD5值
+ + :param cover_md5: The cover_md5 of this UpdateAssetReq. + :type: str + """ + self._cover_md5 = cover_md5 + + @property + def subtitles(self): + """Gets the subtitles of this UpdateAssetReq. + + 字幕文件信息
+ + :return: The subtitles of this UpdateAssetReq. + :rtype: list[Subtitle] + """ + return self._subtitles + + @subtitles.setter + def subtitles(self, subtitles): + """Sets the subtitles of this UpdateAssetReq. + + 字幕文件信息
+ + :param subtitles: The subtitles of this UpdateAssetReq. + :type: list[Subtitle] + """ + self._subtitles = subtitles + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateAssetReq): + 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-vod/huaweicloudsdkvod/v1/model/update_asset_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_asset_request.py new file mode 100644 index 0000000000..dc3124d838 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_asset_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdateAssetRequest: + + + """ + 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': 'UpdateAssetReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """UpdateAssetRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this UpdateAssetRequest. + + + :return: The body of this UpdateAssetRequest. + :rtype: UpdateAssetReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateAssetRequest. + + + :param body: The body of this UpdateAssetRequest. + :type: UpdateAssetReq + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateAssetRequest): + 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-vod/huaweicloudsdkvod/v1/model/update_asset_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_asset_response.py new file mode 100644 index 0000000000..045f820e37 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_asset_response.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class UpdateAssetResponse(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 = { + 'asset_id': 'str', + 'video_upload_url': 'str', + 'cover_upload_url': 'str', + 'subtitle_upload_urls': 'list[str]' + } + + attribute_map = { + 'asset_id': 'asset_id', + 'video_upload_url': 'video_upload_url', + 'cover_upload_url': 'cover_upload_url', + 'subtitle_upload_urls': 'subtitle_upload_urls' + } + + def __init__(self, asset_id=None, video_upload_url=None, cover_upload_url=None, subtitle_upload_urls=None): + """UpdateAssetResponse - a model defined in huaweicloud sdk""" + + super(UpdateAssetResponse, self).__init__() + + self._asset_id = None + self._video_upload_url = None + self._cover_upload_url = None + self._subtitle_upload_urls = None + self.discriminator = None + + if asset_id is not None: + self.asset_id = asset_id + if video_upload_url is not None: + self.video_upload_url = video_upload_url + if cover_upload_url is not None: + self.cover_upload_url = cover_upload_url + if subtitle_upload_urls is not None: + self.subtitle_upload_urls = subtitle_upload_urls + + @property + def asset_id(self): + """Gets the asset_id of this UpdateAssetResponse. + + 媒体ID
+ + :return: The asset_id of this UpdateAssetResponse. + :rtype: str + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this UpdateAssetResponse. + + 媒体ID
+ + :param asset_id: The asset_id of this UpdateAssetResponse. + :type: str + """ + self._asset_id = asset_id + + @property + def video_upload_url(self): + """Gets the video_upload_url of this UpdateAssetResponse. + + 原始视频文件的下载url
+ + :return: The video_upload_url of this UpdateAssetResponse. + :rtype: str + """ + return self._video_upload_url + + @video_upload_url.setter + def video_upload_url(self, video_upload_url): + """Sets the video_upload_url of this UpdateAssetResponse. + + 原始视频文件的下载url
+ + :param video_upload_url: The video_upload_url of this UpdateAssetResponse. + :type: str + """ + self._video_upload_url = video_upload_url + + @property + def cover_upload_url(self): + """Gets the cover_upload_url of this UpdateAssetResponse. + + 封面文件(Cover0)的下载url
+ + :return: The cover_upload_url of this UpdateAssetResponse. + :rtype: str + """ + return self._cover_upload_url + + @cover_upload_url.setter + def cover_upload_url(self, cover_upload_url): + """Sets the cover_upload_url of this UpdateAssetResponse. + + 封面文件(Cover0)的下载url
+ + :param cover_upload_url: The cover_upload_url of this UpdateAssetResponse. + :type: str + """ + self._cover_upload_url = cover_upload_url + + @property + def subtitle_upload_urls(self): + """Gets the subtitle_upload_urls of this UpdateAssetResponse. + + 字幕文件上传url数组
+ + :return: The subtitle_upload_urls of this UpdateAssetResponse. + :rtype: list[str] + """ + return self._subtitle_upload_urls + + @subtitle_upload_urls.setter + def subtitle_upload_urls(self, subtitle_upload_urls): + """Sets the subtitle_upload_urls of this UpdateAssetResponse. + + 字幕文件上传url数组
+ + :param subtitle_upload_urls: The subtitle_upload_urls of this UpdateAssetResponse. + :type: list[str] + """ + self._subtitle_upload_urls = subtitle_upload_urls + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateAssetResponse): + 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-vod/huaweicloudsdkvod/v1/model/update_bucket_authorized_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_bucket_authorized_request.py new file mode 100644 index 0000000000..13e596755f --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_bucket_authorized_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdateBucketAuthorizedRequest: + + + """ + 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': 'BucketAuthorizedReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """UpdateBucketAuthorizedRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this UpdateBucketAuthorizedRequest. + + + :return: The body of this UpdateBucketAuthorizedRequest. + :rtype: BucketAuthorizedReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateBucketAuthorizedRequest. + + + :param body: The body of this UpdateBucketAuthorizedRequest. + :type: BucketAuthorizedReq + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateBucketAuthorizedRequest): + 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-vod/huaweicloudsdkvod/v1/model/update_bucket_authorized_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_bucket_authorized_response.py new file mode 100644 index 0000000000..2afdb3c981 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_bucket_authorized_response.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class UpdateBucketAuthorizedResponse(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): + """UpdateBucketAuthorizedResponse - a model defined in huaweicloud sdk""" + + super(UpdateBucketAuthorizedResponse, 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateBucketAuthorizedResponse): + 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-vod/huaweicloudsdkvod/v1/model/update_category_req.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_category_req.py new file mode 100644 index 0000000000..d04dbb5799 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_category_req.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdateCategoryReq: + + + """ + 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', + 'id': 'int' + } + + attribute_map = { + 'name': 'name', + 'id': 'id' + } + + def __init__(self, name=None, id=None): + """UpdateCategoryReq - a model defined in huaweicloud sdk""" + + + + self._name = None + self._id = None + self.discriminator = None + + self.name = name + self.id = id + + @property + def name(self): + """Gets the name of this UpdateCategoryReq. + + 视频分类名称 + + :return: The name of this UpdateCategoryReq. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this UpdateCategoryReq. + + 视频分类名称 + + :param name: The name of this UpdateCategoryReq. + :type: str + """ + self._name = name + + @property + def id(self): + """Gets the id of this UpdateCategoryReq. + + 视频分类ID + + :return: The id of this UpdateCategoryReq. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this UpdateCategoryReq. + + 视频分类ID + + :param id: The id of this UpdateCategoryReq. + :type: int + """ + self._id = 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateCategoryReq): + 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-vod/huaweicloudsdkvod/v1/model/update_cover_by_thumbnail_req.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_cover_by_thumbnail_req.py new file mode 100644 index 0000000000..c0ab2d8b28 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_cover_by_thumbnail_req.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdateCoverByThumbnailReq: + + + """ + 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 = { + 'thumbnail_url': 'str' + } + + attribute_map = { + 'thumbnail_url': 'thumbnailUrl' + } + + def __init__(self, thumbnail_url=None): + """UpdateCoverByThumbnailReq - a model defined in huaweicloud sdk""" + + + + self._thumbnail_url = None + self.discriminator = None + + self.thumbnail_url = thumbnail_url + + @property + def thumbnail_url(self): + """Gets the thumbnail_url of this UpdateCoverByThumbnailReq. + + 截图url
+ + :return: The thumbnail_url of this UpdateCoverByThumbnailReq. + :rtype: str + """ + return self._thumbnail_url + + @thumbnail_url.setter + def thumbnail_url(self, thumbnail_url): + """Sets the thumbnail_url of this UpdateCoverByThumbnailReq. + + 截图url
+ + :param thumbnail_url: The thumbnail_url of this UpdateCoverByThumbnailReq. + :type: str + """ + self._thumbnail_url = thumbnail_url + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateCoverByThumbnailReq): + 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-vod/huaweicloudsdkvod/v1/model/update_cover_by_thumbnail_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_cover_by_thumbnail_request.py new file mode 100644 index 0000000000..c1702dc003 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_cover_by_thumbnail_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdateCoverByThumbnailRequest: + + + """ + 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': 'UpdateCoverByThumbnailReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """UpdateCoverByThumbnailRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this UpdateCoverByThumbnailRequest. + + + :return: The body of this UpdateCoverByThumbnailRequest. + :rtype: UpdateCoverByThumbnailReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateCoverByThumbnailRequest. + + + :param body: The body of this UpdateCoverByThumbnailRequest. + :type: UpdateCoverByThumbnailReq + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateCoverByThumbnailRequest): + 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-vod/huaweicloudsdkvod/v1/model/update_cover_by_thumbnail_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_cover_by_thumbnail_response.py new file mode 100644 index 0000000000..573c5514f3 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_cover_by_thumbnail_response.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class UpdateCoverByThumbnailResponse(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): + """UpdateCoverByThumbnailResponse - a model defined in huaweicloud sdk""" + + super(UpdateCoverByThumbnailResponse, 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateCoverByThumbnailResponse): + 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-vod/huaweicloudsdkvod/v1/model/update_template_group_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_template_group_request.py new file mode 100644 index 0000000000..ac1cb39699 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_template_group_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdateTemplateGroupRequest: + + + """ + 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': 'ModifyTransTemplateGroup' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """UpdateTemplateGroupRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this UpdateTemplateGroupRequest. + + + :return: The body of this UpdateTemplateGroupRequest. + :rtype: ModifyTransTemplateGroup + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateTemplateGroupRequest. + + + :param body: The body of this UpdateTemplateGroupRequest. + :type: ModifyTransTemplateGroup + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateTemplateGroupRequest): + 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-vod/huaweicloudsdkvod/v1/model/update_template_group_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_template_group_response.py new file mode 100644 index 0000000000..a5cede2a93 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_template_group_response.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class UpdateTemplateGroupResponse(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): + """UpdateTemplateGroupResponse - a model defined in huaweicloud sdk""" + + super(UpdateTemplateGroupResponse, 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateTemplateGroupResponse): + 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-vod/huaweicloudsdkvod/v1/model/update_watermark_template_req.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_watermark_template_req.py new file mode 100644 index 0000000000..0fa21b6601 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_watermark_template_req.py @@ -0,0 +1,380 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdateWatermarkTemplateReq: + + + """ + 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', + 'dx': 'str', + 'dy': 'str', + 'position': 'str', + 'width': 'str', + 'height': 'str', + 'watermark_type': 'str', + 'image_process': 'str', + 'timeline_start': 'str', + 'timeline_duration': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'dx': 'dx', + 'dy': 'dy', + 'position': 'position', + 'width': 'width', + 'height': 'height', + 'watermark_type': 'watermark_type', + 'image_process': 'image_process', + 'timeline_start': 'timeline_start', + 'timeline_duration': 'timeline_duration' + } + + def __init__(self, id=None, name=None, dx=None, dy=None, position=None, width=None, height=None, watermark_type=None, image_process=None, timeline_start=None, timeline_duration=None): + """UpdateWatermarkTemplateReq - a model defined in huaweicloud sdk""" + + + + self._id = None + self._name = None + self._dx = None + self._dy = None + self._position = None + self._width = None + self._height = None + self._watermark_type = None + self._image_process = None + self._timeline_start = None + self._timeline_duration = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if dx is not None: + self.dx = dx + if dy is not None: + self.dy = dy + if position is not None: + self.position = position + if width is not None: + self.width = width + if height is not None: + self.height = height + if watermark_type is not None: + self.watermark_type = watermark_type + if image_process is not None: + self.image_process = image_process + if timeline_start is not None: + self.timeline_start = timeline_start + if timeline_duration is not None: + self.timeline_duration = timeline_duration + + @property + def id(self): + """Gets the id of this UpdateWatermarkTemplateReq. + + 水印模板配置id
+ + :return: The id of this UpdateWatermarkTemplateReq. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this UpdateWatermarkTemplateReq. + + 水印模板配置id
+ + :param id: The id of this UpdateWatermarkTemplateReq. + :type: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this UpdateWatermarkTemplateReq. + + 水印模板名称
+ + :return: The name of this UpdateWatermarkTemplateReq. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this UpdateWatermarkTemplateReq. + + 水印模板名称
+ + :param name: The name of this UpdateWatermarkTemplateReq. + :type: str + """ + self._name = name + + @property + def dx(self): + """Gets the dx of this UpdateWatermarkTemplateReq. + + 水印图片相对输出视频的水平偏移量,默认值是0
+ + :return: The dx of this UpdateWatermarkTemplateReq. + :rtype: str + """ + return self._dx + + @dx.setter + def dx(self, dx): + """Sets the dx of this UpdateWatermarkTemplateReq. + + 水印图片相对输出视频的水平偏移量,默认值是0
+ + :param dx: The dx of this UpdateWatermarkTemplateReq. + :type: str + """ + self._dx = dx + + @property + def dy(self): + """Gets the dy of this UpdateWatermarkTemplateReq. + + 水印图片相对输出视频的垂直偏移量,默认值是0
+ + :return: The dy of this UpdateWatermarkTemplateReq. + :rtype: str + """ + return self._dy + + @dy.setter + def dy(self, dy): + """Sets the dy of this UpdateWatermarkTemplateReq. + + 水印图片相对输出视频的垂直偏移量,默认值是0
+ + :param dy: The dy of this UpdateWatermarkTemplateReq. + :type: str + """ + self._dy = dy + + @property + def position(self): + """Gets the position of this UpdateWatermarkTemplateReq. + + 水印的位置
+ + :return: The position of this UpdateWatermarkTemplateReq. + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this UpdateWatermarkTemplateReq. + + 水印的位置
+ + :param position: The position of this UpdateWatermarkTemplateReq. + :type: str + """ + self._position = position + + @property + def width(self): + """Gets the width of this UpdateWatermarkTemplateReq. + + 水印图片宽
+ + :return: The width of this UpdateWatermarkTemplateReq. + :rtype: str + """ + return self._width + + @width.setter + def width(self, width): + """Sets the width of this UpdateWatermarkTemplateReq. + + 水印图片宽
+ + :param width: The width of this UpdateWatermarkTemplateReq. + :type: str + """ + self._width = width + + @property + def height(self): + """Gets the height of this UpdateWatermarkTemplateReq. + + 水印图片高
+ + :return: The height of this UpdateWatermarkTemplateReq. + :rtype: str + """ + return self._height + + @height.setter + def height(self, height): + """Sets the height of this UpdateWatermarkTemplateReq. + + 水印图片高
+ + :param height: The height of this UpdateWatermarkTemplateReq. + :type: str + """ + self._height = height + + @property + def watermark_type(self): + """Gets the watermark_type of this UpdateWatermarkTemplateReq. + + 水印类型,当前只支持Image(图片水印)
+ + :return: The watermark_type of this UpdateWatermarkTemplateReq. + :rtype: str + """ + return self._watermark_type + + @watermark_type.setter + def watermark_type(self, watermark_type): + """Sets the watermark_type of this UpdateWatermarkTemplateReq. + + 水印类型,当前只支持Image(图片水印)
+ + :param watermark_type: The watermark_type of this UpdateWatermarkTemplateReq. + :type: str + """ + self._watermark_type = watermark_type + + @property + def image_process(self): + """Gets the image_process of this UpdateWatermarkTemplateReq. + + type设置为Image时有效,目前包括Original(只做简单缩放,不做其他处理),Transparent(图片底色透明),Grayed(彩色图片变灰)
+ + :return: The image_process of this UpdateWatermarkTemplateReq. + :rtype: str + """ + return self._image_process + + @image_process.setter + def image_process(self, image_process): + """Sets the image_process of this UpdateWatermarkTemplateReq. + + type设置为Image时有效,目前包括Original(只做简单缩放,不做其他处理),Transparent(图片底色透明),Grayed(彩色图片变灰)
+ + :param image_process: The image_process of this UpdateWatermarkTemplateReq. + :type: str + """ + self._image_process = image_process + + @property + def timeline_start(self): + """Gets the timeline_start of this UpdateWatermarkTemplateReq. + + 水印开始时间
+ + :return: The timeline_start of this UpdateWatermarkTemplateReq. + :rtype: str + """ + return self._timeline_start + + @timeline_start.setter + def timeline_start(self, timeline_start): + """Sets the timeline_start of this UpdateWatermarkTemplateReq. + + 水印开始时间
+ + :param timeline_start: The timeline_start of this UpdateWatermarkTemplateReq. + :type: str + """ + self._timeline_start = timeline_start + + @property + def timeline_duration(self): + """Gets the timeline_duration of this UpdateWatermarkTemplateReq. + + 水印持续时间
+ + :return: The timeline_duration of this UpdateWatermarkTemplateReq. + :rtype: str + """ + return self._timeline_duration + + @timeline_duration.setter + def timeline_duration(self, timeline_duration): + """Sets the timeline_duration of this UpdateWatermarkTemplateReq. + + 水印持续时间
+ + :param timeline_duration: The timeline_duration of this UpdateWatermarkTemplateReq. + :type: str + """ + self._timeline_duration = timeline_duration + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateWatermarkTemplateReq): + 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-vod/huaweicloudsdkvod/v1/model/update_watermark_template_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_watermark_template_request.py new file mode 100644 index 0000000000..37f9497597 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_watermark_template_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdateWatermarkTemplateRequest: + + + """ + 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': 'UpdateWatermarkTemplateReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """UpdateWatermarkTemplateRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this UpdateWatermarkTemplateRequest. + + + :return: The body of this UpdateWatermarkTemplateRequest. + :rtype: UpdateWatermarkTemplateReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateWatermarkTemplateRequest. + + + :param body: The body of this UpdateWatermarkTemplateRequest. + :type: UpdateWatermarkTemplateReq + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateWatermarkTemplateRequest): + 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-vod/huaweicloudsdkvod/v1/model/update_watermark_template_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_watermark_template_response.py new file mode 100644 index 0000000000..6b5d1e95bd --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/update_watermark_template_response.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class UpdateWatermarkTemplateResponse(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): + """UpdateWatermarkTemplateResponse - a model defined in huaweicloud sdk""" + + super(UpdateWatermarkTemplateResponse, 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateWatermarkTemplateResponse): + 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-vod/huaweicloudsdkvod/v1/model/upload_asset.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/upload_asset.py new file mode 100644 index 0000000000..15c668687c --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/upload_asset.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UploadAsset: + + + """ + 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 = { + 'url': 'str', + 'asset_id': 'str', + 'error_code': 'str', + 'error_msg': 'str' + } + + attribute_map = { + 'url': 'url', + 'asset_id': 'asset_id', + 'error_code': 'error_code', + 'error_msg': 'error_msg' + } + + def __init__(self, url=None, asset_id=None, error_code=None, error_msg=None): + """UploadAsset - a model defined in huaweicloud sdk""" + + + + self._url = None + self._asset_id = None + self._error_code = None + self._error_msg = None + self.discriminator = None + + if url is not None: + self.url = url + if asset_id is not None: + self.asset_id = asset_id + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + + @property + def url(self): + """Gets the url of this UploadAsset. + + 媒资所在url + + :return: The url of this UploadAsset. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this UploadAsset. + + 媒资所在url + + :param url: The url of this UploadAsset. + :type: str + """ + self._url = url + + @property + def asset_id(self): + """Gets the asset_id of this UploadAsset. + + 新创建媒资的媒资id + + :return: The asset_id of this UploadAsset. + :rtype: str + """ + return self._asset_id + + @asset_id.setter + def asset_id(self, asset_id): + """Sets the asset_id of this UploadAsset. + + 新创建媒资的媒资id + + :param asset_id: The asset_id of this UploadAsset. + :type: str + """ + self._asset_id = asset_id + + @property + def error_code(self): + """Gets the error_code of this UploadAsset. + + 错误码。 + + :return: The error_code of this UploadAsset. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this UploadAsset. + + 错误码。 + + :param error_code: The error_code of this UploadAsset. + :type: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this UploadAsset. + + 错误描述。 + + :return: The error_msg of this UploadAsset. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this UploadAsset. + + 错误描述。 + + :param error_msg: The error_msg of this UploadAsset. + :type: str + """ + self._error_msg = error_msg + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UploadAsset): + 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-vod/huaweicloudsdkvod/v1/model/upload_meta_data_by_url.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/upload_meta_data_by_url.py new file mode 100644 index 0000000000..7d50348fe4 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/upload_meta_data_by_url.py @@ -0,0 +1,430 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UploadMetaDataByUrl: + + + """ + 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 = { + 'video_type': 'str', + 'title': 'str', + 'description': 'str', + 'category_id': 'int', + 'tags': 'str', + 'auto_publish': 'int', + 'template_group_name': 'str', + 'auto_encrypt': 'int', + 'auto_preheat': 'int', + 'thumbnail': 'Thumbnail', + 'review': 'Review', + 'workflow_name': 'str', + 'url': 'str' + } + + attribute_map = { + 'video_type': 'video_type', + 'title': 'title', + 'description': 'description', + 'category_id': 'category_id', + 'tags': 'tags', + 'auto_publish': 'auto_publish', + 'template_group_name': 'template_group_name', + 'auto_encrypt': 'auto_encrypt', + 'auto_preheat': 'auto_preheat', + 'thumbnail': 'thumbnail', + 'review': 'review', + 'workflow_name': 'workflow_name', + 'url': 'url' + } + + def __init__(self, video_type=None, title=None, description=None, category_id=None, tags=None, auto_publish=None, template_group_name=None, auto_encrypt=None, auto_preheat=None, thumbnail=None, review=None, workflow_name=None, url=None): + """UploadMetaDataByUrl - a model defined in huaweicloud sdk""" + + + + self._video_type = None + self._title = None + self._description = None + self._category_id = None + self._tags = None + self._auto_publish = None + self._template_group_name = None + self._auto_encrypt = None + self._auto_preheat = None + self._thumbnail = None + self._review = None + self._workflow_name = None + self._url = None + self.discriminator = None + + if video_type is not None: + self.video_type = video_type + if title is not None: + self.title = title + if description is not None: + self.description = description + if category_id is not None: + self.category_id = category_id + if tags is not None: + self.tags = tags + if auto_publish is not None: + self.auto_publish = auto_publish + if template_group_name is not None: + self.template_group_name = template_group_name + if auto_encrypt is not None: + self.auto_encrypt = auto_encrypt + if auto_preheat is not None: + self.auto_preheat = auto_preheat + if thumbnail is not None: + self.thumbnail = thumbnail + if review is not None: + self.review = review + if workflow_name is not None: + self.workflow_name = workflow_name + if url is not None: + self.url = url + + @property + def video_type(self): + """Gets the video_type of this UploadMetaDataByUrl. + + 视频类型
+ + :return: The video_type of this UploadMetaDataByUrl. + :rtype: str + """ + return self._video_type + + @video_type.setter + def video_type(self, video_type): + """Sets the video_type of this UploadMetaDataByUrl. + + 视频类型
+ + :param video_type: The video_type of this UploadMetaDataByUrl. + :type: str + """ + self._video_type = video_type + + @property + def title(self): + """Gets the title of this UploadMetaDataByUrl. + + 媒资标题
+ + :return: The title of this UploadMetaDataByUrl. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this UploadMetaDataByUrl. + + 媒资标题
+ + :param title: The title of this UploadMetaDataByUrl. + :type: str + """ + self._title = title + + @property + def description(self): + """Gets the description of this UploadMetaDataByUrl. + + 视频描述
+ + :return: The description of this UploadMetaDataByUrl. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UploadMetaDataByUrl. + + 视频描述
+ + :param description: The description of this UploadMetaDataByUrl. + :type: str + """ + self._description = description + + @property + def category_id(self): + """Gets the category_id of this UploadMetaDataByUrl. + + 媒资分类id
+ + :return: The category_id of this UploadMetaDataByUrl. + :rtype: int + """ + return self._category_id + + @category_id.setter + def category_id(self, category_id): + """Sets the category_id of this UploadMetaDataByUrl. + + 媒资分类id
+ + :param category_id: The category_id of this UploadMetaDataByUrl. + :type: int + """ + self._category_id = category_id + + @property + def tags(self): + """Gets the tags of this UploadMetaDataByUrl. + + 视频标签
+ + :return: The tags of this UploadMetaDataByUrl. + :rtype: str + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this UploadMetaDataByUrl. + + 视频标签
+ + :param tags: The tags of this UploadMetaDataByUrl. + :type: str + """ + self._tags = tags + + @property + def auto_publish(self): + """Gets the auto_publish of this UploadMetaDataByUrl. + + 是否自动发布
+ + :return: The auto_publish of this UploadMetaDataByUrl. + :rtype: int + """ + return self._auto_publish + + @auto_publish.setter + def auto_publish(self, auto_publish): + """Sets the auto_publish of this UploadMetaDataByUrl. + + 是否自动发布
+ + :param auto_publish: The auto_publish of this UploadMetaDataByUrl. + :type: int + """ + self._auto_publish = auto_publish + + @property + def template_group_name(self): + """Gets the template_group_name of this UploadMetaDataByUrl. + + 转码模板组名称
+ + :return: The template_group_name of this UploadMetaDataByUrl. + :rtype: str + """ + return self._template_group_name + + @template_group_name.setter + def template_group_name(self, template_group_name): + """Sets the template_group_name of this UploadMetaDataByUrl. + + 转码模板组名称
+ + :param template_group_name: The template_group_name of this UploadMetaDataByUrl. + :type: str + """ + self._template_group_name = template_group_name + + @property + def auto_encrypt(self): + """Gets the auto_encrypt of this UploadMetaDataByUrl. + + 是否自动加密,取值[0,1],0表示需要不加密;1表示需要加密。加密与转码必须要一起进行,当需要加密时,转码参数不能为空,且转码输出必须要为HLS + + :return: The auto_encrypt of this UploadMetaDataByUrl. + :rtype: int + """ + return self._auto_encrypt + + @auto_encrypt.setter + def auto_encrypt(self, auto_encrypt): + """Sets the auto_encrypt of this UploadMetaDataByUrl. + + 是否自动加密,取值[0,1],0表示需要不加密;1表示需要加密。加密与转码必须要一起进行,当需要加密时,转码参数不能为空,且转码输出必须要为HLS + + :param auto_encrypt: The auto_encrypt of this UploadMetaDataByUrl. + :type: int + """ + self._auto_encrypt = auto_encrypt + + @property + def auto_preheat(self): + """Gets the auto_preheat of this UploadMetaDataByUrl. + + 是否自动预热到CDN,取值[0,1],0表示不自动预热 + + :return: The auto_preheat of this UploadMetaDataByUrl. + :rtype: int + """ + return self._auto_preheat + + @auto_preheat.setter + def auto_preheat(self, auto_preheat): + """Sets the auto_preheat of this UploadMetaDataByUrl. + + 是否自动预热到CDN,取值[0,1],0表示不自动预热 + + :param auto_preheat: The auto_preheat of this UploadMetaDataByUrl. + :type: int + """ + self._auto_preheat = auto_preheat + + @property + def thumbnail(self): + """Gets the thumbnail of this UploadMetaDataByUrl. + + + :return: The thumbnail of this UploadMetaDataByUrl. + :rtype: Thumbnail + """ + return self._thumbnail + + @thumbnail.setter + def thumbnail(self, thumbnail): + """Sets the thumbnail of this UploadMetaDataByUrl. + + + :param thumbnail: The thumbnail of this UploadMetaDataByUrl. + :type: Thumbnail + """ + self._thumbnail = thumbnail + + @property + def review(self): + """Gets the review of this UploadMetaDataByUrl. + + + :return: The review of this UploadMetaDataByUrl. + :rtype: Review + """ + return self._review + + @review.setter + def review(self, review): + """Sets the review of this UploadMetaDataByUrl. + + + :param review: The review of this UploadMetaDataByUrl. + :type: Review + """ + self._review = review + + @property + def workflow_name(self): + """Gets the workflow_name of this UploadMetaDataByUrl. + + 工作流ID + + :return: The workflow_name of this UploadMetaDataByUrl. + :rtype: str + """ + return self._workflow_name + + @workflow_name.setter + def workflow_name(self, workflow_name): + """Sets the workflow_name of this UploadMetaDataByUrl. + + 工作流ID + + :param workflow_name: The workflow_name of this UploadMetaDataByUrl. + :type: str + """ + self._workflow_name = workflow_name + + @property + def url(self): + """Gets the url of this UploadMetaDataByUrl. + + 视频源文件URL
+ + :return: The url of this UploadMetaDataByUrl. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this UploadMetaDataByUrl. + + 视频源文件URL
+ + :param url: The url of this UploadMetaDataByUrl. + :type: str + """ + self._url = url + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UploadMetaDataByUrl): + 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-vod/huaweicloudsdkvod/v1/model/upload_meta_data_by_url_req.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/upload_meta_data_by_url_req.py new file mode 100644 index 0000000000..4003b83b16 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/upload_meta_data_by_url_req.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UploadMetaDataByUrlReq: + + + """ + 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 = { + 'upload_metadatas': 'list[UploadMetaDataByUrl]' + } + + attribute_map = { + 'upload_metadatas': 'upload_metadatas' + } + + def __init__(self, upload_metadatas=None): + """UploadMetaDataByUrlReq - a model defined in huaweicloud sdk""" + + + + self._upload_metadatas = None + self.discriminator = None + + self.upload_metadatas = upload_metadatas + + @property + def upload_metadatas(self): + """Gets the upload_metadatas of this UploadMetaDataByUrlReq. + + 待拉取创建的媒资元数据 + + :return: The upload_metadatas of this UploadMetaDataByUrlReq. + :rtype: list[UploadMetaDataByUrl] + """ + return self._upload_metadatas + + @upload_metadatas.setter + def upload_metadatas(self, upload_metadatas): + """Sets the upload_metadatas of this UploadMetaDataByUrlReq. + + 待拉取创建的媒资元数据 + + :param upload_metadatas: The upload_metadatas of this UploadMetaDataByUrlReq. + :type: list[UploadMetaDataByUrl] + """ + self._upload_metadatas = upload_metadatas + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UploadMetaDataByUrlReq): + 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-vod/huaweicloudsdkvod/v1/model/upload_meta_data_by_url_request.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/upload_meta_data_by_url_request.py new file mode 100644 index 0000000000..52f612ac9c --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/upload_meta_data_by_url_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UploadMetaDataByUrlRequest: + + + """ + 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': 'UploadMetaDataByUrlReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """UploadMetaDataByUrlRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this UploadMetaDataByUrlRequest. + + + :return: The body of this UploadMetaDataByUrlRequest. + :rtype: UploadMetaDataByUrlReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UploadMetaDataByUrlRequest. + + + :param body: The body of this UploadMetaDataByUrlRequest. + :type: UploadMetaDataByUrlReq + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UploadMetaDataByUrlRequest): + 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-vod/huaweicloudsdkvod/v1/model/upload_meta_data_by_url_response.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/upload_meta_data_by_url_response.py new file mode 100644 index 0000000000..30a209ddf3 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/upload_meta_data_by_url_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class UploadMetaDataByUrlResponse(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 = { + 'upload_assets': 'list[UploadAsset]' + } + + attribute_map = { + 'upload_assets': 'upload_assets' + } + + def __init__(self, upload_assets=None): + """UploadMetaDataByUrlResponse - a model defined in huaweicloud sdk""" + + super(UploadMetaDataByUrlResponse, self).__init__() + + self._upload_assets = None + self.discriminator = None + + if upload_assets is not None: + self.upload_assets = upload_assets + + @property + def upload_assets(self): + """Gets the upload_assets of this UploadMetaDataByUrlResponse. + + 待拉取创建的媒资元数据 + + :return: The upload_assets of this UploadMetaDataByUrlResponse. + :rtype: list[UploadAsset] + """ + return self._upload_assets + + @upload_assets.setter + def upload_assets(self, upload_assets): + """Sets the upload_assets of this UploadMetaDataByUrlResponse. + + 待拉取创建的媒资元数据 + + :param upload_assets: The upload_assets of this UploadMetaDataByUrlResponse. + :type: list[UploadAsset] + """ + self._upload_assets = upload_assets + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UploadMetaDataByUrlResponse): + 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-vod/huaweicloudsdkvod/v1/model/video_template_info.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/video_template_info.py new file mode 100644 index 0000000000..0b8fb6923e --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/video_template_info.py @@ -0,0 +1,217 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class VideoTemplateInfo: + + + """ + 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 = { + 'quality': 'str', + 'width': 'int', + 'height': 'int', + 'bitrate': 'int', + 'frame_rate': 'int' + } + + attribute_map = { + 'quality': 'quality', + 'width': 'width', + 'height': 'height', + 'bitrate': 'bitrate', + 'frame_rate': 'frame_rate' + } + + def __init__(self, quality=None, width=None, height=None, bitrate=None, frame_rate=None): + """VideoTemplateInfo - a model defined in huaweicloud sdk""" + + + + self._quality = None + self._width = None + self._height = None + self._bitrate = None + self._frame_rate = None + self.discriminator = None + + self.quality = quality + if width is not None: + self.width = width + if height is not None: + self.height = height + if bitrate is not None: + self.bitrate = bitrate + if frame_rate is not None: + self.frame_rate = frame_rate + + @property + def quality(self): + """Gets the quality of this VideoTemplateInfo. + + 画质
+ + :return: The quality of this VideoTemplateInfo. + :rtype: str + """ + return self._quality + + @quality.setter + def quality(self, quality): + """Sets the quality of this VideoTemplateInfo. + + 画质
+ + :param quality: The quality of this VideoTemplateInfo. + :type: str + """ + self._quality = quality + + @property + def width(self): + """Gets the width of this VideoTemplateInfo. + + 视频宽度
+ + :return: The width of this VideoTemplateInfo. + :rtype: int + """ + return self._width + + @width.setter + def width(self, width): + """Sets the width of this VideoTemplateInfo. + + 视频宽度
+ + :param width: The width of this VideoTemplateInfo. + :type: int + """ + self._width = width + + @property + def height(self): + """Gets the height of this VideoTemplateInfo. + + 视频高度
+ + :return: The height of this VideoTemplateInfo. + :rtype: int + """ + return self._height + + @height.setter + def height(self, height): + """Sets the height of this VideoTemplateInfo. + + 视频高度
+ + :param height: The height of this VideoTemplateInfo. + :type: int + """ + self._height = height + + @property + def bitrate(self): + """Gets the bitrate of this VideoTemplateInfo. + + 码率
+ + :return: The bitrate of this VideoTemplateInfo. + :rtype: int + """ + return self._bitrate + + @bitrate.setter + def bitrate(self, bitrate): + """Sets the bitrate of this VideoTemplateInfo. + + 码率
+ + :param bitrate: The bitrate of this VideoTemplateInfo. + :type: int + """ + self._bitrate = bitrate + + @property + def frame_rate(self): + """Gets the frame_rate of this VideoTemplateInfo. + + 帧率(默认为1,1代表自适应,单位是帧每秒)
+ + :return: The frame_rate of this VideoTemplateInfo. + :rtype: int + """ + return self._frame_rate + + @frame_rate.setter + def frame_rate(self, frame_rate): + """Sets the frame_rate of this VideoTemplateInfo. + + 帧率(默认为1,1代表自适应,单位是帧每秒)
+ + :param frame_rate: The frame_rate of this VideoTemplateInfo. + :type: int + """ + self._frame_rate = frame_rate + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VideoTemplateInfo): + 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-vod/huaweicloudsdkvod/v1/model/video_type_ref.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/video_type_ref.py new file mode 100644 index 0000000000..263359da4c --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/video_type_ref.py @@ -0,0 +1,403 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class VideoTypeRef: + + + """ + 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 = { + 'video_type': 'str', + 'title': 'str', + 'description': 'str', + 'category_id': 'int', + 'tags': 'str', + 'auto_publish': 'int', + 'template_group_name': 'str', + 'auto_encrypt': 'int', + 'auto_preheat': 'int', + 'thumbnail': 'Thumbnail', + 'review': 'Review', + 'workflow_name': 'str' + } + + attribute_map = { + 'video_type': 'video_type', + 'title': 'title', + 'description': 'description', + 'category_id': 'category_id', + 'tags': 'tags', + 'auto_publish': 'auto_publish', + 'template_group_name': 'template_group_name', + 'auto_encrypt': 'auto_encrypt', + 'auto_preheat': 'auto_preheat', + 'thumbnail': 'thumbnail', + 'review': 'review', + 'workflow_name': 'workflow_name' + } + + def __init__(self, video_type=None, title=None, description=None, category_id=None, tags=None, auto_publish=None, template_group_name=None, auto_encrypt=None, auto_preheat=None, thumbnail=None, review=None, workflow_name=None): + """VideoTypeRef - a model defined in huaweicloud sdk""" + + + + self._video_type = None + self._title = None + self._description = None + self._category_id = None + self._tags = None + self._auto_publish = None + self._template_group_name = None + self._auto_encrypt = None + self._auto_preheat = None + self._thumbnail = None + self._review = None + self._workflow_name = None + self.discriminator = None + + if video_type is not None: + self.video_type = video_type + if title is not None: + self.title = title + if description is not None: + self.description = description + if category_id is not None: + self.category_id = category_id + if tags is not None: + self.tags = tags + if auto_publish is not None: + self.auto_publish = auto_publish + if template_group_name is not None: + self.template_group_name = template_group_name + if auto_encrypt is not None: + self.auto_encrypt = auto_encrypt + if auto_preheat is not None: + self.auto_preheat = auto_preheat + if thumbnail is not None: + self.thumbnail = thumbnail + if review is not None: + self.review = review + if workflow_name is not None: + self.workflow_name = workflow_name + + @property + def video_type(self): + """Gets the video_type of this VideoTypeRef. + + 视频类型
+ + :return: The video_type of this VideoTypeRef. + :rtype: str + """ + return self._video_type + + @video_type.setter + def video_type(self, video_type): + """Sets the video_type of this VideoTypeRef. + + 视频类型
+ + :param video_type: The video_type of this VideoTypeRef. + :type: str + """ + self._video_type = video_type + + @property + def title(self): + """Gets the title of this VideoTypeRef. + + 媒资标题
+ + :return: The title of this VideoTypeRef. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this VideoTypeRef. + + 媒资标题
+ + :param title: The title of this VideoTypeRef. + :type: str + """ + self._title = title + + @property + def description(self): + """Gets the description of this VideoTypeRef. + + 视频描述
+ + :return: The description of this VideoTypeRef. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this VideoTypeRef. + + 视频描述
+ + :param description: The description of this VideoTypeRef. + :type: str + """ + self._description = description + + @property + def category_id(self): + """Gets the category_id of this VideoTypeRef. + + 媒资分类id
+ + :return: The category_id of this VideoTypeRef. + :rtype: int + """ + return self._category_id + + @category_id.setter + def category_id(self, category_id): + """Sets the category_id of this VideoTypeRef. + + 媒资分类id
+ + :param category_id: The category_id of this VideoTypeRef. + :type: int + """ + self._category_id = category_id + + @property + def tags(self): + """Gets the tags of this VideoTypeRef. + + 视频标签
+ + :return: The tags of this VideoTypeRef. + :rtype: str + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this VideoTypeRef. + + 视频标签
+ + :param tags: The tags of this VideoTypeRef. + :type: str + """ + self._tags = tags + + @property + def auto_publish(self): + """Gets the auto_publish of this VideoTypeRef. + + 是否自动发布
+ + :return: The auto_publish of this VideoTypeRef. + :rtype: int + """ + return self._auto_publish + + @auto_publish.setter + def auto_publish(self, auto_publish): + """Sets the auto_publish of this VideoTypeRef. + + 是否自动发布
+ + :param auto_publish: The auto_publish of this VideoTypeRef. + :type: int + """ + self._auto_publish = auto_publish + + @property + def template_group_name(self): + """Gets the template_group_name of this VideoTypeRef. + + 转码模板组名称
+ + :return: The template_group_name of this VideoTypeRef. + :rtype: str + """ + return self._template_group_name + + @template_group_name.setter + def template_group_name(self, template_group_name): + """Sets the template_group_name of this VideoTypeRef. + + 转码模板组名称
+ + :param template_group_name: The template_group_name of this VideoTypeRef. + :type: str + """ + self._template_group_name = template_group_name + + @property + def auto_encrypt(self): + """Gets the auto_encrypt of this VideoTypeRef. + + 是否自动加密,取值[0,1],0表示需要不加密;1表示需要加密。加密与转码必须要一起进行,当需要加密时,转码参数不能为空,且转码输出必须要为HLS + + :return: The auto_encrypt of this VideoTypeRef. + :rtype: int + """ + return self._auto_encrypt + + @auto_encrypt.setter + def auto_encrypt(self, auto_encrypt): + """Sets the auto_encrypt of this VideoTypeRef. + + 是否自动加密,取值[0,1],0表示需要不加密;1表示需要加密。加密与转码必须要一起进行,当需要加密时,转码参数不能为空,且转码输出必须要为HLS + + :param auto_encrypt: The auto_encrypt of this VideoTypeRef. + :type: int + """ + self._auto_encrypt = auto_encrypt + + @property + def auto_preheat(self): + """Gets the auto_preheat of this VideoTypeRef. + + 是否自动预热到CDN,取值[0,1],0表示不自动预热 + + :return: The auto_preheat of this VideoTypeRef. + :rtype: int + """ + return self._auto_preheat + + @auto_preheat.setter + def auto_preheat(self, auto_preheat): + """Sets the auto_preheat of this VideoTypeRef. + + 是否自动预热到CDN,取值[0,1],0表示不自动预热 + + :param auto_preheat: The auto_preheat of this VideoTypeRef. + :type: int + """ + self._auto_preheat = auto_preheat + + @property + def thumbnail(self): + """Gets the thumbnail of this VideoTypeRef. + + + :return: The thumbnail of this VideoTypeRef. + :rtype: Thumbnail + """ + return self._thumbnail + + @thumbnail.setter + def thumbnail(self, thumbnail): + """Sets the thumbnail of this VideoTypeRef. + + + :param thumbnail: The thumbnail of this VideoTypeRef. + :type: Thumbnail + """ + self._thumbnail = thumbnail + + @property + def review(self): + """Gets the review of this VideoTypeRef. + + + :return: The review of this VideoTypeRef. + :rtype: Review + """ + return self._review + + @review.setter + def review(self, review): + """Sets the review of this VideoTypeRef. + + + :param review: The review of this VideoTypeRef. + :type: Review + """ + self._review = review + + @property + def workflow_name(self): + """Gets the workflow_name of this VideoTypeRef. + + 工作流ID + + :return: The workflow_name of this VideoTypeRef. + :rtype: str + """ + return self._workflow_name + + @workflow_name.setter + def workflow_name(self, workflow_name): + """Sets the workflow_name of this VideoTypeRef. + + 工作流ID + + :param workflow_name: The workflow_name of this VideoTypeRef. + :type: str + """ + self._workflow_name = workflow_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VideoTypeRef): + 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-vod/huaweicloudsdkvod/v1/model/vod_sample_data.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/vod_sample_data.py new file mode 100644 index 0000000000..636873b1f3 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/vod_sample_data.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class VodSampleData: + + + """ + 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 = { + 'storage': 'float', + 'transcode': 'int' + } + + attribute_map = { + 'storage': 'storage', + 'transcode': 'transcode' + } + + def __init__(self, storage=None, transcode=None): + """VodSampleData - a model defined in huaweicloud sdk""" + + + + self._storage = None + self._transcode = None + self.discriminator = None + + if storage is not None: + self.storage = storage + if transcode is not None: + self.transcode = transcode + + @property + def storage(self): + """Gets the storage of this VodSampleData. + + 存储空间,单位:GB
+ + :return: The storage of this VodSampleData. + :rtype: float + """ + return self._storage + + @storage.setter + def storage(self, storage): + """Sets the storage of this VodSampleData. + + 存储空间,单位:GB
+ + :param storage: The storage of this VodSampleData. + :type: float + """ + self._storage = storage + + @property + def transcode(self): + """Gets the transcode of this VodSampleData. + + 转码时长,单位:秒
+ + :return: The transcode of this VodSampleData. + :rtype: int + """ + return self._transcode + + @transcode.setter + def transcode(self, transcode): + """Sets the transcode of this VodSampleData. + + 转码时长,单位:秒
+ + :param transcode: The transcode of this VodSampleData. + :type: int + """ + self._transcode = transcode + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VodSampleData): + 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-vod/huaweicloudsdkvod/v1/model/watermark_template.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/watermark_template.py new file mode 100644 index 0000000000..33e925d029 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/watermark_template.py @@ -0,0 +1,488 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class WatermarkTemplate: + + + """ + 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', + 'id': 'str', + 'status': 'int', + 'dx': 'str', + 'dy': 'str', + 'position': 'str', + 'width': 'str', + 'height': 'str', + 'create_time': 'str', + 'image_url': 'str', + 'type': 'str', + 'watermark_type': 'str', + 'image_process': 'str', + 'timeline_start': 'str', + 'timeline_duration': 'str' + } + + attribute_map = { + 'name': 'name', + 'id': 'id', + 'status': 'status', + 'dx': 'dx', + 'dy': 'dy', + 'position': 'position', + 'width': 'width', + 'height': 'height', + 'create_time': 'create_time', + 'image_url': 'image_url', + 'type': 'type', + 'watermark_type': 'watermark_type', + 'image_process': 'image_process', + 'timeline_start': 'timeline_start', + 'timeline_duration': 'timeline_duration' + } + + def __init__(self, name=None, id=None, status=None, dx=None, dy=None, position=None, width=None, height=None, create_time=None, image_url=None, type=None, watermark_type=None, image_process=None, timeline_start=None, timeline_duration=None): + """WatermarkTemplate - a model defined in huaweicloud sdk""" + + + + self._name = None + self._id = None + self._status = None + self._dx = None + self._dy = None + self._position = None + self._width = None + self._height = None + self._create_time = None + self._image_url = None + self._type = None + self._watermark_type = None + self._image_process = None + self._timeline_start = None + self._timeline_duration = None + self.discriminator = None + + if name is not None: + self.name = name + if id is not None: + self.id = id + if status is not None: + self.status = status + if dx is not None: + self.dx = dx + if dy is not None: + self.dy = dy + if position is not None: + self.position = position + if width is not None: + self.width = width + if height is not None: + self.height = height + if create_time is not None: + self.create_time = create_time + if image_url is not None: + self.image_url = image_url + if type is not None: + self.type = type + if watermark_type is not None: + self.watermark_type = watermark_type + if image_process is not None: + self.image_process = image_process + if timeline_start is not None: + self.timeline_start = timeline_start + if timeline_duration is not None: + self.timeline_duration = timeline_duration + + @property + def name(self): + """Gets the name of this WatermarkTemplate. + + 水印模板名称
+ + :return: The name of this WatermarkTemplate. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this WatermarkTemplate. + + 水印模板名称
+ + :param name: The name of this WatermarkTemplate. + :type: str + """ + self._name = name + + @property + def id(self): + """Gets the id of this WatermarkTemplate. + + 水印模板配置id
+ + :return: The id of this WatermarkTemplate. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this WatermarkTemplate. + + 水印模板配置id
+ + :param id: The id of this WatermarkTemplate. + :type: str + """ + self._id = id + + @property + def status(self): + """Gets the status of this WatermarkTemplate. + + 启用状态,取值为:0,停用;1,启用
+ + :return: The status of this WatermarkTemplate. + :rtype: int + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this WatermarkTemplate. + + 启用状态,取值为:0,停用;1,启用
+ + :param status: The status of this WatermarkTemplate. + :type: int + """ + self._status = status + + @property + def dx(self): + """Gets the dx of this WatermarkTemplate. + + 水印图片相对输出视频的水平偏移量,默认值是0
+ + :return: The dx of this WatermarkTemplate. + :rtype: str + """ + return self._dx + + @dx.setter + def dx(self, dx): + """Sets the dx of this WatermarkTemplate. + + 水印图片相对输出视频的水平偏移量,默认值是0
+ + :param dx: The dx of this WatermarkTemplate. + :type: str + """ + self._dx = dx + + @property + def dy(self): + """Gets the dy of this WatermarkTemplate. + + 水印图片相对输出视频的垂直偏移量,默认值是0
+ + :return: The dy of this WatermarkTemplate. + :rtype: str + """ + return self._dy + + @dy.setter + def dy(self, dy): + """Sets the dy of this WatermarkTemplate. + + 水印图片相对输出视频的垂直偏移量,默认值是0
+ + :param dy: The dy of this WatermarkTemplate. + :type: str + """ + self._dy = dy + + @property + def position(self): + """Gets the position of this WatermarkTemplate. + + 水印的位置
+ + :return: The position of this WatermarkTemplate. + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this WatermarkTemplate. + + 水印的位置
+ + :param position: The position of this WatermarkTemplate. + :type: str + """ + self._position = position + + @property + def width(self): + """Gets the width of this WatermarkTemplate. + + 水印图片宽
+ + :return: The width of this WatermarkTemplate. + :rtype: str + """ + return self._width + + @width.setter + def width(self, width): + """Sets the width of this WatermarkTemplate. + + 水印图片宽
+ + :param width: The width of this WatermarkTemplate. + :type: str + """ + self._width = width + + @property + def height(self): + """Gets the height of this WatermarkTemplate. + + 水印图片高
+ + :return: The height of this WatermarkTemplate. + :rtype: str + """ + return self._height + + @height.setter + def height(self, height): + """Sets the height of this WatermarkTemplate. + + 水印图片高
+ + :param height: The height of this WatermarkTemplate. + :type: str + """ + self._height = height + + @property + def create_time(self): + """Gets the create_time of this WatermarkTemplate. + + 创建时间
+ + :return: The create_time of this WatermarkTemplate. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this WatermarkTemplate. + + 创建时间
+ + :param create_time: The create_time of this WatermarkTemplate. + :type: str + """ + self._create_time = create_time + + @property + def image_url(self): + """Gets the image_url of this WatermarkTemplate. + + 水印图片下载url
+ + :return: The image_url of this WatermarkTemplate. + :rtype: str + """ + return self._image_url + + @image_url.setter + def image_url(self, image_url): + """Sets the image_url of this WatermarkTemplate. + + 水印图片下载url
+ + :param image_url: The image_url of this WatermarkTemplate. + :type: str + """ + self._image_url = image_url + + @property + def type(self): + """Gets the type of this WatermarkTemplate. + + 水印图片格式类型
+ + :return: The type of this WatermarkTemplate. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this WatermarkTemplate. + + 水印图片格式类型
+ + :param type: The type of this WatermarkTemplate. + :type: str + """ + self._type = type + + @property + def watermark_type(self): + """Gets the watermark_type of this WatermarkTemplate. + + 水印类型,当前只支持Image(图片水印)
+ + :return: The watermark_type of this WatermarkTemplate. + :rtype: str + """ + return self._watermark_type + + @watermark_type.setter + def watermark_type(self, watermark_type): + """Sets the watermark_type of this WatermarkTemplate. + + 水印类型,当前只支持Image(图片水印)
+ + :param watermark_type: The watermark_type of this WatermarkTemplate. + :type: str + """ + self._watermark_type = watermark_type + + @property + def image_process(self): + """Gets the image_process of this WatermarkTemplate. + + type设置为Image时有效,目前包括Original(只做简单缩放,不做其他处理),Transparent(图片底色透明),Grayed(彩色图片变灰)
+ + :return: The image_process of this WatermarkTemplate. + :rtype: str + """ + return self._image_process + + @image_process.setter + def image_process(self, image_process): + """Sets the image_process of this WatermarkTemplate. + + type设置为Image时有效,目前包括Original(只做简单缩放,不做其他处理),Transparent(图片底色透明),Grayed(彩色图片变灰)
+ + :param image_process: The image_process of this WatermarkTemplate. + :type: str + """ + self._image_process = image_process + + @property + def timeline_start(self): + """Gets the timeline_start of this WatermarkTemplate. + + 水印开始时间
+ + :return: The timeline_start of this WatermarkTemplate. + :rtype: str + """ + return self._timeline_start + + @timeline_start.setter + def timeline_start(self, timeline_start): + """Sets the timeline_start of this WatermarkTemplate. + + 水印开始时间
+ + :param timeline_start: The timeline_start of this WatermarkTemplate. + :type: str + """ + self._timeline_start = timeline_start + + @property + def timeline_duration(self): + """Gets the timeline_duration of this WatermarkTemplate. + + 水印持续时间
+ + :return: The timeline_duration of this WatermarkTemplate. + :rtype: str + """ + return self._timeline_duration + + @timeline_duration.setter + def timeline_duration(self, timeline_duration): + """Sets the timeline_duration of this WatermarkTemplate. + + 水印持续时间
+ + :param timeline_duration: The timeline_duration of this WatermarkTemplate. + :type: str + """ + self._timeline_duration = timeline_duration + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, WatermarkTemplate): + 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-vod/huaweicloudsdkvod/v1/region/__init__.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/region/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/region/vod_region.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/region/vod_region.py new file mode 100644 index 0000000000..f6fb07ab64 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/region/vod_region.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +import types +import six + +from huaweicloudsdkcore.region.region import Region + + +class VodRegion: + def __init__(self): + pass + + CN_EAST_2 = Region(id="cn-east-2", endpoint="https://vod.cn-east-2.myhuaweicloud.com") + + CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://vod.cn-north-1.myhuaweicloud.com") + + CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://vod.cn-north-4.myhuaweicloud.com") + + static_fields = { + "cn-east-2": CN_EAST_2, + "cn-north-1": CN_NORTH_1, + "cn-north-4": CN_NORTH_4, + } + + @staticmethod + def value_of(region_id, static_fields=types.MappingProxyType(static_fields) if six.PY3 else static_fields): + if region_id is None or len(region_id) == 0: + raise KeyError("Unexpected empty parameter: region_id.") + if not static_fields.get(region_id): + raise KeyError("Unexpected region_id: " + region_id) + return static_fields.get(region_id) + + diff --git a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/vod_async_client.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/vod_async_client.py new file mode 100644 index 0000000000..d071e26834 --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/vod_async_client.py @@ -0,0 +1,2962 @@ +# coding: utf-8 + +from __future__ import absolute_import + +import datetime +import re +import importlib + +import six + +from huaweicloudsdkcore.client import Client, ClientBuilder +from huaweicloudsdkcore.exceptions import exceptions +from huaweicloudsdkcore.utils import http_utils +from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest + + +class VodAsyncClient(Client): + """ + :param configuration: .Configuration object for this client + :param pool_threads: The number of threads to use for async requests + to the API. More threads means more concurrent API requests. + """ + + PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int if six.PY3 else long, + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'object': object, + } + + def __init__(self): + super(VodAsyncClient, self).__init__() + self.model_package = importlib.import_module("huaweicloudsdkvod.v1.model") + self.preset_headers = {'User-Agent': 'HuaweiCloud-SDK-Python'} + + @classmethod + def new_builder(cls, clazz=None): + if clazz is None: + return ClientBuilder(cls) + + if clazz.__name__ != "VodClient": + raise TypeError("client type error, support client type is VodClient") + + return ClientBuilder(clazz) + + def cancel_asset_transcode_task_async(self, request): + """取消媒资转码任务 + + ## 典型场景 ## 取消媒资转码任务。
## 接口功能 ## 取消媒资转码任务,只能取消排队中的转码任务。
## 接口约束 ## 无。
+ + :param CancelAssetTranscodeTaskRequest request + :return: CancelAssetTranscodeTaskResponse + """ + return self.cancel_asset_transcode_task_with_http_info(request) + + def cancel_asset_transcode_task_with_http_info(self, request): + """取消媒资转码任务 + + ## 典型场景 ## 取消媒资转码任务。
## 接口功能 ## 取消媒资转码任务,只能取消排队中的转码任务。
## 接口约束 ## 无。
+ + :param CancelAssetTranscodeTaskRequest request + :return: CancelAssetTranscodeTaskResponse + """ + + all_params = ['asset_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'asset_id' in local_var_params: + query_params.append(('asset_id', local_var_params['asset_id'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/process', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CancelAssetTranscodeTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def cancel_extract_audio_task_async(self, request): + """取消提取音频任务 + + ## 典型场景 ## 取消提取音频任务调用此接口
## 接口功能 ## 取消提取音频任务,只有排队中的音频任务才可以取消
## 接口约束 ## 无。
+ + :param CancelExtractAudioTaskRequest request + :return: CancelExtractAudioTaskResponse + """ + return self.cancel_extract_audio_task_with_http_info(request) + + def cancel_extract_audio_task_with_http_info(self, request): + """取消提取音频任务 + + ## 典型场景 ## 取消提取音频任务调用此接口
## 接口功能 ## 取消提取音频任务,只有排队中的音频任务才可以取消
## 接口约束 ## 无。
+ + :param CancelExtractAudioTaskRequest request + :return: CancelExtractAudioTaskResponse + """ + + all_params = ['asset_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'asset_id' in local_var_params: + query_params.append(('asset_id', local_var_params['asset_id'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/extract_audio', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CancelExtractAudioTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def check_md5_duplication_async(self, request): + """文件上传MD5校验 + + 查询音视频MD5是否重复 + + :param CheckMd5DuplicationRequest request + :return: CheckMd5DuplicationResponse + """ + return self.check_md5_duplication_with_http_info(request) + + def check_md5_duplication_with_http_info(self, request): + """文件上传MD5校验 + + 查询音视频MD5是否重复 + + :param CheckMd5DuplicationRequest request + :return: CheckMd5DuplicationResponse + """ + + all_params = ['size', 'md5'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'size' in local_var_params: + query_params.append(('size', local_var_params['size'])) + if 'md5' in local_var_params: + query_params.append(('md5', local_var_params['md5'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/duplication', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CheckMd5DuplicationResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def confirm_asset_upload_async(self, request): + """确认媒资上传 + + ## 典型场景 ## 确认媒资上传时调用此接口。
## 接口功能 ## 确认媒资上传。
## 接口约束 ## 无。
+ + :param ConfirmAssetUploadRequest request + :return: ConfirmAssetUploadResponse + """ + return self.confirm_asset_upload_with_http_info(request) + + def confirm_asset_upload_with_http_info(self, request): + """确认媒资上传 + + ## 典型场景 ## 确认媒资上传时调用此接口。
## 接口功能 ## 确认媒资上传。
## 接口约束 ## 无。
+ + :param ConfirmAssetUploadRequest request + :return: ConfirmAssetUploadResponse + """ + + all_params = ['confirm_asset_upload_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/status/uploaded', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ConfirmAssetUploadResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def confirm_image_upload_async(self, request): + """确认水印图片上传 + + ## 典型场景 ## 确认水印图片上传调用此接口
## 接口功能 ## 确认水印图片是否已经上传至对象存储
## 接口约束 ## 无。
+ + :param ConfirmImageUploadRequest request + :return: ConfirmImageUploadResponse + """ + return self.confirm_image_upload_with_http_info(request) + + def confirm_image_upload_with_http_info(self, request): + """确认水印图片上传 + + ## 典型场景 ## 确认水印图片上传调用此接口
## 接口功能 ## 确认水印图片是否已经上传至对象存储
## 接口约束 ## 无。
+ + :param ConfirmImageUploadRequest request + :return: ConfirmImageUploadResponse + """ + + all_params = ['confirm_image_upload_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/watermark/status/uploaded', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ConfirmImageUploadResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_asset_by_file_upload_async(self, request): + """上传方式创建媒资 + + 上传方式创建媒资。 + + :param CreateAssetByFileUploadRequest request + :return: CreateAssetByFileUploadResponse + """ + return self.create_asset_by_file_upload_with_http_info(request) + + def create_asset_by_file_upload_with_http_info(self, request): + """上传方式创建媒资 + + 上传方式创建媒资。 + + :param CreateAssetByFileUploadRequest request + :return: CreateAssetByFileUploadResponse + """ + + all_params = ['create_asset_by_file_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateAssetByFileUploadResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_asset_category_async(self, request): + """创建媒资分类 + + ## 典型场景 ## 创建媒资分类。
## 接口功能 ## 创建媒资分类。
## 接口约束 ## 最大支持三级分类,每个分类最多支持创建128个子分类。
+ + :param CreateAssetCategoryRequest request + :return: CreateAssetCategoryResponse + """ + return self.create_asset_category_with_http_info(request) + + def create_asset_category_with_http_info(self, request): + """创建媒资分类 + + ## 典型场景 ## 创建媒资分类。
## 接口功能 ## 创建媒资分类。
## 接口约束 ## 最大支持三级分类,每个分类最多支持创建128个子分类。
+ + :param CreateAssetCategoryRequest request + :return: CreateAssetCategoryResponse + """ + + all_params = ['create_category_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/category', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateAssetCategoryResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_asset_process_task_async(self, request): + """媒资处理 + + ## 典型场景 ## 媒资处理。
## 接口功能 ## 媒资处理。
## 接口约束 ## 无。
+ + :param CreateAssetProcessTaskRequest request + :return: CreateAssetProcessTaskResponse + """ + return self.create_asset_process_task_with_http_info(request) + + def create_asset_process_task_with_http_info(self, request): + """媒资处理 + + ## 典型场景 ## 媒资处理。
## 接口功能 ## 媒资处理。
## 接口约束 ## 无。
+ + :param CreateAssetProcessTaskRequest request + :return: CreateAssetProcessTaskResponse + """ + + all_params = ['asset_process_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/process', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateAssetProcessTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_asset_review_task_async(self, request): + """创建审核媒资任务 + + 媒资审核接口 + + :param CreateAssetReviewTaskRequest request + :return: CreateAssetReviewTaskResponse + """ + return self.create_asset_review_task_with_http_info(request) + + def create_asset_review_task_with_http_info(self, request): + """创建审核媒资任务 + + 媒资审核接口 + + :param CreateAssetReviewTaskRequest request + :return: CreateAssetReviewTaskResponse + """ + + all_params = ['asset_review_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/review', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateAssetReviewTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_extract_audio_task_async(self, request): + """视频媒资提取音频 + + ## 典型场景 ## 从媒资中提取音频调用此接口
## 接口功能 ## 视频媒资提取音频
## 接口约束 ## 无。
+ + :param CreateExtractAudioTaskRequest request + :return: CreateExtractAudioTaskResponse + """ + return self.create_extract_audio_task_with_http_info(request) + + def create_extract_audio_task_with_http_info(self, request): + """视频媒资提取音频 + + ## 典型场景 ## 从媒资中提取音频调用此接口
## 接口功能 ## 视频媒资提取音频
## 接口约束 ## 无。
+ + :param CreateExtractAudioTaskRequest request + :return: CreateExtractAudioTaskResponse + """ + + all_params = ['extract_audio_task_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/extract_audio', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateExtractAudioTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_template_group_async(self, request): + """创建自定义模板组 + + ## 典型场景 ## 创建自定义模板组时调用此接口。
## 接口功能 ## 创建模板组。
## 接口约束 ## 无。
+ + :param CreateTemplateGroupRequest request + :return: CreateTemplateGroupResponse + """ + return self.create_template_group_with_http_info(request) + + def create_template_group_with_http_info(self, request): + """创建自定义模板组 + + ## 典型场景 ## 创建自定义模板组时调用此接口。
## 接口功能 ## 创建模板组。
## 接口约束 ## 无。
+ + :param CreateTemplateGroupRequest request + :return: CreateTemplateGroupResponse + """ + + all_params = ['trans_template_group'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/template_group/transcodings', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateTemplateGroupResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_watermark_template_async(self, request): + """创建水印模板 + + ## 典型场景 ## 创建水印模板调用此接口
## 接口功能 ## 创建水印模板
## 接口约束 ## 无。
+ + :param CreateWatermarkTemplateRequest request + :return: CreateWatermarkTemplateResponse + """ + return self.create_watermark_template_with_http_info(request) + + def create_watermark_template_with_http_info(self, request): + """创建水印模板 + + ## 典型场景 ## 创建水印模板调用此接口
## 接口功能 ## 创建水印模板
## 接口约束 ## 无。
+ + :param CreateWatermarkTemplateRequest request + :return: CreateWatermarkTemplateResponse + """ + + all_params = ['create_watermark_template_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/template/watermark', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateWatermarkTemplateResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_asset_category_async(self, request): + """删除媒资分类 + + ## 典型场景 ## 删除媒资分类。
## 接口功能 ## 删除媒资分类。
## 接口约束 ## 无。
+ + :param DeleteAssetCategoryRequest request + :return: DeleteAssetCategoryResponse + """ + return self.delete_asset_category_with_http_info(request) + + def delete_asset_category_with_http_info(self, request): + """删除媒资分类 + + ## 典型场景 ## 删除媒资分类。
## 接口功能 ## 删除媒资分类。
## 接口约束 ## 无。
+ + :param DeleteAssetCategoryRequest request + :return: DeleteAssetCategoryResponse + """ + + all_params = ['id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'id' in local_var_params: + query_params.append(('id', local_var_params['id'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/category', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteAssetCategoryResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_assets_async(self, request): + """删除媒资,支持批量删除 + + ## 典型场景 ## 删除媒资,支持批量删除。
## 接口功能 ## 删除媒资,支持批量删除。
## 接口约束 ## 最多删除十个。
+ + :param DeleteAssetsRequest request + :return: DeleteAssetsResponse + """ + return self.delete_assets_with_http_info(request) + + def delete_assets_with_http_info(self, request): + """删除媒资,支持批量删除 + + ## 典型场景 ## 删除媒资,支持批量删除。
## 接口功能 ## 删除媒资,支持批量删除。
## 接口约束 ## 最多删除十个。
+ + :param DeleteAssetsRequest request + :return: DeleteAssetsResponse + """ + + all_params = ['asset_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'asset_id' in local_var_params: + query_params.append(('asset_id', local_var_params['asset_id'])) + collection_formats['asset_id'] = 'multi' + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteAssetsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_template_group_async(self, request): + """删除自定义模板组 + + ## 典型场景 ## 删除自定义模板组接口。
## 接口功能 ## 删除自定义模板组。
## 接口约束 ## 无。
+ + :param DeleteTemplateGroupRequest request + :return: DeleteTemplateGroupResponse + """ + return self.delete_template_group_with_http_info(request) + + def delete_template_group_with_http_info(self, request): + """删除自定义模板组 + + ## 典型场景 ## 删除自定义模板组接口。
## 接口功能 ## 删除自定义模板组。
## 接口约束 ## 无。
+ + :param DeleteTemplateGroupRequest request + :return: DeleteTemplateGroupResponse + """ + + all_params = ['group_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'group_id' in local_var_params: + query_params.append(('group_id', local_var_params['group_id'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/template_group/transcodings', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteTemplateGroupResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_watermark_template_async(self, request): + """删除水印模板 + + ## 典型场景 ## 删除水印模板
## 接口功能 ## 删除水印模板
## 接口约束 ## 无
+ + :param DeleteWatermarkTemplateRequest request + :return: DeleteWatermarkTemplateResponse + """ + return self.delete_watermark_template_with_http_info(request) + + def delete_watermark_template_with_http_info(self, request): + """删除水印模板 + + ## 典型场景 ## 删除水印模板
## 接口功能 ## 删除水印模板
## 接口约束 ## 无
+ + :param DeleteWatermarkTemplateRequest request + :return: DeleteWatermarkTemplateResponse + """ + + all_params = ['id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'id' in local_var_params: + query_params.append(('id', local_var_params['id'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/template/watermark', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteWatermarkTemplateResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_asset_category_async(self, request): + """查询指定分类信息 + + ## 典型场景 ## 查询指定分类信息,及其子分类(即下一级分类)的列表。
## 接口功能 ## 查询指定分类信息。
## 接口约束 ## 无。
+ + :param ListAssetCategoryRequest request + :return: ListAssetCategoryResponse + """ + return self.list_asset_category_with_http_info(request) + + def list_asset_category_with_http_info(self, request): + """查询指定分类信息 + + ## 典型场景 ## 查询指定分类信息,及其子分类(即下一级分类)的列表。
## 接口功能 ## 查询指定分类信息。
## 接口约束 ## 无。
+ + :param ListAssetCategoryRequest request + :return: ListAssetCategoryResponse + """ + + all_params = ['id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'id' in local_var_params: + query_params.append(('id', local_var_params['id'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/category', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListAssetCategoryResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_asset_list_async(self, request): + """查询媒资列表 + + 查询媒资列表 + + :param ListAssetListRequest request + :return: ListAssetListResponse + """ + return self.list_asset_list_with_http_info(request) + + def list_asset_list_with_http_info(self, request): + """查询媒资列表 + + 查询媒资列表 + + :param ListAssetListRequest request + :return: ListAssetListResponse + """ + + all_params = ['asset_id', 'status', 'start_time', 'end_time', 'category_id', 'tags', 'query_string', 'media_type', 'page', 'size', 'order'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'asset_id' in local_var_params: + query_params.append(('asset_id', local_var_params['asset_id'])) + collection_formats['asset_id'] = 'csv' + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + collection_formats['status'] = 'csv' + 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 'category_id' in local_var_params: + query_params.append(('category_id', local_var_params['category_id'])) + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) + if 'query_string' in local_var_params: + query_params.append(('query_string', local_var_params['query_string'])) + if 'media_type' in local_var_params: + query_params.append(('media_type', local_var_params['media_type'])) + collection_formats['media_type'] = 'csv' + if 'page' in local_var_params: + query_params.append(('page', local_var_params['page'])) + if 'size' in local_var_params: + query_params.append(('size', local_var_params['size'])) + if 'order' in local_var_params: + query_params.append(('order', local_var_params['order'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/list', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListAssetListResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_template_group_async(self, request): + """查询模板组列表 + + ## 典型场景 ## 查询模板组列表调用此接口。
## 接口功能 ## 查询模板组列表。
## 接口约束 ## 无。
+ + :param ListTemplateGroupRequest request + :return: ListTemplateGroupResponse + """ + return self.list_template_group_with_http_info(request) + + def list_template_group_with_http_info(self, request): + """查询模板组列表 + + ## 典型场景 ## 查询模板组列表调用此接口。
## 接口功能 ## 查询模板组列表。
## 接口约束 ## 无。
+ + :param ListTemplateGroupRequest request + :return: ListTemplateGroupResponse + """ + + all_params = ['group_id', 'status', 'page', 'size'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'group_id' in local_var_params: + query_params.append(('group_id', local_var_params['group_id'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + if 'page' in local_var_params: + query_params.append(('page', local_var_params['page'])) + if 'size' in local_var_params: + query_params.append(('size', local_var_params['size'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/template_group/transcodings', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListTemplateGroupResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_top_statistics_async(self, request): + """查询TopN播放视频信息 + + ## 典型场景 ## 查询TopN播放视频信息 。
## 接口功能 ## 查询TopN播放视频信息 。
## 接口约束 ## 无。
+ + :param ListTopStatisticsRequest request + :return: ListTopStatisticsResponse + """ + return self.list_top_statistics_with_http_info(request) + + def list_top_statistics_with_http_info(self, request): + """查询TopN播放视频信息 + + ## 典型场景 ## 查询TopN播放视频信息 。
## 接口功能 ## 查询TopN播放视频信息 。
## 接口约束 ## 无。
+ + :param ListTopStatisticsRequest request + :return: ListTopStatisticsResponse + """ + + all_params = ['domain', 'date'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'domain' in local_var_params: + query_params.append(('domain', local_var_params['domain'])) + if 'date' in local_var_params: + query_params.append(('date', local_var_params['date'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/top-statistics', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListTopStatisticsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_watermark_template_async(self, request): + """查询水印列表 + + ## 典型场景 ## 查询水印模板
## 接口功能 ## 查询水印模板
## 接口约束 ## 查询所有水印
+ + :param ListWatermarkTemplateRequest request + :return: ListWatermarkTemplateResponse + """ + return self.list_watermark_template_with_http_info(request) + + def list_watermark_template_with_http_info(self, request): + """查询水印列表 + + ## 典型场景 ## 查询水印模板
## 接口功能 ## 查询水印模板
## 接口约束 ## 查询所有水印
+ + :param ListWatermarkTemplateRequest request + :return: ListWatermarkTemplateResponse + """ + + all_params = ['id', 'page', 'size'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'id' in local_var_params: + query_params.append(('id', local_var_params['id'])) + collection_formats['id'] = 'multi' + if 'page' in local_var_params: + query_params.append(('page', local_var_params['page'])) + if 'size' in local_var_params: + query_params.append(('size', local_var_params['size'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/template/watermark', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListWatermarkTemplateResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def publish_asset_from_obs_async(self, request): + """从OBS一键发布媒资 + + ## 典型场景 ## 从OBS转存媒资,一键发布。
## 接口功能 ## 在OBS中的媒资一键发布到VOD。
## 接口约束 ## OBS的桶必须先授权给VOD服务用户。
+ + :param PublishAssetFromObsRequest request + :return: PublishAssetFromObsResponse + """ + return self.publish_asset_from_obs_with_http_info(request) + + def publish_asset_from_obs_with_http_info(self, request): + """从OBS一键发布媒资 + + ## 典型场景 ## 从OBS转存媒资,一键发布。
## 接口功能 ## 在OBS中的媒资一键发布到VOD。
## 接口约束 ## OBS的桶必须先授权给VOD服务用户。
+ + :param PublishAssetFromObsRequest request + :return: PublishAssetFromObsResponse + """ + + all_params = ['publish_asset_from_obs_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/reproduction', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='PublishAssetFromObsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def publish_assets_async(self, request): + """媒资发布 + + ## 典型场景 ## 媒资发布,支持批量发布。
## 接口功能 ## 媒资发布,支持批量发布。
## 接口约束 ## 无。
+ + :param PublishAssetsRequest request + :return: PublishAssetsResponse + """ + return self.publish_assets_with_http_info(request) + + def publish_assets_with_http_info(self, request): + """媒资发布 + + ## 典型场景 ## 媒资发布,支持批量发布。
## 接口功能 ## 媒资发布,支持批量发布。
## 接口约束 ## 无。
+ + :param PublishAssetsRequest request + :return: PublishAssetsResponse + """ + + all_params = ['publish_asset_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/status/publish', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='PublishAssetsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_asset_detail_async(self, request): + """查询指定媒资的详细信息 + + 查询指定媒资的详细信息 + + :param ShowAssetDetailRequest request + :return: ShowAssetDetailResponse + """ + return self.show_asset_detail_with_http_info(request) + + def show_asset_detail_with_http_info(self, request): + """查询指定媒资的详细信息 + + 查询指定媒资的详细信息 + + :param ShowAssetDetailRequest request + :return: ShowAssetDetailResponse + """ + + all_params = ['asset_id', 'categories'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'asset_id' in local_var_params: + query_params.append(('asset_id', local_var_params['asset_id'])) + if 'categories' in local_var_params: + query_params.append(('categories', local_var_params['categories'])) + collection_formats['categories'] = 'csv' + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/details', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowAssetDetailResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_asset_meta_async(self, request): + """查询媒资信息 + + ## 典型场景 ## 查询媒资信息。
## 接口功能 ## 查询媒资信息。
## 接口约束 ## 最多同时查询10个。
+ + :param ShowAssetMetaRequest request + :return: ShowAssetMetaResponse + """ + return self.show_asset_meta_with_http_info(request) + + def show_asset_meta_with_http_info(self, request): + """查询媒资信息 + + ## 典型场景 ## 查询媒资信息。
## 接口功能 ## 查询媒资信息。
## 接口约束 ## 最多同时查询10个。
+ + :param ShowAssetMetaRequest request + :return: ShowAssetMetaResponse + """ + + all_params = ['asset_id', 'status', 'transcode_status', 'asset_status', 'start_time', 'end_time', 'category_id', 'tags', 'query_string', 'page', 'size', 'order'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'asset_id' in local_var_params: + query_params.append(('asset_id', local_var_params['asset_id'])) + collection_formats['asset_id'] = 'multi' + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + collection_formats['status'] = 'multi' + if 'transcode_status' in local_var_params: + query_params.append(('transcodeStatus', local_var_params['transcode_status'])) + collection_formats['transcodeStatus'] = 'multi' + if 'asset_status' in local_var_params: + query_params.append(('assetStatus', local_var_params['asset_status'])) + collection_formats['assetStatus'] = 'multi' + 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 'category_id' in local_var_params: + query_params.append(('category_id', local_var_params['category_id'])) + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) + if 'query_string' in local_var_params: + query_params.append(('query_string', local_var_params['query_string'])) + if 'page' in local_var_params: + query_params.append(('page', local_var_params['page'])) + if 'size' in local_var_params: + query_params.append(('size', local_var_params['size'])) + if 'order' in local_var_params: + query_params.append(('order', local_var_params['order'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/info', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowAssetMetaResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_asset_temp_authority_async(self, request): + """获取授权(New Version) + + 客户端请求创建媒资时,如果媒资文件超过100MB,需采用分段的方式向OBS上传,在每次与OBS交互前,客户端需通过此接口获取到授权方可与OBS交互。 + + :param ShowAssetTempAuthorityRequest request + :return: ShowAssetTempAuthorityResponse + """ + return self.show_asset_temp_authority_with_http_info(request) + + def show_asset_temp_authority_with_http_info(self, request): + """获取授权(New Version) + + 客户端请求创建媒资时,如果媒资文件超过100MB,需采用分段的方式向OBS上传,在每次与OBS交互前,客户端需通过此接口获取到授权方可与OBS交互。 + + :param ShowAssetTempAuthorityRequest request + :return: ShowAssetTempAuthorityResponse + """ + + all_params = ['http_verb', 'bucket', 'object_key', 'content_md5', 'content_type', 'upload_id', 'part_number'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'http_verb' in local_var_params: + query_params.append(('http_verb', local_var_params['http_verb'])) + if 'content_md5' in local_var_params: + query_params.append(('content_md5', local_var_params['content_md5'])) + if 'content_type' in local_var_params: + query_params.append(('content_type', local_var_params['content_type'])) + if 'bucket' in local_var_params: + query_params.append(('bucket', local_var_params['bucket'])) + if 'object_key' in local_var_params: + query_params.append(('object_key', local_var_params['object_key'])) + if 'upload_id' in local_var_params: + query_params.append(('upload_id', local_var_params['upload_id'])) + if 'part_number' in local_var_params: + query_params.append(('part_number', local_var_params['part_number'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.1/{project_id}/asset/authority', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowAssetTempAuthorityResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_cdn_statistics_async(self, request): + """查询域名的cdn数据信息 + + ## 典型场景 ## 查询域名的cdn数据信息 。
## 接口功能 ## 查询域名的cdn数据信息 。
## 接口约束 ## 无。
+ + :param ShowCdnStatisticsRequest request + :return: ShowCdnStatisticsResponse + """ + return self.show_cdn_statistics_with_http_info(request) + + def show_cdn_statistics_with_http_info(self, request): + """查询域名的cdn数据信息 + + ## 典型场景 ## 查询域名的cdn数据信息 。
## 接口功能 ## 查询域名的cdn数据信息 。
## 接口约束 ## 无。
+ + :param ShowCdnStatisticsRequest request + :return: ShowCdnStatisticsResponse + """ + + all_params = ['stat_type', 'domain', 'start_time', 'end_time', 'interval'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + 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 'stat_type' in local_var_params: + query_params.append(('stat_type', local_var_params['stat_type'])) + if 'domain' in local_var_params: + query_params.append(('domain', local_var_params['domain'])) + if 'interval' in local_var_params: + query_params.append(('interval', local_var_params['interval'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/cdn-statistics', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowCdnStatisticsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_vod_statistics_async(self, request): + """查询源站数据信息 + + ## 典型场景 ## 用于查询点播源站相关的统计数据,包括流量、存储空间、转码时长等 。
## 接口功能 ## 用于查询点播源站相关的统计数据,包括流量、存储空间、转码时长等 。
## 接口约束 ## 无。
+ + :param ShowVodStatisticsRequest request + :return: ShowVodStatisticsResponse + """ + return self.show_vod_statistics_with_http_info(request) + + def show_vod_statistics_with_http_info(self, request): + """查询源站数据信息 + + ## 典型场景 ## 用于查询点播源站相关的统计数据,包括流量、存储空间、转码时长等 。
## 接口功能 ## 用于查询点播源站相关的统计数据,包括流量、存储空间、转码时长等 。
## 接口约束 ## 无。
+ + :param ShowVodStatisticsRequest request + :return: ShowVodStatisticsResponse + """ + + all_params = ['start_time', 'end_time', 'interval'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + 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 'interval' in local_var_params: + query_params.append(('interval', local_var_params['interval'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/vod-statistics', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowVodStatisticsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def unpublish_assets_async(self, request): + """媒资取消发布 + + ## 典型场景 ## 媒资取消发布。
## 接口功能 ## 媒资取消发布。
## 接口约束 ## 无。
+ + :param UnpublishAssetsRequest request + :return: UnpublishAssetsResponse + """ + return self.unpublish_assets_with_http_info(request) + + def unpublish_assets_with_http_info(self, request): + """媒资取消发布 + + ## 典型场景 ## 媒资取消发布。
## 接口功能 ## 媒资取消发布。
## 接口约束 ## 无。
+ + :param UnpublishAssetsRequest request + :return: UnpublishAssetsResponse + """ + + all_params = ['unpublish_asset_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/status/unpublish', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UnpublishAssetsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_asset_async(self, request): + """媒资更新 + + ## 典型场景 ## 媒资更新,单独上传封面、更新视频文件或更新已有封面。
## 接口功能 ## 媒资更新。
## 接口约束 ## 无。
+ + :param UpdateAssetRequest request + :return: UpdateAssetResponse + """ + return self.update_asset_with_http_info(request) + + def update_asset_with_http_info(self, request): + """媒资更新 + + ## 典型场景 ## 媒资更新,单独上传封面、更新视频文件或更新已有封面。
## 接口功能 ## 媒资更新。
## 接口约束 ## 无。
+ + :param UpdateAssetRequest request + :return: UpdateAssetResponse + """ + + all_params = ['update_asset_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateAssetResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_asset_category_async(self, request): + """修改媒资分类 + + ## 典型场景 ## 修改媒资分类。
## 接口功能 ## 修改媒资分类。
## 接口约束 ## 无。
+ + :param UpdateAssetCategoryRequest request + :return: UpdateAssetCategoryResponse + """ + return self.update_asset_category_with_http_info(request) + + def update_asset_category_with_http_info(self, request): + """修改媒资分类 + + ## 典型场景 ## 修改媒资分类。
## 接口功能 ## 修改媒资分类。
## 接口约束 ## 无。
+ + :param UpdateAssetCategoryRequest request + :return: UpdateAssetCategoryResponse + """ + + all_params = ['update_category_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/category', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateAssetCategoryResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_asset_meta_async(self, request): + """更新媒资信息 + + ## 典型场景 ## 更新媒资信息。
## 接口功能 ## 更新媒资信息。
## 接口约束 ## 无。
+ + :param UpdateAssetMetaRequest request + :return: UpdateAssetMetaResponse + """ + return self.update_asset_meta_with_http_info(request) + + def update_asset_meta_with_http_info(self, request): + """更新媒资信息 + + ## 典型场景 ## 更新媒资信息。
## 接口功能 ## 更新媒资信息。
## 接口约束 ## 无。
+ + :param UpdateAssetMetaRequest request + :return: UpdateAssetMetaResponse + """ + + all_params = ['update_asset_meta_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/info', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateAssetMetaResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_bucket_authorized_async(self, request): + """修改桶授权 + + ## 典型场景 ## 用户通过桶策略方式授权给VOD用户操作桶的权限。
## 接口功能 ## 用户通过桶策略方式授权给VOD用户操作桶的权限。
## 接口约束 ## 无。
+ + :param UpdateBucketAuthorizedRequest request + :return: UpdateBucketAuthorizedResponse + """ + return self.update_bucket_authorized_with_http_info(request) + + def update_bucket_authorized_with_http_info(self, request): + """修改桶授权 + + ## 典型场景 ## 用户通过桶策略方式授权给VOD用户操作桶的权限。
## 接口功能 ## 用户通过桶策略方式授权给VOD用户操作桶的权限。
## 接口约束 ## 无。
+ + :param UpdateBucketAuthorizedRequest request + :return: UpdateBucketAuthorizedResponse + """ + + all_params = ['bucket_authorized_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/authority', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateBucketAuthorizedResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_cover_by_thumbnail_async(self, request): + """租户选择截图,来更新封面 + + ## 典型场景 ## 租户选择截图,来更新封面。
## 接口功能 ## 租户选择截图,来更新封面 。
## 接口约束 ## 无。
+ + :param UpdateCoverByThumbnailRequest request + :return: UpdateCoverByThumbnailResponse + """ + return self.update_cover_by_thumbnail_with_http_info(request) + + def update_cover_by_thumbnail_with_http_info(self, request): + """租户选择截图,来更新封面 + + ## 典型场景 ## 租户选择截图,来更新封面。
## 接口功能 ## 租户选择截图,来更新封面 。
## 接口约束 ## 无。
+ + :param UpdateCoverByThumbnailRequest request + :return: UpdateCoverByThumbnailResponse + """ + + all_params = ['update_cover_by_thumbnail_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/cover', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateCoverByThumbnailResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_template_group_async(self, request): + """修改模板组 + + ## 典型场景 ## 修改模板组接口。
## 接口功能 ## 修改模板组。
## 接口约束 ## 无。
+ + :param UpdateTemplateGroupRequest request + :return: UpdateTemplateGroupResponse + """ + return self.update_template_group_with_http_info(request) + + def update_template_group_with_http_info(self, request): + """修改模板组 + + ## 典型场景 ## 修改模板组接口。
## 接口功能 ## 修改模板组。
## 接口约束 ## 无。
+ + :param UpdateTemplateGroupRequest request + :return: UpdateTemplateGroupResponse + """ + + all_params = ['trans_template_group'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/template_group/transcodings', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateTemplateGroupResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_watermark_template_async(self, request): + """修改水印模板 + + ## 典型场景 ## 修改水印模板
## 接口功能 ## 修改水印模板
## 接口约束 ## 无
+ + :param UpdateWatermarkTemplateRequest request + :return: UpdateWatermarkTemplateResponse + """ + return self.update_watermark_template_with_http_info(request) + + def update_watermark_template_with_http_info(self, request): + """修改水印模板 + + ## 典型场景 ## 修改水印模板
## 接口功能 ## 修改水印模板
## 接口约束 ## 无
+ + :param UpdateWatermarkTemplateRequest request + :return: UpdateWatermarkTemplateResponse + """ + + all_params = ['update_watermark_template_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/template/watermark', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateWatermarkTemplateResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def upload_meta_data_by_url_async(self, request): + """通过URL拉取方式创建媒资 + + ## 典型场景 ## 创建媒资:URL拉取注入。
## 接口功能 ## 创建媒资:URL拉取注入。
## 接口约束 ## 无
+ + :param UploadMetaDataByUrlRequest request + :return: UploadMetaDataByUrlResponse + """ + return self.upload_meta_data_by_url_with_http_info(request) + + def upload_meta_data_by_url_with_http_info(self, request): + """通过URL拉取方式创建媒资 + + ## 典型场景 ## 创建媒资:URL拉取注入。
## 接口功能 ## 创建媒资:URL拉取注入。
## 接口约束 ## 无
+ + :param UploadMetaDataByUrlRequest request + :return: UploadMetaDataByUrlResponse + """ + + all_params = ['upload_meta_data_by_url_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/upload_by_url', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UploadMetaDataByUrlResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_preheating_asset_async(self, request): + """CDN预热 + + ## 典型场景 ## 点播发布后可向CDN预热。
## 接口功能 ## CDN预热。
## 接口约束 ## 无。
+ + :param CreatePreheatingAssetRequest request + :return: CreatePreheatingAssetResponse + """ + return self.create_preheating_asset_with_http_info(request) + + def create_preheating_asset_with_http_info(self, request): + """CDN预热 + + ## 典型场景 ## 点播发布后可向CDN预热。
## 接口功能 ## CDN预热。
## 接口约束 ## 无。
+ + :param CreatePreheatingAssetRequest request + :return: CreatePreheatingAssetResponse + """ + + all_params = ['create_preheating_asset_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/preheating', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreatePreheatingAssetResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_preheating_asset_async(self, request): + """查询CDN预热 + + ## 典型场景 ## 向CDN查询预热。
## 接口功能 ## 查询CDN预热。
## 接口约束 ## 无。
+ + :param ShowPreheatingAssetRequest request + :return: ShowPreheatingAssetResponse + """ + return self.show_preheating_asset_with_http_info(request) + + def show_preheating_asset_with_http_info(self, request): + """查询CDN预热 + + ## 典型场景 ## 向CDN查询预热。
## 接口功能 ## 查询CDN预热。
## 接口约束 ## 无。
+ + :param ShowPreheatingAssetRequest request + :return: ShowPreheatingAssetResponse + """ + + all_params = ['task_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'task_id' in local_var_params: + query_params.append(('task_id', local_var_params['task_id'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/preheating', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowPreheatingAssetResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_asset_cipher_async(self, request): + """查询密钥 + + ## 典型场景 ## 终端在尝试播放加密HLS时会先向租户Server请求密钥,租户Server则对终端身份进行认证,认证通过后再向VOD查询密钥
## 接口功能 ## 查询密钥
## 接口约束 ## 暂无
+ + :param ShowAssetCipherRequest request + :return: ShowAssetCipherResponse + """ + return self.show_asset_cipher_with_http_info(request) + + def show_asset_cipher_with_http_info(self, request): + """查询密钥 + + ## 典型场景 ## 终端在尝试播放加密HLS时会先向租户Server请求密钥,租户Server则对终端身份进行认证,认证通过后再向VOD查询密钥
## 接口功能 ## 查询密钥
## 接口约束 ## 暂无
+ + :param ShowAssetCipherRequest request + :return: ShowAssetCipherResponse + """ + + all_params = ['asset_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'asset_id' in local_var_params: + query_params.append(('asset_id', local_var_params['asset_id'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/ciphers', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowAssetCipherResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_take_over_task_async(self, request): + """创建托管任务 + + ## 典型场景 ## 创建托管任务
## 接口功能 ##
## 接口约束 ##
+ + :param CreateTakeOverTaskRequest request + :return: CreateTakeOverTaskResponse + """ + return self.create_take_over_task_with_http_info(request) + + def create_take_over_task_with_http_info(self, request): + """创建托管任务 + + ## 典型场景 ## 创建托管任务
## 接口功能 ##
## 接口约束 ##
+ + :param CreateTakeOverTaskRequest request + :return: CreateTakeOverTaskResponse + """ + + all_params = ['create_take_over_task_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/obs/host/stock/task', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateTakeOverTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_take_over_task_async(self, request): + """查询托管任务 + + ## 典型场景 ## 查询托管任务
## 接口功能 ## 查询托管任务
## 接口约束 ##
+ + :param ListTakeOverTaskRequest request + :return: ListTakeOverTaskResponse + """ + return self.list_take_over_task_with_http_info(request) + + def list_take_over_task_with_http_info(self, request): + """查询托管任务 + + ## 典型场景 ## 查询托管任务
## 接口功能 ## 查询托管任务
## 接口约束 ##
+ + :param ListTakeOverTaskRequest request + :return: ListTakeOverTaskResponse + """ + + all_params = ['status', 'task_id', 'page', 'size'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + if 'task_id' in local_var_params: + query_params.append(('task_id', local_var_params['task_id'])) + if 'page' in local_var_params: + query_params.append(('page', local_var_params['page'])) + if 'size' in local_var_params: + query_params.append(('size', local_var_params['size'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/obs/host/stock/task', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListTakeOverTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_take_over_asset_details_async(self, request): + """查询托管媒资详情 + + ## 典型场景 ## 查询托管媒资详情
## 接口功能 ## 查询托管媒资详情
## 接口约束 ##
+ + :param ShowTakeOverAssetDetailsRequest request + :return: ShowTakeOverAssetDetailsResponse + """ + return self.show_take_over_asset_details_with_http_info(request) + + def show_take_over_asset_details_with_http_info(self, request): + """查询托管媒资详情 + + ## 典型场景 ## 查询托管媒资详情
## 接口功能 ## 查询托管媒资详情
## 接口约束 ##
+ + :param ShowTakeOverAssetDetailsRequest request + :return: ShowTakeOverAssetDetailsResponse + """ + + all_params = ['source_bucket', 'source_object'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'source_bucket' in local_var_params: + query_params.append(('source_bucket', local_var_params['source_bucket'])) + if 'source_object' in local_var_params: + query_params.append(('source_object', local_var_params['source_object'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/obs/host/task/details', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowTakeOverAssetDetailsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_take_over_task_details_async(self, request): + """查询托管任务详情 + + ## 典型场景 ## 查询托管任务详情
## 接口功能 ## 查询托管任务详情
## 接口约束 ##
+ + :param ShowTakeOverTaskDetailsRequest request + :return: ShowTakeOverTaskDetailsResponse + """ + return self.show_take_over_task_details_with_http_info(request) + + def show_take_over_task_details_with_http_info(self, request): + """查询托管任务详情 + + ## 典型场景 ## 查询托管任务详情
## 接口功能 ## 查询托管任务详情
## 接口约束 ##
+ + :param ShowTakeOverTaskDetailsRequest request + :return: ShowTakeOverTaskDetailsResponse + """ + + all_params = ['task_id', 'page', 'size'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'task_id' in local_var_params: + query_params.append(('task_id', local_var_params['task_id'])) + if 'page' in local_var_params: + query_params.append(('page', local_var_params['page'])) + if 'size' in local_var_params: + query_params.append(('size', local_var_params['size'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/obs/host/stock/task/details', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowTakeOverTaskDetailsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, + post_params=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 dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: 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, + response_type=response_type, + response_headers=response_headers, + collection_formats=collection_formats, + request_type=request_type, + async_request=True) diff --git a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/vod_client.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/vod_client.py new file mode 100644 index 0000000000..6ba6d3e6aa --- /dev/null +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/vod_client.py @@ -0,0 +1,2960 @@ +# coding: utf-8 + +from __future__ import absolute_import + +import datetime +import re +import importlib + +import six + +from huaweicloudsdkcore.client import Client, ClientBuilder +from huaweicloudsdkcore.exceptions import exceptions +from huaweicloudsdkcore.utils import http_utils +from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest + + +class VodClient(Client): + """ + :param configuration: .Configuration object for this client + :param pool_threads: The number of threads to use for async requests + to the API. More threads means more concurrent API requests. + """ + + PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int if six.PY3 else long, + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'object': object, + } + + def __init__(self): + super(VodClient, self).__init__() + self.model_package = importlib.import_module("huaweicloudsdkvod.v1.model") + self.preset_headers = {'User-Agent': 'HuaweiCloud-SDK-Python'} + + @classmethod + def new_builder(cls, clazz=None): + if clazz is None: + return ClientBuilder(cls) + + if clazz.__name__ != "VodClient": + raise TypeError("client type error, support client type is VodClient") + + return ClientBuilder(clazz) + + def cancel_asset_transcode_task(self, request): + """取消媒资转码任务 + + ## 典型场景 ## 取消媒资转码任务。
## 接口功能 ## 取消媒资转码任务,只能取消排队中的转码任务。
## 接口约束 ## 无。
+ + :param CancelAssetTranscodeTaskRequest request + :return: CancelAssetTranscodeTaskResponse + """ + return self.cancel_asset_transcode_task_with_http_info(request) + + def cancel_asset_transcode_task_with_http_info(self, request): + """取消媒资转码任务 + + ## 典型场景 ## 取消媒资转码任务。
## 接口功能 ## 取消媒资转码任务,只能取消排队中的转码任务。
## 接口约束 ## 无。
+ + :param CancelAssetTranscodeTaskRequest request + :return: CancelAssetTranscodeTaskResponse + """ + + all_params = ['asset_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'asset_id' in local_var_params: + query_params.append(('asset_id', local_var_params['asset_id'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/process', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CancelAssetTranscodeTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def cancel_extract_audio_task(self, request): + """取消提取音频任务 + + ## 典型场景 ## 取消提取音频任务调用此接口
## 接口功能 ## 取消提取音频任务,只有排队中的音频任务才可以取消
## 接口约束 ## 无。
+ + :param CancelExtractAudioTaskRequest request + :return: CancelExtractAudioTaskResponse + """ + return self.cancel_extract_audio_task_with_http_info(request) + + def cancel_extract_audio_task_with_http_info(self, request): + """取消提取音频任务 + + ## 典型场景 ## 取消提取音频任务调用此接口
## 接口功能 ## 取消提取音频任务,只有排队中的音频任务才可以取消
## 接口约束 ## 无。
+ + :param CancelExtractAudioTaskRequest request + :return: CancelExtractAudioTaskResponse + """ + + all_params = ['asset_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'asset_id' in local_var_params: + query_params.append(('asset_id', local_var_params['asset_id'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/extract_audio', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CancelExtractAudioTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def check_md5_duplication(self, request): + """文件上传MD5校验 + + 查询音视频MD5是否重复 + + :param CheckMd5DuplicationRequest request + :return: CheckMd5DuplicationResponse + """ + return self.check_md5_duplication_with_http_info(request) + + def check_md5_duplication_with_http_info(self, request): + """文件上传MD5校验 + + 查询音视频MD5是否重复 + + :param CheckMd5DuplicationRequest request + :return: CheckMd5DuplicationResponse + """ + + all_params = ['size', 'md5'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'size' in local_var_params: + query_params.append(('size', local_var_params['size'])) + if 'md5' in local_var_params: + query_params.append(('md5', local_var_params['md5'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/duplication', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CheckMd5DuplicationResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def confirm_asset_upload(self, request): + """确认媒资上传 + + ## 典型场景 ## 确认媒资上传时调用此接口。
## 接口功能 ## 确认媒资上传。
## 接口约束 ## 无。
+ + :param ConfirmAssetUploadRequest request + :return: ConfirmAssetUploadResponse + """ + return self.confirm_asset_upload_with_http_info(request) + + def confirm_asset_upload_with_http_info(self, request): + """确认媒资上传 + + ## 典型场景 ## 确认媒资上传时调用此接口。
## 接口功能 ## 确认媒资上传。
## 接口约束 ## 无。
+ + :param ConfirmAssetUploadRequest request + :return: ConfirmAssetUploadResponse + """ + + all_params = ['confirm_asset_upload_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/status/uploaded', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ConfirmAssetUploadResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def confirm_image_upload(self, request): + """确认水印图片上传 + + ## 典型场景 ## 确认水印图片上传调用此接口
## 接口功能 ## 确认水印图片是否已经上传至对象存储
## 接口约束 ## 无。
+ + :param ConfirmImageUploadRequest request + :return: ConfirmImageUploadResponse + """ + return self.confirm_image_upload_with_http_info(request) + + def confirm_image_upload_with_http_info(self, request): + """确认水印图片上传 + + ## 典型场景 ## 确认水印图片上传调用此接口
## 接口功能 ## 确认水印图片是否已经上传至对象存储
## 接口约束 ## 无。
+ + :param ConfirmImageUploadRequest request + :return: ConfirmImageUploadResponse + """ + + all_params = ['confirm_image_upload_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/watermark/status/uploaded', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ConfirmImageUploadResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_asset_by_file_upload(self, request): + """上传方式创建媒资 + + 上传方式创建媒资。 + + :param CreateAssetByFileUploadRequest request + :return: CreateAssetByFileUploadResponse + """ + return self.create_asset_by_file_upload_with_http_info(request) + + def create_asset_by_file_upload_with_http_info(self, request): + """上传方式创建媒资 + + 上传方式创建媒资。 + + :param CreateAssetByFileUploadRequest request + :return: CreateAssetByFileUploadResponse + """ + + all_params = ['create_asset_by_file_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateAssetByFileUploadResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_asset_category(self, request): + """创建媒资分类 + + ## 典型场景 ## 创建媒资分类。
## 接口功能 ## 创建媒资分类。
## 接口约束 ## 最大支持三级分类,每个分类最多支持创建128个子分类。
+ + :param CreateAssetCategoryRequest request + :return: CreateAssetCategoryResponse + """ + return self.create_asset_category_with_http_info(request) + + def create_asset_category_with_http_info(self, request): + """创建媒资分类 + + ## 典型场景 ## 创建媒资分类。
## 接口功能 ## 创建媒资分类。
## 接口约束 ## 最大支持三级分类,每个分类最多支持创建128个子分类。
+ + :param CreateAssetCategoryRequest request + :return: CreateAssetCategoryResponse + """ + + all_params = ['create_category_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/category', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateAssetCategoryResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_asset_process_task(self, request): + """媒资处理 + + ## 典型场景 ## 媒资处理。
## 接口功能 ## 媒资处理。
## 接口约束 ## 无。
+ + :param CreateAssetProcessTaskRequest request + :return: CreateAssetProcessTaskResponse + """ + return self.create_asset_process_task_with_http_info(request) + + def create_asset_process_task_with_http_info(self, request): + """媒资处理 + + ## 典型场景 ## 媒资处理。
## 接口功能 ## 媒资处理。
## 接口约束 ## 无。
+ + :param CreateAssetProcessTaskRequest request + :return: CreateAssetProcessTaskResponse + """ + + all_params = ['asset_process_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/process', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateAssetProcessTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_asset_review_task(self, request): + """创建审核媒资任务 + + 媒资审核接口 + + :param CreateAssetReviewTaskRequest request + :return: CreateAssetReviewTaskResponse + """ + return self.create_asset_review_task_with_http_info(request) + + def create_asset_review_task_with_http_info(self, request): + """创建审核媒资任务 + + 媒资审核接口 + + :param CreateAssetReviewTaskRequest request + :return: CreateAssetReviewTaskResponse + """ + + all_params = ['asset_review_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/review', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateAssetReviewTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_extract_audio_task(self, request): + """视频媒资提取音频 + + ## 典型场景 ## 从媒资中提取音频调用此接口
## 接口功能 ## 视频媒资提取音频
## 接口约束 ## 无。
+ + :param CreateExtractAudioTaskRequest request + :return: CreateExtractAudioTaskResponse + """ + return self.create_extract_audio_task_with_http_info(request) + + def create_extract_audio_task_with_http_info(self, request): + """视频媒资提取音频 + + ## 典型场景 ## 从媒资中提取音频调用此接口
## 接口功能 ## 视频媒资提取音频
## 接口约束 ## 无。
+ + :param CreateExtractAudioTaskRequest request + :return: CreateExtractAudioTaskResponse + """ + + all_params = ['extract_audio_task_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/extract_audio', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateExtractAudioTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_template_group(self, request): + """创建自定义模板组 + + ## 典型场景 ## 创建自定义模板组时调用此接口。
## 接口功能 ## 创建模板组。
## 接口约束 ## 无。
+ + :param CreateTemplateGroupRequest request + :return: CreateTemplateGroupResponse + """ + return self.create_template_group_with_http_info(request) + + def create_template_group_with_http_info(self, request): + """创建自定义模板组 + + ## 典型场景 ## 创建自定义模板组时调用此接口。
## 接口功能 ## 创建模板组。
## 接口约束 ## 无。
+ + :param CreateTemplateGroupRequest request + :return: CreateTemplateGroupResponse + """ + + all_params = ['trans_template_group'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/template_group/transcodings', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateTemplateGroupResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_watermark_template(self, request): + """创建水印模板 + + ## 典型场景 ## 创建水印模板调用此接口
## 接口功能 ## 创建水印模板
## 接口约束 ## 无。
+ + :param CreateWatermarkTemplateRequest request + :return: CreateWatermarkTemplateResponse + """ + return self.create_watermark_template_with_http_info(request) + + def create_watermark_template_with_http_info(self, request): + """创建水印模板 + + ## 典型场景 ## 创建水印模板调用此接口
## 接口功能 ## 创建水印模板
## 接口约束 ## 无。
+ + :param CreateWatermarkTemplateRequest request + :return: CreateWatermarkTemplateResponse + """ + + all_params = ['create_watermark_template_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/template/watermark', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateWatermarkTemplateResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_asset_category(self, request): + """删除媒资分类 + + ## 典型场景 ## 删除媒资分类。
## 接口功能 ## 删除媒资分类。
## 接口约束 ## 无。
+ + :param DeleteAssetCategoryRequest request + :return: DeleteAssetCategoryResponse + """ + return self.delete_asset_category_with_http_info(request) + + def delete_asset_category_with_http_info(self, request): + """删除媒资分类 + + ## 典型场景 ## 删除媒资分类。
## 接口功能 ## 删除媒资分类。
## 接口约束 ## 无。
+ + :param DeleteAssetCategoryRequest request + :return: DeleteAssetCategoryResponse + """ + + all_params = ['id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'id' in local_var_params: + query_params.append(('id', local_var_params['id'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/category', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteAssetCategoryResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_assets(self, request): + """删除媒资,支持批量删除 + + ## 典型场景 ## 删除媒资,支持批量删除。
## 接口功能 ## 删除媒资,支持批量删除。
## 接口约束 ## 最多删除十个。
+ + :param DeleteAssetsRequest request + :return: DeleteAssetsResponse + """ + return self.delete_assets_with_http_info(request) + + def delete_assets_with_http_info(self, request): + """删除媒资,支持批量删除 + + ## 典型场景 ## 删除媒资,支持批量删除。
## 接口功能 ## 删除媒资,支持批量删除。
## 接口约束 ## 最多删除十个。
+ + :param DeleteAssetsRequest request + :return: DeleteAssetsResponse + """ + + all_params = ['asset_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'asset_id' in local_var_params: + query_params.append(('asset_id', local_var_params['asset_id'])) + collection_formats['asset_id'] = 'multi' + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteAssetsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_template_group(self, request): + """删除自定义模板组 + + ## 典型场景 ## 删除自定义模板组接口。
## 接口功能 ## 删除自定义模板组。
## 接口约束 ## 无。
+ + :param DeleteTemplateGroupRequest request + :return: DeleteTemplateGroupResponse + """ + return self.delete_template_group_with_http_info(request) + + def delete_template_group_with_http_info(self, request): + """删除自定义模板组 + + ## 典型场景 ## 删除自定义模板组接口。
## 接口功能 ## 删除自定义模板组。
## 接口约束 ## 无。
+ + :param DeleteTemplateGroupRequest request + :return: DeleteTemplateGroupResponse + """ + + all_params = ['group_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'group_id' in local_var_params: + query_params.append(('group_id', local_var_params['group_id'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/template_group/transcodings', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteTemplateGroupResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_watermark_template(self, request): + """删除水印模板 + + ## 典型场景 ## 删除水印模板
## 接口功能 ## 删除水印模板
## 接口约束 ## 无
+ + :param DeleteWatermarkTemplateRequest request + :return: DeleteWatermarkTemplateResponse + """ + return self.delete_watermark_template_with_http_info(request) + + def delete_watermark_template_with_http_info(self, request): + """删除水印模板 + + ## 典型场景 ## 删除水印模板
## 接口功能 ## 删除水印模板
## 接口约束 ## 无
+ + :param DeleteWatermarkTemplateRequest request + :return: DeleteWatermarkTemplateResponse + """ + + all_params = ['id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'id' in local_var_params: + query_params.append(('id', local_var_params['id'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/template/watermark', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteWatermarkTemplateResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_asset_category(self, request): + """查询指定分类信息 + + ## 典型场景 ## 查询指定分类信息,及其子分类(即下一级分类)的列表。
## 接口功能 ## 查询指定分类信息。
## 接口约束 ## 无。
+ + :param ListAssetCategoryRequest request + :return: ListAssetCategoryResponse + """ + return self.list_asset_category_with_http_info(request) + + def list_asset_category_with_http_info(self, request): + """查询指定分类信息 + + ## 典型场景 ## 查询指定分类信息,及其子分类(即下一级分类)的列表。
## 接口功能 ## 查询指定分类信息。
## 接口约束 ## 无。
+ + :param ListAssetCategoryRequest request + :return: ListAssetCategoryResponse + """ + + all_params = ['id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'id' in local_var_params: + query_params.append(('id', local_var_params['id'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/category', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListAssetCategoryResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_asset_list(self, request): + """查询媒资列表 + + 查询媒资列表 + + :param ListAssetListRequest request + :return: ListAssetListResponse + """ + return self.list_asset_list_with_http_info(request) + + def list_asset_list_with_http_info(self, request): + """查询媒资列表 + + 查询媒资列表 + + :param ListAssetListRequest request + :return: ListAssetListResponse + """ + + all_params = ['asset_id', 'status', 'start_time', 'end_time', 'category_id', 'tags', 'query_string', 'media_type', 'page', 'size', 'order'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'asset_id' in local_var_params: + query_params.append(('asset_id', local_var_params['asset_id'])) + collection_formats['asset_id'] = 'csv' + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + collection_formats['status'] = 'csv' + 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 'category_id' in local_var_params: + query_params.append(('category_id', local_var_params['category_id'])) + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) + if 'query_string' in local_var_params: + query_params.append(('query_string', local_var_params['query_string'])) + if 'media_type' in local_var_params: + query_params.append(('media_type', local_var_params['media_type'])) + collection_formats['media_type'] = 'csv' + if 'page' in local_var_params: + query_params.append(('page', local_var_params['page'])) + if 'size' in local_var_params: + query_params.append(('size', local_var_params['size'])) + if 'order' in local_var_params: + query_params.append(('order', local_var_params['order'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/list', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListAssetListResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_template_group(self, request): + """查询模板组列表 + + ## 典型场景 ## 查询模板组列表调用此接口。
## 接口功能 ## 查询模板组列表。
## 接口约束 ## 无。
+ + :param ListTemplateGroupRequest request + :return: ListTemplateGroupResponse + """ + return self.list_template_group_with_http_info(request) + + def list_template_group_with_http_info(self, request): + """查询模板组列表 + + ## 典型场景 ## 查询模板组列表调用此接口。
## 接口功能 ## 查询模板组列表。
## 接口约束 ## 无。
+ + :param ListTemplateGroupRequest request + :return: ListTemplateGroupResponse + """ + + all_params = ['group_id', 'status', 'page', 'size'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'group_id' in local_var_params: + query_params.append(('group_id', local_var_params['group_id'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + if 'page' in local_var_params: + query_params.append(('page', local_var_params['page'])) + if 'size' in local_var_params: + query_params.append(('size', local_var_params['size'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/template_group/transcodings', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListTemplateGroupResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_top_statistics(self, request): + """查询TopN播放视频信息 + + ## 典型场景 ## 查询TopN播放视频信息 。
## 接口功能 ## 查询TopN播放视频信息 。
## 接口约束 ## 无。
+ + :param ListTopStatisticsRequest request + :return: ListTopStatisticsResponse + """ + return self.list_top_statistics_with_http_info(request) + + def list_top_statistics_with_http_info(self, request): + """查询TopN播放视频信息 + + ## 典型场景 ## 查询TopN播放视频信息 。
## 接口功能 ## 查询TopN播放视频信息 。
## 接口约束 ## 无。
+ + :param ListTopStatisticsRequest request + :return: ListTopStatisticsResponse + """ + + all_params = ['domain', 'date'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'domain' in local_var_params: + query_params.append(('domain', local_var_params['domain'])) + if 'date' in local_var_params: + query_params.append(('date', local_var_params['date'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/top-statistics', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListTopStatisticsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_watermark_template(self, request): + """查询水印列表 + + ## 典型场景 ## 查询水印模板
## 接口功能 ## 查询水印模板
## 接口约束 ## 查询所有水印
+ + :param ListWatermarkTemplateRequest request + :return: ListWatermarkTemplateResponse + """ + return self.list_watermark_template_with_http_info(request) + + def list_watermark_template_with_http_info(self, request): + """查询水印列表 + + ## 典型场景 ## 查询水印模板
## 接口功能 ## 查询水印模板
## 接口约束 ## 查询所有水印
+ + :param ListWatermarkTemplateRequest request + :return: ListWatermarkTemplateResponse + """ + + all_params = ['id', 'page', 'size'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'id' in local_var_params: + query_params.append(('id', local_var_params['id'])) + collection_formats['id'] = 'multi' + if 'page' in local_var_params: + query_params.append(('page', local_var_params['page'])) + if 'size' in local_var_params: + query_params.append(('size', local_var_params['size'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/template/watermark', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListWatermarkTemplateResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def publish_asset_from_obs(self, request): + """从OBS一键发布媒资 + + ## 典型场景 ## 从OBS转存媒资,一键发布。
## 接口功能 ## 在OBS中的媒资一键发布到VOD。
## 接口约束 ## OBS的桶必须先授权给VOD服务用户。
+ + :param PublishAssetFromObsRequest request + :return: PublishAssetFromObsResponse + """ + return self.publish_asset_from_obs_with_http_info(request) + + def publish_asset_from_obs_with_http_info(self, request): + """从OBS一键发布媒资 + + ## 典型场景 ## 从OBS转存媒资,一键发布。
## 接口功能 ## 在OBS中的媒资一键发布到VOD。
## 接口约束 ## OBS的桶必须先授权给VOD服务用户。
+ + :param PublishAssetFromObsRequest request + :return: PublishAssetFromObsResponse + """ + + all_params = ['publish_asset_from_obs_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/reproduction', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='PublishAssetFromObsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def publish_assets(self, request): + """媒资发布 + + ## 典型场景 ## 媒资发布,支持批量发布。
## 接口功能 ## 媒资发布,支持批量发布。
## 接口约束 ## 无。
+ + :param PublishAssetsRequest request + :return: PublishAssetsResponse + """ + return self.publish_assets_with_http_info(request) + + def publish_assets_with_http_info(self, request): + """媒资发布 + + ## 典型场景 ## 媒资发布,支持批量发布。
## 接口功能 ## 媒资发布,支持批量发布。
## 接口约束 ## 无。
+ + :param PublishAssetsRequest request + :return: PublishAssetsResponse + """ + + all_params = ['publish_asset_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/status/publish', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='PublishAssetsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_asset_detail(self, request): + """查询指定媒资的详细信息 + + 查询指定媒资的详细信息 + + :param ShowAssetDetailRequest request + :return: ShowAssetDetailResponse + """ + return self.show_asset_detail_with_http_info(request) + + def show_asset_detail_with_http_info(self, request): + """查询指定媒资的详细信息 + + 查询指定媒资的详细信息 + + :param ShowAssetDetailRequest request + :return: ShowAssetDetailResponse + """ + + all_params = ['asset_id', 'categories'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'asset_id' in local_var_params: + query_params.append(('asset_id', local_var_params['asset_id'])) + if 'categories' in local_var_params: + query_params.append(('categories', local_var_params['categories'])) + collection_formats['categories'] = 'csv' + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/details', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowAssetDetailResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_asset_meta(self, request): + """查询媒资信息 + + ## 典型场景 ## 查询媒资信息。
## 接口功能 ## 查询媒资信息。
## 接口约束 ## 最多同时查询10个。
+ + :param ShowAssetMetaRequest request + :return: ShowAssetMetaResponse + """ + return self.show_asset_meta_with_http_info(request) + + def show_asset_meta_with_http_info(self, request): + """查询媒资信息 + + ## 典型场景 ## 查询媒资信息。
## 接口功能 ## 查询媒资信息。
## 接口约束 ## 最多同时查询10个。
+ + :param ShowAssetMetaRequest request + :return: ShowAssetMetaResponse + """ + + all_params = ['asset_id', 'status', 'transcode_status', 'asset_status', 'start_time', 'end_time', 'category_id', 'tags', 'query_string', 'page', 'size', 'order'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'asset_id' in local_var_params: + query_params.append(('asset_id', local_var_params['asset_id'])) + collection_formats['asset_id'] = 'multi' + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + collection_formats['status'] = 'multi' + if 'transcode_status' in local_var_params: + query_params.append(('transcodeStatus', local_var_params['transcode_status'])) + collection_formats['transcodeStatus'] = 'multi' + if 'asset_status' in local_var_params: + query_params.append(('assetStatus', local_var_params['asset_status'])) + collection_formats['assetStatus'] = 'multi' + 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 'category_id' in local_var_params: + query_params.append(('category_id', local_var_params['category_id'])) + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) + if 'query_string' in local_var_params: + query_params.append(('query_string', local_var_params['query_string'])) + if 'page' in local_var_params: + query_params.append(('page', local_var_params['page'])) + if 'size' in local_var_params: + query_params.append(('size', local_var_params['size'])) + if 'order' in local_var_params: + query_params.append(('order', local_var_params['order'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/info', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowAssetMetaResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_asset_temp_authority(self, request): + """获取授权(New Version) + + 客户端请求创建媒资时,如果媒资文件超过100MB,需采用分段的方式向OBS上传,在每次与OBS交互前,客户端需通过此接口获取到授权方可与OBS交互。 + + :param ShowAssetTempAuthorityRequest request + :return: ShowAssetTempAuthorityResponse + """ + return self.show_asset_temp_authority_with_http_info(request) + + def show_asset_temp_authority_with_http_info(self, request): + """获取授权(New Version) + + 客户端请求创建媒资时,如果媒资文件超过100MB,需采用分段的方式向OBS上传,在每次与OBS交互前,客户端需通过此接口获取到授权方可与OBS交互。 + + :param ShowAssetTempAuthorityRequest request + :return: ShowAssetTempAuthorityResponse + """ + + all_params = ['http_verb', 'bucket', 'object_key', 'content_md5', 'content_type', 'upload_id', 'part_number'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'http_verb' in local_var_params: + query_params.append(('http_verb', local_var_params['http_verb'])) + if 'content_md5' in local_var_params: + query_params.append(('content_md5', local_var_params['content_md5'])) + if 'content_type' in local_var_params: + query_params.append(('content_type', local_var_params['content_type'])) + if 'bucket' in local_var_params: + query_params.append(('bucket', local_var_params['bucket'])) + if 'object_key' in local_var_params: + query_params.append(('object_key', local_var_params['object_key'])) + if 'upload_id' in local_var_params: + query_params.append(('upload_id', local_var_params['upload_id'])) + if 'part_number' in local_var_params: + query_params.append(('part_number', local_var_params['part_number'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.1/{project_id}/asset/authority', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowAssetTempAuthorityResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_cdn_statistics(self, request): + """查询域名的cdn数据信息 + + ## 典型场景 ## 查询域名的cdn数据信息 。
## 接口功能 ## 查询域名的cdn数据信息 。
## 接口约束 ## 无。
+ + :param ShowCdnStatisticsRequest request + :return: ShowCdnStatisticsResponse + """ + return self.show_cdn_statistics_with_http_info(request) + + def show_cdn_statistics_with_http_info(self, request): + """查询域名的cdn数据信息 + + ## 典型场景 ## 查询域名的cdn数据信息 。
## 接口功能 ## 查询域名的cdn数据信息 。
## 接口约束 ## 无。
+ + :param ShowCdnStatisticsRequest request + :return: ShowCdnStatisticsResponse + """ + + all_params = ['stat_type', 'domain', 'start_time', 'end_time', 'interval'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + 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 'stat_type' in local_var_params: + query_params.append(('stat_type', local_var_params['stat_type'])) + if 'domain' in local_var_params: + query_params.append(('domain', local_var_params['domain'])) + if 'interval' in local_var_params: + query_params.append(('interval', local_var_params['interval'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/cdn-statistics', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowCdnStatisticsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_vod_statistics(self, request): + """查询源站数据信息 + + ## 典型场景 ## 用于查询点播源站相关的统计数据,包括流量、存储空间、转码时长等 。
## 接口功能 ## 用于查询点播源站相关的统计数据,包括流量、存储空间、转码时长等 。
## 接口约束 ## 无。
+ + :param ShowVodStatisticsRequest request + :return: ShowVodStatisticsResponse + """ + return self.show_vod_statistics_with_http_info(request) + + def show_vod_statistics_with_http_info(self, request): + """查询源站数据信息 + + ## 典型场景 ## 用于查询点播源站相关的统计数据,包括流量、存储空间、转码时长等 。
## 接口功能 ## 用于查询点播源站相关的统计数据,包括流量、存储空间、转码时长等 。
## 接口约束 ## 无。
+ + :param ShowVodStatisticsRequest request + :return: ShowVodStatisticsResponse + """ + + all_params = ['start_time', 'end_time', 'interval'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + 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 'interval' in local_var_params: + query_params.append(('interval', local_var_params['interval'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/vod-statistics', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowVodStatisticsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def unpublish_assets(self, request): + """媒资取消发布 + + ## 典型场景 ## 媒资取消发布。
## 接口功能 ## 媒资取消发布。
## 接口约束 ## 无。
+ + :param UnpublishAssetsRequest request + :return: UnpublishAssetsResponse + """ + return self.unpublish_assets_with_http_info(request) + + def unpublish_assets_with_http_info(self, request): + """媒资取消发布 + + ## 典型场景 ## 媒资取消发布。
## 接口功能 ## 媒资取消发布。
## 接口约束 ## 无。
+ + :param UnpublishAssetsRequest request + :return: UnpublishAssetsResponse + """ + + all_params = ['unpublish_asset_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/status/unpublish', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UnpublishAssetsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_asset(self, request): + """媒资更新 + + ## 典型场景 ## 媒资更新,单独上传封面、更新视频文件或更新已有封面。
## 接口功能 ## 媒资更新。
## 接口约束 ## 无。
+ + :param UpdateAssetRequest request + :return: UpdateAssetResponse + """ + return self.update_asset_with_http_info(request) + + def update_asset_with_http_info(self, request): + """媒资更新 + + ## 典型场景 ## 媒资更新,单独上传封面、更新视频文件或更新已有封面。
## 接口功能 ## 媒资更新。
## 接口约束 ## 无。
+ + :param UpdateAssetRequest request + :return: UpdateAssetResponse + """ + + all_params = ['update_asset_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateAssetResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_asset_category(self, request): + """修改媒资分类 + + ## 典型场景 ## 修改媒资分类。
## 接口功能 ## 修改媒资分类。
## 接口约束 ## 无。
+ + :param UpdateAssetCategoryRequest request + :return: UpdateAssetCategoryResponse + """ + return self.update_asset_category_with_http_info(request) + + def update_asset_category_with_http_info(self, request): + """修改媒资分类 + + ## 典型场景 ## 修改媒资分类。
## 接口功能 ## 修改媒资分类。
## 接口约束 ## 无。
+ + :param UpdateAssetCategoryRequest request + :return: UpdateAssetCategoryResponse + """ + + all_params = ['update_category_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/category', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateAssetCategoryResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_asset_meta(self, request): + """更新媒资信息 + + ## 典型场景 ## 更新媒资信息。
## 接口功能 ## 更新媒资信息。
## 接口约束 ## 无。
+ + :param UpdateAssetMetaRequest request + :return: UpdateAssetMetaResponse + """ + return self.update_asset_meta_with_http_info(request) + + def update_asset_meta_with_http_info(self, request): + """更新媒资信息 + + ## 典型场景 ## 更新媒资信息。
## 接口功能 ## 更新媒资信息。
## 接口约束 ## 无。
+ + :param UpdateAssetMetaRequest request + :return: UpdateAssetMetaResponse + """ + + all_params = ['update_asset_meta_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/info', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateAssetMetaResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_bucket_authorized(self, request): + """修改桶授权 + + ## 典型场景 ## 用户通过桶策略方式授权给VOD用户操作桶的权限。
## 接口功能 ## 用户通过桶策略方式授权给VOD用户操作桶的权限。
## 接口约束 ## 无。
+ + :param UpdateBucketAuthorizedRequest request + :return: UpdateBucketAuthorizedResponse + """ + return self.update_bucket_authorized_with_http_info(request) + + def update_bucket_authorized_with_http_info(self, request): + """修改桶授权 + + ## 典型场景 ## 用户通过桶策略方式授权给VOD用户操作桶的权限。
## 接口功能 ## 用户通过桶策略方式授权给VOD用户操作桶的权限。
## 接口约束 ## 无。
+ + :param UpdateBucketAuthorizedRequest request + :return: UpdateBucketAuthorizedResponse + """ + + all_params = ['bucket_authorized_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/authority', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateBucketAuthorizedResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_cover_by_thumbnail(self, request): + """租户选择截图,来更新封面 + + ## 典型场景 ## 租户选择截图,来更新封面。
## 接口功能 ## 租户选择截图,来更新封面 。
## 接口约束 ## 无。
+ + :param UpdateCoverByThumbnailRequest request + :return: UpdateCoverByThumbnailResponse + """ + return self.update_cover_by_thumbnail_with_http_info(request) + + def update_cover_by_thumbnail_with_http_info(self, request): + """租户选择截图,来更新封面 + + ## 典型场景 ## 租户选择截图,来更新封面。
## 接口功能 ## 租户选择截图,来更新封面 。
## 接口约束 ## 无。
+ + :param UpdateCoverByThumbnailRequest request + :return: UpdateCoverByThumbnailResponse + """ + + all_params = ['update_cover_by_thumbnail_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/cover', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateCoverByThumbnailResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_template_group(self, request): + """修改模板组 + + ## 典型场景 ## 修改模板组接口。
## 接口功能 ## 修改模板组。
## 接口约束 ## 无。
+ + :param UpdateTemplateGroupRequest request + :return: UpdateTemplateGroupResponse + """ + return self.update_template_group_with_http_info(request) + + def update_template_group_with_http_info(self, request): + """修改模板组 + + ## 典型场景 ## 修改模板组接口。
## 接口功能 ## 修改模板组。
## 接口约束 ## 无。
+ + :param UpdateTemplateGroupRequest request + :return: UpdateTemplateGroupResponse + """ + + all_params = ['trans_template_group'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/template_group/transcodings', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateTemplateGroupResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_watermark_template(self, request): + """修改水印模板 + + ## 典型场景 ## 修改水印模板
## 接口功能 ## 修改水印模板
## 接口约束 ## 无
+ + :param UpdateWatermarkTemplateRequest request + :return: UpdateWatermarkTemplateResponse + """ + return self.update_watermark_template_with_http_info(request) + + def update_watermark_template_with_http_info(self, request): + """修改水印模板 + + ## 典型场景 ## 修改水印模板
## 接口功能 ## 修改水印模板
## 接口约束 ## 无
+ + :param UpdateWatermarkTemplateRequest request + :return: UpdateWatermarkTemplateResponse + """ + + all_params = ['update_watermark_template_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/template/watermark', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateWatermarkTemplateResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def upload_meta_data_by_url(self, request): + """通过URL拉取方式创建媒资 + + ## 典型场景 ## 创建媒资:URL拉取注入。
## 接口功能 ## 创建媒资:URL拉取注入。
## 接口约束 ## 无
+ + :param UploadMetaDataByUrlRequest request + :return: UploadMetaDataByUrlResponse + """ + return self.upload_meta_data_by_url_with_http_info(request) + + def upload_meta_data_by_url_with_http_info(self, request): + """通过URL拉取方式创建媒资 + + ## 典型场景 ## 创建媒资:URL拉取注入。
## 接口功能 ## 创建媒资:URL拉取注入。
## 接口约束 ## 无
+ + :param UploadMetaDataByUrlRequest request + :return: UploadMetaDataByUrlResponse + """ + + all_params = ['upload_meta_data_by_url_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/upload_by_url', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UploadMetaDataByUrlResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_preheating_asset(self, request): + """CDN预热 + + ## 典型场景 ## 点播发布后可向CDN预热。
## 接口功能 ## CDN预热。
## 接口约束 ## 无。
+ + :param CreatePreheatingAssetRequest request + :return: CreatePreheatingAssetResponse + """ + return self.create_preheating_asset_with_http_info(request) + + def create_preheating_asset_with_http_info(self, request): + """CDN预热 + + ## 典型场景 ## 点播发布后可向CDN预热。
## 接口功能 ## CDN预热。
## 接口约束 ## 无。
+ + :param CreatePreheatingAssetRequest request + :return: CreatePreheatingAssetResponse + """ + + all_params = ['create_preheating_asset_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/preheating', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreatePreheatingAssetResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_preheating_asset(self, request): + """查询CDN预热 + + ## 典型场景 ## 向CDN查询预热。
## 接口功能 ## 查询CDN预热。
## 接口约束 ## 无。
+ + :param ShowPreheatingAssetRequest request + :return: ShowPreheatingAssetResponse + """ + return self.show_preheating_asset_with_http_info(request) + + def show_preheating_asset_with_http_info(self, request): + """查询CDN预热 + + ## 典型场景 ## 向CDN查询预热。
## 接口功能 ## 查询CDN预热。
## 接口约束 ## 无。
+ + :param ShowPreheatingAssetRequest request + :return: ShowPreheatingAssetResponse + """ + + all_params = ['task_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'task_id' in local_var_params: + query_params.append(('task_id', local_var_params['task_id'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/preheating', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowPreheatingAssetResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_asset_cipher(self, request): + """查询密钥 + + ## 典型场景 ## 终端在尝试播放加密HLS时会先向租户Server请求密钥,租户Server则对终端身份进行认证,认证通过后再向VOD查询密钥
## 接口功能 ## 查询密钥
## 接口约束 ## 暂无
+ + :param ShowAssetCipherRequest request + :return: ShowAssetCipherResponse + """ + return self.show_asset_cipher_with_http_info(request) + + def show_asset_cipher_with_http_info(self, request): + """查询密钥 + + ## 典型场景 ## 终端在尝试播放加密HLS时会先向租户Server请求密钥,租户Server则对终端身份进行认证,认证通过后再向VOD查询密钥
## 接口功能 ## 查询密钥
## 接口约束 ## 暂无
+ + :param ShowAssetCipherRequest request + :return: ShowAssetCipherResponse + """ + + all_params = ['asset_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'asset_id' in local_var_params: + query_params.append(('asset_id', local_var_params['asset_id'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/ciphers', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowAssetCipherResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_take_over_task(self, request): + """创建托管任务 + + ## 典型场景 ## 创建托管任务
## 接口功能 ##
## 接口约束 ##
+ + :param CreateTakeOverTaskRequest request + :return: CreateTakeOverTaskResponse + """ + return self.create_take_over_task_with_http_info(request) + + def create_take_over_task_with_http_info(self, request): + """创建托管任务 + + ## 典型场景 ## 创建托管任务
## 接口功能 ##
## 接口约束 ##
+ + :param CreateTakeOverTaskRequest request + :return: CreateTakeOverTaskResponse + """ + + all_params = ['create_take_over_task_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/obs/host/stock/task', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateTakeOverTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_take_over_task(self, request): + """查询托管任务 + + ## 典型场景 ## 查询托管任务
## 接口功能 ## 查询托管任务
## 接口约束 ##
+ + :param ListTakeOverTaskRequest request + :return: ListTakeOverTaskResponse + """ + return self.list_take_over_task_with_http_info(request) + + def list_take_over_task_with_http_info(self, request): + """查询托管任务 + + ## 典型场景 ## 查询托管任务
## 接口功能 ## 查询托管任务
## 接口约束 ##
+ + :param ListTakeOverTaskRequest request + :return: ListTakeOverTaskResponse + """ + + all_params = ['status', 'task_id', 'page', 'size'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + if 'task_id' in local_var_params: + query_params.append(('task_id', local_var_params['task_id'])) + if 'page' in local_var_params: + query_params.append(('page', local_var_params['page'])) + if 'size' in local_var_params: + query_params.append(('size', local_var_params['size'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/obs/host/stock/task', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListTakeOverTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_take_over_asset_details(self, request): + """查询托管媒资详情 + + ## 典型场景 ## 查询托管媒资详情
## 接口功能 ## 查询托管媒资详情
## 接口约束 ##
+ + :param ShowTakeOverAssetDetailsRequest request + :return: ShowTakeOverAssetDetailsResponse + """ + return self.show_take_over_asset_details_with_http_info(request) + + def show_take_over_asset_details_with_http_info(self, request): + """查询托管媒资详情 + + ## 典型场景 ## 查询托管媒资详情
## 接口功能 ## 查询托管媒资详情
## 接口约束 ##
+ + :param ShowTakeOverAssetDetailsRequest request + :return: ShowTakeOverAssetDetailsResponse + """ + + all_params = ['source_bucket', 'source_object'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'source_bucket' in local_var_params: + query_params.append(('source_bucket', local_var_params['source_bucket'])) + if 'source_object' in local_var_params: + query_params.append(('source_object', local_var_params['source_object'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/obs/host/task/details', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowTakeOverAssetDetailsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_take_over_task_details(self, request): + """查询托管任务详情 + + ## 典型场景 ## 查询托管任务详情
## 接口功能 ## 查询托管任务详情
## 接口约束 ##
+ + :param ShowTakeOverTaskDetailsRequest request + :return: ShowTakeOverTaskDetailsResponse + """ + return self.show_take_over_task_details_with_http_info(request) + + def show_take_over_task_details_with_http_info(self, request): + """查询托管任务详情 + + ## 典型场景 ## 查询托管任务详情
## 接口功能 ## 查询托管任务详情
## 接口约束 ##
+ + :param ShowTakeOverTaskDetailsRequest request + :return: ShowTakeOverTaskDetailsResponse + """ + + all_params = ['task_id', 'page', 'size'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'task_id' in local_var_params: + query_params.append(('task_id', local_var_params['task_id'])) + if 'page' in local_var_params: + query_params.append(('page', local_var_params['page'])) + if 'size' in local_var_params: + query_params.append(('size', local_var_params['size'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/asset/obs/host/stock/task/details', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowTakeOverTaskDetailsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, + post_params=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 dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: 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, + response_type=response_type, + response_headers=response_headers, + collection_formats=collection_formats, + request_type=request_type) diff --git a/huaweicloud-sdk-vod/requirements.txt b/huaweicloud-sdk-vod/requirements.txt new file mode 100644 index 0000000000..bf54e8e3d8 --- /dev/null +++ b/huaweicloud-sdk-vod/requirements.txt @@ -0,0 +1 @@ +huaweicloud-sdk-python-core diff --git a/huaweicloud-sdk-vod/setup.py b/huaweicloud-sdk-vod/setup.py new file mode 100644 index 0000000000..a857f57d21 --- /dev/null +++ b/huaweicloud-sdk-vod/setup.py @@ -0,0 +1,55 @@ +# coding: utf-8 +from os import path + +from setuptools import setup, find_packages + +NAME = "huaweicloudsdkvod" +VERSION = "3.0.49" +AUTHOR = "HuaweiCloud SDK" +AUTHOR_EMAIL = "hwcloudsdk@huawei.com" +URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" + +DESCRIPTION = "VOD" +this_directory = path.abspath(path.dirname(__file__)) +with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: + LONG_DESCRIPTION = f.read() + +REQUIRES = ["huaweicloudsdkcore"] + +OPTIONS = { + 'bdist_wheel': { + 'universal': True + } +} + +setup( + name=NAME, + version=VERSION, + options=OPTIONS, + description=DESCRIPTION, + long_description=LONG_DESCRIPTION, + long_description_content_type='text/markdown', + author=AUTHOR, + author_email=AUTHOR_EMAIL, + license="Apache LICENSE 2.0", + url=URL, + keywords=["huaweicloud", "sdk", "VOD"], + packages=find_packages(exclude=["tests*"]), + install_requires=REQUIRES, + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", + include_package_data=True, + classifiers=[ + 'Development Status :: 5 - Production/Stable', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: Apache Software License', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Topic :: Software Development' + ] +) diff --git a/huaweicloud-sdk-vod/test-requirements.txt b/huaweicloud-sdk-vod/test-requirements.txt new file mode 100644 index 0000000000..2702246c0e --- /dev/null +++ b/huaweicloud-sdk-vod/test-requirements.txt @@ -0,0 +1,5 @@ +coverage>=4.0.3 +nose>=1.3.7 +pluggy>=0.3.1 +py>=1.4.31 +randomize>=0.13 diff --git a/huaweicloud-sdk-vpc/setup.py b/huaweicloud-sdk-vpc/setup.py index 11c7467497..b4d01f3789 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.0.48" +VERSION = "3.0.49" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -36,14 +36,13 @@ keywords=["huaweicloud", "sdk", "VPC"], packages=find_packages(exclude=["tests*"]), install_requires=REQUIRES, - python_requires=">=2.7", + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", include_package_data=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', diff --git a/huaweicloud-sdk-waf/LICENSE b/huaweicloud-sdk-waf/LICENSE new file mode 100644 index 0000000000..808e3296c0 --- /dev/null +++ b/huaweicloud-sdk-waf/LICENSE @@ -0,0 +1,13 @@ +Copyright (c) Huawei Technologies Co., Ltd. 2020-present. All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. \ No newline at end of file diff --git a/huaweicloud-sdk-waf/README_PYPI.md b/huaweicloud-sdk-waf/README_PYPI.md new file mode 100644 index 0000000000..9711543c73 --- /dev/null +++ b/huaweicloud-sdk-waf/README_PYPI.md @@ -0,0 +1 @@ +See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3). \ No newline at end of file diff --git a/huaweicloud-sdk-waf/huaweicloudsdkwaf/__init__.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/__init__.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/__init__.py new file mode 100644 index 0000000000..9a6822e6b4 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/__init__.py @@ -0,0 +1,220 @@ +# coding: utf-8 + +from __future__ import absolute_import + +# import WafClient +from huaweicloudsdkwaf.v1.waf_client import WafClient +from huaweicloudsdkwaf.v1.waf_async_client import WafAsyncClient +# import models into sdk package +from huaweicloudsdkwaf.v1.model.attack_domain_top_list_info_items import AttackDomainTopListInfoItems +from huaweicloudsdkwaf.v1.model.attack_url_top_list_info_items import AttackUrlTopListInfoItems +from huaweicloudsdkwaf.v1.model.bind_host import BindHost +from huaweicloudsdkwaf.v1.model.block_page import BlockPage +from huaweicloudsdkwaf.v1.model.ccrule_post_info import CcrulePostInfo +from huaweicloudsdkwaf.v1.model.ccrules_list_info_action import CcrulesListInfoAction +from huaweicloudsdkwaf.v1.model.ccrules_list_info_action_detail import CcrulesListInfoActionDetail +from huaweicloudsdkwaf.v1.model.ccrules_list_info_action_detail_response import CcrulesListInfoActionDetailResponse +from huaweicloudsdkwaf.v1.model.certificate_body import CertificateBody +from huaweicloudsdkwaf.v1.model.cloud_waf_subscriptio_response_resources import CloudWafSubscriptioResponseResources +from huaweicloudsdkwaf.v1.model.confirm_cloud_waf_subscription_info_request import ConfirmCloudWafSubscriptionInfoRequest +from huaweicloudsdkwaf.v1.model.confirm_cloud_waf_subscription_info_response import ConfirmCloudWafSubscriptionInfoResponse +from huaweicloudsdkwaf.v1.model.confirm_user_bundle_request import ConfirmUserBundleRequest +from huaweicloudsdkwaf.v1.model.confirm_user_bundle_response import ConfirmUserBundleResponse +from huaweicloudsdkwaf.v1.model.count_item import CountItem +from huaweicloudsdkwaf.v1.model.crawler_list_info import CrawlerListInfo +from huaweicloudsdkwaf.v1.model.create_anti_leakage_request_body import CreateAntiLeakageRequestBody +from huaweicloudsdkwaf.v1.model.create_anticrawler_rules_request import CreateAnticrawlerRulesRequest +from huaweicloudsdkwaf.v1.model.create_anticrawler_rules_response import CreateAnticrawlerRulesResponse +from huaweicloudsdkwaf.v1.model.create_antileakage_rules_request import CreateAntileakageRulesRequest +from huaweicloudsdkwaf.v1.model.create_antileakage_rules_response import CreateAntileakageRulesResponse +from huaweicloudsdkwaf.v1.model.create_cc_rule_request import CreateCcRuleRequest +from huaweicloudsdkwaf.v1.model.create_cc_rule_request_body import CreateCcRuleRequestBody +from huaweicloudsdkwaf.v1.model.create_cc_rule_request_body_action import CreateCcRuleRequestBodyAction +from huaweicloudsdkwaf.v1.model.create_cc_rule_response import CreateCcRuleResponse +from huaweicloudsdkwaf.v1.model.create_certificate_request import CreateCertificateRequest +from huaweicloudsdkwaf.v1.model.create_certificate_request_body import CreateCertificateRequestBody +from huaweicloudsdkwaf.v1.model.create_certificate_response import CreateCertificateResponse +from huaweicloudsdkwaf.v1.model.create_custom_rules_request import CreateCustomRulesRequest +from huaweicloudsdkwaf.v1.model.create_custom_rules_response import CreateCustomRulesResponse +from huaweicloudsdkwaf.v1.model.create_geoip_rules_request import CreateGeoipRulesRequest +from huaweicloudsdkwaf.v1.model.create_geoip_rules_response import CreateGeoipRulesResponse +from huaweicloudsdkwaf.v1.model.create_instane_request import CreateInstaneRequest +from huaweicloudsdkwaf.v1.model.create_instane_response import CreateInstaneResponse +from huaweicloudsdkwaf.v1.model.create_policy_body import CreatePolicyBody +from huaweicloudsdkwaf.v1.model.create_policy_request import CreatePolicyRequest +from huaweicloudsdkwaf.v1.model.create_policy_response import CreatePolicyResponse +from huaweicloudsdkwaf.v1.model.create_pool_request import CreatePoolRequest +from huaweicloudsdkwaf.v1.model.create_pool_request_body import CreatePoolRequestBody +from huaweicloudsdkwaf.v1.model.create_pool_response import CreatePoolResponse +from huaweicloudsdkwaf.v1.model.create_premium_host_request import CreatePremiumHostRequest +from huaweicloudsdkwaf.v1.model.create_premium_host_request_body import CreatePremiumHostRequestBody +from huaweicloudsdkwaf.v1.model.create_premium_host_response import CreatePremiumHostResponse +from huaweicloudsdkwaf.v1.model.custom_action import CustomAction +from huaweicloudsdkwaf.v1.model.custom_conditions import CustomConditions +from huaweicloudsdkwaf.v1.model.custom_page import CustomPage +from huaweicloudsdkwaf.v1.model.custom_post_body import CustomPostBody +from huaweicloudsdkwaf.v1.model.delete_anticrawler_rule_request import DeleteAnticrawlerRuleRequest +from huaweicloudsdkwaf.v1.model.delete_anticrawler_rule_response import DeleteAnticrawlerRuleResponse +from huaweicloudsdkwaf.v1.model.delete_antileakage_rule_request import DeleteAntileakageRuleRequest +from huaweicloudsdkwaf.v1.model.delete_antileakage_rule_response import DeleteAntileakageRuleResponse +from huaweicloudsdkwaf.v1.model.delete_cc_rule_request import DeleteCcRuleRequest +from huaweicloudsdkwaf.v1.model.delete_cc_rule_response import DeleteCcRuleResponse +from huaweicloudsdkwaf.v1.model.delete_certificate_request import DeleteCertificateRequest +from huaweicloudsdkwaf.v1.model.delete_certificate_response import DeleteCertificateResponse +from huaweicloudsdkwaf.v1.model.delete_custom_rule_request import DeleteCustomRuleRequest +from huaweicloudsdkwaf.v1.model.delete_custom_rule_response import DeleteCustomRuleResponse +from huaweicloudsdkwaf.v1.model.delete_geoip_rule_request import DeleteGeoipRuleRequest +from huaweicloudsdkwaf.v1.model.delete_geoip_rule_response import DeleteGeoipRuleResponse +from huaweicloudsdkwaf.v1.model.delete_instane_request import DeleteInstaneRequest +from huaweicloudsdkwaf.v1.model.delete_instane_response import DeleteInstaneResponse +from huaweicloudsdkwaf.v1.model.delete_policy_request import DeletePolicyRequest +from huaweicloudsdkwaf.v1.model.delete_policy_response import DeletePolicyResponse +from huaweicloudsdkwaf.v1.model.delete_pool_request import DeletePoolRequest +from huaweicloudsdkwaf.v1.model.delete_pool_response import DeletePoolResponse +from huaweicloudsdkwaf.v1.model.delete_premium_host_request import DeletePremiumHostRequest +from huaweicloudsdkwaf.v1.model.delete_premium_host_response import DeletePremiumHostResponse +from huaweicloudsdkwaf.v1.model.events_list_info_items import EventsListInfoItems +from huaweicloudsdkwaf.v1.model.geo_ip_body import GeoIpBody +from huaweicloudsdkwaf.v1.model.id_hostname_entry import IdHostnameEntry +from huaweicloudsdkwaf.v1.model.id_name_entry import IdNameEntry +from huaweicloudsdkwaf.v1.model.instance_body import InstanceBody +from huaweicloudsdkwaf.v1.model.instance_response import InstanceResponse +from huaweicloudsdkwaf.v1.model.list_anticrawler_rules_request import ListAnticrawlerRulesRequest +from huaweicloudsdkwaf.v1.model.list_anticrawler_rules_response import ListAnticrawlerRulesResponse +from huaweicloudsdkwaf.v1.model.list_antileakage_rules_request import ListAntileakageRulesRequest +from huaweicloudsdkwaf.v1.model.list_antileakage_rules_response import ListAntileakageRulesResponse +from huaweicloudsdkwaf.v1.model.list_attack_action_request import ListAttackActionRequest +from huaweicloudsdkwaf.v1.model.list_attack_action_response import ListAttackActionResponse +from huaweicloudsdkwaf.v1.model.list_attack_distribution_request import ListAttackDistributionRequest +from huaweicloudsdkwaf.v1.model.list_attack_distribution_response import ListAttackDistributionResponse +from huaweicloudsdkwaf.v1.model.list_bandwidth_timeline_request import ListBandwidthTimelineRequest +from huaweicloudsdkwaf.v1.model.list_bandwidth_timeline_response import ListBandwidthTimelineResponse +from huaweicloudsdkwaf.v1.model.list_cc_rules_request import ListCcRulesRequest +from huaweicloudsdkwaf.v1.model.list_cc_rules_response import ListCcRulesResponse +from huaweicloudsdkwaf.v1.model.list_certificates_request import ListCertificatesRequest +from huaweicloudsdkwaf.v1.model.list_certificates_response import ListCertificatesResponse +from huaweicloudsdkwaf.v1.model.list_custom_rules_request import ListCustomRulesRequest +from huaweicloudsdkwaf.v1.model.list_custom_rules_response import ListCustomRulesResponse +from huaweicloudsdkwaf.v1.model.list_event_by_timeline_request import ListEventByTimelineRequest +from huaweicloudsdkwaf.v1.model.list_event_by_timeline_response import ListEventByTimelineResponse +from huaweicloudsdkwaf.v1.model.list_events_request import ListEventsRequest +from huaweicloudsdkwaf.v1.model.list_events_response import ListEventsResponse +from huaweicloudsdkwaf.v1.model.list_geoip_rules_request import ListGeoipRulesRequest +from huaweicloudsdkwaf.v1.model.list_geoip_rules_response import ListGeoipRulesResponse +from huaweicloudsdkwaf.v1.model.list_instance_request import ListInstanceRequest +from huaweicloudsdkwaf.v1.model.list_instance_response import ListInstanceResponse +from huaweicloudsdkwaf.v1.model.list_instanes_request import ListInstanesRequest +from huaweicloudsdkwaf.v1.model.list_instanes_response import ListInstanesResponse +from huaweicloudsdkwaf.v1.model.list_policy_request import ListPolicyRequest +from huaweicloudsdkwaf.v1.model.list_policy_response import ListPolicyResponse +from huaweicloudsdkwaf.v1.model.list_pools_request import ListPoolsRequest +from huaweicloudsdkwaf.v1.model.list_pools_response import ListPoolsResponse +from huaweicloudsdkwaf.v1.model.list_premium_host_request import ListPremiumHostRequest +from huaweicloudsdkwaf.v1.model.list_premium_host_response import ListPremiumHostResponse +from huaweicloudsdkwaf.v1.model.list_qps_request import ListQpsRequest +from huaweicloudsdkwaf.v1.model.list_qps_response import ListQpsResponse +from huaweicloudsdkwaf.v1.model.list_qps_timeline_request import ListQpsTimelineRequest +from huaweicloudsdkwaf.v1.model.list_qps_timeline_response import ListQpsTimelineResponse +from huaweicloudsdkwaf.v1.model.list_request_timeline_request import ListRequestTimelineRequest +from huaweicloudsdkwaf.v1.model.list_request_timeline_response import ListRequestTimelineResponse +from huaweicloudsdkwaf.v1.model.list_response_code_timeline_request import ListResponseCodeTimelineRequest +from huaweicloudsdkwaf.v1.model.list_response_code_timeline_response import ListResponseCodeTimelineResponse +from huaweicloudsdkwaf.v1.model.list_source_domain_top5_request import ListSourceDomainTop5Request +from huaweicloudsdkwaf.v1.model.list_source_domain_top5_response import ListSourceDomainTop5Response +from huaweicloudsdkwaf.v1.model.list_source_ip_num_request import ListSourceIpNumRequest +from huaweicloudsdkwaf.v1.model.list_source_ip_num_response import ListSourceIpNumResponse +from huaweicloudsdkwaf.v1.model.list_source_ip_top5_request import ListSourceIpTop5Request +from huaweicloudsdkwaf.v1.model.list_source_ip_top5_response import ListSourceIpTop5Response +from huaweicloudsdkwaf.v1.model.list_source_url_top5_request import ListSourceUrlTop5Request +from huaweicloudsdkwaf.v1.model.list_source_url_top5_response import ListSourceUrlTop5Response +from huaweicloudsdkwaf.v1.model.list_statistics_request import ListStatisticsRequest +from huaweicloudsdkwaf.v1.model.list_statistics_response import ListStatisticsResponse +from huaweicloudsdkwaf.v1.model.list_threats_request import ListThreatsRequest +from huaweicloudsdkwaf.v1.model.list_threats_response import ListThreatsResponse +from huaweicloudsdkwaf.v1.model.list_top_abnormal_request import ListTopAbnormalRequest +from huaweicloudsdkwaf.v1.model.list_top_abnormal_response import ListTopAbnormalResponse +from huaweicloudsdkwaf.v1.model.list_top_domain_request import ListTopDomainRequest +from huaweicloudsdkwaf.v1.model.list_top_domain_response import ListTopDomainResponse +from huaweicloudsdkwaf.v1.model.list_top_ip_request import ListTopIpRequest +from huaweicloudsdkwaf.v1.model.list_top_ip_response import ListTopIpResponse +from huaweicloudsdkwaf.v1.model.list_top_region_request import ListTopRegionRequest +from huaweicloudsdkwaf.v1.model.list_top_region_response import ListTopRegionResponse +from huaweicloudsdkwaf.v1.model.list_top_url_request import ListTopUrlRequest +from huaweicloudsdkwaf.v1.model.list_top_url_response import ListTopUrlResponse +from huaweicloudsdkwaf.v1.model.list_url_request import ListUrlRequest +from huaweicloudsdkwaf.v1.model.list_url_response import ListUrlResponse +from huaweicloudsdkwaf.v1.model.list_value_list_request import ListValueListRequest +from huaweicloudsdkwaf.v1.model.list_value_list_response import ListValueListResponse +from huaweicloudsdkwaf.v1.model.policy_action import PolicyAction +from huaweicloudsdkwaf.v1.model.policy_anti_crawler_post_info import PolicyAntiCrawlerPostInfo +from huaweicloudsdkwaf.v1.model.policy_anti_crawler_put_info import PolicyAntiCrawlerPutInfo +from huaweicloudsdkwaf.v1.model.policy_geo_ip_list_info_items import PolicyGeoIpListInfoItems +from huaweicloudsdkwaf.v1.model.policy_option import PolicyOption +from huaweicloudsdkwaf.v1.model.policy_response import PolicyResponse +from huaweicloudsdkwaf.v1.model.pool_info_response import PoolInfoResponse +from huaweicloudsdkwaf.v1.model.premium_waf_host import PremiumWafHost +from huaweicloudsdkwaf.v1.model.premium_waf_instance import PremiumWafInstance +from huaweicloudsdkwaf.v1.model.premium_waf_pool_option import PremiumWafPoolOption +from huaweicloudsdkwaf.v1.model.premium_waf_server import PremiumWafServer +from huaweicloudsdkwaf.v1.model.route_put_body import RoutePutBody +from huaweicloudsdkwaf.v1.model.route_server_parm import RouteServerParm +from huaweicloudsdkwaf.v1.model.show_anticrawler_rule_request import ShowAnticrawlerRuleRequest +from huaweicloudsdkwaf.v1.model.show_anticrawler_rule_response import ShowAnticrawlerRuleResponse +from huaweicloudsdkwaf.v1.model.show_antileakage_rule_request import ShowAntileakageRuleRequest +from huaweicloudsdkwaf.v1.model.show_antileakage_rule_response import ShowAntileakageRuleResponse +from huaweicloudsdkwaf.v1.model.show_cc_rule_request import ShowCcRuleRequest +from huaweicloudsdkwaf.v1.model.show_cc_rule_response import ShowCcRuleResponse +from huaweicloudsdkwaf.v1.model.show_certificate_request import ShowCertificateRequest +from huaweicloudsdkwaf.v1.model.show_certificate_response import ShowCertificateResponse +from huaweicloudsdkwaf.v1.model.show_custom_rule_request import ShowCustomRuleRequest +from huaweicloudsdkwaf.v1.model.show_custom_rule_response import ShowCustomRuleResponse +from huaweicloudsdkwaf.v1.model.show_geoip_rule_request import ShowGeoipRuleRequest +from huaweicloudsdkwaf.v1.model.show_geoip_rule_response import ShowGeoipRuleResponse +from huaweicloudsdkwaf.v1.model.show_instance_request import ShowInstanceRequest +from huaweicloudsdkwaf.v1.model.show_instance_response import ShowInstanceResponse +from huaweicloudsdkwaf.v1.model.show_instance_route_request import ShowInstanceRouteRequest +from huaweicloudsdkwaf.v1.model.show_instance_route_response import ShowInstanceRouteResponse +from huaweicloudsdkwaf.v1.model.show_pool_request import ShowPoolRequest +from huaweicloudsdkwaf.v1.model.show_pool_response import ShowPoolResponse +from huaweicloudsdkwaf.v1.model.show_premium_host_request import ShowPremiumHostRequest +from huaweicloudsdkwaf.v1.model.show_premium_host_response import ShowPremiumHostResponse +from huaweicloudsdkwaf.v1.model.simple_premium_waf_host import SimplePremiumWafHost +from huaweicloudsdkwaf.v1.model.source_ip_top_list_info_items import SourceIpTopListInfoItems +from huaweicloudsdkwaf.v1.model.statistic_list_info_requests import StatisticListInfoRequests +from huaweicloudsdkwaf.v1.model.statistics_timeline_item import StatisticsTimelineItem +from huaweicloudsdkwaf.v1.model.time_line_item import TimeLineItem +from huaweicloudsdkwaf.v1.model.traffic_mark import TrafficMark +from huaweicloudsdkwaf.v1.model.update_anticrawler_rule_request import UpdateAnticrawlerRuleRequest +from huaweicloudsdkwaf.v1.model.update_anticrawler_rule_response import UpdateAnticrawlerRuleResponse +from huaweicloudsdkwaf.v1.model.update_antileakage_rule_request import UpdateAntileakageRuleRequest +from huaweicloudsdkwaf.v1.model.update_antileakage_rule_response import UpdateAntileakageRuleResponse +from huaweicloudsdkwaf.v1.model.update_cc_rule_request import UpdateCcRuleRequest +from huaweicloudsdkwaf.v1.model.update_cc_rule_response import UpdateCcRuleResponse +from huaweicloudsdkwaf.v1.model.update_certificate_request import UpdateCertificateRequest +from huaweicloudsdkwaf.v1.model.update_certificate_request_body import UpdateCertificateRequestBody +from huaweicloudsdkwaf.v1.model.update_certificate_response import UpdateCertificateResponse +from huaweicloudsdkwaf.v1.model.update_custom_rule_request import UpdateCustomRuleRequest +from huaweicloudsdkwaf.v1.model.update_custom_rule_response import UpdateCustomRuleResponse +from huaweicloudsdkwaf.v1.model.update_geoip_rule_request import UpdateGeoipRuleRequest +from huaweicloudsdkwaf.v1.model.update_geoip_rule_response import UpdateGeoipRuleResponse +from huaweicloudsdkwaf.v1.model.update_instance_request import UpdateInstanceRequest +from huaweicloudsdkwaf.v1.model.update_instance_request_body import UpdateInstanceRequestBody +from huaweicloudsdkwaf.v1.model.update_instance_response import UpdateInstanceResponse +from huaweicloudsdkwaf.v1.model.update_patch_policy_request import UpdatePatchPolicyRequest +from huaweicloudsdkwaf.v1.model.update_patch_policy_response import UpdatePatchPolicyResponse +from huaweicloudsdkwaf.v1.model.update_policy_request_body import UpdatePolicyRequestBody +from huaweicloudsdkwaf.v1.model.update_pool_request import UpdatePoolRequest +from huaweicloudsdkwaf.v1.model.update_pool_request_body import UpdatePoolRequestBody +from huaweicloudsdkwaf.v1.model.update_pool_response import UpdatePoolResponse +from huaweicloudsdkwaf.v1.model.update_premium_host_access_status_request import UpdatePremiumHostAccessStatusRequest +from huaweicloudsdkwaf.v1.model.update_premium_host_access_status_request_body import UpdatePremiumHostAccessStatusRequestBody +from huaweicloudsdkwaf.v1.model.update_premium_host_access_status_response import UpdatePremiumHostAccessStatusResponse +from huaweicloudsdkwaf.v1.model.update_premium_host_protect_status_request import UpdatePremiumHostProtectStatusRequest +from huaweicloudsdkwaf.v1.model.update_premium_host_protect_status_request_body import UpdatePremiumHostProtectStatusRequestBody +from huaweicloudsdkwaf.v1.model.update_premium_host_protect_status_response import UpdatePremiumHostProtectStatusResponse +from huaweicloudsdkwaf.v1.model.update_premium_host_request import UpdatePremiumHostRequest +from huaweicloudsdkwaf.v1.model.update_premium_host_request_body import UpdatePremiumHostRequestBody +from huaweicloudsdkwaf.v1.model.update_premium_host_response import UpdatePremiumHostResponse +from huaweicloudsdkwaf.v1.model.url_count_item import UrlCountItem +from huaweicloudsdkwaf.v1.model.value_list import ValueList + diff --git a/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/__init__.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/__init__.py new file mode 100644 index 0000000000..5f504737c6 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/__init__.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +from __future__ import absolute_import + +# import models into model package +from huaweicloudsdkwaf.v1.model.attack_domain_top_list_info_items import AttackDomainTopListInfoItems +from huaweicloudsdkwaf.v1.model.attack_url_top_list_info_items import AttackUrlTopListInfoItems +from huaweicloudsdkwaf.v1.model.bind_host import BindHost +from huaweicloudsdkwaf.v1.model.block_page import BlockPage +from huaweicloudsdkwaf.v1.model.ccrule_post_info import CcrulePostInfo +from huaweicloudsdkwaf.v1.model.ccrules_list_info_action import CcrulesListInfoAction +from huaweicloudsdkwaf.v1.model.ccrules_list_info_action_detail import CcrulesListInfoActionDetail +from huaweicloudsdkwaf.v1.model.ccrules_list_info_action_detail_response import CcrulesListInfoActionDetailResponse +from huaweicloudsdkwaf.v1.model.certificate_body import CertificateBody +from huaweicloudsdkwaf.v1.model.cloud_waf_subscriptio_response_resources import CloudWafSubscriptioResponseResources +from huaweicloudsdkwaf.v1.model.confirm_cloud_waf_subscription_info_request import ConfirmCloudWafSubscriptionInfoRequest +from huaweicloudsdkwaf.v1.model.confirm_cloud_waf_subscription_info_response import ConfirmCloudWafSubscriptionInfoResponse +from huaweicloudsdkwaf.v1.model.confirm_user_bundle_request import ConfirmUserBundleRequest +from huaweicloudsdkwaf.v1.model.confirm_user_bundle_response import ConfirmUserBundleResponse +from huaweicloudsdkwaf.v1.model.count_item import CountItem +from huaweicloudsdkwaf.v1.model.crawler_list_info import CrawlerListInfo +from huaweicloudsdkwaf.v1.model.create_anti_leakage_request_body import CreateAntiLeakageRequestBody +from huaweicloudsdkwaf.v1.model.create_anticrawler_rules_request import CreateAnticrawlerRulesRequest +from huaweicloudsdkwaf.v1.model.create_anticrawler_rules_response import CreateAnticrawlerRulesResponse +from huaweicloudsdkwaf.v1.model.create_antileakage_rules_request import CreateAntileakageRulesRequest +from huaweicloudsdkwaf.v1.model.create_antileakage_rules_response import CreateAntileakageRulesResponse +from huaweicloudsdkwaf.v1.model.create_cc_rule_request import CreateCcRuleRequest +from huaweicloudsdkwaf.v1.model.create_cc_rule_request_body import CreateCcRuleRequestBody +from huaweicloudsdkwaf.v1.model.create_cc_rule_request_body_action import CreateCcRuleRequestBodyAction +from huaweicloudsdkwaf.v1.model.create_cc_rule_response import CreateCcRuleResponse +from huaweicloudsdkwaf.v1.model.create_certificate_request import CreateCertificateRequest +from huaweicloudsdkwaf.v1.model.create_certificate_request_body import CreateCertificateRequestBody +from huaweicloudsdkwaf.v1.model.create_certificate_response import CreateCertificateResponse +from huaweicloudsdkwaf.v1.model.create_custom_rules_request import CreateCustomRulesRequest +from huaweicloudsdkwaf.v1.model.create_custom_rules_response import CreateCustomRulesResponse +from huaweicloudsdkwaf.v1.model.create_geoip_rules_request import CreateGeoipRulesRequest +from huaweicloudsdkwaf.v1.model.create_geoip_rules_response import CreateGeoipRulesResponse +from huaweicloudsdkwaf.v1.model.create_instane_request import CreateInstaneRequest +from huaweicloudsdkwaf.v1.model.create_instane_response import CreateInstaneResponse +from huaweicloudsdkwaf.v1.model.create_policy_body import CreatePolicyBody +from huaweicloudsdkwaf.v1.model.create_policy_request import CreatePolicyRequest +from huaweicloudsdkwaf.v1.model.create_policy_response import CreatePolicyResponse +from huaweicloudsdkwaf.v1.model.create_pool_request import CreatePoolRequest +from huaweicloudsdkwaf.v1.model.create_pool_request_body import CreatePoolRequestBody +from huaweicloudsdkwaf.v1.model.create_pool_response import CreatePoolResponse +from huaweicloudsdkwaf.v1.model.create_premium_host_request import CreatePremiumHostRequest +from huaweicloudsdkwaf.v1.model.create_premium_host_request_body import CreatePremiumHostRequestBody +from huaweicloudsdkwaf.v1.model.create_premium_host_response import CreatePremiumHostResponse +from huaweicloudsdkwaf.v1.model.custom_action import CustomAction +from huaweicloudsdkwaf.v1.model.custom_conditions import CustomConditions +from huaweicloudsdkwaf.v1.model.custom_page import CustomPage +from huaweicloudsdkwaf.v1.model.custom_post_body import CustomPostBody +from huaweicloudsdkwaf.v1.model.delete_anticrawler_rule_request import DeleteAnticrawlerRuleRequest +from huaweicloudsdkwaf.v1.model.delete_anticrawler_rule_response import DeleteAnticrawlerRuleResponse +from huaweicloudsdkwaf.v1.model.delete_antileakage_rule_request import DeleteAntileakageRuleRequest +from huaweicloudsdkwaf.v1.model.delete_antileakage_rule_response import DeleteAntileakageRuleResponse +from huaweicloudsdkwaf.v1.model.delete_cc_rule_request import DeleteCcRuleRequest +from huaweicloudsdkwaf.v1.model.delete_cc_rule_response import DeleteCcRuleResponse +from huaweicloudsdkwaf.v1.model.delete_certificate_request import DeleteCertificateRequest +from huaweicloudsdkwaf.v1.model.delete_certificate_response import DeleteCertificateResponse +from huaweicloudsdkwaf.v1.model.delete_custom_rule_request import DeleteCustomRuleRequest +from huaweicloudsdkwaf.v1.model.delete_custom_rule_response import DeleteCustomRuleResponse +from huaweicloudsdkwaf.v1.model.delete_geoip_rule_request import DeleteGeoipRuleRequest +from huaweicloudsdkwaf.v1.model.delete_geoip_rule_response import DeleteGeoipRuleResponse +from huaweicloudsdkwaf.v1.model.delete_instane_request import DeleteInstaneRequest +from huaweicloudsdkwaf.v1.model.delete_instane_response import DeleteInstaneResponse +from huaweicloudsdkwaf.v1.model.delete_policy_request import DeletePolicyRequest +from huaweicloudsdkwaf.v1.model.delete_policy_response import DeletePolicyResponse +from huaweicloudsdkwaf.v1.model.delete_pool_request import DeletePoolRequest +from huaweicloudsdkwaf.v1.model.delete_pool_response import DeletePoolResponse +from huaweicloudsdkwaf.v1.model.delete_premium_host_request import DeletePremiumHostRequest +from huaweicloudsdkwaf.v1.model.delete_premium_host_response import DeletePremiumHostResponse +from huaweicloudsdkwaf.v1.model.events_list_info_items import EventsListInfoItems +from huaweicloudsdkwaf.v1.model.geo_ip_body import GeoIpBody +from huaweicloudsdkwaf.v1.model.id_hostname_entry import IdHostnameEntry +from huaweicloudsdkwaf.v1.model.id_name_entry import IdNameEntry +from huaweicloudsdkwaf.v1.model.instance_body import InstanceBody +from huaweicloudsdkwaf.v1.model.instance_response import InstanceResponse +from huaweicloudsdkwaf.v1.model.list_anticrawler_rules_request import ListAnticrawlerRulesRequest +from huaweicloudsdkwaf.v1.model.list_anticrawler_rules_response import ListAnticrawlerRulesResponse +from huaweicloudsdkwaf.v1.model.list_antileakage_rules_request import ListAntileakageRulesRequest +from huaweicloudsdkwaf.v1.model.list_antileakage_rules_response import ListAntileakageRulesResponse +from huaweicloudsdkwaf.v1.model.list_attack_action_request import ListAttackActionRequest +from huaweicloudsdkwaf.v1.model.list_attack_action_response import ListAttackActionResponse +from huaweicloudsdkwaf.v1.model.list_attack_distribution_request import ListAttackDistributionRequest +from huaweicloudsdkwaf.v1.model.list_attack_distribution_response import ListAttackDistributionResponse +from huaweicloudsdkwaf.v1.model.list_bandwidth_timeline_request import ListBandwidthTimelineRequest +from huaweicloudsdkwaf.v1.model.list_bandwidth_timeline_response import ListBandwidthTimelineResponse +from huaweicloudsdkwaf.v1.model.list_cc_rules_request import ListCcRulesRequest +from huaweicloudsdkwaf.v1.model.list_cc_rules_response import ListCcRulesResponse +from huaweicloudsdkwaf.v1.model.list_certificates_request import ListCertificatesRequest +from huaweicloudsdkwaf.v1.model.list_certificates_response import ListCertificatesResponse +from huaweicloudsdkwaf.v1.model.list_custom_rules_request import ListCustomRulesRequest +from huaweicloudsdkwaf.v1.model.list_custom_rules_response import ListCustomRulesResponse +from huaweicloudsdkwaf.v1.model.list_event_by_timeline_request import ListEventByTimelineRequest +from huaweicloudsdkwaf.v1.model.list_event_by_timeline_response import ListEventByTimelineResponse +from huaweicloudsdkwaf.v1.model.list_events_request import ListEventsRequest +from huaweicloudsdkwaf.v1.model.list_events_response import ListEventsResponse +from huaweicloudsdkwaf.v1.model.list_geoip_rules_request import ListGeoipRulesRequest +from huaweicloudsdkwaf.v1.model.list_geoip_rules_response import ListGeoipRulesResponse +from huaweicloudsdkwaf.v1.model.list_instance_request import ListInstanceRequest +from huaweicloudsdkwaf.v1.model.list_instance_response import ListInstanceResponse +from huaweicloudsdkwaf.v1.model.list_instanes_request import ListInstanesRequest +from huaweicloudsdkwaf.v1.model.list_instanes_response import ListInstanesResponse +from huaweicloudsdkwaf.v1.model.list_policy_request import ListPolicyRequest +from huaweicloudsdkwaf.v1.model.list_policy_response import ListPolicyResponse +from huaweicloudsdkwaf.v1.model.list_pools_request import ListPoolsRequest +from huaweicloudsdkwaf.v1.model.list_pools_response import ListPoolsResponse +from huaweicloudsdkwaf.v1.model.list_premium_host_request import ListPremiumHostRequest +from huaweicloudsdkwaf.v1.model.list_premium_host_response import ListPremiumHostResponse +from huaweicloudsdkwaf.v1.model.list_qps_request import ListQpsRequest +from huaweicloudsdkwaf.v1.model.list_qps_response import ListQpsResponse +from huaweicloudsdkwaf.v1.model.list_qps_timeline_request import ListQpsTimelineRequest +from huaweicloudsdkwaf.v1.model.list_qps_timeline_response import ListQpsTimelineResponse +from huaweicloudsdkwaf.v1.model.list_request_timeline_request import ListRequestTimelineRequest +from huaweicloudsdkwaf.v1.model.list_request_timeline_response import ListRequestTimelineResponse +from huaweicloudsdkwaf.v1.model.list_response_code_timeline_request import ListResponseCodeTimelineRequest +from huaweicloudsdkwaf.v1.model.list_response_code_timeline_response import ListResponseCodeTimelineResponse +from huaweicloudsdkwaf.v1.model.list_source_domain_top5_request import ListSourceDomainTop5Request +from huaweicloudsdkwaf.v1.model.list_source_domain_top5_response import ListSourceDomainTop5Response +from huaweicloudsdkwaf.v1.model.list_source_ip_num_request import ListSourceIpNumRequest +from huaweicloudsdkwaf.v1.model.list_source_ip_num_response import ListSourceIpNumResponse +from huaweicloudsdkwaf.v1.model.list_source_ip_top5_request import ListSourceIpTop5Request +from huaweicloudsdkwaf.v1.model.list_source_ip_top5_response import ListSourceIpTop5Response +from huaweicloudsdkwaf.v1.model.list_source_url_top5_request import ListSourceUrlTop5Request +from huaweicloudsdkwaf.v1.model.list_source_url_top5_response import ListSourceUrlTop5Response +from huaweicloudsdkwaf.v1.model.list_statistics_request import ListStatisticsRequest +from huaweicloudsdkwaf.v1.model.list_statistics_response import ListStatisticsResponse +from huaweicloudsdkwaf.v1.model.list_threats_request import ListThreatsRequest +from huaweicloudsdkwaf.v1.model.list_threats_response import ListThreatsResponse +from huaweicloudsdkwaf.v1.model.list_top_abnormal_request import ListTopAbnormalRequest +from huaweicloudsdkwaf.v1.model.list_top_abnormal_response import ListTopAbnormalResponse +from huaweicloudsdkwaf.v1.model.list_top_domain_request import ListTopDomainRequest +from huaweicloudsdkwaf.v1.model.list_top_domain_response import ListTopDomainResponse +from huaweicloudsdkwaf.v1.model.list_top_ip_request import ListTopIpRequest +from huaweicloudsdkwaf.v1.model.list_top_ip_response import ListTopIpResponse +from huaweicloudsdkwaf.v1.model.list_top_region_request import ListTopRegionRequest +from huaweicloudsdkwaf.v1.model.list_top_region_response import ListTopRegionResponse +from huaweicloudsdkwaf.v1.model.list_top_url_request import ListTopUrlRequest +from huaweicloudsdkwaf.v1.model.list_top_url_response import ListTopUrlResponse +from huaweicloudsdkwaf.v1.model.list_url_request import ListUrlRequest +from huaweicloudsdkwaf.v1.model.list_url_response import ListUrlResponse +from huaweicloudsdkwaf.v1.model.list_value_list_request import ListValueListRequest +from huaweicloudsdkwaf.v1.model.list_value_list_response import ListValueListResponse +from huaweicloudsdkwaf.v1.model.policy_action import PolicyAction +from huaweicloudsdkwaf.v1.model.policy_anti_crawler_post_info import PolicyAntiCrawlerPostInfo +from huaweicloudsdkwaf.v1.model.policy_anti_crawler_put_info import PolicyAntiCrawlerPutInfo +from huaweicloudsdkwaf.v1.model.policy_geo_ip_list_info_items import PolicyGeoIpListInfoItems +from huaweicloudsdkwaf.v1.model.policy_option import PolicyOption +from huaweicloudsdkwaf.v1.model.policy_response import PolicyResponse +from huaweicloudsdkwaf.v1.model.pool_info_response import PoolInfoResponse +from huaweicloudsdkwaf.v1.model.premium_waf_host import PremiumWafHost +from huaweicloudsdkwaf.v1.model.premium_waf_instance import PremiumWafInstance +from huaweicloudsdkwaf.v1.model.premium_waf_pool_option import PremiumWafPoolOption +from huaweicloudsdkwaf.v1.model.premium_waf_server import PremiumWafServer +from huaweicloudsdkwaf.v1.model.route_put_body import RoutePutBody +from huaweicloudsdkwaf.v1.model.route_server_parm import RouteServerParm +from huaweicloudsdkwaf.v1.model.show_anticrawler_rule_request import ShowAnticrawlerRuleRequest +from huaweicloudsdkwaf.v1.model.show_anticrawler_rule_response import ShowAnticrawlerRuleResponse +from huaweicloudsdkwaf.v1.model.show_antileakage_rule_request import ShowAntileakageRuleRequest +from huaweicloudsdkwaf.v1.model.show_antileakage_rule_response import ShowAntileakageRuleResponse +from huaweicloudsdkwaf.v1.model.show_cc_rule_request import ShowCcRuleRequest +from huaweicloudsdkwaf.v1.model.show_cc_rule_response import ShowCcRuleResponse +from huaweicloudsdkwaf.v1.model.show_certificate_request import ShowCertificateRequest +from huaweicloudsdkwaf.v1.model.show_certificate_response import ShowCertificateResponse +from huaweicloudsdkwaf.v1.model.show_custom_rule_request import ShowCustomRuleRequest +from huaweicloudsdkwaf.v1.model.show_custom_rule_response import ShowCustomRuleResponse +from huaweicloudsdkwaf.v1.model.show_geoip_rule_request import ShowGeoipRuleRequest +from huaweicloudsdkwaf.v1.model.show_geoip_rule_response import ShowGeoipRuleResponse +from huaweicloudsdkwaf.v1.model.show_instance_request import ShowInstanceRequest +from huaweicloudsdkwaf.v1.model.show_instance_response import ShowInstanceResponse +from huaweicloudsdkwaf.v1.model.show_instance_route_request import ShowInstanceRouteRequest +from huaweicloudsdkwaf.v1.model.show_instance_route_response import ShowInstanceRouteResponse +from huaweicloudsdkwaf.v1.model.show_pool_request import ShowPoolRequest +from huaweicloudsdkwaf.v1.model.show_pool_response import ShowPoolResponse +from huaweicloudsdkwaf.v1.model.show_premium_host_request import ShowPremiumHostRequest +from huaweicloudsdkwaf.v1.model.show_premium_host_response import ShowPremiumHostResponse +from huaweicloudsdkwaf.v1.model.simple_premium_waf_host import SimplePremiumWafHost +from huaweicloudsdkwaf.v1.model.source_ip_top_list_info_items import SourceIpTopListInfoItems +from huaweicloudsdkwaf.v1.model.statistic_list_info_requests import StatisticListInfoRequests +from huaweicloudsdkwaf.v1.model.statistics_timeline_item import StatisticsTimelineItem +from huaweicloudsdkwaf.v1.model.time_line_item import TimeLineItem +from huaweicloudsdkwaf.v1.model.traffic_mark import TrafficMark +from huaweicloudsdkwaf.v1.model.update_anticrawler_rule_request import UpdateAnticrawlerRuleRequest +from huaweicloudsdkwaf.v1.model.update_anticrawler_rule_response import UpdateAnticrawlerRuleResponse +from huaweicloudsdkwaf.v1.model.update_antileakage_rule_request import UpdateAntileakageRuleRequest +from huaweicloudsdkwaf.v1.model.update_antileakage_rule_response import UpdateAntileakageRuleResponse +from huaweicloudsdkwaf.v1.model.update_cc_rule_request import UpdateCcRuleRequest +from huaweicloudsdkwaf.v1.model.update_cc_rule_response import UpdateCcRuleResponse +from huaweicloudsdkwaf.v1.model.update_certificate_request import UpdateCertificateRequest +from huaweicloudsdkwaf.v1.model.update_certificate_request_body import UpdateCertificateRequestBody +from huaweicloudsdkwaf.v1.model.update_certificate_response import UpdateCertificateResponse +from huaweicloudsdkwaf.v1.model.update_custom_rule_request import UpdateCustomRuleRequest +from huaweicloudsdkwaf.v1.model.update_custom_rule_response import UpdateCustomRuleResponse +from huaweicloudsdkwaf.v1.model.update_geoip_rule_request import UpdateGeoipRuleRequest +from huaweicloudsdkwaf.v1.model.update_geoip_rule_response import UpdateGeoipRuleResponse +from huaweicloudsdkwaf.v1.model.update_instance_request import UpdateInstanceRequest +from huaweicloudsdkwaf.v1.model.update_instance_request_body import UpdateInstanceRequestBody +from huaweicloudsdkwaf.v1.model.update_instance_response import UpdateInstanceResponse +from huaweicloudsdkwaf.v1.model.update_patch_policy_request import UpdatePatchPolicyRequest +from huaweicloudsdkwaf.v1.model.update_patch_policy_response import UpdatePatchPolicyResponse +from huaweicloudsdkwaf.v1.model.update_policy_request_body import UpdatePolicyRequestBody +from huaweicloudsdkwaf.v1.model.update_pool_request import UpdatePoolRequest +from huaweicloudsdkwaf.v1.model.update_pool_request_body import UpdatePoolRequestBody +from huaweicloudsdkwaf.v1.model.update_pool_response import UpdatePoolResponse +from huaweicloudsdkwaf.v1.model.update_premium_host_access_status_request import UpdatePremiumHostAccessStatusRequest +from huaweicloudsdkwaf.v1.model.update_premium_host_access_status_request_body import UpdatePremiumHostAccessStatusRequestBody +from huaweicloudsdkwaf.v1.model.update_premium_host_access_status_response import UpdatePremiumHostAccessStatusResponse +from huaweicloudsdkwaf.v1.model.update_premium_host_protect_status_request import UpdatePremiumHostProtectStatusRequest +from huaweicloudsdkwaf.v1.model.update_premium_host_protect_status_request_body import UpdatePremiumHostProtectStatusRequestBody +from huaweicloudsdkwaf.v1.model.update_premium_host_protect_status_response import UpdatePremiumHostProtectStatusResponse +from huaweicloudsdkwaf.v1.model.update_premium_host_request import UpdatePremiumHostRequest +from huaweicloudsdkwaf.v1.model.update_premium_host_request_body import UpdatePremiumHostRequestBody +from huaweicloudsdkwaf.v1.model.update_premium_host_response import UpdatePremiumHostResponse +from huaweicloudsdkwaf.v1.model.url_count_item import UrlCountItem +from huaweicloudsdkwaf.v1.model.value_list import ValueList diff --git a/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/attack_domain_top_list_info_items.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/attack_domain_top_list_info_items.py new file mode 100644 index 0000000000..3f7dc65238 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/attack_domain_top_list_info_items.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class AttackDomainTopListInfoItems: + + + """ + 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 = { + 'host': 'str', + 'num': 'int' + } + + attribute_map = { + 'host': 'host', + 'num': 'num' + } + + def __init__(self, host=None, num=None): + """AttackDomainTopListInfoItems - a model defined in huaweicloud sdk""" + + + + self._host = None + self._num = None + self.discriminator = None + + if host is not None: + self.host = host + if num is not None: + self.num = num + + @property + def host(self): + """Gets the host of this AttackDomainTopListInfoItems. + + 域名 + + :return: The host of this AttackDomainTopListInfoItems. + :rtype: str + """ + return self._host + + @host.setter + def host(self, host): + """Sets the host of this AttackDomainTopListInfoItems. + + 域名 + + :param host: The host of this AttackDomainTopListInfoItems. + :type: str + """ + self._host = host + + @property + def num(self): + """Gets the num of this AttackDomainTopListInfoItems. + + 域名被攻击次数 + + :return: The num of this AttackDomainTopListInfoItems. + :rtype: int + """ + return self._num + + @num.setter + def num(self, num): + """Sets the num of this AttackDomainTopListInfoItems. + + 域名被攻击次数 + + :param num: The num of this AttackDomainTopListInfoItems. + :type: int + """ + self._num = 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AttackDomainTopListInfoItems): + 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-waf/huaweicloudsdkwaf/v1/model/attack_url_top_list_info_items.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/attack_url_top_list_info_items.py new file mode 100644 index 0000000000..a4ad9a13cd --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/attack_url_top_list_info_items.py @@ -0,0 +1,164 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class AttackUrlTopListInfoItems: + + + """ + 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 = { + 'host': 'str', + 'url': 'str', + 'num': 'int' + } + + attribute_map = { + 'host': 'host', + 'url': 'url', + 'num': 'num' + } + + def __init__(self, host=None, url=None, num=None): + """AttackUrlTopListInfoItems - a model defined in huaweicloud sdk""" + + + + self._host = None + self._url = None + self._num = None + self.discriminator = None + + if host is not None: + self.host = host + if url is not None: + self.url = url + if num is not None: + self.num = num + + @property + def host(self): + """Gets the host of this AttackUrlTopListInfoItems. + + 域名 + + :return: The host of this AttackUrlTopListInfoItems. + :rtype: str + """ + return self._host + + @host.setter + def host(self, host): + """Sets the host of this AttackUrlTopListInfoItems. + + 域名 + + :param host: The host of this AttackUrlTopListInfoItems. + :type: str + """ + self._host = host + + @property + def url(self): + """Gets the url of this AttackUrlTopListInfoItems. + + Url + + :return: The url of this AttackUrlTopListInfoItems. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this AttackUrlTopListInfoItems. + + Url + + :param url: The url of this AttackUrlTopListInfoItems. + :type: str + """ + self._url = url + + @property + def num(self): + """Gets the num of this AttackUrlTopListInfoItems. + + 域名被攻击次数 + + :return: The num of this AttackUrlTopListInfoItems. + :rtype: int + """ + return self._num + + @num.setter + def num(self, num): + """Sets the num of this AttackUrlTopListInfoItems. + + 域名被攻击次数 + + :param num: The num of this AttackUrlTopListInfoItems. + :type: int + """ + self._num = 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AttackUrlTopListInfoItems): + 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-waf/huaweicloudsdkwaf/v1/model/bind_host.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/bind_host.py new file mode 100644 index 0000000000..af587114c0 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/bind_host.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class BindHost: + + + """ + 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', + 'hostname': 'str', + 'waf_type': 'str', + 'mode': 'str' + } + + attribute_map = { + 'id': 'id', + 'hostname': 'hostname', + 'waf_type': 'waf_type', + 'mode': 'mode' + } + + def __init__(self, id=None, hostname=None, waf_type=None, mode=None): + """BindHost - a model defined in huaweicloud sdk""" + + + + self._id = None + self._hostname = None + self._waf_type = None + self._mode = None + self.discriminator = None + + if id is not None: + self.id = id + if hostname is not None: + self.hostname = hostname + if waf_type is not None: + self.waf_type = waf_type + if mode is not None: + self.mode = mode + + @property + def id(self): + """Gets the id of this BindHost. + + 域名ID + + :return: The id of this BindHost. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this BindHost. + + 域名ID + + :param id: The id of this BindHost. + :type: str + """ + self._id = id + + @property + def hostname(self): + """Gets the hostname of this BindHost. + + 域名 + + :return: The hostname of this BindHost. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """Sets the hostname of this BindHost. + + 域名 + + :param hostname: The hostname of this BindHost. + :type: str + """ + self._hostname = hostname + + @property + def waf_type(self): + """Gets the waf_type of this BindHost. + + 域名对应模式:cloud/premium + + :return: The waf_type of this BindHost. + :rtype: str + """ + return self._waf_type + + @waf_type.setter + def waf_type(self, waf_type): + """Sets the waf_type of this BindHost. + + 域名对应模式:cloud/premium + + :param waf_type: The waf_type of this BindHost. + :type: str + """ + self._waf_type = waf_type + + @property + def mode(self): + """Gets the mode of this BindHost. + + (仅独享模式)特殊域名模式 + + :return: The mode of this BindHost. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this BindHost. + + (仅独享模式)特殊域名模式 + + :param mode: The mode of this BindHost. + :type: str + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BindHost): + 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-waf/huaweicloudsdkwaf/v1/model/block_page.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/block_page.py new file mode 100644 index 0000000000..e91b6d2963 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/block_page.py @@ -0,0 +1,161 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class BlockPage: + + + """ + 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 = { + 'template': 'str', + 'custom_page': 'CustomPage', + 'redirect_url': 'str' + } + + attribute_map = { + 'template': 'template', + 'custom_page': 'custom_page', + 'redirect_url': 'redirect_url' + } + + def __init__(self, template=None, custom_page=None, redirect_url=None): + """BlockPage - a model defined in huaweicloud sdk""" + + + + self._template = None + self._custom_page = None + self._redirect_url = None + self.discriminator = None + + self.template = template + if custom_page is not None: + self.custom_page = custom_page + if redirect_url is not None: + self.redirect_url = redirect_url + + @property + def template(self): + """Gets the template of this BlockPage. + + 模板名称 + + :return: The template of this BlockPage. + :rtype: str + """ + return self._template + + @template.setter + def template(self, template): + """Sets the template of this BlockPage. + + 模板名称 + + :param template: The template of this BlockPage. + :type: str + """ + self._template = template + + @property + def custom_page(self): + """Gets the custom_page of this BlockPage. + + + :return: The custom_page of this BlockPage. + :rtype: CustomPage + """ + return self._custom_page + + @custom_page.setter + def custom_page(self, custom_page): + """Sets the custom_page of this BlockPage. + + + :param custom_page: The custom_page of this BlockPage. + :type: CustomPage + """ + self._custom_page = custom_page + + @property + def redirect_url(self): + """Gets the redirect_url of this BlockPage. + + 重定向URL + + :return: The redirect_url of this BlockPage. + :rtype: str + """ + return self._redirect_url + + @redirect_url.setter + def redirect_url(self, redirect_url): + """Sets the redirect_url of this BlockPage. + + 重定向URL + + :param redirect_url: The redirect_url of this BlockPage. + :type: str + """ + self._redirect_url = redirect_url + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BlockPage): + 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-waf/huaweicloudsdkwaf/v1/model/ccrule_post_info.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/ccrule_post_info.py new file mode 100644 index 0000000000..7dfa524403 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/ccrule_post_info.py @@ -0,0 +1,513 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CcrulePostInfo: + + + """ + 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', + 'policyid': 'str', + 'status': 'int', + 'description': 'str', + 'mode': 'int', + 'unaggregation': 'bool', + 'prefix': 'bool', + 'total_num': 'int', + 'url': 'str', + 'limit_num': 'int', + 'limit_period': 'int', + 'lock_time': 'int', + 'tag_type': 'str', + 'tag_index': 'str', + 'action': 'CcrulesListInfoAction', + 'timestamp': 'int' + } + + attribute_map = { + 'id': 'id', + 'policyid': 'policyid', + 'status': 'status', + 'description': 'description', + 'mode': 'mode', + 'unaggregation': 'unaggregation', + 'prefix': 'prefix', + 'total_num': 'total_num', + 'url': 'url', + 'limit_num': 'limit_num', + 'limit_period': 'limit_period', + 'lock_time': 'lock_time', + 'tag_type': 'tag_type', + 'tag_index': 'tag_index', + 'action': 'action', + 'timestamp': 'timestamp' + } + + def __init__(self, id=None, policyid=None, status=None, description=None, mode=None, unaggregation=None, prefix=None, total_num=None, url=None, limit_num=None, limit_period=None, lock_time=None, tag_type=None, tag_index=None, action=None, timestamp=None): + """CcrulePostInfo - a model defined in huaweicloud sdk""" + + + + self._id = None + self._policyid = None + self._status = None + self._description = None + self._mode = None + self._unaggregation = None + self._prefix = None + self._total_num = 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._action = None + self._timestamp = None + self.discriminator = None + + if id is not None: + self.id = id + if policyid is not None: + self.policyid = policyid + if status is not None: + self.status = status + if description is not None: + self.description = description + if mode is not None: + self.mode = mode + if unaggregation is not None: + self.unaggregation = unaggregation + if prefix is not None: + self.prefix = prefix + if total_num is not None: + self.total_num = total_num + 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 action is not None: + self.action = action + if timestamp is not None: + self.timestamp = timestamp + + @property + def id(self): + """Gets the id of this CcrulePostInfo. + + cc规则id + + :return: The id of this CcrulePostInfo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CcrulePostInfo. + + cc规则id + + :param id: The id of this CcrulePostInfo. + :type: str + """ + self._id = id + + @property + def policyid(self): + """Gets the policyid of this CcrulePostInfo. + + 所属策略id + + :return: The policyid of this CcrulePostInfo. + :rtype: str + """ + return self._policyid + + @policyid.setter + def policyid(self, policyid): + """Sets the policyid of this CcrulePostInfo. + + 所属策略id + + :param policyid: The policyid of this CcrulePostInfo. + :type: str + """ + self._policyid = policyid + + @property + def status(self): + """Gets the status of this CcrulePostInfo. + + 状态 + + :return: The status of this CcrulePostInfo. + :rtype: int + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this CcrulePostInfo. + + 状态 + + :param status: The status of this CcrulePostInfo. + :type: int + """ + self._status = status + + @property + def description(self): + """Gets the description of this CcrulePostInfo. + + 规则描述 + + :return: The description of this CcrulePostInfo. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CcrulePostInfo. + + 规则描述 + + :param description: The description of this CcrulePostInfo. + :type: str + """ + self._description = description + + @property + def mode(self): + """Gets the mode of this CcrulePostInfo. + + 阻断模式 + + :return: The mode of this CcrulePostInfo. + :rtype: int + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this CcrulePostInfo. + + 阻断模式 + + :param mode: The mode of this CcrulePostInfo. + :type: int + """ + self._mode = mode + + @property + def unaggregation(self): + """Gets the unaggregation of this CcrulePostInfo. + + 人机验证 + + :return: The unaggregation of this CcrulePostInfo. + :rtype: bool + """ + return self._unaggregation + + @unaggregation.setter + def unaggregation(self, unaggregation): + """Sets the unaggregation of this CcrulePostInfo. + + 人机验证 + + :param unaggregation: The unaggregation of this CcrulePostInfo. + :type: bool + """ + self._unaggregation = unaggregation + + @property + def prefix(self): + """Gets the prefix of this CcrulePostInfo. + + 前缀包含 + + :return: The prefix of this CcrulePostInfo. + :rtype: bool + """ + return self._prefix + + @prefix.setter + def prefix(self, prefix): + """Sets the prefix of this CcrulePostInfo. + + 前缀包含 + + :param prefix: The prefix of this CcrulePostInfo. + :type: bool + """ + self._prefix = prefix + + @property + def total_num(self): + """Gets the total_num of this CcrulePostInfo. + + 总数 + + :return: The total_num of this CcrulePostInfo. + :rtype: int + """ + return self._total_num + + @total_num.setter + def total_num(self, total_num): + """Sets the total_num of this CcrulePostInfo. + + 总数 + + :param total_num: The total_num of this CcrulePostInfo. + :type: int + """ + self._total_num = total_num + + @property + def url(self): + """Gets the url of this CcrulePostInfo. + + 规则应用的url链接 + + :return: The url of this CcrulePostInfo. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this CcrulePostInfo. + + 规则应用的url链接 + + :param url: The url of this CcrulePostInfo. + :type: str + """ + self._url = url + + @property + def limit_num(self): + """Gets the limit_num of this CcrulePostInfo. + + 单个用户的周期内请求次数 + + :return: The limit_num of this CcrulePostInfo. + :rtype: int + """ + return self._limit_num + + @limit_num.setter + def limit_num(self, limit_num): + """Sets the limit_num of this CcrulePostInfo. + + 单个用户的周期内请求次数 + + :param limit_num: The limit_num of this CcrulePostInfo. + :type: int + """ + self._limit_num = limit_num + + @property + def limit_period(self): + """Gets the limit_period of this CcrulePostInfo. + + 限速周期 + + :return: The limit_period of this CcrulePostInfo. + :rtype: int + """ + return self._limit_period + + @limit_period.setter + def limit_period(self, limit_period): + """Sets the limit_period of this CcrulePostInfo. + + 限速周期 + + :param limit_period: The limit_period of this CcrulePostInfo. + :type: int + """ + self._limit_period = limit_period + + @property + def lock_time(self): + """Gets the lock_time of this CcrulePostInfo. + + 锁定时长 + + :return: The lock_time of this CcrulePostInfo. + :rtype: int + """ + return self._lock_time + + @lock_time.setter + def lock_time(self, lock_time): + """Sets the lock_time of this CcrulePostInfo. + + 锁定时长 + + :param lock_time: The lock_time of this CcrulePostInfo. + :type: int + """ + self._lock_time = lock_time + + @property + def tag_type(self): + """Gets the tag_type of this CcrulePostInfo. + + 防护模式 + + :return: The tag_type of this CcrulePostInfo. + :rtype: str + """ + return self._tag_type + + @tag_type.setter + def tag_type(self, tag_type): + """Sets the tag_type of this CcrulePostInfo. + + 防护模式 + + :param tag_type: The tag_type of this CcrulePostInfo. + :type: str + """ + self._tag_type = tag_type + + @property + def tag_index(self): + """Gets the tag_index of this CcrulePostInfo. + + 防护模式标签 + + :return: The tag_index of this CcrulePostInfo. + :rtype: str + """ + return self._tag_index + + @tag_index.setter + def tag_index(self, tag_index): + """Sets the tag_index of this CcrulePostInfo. + + 防护模式标签 + + :param tag_index: The tag_index of this CcrulePostInfo. + :type: str + """ + self._tag_index = tag_index + + @property + def action(self): + """Gets the action of this CcrulePostInfo. + + + :return: The action of this CcrulePostInfo. + :rtype: CcrulesListInfoAction + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this CcrulePostInfo. + + + :param action: The action of this CcrulePostInfo. + :type: CcrulesListInfoAction + """ + self._action = action + + @property + def timestamp(self): + """Gets the timestamp of this CcrulePostInfo. + + 创建规则时间戳 + + :return: The timestamp of this CcrulePostInfo. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this CcrulePostInfo. + + 创建规则时间戳 + + :param timestamp: The timestamp of this CcrulePostInfo. + :type: int + """ + self._timestamp = timestamp + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CcrulePostInfo): + 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-waf/huaweicloudsdkwaf/v1/model/ccrules_list_info_action.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/ccrules_list_info_action.py new file mode 100644 index 0000000000..ac8322409c --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/ccrules_list_info_action.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CcrulesListInfoAction: + + + """ + 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': 'CcrulesListInfoActionDetail' + } + + attribute_map = { + 'category': 'category', + 'detail': 'detail' + } + + def __init__(self, category=None, detail=None): + """CcrulesListInfoAction - a model defined in huaweicloud sdk""" + + + + 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 CcrulesListInfoAction. + + 类别 + + :return: The category of this CcrulesListInfoAction. + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this CcrulesListInfoAction. + + 类别 + + :param category: The category of this CcrulesListInfoAction. + :type: str + """ + self._category = category + + @property + def detail(self): + """Gets the detail of this CcrulesListInfoAction. + + + :return: The detail of this CcrulesListInfoAction. + :rtype: CcrulesListInfoActionDetail + """ + return self._detail + + @detail.setter + def detail(self, detail): + """Sets the detail of this CcrulesListInfoAction. + + + :param detail: The detail of this CcrulesListInfoAction. + :type: CcrulesListInfoActionDetail + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CcrulesListInfoAction): + 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-waf/huaweicloudsdkwaf/v1/model/ccrules_list_info_action_detail.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/ccrules_list_info_action_detail.py new file mode 100644 index 0000000000..909bc403e1 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/ccrules_list_info_action_detail.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CcrulesListInfoActionDetail: + + + """ + 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 = { + 'redirect_url': 'str', + 'response': 'CcrulesListInfoActionDetailResponse' + } + + attribute_map = { + 'redirect_url': 'redirect_url', + 'response': 'response' + } + + def __init__(self, redirect_url=None, response=None): + """CcrulesListInfoActionDetail - a model defined in huaweicloud sdk""" + + + + self._redirect_url = None + self._response = None + self.discriminator = None + + if redirect_url is not None: + self.redirect_url = redirect_url + if response is not None: + self.response = response + + @property + def redirect_url(self): + """Gets the redirect_url of this CcrulesListInfoActionDetail. + + 返回页面重定向的url + + :return: The redirect_url of this CcrulesListInfoActionDetail. + :rtype: str + """ + return self._redirect_url + + @redirect_url.setter + def redirect_url(self, redirect_url): + """Sets the redirect_url of this CcrulesListInfoActionDetail. + + 返回页面重定向的url + + :param redirect_url: The redirect_url of this CcrulesListInfoActionDetail. + :type: str + """ + self._redirect_url = redirect_url + + @property + def response(self): + """Gets the response of this CcrulesListInfoActionDetail. + + + :return: The response of this CcrulesListInfoActionDetail. + :rtype: CcrulesListInfoActionDetailResponse + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this CcrulesListInfoActionDetail. + + + :param response: The response of this CcrulesListInfoActionDetail. + :type: CcrulesListInfoActionDetailResponse + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CcrulesListInfoActionDetail): + 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-waf/huaweicloudsdkwaf/v1/model/ccrules_list_info_action_detail_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/ccrules_list_info_action_detail_response.py new file mode 100644 index 0000000000..6e4dead6b9 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/ccrules_list_info_action_detail_response.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CcrulesListInfoActionDetailResponse: + + + """ + 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): + """CcrulesListInfoActionDetailResponse - a model defined in huaweicloud sdk""" + + + + 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 CcrulesListInfoActionDetailResponse. + + + :return: The content_type of this CcrulesListInfoActionDetailResponse. + :rtype: str + """ + return self._content_type + + @content_type.setter + def content_type(self, content_type): + """Sets the content_type of this CcrulesListInfoActionDetailResponse. + + + :param content_type: The content_type of this CcrulesListInfoActionDetailResponse. + :type: str + """ + self._content_type = content_type + + @property + def content(self): + """Gets the content of this CcrulesListInfoActionDetailResponse. + + + :return: The content of this CcrulesListInfoActionDetailResponse. + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this CcrulesListInfoActionDetailResponse. + + + :param content: The content of this CcrulesListInfoActionDetailResponse. + :type: 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CcrulesListInfoActionDetailResponse): + 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-waf/huaweicloudsdkwaf/v1/model/certificate_body.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/certificate_body.py new file mode 100644 index 0000000000..146ef38d7a --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/certificate_body.py @@ -0,0 +1,296 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CertificateBody: + + + """ + 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', + 'content': 'str', + 'key': 'str', + 'expire_time': 'int', + 'exp_status': 'int', + 'timestamp': 'int', + 'bind_host': 'list[BindHost]' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'content': 'content', + 'key': 'key', + 'expire_time': 'expire_time', + 'exp_status': 'exp_status', + 'timestamp': 'timestamp', + 'bind_host': 'bind_host' + } + + def __init__(self, id=None, name=None, content=None, key=None, expire_time=None, exp_status=None, timestamp=None, bind_host=None): + """CertificateBody - a model defined in huaweicloud sdk""" + + + + self._id = None + self._name = None + self._content = None + self._key = None + self._expire_time = None + self._exp_status = None + self._timestamp = None + self._bind_host = None + self.discriminator = None + + self.id = id + self.name = name + if content is not None: + self.content = content + if key is not None: + self.key = key + if expire_time is not None: + self.expire_time = expire_time + if exp_status is not None: + self.exp_status = exp_status + self.timestamp = timestamp + if bind_host is not None: + self.bind_host = bind_host + + @property + def id(self): + """Gets the id of this CertificateBody. + + 证书ID + + :return: The id of this CertificateBody. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CertificateBody. + + 证书ID + + :param id: The id of this CertificateBody. + :type: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this CertificateBody. + + 证书名 + + :return: The name of this CertificateBody. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CertificateBody. + + 证书名 + + :param name: The name of this CertificateBody. + :type: str + """ + self._name = name + + @property + def content(self): + """Gets the content of this CertificateBody. + + 证书文件,PEM编码 + + :return: The content of this CertificateBody. + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this CertificateBody. + + 证书文件,PEM编码 + + :param content: The content of this CertificateBody. + :type: str + """ + self._content = content + + @property + def key(self): + """Gets the key of this CertificateBody. + + 证书私钥,PEM编码 + + :return: The key of this CertificateBody. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this CertificateBody. + + 证书私钥,PEM编码 + + :param key: The key of this CertificateBody. + :type: str + """ + self._key = key + + @property + def expire_time(self): + """Gets the expire_time of this CertificateBody. + + 证书过期时间戳 + + :return: The expire_time of this CertificateBody. + :rtype: int + """ + return self._expire_time + + @expire_time.setter + def expire_time(self, expire_time): + """Sets the expire_time of this CertificateBody. + + 证书过期时间戳 + + :param expire_time: The expire_time of this CertificateBody. + :type: int + """ + self._expire_time = expire_time + + @property + def exp_status(self): + """Gets the exp_status of this CertificateBody. + + 证书过期状态,0-未过期,1-已过期,2-即将过期 + + :return: The exp_status of this CertificateBody. + :rtype: int + """ + return self._exp_status + + @exp_status.setter + def exp_status(self, exp_status): + """Sets the exp_status of this CertificateBody. + + 证书过期状态,0-未过期,1-已过期,2-即将过期 + + :param exp_status: The exp_status of this CertificateBody. + :type: int + """ + self._exp_status = exp_status + + @property + def timestamp(self): + """Gets the timestamp of this CertificateBody. + + 证书上传时间戳 + + :return: The timestamp of this CertificateBody. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this CertificateBody. + + 证书上传时间戳 + + :param timestamp: The timestamp of this CertificateBody. + :type: int + """ + self._timestamp = timestamp + + @property + def bind_host(self): + """Gets the bind_host of this CertificateBody. + + 证书关联的域名信息 + + :return: The bind_host of this CertificateBody. + :rtype: list[BindHost] + """ + return self._bind_host + + @bind_host.setter + def bind_host(self, bind_host): + """Sets the bind_host of this CertificateBody. + + 证书关联的域名信息 + + :param bind_host: The bind_host of this CertificateBody. + :type: list[BindHost] + """ + self._bind_host = bind_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CertificateBody): + 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-waf/huaweicloudsdkwaf/v1/model/cloud_waf_subscriptio_response_resources.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/cloud_waf_subscriptio_response_resources.py new file mode 100644 index 0000000000..610d6dcdfe --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/cloud_waf_subscriptio_response_resources.py @@ -0,0 +1,268 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CloudWafSubscriptioResponseResources: + + + """ + 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 = { + 'resource_id': 'str', + 'cloud_service_type': 'str', + 'resource_type': 'str', + 'resource_spec_code': 'str', + 'status': 'int', + 'expire_time': 'str', + 'resource_size': 'int' + } + + attribute_map = { + 'resource_id': 'resourceId', + 'cloud_service_type': 'cloudServiceType', + 'resource_type': 'resourceType', + 'resource_spec_code': 'resourceSpecCode', + 'status': 'status', + 'expire_time': 'expireTime', + 'resource_size': 'resourceSize' + } + + def __init__(self, resource_id=None, cloud_service_type=None, resource_type=None, resource_spec_code=None, status=None, expire_time=None, resource_size=None): + """CloudWafSubscriptioResponseResources - a model defined in huaweicloud sdk""" + + + + self._resource_id = None + self._cloud_service_type = None + self._resource_type = None + self._resource_spec_code = None + self._status = None + self._expire_time = None + self._resource_size = None + self.discriminator = None + + self.resource_id = resource_id + self.cloud_service_type = cloud_service_type + self.resource_type = resource_type + self.resource_spec_code = resource_spec_code + if status is not None: + self.status = status + if expire_time is not None: + self.expire_time = expire_time + if resource_size is not None: + self.resource_size = resource_size + + @property + def resource_id(self): + """Gets the resource_id of this CloudWafSubscriptioResponseResources. + + 资源id + + :return: The resource_id of this CloudWafSubscriptioResponseResources. + :rtype: str + """ + return self._resource_id + + @resource_id.setter + def resource_id(self, resource_id): + """Sets the resource_id of this CloudWafSubscriptioResponseResources. + + 资源id + + :param resource_id: The resource_id of this CloudWafSubscriptioResponseResources. + :type: str + """ + self._resource_id = resource_id + + @property + def cloud_service_type(self): + """Gets the cloud_service_type of this CloudWafSubscriptioResponseResources. + + 云服务产品对应的云服务类型 + + :return: The cloud_service_type of this CloudWafSubscriptioResponseResources. + :rtype: str + """ + return self._cloud_service_type + + @cloud_service_type.setter + def cloud_service_type(self, cloud_service_type): + """Sets the cloud_service_type of this CloudWafSubscriptioResponseResources. + + 云服务产品对应的云服务类型 + + :param cloud_service_type: The cloud_service_type of this CloudWafSubscriptioResponseResources. + :type: str + """ + self._cloud_service_type = cloud_service_type + + @property + def resource_type(self): + """Gets the resource_type of this CloudWafSubscriptioResponseResources. + + 云服务产品的资源类型 + + :return: The resource_type of this CloudWafSubscriptioResponseResources. + :rtype: str + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """Sets the resource_type of this CloudWafSubscriptioResponseResources. + + 云服务产品的资源类型 + + :param resource_type: The resource_type of this CloudWafSubscriptioResponseResources. + :type: str + """ + self._resource_type = resource_type + + @property + def resource_spec_code(self): + """Gets the resource_spec_code of this CloudWafSubscriptioResponseResources. + + 云服务产品的资源规格 + + :return: The resource_spec_code of this CloudWafSubscriptioResponseResources. + :rtype: str + """ + return self._resource_spec_code + + @resource_spec_code.setter + def resource_spec_code(self, resource_spec_code): + """Sets the resource_spec_code of this CloudWafSubscriptioResponseResources. + + 云服务产品的资源规格 + + :param resource_spec_code: The resource_spec_code of this CloudWafSubscriptioResponseResources. + :type: str + """ + self._resource_spec_code = resource_spec_code + + @property + def status(self): + """Gets the status of this CloudWafSubscriptioResponseResources. + + 资源状态,0:解冻/正常,1:冻结,2:删除 + + :return: The status of this CloudWafSubscriptioResponseResources. + :rtype: int + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this CloudWafSubscriptioResponseResources. + + 资源状态,0:解冻/正常,1:冻结,2:删除 + + :param status: The status of this CloudWafSubscriptioResponseResources. + :type: int + """ + self._status = status + + @property + def expire_time(self): + """Gets the expire_time of this CloudWafSubscriptioResponseResources. + + 资源到期时间 + + :return: The expire_time of this CloudWafSubscriptioResponseResources. + :rtype: str + """ + return self._expire_time + + @expire_time.setter + def expire_time(self, expire_time): + """Sets the expire_time of this CloudWafSubscriptioResponseResources. + + 资源到期时间 + + :param expire_time: The expire_time of this CloudWafSubscriptioResponseResources. + :type: str + """ + self._expire_time = expire_time + + @property + def resource_size(self): + """Gets the resource_size of this CloudWafSubscriptioResponseResources. + + 资源数量 + + :return: The resource_size of this CloudWafSubscriptioResponseResources. + :rtype: int + """ + return self._resource_size + + @resource_size.setter + def resource_size(self, resource_size): + """Sets the resource_size of this CloudWafSubscriptioResponseResources. + + 资源数量 + + :param resource_size: The resource_size of this CloudWafSubscriptioResponseResources. + :type: int + """ + self._resource_size = resource_size + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CloudWafSubscriptioResponseResources): + 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-waf/huaweicloudsdkwaf/v1/model/confirm_cloud_waf_subscription_info_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/confirm_cloud_waf_subscription_info_request.py new file mode 100644 index 0000000000..2d7074a688 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/confirm_cloud_waf_subscription_info_request.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ConfirmCloudWafSubscriptionInfoRequest: + + + """ + 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): + """ConfirmCloudWafSubscriptionInfoRequest - a 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConfirmCloudWafSubscriptionInfoRequest): + 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-waf/huaweicloudsdkwaf/v1/model/confirm_cloud_waf_subscription_info_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/confirm_cloud_waf_subscription_info_response.py new file mode 100644 index 0000000000..7d2e5cd347 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/confirm_cloud_waf_subscription_info_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ConfirmCloudWafSubscriptionInfoResponse(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 = { + 'type': 'int', + 'resources': 'list[CloudWafSubscriptioResponseResources]' + } + + attribute_map = { + 'type': 'type', + 'resources': 'resources' + } + + def __init__(self, type=None, resources=None): + """ConfirmCloudWafSubscriptionInfoResponse - a model defined in huaweicloud sdk""" + + super(ConfirmCloudWafSubscriptionInfoResponse, self).__init__() + + self._type = None + self._resources = None + self.discriminator = None + + if type is not None: + self.type = type + if resources is not None: + self.resources = resources + + @property + def type(self): + """Gets the type of this ConfirmCloudWafSubscriptionInfoResponse. + + 云模式版本,-2:已冻结,-1:未订购,1:基础版,2:专业版,3:企业版,4:旗舰版,22:按需版本 + + :return: The type of this ConfirmCloudWafSubscriptionInfoResponse. + :rtype: int + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ConfirmCloudWafSubscriptionInfoResponse. + + 云模式版本,-2:已冻结,-1:未订购,1:基础版,2:专业版,3:企业版,4:旗舰版,22:按需版本 + + :param type: The type of this ConfirmCloudWafSubscriptionInfoResponse. + :type: int + """ + self._type = type + + @property + def resources(self): + """Gets the resources of this ConfirmCloudWafSubscriptionInfoResponse. + + 资源列表 + + :return: The resources of this ConfirmCloudWafSubscriptionInfoResponse. + :rtype: list[CloudWafSubscriptioResponseResources] + """ + return self._resources + + @resources.setter + def resources(self, resources): + """Sets the resources of this ConfirmCloudWafSubscriptionInfoResponse. + + 资源列表 + + :param resources: The resources of this ConfirmCloudWafSubscriptionInfoResponse. + :type: list[CloudWafSubscriptioResponseResources] + """ + self._resources = resources + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConfirmCloudWafSubscriptionInfoResponse): + 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-waf/huaweicloudsdkwaf/v1/model/confirm_user_bundle_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/confirm_user_bundle_request.py new file mode 100644 index 0000000000..1d4b31716d --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/confirm_user_bundle_request.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ConfirmUserBundleRequest: + + + """ + 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): + """ConfirmUserBundleRequest - a 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConfirmUserBundleRequest): + 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-waf/huaweicloudsdkwaf/v1/model/confirm_user_bundle_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/confirm_user_bundle_response.py new file mode 100644 index 0000000000..c67bb9ca6f --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/confirm_user_bundle_response.py @@ -0,0 +1,326 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ConfirmUserBundleResponse(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 = { + 'type': 'int', + 'name': 'str', + 'host': 'object', + 'premium_type': 'int', + 'premium_name': 'str', + 'premium_host': 'object', + 'options': 'object', + 'rule': 'object', + 'upgrade': 'object' + } + + attribute_map = { + 'type': 'type', + 'name': 'name', + 'host': 'host', + 'premium_type': 'premium_type', + 'premium_name': 'premium_name', + 'premium_host': 'premium_host', + 'options': 'options', + 'rule': 'rule', + 'upgrade': 'upgrade' + } + + def __init__(self, type=None, name=None, host=None, premium_type=None, premium_name=None, premium_host=None, options=None, rule=None, upgrade=None): + """ConfirmUserBundleResponse - a model defined in huaweicloud sdk""" + + super(ConfirmUserBundleResponse, self).__init__() + + self._type = None + self._name = None + self._host = None + self._premium_type = None + self._premium_name = None + self._premium_host = None + self._options = None + self._rule = None + self._upgrade = None + self.discriminator = None + + if type is not None: + self.type = type + if name is not None: + self.name = name + if host is not None: + self.host = host + if premium_type is not None: + self.premium_type = premium_type + if premium_name is not None: + self.premium_name = premium_name + if premium_host is not None: + self.premium_host = premium_host + if options is not None: + self.options = options + if rule is not None: + self.rule = rule + if upgrade is not None: + self.upgrade = upgrade + + @property + def type(self): + """Gets the type of this ConfirmUserBundleResponse. + + 云模式套餐类型 + + :return: The type of this ConfirmUserBundleResponse. + :rtype: int + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ConfirmUserBundleResponse. + + 云模式套餐类型 + + :param type: The type of this ConfirmUserBundleResponse. + :type: int + """ + self._type = type + + @property + def name(self): + """Gets the name of this ConfirmUserBundleResponse. + + 云模式套餐名称 + + :return: The name of this ConfirmUserBundleResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ConfirmUserBundleResponse. + + 云模式套餐名称 + + :param name: The name of this ConfirmUserBundleResponse. + :type: str + """ + self._name = name + + @property + def host(self): + """Gets the host of this ConfirmUserBundleResponse. + + 云模式支持的域名配额相关信息 + + :return: The host of this ConfirmUserBundleResponse. + :rtype: object + """ + return self._host + + @host.setter + def host(self, host): + """Sets the host of this ConfirmUserBundleResponse. + + 云模式支持的域名配额相关信息 + + :param host: The host of this ConfirmUserBundleResponse. + :type: object + """ + self._host = host + + @property + def premium_type(self): + """Gets the premium_type of this ConfirmUserBundleResponse. + + 独享套餐类型 + + :return: The premium_type of this ConfirmUserBundleResponse. + :rtype: int + """ + return self._premium_type + + @premium_type.setter + def premium_type(self, premium_type): + """Sets the premium_type of this ConfirmUserBundleResponse. + + 独享套餐类型 + + :param premium_type: The premium_type of this ConfirmUserBundleResponse. + :type: int + """ + self._premium_type = premium_type + + @property + def premium_name(self): + """Gets the premium_name of this ConfirmUserBundleResponse. + + 独享套餐名称 + + :return: The premium_name of this ConfirmUserBundleResponse. + :rtype: str + """ + return self._premium_name + + @premium_name.setter + def premium_name(self, premium_name): + """Sets the premium_name of this ConfirmUserBundleResponse. + + 独享套餐名称 + + :param premium_name: The premium_name of this ConfirmUserBundleResponse. + :type: str + """ + self._premium_name = premium_name + + @property + def premium_host(self): + """Gets the premium_host of this ConfirmUserBundleResponse. + + 独享支持的域名配额相关信息 + + :return: The premium_host of this ConfirmUserBundleResponse. + :rtype: object + """ + return self._premium_host + + @premium_host.setter + def premium_host(self, premium_host): + """Sets the premium_host of this ConfirmUserBundleResponse. + + 独享支持的域名配额相关信息 + + :param premium_host: The premium_host of this ConfirmUserBundleResponse. + :type: object + """ + self._premium_host = premium_host + + @property + def options(self): + """Gets the options of this ConfirmUserBundleResponse. + + 支持的策略相关信息 + + :return: The options of this ConfirmUserBundleResponse. + :rtype: object + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ConfirmUserBundleResponse. + + 支持的策略相关信息 + + :param options: The options of this ConfirmUserBundleResponse. + :type: object + """ + self._options = options + + @property + def rule(self): + """Gets the rule of this ConfirmUserBundleResponse. + + 支持的规则配额相关信息 + + :return: The rule of this ConfirmUserBundleResponse. + :rtype: object + """ + return self._rule + + @rule.setter + def rule(self, rule): + """Sets the rule of this ConfirmUserBundleResponse. + + 支持的规则配额相关信息 + + :param rule: The rule of this ConfirmUserBundleResponse. + :type: object + """ + self._rule = rule + + @property + def upgrade(self): + """Gets the upgrade of this ConfirmUserBundleResponse. + + 不同版本支持的规则信息 + + :return: The upgrade of this ConfirmUserBundleResponse. + :rtype: object + """ + return self._upgrade + + @upgrade.setter + def upgrade(self, upgrade): + """Sets the upgrade of this ConfirmUserBundleResponse. + + 不同版本支持的规则信息 + + :param upgrade: The upgrade of this ConfirmUserBundleResponse. + :type: object + """ + self._upgrade = upgrade + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConfirmUserBundleResponse): + 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-waf/huaweicloudsdkwaf/v1/model/count_item.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/count_item.py new file mode 100644 index 0000000000..04c8ee8149 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/count_item.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CountItem: + + + """ + 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 = { + 'key': 'str', + 'num': 'int' + } + + attribute_map = { + 'key': 'key', + 'num': 'num' + } + + def __init__(self, key=None, num=None): + """CountItem - a model defined in huaweicloud sdk""" + + + + self._key = None + self._num = None + self.discriminator = None + + if key is not None: + self.key = key + if num is not None: + self.num = num + + @property + def key(self): + """Gets the key of this CountItem. + + 键值 + + :return: The key of this CountItem. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this CountItem. + + 键值 + + :param key: The key of this CountItem. + :type: str + """ + self._key = key + + @property + def num(self): + """Gets the num of this CountItem. + + 数量 + + :return: The num of this CountItem. + :rtype: int + """ + return self._num + + @num.setter + def num(self, num): + """Sets the num of this CountItem. + + 数量 + + :param num: The num of this CountItem. + :type: int + """ + self._num = 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CountItem): + 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-waf/huaweicloudsdkwaf/v1/model/crawler_list_info.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/crawler_list_info.py new file mode 100644 index 0000000000..d2da68b942 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/crawler_list_info.py @@ -0,0 +1,245 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CrawlerListInfo: + + + """ + 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', + 'url': 'str', + 'logic': 'int', + 'name': 'str', + 'type': 'str', + 'timestamp': 'int' + } + + attribute_map = { + 'id': 'id', + 'url': 'url', + 'logic': 'logic', + 'name': 'name', + 'type': 'type', + 'timestamp': 'timestamp' + } + + def __init__(self, id=None, url=None, logic=None, name=None, type=None, timestamp=None): + """CrawlerListInfo - a model defined in huaweicloud sdk""" + + + + self._id = None + self._url = None + self._logic = None + self._name = None + self._type = None + self._timestamp = None + self.discriminator = None + + if id is not None: + self.id = id + if url is not None: + self.url = url + if logic is not None: + self.logic = logic + if name is not None: + self.name = name + if type is not None: + self.type = type + if timestamp is not None: + self.timestamp = timestamp + + @property + def id(self): + """Gets the id of this CrawlerListInfo. + + 规则id + + :return: The id of this CrawlerListInfo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CrawlerListInfo. + + 规则id + + :param id: The id of this CrawlerListInfo. + :type: str + """ + self._id = id + + @property + def url(self): + """Gets the url of this CrawlerListInfo. + + 规则应用的url + + :return: The url of this CrawlerListInfo. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this CrawlerListInfo. + + 规则应用的url + + :param url: The url of this CrawlerListInfo. + :type: str + """ + self._url = url + + @property + def logic(self): + """Gets the logic of this CrawlerListInfo. + + 规则匹配逻辑 + + :return: The logic of this CrawlerListInfo. + :rtype: int + """ + return self._logic + + @logic.setter + def logic(self, logic): + """Sets the logic of this CrawlerListInfo. + + 规则匹配逻辑 + + :param logic: The logic of this CrawlerListInfo. + :type: int + """ + self._logic = logic + + @property + def name(self): + """Gets the name of this CrawlerListInfo. + + 规则名称 + + :return: The name of this CrawlerListInfo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CrawlerListInfo. + + 规则名称 + + :param name: The name of this CrawlerListInfo. + :type: str + """ + self._name = name + + @property + def type(self): + """Gets the type of this CrawlerListInfo. + + 反爬虫类型,指定防护:anticrawler_specific_url 例外防护:anticrawler_except_url + + :return: The type of this CrawlerListInfo. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CrawlerListInfo. + + 反爬虫类型,指定防护:anticrawler_specific_url 例外防护:anticrawler_except_url + + :param type: The type of this CrawlerListInfo. + :type: str + """ + self._type = type + + @property + def timestamp(self): + """Gets the timestamp of this CrawlerListInfo. + + 创建规则时间戳 + + :return: The timestamp of this CrawlerListInfo. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this CrawlerListInfo. + + 创建规则时间戳 + + :param timestamp: The timestamp of this CrawlerListInfo. + :type: int + """ + self._timestamp = timestamp + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CrawlerListInfo): + 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-waf/huaweicloudsdkwaf/v1/model/create_anti_leakage_request_body.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_anti_leakage_request_body.py new file mode 100644 index 0000000000..01cc10a91e --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_anti_leakage_request_body.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateAntiLeakageRequestBody: + + + """ + 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 = { + 'url': 'str', + 'category': 'str', + 'contents': 'list[str]', + 'description': 'str' + } + + attribute_map = { + 'url': 'url', + 'category': 'category', + 'contents': 'contents', + 'description': 'description' + } + + def __init__(self, url=None, category=None, contents=None, description=None): + """CreateAntiLeakageRequestBody - a model defined in huaweicloud sdk""" + + + + self._url = None + self._category = None + self._contents = None + self._description = None + self.discriminator = None + + if url is not None: + self.url = url + if category is not None: + self.category = category + if contents is not None: + self.contents = contents + if description is not None: + self.description = description + + @property + def url(self): + """Gets the url of this CreateAntiLeakageRequestBody. + + 规则应用的url + + :return: The url of this CreateAntiLeakageRequestBody. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this CreateAntiLeakageRequestBody. + + 规则应用的url + + :param url: The url of this CreateAntiLeakageRequestBody. + :type: str + """ + self._url = url + + @property + def category(self): + """Gets the category of this CreateAntiLeakageRequestBody. + + 类别(响应码:code,敏感信息:sensitive) + + :return: The category of this CreateAntiLeakageRequestBody. + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this CreateAntiLeakageRequestBody. + + 类别(响应码:code,敏感信息:sensitive) + + :param category: The category of this CreateAntiLeakageRequestBody. + :type: str + """ + self._category = category + + @property + def contents(self): + """Gets the contents of this CreateAntiLeakageRequestBody. + + 规则内容(http状态码、手机:phone、身份证号:id_card、邮箱:email) + + :return: The contents of this CreateAntiLeakageRequestBody. + :rtype: list[str] + """ + return self._contents + + @contents.setter + def contents(self, contents): + """Sets the contents of this CreateAntiLeakageRequestBody. + + 规则内容(http状态码、手机:phone、身份证号:id_card、邮箱:email) + + :param contents: The contents of this CreateAntiLeakageRequestBody. + :type: list[str] + """ + self._contents = contents + + @property + def description(self): + """Gets the description of this CreateAntiLeakageRequestBody. + + 规则描述 + + :return: The description of this CreateAntiLeakageRequestBody. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateAntiLeakageRequestBody. + + 规则描述 + + :param description: The description of this CreateAntiLeakageRequestBody. + :type: 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAntiLeakageRequestBody): + 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-waf/huaweicloudsdkwaf/v1/model/create_anticrawler_rules_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_anticrawler_rules_request.py new file mode 100644 index 0000000000..05bbd93091 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_anticrawler_rules_request.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateAnticrawlerRulesRequest: + + + """ + 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': 'PolicyAntiCrawlerPostInfo' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'body': 'body' + } + + def __init__(self, policy_id=None, body=None): + """CreateAnticrawlerRulesRequest - a model defined in huaweicloud sdk""" + + + + 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 CreateAnticrawlerRulesRequest. + + policyid + + :return: The policy_id of this CreateAnticrawlerRulesRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this CreateAnticrawlerRulesRequest. + + policyid + + :param policy_id: The policy_id of this CreateAnticrawlerRulesRequest. + :type: str + """ + self._policy_id = policy_id + + @property + def body(self): + """Gets the body of this CreateAnticrawlerRulesRequest. + + + :return: The body of this CreateAnticrawlerRulesRequest. + :rtype: PolicyAntiCrawlerPostInfo + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateAnticrawlerRulesRequest. + + + :param body: The body of this CreateAnticrawlerRulesRequest. + :type: PolicyAntiCrawlerPostInfo + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAnticrawlerRulesRequest): + 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-waf/huaweicloudsdkwaf/v1/model/create_anticrawler_rules_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_anticrawler_rules_response.py new file mode 100644 index 0000000000..9a61021baf --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_anticrawler_rules_response.py @@ -0,0 +1,245 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class CreateAnticrawlerRulesResponse(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', + 'url': 'str', + 'logic': 'int', + 'name': 'str', + 'type': 'str', + 'timestamp': 'int' + } + + attribute_map = { + 'id': 'id', + 'url': 'url', + 'logic': 'logic', + 'name': 'name', + 'type': 'type', + 'timestamp': 'timestamp' + } + + def __init__(self, id=None, url=None, logic=None, name=None, type=None, timestamp=None): + """CreateAnticrawlerRulesResponse - a model defined in huaweicloud sdk""" + + super(CreateAnticrawlerRulesResponse, self).__init__() + + self._id = None + self._url = None + self._logic = None + self._name = None + self._type = None + self._timestamp = None + self.discriminator = None + + if id is not None: + self.id = id + if url is not None: + self.url = url + if logic is not None: + self.logic = logic + if name is not None: + self.name = name + if type is not None: + self.type = type + if timestamp is not None: + self.timestamp = timestamp + + @property + def id(self): + """Gets the id of this CreateAnticrawlerRulesResponse. + + 规则id + + :return: The id of this CreateAnticrawlerRulesResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateAnticrawlerRulesResponse. + + 规则id + + :param id: The id of this CreateAnticrawlerRulesResponse. + :type: str + """ + self._id = id + + @property + def url(self): + """Gets the url of this CreateAnticrawlerRulesResponse. + + 规则应用的url + + :return: The url of this CreateAnticrawlerRulesResponse. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this CreateAnticrawlerRulesResponse. + + 规则应用的url + + :param url: The url of this CreateAnticrawlerRulesResponse. + :type: str + """ + self._url = url + + @property + def logic(self): + """Gets the logic of this CreateAnticrawlerRulesResponse. + + 规则匹配逻辑 + + :return: The logic of this CreateAnticrawlerRulesResponse. + :rtype: int + """ + return self._logic + + @logic.setter + def logic(self, logic): + """Sets the logic of this CreateAnticrawlerRulesResponse. + + 规则匹配逻辑 + + :param logic: The logic of this CreateAnticrawlerRulesResponse. + :type: int + """ + self._logic = logic + + @property + def name(self): + """Gets the name of this CreateAnticrawlerRulesResponse. + + 规则名称 + + :return: The name of this CreateAnticrawlerRulesResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateAnticrawlerRulesResponse. + + 规则名称 + + :param name: The name of this CreateAnticrawlerRulesResponse. + :type: str + """ + self._name = name + + @property + def type(self): + """Gets the type of this CreateAnticrawlerRulesResponse. + + 反爬虫类型,指定防护:anticrawler_specific_url 例外防护:anticrawler_except_url + + :return: The type of this CreateAnticrawlerRulesResponse. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CreateAnticrawlerRulesResponse. + + 反爬虫类型,指定防护:anticrawler_specific_url 例外防护:anticrawler_except_url + + :param type: The type of this CreateAnticrawlerRulesResponse. + :type: str + """ + self._type = type + + @property + def timestamp(self): + """Gets the timestamp of this CreateAnticrawlerRulesResponse. + + 创建规则时间戳 + + :return: The timestamp of this CreateAnticrawlerRulesResponse. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this CreateAnticrawlerRulesResponse. + + 创建规则时间戳 + + :param timestamp: The timestamp of this CreateAnticrawlerRulesResponse. + :type: int + """ + self._timestamp = timestamp + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAnticrawlerRulesResponse): + 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-waf/huaweicloudsdkwaf/v1/model/create_antileakage_rules_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_antileakage_rules_request.py new file mode 100644 index 0000000000..d14333cc27 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_antileakage_rules_request.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateAntileakageRulesRequest: + + + """ + 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': 'CreateAntiLeakageRequestBody' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'body': 'body' + } + + def __init__(self, policy_id=None, body=None): + """CreateAntileakageRulesRequest - a model defined in huaweicloud sdk""" + + + + 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 CreateAntileakageRulesRequest. + + policyid + + :return: The policy_id of this CreateAntileakageRulesRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this CreateAntileakageRulesRequest. + + policyid + + :param policy_id: The policy_id of this CreateAntileakageRulesRequest. + :type: str + """ + self._policy_id = policy_id + + @property + def body(self): + """Gets the body of this CreateAntileakageRulesRequest. + + + :return: The body of this CreateAntileakageRulesRequest. + :rtype: CreateAntiLeakageRequestBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateAntileakageRulesRequest. + + + :param body: The body of this CreateAntileakageRulesRequest. + :type: CreateAntiLeakageRequestBody + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAntileakageRulesRequest): + 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-waf/huaweicloudsdkwaf/v1/model/create_antileakage_rules_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_antileakage_rules_response.py new file mode 100644 index 0000000000..2cc2c39172 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_antileakage_rules_response.py @@ -0,0 +1,245 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class CreateAntileakageRulesResponse(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', + 'url': 'str', + 'category': 'str', + 'status': 'int', + 'contents': 'list[str]', + 'timestamp': 'int' + } + + attribute_map = { + 'id': 'id', + 'url': 'url', + 'category': 'category', + 'status': 'status', + 'contents': 'contents', + 'timestamp': 'timestamp' + } + + def __init__(self, id=None, url=None, category=None, status=None, contents=None, timestamp=None): + """CreateAntileakageRulesResponse - a model defined in huaweicloud sdk""" + + super(CreateAntileakageRulesResponse, self).__init__() + + self._id = None + self._url = None + self._category = None + self._status = None + self._contents = None + self._timestamp = None + self.discriminator = None + + if id is not None: + self.id = id + if url is not None: + self.url = url + if category is not None: + self.category = category + if status is not None: + self.status = status + if contents is not None: + self.contents = contents + if timestamp is not None: + self.timestamp = timestamp + + @property + def id(self): + """Gets the id of this CreateAntileakageRulesResponse. + + 规则id + + :return: The id of this CreateAntileakageRulesResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateAntileakageRulesResponse. + + 规则id + + :param id: The id of this CreateAntileakageRulesResponse. + :type: str + """ + self._id = id + + @property + def url(self): + """Gets the url of this CreateAntileakageRulesResponse. + + 规则应用的url + + :return: The url of this CreateAntileakageRulesResponse. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this CreateAntileakageRulesResponse. + + 规则应用的url + + :param url: The url of this CreateAntileakageRulesResponse. + :type: str + """ + self._url = url + + @property + def category(self): + """Gets the category of this CreateAntileakageRulesResponse. + + 类别 + + :return: The category of this CreateAntileakageRulesResponse. + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this CreateAntileakageRulesResponse. + + 类别 + + :param category: The category of this CreateAntileakageRulesResponse. + :type: str + """ + self._category = category + + @property + def status(self): + """Gets the status of this CreateAntileakageRulesResponse. + + 状态 + + :return: The status of this CreateAntileakageRulesResponse. + :rtype: int + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this CreateAntileakageRulesResponse. + + 状态 + + :param status: The status of this CreateAntileakageRulesResponse. + :type: int + """ + self._status = status + + @property + def contents(self): + """Gets the contents of this CreateAntileakageRulesResponse. + + 规则内容 + + :return: The contents of this CreateAntileakageRulesResponse. + :rtype: list[str] + """ + return self._contents + + @contents.setter + def contents(self, contents): + """Sets the contents of this CreateAntileakageRulesResponse. + + 规则内容 + + :param contents: The contents of this CreateAntileakageRulesResponse. + :type: list[str] + """ + self._contents = contents + + @property + def timestamp(self): + """Gets the timestamp of this CreateAntileakageRulesResponse. + + 创建规则时间戳 + + :return: The timestamp of this CreateAntileakageRulesResponse. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this CreateAntileakageRulesResponse. + + 创建规则时间戳 + + :param timestamp: The timestamp of this CreateAntileakageRulesResponse. + :type: int + """ + self._timestamp = timestamp + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAntileakageRulesResponse): + 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-waf/huaweicloudsdkwaf/v1/model/create_cc_rule_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_cc_rule_request.py new file mode 100644 index 0000000000..bd8fa2e7a4 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_cc_rule_request.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateCcRuleRequest: + + + """ + 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': 'CcrulePostInfo' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'body': 'body' + } + + def __init__(self, policy_id=None, body=None): + """CreateCcRuleRequest - a model defined in huaweicloud sdk""" + + + + 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 CreateCcRuleRequest. + + policyid + + :return: The policy_id of this CreateCcRuleRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this CreateCcRuleRequest. + + policyid + + :param policy_id: The policy_id of this CreateCcRuleRequest. + :type: str + """ + self._policy_id = policy_id + + @property + def body(self): + """Gets the body of this CreateCcRuleRequest. + + + :return: The body of this CreateCcRuleRequest. + :rtype: CcrulePostInfo + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateCcRuleRequest. + + + :param body: The body of this CreateCcRuleRequest. + :type: CcrulePostInfo + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateCcRuleRequest): + 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-waf/huaweicloudsdkwaf/v1/model/create_cc_rule_request_body.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_cc_rule_request_body.py new file mode 100644 index 0000000000..e4cffda5a2 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_cc_rule_request_body.py @@ -0,0 +1,270 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateCcRuleRequestBody: + + + """ + 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 = { + 'description': 'str', + 'limit_num': 'int', + 'limit_period': 'int', + 'url': 'str', + 'mode': 'int', + 'action': 'CreateCcRuleRequestBodyAction', + 'tag_type': 'str' + } + + attribute_map = { + 'description': 'description', + 'limit_num': 'limit_num', + 'limit_period': 'limit_period', + 'url': 'url', + 'mode': 'mode', + 'action': 'action', + 'tag_type': 'tag_type' + } + + def __init__(self, description=None, limit_num=None, limit_period=None, url=None, mode=None, action=None, tag_type=None): + """CreateCcRuleRequestBody - a model defined in huaweicloud sdk""" + + + + self._description = None + self._limit_num = None + self._limit_period = None + self._url = None + self._mode = None + self._action = None + self._tag_type = None + self.discriminator = None + + if description is not None: + self.description = description + if limit_num is not None: + self.limit_num = limit_num + if limit_period is not None: + self.limit_period = limit_period + if url is not None: + self.url = url + if mode is not None: + self.mode = mode + if action is not None: + self.action = action + if tag_type is not None: + self.tag_type = tag_type + + @property + def description(self): + """Gets the description of this CreateCcRuleRequestBody. + + 规则描述 + + :return: The description of this CreateCcRuleRequestBody. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateCcRuleRequestBody. + + 规则描述 + + :param description: The description of this CreateCcRuleRequestBody. + :type: str + """ + self._description = description + + @property + def limit_num(self): + """Gets the limit_num of this CreateCcRuleRequestBody. + + 限制频率次数 + + :return: The limit_num of this CreateCcRuleRequestBody. + :rtype: int + """ + return self._limit_num + + @limit_num.setter + def limit_num(self, limit_num): + """Sets the limit_num of this CreateCcRuleRequestBody. + + 限制频率次数 + + :param limit_num: The limit_num of this CreateCcRuleRequestBody. + :type: int + """ + self._limit_num = limit_num + + @property + def limit_period(self): + """Gets the limit_period of this CreateCcRuleRequestBody. + + 限制频率单位时间 + + :return: The limit_period of this CreateCcRuleRequestBody. + :rtype: int + """ + return self._limit_period + + @limit_period.setter + def limit_period(self, limit_period): + """Sets the limit_period of this CreateCcRuleRequestBody. + + 限制频率单位时间 + + :param limit_period: The limit_period of this CreateCcRuleRequestBody. + :type: int + """ + self._limit_period = limit_period + + @property + def url(self): + """Gets the url of this CreateCcRuleRequestBody. + + url + + :return: The url of this CreateCcRuleRequestBody. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this CreateCcRuleRequestBody. + + url + + :param url: The url of this CreateCcRuleRequestBody. + :type: str + """ + self._url = url + + @property + def mode(self): + """Gets the mode of this CreateCcRuleRequestBody. + + 工作模式:(0标准,1高级),高级模式参数无法在同一个接口同一份文档中用描述,参考console页面构建参数 + + :return: The mode of this CreateCcRuleRequestBody. + :rtype: int + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this CreateCcRuleRequestBody. + + 工作模式:(0标准,1高级),高级模式参数无法在同一个接口同一份文档中用描述,参考console页面构建参数 + + :param mode: The mode of this CreateCcRuleRequestBody. + :type: int + """ + self._mode = mode + + @property + def action(self): + """Gets the action of this CreateCcRuleRequestBody. + + + :return: The action of this CreateCcRuleRequestBody. + :rtype: CreateCcRuleRequestBodyAction + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this CreateCcRuleRequestBody. + + + :param action: The action of this CreateCcRuleRequestBody. + :type: CreateCcRuleRequestBodyAction + """ + self._action = action + + @property + def tag_type(self): + """Gets the tag_type of this CreateCcRuleRequestBody. + + 限制频率次数 + + :return: The tag_type of this CreateCcRuleRequestBody. + :rtype: str + """ + return self._tag_type + + @tag_type.setter + def tag_type(self, tag_type): + """Sets the tag_type of this CreateCcRuleRequestBody. + + 限制频率次数 + + :param tag_type: The tag_type of this CreateCcRuleRequestBody. + :type: str + """ + self._tag_type = tag_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateCcRuleRequestBody): + 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-waf/huaweicloudsdkwaf/v1/model/create_cc_rule_request_body_action.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_cc_rule_request_body_action.py new file mode 100644 index 0000000000..693cd7849e --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_cc_rule_request_body_action.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateCcRuleRequestBodyAction: + + + """ + 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): + """CreateCcRuleRequestBodyAction - a model defined in huaweicloud sdk""" + + + + self._category = None + self.discriminator = None + + if category is not None: + self.category = category + + @property + def category(self): + """Gets the category of this CreateCcRuleRequestBodyAction. + + 防护动作 + + :return: The category of this CreateCcRuleRequestBodyAction. + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this CreateCcRuleRequestBodyAction. + + 防护动作 + + :param category: The category of this CreateCcRuleRequestBodyAction. + :type: 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateCcRuleRequestBodyAction): + 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-waf/huaweicloudsdkwaf/v1/model/create_cc_rule_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_cc_rule_response.py new file mode 100644 index 0000000000..dd7f2d5fee --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_cc_rule_response.py @@ -0,0 +1,513 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class CreateCcRuleResponse(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', + 'policyid': 'str', + 'status': 'int', + 'description': 'str', + 'mode': 'int', + 'unaggregation': 'bool', + 'prefix': 'bool', + 'total_num': 'int', + 'url': 'str', + 'limit_num': 'int', + 'limit_period': 'int', + 'lock_time': 'int', + 'tag_type': 'str', + 'tag_index': 'str', + 'action': 'CcrulesListInfoAction', + 'timestamp': 'int' + } + + attribute_map = { + 'id': 'id', + 'policyid': 'policyid', + 'status': 'status', + 'description': 'description', + 'mode': 'mode', + 'unaggregation': 'unaggregation', + 'prefix': 'prefix', + 'total_num': 'total_num', + 'url': 'url', + 'limit_num': 'limit_num', + 'limit_period': 'limit_period', + 'lock_time': 'lock_time', + 'tag_type': 'tag_type', + 'tag_index': 'tag_index', + 'action': 'action', + 'timestamp': 'timestamp' + } + + def __init__(self, id=None, policyid=None, status=None, description=None, mode=None, unaggregation=None, prefix=None, total_num=None, url=None, limit_num=None, limit_period=None, lock_time=None, tag_type=None, tag_index=None, action=None, timestamp=None): + """CreateCcRuleResponse - a model defined in huaweicloud sdk""" + + super(CreateCcRuleResponse, self).__init__() + + self._id = None + self._policyid = None + self._status = None + self._description = None + self._mode = None + self._unaggregation = None + self._prefix = None + self._total_num = 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._action = None + self._timestamp = None + self.discriminator = None + + if id is not None: + self.id = id + if policyid is not None: + self.policyid = policyid + if status is not None: + self.status = status + if description is not None: + self.description = description + if mode is not None: + self.mode = mode + if unaggregation is not None: + self.unaggregation = unaggregation + if prefix is not None: + self.prefix = prefix + if total_num is not None: + self.total_num = total_num + 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 action is not None: + self.action = action + if timestamp is not None: + self.timestamp = timestamp + + @property + def id(self): + """Gets the id of this CreateCcRuleResponse. + + cc规则id + + :return: The id of this CreateCcRuleResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateCcRuleResponse. + + cc规则id + + :param id: The id of this CreateCcRuleResponse. + :type: str + """ + self._id = id + + @property + def policyid(self): + """Gets the policyid of this CreateCcRuleResponse. + + 所属策略id + + :return: The policyid of this CreateCcRuleResponse. + :rtype: str + """ + return self._policyid + + @policyid.setter + def policyid(self, policyid): + """Sets the policyid of this CreateCcRuleResponse. + + 所属策略id + + :param policyid: The policyid of this CreateCcRuleResponse. + :type: str + """ + self._policyid = policyid + + @property + def status(self): + """Gets the status of this CreateCcRuleResponse. + + 状态 + + :return: The status of this CreateCcRuleResponse. + :rtype: int + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this CreateCcRuleResponse. + + 状态 + + :param status: The status of this CreateCcRuleResponse. + :type: int + """ + self._status = status + + @property + def description(self): + """Gets the description of this CreateCcRuleResponse. + + 规则描述 + + :return: The description of this CreateCcRuleResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateCcRuleResponse. + + 规则描述 + + :param description: The description of this CreateCcRuleResponse. + :type: str + """ + self._description = description + + @property + def mode(self): + """Gets the mode of this CreateCcRuleResponse. + + 阻断模式 + + :return: The mode of this CreateCcRuleResponse. + :rtype: int + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this CreateCcRuleResponse. + + 阻断模式 + + :param mode: The mode of this CreateCcRuleResponse. + :type: int + """ + self._mode = mode + + @property + def unaggregation(self): + """Gets the unaggregation of this CreateCcRuleResponse. + + 人机验证 + + :return: The unaggregation of this CreateCcRuleResponse. + :rtype: bool + """ + return self._unaggregation + + @unaggregation.setter + def unaggregation(self, unaggregation): + """Sets the unaggregation of this CreateCcRuleResponse. + + 人机验证 + + :param unaggregation: The unaggregation of this CreateCcRuleResponse. + :type: bool + """ + self._unaggregation = unaggregation + + @property + def prefix(self): + """Gets the prefix of this CreateCcRuleResponse. + + 前缀包含 + + :return: The prefix of this CreateCcRuleResponse. + :rtype: bool + """ + return self._prefix + + @prefix.setter + def prefix(self, prefix): + """Sets the prefix of this CreateCcRuleResponse. + + 前缀包含 + + :param prefix: The prefix of this CreateCcRuleResponse. + :type: bool + """ + self._prefix = prefix + + @property + def total_num(self): + """Gets the total_num of this CreateCcRuleResponse. + + 总数 + + :return: The total_num of this CreateCcRuleResponse. + :rtype: int + """ + return self._total_num + + @total_num.setter + def total_num(self, total_num): + """Sets the total_num of this CreateCcRuleResponse. + + 总数 + + :param total_num: The total_num of this CreateCcRuleResponse. + :type: int + """ + self._total_num = total_num + + @property + def url(self): + """Gets the url of this CreateCcRuleResponse. + + 规则应用的url链接 + + :return: The url of this CreateCcRuleResponse. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this CreateCcRuleResponse. + + 规则应用的url链接 + + :param url: The url of this CreateCcRuleResponse. + :type: str + """ + self._url = url + + @property + def limit_num(self): + """Gets the limit_num of this CreateCcRuleResponse. + + 单个用户的周期内请求次数 + + :return: The limit_num of this CreateCcRuleResponse. + :rtype: int + """ + return self._limit_num + + @limit_num.setter + def limit_num(self, limit_num): + """Sets the limit_num of this CreateCcRuleResponse. + + 单个用户的周期内请求次数 + + :param limit_num: The limit_num of this CreateCcRuleResponse. + :type: int + """ + self._limit_num = limit_num + + @property + def limit_period(self): + """Gets the limit_period of this CreateCcRuleResponse. + + 限速周期 + + :return: The limit_period of this CreateCcRuleResponse. + :rtype: int + """ + return self._limit_period + + @limit_period.setter + def limit_period(self, limit_period): + """Sets the limit_period of this CreateCcRuleResponse. + + 限速周期 + + :param limit_period: The limit_period of this CreateCcRuleResponse. + :type: int + """ + self._limit_period = limit_period + + @property + def lock_time(self): + """Gets the lock_time of this CreateCcRuleResponse. + + 锁定时长 + + :return: The lock_time of this CreateCcRuleResponse. + :rtype: int + """ + return self._lock_time + + @lock_time.setter + def lock_time(self, lock_time): + """Sets the lock_time of this CreateCcRuleResponse. + + 锁定时长 + + :param lock_time: The lock_time of this CreateCcRuleResponse. + :type: int + """ + self._lock_time = lock_time + + @property + def tag_type(self): + """Gets the tag_type of this CreateCcRuleResponse. + + 防护模式 + + :return: The tag_type of this CreateCcRuleResponse. + :rtype: str + """ + return self._tag_type + + @tag_type.setter + def tag_type(self, tag_type): + """Sets the tag_type of this CreateCcRuleResponse. + + 防护模式 + + :param tag_type: The tag_type of this CreateCcRuleResponse. + :type: str + """ + self._tag_type = tag_type + + @property + def tag_index(self): + """Gets the tag_index of this CreateCcRuleResponse. + + 防护模式标签 + + :return: The tag_index of this CreateCcRuleResponse. + :rtype: str + """ + return self._tag_index + + @tag_index.setter + def tag_index(self, tag_index): + """Sets the tag_index of this CreateCcRuleResponse. + + 防护模式标签 + + :param tag_index: The tag_index of this CreateCcRuleResponse. + :type: str + """ + self._tag_index = tag_index + + @property + def action(self): + """Gets the action of this CreateCcRuleResponse. + + + :return: The action of this CreateCcRuleResponse. + :rtype: CcrulesListInfoAction + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this CreateCcRuleResponse. + + + :param action: The action of this CreateCcRuleResponse. + :type: CcrulesListInfoAction + """ + self._action = action + + @property + def timestamp(self): + """Gets the timestamp of this CreateCcRuleResponse. + + 创建规则时间戳 + + :return: The timestamp of this CreateCcRuleResponse. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this CreateCcRuleResponse. + + 创建规则时间戳 + + :param timestamp: The timestamp of this CreateCcRuleResponse. + :type: int + """ + self._timestamp = timestamp + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateCcRuleResponse): + 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-waf/huaweicloudsdkwaf/v1/model/create_certificate_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_certificate_request.py new file mode 100644 index 0000000000..d1890fdc3e --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_certificate_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateCertificateRequest: + + + """ + 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': 'CreateCertificateRequestBody' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateCertificateRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateCertificateRequest. + + + :return: The body of this CreateCertificateRequest. + :rtype: CreateCertificateRequestBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateCertificateRequest. + + + :param body: The body of this CreateCertificateRequest. + :type: CreateCertificateRequestBody + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateCertificateRequest): + 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-waf/huaweicloudsdkwaf/v1/model/create_certificate_request_body.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_certificate_request_body.py new file mode 100644 index 0000000000..fb21d5ab6d --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_certificate_request_body.py @@ -0,0 +1,164 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateCertificateRequestBody: + + + """ + 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', + 'content': 'str', + 'key': 'str' + } + + attribute_map = { + 'name': 'name', + 'content': 'content', + 'key': 'key' + } + + def __init__(self, name=None, content=None, key=None): + """CreateCertificateRequestBody - a model defined in huaweicloud sdk""" + + + + self._name = None + self._content = None + self._key = None + self.discriminator = None + + if name is not None: + self.name = name + if content is not None: + self.content = content + if key is not None: + self.key = key + + @property + def name(self): + """Gets the name of this CreateCertificateRequestBody. + + 证书名 + + :return: The name of this CreateCertificateRequestBody. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateCertificateRequestBody. + + 证书名 + + :param name: The name of this CreateCertificateRequestBody. + :type: str + """ + self._name = name + + @property + def content(self): + """Gets the content of this CreateCertificateRequestBody. + + 证书文件,PEM编码 + + :return: The content of this CreateCertificateRequestBody. + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this CreateCertificateRequestBody. + + 证书文件,PEM编码 + + :param content: The content of this CreateCertificateRequestBody. + :type: str + """ + self._content = content + + @property + def key(self): + """Gets the key of this CreateCertificateRequestBody. + + 证书私钥,PEM编码 + + :return: The key of this CreateCertificateRequestBody. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this CreateCertificateRequestBody. + + 证书私钥,PEM编码 + + :param key: The key of this CreateCertificateRequestBody. + :type: str + """ + self._key = key + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateCertificateRequestBody): + 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-waf/huaweicloudsdkwaf/v1/model/create_certificate_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_certificate_response.py new file mode 100644 index 0000000000..6f36136a76 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_certificate_response.py @@ -0,0 +1,299 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class CreateCertificateResponse(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', + 'name': 'str', + 'content': 'str', + 'key': 'str', + 'expire_time': 'int', + 'exp_status': 'int', + 'timestamp': 'int', + 'bind_host': 'list[BindHost]' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'content': 'content', + 'key': 'key', + 'expire_time': 'expire_time', + 'exp_status': 'exp_status', + 'timestamp': 'timestamp', + 'bind_host': 'bind_host' + } + + def __init__(self, id=None, name=None, content=None, key=None, expire_time=None, exp_status=None, timestamp=None, bind_host=None): + """CreateCertificateResponse - a model defined in huaweicloud sdk""" + + super(CreateCertificateResponse, self).__init__() + + self._id = None + self._name = None + self._content = None + self._key = None + self._expire_time = None + self._exp_status = None + self._timestamp = None + self._bind_host = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if content is not None: + self.content = content + if key is not None: + self.key = key + if expire_time is not None: + self.expire_time = expire_time + if exp_status is not None: + self.exp_status = exp_status + if timestamp is not None: + self.timestamp = timestamp + if bind_host is not None: + self.bind_host = bind_host + + @property + def id(self): + """Gets the id of this CreateCertificateResponse. + + 证书ID + + :return: The id of this CreateCertificateResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateCertificateResponse. + + 证书ID + + :param id: The id of this CreateCertificateResponse. + :type: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this CreateCertificateResponse. + + 证书名 + + :return: The name of this CreateCertificateResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateCertificateResponse. + + 证书名 + + :param name: The name of this CreateCertificateResponse. + :type: str + """ + self._name = name + + @property + def content(self): + """Gets the content of this CreateCertificateResponse. + + 证书文件,PEM编码 + + :return: The content of this CreateCertificateResponse. + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this CreateCertificateResponse. + + 证书文件,PEM编码 + + :param content: The content of this CreateCertificateResponse. + :type: str + """ + self._content = content + + @property + def key(self): + """Gets the key of this CreateCertificateResponse. + + 证书私钥,PEM编码 + + :return: The key of this CreateCertificateResponse. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this CreateCertificateResponse. + + 证书私钥,PEM编码 + + :param key: The key of this CreateCertificateResponse. + :type: str + """ + self._key = key + + @property + def expire_time(self): + """Gets the expire_time of this CreateCertificateResponse. + + 证书过期时间戳 + + :return: The expire_time of this CreateCertificateResponse. + :rtype: int + """ + return self._expire_time + + @expire_time.setter + def expire_time(self, expire_time): + """Sets the expire_time of this CreateCertificateResponse. + + 证书过期时间戳 + + :param expire_time: The expire_time of this CreateCertificateResponse. + :type: int + """ + self._expire_time = expire_time + + @property + def exp_status(self): + """Gets the exp_status of this CreateCertificateResponse. + + 证书过期状态,0-未过期,1-已过期,2-即将过期 + + :return: The exp_status of this CreateCertificateResponse. + :rtype: int + """ + return self._exp_status + + @exp_status.setter + def exp_status(self, exp_status): + """Sets the exp_status of this CreateCertificateResponse. + + 证书过期状态,0-未过期,1-已过期,2-即将过期 + + :param exp_status: The exp_status of this CreateCertificateResponse. + :type: int + """ + self._exp_status = exp_status + + @property + def timestamp(self): + """Gets the timestamp of this CreateCertificateResponse. + + 证书上传时间戳 + + :return: The timestamp of this CreateCertificateResponse. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this CreateCertificateResponse. + + 证书上传时间戳 + + :param timestamp: The timestamp of this CreateCertificateResponse. + :type: int + """ + self._timestamp = timestamp + + @property + def bind_host(self): + """Gets the bind_host of this CreateCertificateResponse. + + 证书关联的域名信息 + + :return: The bind_host of this CreateCertificateResponse. + :rtype: list[BindHost] + """ + return self._bind_host + + @bind_host.setter + def bind_host(self, bind_host): + """Sets the bind_host of this CreateCertificateResponse. + + 证书关联的域名信息 + + :param bind_host: The bind_host of this CreateCertificateResponse. + :type: list[BindHost] + """ + self._bind_host = bind_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateCertificateResponse): + 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-waf/huaweicloudsdkwaf/v1/model/create_custom_rules_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_custom_rules_request.py new file mode 100644 index 0000000000..d68a48315d --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_custom_rules_request.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateCustomRulesRequest: + + + """ + 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': 'CustomPostBody' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'body': 'body' + } + + def __init__(self, policy_id=None, body=None): + """CreateCustomRulesRequest - a model defined in huaweicloud sdk""" + + + + 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 CreateCustomRulesRequest. + + policyid + + :return: The policy_id of this CreateCustomRulesRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this CreateCustomRulesRequest. + + policyid + + :param policy_id: The policy_id of this CreateCustomRulesRequest. + :type: str + """ + self._policy_id = policy_id + + @property + def body(self): + """Gets the body of this CreateCustomRulesRequest. + + + :return: The body of this CreateCustomRulesRequest. + :rtype: CustomPostBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateCustomRulesRequest. + + + :param body: The body of this CreateCustomRulesRequest. + :type: CustomPostBody + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateCustomRulesRequest): + 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-waf/huaweicloudsdkwaf/v1/model/create_custom_rules_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_custom_rules_response.py new file mode 100644 index 0000000000..e5d97d13ec --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_custom_rules_response.py @@ -0,0 +1,351 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class CreateCustomRulesResponse(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', + 'policyid': 'str', + 'action_mode': 'bool', + 'name': 'str', + 'time': 'bool', + 'start': 'int', + 'terminal': 'int', + 'conditions': 'list[CustomConditions]', + 'action': 'CustomAction', + 'priority': 'int' + } + + attribute_map = { + 'id': 'id', + 'policyid': 'policyid', + 'action_mode': 'action_mode', + 'name': 'name', + 'time': 'time', + 'start': 'start', + 'terminal': 'terminal', + 'conditions': 'conditions', + 'action': 'action', + 'priority': 'priority' + } + + def __init__(self, id=None, policyid=None, action_mode=None, name=None, time=None, start=None, terminal=None, conditions=None, action=None, priority=None): + """CreateCustomRulesResponse - a model defined in huaweicloud sdk""" + + super(CreateCustomRulesResponse, self).__init__() + + self._id = None + self._policyid = None + self._action_mode = None + self._name = None + self._time = None + self._start = None + self._terminal = None + self._conditions = None + self._action = None + self._priority = None + self.discriminator = None + + if id is not None: + self.id = id + if policyid is not None: + self.policyid = policyid + if action_mode is not None: + self.action_mode = action_mode + if name is not None: + self.name = name + if time is not None: + self.time = time + if start is not None: + self.start = start + if terminal is not None: + self.terminal = terminal + if conditions is not None: + self.conditions = conditions + if action is not None: + self.action = action + if priority is not None: + self.priority = priority + + @property + def id(self): + """Gets the id of this CreateCustomRulesResponse. + + 规则id + + :return: The id of this CreateCustomRulesResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateCustomRulesResponse. + + 规则id + + :param id: The id of this CreateCustomRulesResponse. + :type: str + """ + self._id = id + + @property + def policyid(self): + """Gets the policyid of this CreateCustomRulesResponse. + + 策略id + + :return: The policyid of this CreateCustomRulesResponse. + :rtype: str + """ + return self._policyid + + @policyid.setter + def policyid(self, policyid): + """Sets the policyid of this CreateCustomRulesResponse. + + 策略id + + :param policyid: The policyid of this CreateCustomRulesResponse. + :type: str + """ + self._policyid = policyid + + @property + def action_mode(self): + """Gets the action_mode of this CreateCustomRulesResponse. + + 攻击惩罚 + + :return: The action_mode of this CreateCustomRulesResponse. + :rtype: bool + """ + return self._action_mode + + @action_mode.setter + def action_mode(self, action_mode): + """Sets the action_mode of this CreateCustomRulesResponse. + + 攻击惩罚 + + :param action_mode: The action_mode of this CreateCustomRulesResponse. + :type: bool + """ + self._action_mode = action_mode + + @property + def name(self): + """Gets the name of this CreateCustomRulesResponse. + + 自定义规则的名称 + + :return: The name of this CreateCustomRulesResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateCustomRulesResponse. + + 自定义规则的名称 + + :param name: The name of this CreateCustomRulesResponse. + :type: str + """ + self._name = name + + @property + def time(self): + """Gets the time of this CreateCustomRulesResponse. + + 精准防护规则生效时间 + + :return: The time of this CreateCustomRulesResponse. + :rtype: bool + """ + return self._time + + @time.setter + def time(self, time): + """Sets the time of this CreateCustomRulesResponse. + + 精准防护规则生效时间 + + :param time: The time of this CreateCustomRulesResponse. + :type: bool + """ + self._time = time + + @property + def start(self): + """Gets the start of this CreateCustomRulesResponse. + + 精准防护规则生效的起始时间 + + :return: The start of this CreateCustomRulesResponse. + :rtype: int + """ + return self._start + + @start.setter + def start(self, start): + """Sets the start of this CreateCustomRulesResponse. + + 精准防护规则生效的起始时间 + + :param start: The start of this CreateCustomRulesResponse. + :type: int + """ + self._start = start + + @property + def terminal(self): + """Gets the terminal of this CreateCustomRulesResponse. + + 精准防护规则生效的终止时间 + + :return: The terminal of this CreateCustomRulesResponse. + :rtype: int + """ + return self._terminal + + @terminal.setter + def terminal(self, terminal): + """Sets the terminal of this CreateCustomRulesResponse. + + 精准防护规则生效的终止时间 + + :param terminal: The terminal of this CreateCustomRulesResponse. + :type: int + """ + self._terminal = terminal + + @property + def conditions(self): + """Gets the conditions of this CreateCustomRulesResponse. + + 匹配条件列表 + + :return: The conditions of this CreateCustomRulesResponse. + :rtype: list[CustomConditions] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """Sets the conditions of this CreateCustomRulesResponse. + + 匹配条件列表 + + :param conditions: The conditions of this CreateCustomRulesResponse. + :type: list[CustomConditions] + """ + self._conditions = conditions + + @property + def action(self): + """Gets the action of this CreateCustomRulesResponse. + + + :return: The action of this CreateCustomRulesResponse. + :rtype: CustomAction + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this CreateCustomRulesResponse. + + + :param action: The action of this CreateCustomRulesResponse. + :type: CustomAction + """ + self._action = action + + @property + def priority(self): + """Gets the priority of this CreateCustomRulesResponse. + + 优先级(0-1000的整数) + + :return: The priority of this CreateCustomRulesResponse. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this CreateCustomRulesResponse. + + 优先级(0-1000的整数) + + :param priority: The priority of this CreateCustomRulesResponse. + :type: int + """ + self._priority = priority + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateCustomRulesResponse): + 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-waf/huaweicloudsdkwaf/v1/model/create_geoip_rules_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_geoip_rules_request.py new file mode 100644 index 0000000000..72c81ea5ce --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_geoip_rules_request.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateGeoipRulesRequest: + + + """ + 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': 'GeoIpBody' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'body': 'body' + } + + def __init__(self, policy_id=None, body=None): + """CreateGeoipRulesRequest - a model defined in huaweicloud sdk""" + + + + 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 CreateGeoipRulesRequest. + + policyid + + :return: The policy_id of this CreateGeoipRulesRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this CreateGeoipRulesRequest. + + policyid + + :param policy_id: The policy_id of this CreateGeoipRulesRequest. + :type: str + """ + self._policy_id = policy_id + + @property + def body(self): + """Gets the body of this CreateGeoipRulesRequest. + + + :return: The body of this CreateGeoipRulesRequest. + :rtype: GeoIpBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateGeoipRulesRequest. + + + :param body: The body of this CreateGeoipRulesRequest. + :type: GeoIpBody + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateGeoipRulesRequest): + 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-waf/huaweicloudsdkwaf/v1/model/create_geoip_rules_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_geoip_rules_response.py new file mode 100644 index 0000000000..545ed120ec --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_geoip_rules_response.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class CreateGeoipRulesResponse(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', + 'geoip': 'str', + 'white': 'int', + 'timestamp': 'int' + } + + attribute_map = { + 'id': 'id', + 'geoip': 'geoip', + 'white': 'white', + 'timestamp': 'timestamp' + } + + def __init__(self, id=None, geoip=None, white=None, timestamp=None): + """CreateGeoipRulesResponse - a model defined in huaweicloud sdk""" + + super(CreateGeoipRulesResponse, self).__init__() + + self._id = None + self._geoip = None + self._white = None + self._timestamp = None + self.discriminator = None + + if id is not None: + self.id = id + if geoip is not None: + self.geoip = geoip + if white is not None: + self.white = white + if timestamp is not None: + self.timestamp = timestamp + + @property + def id(self): + """Gets the id of this CreateGeoipRulesResponse. + + 规则id + + :return: The id of this CreateGeoipRulesResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateGeoipRulesResponse. + + 规则id + + :param id: The id of this CreateGeoipRulesResponse. + :type: str + """ + self._id = id + + @property + def geoip(self): + """Gets the geoip of this CreateGeoipRulesResponse. + + 地理位置封禁区域 + + :return: The geoip of this CreateGeoipRulesResponse. + :rtype: str + """ + return self._geoip + + @geoip.setter + def geoip(self, geoip): + """Sets the geoip of this CreateGeoipRulesResponse. + + 地理位置封禁区域 + + :param geoip: The geoip of this CreateGeoipRulesResponse. + :type: str + """ + self._geoip = geoip + + @property + def white(self): + """Gets the white of this CreateGeoipRulesResponse. + + 放行或者拦截 + + :return: The white of this CreateGeoipRulesResponse. + :rtype: int + """ + return self._white + + @white.setter + def white(self, white): + """Sets the white of this CreateGeoipRulesResponse. + + 放行或者拦截 + + :param white: The white of this CreateGeoipRulesResponse. + :type: int + """ + self._white = white + + @property + def timestamp(self): + """Gets the timestamp of this CreateGeoipRulesResponse. + + 创建规则时间戳 + + :return: The timestamp of this CreateGeoipRulesResponse. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this CreateGeoipRulesResponse. + + 创建规则时间戳 + + :param timestamp: The timestamp of this CreateGeoipRulesResponse. + :type: int + """ + self._timestamp = timestamp + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateGeoipRulesResponse): + 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-waf/huaweicloudsdkwaf/v1/model/create_instane_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_instane_request.py new file mode 100644 index 0000000000..8eba1d01c8 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_instane_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreateInstaneRequest: + + + """ + 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': 'InstanceBody' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateInstaneRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateInstaneRequest. + + + :return: The body of this CreateInstaneRequest. + :rtype: InstanceBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateInstaneRequest. + + + :param body: The body of this CreateInstaneRequest. + :type: InstanceBody + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateInstaneRequest): + 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-waf/huaweicloudsdkwaf/v1/model/create_instane_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_instane_response.py new file mode 100644 index 0000000000..ed24c8ecf9 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_instane_response.py @@ -0,0 +1,407 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class CreateInstaneResponse(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', + 'hostname': 'str', + 'policyid': 'str', + 'access_code': 'str', + 'protect_status': 'int', + 'access_status': 'int', + 'protocol': 'str', + 'certificateid': 'str', + 'certificatename': 'str', + 'server': 'list[PremiumWafServer]', + 'proxy': 'bool', + 'timestamp': 'int' + } + + attribute_map = { + 'id': 'id', + 'hostname': 'hostname', + 'policyid': 'policyid', + 'access_code': 'access_code', + 'protect_status': 'protect_status', + 'access_status': 'access_status', + 'protocol': 'protocol', + 'certificateid': 'certificateid', + 'certificatename': 'certificatename', + 'server': 'server', + 'proxy': 'proxy', + 'timestamp': 'timestamp' + } + + def __init__(self, id=None, hostname=None, policyid=None, access_code=None, protect_status=None, access_status=None, protocol=None, certificateid=None, certificatename=None, server=None, proxy=None, timestamp=None): + """CreateInstaneResponse - a model defined in huaweicloud sdk""" + + super(CreateInstaneResponse, self).__init__() + + self._id = None + self._hostname = None + self._policyid = None + self._access_code = None + self._protect_status = None + self._access_status = None + self._protocol = None + self._certificateid = None + self._certificatename = None + self._server = None + self._proxy = None + self._timestamp = None + self.discriminator = None + + if id is not None: + self.id = id + if hostname is not None: + self.hostname = hostname + if policyid is not None: + self.policyid = policyid + if access_code is not None: + self.access_code = access_code + if protect_status is not None: + self.protect_status = protect_status + if access_status is not None: + self.access_status = access_status + if protocol is not None: + self.protocol = protocol + if certificateid is not None: + self.certificateid = certificateid + if certificatename is not None: + self.certificatename = certificatename + if server is not None: + self.server = server + if proxy is not None: + self.proxy = proxy + if timestamp is not None: + self.timestamp = timestamp + + @property + def id(self): + """Gets the id of this CreateInstaneResponse. + + 域名id + + :return: The id of this CreateInstaneResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateInstaneResponse. + + 域名id + + :param id: The id of this CreateInstaneResponse. + :type: str + """ + self._id = id + + @property + def hostname(self): + """Gets the hostname of this CreateInstaneResponse. + + 创建的云模式防护域名 + + :return: The hostname of this CreateInstaneResponse. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """Sets the hostname of this CreateInstaneResponse. + + 创建的云模式防护域名 + + :param hostname: The hostname of this CreateInstaneResponse. + :type: str + """ + self._hostname = hostname + + @property + def policyid(self): + """Gets the policyid of this CreateInstaneResponse. + + 策略id + + :return: The policyid of this CreateInstaneResponse. + :rtype: str + """ + return self._policyid + + @policyid.setter + def policyid(self, policyid): + """Sets the policyid of this CreateInstaneResponse. + + 策略id + + :param policyid: The policyid of this CreateInstaneResponse. + :type: str + """ + self._policyid = policyid + + @property + def access_code(self): + """Gets the access_code of this CreateInstaneResponse. + + cname + + :return: The access_code of this CreateInstaneResponse. + :rtype: str + """ + return self._access_code + + @access_code.setter + def access_code(self, access_code): + """Sets the access_code of this CreateInstaneResponse. + + cname + + :param access_code: The access_code of this CreateInstaneResponse. + :type: str + """ + self._access_code = access_code + + @property + def protect_status(self): + """Gets the protect_status of this CreateInstaneResponse. + + 防护状态 + + :return: The protect_status of this CreateInstaneResponse. + :rtype: int + """ + return self._protect_status + + @protect_status.setter + def protect_status(self, protect_status): + """Sets the protect_status of this CreateInstaneResponse. + + 防护状态 + + :param protect_status: The protect_status of this CreateInstaneResponse. + :type: int + """ + self._protect_status = protect_status + + @property + def access_status(self): + """Gets the access_status of this CreateInstaneResponse. + + 接入状态 + + :return: The access_status of this CreateInstaneResponse. + :rtype: int + """ + return self._access_status + + @access_status.setter + def access_status(self, access_status): + """Sets the access_status of this CreateInstaneResponse. + + 接入状态 + + :param access_status: The access_status of this CreateInstaneResponse. + :type: int + """ + self._access_status = access_status + + @property + def protocol(self): + """Gets the protocol of this CreateInstaneResponse. + + 返回的客户端协议类型 + + :return: The protocol of this CreateInstaneResponse. + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this CreateInstaneResponse. + + 返回的客户端协议类型 + + :param protocol: The protocol of this CreateInstaneResponse. + :type: str + """ + self._protocol = protocol + + @property + def certificateid(self): + """Gets the certificateid of this CreateInstaneResponse. + + 返回的证书id + + :return: The certificateid of this CreateInstaneResponse. + :rtype: str + """ + return self._certificateid + + @certificateid.setter + def certificateid(self, certificateid): + """Sets the certificateid of this CreateInstaneResponse. + + 返回的证书id + + :param certificateid: The certificateid of this CreateInstaneResponse. + :type: str + """ + self._certificateid = certificateid + + @property + def certificatename(self): + """Gets the certificatename of this CreateInstaneResponse. + + 证书名称 + + :return: The certificatename of this CreateInstaneResponse. + :rtype: str + """ + return self._certificatename + + @certificatename.setter + def certificatename(self, certificatename): + """Sets the certificatename of this CreateInstaneResponse. + + 证书名称 + + :param certificatename: The certificatename of this CreateInstaneResponse. + :type: str + """ + self._certificatename = certificatename + + @property + def server(self): + """Gets the server of this CreateInstaneResponse. + + 源站信息 + + :return: The server of this CreateInstaneResponse. + :rtype: list[PremiumWafServer] + """ + return self._server + + @server.setter + def server(self, server): + """Sets the server of this CreateInstaneResponse. + + 源站信息 + + :param server: The server of this CreateInstaneResponse. + :type: list[PremiumWafServer] + """ + self._server = server + + @property + def proxy(self): + """Gets the proxy of this CreateInstaneResponse. + + 是否开启了代理 + + :return: The proxy of this CreateInstaneResponse. + :rtype: bool + """ + return self._proxy + + @proxy.setter + def proxy(self, proxy): + """Sets the proxy of this CreateInstaneResponse. + + 是否开启了代理 + + :param proxy: The proxy of this CreateInstaneResponse. + :type: bool + """ + self._proxy = proxy + + @property + def timestamp(self): + """Gets the timestamp of this CreateInstaneResponse. + + 创建防护域名的时间 + + :return: The timestamp of this CreateInstaneResponse. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this CreateInstaneResponse. + + 创建防护域名的时间 + + :param timestamp: The timestamp of this CreateInstaneResponse. + :type: int + """ + self._timestamp = timestamp + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateInstaneResponse): + 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-waf/huaweicloudsdkwaf/v1/model/create_policy_body.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_policy_body.py new file mode 100644 index 0000000000..142853028b --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_policy_body.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreatePolicyBody: + + + """ + 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' + } + + attribute_map = { + 'name': 'name' + } + + def __init__(self, name=None): + """CreatePolicyBody - a model defined in huaweicloud sdk""" + + + + self._name = None + self.discriminator = None + + self.name = name + + @property + def name(self): + """Gets the name of this CreatePolicyBody. + + 防护策略名 + + :return: The name of this CreatePolicyBody. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreatePolicyBody. + + 防护策略名 + + :param name: The name of this CreatePolicyBody. + :type: str + """ + self._name = 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatePolicyBody): + 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-waf/huaweicloudsdkwaf/v1/model/create_policy_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_policy_request.py new file mode 100644 index 0000000000..71fb5fc677 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_policy_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreatePolicyRequest: + + + """ + 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': 'CreatePolicyBody' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreatePolicyRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreatePolicyRequest. + + + :return: The body of this CreatePolicyRequest. + :rtype: CreatePolicyBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreatePolicyRequest. + + + :param body: The body of this CreatePolicyRequest. + :type: CreatePolicyBody + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatePolicyRequest): + 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-waf/huaweicloudsdkwaf/v1/model/create_policy_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_policy_response.py new file mode 100644 index 0000000000..db36420128 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_policy_response.py @@ -0,0 +1,322 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class CreatePolicyResponse(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', + 'name': 'str', + 'action': 'PolicyAction', + 'options': 'PolicyOption', + 'level': 'int', + 'full_detection': 'bool', + 'bind_host': 'list[BindHost]', + 'timestamp': 'int', + 'extend': 'dict(str, str)' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'action': 'action', + 'options': 'options', + 'level': 'level', + 'full_detection': 'full_detection', + 'bind_host': 'bind_host', + 'timestamp': 'timestamp', + 'extend': 'extend' + } + + def __init__(self, id=None, name=None, action=None, options=None, level=None, full_detection=None, bind_host=None, timestamp=None, extend=None): + """CreatePolicyResponse - a model defined in huaweicloud sdk""" + + super(CreatePolicyResponse, self).__init__() + + self._id = None + self._name = None + self._action = None + self._options = None + self._level = None + self._full_detection = None + self._bind_host = None + self._timestamp = None + self._extend = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if action is not None: + self.action = action + if options is not None: + self.options = options + if level is not None: + self.level = level + if full_detection is not None: + self.full_detection = full_detection + if bind_host is not None: + self.bind_host = bind_host + if timestamp is not None: + self.timestamp = timestamp + if extend is not None: + self.extend = extend + + @property + def id(self): + """Gets the id of this CreatePolicyResponse. + + 防护策略id + + :return: The id of this CreatePolicyResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreatePolicyResponse. + + 防护策略id + + :param id: The id of this CreatePolicyResponse. + :type: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this CreatePolicyResponse. + + 防护策略名 + + :return: The name of this CreatePolicyResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreatePolicyResponse. + + 防护策略名 + + :param name: The name of this CreatePolicyResponse. + :type: str + """ + self._name = name + + @property + def action(self): + """Gets the action of this CreatePolicyResponse. + + + :return: The action of this CreatePolicyResponse. + :rtype: PolicyAction + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this CreatePolicyResponse. + + + :param action: The action of this CreatePolicyResponse. + :type: PolicyAction + """ + self._action = action + + @property + def options(self): + """Gets the options of this CreatePolicyResponse. + + + :return: The options of this CreatePolicyResponse. + :rtype: PolicyOption + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this CreatePolicyResponse. + + + :param options: The options of this CreatePolicyResponse. + :type: PolicyOption + """ + self._options = options + + @property + def level(self): + """Gets the level of this CreatePolicyResponse. + + 防护等级 + + :return: The level of this CreatePolicyResponse. + :rtype: int + """ + return self._level + + @level.setter + def level(self, level): + """Sets the level of this CreatePolicyResponse. + + 防护等级 + + :param level: The level of this CreatePolicyResponse. + :type: int + """ + self._level = level + + @property + def full_detection(self): + """Gets the full_detection of this CreatePolicyResponse. + + 精准防护中的检测模式 + + :return: The full_detection of this CreatePolicyResponse. + :rtype: bool + """ + return self._full_detection + + @full_detection.setter + def full_detection(self, full_detection): + """Sets the full_detection of this CreatePolicyResponse. + + 精准防护中的检测模式 + + :param full_detection: The full_detection of this CreatePolicyResponse. + :type: bool + """ + self._full_detection = full_detection + + @property + def bind_host(self): + """Gets the bind_host of this CreatePolicyResponse. + + 防护域名的信息 + + :return: The bind_host of this CreatePolicyResponse. + :rtype: list[BindHost] + """ + return self._bind_host + + @bind_host.setter + def bind_host(self, bind_host): + """Sets the bind_host of this CreatePolicyResponse. + + 防护域名的信息 + + :param bind_host: The bind_host of this CreatePolicyResponse. + :type: list[BindHost] + """ + self._bind_host = bind_host + + @property + def timestamp(self): + """Gets the timestamp of this CreatePolicyResponse. + + 创建防护策略的时间 + + :return: The timestamp of this CreatePolicyResponse. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this CreatePolicyResponse. + + 创建防护策略的时间 + + :param timestamp: The timestamp of this CreatePolicyResponse. + :type: int + """ + self._timestamp = timestamp + + @property + def extend(self): + """Gets the extend of this CreatePolicyResponse. + + 扩展字段 + + :return: The extend of this CreatePolicyResponse. + :rtype: dict(str, str) + """ + return self._extend + + @extend.setter + def extend(self, extend): + """Sets the extend of this CreatePolicyResponse. + + 扩展字段 + + :param extend: The extend of this CreatePolicyResponse. + :type: dict(str, str) + """ + self._extend = extend + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatePolicyResponse): + 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-waf/huaweicloudsdkwaf/v1/model/create_pool_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_pool_request.py new file mode 100644 index 0000000000..ca165c2253 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_pool_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreatePoolRequest: + + + """ + 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': 'CreatePoolRequestBody' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreatePoolRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreatePoolRequest. + + + :return: The body of this CreatePoolRequest. + :rtype: CreatePoolRequestBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreatePoolRequest. + + + :param body: The body of this CreatePoolRequest. + :type: CreatePoolRequestBody + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatePoolRequest): + 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-waf/huaweicloudsdkwaf/v1/model/create_pool_request_body.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_pool_request_body.py new file mode 100644 index 0000000000..3978ea1913 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_pool_request_body.py @@ -0,0 +1,241 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreatePoolRequestBody: + + + """ + 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', + 'region': 'str', + 'type': 'str', + 'vpc_id': 'str', + 'description': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'region': 'region', + 'type': 'type', + 'vpc_id': 'vpc_id', + 'description': 'description' + } + + def __init__(self, id=None, name=None, region=None, type=None, vpc_id=None, description=None): + """CreatePoolRequestBody - a model defined in huaweicloud sdk""" + + + + self._id = None + self._name = None + self._region = None + self._type = None + self._vpc_id = None + self._description = None + self.discriminator = None + + if id is not None: + self.id = id + self.name = name + self.region = region + self.type = type + self.vpc_id = vpc_id + if description is not None: + self.description = description + + @property + def id(self): + """Gets the id of this CreatePoolRequestBody. + + 36位标准化UUID + + :return: The id of this CreatePoolRequestBody. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreatePoolRequestBody. + + 36位标准化UUID + + :param id: The id of this CreatePoolRequestBody. + :type: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this CreatePoolRequestBody. + + WAF独享引擎组名称 + + :return: The name of this CreatePoolRequestBody. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreatePoolRequestBody. + + WAF独享引擎组名称 + + :param name: The name of this CreatePoolRequestBody. + :type: str + """ + self._name = name + + @property + def region(self): + """Gets the region of this CreatePoolRequestBody. + + 标准化region编号 + + :return: The region of this CreatePoolRequestBody. + :rtype: str + """ + return self._region + + @region.setter + def region(self, region): + """Sets the region of this CreatePoolRequestBody. + + 标准化region编号 + + :param region: The region of this CreatePoolRequestBody. + :type: str + """ + self._region = region + + @property + def type(self): + """Gets the type of this CreatePoolRequestBody. + + WAF独享引擎组类型 + + :return: The type of this CreatePoolRequestBody. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CreatePoolRequestBody. + + WAF独享引擎组类型 + + :param type: The type of this CreatePoolRequestBody. + :type: str + """ + self._type = type + + @property + def vpc_id(self): + """Gets the vpc_id of this CreatePoolRequestBody. + + 关联的VPC ID + + :return: The vpc_id of this CreatePoolRequestBody. + :rtype: str + """ + return self._vpc_id + + @vpc_id.setter + def vpc_id(self, vpc_id): + """Sets the vpc_id of this CreatePoolRequestBody. + + 关联的VPC ID + + :param vpc_id: The vpc_id of this CreatePoolRequestBody. + :type: str + """ + self._vpc_id = vpc_id + + @property + def description(self): + """Gets the description of this CreatePoolRequestBody. + + 注释 + + :return: The description of this CreatePoolRequestBody. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreatePoolRequestBody. + + 注释 + + :param description: The description of this CreatePoolRequestBody. + :type: 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatePoolRequestBody): + 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-waf/huaweicloudsdkwaf/v1/model/create_pool_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_pool_response.py new file mode 100644 index 0000000000..d98d2775f1 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_pool_response.py @@ -0,0 +1,245 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class CreatePoolResponse(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', + 'name': 'str', + 'region': 'str', + 'type': 'str', + 'vpc_id': 'str', + 'description': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'region': 'region', + 'type': 'type', + 'vpc_id': 'vpc_id', + 'description': 'description' + } + + def __init__(self, id=None, name=None, region=None, type=None, vpc_id=None, description=None): + """CreatePoolResponse - a model defined in huaweicloud sdk""" + + super(CreatePoolResponse, self).__init__() + + self._id = None + self._name = None + self._region = None + self._type = None + self._vpc_id = None + self._description = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if region is not None: + self.region = region + if type is not None: + self.type = type + if vpc_id is not None: + self.vpc_id = vpc_id + if description is not None: + self.description = description + + @property + def id(self): + """Gets the id of this CreatePoolResponse. + + 36位标准化UUID + + :return: The id of this CreatePoolResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreatePoolResponse. + + 36位标准化UUID + + :param id: The id of this CreatePoolResponse. + :type: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this CreatePoolResponse. + + WAF独享引擎组名称 + + :return: The name of this CreatePoolResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreatePoolResponse. + + WAF独享引擎组名称 + + :param name: The name of this CreatePoolResponse. + :type: str + """ + self._name = name + + @property + def region(self): + """Gets the region of this CreatePoolResponse. + + 标准化region编号 + + :return: The region of this CreatePoolResponse. + :rtype: str + """ + return self._region + + @region.setter + def region(self, region): + """Sets the region of this CreatePoolResponse. + + 标准化region编号 + + :param region: The region of this CreatePoolResponse. + :type: str + """ + self._region = region + + @property + def type(self): + """Gets the type of this CreatePoolResponse. + + WAF独享引擎组类型 + + :return: The type of this CreatePoolResponse. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CreatePoolResponse. + + WAF独享引擎组类型 + + :param type: The type of this CreatePoolResponse. + :type: str + """ + self._type = type + + @property + def vpc_id(self): + """Gets the vpc_id of this CreatePoolResponse. + + 关联的VPC ID + + :return: The vpc_id of this CreatePoolResponse. + :rtype: str + """ + return self._vpc_id + + @vpc_id.setter + def vpc_id(self, vpc_id): + """Sets the vpc_id of this CreatePoolResponse. + + 关联的VPC ID + + :param vpc_id: The vpc_id of this CreatePoolResponse. + :type: str + """ + self._vpc_id = vpc_id + + @property + def description(self): + """Gets the description of this CreatePoolResponse. + + 注释 + + :return: The description of this CreatePoolResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreatePoolResponse. + + 注释 + + :param description: The description of this CreatePoolResponse. + :type: 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatePoolResponse): + 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-waf/huaweicloudsdkwaf/v1/model/create_premium_host_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_premium_host_request.py new file mode 100644 index 0000000000..4fd715baca --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_premium_host_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreatePremiumHostRequest: + + + """ + 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': 'CreatePremiumHostRequestBody' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreatePremiumHostRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreatePremiumHostRequest. + + + :return: The body of this CreatePremiumHostRequest. + :rtype: CreatePremiumHostRequestBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreatePremiumHostRequest. + + + :param body: The body of this CreatePremiumHostRequest. + :type: CreatePremiumHostRequestBody + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatePremiumHostRequest): + 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-waf/huaweicloudsdkwaf/v1/model/create_premium_host_request_body.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_premium_host_request_body.py new file mode 100644 index 0000000000..b071d2bdbe --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_premium_host_request_body.py @@ -0,0 +1,298 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CreatePremiumHostRequestBody: + + + """ + 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 = { + 'hostname': 'str', + 'proxy': 'bool', + 'policyid': 'str', + 'certificateid': 'str', + 'certificatename': 'str', + 'server': 'list[PremiumWafServer]', + 'mode': 'str', + 'pool_ids': 'list[str]' + } + + attribute_map = { + 'hostname': 'hostname', + 'proxy': 'proxy', + 'policyid': 'policyid', + 'certificateid': 'certificateid', + 'certificatename': 'certificatename', + 'server': 'server', + 'mode': 'mode', + 'pool_ids': 'pool_ids' + } + + def __init__(self, hostname=None, proxy=None, policyid=None, certificateid=None, certificatename=None, server=None, mode=None, pool_ids=None): + """CreatePremiumHostRequestBody - a model defined in huaweicloud sdk""" + + + + self._hostname = None + self._proxy = None + self._policyid = None + self._certificateid = None + self._certificatename = None + self._server = None + self._mode = None + self._pool_ids = None + self.discriminator = None + + self.hostname = hostname + if proxy is not None: + self.proxy = proxy + if policyid is not None: + self.policyid = policyid + if certificateid is not None: + self.certificateid = certificateid + if certificatename is not None: + self.certificatename = certificatename + if server is not None: + self.server = server + if mode is not None: + self.mode = mode + if pool_ids is not None: + self.pool_ids = pool_ids + + @property + def hostname(self): + """Gets the hostname of this CreatePremiumHostRequestBody. + + 防护域名或IP(可带端口) + + :return: The hostname of this CreatePremiumHostRequestBody. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """Sets the hostname of this CreatePremiumHostRequestBody. + + 防护域名或IP(可带端口) + + :param hostname: The hostname of this CreatePremiumHostRequestBody. + :type: str + """ + self._hostname = hostname + + @property + def proxy(self): + """Gets the proxy of this CreatePremiumHostRequestBody. + + 是否使用代理 + + :return: The proxy of this CreatePremiumHostRequestBody. + :rtype: bool + """ + return self._proxy + + @proxy.setter + def proxy(self, proxy): + """Sets the proxy of this CreatePremiumHostRequestBody. + + 是否使用代理 + + :param proxy: The proxy of this CreatePremiumHostRequestBody. + :type: bool + """ + self._proxy = proxy + + @property + def policyid(self): + """Gets the policyid of this CreatePremiumHostRequestBody. + + 防护域名初始绑定的策略ID + + :return: The policyid of this CreatePremiumHostRequestBody. + :rtype: str + """ + return self._policyid + + @policyid.setter + def policyid(self, policyid): + """Sets the policyid of this CreatePremiumHostRequestBody. + + 防护域名初始绑定的策略ID + + :param policyid: The policyid of this CreatePremiumHostRequestBody. + :type: str + """ + self._policyid = policyid + + @property + def certificateid(self): + """Gets the certificateid of this CreatePremiumHostRequestBody. + + 证书ID + + :return: The certificateid of this CreatePremiumHostRequestBody. + :rtype: str + """ + return self._certificateid + + @certificateid.setter + def certificateid(self, certificateid): + """Sets the certificateid of this CreatePremiumHostRequestBody. + + 证书ID + + :param certificateid: The certificateid of this CreatePremiumHostRequestBody. + :type: str + """ + self._certificateid = certificateid + + @property + def certificatename(self): + """Gets the certificatename of this CreatePremiumHostRequestBody. + + 证书名称 + + :return: The certificatename of this CreatePremiumHostRequestBody. + :rtype: str + """ + return self._certificatename + + @certificatename.setter + def certificatename(self, certificatename): + """Sets the certificatename of this CreatePremiumHostRequestBody. + + 证书名称 + + :param certificatename: The certificatename of this CreatePremiumHostRequestBody. + :type: str + """ + self._certificatename = certificatename + + @property + def server(self): + """Gets the server of this CreatePremiumHostRequestBody. + + 独享模式回源服务器配置 + + :return: The server of this CreatePremiumHostRequestBody. + :rtype: list[PremiumWafServer] + """ + return self._server + + @server.setter + def server(self, server): + """Sets the server of this CreatePremiumHostRequestBody. + + 独享模式回源服务器配置 + + :param server: The server of this CreatePremiumHostRequestBody. + :type: list[PremiumWafServer] + """ + self._server = server + + @property + def mode(self): + """Gets the mode of this CreatePremiumHostRequestBody. + + 独享模式特殊域名模式(仅特殊模式需要,如elb) + + :return: The mode of this CreatePremiumHostRequestBody. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this CreatePremiumHostRequestBody. + + 独享模式特殊域名模式(仅特殊模式需要,如elb) + + :param mode: The mode of this CreatePremiumHostRequestBody. + :type: str + """ + self._mode = mode + + @property + def pool_ids(self): + """Gets the pool_ids of this CreatePremiumHostRequestBody. + + 域名关联的组ID(仅特殊模式需要,如elb) + + :return: The pool_ids of this CreatePremiumHostRequestBody. + :rtype: list[str] + """ + return self._pool_ids + + @pool_ids.setter + def pool_ids(self, pool_ids): + """Sets the pool_ids of this CreatePremiumHostRequestBody. + + 域名关联的组ID(仅特殊模式需要,如elb) + + :param pool_ids: The pool_ids of this CreatePremiumHostRequestBody. + :type: list[str] + """ + self._pool_ids = pool_ids + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatePremiumHostRequestBody): + 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-waf/huaweicloudsdkwaf/v1/model/create_premium_host_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_premium_host_response.py new file mode 100644 index 0000000000..587b6e0c99 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_premium_host_response.py @@ -0,0 +1,700 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class CreatePremiumHostResponse(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', + 'policyid': 'str', + 'hostname': 'str', + 'domainid': 'str', + 'project_id': 'str', + 'access_code': 'str', + 'protocol': 'str', + 'server': 'list[PremiumWafServer]', + 'certificateid': 'str', + 'certificatename': 'str', + 'tls': 'str', + 'cipher': 'str', + 'proxy': 'bool', + 'locked': 'int', + 'protect_status': 'int', + 'access_status': 'int', + 'timestamp': 'int', + 'block_page': 'BlockPage', + 'extend': 'dict(str, str)', + 'traffic_mark': 'TrafficMark', + 'flag': 'dict(str, str)', + 'mode': 'str', + 'pool_ids': 'list[str]' + } + + attribute_map = { + 'id': 'id', + 'policyid': 'policyid', + 'hostname': 'hostname', + 'domainid': 'domainid', + 'project_id': 'project_id', + 'access_code': 'access_code', + 'protocol': 'protocol', + 'server': 'server', + 'certificateid': 'certificateid', + 'certificatename': 'certificatename', + 'tls': 'tls', + 'cipher': 'cipher', + 'proxy': 'proxy', + 'locked': 'locked', + 'protect_status': 'protect_status', + 'access_status': 'access_status', + 'timestamp': 'timestamp', + 'block_page': 'block_page', + 'extend': 'extend', + 'traffic_mark': 'traffic_mark', + 'flag': 'flag', + 'mode': 'mode', + 'pool_ids': 'pool_ids' + } + + def __init__(self, id=None, policyid=None, hostname=None, domainid=None, project_id=None, access_code=None, protocol=None, server=None, certificateid=None, certificatename=None, tls=None, cipher=None, proxy=None, locked=None, protect_status=None, access_status=None, timestamp=None, block_page=None, extend=None, traffic_mark=None, flag=None, mode=None, pool_ids=None): + """CreatePremiumHostResponse - a model defined in huaweicloud sdk""" + + super(CreatePremiumHostResponse, self).__init__() + + self._id = None + self._policyid = None + self._hostname = None + self._domainid = None + self._project_id = None + self._access_code = None + self._protocol = None + self._server = None + self._certificateid = None + self._certificatename = None + self._tls = None + self._cipher = None + self._proxy = None + self._locked = None + self._protect_status = None + self._access_status = None + self._timestamp = None + self._block_page = None + self._extend = None + self._traffic_mark = None + self._flag = None + self._mode = None + self._pool_ids = None + self.discriminator = None + + if id is not None: + self.id = id + if policyid is not None: + self.policyid = policyid + if hostname is not None: + self.hostname = hostname + if domainid is not None: + self.domainid = domainid + if project_id is not None: + self.project_id = project_id + if access_code is not None: + self.access_code = access_code + if protocol is not None: + self.protocol = protocol + if server is not None: + self.server = server + if certificateid is not None: + self.certificateid = certificateid + if certificatename is not None: + self.certificatename = certificatename + if tls is not None: + self.tls = tls + if cipher is not None: + self.cipher = cipher + if proxy is not None: + self.proxy = proxy + if locked is not None: + self.locked = locked + if protect_status is not None: + self.protect_status = protect_status + if access_status is not None: + self.access_status = access_status + if timestamp is not None: + self.timestamp = timestamp + if block_page is not None: + self.block_page = block_page + if extend is not None: + self.extend = extend + if traffic_mark is not None: + self.traffic_mark = traffic_mark + if flag is not None: + self.flag = flag + if mode is not None: + self.mode = mode + if pool_ids is not None: + self.pool_ids = pool_ids + + @property + def id(self): + """Gets the id of this CreatePremiumHostResponse. + + 域名id + + :return: The id of this CreatePremiumHostResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreatePremiumHostResponse. + + 域名id + + :param id: The id of this CreatePremiumHostResponse. + :type: str + """ + self._id = id + + @property + def policyid(self): + """Gets the policyid of this CreatePremiumHostResponse. + + 策略id + + :return: The policyid of this CreatePremiumHostResponse. + :rtype: str + """ + return self._policyid + + @policyid.setter + def policyid(self, policyid): + """Sets the policyid of this CreatePremiumHostResponse. + + 策略id + + :param policyid: The policyid of this CreatePremiumHostResponse. + :type: str + """ + self._policyid = policyid + + @property + def hostname(self): + """Gets the hostname of this CreatePremiumHostResponse. + + 创建的云模式防护域名 + + :return: The hostname of this CreatePremiumHostResponse. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """Sets the hostname of this CreatePremiumHostResponse. + + 创建的云模式防护域名 + + :param hostname: The hostname of this CreatePremiumHostResponse. + :type: str + """ + self._hostname = hostname + + @property + def domainid(self): + """Gets the domainid of this CreatePremiumHostResponse. + + 用户Domain ID + + :return: The domainid of this CreatePremiumHostResponse. + :rtype: str + """ + return self._domainid + + @domainid.setter + def domainid(self, domainid): + """Sets the domainid of this CreatePremiumHostResponse. + + 用户Domain ID + + :param domainid: The domainid of this CreatePremiumHostResponse. + :type: str + """ + self._domainid = domainid + + @property + def project_id(self): + """Gets the project_id of this CreatePremiumHostResponse. + + 用户Project ID + + :return: The project_id of this CreatePremiumHostResponse. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CreatePremiumHostResponse. + + 用户Project ID + + :param project_id: The project_id of this CreatePremiumHostResponse. + :type: str + """ + self._project_id = project_id + + @property + def access_code(self): + """Gets the access_code of this CreatePremiumHostResponse. + + cname + + :return: The access_code of this CreatePremiumHostResponse. + :rtype: str + """ + return self._access_code + + @access_code.setter + def access_code(self, access_code): + """Sets the access_code of this CreatePremiumHostResponse. + + cname + + :param access_code: The access_code of this CreatePremiumHostResponse. + :type: str + """ + self._access_code = access_code + + @property + def protocol(self): + """Gets the protocol of this CreatePremiumHostResponse. + + 返回的客户端协议类型 + + :return: The protocol of this CreatePremiumHostResponse. + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this CreatePremiumHostResponse. + + 返回的客户端协议类型 + + :param protocol: The protocol of this CreatePremiumHostResponse. + :type: str + """ + self._protocol = protocol + + @property + def server(self): + """Gets the server of this CreatePremiumHostResponse. + + 源站信息 + + :return: The server of this CreatePremiumHostResponse. + :rtype: list[PremiumWafServer] + """ + return self._server + + @server.setter + def server(self, server): + """Sets the server of this CreatePremiumHostResponse. + + 源站信息 + + :param server: The server of this CreatePremiumHostResponse. + :type: list[PremiumWafServer] + """ + self._server = server + + @property + def certificateid(self): + """Gets the certificateid of this CreatePremiumHostResponse. + + 返回的证书id + + :return: The certificateid of this CreatePremiumHostResponse. + :rtype: str + """ + return self._certificateid + + @certificateid.setter + def certificateid(self, certificateid): + """Sets the certificateid of this CreatePremiumHostResponse. + + 返回的证书id + + :param certificateid: The certificateid of this CreatePremiumHostResponse. + :type: str + """ + self._certificateid = certificateid + + @property + def certificatename(self): + """Gets the certificatename of this CreatePremiumHostResponse. + + 证书名称 + + :return: The certificatename of this CreatePremiumHostResponse. + :rtype: str + """ + return self._certificatename + + @certificatename.setter + def certificatename(self, certificatename): + """Sets the certificatename of this CreatePremiumHostResponse. + + 证书名称 + + :param certificatename: The certificatename of this CreatePremiumHostResponse. + :type: str + """ + self._certificatename = certificatename + + @property + def tls(self): + """Gets the tls of this CreatePremiumHostResponse. + + 支持最低的TLS版本 + + :return: The tls of this CreatePremiumHostResponse. + :rtype: str + """ + return self._tls + + @tls.setter + def tls(self, tls): + """Sets the tls of this CreatePremiumHostResponse. + + 支持最低的TLS版本 + + :param tls: The tls of this CreatePremiumHostResponse. + :type: str + """ + self._tls = tls + + @property + def cipher(self): + """Gets the cipher of this CreatePremiumHostResponse. + + 加密套件代码 + + :return: The cipher of this CreatePremiumHostResponse. + :rtype: str + """ + return self._cipher + + @cipher.setter + def cipher(self, cipher): + """Sets the cipher of this CreatePremiumHostResponse. + + 加密套件代码 + + :param cipher: The cipher of this CreatePremiumHostResponse. + :type: str + """ + self._cipher = cipher + + @property + def proxy(self): + """Gets the proxy of this CreatePremiumHostResponse. + + 是否开启了代理 + + :return: The proxy of this CreatePremiumHostResponse. + :rtype: bool + """ + return self._proxy + + @proxy.setter + def proxy(self, proxy): + """Sets the proxy of this CreatePremiumHostResponse. + + 是否开启了代理 + + :param proxy: The proxy of this CreatePremiumHostResponse. + :type: bool + """ + self._proxy = proxy + + @property + def locked(self): + """Gets the locked of this CreatePremiumHostResponse. + + 锁定状态 + + :return: The locked of this CreatePremiumHostResponse. + :rtype: int + """ + return self._locked + + @locked.setter + def locked(self, locked): + """Sets the locked of this CreatePremiumHostResponse. + + 锁定状态 + + :param locked: The locked of this CreatePremiumHostResponse. + :type: int + """ + self._locked = locked + + @property + def protect_status(self): + """Gets the protect_status of this CreatePremiumHostResponse. + + 防护状态 + + :return: The protect_status of this CreatePremiumHostResponse. + :rtype: int + """ + return self._protect_status + + @protect_status.setter + def protect_status(self, protect_status): + """Sets the protect_status of this CreatePremiumHostResponse. + + 防护状态 + + :param protect_status: The protect_status of this CreatePremiumHostResponse. + :type: int + """ + self._protect_status = protect_status + + @property + def access_status(self): + """Gets the access_status of this CreatePremiumHostResponse. + + 接入状态 + + :return: The access_status of this CreatePremiumHostResponse. + :rtype: int + """ + return self._access_status + + @access_status.setter + def access_status(self, access_status): + """Sets the access_status of this CreatePremiumHostResponse. + + 接入状态 + + :param access_status: The access_status of this CreatePremiumHostResponse. + :type: int + """ + self._access_status = access_status + + @property + def timestamp(self): + """Gets the timestamp of this CreatePremiumHostResponse. + + 创建防护域名的时间 + + :return: The timestamp of this CreatePremiumHostResponse. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this CreatePremiumHostResponse. + + 创建防护域名的时间 + + :param timestamp: The timestamp of this CreatePremiumHostResponse. + :type: int + """ + self._timestamp = timestamp + + @property + def block_page(self): + """Gets the block_page of this CreatePremiumHostResponse. + + + :return: The block_page of this CreatePremiumHostResponse. + :rtype: BlockPage + """ + return self._block_page + + @block_page.setter + def block_page(self, block_page): + """Sets the block_page of this CreatePremiumHostResponse. + + + :param block_page: The block_page of this CreatePremiumHostResponse. + :type: BlockPage + """ + self._block_page = block_page + + @property + def extend(self): + """Gets the extend of this CreatePremiumHostResponse. + + 可扩展属性 + + :return: The extend of this CreatePremiumHostResponse. + :rtype: dict(str, str) + """ + return self._extend + + @extend.setter + def extend(self, extend): + """Sets the extend of this CreatePremiumHostResponse. + + 可扩展属性 + + :param extend: The extend of this CreatePremiumHostResponse. + :type: dict(str, str) + """ + self._extend = extend + + @property + def traffic_mark(self): + """Gets the traffic_mark of this CreatePremiumHostResponse. + + + :return: The traffic_mark of this CreatePremiumHostResponse. + :rtype: TrafficMark + """ + return self._traffic_mark + + @traffic_mark.setter + def traffic_mark(self, traffic_mark): + """Sets the traffic_mark of this CreatePremiumHostResponse. + + + :param traffic_mark: The traffic_mark of this CreatePremiumHostResponse. + :type: TrafficMark + """ + self._traffic_mark = traffic_mark + + @property + def flag(self): + """Gets the flag of this CreatePremiumHostResponse. + + 域名特殊标记 + + :return: The flag of this CreatePremiumHostResponse. + :rtype: dict(str, str) + """ + return self._flag + + @flag.setter + def flag(self, flag): + """Sets the flag of this CreatePremiumHostResponse. + + 域名特殊标记 + + :param flag: The flag of this CreatePremiumHostResponse. + :type: dict(str, str) + """ + self._flag = flag + + @property + def mode(self): + """Gets the mode of this CreatePremiumHostResponse. + + 独享模式特殊域名模式(仅特殊模式需要,如elb) + + :return: The mode of this CreatePremiumHostResponse. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this CreatePremiumHostResponse. + + 独享模式特殊域名模式(仅特殊模式需要,如elb) + + :param mode: The mode of this CreatePremiumHostResponse. + :type: str + """ + self._mode = mode + + @property + def pool_ids(self): + """Gets the pool_ids of this CreatePremiumHostResponse. + + 域名关联的组ID(仅特殊模式需要,如elb) + + :return: The pool_ids of this CreatePremiumHostResponse. + :rtype: list[str] + """ + return self._pool_ids + + @pool_ids.setter + def pool_ids(self, pool_ids): + """Sets the pool_ids of this CreatePremiumHostResponse. + + 域名关联的组ID(仅特殊模式需要,如elb) + + :param pool_ids: The pool_ids of this CreatePremiumHostResponse. + :type: list[str] + """ + self._pool_ids = pool_ids + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatePremiumHostResponse): + 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-waf/huaweicloudsdkwaf/v1/model/custom_action.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/custom_action.py new file mode 100644 index 0000000000..03a6481c68 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/custom_action.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CustomAction: + + + """ + 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): + """CustomAction - a model defined in huaweicloud sdk""" + + + + self._category = None + self.discriminator = None + + if category is not None: + self.category = category + + @property + def category(self): + """Gets the category of this CustomAction. + + 操作 + + :return: The category of this CustomAction. + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this CustomAction. + + 操作 + + :param category: The category of this CustomAction. + :type: 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CustomAction): + 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-waf/huaweicloudsdkwaf/v1/model/custom_conditions.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/custom_conditions.py new file mode 100644 index 0000000000..f9bac5465d --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/custom_conditions.py @@ -0,0 +1,218 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CustomConditions: + + + """ + 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': 'int', + 'contents': 'list[str]', + 'value_list_id': 'str' + } + + attribute_map = { + 'category': 'category', + 'index': 'index', + 'logic': 'logic', + 'contents': 'contents', + 'value_list_id': 'value_list_id' + } + + def __init__(self, category=None, index=None, logic=None, contents=None, value_list_id=None): + """CustomConditions - a model defined in huaweicloud sdk""" + + + + self._category = None + self._index = None + self._logic = None + self._contents = None + self._value_list_id = None + self.discriminator = None + + if category is not None: + self.category = category + if index is not None: + self.index = index + if logic is not None: + self.logic = logic + if contents is not None: + self.contents = contents + if value_list_id is not None: + self.value_list_id = value_list_id + + @property + def category(self): + """Gets the category of this CustomConditions. + + 条件类型 固定值path、user-agent、ip、params、cookie、referer、header + + :return: The category of this CustomConditions. + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this CustomConditions. + + 条件类型 固定值path、user-agent、ip、params、cookie、referer、header + + :param category: The category of this CustomConditions. + :type: str + """ + self._category = category + + @property + def index(self): + """Gets the index of this CustomConditions. + + 当“category”为“cookie”时,index表示cookie name。当“category”为“params”时,index表示param name。当“category”为“header”时,index表示header中的选项。 + + :return: The index of this CustomConditions. + :rtype: str + """ + return self._index + + @index.setter + def index(self, index): + """Sets the index of this CustomConditions. + + 当“category”为“cookie”时,index表示cookie name。当“category”为“params”时,index表示param name。当“category”为“header”时,index表示header中的选项。 + + :param index: The index of this CustomConditions. + :type: str + """ + self._index = index + + @property + def logic(self): + """Gets the logic of this CustomConditions. + + “contain”,“not_contain”,“equal”,“not_equal”,“prefix”,“not_prefix”,“suffix”,“not_suffix”分别代表包含、不包含、等于、不等于、前缀为、前缀不为、后缀为、后缀不为。当条件类型“category”为ip时,“logic”只能为“equal”或者“not_equal”。 + + :return: The logic of this CustomConditions. + :rtype: int + """ + return self._logic + + @logic.setter + def logic(self, logic): + """Sets the logic of this CustomConditions. + + “contain”,“not_contain”,“equal”,“not_equal”,“prefix”,“not_prefix”,“suffix”,“not_suffix”分别代表包含、不包含、等于、不等于、前缀为、前缀不为、后缀为、后缀不为。当条件类型“category”为ip时,“logic”只能为“equal”或者“not_equal”。 + + :param logic: The logic of this CustomConditions. + :type: int + """ + self._logic = logic + + @property + def contents(self): + """Gets the contents of this CustomConditions. + + 条件匹配的内容 + + :return: The contents of this CustomConditions. + :rtype: list[str] + """ + return self._contents + + @contents.setter + def contents(self, contents): + """Sets the contents of this CustomConditions. + + 条件匹配的内容 + + :param contents: The contents of this CustomConditions. + :type: list[str] + """ + self._contents = contents + + @property + def value_list_id(self): + """Gets the value_list_id of this CustomConditions. + + 引用表的id + + :return: The value_list_id of this CustomConditions. + :rtype: str + """ + return self._value_list_id + + @value_list_id.setter + def value_list_id(self, value_list_id): + """Sets the value_list_id of this CustomConditions. + + 引用表的id + + :param value_list_id: The value_list_id of this CustomConditions. + :type: str + """ + self._value_list_id = value_list_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CustomConditions): + 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-waf/huaweicloudsdkwaf/v1/model/custom_page.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/custom_page.py new file mode 100644 index 0000000000..0ad38390fc --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/custom_page.py @@ -0,0 +1,161 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CustomPage: + + + """ + 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 = { + 'status_code': 'str', + 'content_type': 'str', + 'content': 'str' + } + + attribute_map = { + 'status_code': 'status_code', + 'content_type': 'content_type', + 'content': 'content' + } + + def __init__(self, status_code=None, content_type=None, content=None): + """CustomPage - a model defined in huaweicloud sdk""" + + + + self._status_code = None + self._content_type = None + self._content = None + self.discriminator = None + + self.status_code = status_code + self.content_type = content_type + self.content = content + + @property + def status_code(self): + """Gets the status_code of this CustomPage. + + 返回状态码 + + :return: The status_code of this CustomPage. + :rtype: str + """ + return self._status_code + + @status_code.setter + def status_code(self, status_code): + """Sets the status_code of this CustomPage. + + 返回状态码 + + :param status_code: The status_code of this CustomPage. + :type: str + """ + self._status_code = status_code + + @property + def content_type(self): + """Gets the content_type of this CustomPage. + + 页面内容类型 + + :return: The content_type of this CustomPage. + :rtype: str + """ + return self._content_type + + @content_type.setter + def content_type(self, content_type): + """Sets the content_type of this CustomPage. + + 页面内容类型 + + :param content_type: The content_type of this CustomPage. + :type: str + """ + self._content_type = content_type + + @property + def content(self): + """Gets the content of this CustomPage. + + 页面内容 + + :return: The content of this CustomPage. + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this CustomPage. + + 页面内容 + + :param content: The content of this CustomPage. + :type: 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CustomPage): + 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-waf/huaweicloudsdkwaf/v1/model/custom_post_body.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/custom_post_body.py new file mode 100644 index 0000000000..c8926ca3c0 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/custom_post_body.py @@ -0,0 +1,351 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CustomPostBody: + + + """ + 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', + 'policyid': 'str', + 'action_mode': 'bool', + 'name': 'str', + 'time': 'bool', + 'start': 'int', + 'terminal': 'int', + 'conditions': 'list[CustomConditions]', + 'action': 'CustomAction', + 'priority': 'int' + } + + attribute_map = { + 'id': 'id', + 'policyid': 'policyid', + 'action_mode': 'action_mode', + 'name': 'name', + 'time': 'time', + 'start': 'start', + 'terminal': 'terminal', + 'conditions': 'conditions', + 'action': 'action', + 'priority': 'priority' + } + + def __init__(self, id=None, policyid=None, action_mode=None, name=None, time=None, start=None, terminal=None, conditions=None, action=None, priority=None): + """CustomPostBody - a model defined in huaweicloud sdk""" + + + + self._id = None + self._policyid = None + self._action_mode = None + self._name = None + self._time = None + self._start = None + self._terminal = None + self._conditions = None + self._action = None + self._priority = None + self.discriminator = None + + if id is not None: + self.id = id + if policyid is not None: + self.policyid = policyid + if action_mode is not None: + self.action_mode = action_mode + if name is not None: + self.name = name + if time is not None: + self.time = time + if start is not None: + self.start = start + if terminal is not None: + self.terminal = terminal + if conditions is not None: + self.conditions = conditions + if action is not None: + self.action = action + if priority is not None: + self.priority = priority + + @property + def id(self): + """Gets the id of this CustomPostBody. + + 规则id + + :return: The id of this CustomPostBody. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CustomPostBody. + + 规则id + + :param id: The id of this CustomPostBody. + :type: str + """ + self._id = id + + @property + def policyid(self): + """Gets the policyid of this CustomPostBody. + + 策略id + + :return: The policyid of this CustomPostBody. + :rtype: str + """ + return self._policyid + + @policyid.setter + def policyid(self, policyid): + """Sets the policyid of this CustomPostBody. + + 策略id + + :param policyid: The policyid of this CustomPostBody. + :type: str + """ + self._policyid = policyid + + @property + def action_mode(self): + """Gets the action_mode of this CustomPostBody. + + 攻击惩罚 + + :return: The action_mode of this CustomPostBody. + :rtype: bool + """ + return self._action_mode + + @action_mode.setter + def action_mode(self, action_mode): + """Sets the action_mode of this CustomPostBody. + + 攻击惩罚 + + :param action_mode: The action_mode of this CustomPostBody. + :type: bool + """ + self._action_mode = action_mode + + @property + def name(self): + """Gets the name of this CustomPostBody. + + 自定义规则的名称 + + :return: The name of this CustomPostBody. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CustomPostBody. + + 自定义规则的名称 + + :param name: The name of this CustomPostBody. + :type: str + """ + self._name = name + + @property + def time(self): + """Gets the time of this CustomPostBody. + + 精准防护规则生效时间 + + :return: The time of this CustomPostBody. + :rtype: bool + """ + return self._time + + @time.setter + def time(self, time): + """Sets the time of this CustomPostBody. + + 精准防护规则生效时间 + + :param time: The time of this CustomPostBody. + :type: bool + """ + self._time = time + + @property + def start(self): + """Gets the start of this CustomPostBody. + + 精准防护规则生效的起始时间 + + :return: The start of this CustomPostBody. + :rtype: int + """ + return self._start + + @start.setter + def start(self, start): + """Sets the start of this CustomPostBody. + + 精准防护规则生效的起始时间 + + :param start: The start of this CustomPostBody. + :type: int + """ + self._start = start + + @property + def terminal(self): + """Gets the terminal of this CustomPostBody. + + 精准防护规则生效的终止时间 + + :return: The terminal of this CustomPostBody. + :rtype: int + """ + return self._terminal + + @terminal.setter + def terminal(self, terminal): + """Sets the terminal of this CustomPostBody. + + 精准防护规则生效的终止时间 + + :param terminal: The terminal of this CustomPostBody. + :type: int + """ + self._terminal = terminal + + @property + def conditions(self): + """Gets the conditions of this CustomPostBody. + + 匹配条件列表 + + :return: The conditions of this CustomPostBody. + :rtype: list[CustomConditions] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """Sets the conditions of this CustomPostBody. + + 匹配条件列表 + + :param conditions: The conditions of this CustomPostBody. + :type: list[CustomConditions] + """ + self._conditions = conditions + + @property + def action(self): + """Gets the action of this CustomPostBody. + + + :return: The action of this CustomPostBody. + :rtype: CustomAction + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this CustomPostBody. + + + :param action: The action of this CustomPostBody. + :type: CustomAction + """ + self._action = action + + @property + def priority(self): + """Gets the priority of this CustomPostBody. + + 优先级(0-1000的整数) + + :return: The priority of this CustomPostBody. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this CustomPostBody. + + 优先级(0-1000的整数) + + :param priority: The priority of this CustomPostBody. + :type: int + """ + self._priority = priority + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CustomPostBody): + 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-waf/huaweicloudsdkwaf/v1/model/delete_anticrawler_rule_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_anticrawler_rule_request.py new file mode 100644 index 0000000000..d0a0608106 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_anticrawler_rule_request.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class DeleteAnticrawlerRuleRequest: + + + """ + 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', + 'rule_id': 'str' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'rule_id': 'rule_id' + } + + def __init__(self, policy_id=None, rule_id=None): + """DeleteAnticrawlerRuleRequest - a model defined in huaweicloud sdk""" + + + + self._policy_id = None + self._rule_id = None + self.discriminator = None + + self.policy_id = policy_id + self.rule_id = rule_id + + @property + def policy_id(self): + """Gets the policy_id of this DeleteAnticrawlerRuleRequest. + + policyid + + :return: The policy_id of this DeleteAnticrawlerRuleRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this DeleteAnticrawlerRuleRequest. + + policyid + + :param policy_id: The policy_id of this DeleteAnticrawlerRuleRequest. + :type: str + """ + self._policy_id = policy_id + + @property + def rule_id(self): + """Gets the rule_id of this DeleteAnticrawlerRuleRequest. + + anticrawlerRuleId + + :return: The rule_id of this DeleteAnticrawlerRuleRequest. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this DeleteAnticrawlerRuleRequest. + + anticrawlerRuleId + + :param rule_id: The rule_id of this DeleteAnticrawlerRuleRequest. + :type: str + """ + self._rule_id = rule_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteAnticrawlerRuleRequest): + 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-waf/huaweicloudsdkwaf/v1/model/delete_anticrawler_rule_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_anticrawler_rule_response.py new file mode 100644 index 0000000000..a68caa2811 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_anticrawler_rule_response.py @@ -0,0 +1,245 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class DeleteAnticrawlerRuleResponse(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', + 'url': 'str', + 'logic': 'int', + 'name': 'str', + 'type': 'str', + 'timestamp': 'int' + } + + attribute_map = { + 'id': 'id', + 'url': 'url', + 'logic': 'logic', + 'name': 'name', + 'type': 'type', + 'timestamp': 'timestamp' + } + + def __init__(self, id=None, url=None, logic=None, name=None, type=None, timestamp=None): + """DeleteAnticrawlerRuleResponse - a model defined in huaweicloud sdk""" + + super(DeleteAnticrawlerRuleResponse, self).__init__() + + self._id = None + self._url = None + self._logic = None + self._name = None + self._type = None + self._timestamp = None + self.discriminator = None + + if id is not None: + self.id = id + if url is not None: + self.url = url + if logic is not None: + self.logic = logic + if name is not None: + self.name = name + if type is not None: + self.type = type + if timestamp is not None: + self.timestamp = timestamp + + @property + def id(self): + """Gets the id of this DeleteAnticrawlerRuleResponse. + + 规则id + + :return: The id of this DeleteAnticrawlerRuleResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this DeleteAnticrawlerRuleResponse. + + 规则id + + :param id: The id of this DeleteAnticrawlerRuleResponse. + :type: str + """ + self._id = id + + @property + def url(self): + """Gets the url of this DeleteAnticrawlerRuleResponse. + + 规则应用的url + + :return: The url of this DeleteAnticrawlerRuleResponse. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this DeleteAnticrawlerRuleResponse. + + 规则应用的url + + :param url: The url of this DeleteAnticrawlerRuleResponse. + :type: str + """ + self._url = url + + @property + def logic(self): + """Gets the logic of this DeleteAnticrawlerRuleResponse. + + 规则匹配逻辑 + + :return: The logic of this DeleteAnticrawlerRuleResponse. + :rtype: int + """ + return self._logic + + @logic.setter + def logic(self, logic): + """Sets the logic of this DeleteAnticrawlerRuleResponse. + + 规则匹配逻辑 + + :param logic: The logic of this DeleteAnticrawlerRuleResponse. + :type: int + """ + self._logic = logic + + @property + def name(self): + """Gets the name of this DeleteAnticrawlerRuleResponse. + + 规则名称 + + :return: The name of this DeleteAnticrawlerRuleResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this DeleteAnticrawlerRuleResponse. + + 规则名称 + + :param name: The name of this DeleteAnticrawlerRuleResponse. + :type: str + """ + self._name = name + + @property + def type(self): + """Gets the type of this DeleteAnticrawlerRuleResponse. + + 反爬虫类型,指定防护:anticrawler_specific_url 例外防护:anticrawler_except_url + + :return: The type of this DeleteAnticrawlerRuleResponse. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this DeleteAnticrawlerRuleResponse. + + 反爬虫类型,指定防护:anticrawler_specific_url 例外防护:anticrawler_except_url + + :param type: The type of this DeleteAnticrawlerRuleResponse. + :type: str + """ + self._type = type + + @property + def timestamp(self): + """Gets the timestamp of this DeleteAnticrawlerRuleResponse. + + 创建规则时间戳 + + :return: The timestamp of this DeleteAnticrawlerRuleResponse. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this DeleteAnticrawlerRuleResponse. + + 创建规则时间戳 + + :param timestamp: The timestamp of this DeleteAnticrawlerRuleResponse. + :type: int + """ + self._timestamp = timestamp + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteAnticrawlerRuleResponse): + 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-waf/huaweicloudsdkwaf/v1/model/delete_antileakage_rule_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_antileakage_rule_request.py new file mode 100644 index 0000000000..eb5d6dab06 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_antileakage_rule_request.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class DeleteAntileakageRuleRequest: + + + """ + 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', + 'rule_id': 'str' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'rule_id': 'rule_id' + } + + def __init__(self, policy_id=None, rule_id=None): + """DeleteAntileakageRuleRequest - a model defined in huaweicloud sdk""" + + + + self._policy_id = None + self._rule_id = None + self.discriminator = None + + self.policy_id = policy_id + self.rule_id = rule_id + + @property + def policy_id(self): + """Gets the policy_id of this DeleteAntileakageRuleRequest. + + policyid + + :return: The policy_id of this DeleteAntileakageRuleRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this DeleteAntileakageRuleRequest. + + policyid + + :param policy_id: The policy_id of this DeleteAntileakageRuleRequest. + :type: str + """ + self._policy_id = policy_id + + @property + def rule_id(self): + """Gets the rule_id of this DeleteAntileakageRuleRequest. + + antileakageRuleId + + :return: The rule_id of this DeleteAntileakageRuleRequest. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this DeleteAntileakageRuleRequest. + + antileakageRuleId + + :param rule_id: The rule_id of this DeleteAntileakageRuleRequest. + :type: str + """ + self._rule_id = rule_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteAntileakageRuleRequest): + 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-waf/huaweicloudsdkwaf/v1/model/delete_antileakage_rule_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_antileakage_rule_response.py new file mode 100644 index 0000000000..88b2435c0a --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_antileakage_rule_response.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class DeleteAntileakageRuleResponse(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 = { + 'url': 'str', + 'category': 'str', + 'contents': 'list[str]', + 'description': 'str' + } + + attribute_map = { + 'url': 'url', + 'category': 'category', + 'contents': 'contents', + 'description': 'description' + } + + def __init__(self, url=None, category=None, contents=None, description=None): + """DeleteAntileakageRuleResponse - a model defined in huaweicloud sdk""" + + super(DeleteAntileakageRuleResponse, self).__init__() + + self._url = None + self._category = None + self._contents = None + self._description = None + self.discriminator = None + + if url is not None: + self.url = url + if category is not None: + self.category = category + if contents is not None: + self.contents = contents + if description is not None: + self.description = description + + @property + def url(self): + """Gets the url of this DeleteAntileakageRuleResponse. + + 规则应用的url + + :return: The url of this DeleteAntileakageRuleResponse. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this DeleteAntileakageRuleResponse. + + 规则应用的url + + :param url: The url of this DeleteAntileakageRuleResponse. + :type: str + """ + self._url = url + + @property + def category(self): + """Gets the category of this DeleteAntileakageRuleResponse. + + 类别(响应码:code,敏感信息:sensitive) + + :return: The category of this DeleteAntileakageRuleResponse. + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this DeleteAntileakageRuleResponse. + + 类别(响应码:code,敏感信息:sensitive) + + :param category: The category of this DeleteAntileakageRuleResponse. + :type: str + """ + self._category = category + + @property + def contents(self): + """Gets the contents of this DeleteAntileakageRuleResponse. + + 规则内容(http状态码、手机:phone、身份证号:id_card、邮箱:email) + + :return: The contents of this DeleteAntileakageRuleResponse. + :rtype: list[str] + """ + return self._contents + + @contents.setter + def contents(self, contents): + """Sets the contents of this DeleteAntileakageRuleResponse. + + 规则内容(http状态码、手机:phone、身份证号:id_card、邮箱:email) + + :param contents: The contents of this DeleteAntileakageRuleResponse. + :type: list[str] + """ + self._contents = contents + + @property + def description(self): + """Gets the description of this DeleteAntileakageRuleResponse. + + 规则描述 + + :return: The description of this DeleteAntileakageRuleResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this DeleteAntileakageRuleResponse. + + 规则描述 + + :param description: The description of this DeleteAntileakageRuleResponse. + :type: 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteAntileakageRuleResponse): + 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-waf/huaweicloudsdkwaf/v1/model/delete_cc_rule_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_cc_rule_request.py new file mode 100644 index 0000000000..7abdd6b1a6 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_cc_rule_request.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class DeleteCcRuleRequest: + + + """ + 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', + 'rule_id': 'str' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'rule_id': 'rule_id' + } + + def __init__(self, policy_id=None, rule_id=None): + """DeleteCcRuleRequest - a model defined in huaweicloud sdk""" + + + + self._policy_id = None + self._rule_id = None + self.discriminator = None + + self.policy_id = policy_id + self.rule_id = rule_id + + @property + def policy_id(self): + """Gets the policy_id of this DeleteCcRuleRequest. + + policyid + + :return: The policy_id of this DeleteCcRuleRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this DeleteCcRuleRequest. + + policyid + + :param policy_id: The policy_id of this DeleteCcRuleRequest. + :type: str + """ + self._policy_id = policy_id + + @property + def rule_id(self): + """Gets the rule_id of this DeleteCcRuleRequest. + + ccRuleId + + :return: The rule_id of this DeleteCcRuleRequest. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this DeleteCcRuleRequest. + + ccRuleId + + :param rule_id: The rule_id of this DeleteCcRuleRequest. + :type: str + """ + self._rule_id = rule_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteCcRuleRequest): + 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-waf/huaweicloudsdkwaf/v1/model/delete_cc_rule_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_cc_rule_response.py new file mode 100644 index 0000000000..0d2f755706 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_cc_rule_response.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class DeleteCcRuleResponse(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): + """DeleteCcRuleResponse - a model defined in huaweicloud sdk""" + + super(DeleteCcRuleResponse, 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteCcRuleResponse): + 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-waf/huaweicloudsdkwaf/v1/model/delete_certificate_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_certificate_request.py new file mode 100644 index 0000000000..d2b8601644 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_certificate_request.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class DeleteCertificateRequest: + + + """ + 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 = { + 'certificate_id': 'str' + } + + attribute_map = { + 'certificate_id': 'certificate_id' + } + + def __init__(self, certificate_id=None): + """DeleteCertificateRequest - a model defined in huaweicloud sdk""" + + + + self._certificate_id = None + self.discriminator = None + + self.certificate_id = certificate_id + + @property + def certificate_id(self): + """Gets the certificate_id of this DeleteCertificateRequest. + + 证书ID + + :return: The certificate_id of this DeleteCertificateRequest. + :rtype: str + """ + return self._certificate_id + + @certificate_id.setter + def certificate_id(self, certificate_id): + """Sets the certificate_id of this DeleteCertificateRequest. + + 证书ID + + :param certificate_id: The certificate_id of this DeleteCertificateRequest. + :type: str + """ + self._certificate_id = certificate_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteCertificateRequest): + 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-waf/huaweicloudsdkwaf/v1/model/delete_certificate_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_certificate_response.py new file mode 100644 index 0000000000..344713f63a --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_certificate_response.py @@ -0,0 +1,299 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class DeleteCertificateResponse(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', + 'name': 'str', + 'content': 'str', + 'key': 'str', + 'expire_time': 'int', + 'exp_status': 'int', + 'timestamp': 'int', + 'bind_host': 'list[BindHost]' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'content': 'content', + 'key': 'key', + 'expire_time': 'expire_time', + 'exp_status': 'exp_status', + 'timestamp': 'timestamp', + 'bind_host': 'bind_host' + } + + def __init__(self, id=None, name=None, content=None, key=None, expire_time=None, exp_status=None, timestamp=None, bind_host=None): + """DeleteCertificateResponse - a model defined in huaweicloud sdk""" + + super(DeleteCertificateResponse, self).__init__() + + self._id = None + self._name = None + self._content = None + self._key = None + self._expire_time = None + self._exp_status = None + self._timestamp = None + self._bind_host = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if content is not None: + self.content = content + if key is not None: + self.key = key + if expire_time is not None: + self.expire_time = expire_time + if exp_status is not None: + self.exp_status = exp_status + if timestamp is not None: + self.timestamp = timestamp + if bind_host is not None: + self.bind_host = bind_host + + @property + def id(self): + """Gets the id of this DeleteCertificateResponse. + + 证书ID + + :return: The id of this DeleteCertificateResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this DeleteCertificateResponse. + + 证书ID + + :param id: The id of this DeleteCertificateResponse. + :type: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this DeleteCertificateResponse. + + 证书名 + + :return: The name of this DeleteCertificateResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this DeleteCertificateResponse. + + 证书名 + + :param name: The name of this DeleteCertificateResponse. + :type: str + """ + self._name = name + + @property + def content(self): + """Gets the content of this DeleteCertificateResponse. + + 证书文件,PEM编码 + + :return: The content of this DeleteCertificateResponse. + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this DeleteCertificateResponse. + + 证书文件,PEM编码 + + :param content: The content of this DeleteCertificateResponse. + :type: str + """ + self._content = content + + @property + def key(self): + """Gets the key of this DeleteCertificateResponse. + + 证书私钥,PEM编码 + + :return: The key of this DeleteCertificateResponse. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this DeleteCertificateResponse. + + 证书私钥,PEM编码 + + :param key: The key of this DeleteCertificateResponse. + :type: str + """ + self._key = key + + @property + def expire_time(self): + """Gets the expire_time of this DeleteCertificateResponse. + + 证书过期时间戳 + + :return: The expire_time of this DeleteCertificateResponse. + :rtype: int + """ + return self._expire_time + + @expire_time.setter + def expire_time(self, expire_time): + """Sets the expire_time of this DeleteCertificateResponse. + + 证书过期时间戳 + + :param expire_time: The expire_time of this DeleteCertificateResponse. + :type: int + """ + self._expire_time = expire_time + + @property + def exp_status(self): + """Gets the exp_status of this DeleteCertificateResponse. + + 证书过期状态,0-未过期,1-已过期,2-即将过期 + + :return: The exp_status of this DeleteCertificateResponse. + :rtype: int + """ + return self._exp_status + + @exp_status.setter + def exp_status(self, exp_status): + """Sets the exp_status of this DeleteCertificateResponse. + + 证书过期状态,0-未过期,1-已过期,2-即将过期 + + :param exp_status: The exp_status of this DeleteCertificateResponse. + :type: int + """ + self._exp_status = exp_status + + @property + def timestamp(self): + """Gets the timestamp of this DeleteCertificateResponse. + + 证书上传时间戳 + + :return: The timestamp of this DeleteCertificateResponse. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this DeleteCertificateResponse. + + 证书上传时间戳 + + :param timestamp: The timestamp of this DeleteCertificateResponse. + :type: int + """ + self._timestamp = timestamp + + @property + def bind_host(self): + """Gets the bind_host of this DeleteCertificateResponse. + + 证书关联的域名信息 + + :return: The bind_host of this DeleteCertificateResponse. + :rtype: list[BindHost] + """ + return self._bind_host + + @bind_host.setter + def bind_host(self, bind_host): + """Sets the bind_host of this DeleteCertificateResponse. + + 证书关联的域名信息 + + :param bind_host: The bind_host of this DeleteCertificateResponse. + :type: list[BindHost] + """ + self._bind_host = bind_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteCertificateResponse): + 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-waf/huaweicloudsdkwaf/v1/model/delete_custom_rule_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_custom_rule_request.py new file mode 100644 index 0000000000..35bd491457 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_custom_rule_request.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class DeleteCustomRuleRequest: + + + """ + 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', + 'rule_id': 'str' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'rule_id': 'rule_id' + } + + def __init__(self, policy_id=None, rule_id=None): + """DeleteCustomRuleRequest - a model defined in huaweicloud sdk""" + + + + self._policy_id = None + self._rule_id = None + self.discriminator = None + + self.policy_id = policy_id + self.rule_id = rule_id + + @property + def policy_id(self): + """Gets the policy_id of this DeleteCustomRuleRequest. + + policyid + + :return: The policy_id of this DeleteCustomRuleRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this DeleteCustomRuleRequest. + + policyid + + :param policy_id: The policy_id of this DeleteCustomRuleRequest. + :type: str + """ + self._policy_id = policy_id + + @property + def rule_id(self): + """Gets the rule_id of this DeleteCustomRuleRequest. + + customRuleId + + :return: The rule_id of this DeleteCustomRuleRequest. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this DeleteCustomRuleRequest. + + customRuleId + + :param rule_id: The rule_id of this DeleteCustomRuleRequest. + :type: str + """ + self._rule_id = rule_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteCustomRuleRequest): + 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-waf/huaweicloudsdkwaf/v1/model/delete_custom_rule_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_custom_rule_response.py new file mode 100644 index 0000000000..6f4fcb8ce1 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_custom_rule_response.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class DeleteCustomRuleResponse(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): + """DeleteCustomRuleResponse - a model defined in huaweicloud sdk""" + + super(DeleteCustomRuleResponse, 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteCustomRuleResponse): + 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-waf/huaweicloudsdkwaf/v1/model/delete_geoip_rule_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_geoip_rule_request.py new file mode 100644 index 0000000000..798bfc6104 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_geoip_rule_request.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class DeleteGeoipRuleRequest: + + + """ + 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', + 'rule_id': 'str' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'rule_id': 'rule_id' + } + + def __init__(self, policy_id=None, rule_id=None): + """DeleteGeoipRuleRequest - a model defined in huaweicloud sdk""" + + + + self._policy_id = None + self._rule_id = None + self.discriminator = None + + self.policy_id = policy_id + self.rule_id = rule_id + + @property + def policy_id(self): + """Gets the policy_id of this DeleteGeoipRuleRequest. + + policyid + + :return: The policy_id of this DeleteGeoipRuleRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this DeleteGeoipRuleRequest. + + policyid + + :param policy_id: The policy_id of this DeleteGeoipRuleRequest. + :type: str + """ + self._policy_id = policy_id + + @property + def rule_id(self): + """Gets the rule_id of this DeleteGeoipRuleRequest. + + geoipRuleId + + :return: The rule_id of this DeleteGeoipRuleRequest. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this DeleteGeoipRuleRequest. + + geoipRuleId + + :param rule_id: The rule_id of this DeleteGeoipRuleRequest. + :type: str + """ + self._rule_id = rule_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteGeoipRuleRequest): + 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-waf/huaweicloudsdkwaf/v1/model/delete_geoip_rule_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_geoip_rule_response.py new file mode 100644 index 0000000000..74f5272f49 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_geoip_rule_response.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class DeleteGeoipRuleResponse(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', + 'geoip': 'str', + 'white': 'int', + 'timestamp': 'int' + } + + attribute_map = { + 'id': 'id', + 'geoip': 'geoip', + 'white': 'white', + 'timestamp': 'timestamp' + } + + def __init__(self, id=None, geoip=None, white=None, timestamp=None): + """DeleteGeoipRuleResponse - a model defined in huaweicloud sdk""" + + super(DeleteGeoipRuleResponse, self).__init__() + + self._id = None + self._geoip = None + self._white = None + self._timestamp = None + self.discriminator = None + + if id is not None: + self.id = id + if geoip is not None: + self.geoip = geoip + if white is not None: + self.white = white + if timestamp is not None: + self.timestamp = timestamp + + @property + def id(self): + """Gets the id of this DeleteGeoipRuleResponse. + + 规则id + + :return: The id of this DeleteGeoipRuleResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this DeleteGeoipRuleResponse. + + 规则id + + :param id: The id of this DeleteGeoipRuleResponse. + :type: str + """ + self._id = id + + @property + def geoip(self): + """Gets the geoip of this DeleteGeoipRuleResponse. + + 地理位置封禁区域 + + :return: The geoip of this DeleteGeoipRuleResponse. + :rtype: str + """ + return self._geoip + + @geoip.setter + def geoip(self, geoip): + """Sets the geoip of this DeleteGeoipRuleResponse. + + 地理位置封禁区域 + + :param geoip: The geoip of this DeleteGeoipRuleResponse. + :type: str + """ + self._geoip = geoip + + @property + def white(self): + """Gets the white of this DeleteGeoipRuleResponse. + + 放行或者拦截 + + :return: The white of this DeleteGeoipRuleResponse. + :rtype: int + """ + return self._white + + @white.setter + def white(self, white): + """Sets the white of this DeleteGeoipRuleResponse. + + 放行或者拦截 + + :param white: The white of this DeleteGeoipRuleResponse. + :type: int + """ + self._white = white + + @property + def timestamp(self): + """Gets the timestamp of this DeleteGeoipRuleResponse. + + 创建规则时间戳 + + :return: The timestamp of this DeleteGeoipRuleResponse. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this DeleteGeoipRuleResponse. + + 创建规则时间戳 + + :param timestamp: The timestamp of this DeleteGeoipRuleResponse. + :type: int + """ + self._timestamp = timestamp + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteGeoipRuleResponse): + 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-waf/huaweicloudsdkwaf/v1/model/delete_instane_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_instane_request.py new file mode 100644 index 0000000000..4b5f7ab101 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_instane_request.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class DeleteInstaneRequest: + + + """ + 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): + """DeleteInstaneRequest - a model defined in huaweicloud sdk""" + + + + self._instance_id = None + self.discriminator = None + + self.instance_id = instance_id + + @property + def instance_id(self): + """Gets the instance_id of this DeleteInstaneRequest. + + 域名Id + + :return: The instance_id of this DeleteInstaneRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this DeleteInstaneRequest. + + 域名Id + + :param instance_id: The instance_id of this DeleteInstaneRequest. + :type: 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteInstaneRequest): + 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-waf/huaweicloudsdkwaf/v1/model/delete_instane_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_instane_response.py new file mode 100644 index 0000000000..3a5fccd298 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_instane_response.py @@ -0,0 +1,407 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class DeleteInstaneResponse(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', + 'hostname': 'str', + 'policyid': 'str', + 'access_code': 'str', + 'protect_status': 'int', + 'access_status': 'int', + 'protocol': 'str', + 'certificateid': 'str', + 'certificatename': 'str', + 'server': 'list[PremiumWafServer]', + 'proxy': 'bool', + 'timestamp': 'int' + } + + attribute_map = { + 'id': 'id', + 'hostname': 'hostname', + 'policyid': 'policyid', + 'access_code': 'access_code', + 'protect_status': 'protect_status', + 'access_status': 'access_status', + 'protocol': 'protocol', + 'certificateid': 'certificateid', + 'certificatename': 'certificatename', + 'server': 'server', + 'proxy': 'proxy', + 'timestamp': 'timestamp' + } + + def __init__(self, id=None, hostname=None, policyid=None, access_code=None, protect_status=None, access_status=None, protocol=None, certificateid=None, certificatename=None, server=None, proxy=None, timestamp=None): + """DeleteInstaneResponse - a model defined in huaweicloud sdk""" + + super(DeleteInstaneResponse, self).__init__() + + self._id = None + self._hostname = None + self._policyid = None + self._access_code = None + self._protect_status = None + self._access_status = None + self._protocol = None + self._certificateid = None + self._certificatename = None + self._server = None + self._proxy = None + self._timestamp = None + self.discriminator = None + + if id is not None: + self.id = id + if hostname is not None: + self.hostname = hostname + if policyid is not None: + self.policyid = policyid + if access_code is not None: + self.access_code = access_code + if protect_status is not None: + self.protect_status = protect_status + if access_status is not None: + self.access_status = access_status + if protocol is not None: + self.protocol = protocol + if certificateid is not None: + self.certificateid = certificateid + if certificatename is not None: + self.certificatename = certificatename + if server is not None: + self.server = server + if proxy is not None: + self.proxy = proxy + if timestamp is not None: + self.timestamp = timestamp + + @property + def id(self): + """Gets the id of this DeleteInstaneResponse. + + 域名id + + :return: The id of this DeleteInstaneResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this DeleteInstaneResponse. + + 域名id + + :param id: The id of this DeleteInstaneResponse. + :type: str + """ + self._id = id + + @property + def hostname(self): + """Gets the hostname of this DeleteInstaneResponse. + + 创建的云模式防护域名 + + :return: The hostname of this DeleteInstaneResponse. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """Sets the hostname of this DeleteInstaneResponse. + + 创建的云模式防护域名 + + :param hostname: The hostname of this DeleteInstaneResponse. + :type: str + """ + self._hostname = hostname + + @property + def policyid(self): + """Gets the policyid of this DeleteInstaneResponse. + + 策略id + + :return: The policyid of this DeleteInstaneResponse. + :rtype: str + """ + return self._policyid + + @policyid.setter + def policyid(self, policyid): + """Sets the policyid of this DeleteInstaneResponse. + + 策略id + + :param policyid: The policyid of this DeleteInstaneResponse. + :type: str + """ + self._policyid = policyid + + @property + def access_code(self): + """Gets the access_code of this DeleteInstaneResponse. + + cname + + :return: The access_code of this DeleteInstaneResponse. + :rtype: str + """ + return self._access_code + + @access_code.setter + def access_code(self, access_code): + """Sets the access_code of this DeleteInstaneResponse. + + cname + + :param access_code: The access_code of this DeleteInstaneResponse. + :type: str + """ + self._access_code = access_code + + @property + def protect_status(self): + """Gets the protect_status of this DeleteInstaneResponse. + + 防护状态 + + :return: The protect_status of this DeleteInstaneResponse. + :rtype: int + """ + return self._protect_status + + @protect_status.setter + def protect_status(self, protect_status): + """Sets the protect_status of this DeleteInstaneResponse. + + 防护状态 + + :param protect_status: The protect_status of this DeleteInstaneResponse. + :type: int + """ + self._protect_status = protect_status + + @property + def access_status(self): + """Gets the access_status of this DeleteInstaneResponse. + + 接入状态 + + :return: The access_status of this DeleteInstaneResponse. + :rtype: int + """ + return self._access_status + + @access_status.setter + def access_status(self, access_status): + """Sets the access_status of this DeleteInstaneResponse. + + 接入状态 + + :param access_status: The access_status of this DeleteInstaneResponse. + :type: int + """ + self._access_status = access_status + + @property + def protocol(self): + """Gets the protocol of this DeleteInstaneResponse. + + 返回的客户端协议类型 + + :return: The protocol of this DeleteInstaneResponse. + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this DeleteInstaneResponse. + + 返回的客户端协议类型 + + :param protocol: The protocol of this DeleteInstaneResponse. + :type: str + """ + self._protocol = protocol + + @property + def certificateid(self): + """Gets the certificateid of this DeleteInstaneResponse. + + 返回的证书id + + :return: The certificateid of this DeleteInstaneResponse. + :rtype: str + """ + return self._certificateid + + @certificateid.setter + def certificateid(self, certificateid): + """Sets the certificateid of this DeleteInstaneResponse. + + 返回的证书id + + :param certificateid: The certificateid of this DeleteInstaneResponse. + :type: str + """ + self._certificateid = certificateid + + @property + def certificatename(self): + """Gets the certificatename of this DeleteInstaneResponse. + + 证书名称 + + :return: The certificatename of this DeleteInstaneResponse. + :rtype: str + """ + return self._certificatename + + @certificatename.setter + def certificatename(self, certificatename): + """Sets the certificatename of this DeleteInstaneResponse. + + 证书名称 + + :param certificatename: The certificatename of this DeleteInstaneResponse. + :type: str + """ + self._certificatename = certificatename + + @property + def server(self): + """Gets the server of this DeleteInstaneResponse. + + 源站信息 + + :return: The server of this DeleteInstaneResponse. + :rtype: list[PremiumWafServer] + """ + return self._server + + @server.setter + def server(self, server): + """Sets the server of this DeleteInstaneResponse. + + 源站信息 + + :param server: The server of this DeleteInstaneResponse. + :type: list[PremiumWafServer] + """ + self._server = server + + @property + def proxy(self): + """Gets the proxy of this DeleteInstaneResponse. + + 是否开启了代理 + + :return: The proxy of this DeleteInstaneResponse. + :rtype: bool + """ + return self._proxy + + @proxy.setter + def proxy(self, proxy): + """Sets the proxy of this DeleteInstaneResponse. + + 是否开启了代理 + + :param proxy: The proxy of this DeleteInstaneResponse. + :type: bool + """ + self._proxy = proxy + + @property + def timestamp(self): + """Gets the timestamp of this DeleteInstaneResponse. + + 创建防护域名的时间 + + :return: The timestamp of this DeleteInstaneResponse. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this DeleteInstaneResponse. + + 创建防护域名的时间 + + :param timestamp: The timestamp of this DeleteInstaneResponse. + :type: int + """ + self._timestamp = timestamp + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteInstaneResponse): + 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-waf/huaweicloudsdkwaf/v1/model/delete_policy_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_policy_request.py new file mode 100644 index 0000000000..0d5f95076c --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_policy_request.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class DeletePolicyRequest: + + + """ + 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' + } + + attribute_map = { + 'policy_id': 'policy_id' + } + + def __init__(self, policy_id=None): + """DeletePolicyRequest - a model defined in huaweicloud sdk""" + + + + self._policy_id = None + self.discriminator = None + + self.policy_id = policy_id + + @property + def policy_id(self): + """Gets the policy_id of this DeletePolicyRequest. + + policyid + + :return: The policy_id of this DeletePolicyRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this DeletePolicyRequest. + + policyid + + :param policy_id: The policy_id of this DeletePolicyRequest. + :type: str + """ + self._policy_id = policy_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeletePolicyRequest): + 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-waf/huaweicloudsdkwaf/v1/model/delete_policy_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_policy_response.py new file mode 100644 index 0000000000..08bb33eefd --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_policy_response.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class DeletePolicyResponse(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): + """DeletePolicyResponse - a model defined in huaweicloud sdk""" + + super(DeletePolicyResponse, 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeletePolicyResponse): + 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-waf/huaweicloudsdkwaf/v1/model/delete_pool_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_pool_request.py new file mode 100644 index 0000000000..9ec2fa1e6e --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_pool_request.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class DeletePoolRequest: + + + """ + 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 = { + 'pool_id': 'str' + } + + attribute_map = { + 'pool_id': 'pool_id' + } + + def __init__(self, pool_id=None): + """DeletePoolRequest - a model defined in huaweicloud sdk""" + + + + self._pool_id = None + self.discriminator = None + + self.pool_id = pool_id + + @property + def pool_id(self): + """Gets the pool_id of this DeletePoolRequest. + + WAF独享引擎组ID + + :return: The pool_id of this DeletePoolRequest. + :rtype: str + """ + return self._pool_id + + @pool_id.setter + def pool_id(self, pool_id): + """Sets the pool_id of this DeletePoolRequest. + + WAF独享引擎组ID + + :param pool_id: The pool_id of this DeletePoolRequest. + :type: str + """ + self._pool_id = pool_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeletePoolRequest): + 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-waf/huaweicloudsdkwaf/v1/model/delete_pool_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_pool_response.py new file mode 100644 index 0000000000..b9c7b5ee30 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_pool_response.py @@ -0,0 +1,245 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class DeletePoolResponse(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', + 'name': 'str', + 'region': 'str', + 'type': 'str', + 'vpc_id': 'str', + 'description': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'region': 'region', + 'type': 'type', + 'vpc_id': 'vpc_id', + 'description': 'description' + } + + def __init__(self, id=None, name=None, region=None, type=None, vpc_id=None, description=None): + """DeletePoolResponse - a model defined in huaweicloud sdk""" + + super(DeletePoolResponse, self).__init__() + + self._id = None + self._name = None + self._region = None + self._type = None + self._vpc_id = None + self._description = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if region is not None: + self.region = region + if type is not None: + self.type = type + if vpc_id is not None: + self.vpc_id = vpc_id + if description is not None: + self.description = description + + @property + def id(self): + """Gets the id of this DeletePoolResponse. + + 36位标准化UUID + + :return: The id of this DeletePoolResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this DeletePoolResponse. + + 36位标准化UUID + + :param id: The id of this DeletePoolResponse. + :type: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this DeletePoolResponse. + + WAF独享引擎组名称 + + :return: The name of this DeletePoolResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this DeletePoolResponse. + + WAF独享引擎组名称 + + :param name: The name of this DeletePoolResponse. + :type: str + """ + self._name = name + + @property + def region(self): + """Gets the region of this DeletePoolResponse. + + 标准化region编号 + + :return: The region of this DeletePoolResponse. + :rtype: str + """ + return self._region + + @region.setter + def region(self, region): + """Sets the region of this DeletePoolResponse. + + 标准化region编号 + + :param region: The region of this DeletePoolResponse. + :type: str + """ + self._region = region + + @property + def type(self): + """Gets the type of this DeletePoolResponse. + + WAF独享引擎组类型 + + :return: The type of this DeletePoolResponse. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this DeletePoolResponse. + + WAF独享引擎组类型 + + :param type: The type of this DeletePoolResponse. + :type: str + """ + self._type = type + + @property + def vpc_id(self): + """Gets the vpc_id of this DeletePoolResponse. + + 关联的VPC ID + + :return: The vpc_id of this DeletePoolResponse. + :rtype: str + """ + return self._vpc_id + + @vpc_id.setter + def vpc_id(self, vpc_id): + """Sets the vpc_id of this DeletePoolResponse. + + 关联的VPC ID + + :param vpc_id: The vpc_id of this DeletePoolResponse. + :type: str + """ + self._vpc_id = vpc_id + + @property + def description(self): + """Gets the description of this DeletePoolResponse. + + 注释 + + :return: The description of this DeletePoolResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this DeletePoolResponse. + + 注释 + + :param description: The description of this DeletePoolResponse. + :type: 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeletePoolResponse): + 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-waf/huaweicloudsdkwaf/v1/model/delete_premium_host_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_premium_host_request.py new file mode 100644 index 0000000000..8e3d51f10c --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_premium_host_request.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class DeletePremiumHostRequest: + + + """ + 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 = { + 'host_id': 'str', + 'keep_policy': 'bool' + } + + attribute_map = { + 'host_id': 'host_id', + 'keep_policy': 'keepPolicy' + } + + def __init__(self, host_id=None, keep_policy=None): + """DeletePremiumHostRequest - a model defined in huaweicloud sdk""" + + + + self._host_id = None + self._keep_policy = None + self.discriminator = None + + self.host_id = host_id + if keep_policy is not None: + self.keep_policy = keep_policy + + @property + def host_id(self): + """Gets the host_id of this DeletePremiumHostRequest. + + 独享模式域名ID + + :return: The host_id of this DeletePremiumHostRequest. + :rtype: str + """ + return self._host_id + + @host_id.setter + def host_id(self, host_id): + """Sets the host_id of this DeletePremiumHostRequest. + + 独享模式域名ID + + :param host_id: The host_id of this DeletePremiumHostRequest. + :type: str + """ + self._host_id = host_id + + @property + def keep_policy(self): + """Gets the keep_policy of this DeletePremiumHostRequest. + + 是否保留规则 + + :return: The keep_policy of this DeletePremiumHostRequest. + :rtype: bool + """ + return self._keep_policy + + @keep_policy.setter + def keep_policy(self, keep_policy): + """Sets the keep_policy of this DeletePremiumHostRequest. + + 是否保留规则 + + :param keep_policy: The keep_policy of this DeletePremiumHostRequest. + :type: bool + """ + self._keep_policy = keep_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeletePremiumHostRequest): + 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-waf/huaweicloudsdkwaf/v1/model/delete_premium_host_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_premium_host_response.py new file mode 100644 index 0000000000..92f10daa14 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_premium_host_response.py @@ -0,0 +1,299 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class DeletePremiumHostResponse(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', + 'hostname': 'str', + 'policyid': 'str', + 'protect_status': 'int', + 'access_status': 'int', + 'flag': 'dict(str, str)', + 'mode': 'str', + 'pool_ids': 'list[str]' + } + + attribute_map = { + 'id': 'id', + 'hostname': 'hostname', + 'policyid': 'policyid', + 'protect_status': 'protect_status', + 'access_status': 'access_status', + 'flag': 'flag', + 'mode': 'mode', + 'pool_ids': 'pool_ids' + } + + def __init__(self, id=None, hostname=None, policyid=None, protect_status=None, access_status=None, flag=None, mode=None, pool_ids=None): + """DeletePremiumHostResponse - a model defined in huaweicloud sdk""" + + super(DeletePremiumHostResponse, self).__init__() + + self._id = None + self._hostname = None + self._policyid = None + self._protect_status = None + self._access_status = None + self._flag = None + self._mode = None + self._pool_ids = None + self.discriminator = None + + if id is not None: + self.id = id + if hostname is not None: + self.hostname = hostname + if policyid is not None: + self.policyid = policyid + if protect_status is not None: + self.protect_status = protect_status + if access_status is not None: + self.access_status = access_status + if flag is not None: + self.flag = flag + if mode is not None: + self.mode = mode + if pool_ids is not None: + self.pool_ids = pool_ids + + @property + def id(self): + """Gets the id of this DeletePremiumHostResponse. + + 域名id + + :return: The id of this DeletePremiumHostResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this DeletePremiumHostResponse. + + 域名id + + :param id: The id of this DeletePremiumHostResponse. + :type: str + """ + self._id = id + + @property + def hostname(self): + """Gets the hostname of this DeletePremiumHostResponse. + + 域名 + + :return: The hostname of this DeletePremiumHostResponse. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """Sets the hostname of this DeletePremiumHostResponse. + + 域名 + + :param hostname: The hostname of this DeletePremiumHostResponse. + :type: str + """ + self._hostname = hostname + + @property + def policyid(self): + """Gets the policyid of this DeletePremiumHostResponse. + + 策略id + + :return: The policyid of this DeletePremiumHostResponse. + :rtype: str + """ + return self._policyid + + @policyid.setter + def policyid(self, policyid): + """Sets the policyid of this DeletePremiumHostResponse. + + 策略id + + :param policyid: The policyid of this DeletePremiumHostResponse. + :type: str + """ + self._policyid = policyid + + @property + def protect_status(self): + """Gets the protect_status of this DeletePremiumHostResponse. + + 防护状态 + + :return: The protect_status of this DeletePremiumHostResponse. + :rtype: int + """ + return self._protect_status + + @protect_status.setter + def protect_status(self, protect_status): + """Sets the protect_status of this DeletePremiumHostResponse. + + 防护状态 + + :param protect_status: The protect_status of this DeletePremiumHostResponse. + :type: int + """ + self._protect_status = protect_status + + @property + def access_status(self): + """Gets the access_status of this DeletePremiumHostResponse. + + 接入状态 + + :return: The access_status of this DeletePremiumHostResponse. + :rtype: int + """ + return self._access_status + + @access_status.setter + def access_status(self, access_status): + """Sets the access_status of this DeletePremiumHostResponse. + + 接入状态 + + :param access_status: The access_status of this DeletePremiumHostResponse. + :type: int + """ + self._access_status = access_status + + @property + def flag(self): + """Gets the flag of this DeletePremiumHostResponse. + + 特殊标识 + + :return: The flag of this DeletePremiumHostResponse. + :rtype: dict(str, str) + """ + return self._flag + + @flag.setter + def flag(self, flag): + """Sets the flag of this DeletePremiumHostResponse. + + 特殊标识 + + :param flag: The flag of this DeletePremiumHostResponse. + :type: dict(str, str) + """ + self._flag = flag + + @property + def mode(self): + """Gets the mode of this DeletePremiumHostResponse. + + 特殊模式独享引擎的标识(如elb) + + :return: The mode of this DeletePremiumHostResponse. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this DeletePremiumHostResponse. + + 特殊模式独享引擎的标识(如elb) + + :param mode: The mode of this DeletePremiumHostResponse. + :type: str + """ + self._mode = mode + + @property + def pool_ids(self): + """Gets the pool_ids of this DeletePremiumHostResponse. + + 特殊模式域名所属独享引擎组 + + :return: The pool_ids of this DeletePremiumHostResponse. + :rtype: list[str] + """ + return self._pool_ids + + @pool_ids.setter + def pool_ids(self, pool_ids): + """Sets the pool_ids of this DeletePremiumHostResponse. + + 特殊模式域名所属独享引擎组 + + :param pool_ids: The pool_ids of this DeletePremiumHostResponse. + :type: list[str] + """ + self._pool_ids = pool_ids + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeletePremiumHostResponse): + 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-waf/huaweicloudsdkwaf/v1/model/events_list_info_items.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/events_list_info_items.py new file mode 100644 index 0000000000..c4f6266fc3 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/events_list_info_items.py @@ -0,0 +1,353 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class EventsListInfoItems: + + + """ + 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', + 'policyid': 'str', + 'sip': 'str', + 'host': 'str', + 'url': 'str', + 'attack': 'str', + 'rule': 'str', + 'payload': 'str', + 'action': 'str', + 'timestamp': 'int' + } + + attribute_map = { + 'time': 'time', + 'policyid': 'policyid', + 'sip': 'sip', + 'host': 'host', + 'url': 'url', + 'attack': 'attack', + 'rule': 'rule', + 'payload': 'payload', + 'action': 'action', + 'timestamp': 'timestamp' + } + + def __init__(self, time=None, policyid=None, sip=None, host=None, url=None, attack=None, rule=None, payload=None, action=None, timestamp=None): + """EventsListInfoItems - a model defined in huaweicloud sdk""" + + + + self._time = None + self._policyid = None + self._sip = None + self._host = None + self._url = None + self._attack = None + self._rule = None + self._payload = None + self._action = None + self._timestamp = None + self.discriminator = None + + if time is not None: + self.time = time + if policyid is not None: + self.policyid = policyid + if sip is not None: + self.sip = sip + if host is not None: + self.host = host + if url is not None: + self.url = url + if attack is not None: + self.attack = attack + if rule is not None: + self.rule = rule + if payload is not None: + self.payload = payload + if action is not None: + self.action = action + if timestamp is not None: + self.timestamp = timestamp + + @property + def time(self): + """Gets the time of this EventsListInfoItems. + + 次数 + + :return: The time of this EventsListInfoItems. + :rtype: int + """ + return self._time + + @time.setter + def time(self, time): + """Sets the time of this EventsListInfoItems. + + 次数 + + :param time: The time of this EventsListInfoItems. + :type: int + """ + self._time = time + + @property + def policyid(self): + """Gets the policyid of this EventsListInfoItems. + + 策略id + + :return: The policyid of this EventsListInfoItems. + :rtype: str + """ + return self._policyid + + @policyid.setter + def policyid(self, policyid): + """Sets the policyid of this EventsListInfoItems. + + 策略id + + :param policyid: The policyid of this EventsListInfoItems. + :type: str + """ + self._policyid = policyid + + @property + def sip(self): + """Gets the sip of this EventsListInfoItems. + + 源ip + + :return: The sip of this EventsListInfoItems. + :rtype: str + """ + return self._sip + + @sip.setter + def sip(self, sip): + """Sets the sip of this EventsListInfoItems. + + 源ip + + :param sip: The sip of this EventsListInfoItems. + :type: str + """ + self._sip = sip + + @property + def host(self): + """Gets the host of this EventsListInfoItems. + + 域名 + + :return: The host of this EventsListInfoItems. + :rtype: str + """ + return self._host + + @host.setter + def host(self, host): + """Sets the host of this EventsListInfoItems. + + 域名 + + :param host: The host of this EventsListInfoItems. + :type: str + """ + self._host = host + + @property + def url(self): + """Gets the url of this EventsListInfoItems. + + 攻击的url链接 + + :return: The url of this EventsListInfoItems. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this EventsListInfoItems. + + 攻击的url链接 + + :param url: The url of this EventsListInfoItems. + :type: str + """ + self._url = url + + @property + def attack(self): + """Gets the attack of this EventsListInfoItems. + + 攻击类型 + + :return: The attack of this EventsListInfoItems. + :rtype: str + """ + return self._attack + + @attack.setter + def attack(self, attack): + """Sets the attack of this EventsListInfoItems. + + 攻击类型 + + :param attack: The attack of this EventsListInfoItems. + :type: str + """ + self._attack = attack + + @property + def rule(self): + """Gets the rule of this EventsListInfoItems. + + 命中的规则id + + :return: The rule of this EventsListInfoItems. + :rtype: str + """ + return self._rule + + @rule.setter + def rule(self, rule): + """Sets the rule of this EventsListInfoItems. + + 命中的规则id + + :param rule: The rule of this EventsListInfoItems. + :type: str + """ + self._rule = rule + + @property + def payload(self): + """Gets the payload of this EventsListInfoItems. + + 命中的载荷 + + :return: The payload of this EventsListInfoItems. + :rtype: str + """ + return self._payload + + @payload.setter + def payload(self, payload): + """Sets the payload of this EventsListInfoItems. + + 命中的载荷 + + :param payload: The payload of this EventsListInfoItems. + :type: str + """ + self._payload = payload + + @property + def action(self): + """Gets the action of this EventsListInfoItems. + + 防护动作 + + :return: The action of this EventsListInfoItems. + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this EventsListInfoItems. + + 防护动作 + + :param action: The action of this EventsListInfoItems. + :type: str + """ + self._action = action + + @property + def timestamp(self): + """Gets the timestamp of this EventsListInfoItems. + + 时间戳 + + :return: The timestamp of this EventsListInfoItems. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this EventsListInfoItems. + + 时间戳 + + :param timestamp: The timestamp of this EventsListInfoItems. + :type: int + """ + self._timestamp = timestamp + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EventsListInfoItems): + 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-waf/huaweicloudsdkwaf/v1/model/geo_ip_body.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/geo_ip_body.py new file mode 100644 index 0000000000..d61e840f6a --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/geo_ip_body.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class GeoIpBody: + + + """ + 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', + 'white': 'int' + } + + attribute_map = { + 'geoip': 'geoip', + 'white': 'white' + } + + def __init__(self, geoip=None, white=None): + """GeoIpBody - a model defined in huaweicloud sdk""" + + + + self._geoip = None + self._white = None + self.discriminator = None + + self.geoip = geoip + if white is not None: + self.white = white + + @property + def geoip(self): + """Gets the geoip of this GeoIpBody. + + 地理位置 + + :return: The geoip of this GeoIpBody. + :rtype: str + """ + return self._geoip + + @geoip.setter + def geoip(self, geoip): + """Sets the geoip of this GeoIpBody. + + 地理位置 + + :param geoip: The geoip of this GeoIpBody. + :type: str + """ + self._geoip = geoip + + @property + def white(self): + """Gets the white of this GeoIpBody. + + 放行或者拦截 + + :return: The white of this GeoIpBody. + :rtype: int + """ + return self._white + + @white.setter + def white(self, white): + """Sets the white of this GeoIpBody. + + 放行或者拦截 + + :param white: The white of this GeoIpBody. + :type: 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GeoIpBody): + 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-waf/huaweicloudsdkwaf/v1/model/id_hostname_entry.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/id_hostname_entry.py new file mode 100644 index 0000000000..e48be0bee8 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/id_hostname_entry.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class IdHostnameEntry: + + + """ + 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', + 'hostname': 'str' + } + + attribute_map = { + 'id': 'id', + 'hostname': 'hostname' + } + + def __init__(self, id=None, hostname=None): + """IdHostnameEntry - a model defined in huaweicloud sdk""" + + + + self._id = None + self._hostname = None + self.discriminator = None + + self.id = id + self.hostname = hostname + + @property + def id(self): + """Gets the id of this IdHostnameEntry. + + 域名id + + :return: The id of this IdHostnameEntry. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this IdHostnameEntry. + + 域名id + + :param id: The id of this IdHostnameEntry. + :type: str + """ + self._id = id + + @property + def hostname(self): + """Gets the hostname of this IdHostnameEntry. + + 域名 + + :return: The hostname of this IdHostnameEntry. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """Sets the hostname of this IdHostnameEntry. + + 域名 + + :param hostname: The hostname of this IdHostnameEntry. + :type: str + """ + self._hostname = hostname + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, IdHostnameEntry): + 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-waf/huaweicloudsdkwaf/v1/model/id_name_entry.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/id_name_entry.py new file mode 100644 index 0000000000..328648d7c1 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/id_name_entry.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class IdNameEntry: + + + """ + 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' + } + + attribute_map = { + 'id': 'id', + 'name': 'name' + } + + def __init__(self, id=None, name=None): + """IdNameEntry - a model defined in huaweicloud sdk""" + + + + self._id = None + self._name = None + self.discriminator = None + + self.id = id + self.name = name + + @property + def id(self): + """Gets the id of this IdNameEntry. + + id + + :return: The id of this IdNameEntry. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this IdNameEntry. + + id + + :param id: The id of this IdNameEntry. + :type: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this IdNameEntry. + + 名称 + + :return: The name of this IdNameEntry. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this IdNameEntry. + + 名称 + + :param name: The name of this IdNameEntry. + :type: str + """ + self._name = 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, IdNameEntry): + 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-waf/huaweicloudsdkwaf/v1/model/instance_body.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/instance_body.py new file mode 100644 index 0000000000..f4249ee94b --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/instance_body.py @@ -0,0 +1,326 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class InstanceBody: + + + """ + 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 = { + 'hostname': 'str', + 'policyid': 'str', + 'server': 'list[PremiumWafServer]', + 'certificateid': 'str', + 'certificatename': 'str', + 'proxy': 'bool', + 'paid_type': 'object', + 'description': 'object', + 'exclusive_ip': 'object' + } + + attribute_map = { + 'hostname': 'hostname', + 'policyid': 'policyid', + 'server': 'server', + 'certificateid': 'certificateid', + 'certificatename': 'certificatename', + 'proxy': 'proxy', + 'paid_type': 'paid_type', + 'description': 'description', + 'exclusive_ip': 'exclusive_ip' + } + + def __init__(self, hostname=None, policyid=None, server=None, certificateid=None, certificatename=None, proxy=None, paid_type=None, description=None, exclusive_ip=None): + """InstanceBody - a model defined in huaweicloud sdk""" + + + + self._hostname = None + self._policyid = None + self._server = None + self._certificateid = None + self._certificatename = None + self._proxy = None + self._paid_type = None + self._description = None + self._exclusive_ip = None + self.discriminator = None + + if hostname is not None: + self.hostname = hostname + if policyid is not None: + self.policyid = policyid + if server is not None: + self.server = server + if certificateid is not None: + self.certificateid = certificateid + if certificatename is not None: + self.certificatename = certificatename + if proxy is not None: + self.proxy = proxy + if paid_type is not None: + self.paid_type = paid_type + if description is not None: + self.description = description + if exclusive_ip is not None: + self.exclusive_ip = exclusive_ip + + @property + def hostname(self): + """Gets the hostname of this InstanceBody. + + 域名信息 + + :return: The hostname of this InstanceBody. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """Sets the hostname of this InstanceBody. + + 域名信息 + + :param hostname: The hostname of this InstanceBody. + :type: str + """ + self._hostname = hostname + + @property + def policyid(self): + """Gets the policyid of this InstanceBody. + + 防护域名初始绑定的策略ID + + :return: The policyid of this InstanceBody. + :rtype: str + """ + return self._policyid + + @policyid.setter + def policyid(self, policyid): + """Sets the policyid of this InstanceBody. + + 防护域名初始绑定的策略ID + + :param policyid: The policyid of this InstanceBody. + :type: str + """ + self._policyid = policyid + + @property + def server(self): + """Gets the server of this InstanceBody. + + 源站信息 + + :return: The server of this InstanceBody. + :rtype: list[PremiumWafServer] + """ + return self._server + + @server.setter + def server(self, server): + """Sets the server of this InstanceBody. + + 源站信息 + + :param server: The server of this InstanceBody. + :type: list[PremiumWafServer] + """ + self._server = server + + @property + def certificateid(self): + """Gets the certificateid of this InstanceBody. + + 证书id + + :return: The certificateid of this InstanceBody. + :rtype: str + """ + return self._certificateid + + @certificateid.setter + def certificateid(self, certificateid): + """Sets the certificateid of this InstanceBody. + + 证书id + + :param certificateid: The certificateid of this InstanceBody. + :type: str + """ + self._certificateid = certificateid + + @property + def certificatename(self): + """Gets the certificatename of this InstanceBody. + + 证书名 + + :return: The certificatename of this InstanceBody. + :rtype: str + """ + return self._certificatename + + @certificatename.setter + def certificatename(self, certificatename): + """Sets the certificatename of this InstanceBody. + + 证书名 + + :param certificatename: The certificatename of this InstanceBody. + :type: str + """ + self._certificatename = certificatename + + @property + def proxy(self): + """Gets the proxy of this InstanceBody. + + 是否使用代理 + + :return: The proxy of this InstanceBody. + :rtype: bool + """ + return self._proxy + + @proxy.setter + def proxy(self, proxy): + """Sets the proxy of this InstanceBody. + + 是否使用代理 + + :param proxy: The proxy of this InstanceBody. + :type: bool + """ + self._proxy = proxy + + @property + def paid_type(self): + """Gets the paid_type of this InstanceBody. + + 模式 + + :return: The paid_type of this InstanceBody. + :rtype: object + """ + return self._paid_type + + @paid_type.setter + def paid_type(self, paid_type): + """Sets the paid_type of this InstanceBody. + + 模式 + + :param paid_type: The paid_type of this InstanceBody. + :type: object + """ + self._paid_type = paid_type + + @property + def description(self): + """Gets the description of this InstanceBody. + + 域名描述 + + :return: The description of this InstanceBody. + :rtype: object + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this InstanceBody. + + 域名描述 + + :param description: The description of this InstanceBody. + :type: object + """ + self._description = description + + @property + def exclusive_ip(self): + """Gets the exclusive_ip of this InstanceBody. + + 使用独享IP + + :return: The exclusive_ip of this InstanceBody. + :rtype: object + """ + return self._exclusive_ip + + @exclusive_ip.setter + def exclusive_ip(self, exclusive_ip): + """Sets the exclusive_ip of this InstanceBody. + + 使用独享IP + + :param exclusive_ip: The exclusive_ip of this InstanceBody. + :type: object + """ + self._exclusive_ip = exclusive_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InstanceBody): + 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-waf/huaweicloudsdkwaf/v1/model/instance_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/instance_response.py new file mode 100644 index 0000000000..fb1aebdfd6 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/instance_response.py @@ -0,0 +1,407 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class InstanceResponse: + + + """ + 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', + 'hostname': 'str', + 'policyid': 'str', + 'access_code': 'str', + 'protect_status': 'int', + 'access_status': 'int', + 'protocol': 'str', + 'certificateid': 'str', + 'certificatename': 'str', + 'server': 'list[PremiumWafServer]', + 'proxy': 'bool', + 'timestamp': 'int' + } + + attribute_map = { + 'id': 'id', + 'hostname': 'hostname', + 'policyid': 'policyid', + 'access_code': 'access_code', + 'protect_status': 'protect_status', + 'access_status': 'access_status', + 'protocol': 'protocol', + 'certificateid': 'certificateid', + 'certificatename': 'certificatename', + 'server': 'server', + 'proxy': 'proxy', + 'timestamp': 'timestamp' + } + + def __init__(self, id=None, hostname=None, policyid=None, access_code=None, protect_status=None, access_status=None, protocol=None, certificateid=None, certificatename=None, server=None, proxy=None, timestamp=None): + """InstanceResponse - a model defined in huaweicloud sdk""" + + + + self._id = None + self._hostname = None + self._policyid = None + self._access_code = None + self._protect_status = None + self._access_status = None + self._protocol = None + self._certificateid = None + self._certificatename = None + self._server = None + self._proxy = None + self._timestamp = None + self.discriminator = None + + if id is not None: + self.id = id + if hostname is not None: + self.hostname = hostname + if policyid is not None: + self.policyid = policyid + if access_code is not None: + self.access_code = access_code + if protect_status is not None: + self.protect_status = protect_status + if access_status is not None: + self.access_status = access_status + if protocol is not None: + self.protocol = protocol + if certificateid is not None: + self.certificateid = certificateid + if certificatename is not None: + self.certificatename = certificatename + if server is not None: + self.server = server + if proxy is not None: + self.proxy = proxy + if timestamp is not None: + self.timestamp = timestamp + + @property + def id(self): + """Gets the id of this InstanceResponse. + + 域名id + + :return: The id of this InstanceResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this InstanceResponse. + + 域名id + + :param id: The id of this InstanceResponse. + :type: str + """ + self._id = id + + @property + def hostname(self): + """Gets the hostname of this InstanceResponse. + + 创建的云模式防护域名 + + :return: The hostname of this InstanceResponse. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """Sets the hostname of this InstanceResponse. + + 创建的云模式防护域名 + + :param hostname: The hostname of this InstanceResponse. + :type: str + """ + self._hostname = hostname + + @property + def policyid(self): + """Gets the policyid of this InstanceResponse. + + 策略id + + :return: The policyid of this InstanceResponse. + :rtype: str + """ + return self._policyid + + @policyid.setter + def policyid(self, policyid): + """Sets the policyid of this InstanceResponse. + + 策略id + + :param policyid: The policyid of this InstanceResponse. + :type: str + """ + self._policyid = policyid + + @property + def access_code(self): + """Gets the access_code of this InstanceResponse. + + cname + + :return: The access_code of this InstanceResponse. + :rtype: str + """ + return self._access_code + + @access_code.setter + def access_code(self, access_code): + """Sets the access_code of this InstanceResponse. + + cname + + :param access_code: The access_code of this InstanceResponse. + :type: str + """ + self._access_code = access_code + + @property + def protect_status(self): + """Gets the protect_status of this InstanceResponse. + + 防护状态 + + :return: The protect_status of this InstanceResponse. + :rtype: int + """ + return self._protect_status + + @protect_status.setter + def protect_status(self, protect_status): + """Sets the protect_status of this InstanceResponse. + + 防护状态 + + :param protect_status: The protect_status of this InstanceResponse. + :type: int + """ + self._protect_status = protect_status + + @property + def access_status(self): + """Gets the access_status of this InstanceResponse. + + 接入状态 + + :return: The access_status of this InstanceResponse. + :rtype: int + """ + return self._access_status + + @access_status.setter + def access_status(self, access_status): + """Sets the access_status of this InstanceResponse. + + 接入状态 + + :param access_status: The access_status of this InstanceResponse. + :type: int + """ + self._access_status = access_status + + @property + def protocol(self): + """Gets the protocol of this InstanceResponse. + + 返回的客户端协议类型 + + :return: The protocol of this InstanceResponse. + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this InstanceResponse. + + 返回的客户端协议类型 + + :param protocol: The protocol of this InstanceResponse. + :type: str + """ + self._protocol = protocol + + @property + def certificateid(self): + """Gets the certificateid of this InstanceResponse. + + 返回的证书id + + :return: The certificateid of this InstanceResponse. + :rtype: str + """ + return self._certificateid + + @certificateid.setter + def certificateid(self, certificateid): + """Sets the certificateid of this InstanceResponse. + + 返回的证书id + + :param certificateid: The certificateid of this InstanceResponse. + :type: str + """ + self._certificateid = certificateid + + @property + def certificatename(self): + """Gets the certificatename of this InstanceResponse. + + 证书名称 + + :return: The certificatename of this InstanceResponse. + :rtype: str + """ + return self._certificatename + + @certificatename.setter + def certificatename(self, certificatename): + """Sets the certificatename of this InstanceResponse. + + 证书名称 + + :param certificatename: The certificatename of this InstanceResponse. + :type: str + """ + self._certificatename = certificatename + + @property + def server(self): + """Gets the server of this InstanceResponse. + + 源站信息 + + :return: The server of this InstanceResponse. + :rtype: list[PremiumWafServer] + """ + return self._server + + @server.setter + def server(self, server): + """Sets the server of this InstanceResponse. + + 源站信息 + + :param server: The server of this InstanceResponse. + :type: list[PremiumWafServer] + """ + self._server = server + + @property + def proxy(self): + """Gets the proxy of this InstanceResponse. + + 是否开启了代理 + + :return: The proxy of this InstanceResponse. + :rtype: bool + """ + return self._proxy + + @proxy.setter + def proxy(self, proxy): + """Sets the proxy of this InstanceResponse. + + 是否开启了代理 + + :param proxy: The proxy of this InstanceResponse. + :type: bool + """ + self._proxy = proxy + + @property + def timestamp(self): + """Gets the timestamp of this InstanceResponse. + + 创建防护域名的时间 + + :return: The timestamp of this InstanceResponse. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this InstanceResponse. + + 创建防护域名的时间 + + :param timestamp: The timestamp of this InstanceResponse. + :type: int + """ + self._timestamp = timestamp + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InstanceResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_anticrawler_rules_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_anticrawler_rules_request.py new file mode 100644 index 0000000000..0627e48af0 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_anticrawler_rules_request.py @@ -0,0 +1,163 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListAnticrawlerRulesRequest: + + + """ + 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', + 'offset': 'int', + 'limit': 'int' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, policy_id=None, offset=None, limit=None): + """ListAnticrawlerRulesRequest - a model defined in huaweicloud sdk""" + + + + self._policy_id = None + self._offset = None + self._limit = None + self.discriminator = None + + self.policy_id = policy_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + + @property + def policy_id(self): + """Gets the policy_id of this ListAnticrawlerRulesRequest. + + policyid + + :return: The policy_id of this ListAnticrawlerRulesRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this ListAnticrawlerRulesRequest. + + policyid + + :param policy_id: The policy_id of this ListAnticrawlerRulesRequest. + :type: str + """ + self._policy_id = policy_id + + @property + def offset(self): + """Gets the offset of this ListAnticrawlerRulesRequest. + + offset + + :return: The offset of this ListAnticrawlerRulesRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListAnticrawlerRulesRequest. + + offset + + :param offset: The offset of this ListAnticrawlerRulesRequest. + :type: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListAnticrawlerRulesRequest. + + limit + + :return: The limit of this ListAnticrawlerRulesRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListAnticrawlerRulesRequest. + + limit + + :param limit: The limit of this ListAnticrawlerRulesRequest. + :type: int + """ + self._limit = limit + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListAnticrawlerRulesRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_anticrawler_rules_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_anticrawler_rules_response.py new file mode 100644 index 0000000000..ea25392581 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_anticrawler_rules_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListAnticrawlerRulesResponse(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[CrawlerListInfo]' + } + + attribute_map = { + 'total': 'total', + 'items': 'items' + } + + def __init__(self, total=None, items=None): + """ListAnticrawlerRulesResponse - a model defined in huaweicloud sdk""" + + super(ListAnticrawlerRulesResponse, 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 ListAnticrawlerRulesResponse. + + 该策略下反爬虫规则数量 + + :return: The total of this ListAnticrawlerRulesResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListAnticrawlerRulesResponse. + + 该策略下反爬虫规则数量 + + :param total: The total of this ListAnticrawlerRulesResponse. + :type: int + """ + self._total = total + + @property + def items(self): + """Gets the items of this ListAnticrawlerRulesResponse. + + 反爬虫规则列表 + + :return: The items of this ListAnticrawlerRulesResponse. + :rtype: list[CrawlerListInfo] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListAnticrawlerRulesResponse. + + 反爬虫规则列表 + + :param items: The items of this ListAnticrawlerRulesResponse. + :type: list[CrawlerListInfo] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListAnticrawlerRulesResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_antileakage_rules_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_antileakage_rules_request.py new file mode 100644 index 0000000000..b128067e45 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_antileakage_rules_request.py @@ -0,0 +1,163 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListAntileakageRulesRequest: + + + """ + 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', + 'offset': 'int', + 'limit': 'int' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, policy_id=None, offset=None, limit=None): + """ListAntileakageRulesRequest - a model defined in huaweicloud sdk""" + + + + self._policy_id = None + self._offset = None + self._limit = None + self.discriminator = None + + self.policy_id = policy_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + + @property + def policy_id(self): + """Gets the policy_id of this ListAntileakageRulesRequest. + + policyid + + :return: The policy_id of this ListAntileakageRulesRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this ListAntileakageRulesRequest. + + policyid + + :param policy_id: The policy_id of this ListAntileakageRulesRequest. + :type: str + """ + self._policy_id = policy_id + + @property + def offset(self): + """Gets the offset of this ListAntileakageRulesRequest. + + offset + + :return: The offset of this ListAntileakageRulesRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListAntileakageRulesRequest. + + offset + + :param offset: The offset of this ListAntileakageRulesRequest. + :type: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListAntileakageRulesRequest. + + limit + + :return: The limit of this ListAntileakageRulesRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListAntileakageRulesRequest. + + limit + + :param limit: The limit of this ListAntileakageRulesRequest. + :type: int + """ + self._limit = limit + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListAntileakageRulesRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_antileakage_rules_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_antileakage_rules_response.py new file mode 100644 index 0000000000..eb44358eb0 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_antileakage_rules_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListAntileakageRulesResponse(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[CreateAntiLeakageRequestBody]' + } + + attribute_map = { + 'total': 'total', + 'items': 'items' + } + + def __init__(self, total=None, items=None): + """ListAntileakageRulesResponse - a model defined in huaweicloud sdk""" + + super(ListAntileakageRulesResponse, 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 ListAntileakageRulesResponse. + + 该策略下防泄漏规则数量 + + :return: The total of this ListAntileakageRulesResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListAntileakageRulesResponse. + + 该策略下防泄漏规则数量 + + :param total: The total of this ListAntileakageRulesResponse. + :type: int + """ + self._total = total + + @property + def items(self): + """Gets the items of this ListAntileakageRulesResponse. + + 防泄漏规则列表 + + :return: The items of this ListAntileakageRulesResponse. + :rtype: list[CreateAntiLeakageRequestBody] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListAntileakageRulesResponse. + + 防泄漏规则列表 + + :param items: The items of this ListAntileakageRulesResponse. + :type: list[CreateAntiLeakageRequestBody] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListAntileakageRulesResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_attack_action_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_attack_action_request.py new file mode 100644 index 0000000000..02a21a6ae7 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_attack_action_request.py @@ -0,0 +1,189 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListAttackActionRequest: + + + """ + 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 = { + '_from': 'int', + 'to': 'int', + 'hosts': 'str', + 'instances': 'str' + } + + attribute_map = { + '_from': 'from', + 'to': 'to', + 'hosts': 'hosts', + 'instances': 'instances' + } + + def __init__(self, _from=None, to=None, hosts=None, instances=None): + """ListAttackActionRequest - a model defined in huaweicloud sdk""" + + + + self.__from = None + self._to = None + self._hosts = None + self._instances = None + self.discriminator = None + + self._from = _from + self.to = to + if hosts is not None: + self.hosts = hosts + if instances is not None: + self.instances = instances + + @property + def _from(self): + """Gets the _from of this ListAttackActionRequest. + + 起始时间 + + :return: The _from of this ListAttackActionRequest. + :rtype: int + """ + return self.__from + + @_from.setter + def _from(self, _from): + """Sets the _from of this ListAttackActionRequest. + + 起始时间 + + :param _from: The _from of this ListAttackActionRequest. + :type: int + """ + self.__from = _from + + @property + def to(self): + """Gets the to of this ListAttackActionRequest. + + 结束时间 + + :return: The to of this ListAttackActionRequest. + :rtype: int + """ + return self._to + + @to.setter + def to(self, to): + """Sets the to of this ListAttackActionRequest. + + 结束时间 + + :param to: The to of this ListAttackActionRequest. + :type: int + """ + self._to = to + + @property + def hosts(self): + """Gets the hosts of this ListAttackActionRequest. + + 要查询域名列表 + + :return: The hosts of this ListAttackActionRequest. + :rtype: str + """ + return self._hosts + + @hosts.setter + def hosts(self, hosts): + """Sets the hosts of this ListAttackActionRequest. + + 要查询域名列表 + + :param hosts: The hosts of this ListAttackActionRequest. + :type: str + """ + self._hosts = hosts + + @property + def instances(self): + """Gets the instances of this ListAttackActionRequest. + + 要查询实例列表 + + :return: The instances of this ListAttackActionRequest. + :rtype: str + """ + return self._instances + + @instances.setter + def instances(self, instances): + """Sets the instances of this ListAttackActionRequest. + + 要查询实例列表 + + :param instances: The instances of this ListAttackActionRequest. + :type: str + """ + self._instances = instances + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListAttackActionRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_attack_action_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_attack_action_response.py new file mode 100644 index 0000000000..bb9492b909 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_attack_action_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListAttackActionResponse(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[CountItem]' + } + + attribute_map = { + 'total': 'total', + 'items': 'items' + } + + def __init__(self, total=None, items=None): + """ListAttackActionResponse - a model defined in huaweicloud sdk""" + + super(ListAttackActionResponse, 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 ListAttackActionResponse. + + CountItem的总数量 + + :return: The total of this ListAttackActionResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListAttackActionResponse. + + CountItem的总数量 + + :param total: The total of this ListAttackActionResponse. + :type: int + """ + self._total = total + + @property + def items(self): + """Gets the items of this ListAttackActionResponse. + + CountItem详细信息 + + :return: The items of this ListAttackActionResponse. + :rtype: list[CountItem] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListAttackActionResponse. + + CountItem详细信息 + + :param items: The items of this ListAttackActionResponse. + :type: list[CountItem] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListAttackActionResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_attack_distribution_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_attack_distribution_request.py new file mode 100644 index 0000000000..3e12dd9331 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_attack_distribution_request.py @@ -0,0 +1,189 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListAttackDistributionRequest: + + + """ + 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 = { + '_from': 'int', + 'to': 'int', + 'hosts': 'str', + 'instances': 'str' + } + + attribute_map = { + '_from': 'from', + 'to': 'to', + 'hosts': 'hosts', + 'instances': 'instances' + } + + def __init__(self, _from=None, to=None, hosts=None, instances=None): + """ListAttackDistributionRequest - a model defined in huaweicloud sdk""" + + + + self.__from = None + self._to = None + self._hosts = None + self._instances = None + self.discriminator = None + + self._from = _from + self.to = to + if hosts is not None: + self.hosts = hosts + if instances is not None: + self.instances = instances + + @property + def _from(self): + """Gets the _from of this ListAttackDistributionRequest. + + 起始时间 + + :return: The _from of this ListAttackDistributionRequest. + :rtype: int + """ + return self.__from + + @_from.setter + def _from(self, _from): + """Sets the _from of this ListAttackDistributionRequest. + + 起始时间 + + :param _from: The _from of this ListAttackDistributionRequest. + :type: int + """ + self.__from = _from + + @property + def to(self): + """Gets the to of this ListAttackDistributionRequest. + + 结束时间 + + :return: The to of this ListAttackDistributionRequest. + :rtype: int + """ + return self._to + + @to.setter + def to(self, to): + """Sets the to of this ListAttackDistributionRequest. + + 结束时间 + + :param to: The to of this ListAttackDistributionRequest. + :type: int + """ + self._to = to + + @property + def hosts(self): + """Gets the hosts of this ListAttackDistributionRequest. + + 要查询域名列表 + + :return: The hosts of this ListAttackDistributionRequest. + :rtype: str + """ + return self._hosts + + @hosts.setter + def hosts(self, hosts): + """Sets the hosts of this ListAttackDistributionRequest. + + 要查询域名列表 + + :param hosts: The hosts of this ListAttackDistributionRequest. + :type: str + """ + self._hosts = hosts + + @property + def instances(self): + """Gets the instances of this ListAttackDistributionRequest. + + 要查询实例列表 + + :return: The instances of this ListAttackDistributionRequest. + :rtype: str + """ + return self._instances + + @instances.setter + def instances(self, instances): + """Sets the instances of this ListAttackDistributionRequest. + + 要查询实例列表 + + :param instances: The instances of this ListAttackDistributionRequest. + :type: str + """ + self._instances = instances + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListAttackDistributionRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_attack_distribution_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_attack_distribution_response.py new file mode 100644 index 0000000000..7e53f0f2f7 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_attack_distribution_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListAttackDistributionResponse(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[CountItem]' + } + + attribute_map = { + 'total': 'total', + 'items': 'items' + } + + def __init__(self, total=None, items=None): + """ListAttackDistributionResponse - a model defined in huaweicloud sdk""" + + super(ListAttackDistributionResponse, 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 ListAttackDistributionResponse. + + CountItem的总数量 + + :return: The total of this ListAttackDistributionResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListAttackDistributionResponse. + + CountItem的总数量 + + :param total: The total of this ListAttackDistributionResponse. + :type: int + """ + self._total = total + + @property + def items(self): + """Gets the items of this ListAttackDistributionResponse. + + CountItem详细信息 + + :return: The items of this ListAttackDistributionResponse. + :rtype: list[CountItem] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListAttackDistributionResponse. + + CountItem详细信息 + + :param items: The items of this ListAttackDistributionResponse. + :type: list[CountItem] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListAttackDistributionResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_bandwidth_timeline_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_bandwidth_timeline_request.py new file mode 100644 index 0000000000..de6c51aa65 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_bandwidth_timeline_request.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListBandwidthTimelineRequest: + + + """ + 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 = { + '_from': 'int', + 'to': 'int', + 'hosts': 'str', + 'instances': 'str', + 'group_by': 'str' + } + + attribute_map = { + '_from': 'from', + 'to': 'to', + 'hosts': 'hosts', + 'instances': 'instances', + 'group_by': 'group_by' + } + + def __init__(self, _from=None, to=None, hosts=None, instances=None, group_by=None): + """ListBandwidthTimelineRequest - a model defined in huaweicloud sdk""" + + + + self.__from = None + self._to = None + self._hosts = None + self._instances = None + self._group_by = None + self.discriminator = None + + self._from = _from + self.to = to + if hosts is not None: + self.hosts = hosts + if instances is not None: + self.instances = instances + if group_by is not None: + self.group_by = group_by + + @property + def _from(self): + """Gets the _from of this ListBandwidthTimelineRequest. + + 起始时间 + + :return: The _from of this ListBandwidthTimelineRequest. + :rtype: int + """ + return self.__from + + @_from.setter + def _from(self, _from): + """Sets the _from of this ListBandwidthTimelineRequest. + + 起始时间 + + :param _from: The _from of this ListBandwidthTimelineRequest. + :type: int + """ + self.__from = _from + + @property + def to(self): + """Gets the to of this ListBandwidthTimelineRequest. + + 结束时间 + + :return: The to of this ListBandwidthTimelineRequest. + :rtype: int + """ + return self._to + + @to.setter + def to(self, to): + """Sets the to of this ListBandwidthTimelineRequest. + + 结束时间 + + :param to: The to of this ListBandwidthTimelineRequest. + :type: int + """ + self._to = to + + @property + def hosts(self): + """Gets the hosts of this ListBandwidthTimelineRequest. + + 要查询域名列表 + + :return: The hosts of this ListBandwidthTimelineRequest. + :rtype: str + """ + return self._hosts + + @hosts.setter + def hosts(self, hosts): + """Sets the hosts of this ListBandwidthTimelineRequest. + + 要查询域名列表 + + :param hosts: The hosts of this ListBandwidthTimelineRequest. + :type: str + """ + self._hosts = hosts + + @property + def instances(self): + """Gets the instances of this ListBandwidthTimelineRequest. + + 要查询实例列表 + + :return: The instances of this ListBandwidthTimelineRequest. + :rtype: str + """ + return self._instances + + @instances.setter + def instances(self, instances): + """Sets the instances of this ListBandwidthTimelineRequest. + + 要查询实例列表 + + :param instances: The instances of this ListBandwidthTimelineRequest. + :type: str + """ + self._instances = instances + + @property + def group_by(self): + """Gets the group_by of this ListBandwidthTimelineRequest. + + 展示维度,按天展示时传\"DAY\" + + :return: The group_by of this ListBandwidthTimelineRequest. + :rtype: str + """ + return self._group_by + + @group_by.setter + def group_by(self, group_by): + """Sets the group_by of this ListBandwidthTimelineRequest. + + 展示维度,按天展示时传\"DAY\" + + :param group_by: The group_by of this ListBandwidthTimelineRequest. + :type: str + """ + self._group_by = group_by + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListBandwidthTimelineRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_bandwidth_timeline_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_bandwidth_timeline_response.py new file mode 100644 index 0000000000..fbd8b3ca4e --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_bandwidth_timeline_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListBandwidthTimelineResponse(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[StatisticsTimelineItem]' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """ListBandwidthTimelineResponse - a model defined in huaweicloud sdk""" + + super(ListBandwidthTimelineResponse, 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 ListBandwidthTimelineResponse. + + 安全统计的时间线 + + :return: The body of this ListBandwidthTimelineResponse. + :rtype: list[StatisticsTimelineItem] + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ListBandwidthTimelineResponse. + + 安全统计的时间线 + + :param body: The body of this ListBandwidthTimelineResponse. + :type: list[StatisticsTimelineItem] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListBandwidthTimelineResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_cc_rules_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_cc_rules_request.py new file mode 100644 index 0000000000..3375ec84fc --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_cc_rules_request.py @@ -0,0 +1,163 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListCcRulesRequest: + + + """ + 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', + 'offset': 'int', + 'limit': 'int' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, policy_id=None, offset=None, limit=None): + """ListCcRulesRequest - a model defined in huaweicloud sdk""" + + + + self._policy_id = None + self._offset = None + self._limit = None + self.discriminator = None + + self.policy_id = policy_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + + @property + def policy_id(self): + """Gets the policy_id of this ListCcRulesRequest. + + policyid + + :return: The policy_id of this ListCcRulesRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this ListCcRulesRequest. + + policyid + + :param policy_id: The policy_id of this ListCcRulesRequest. + :type: str + """ + self._policy_id = policy_id + + @property + def offset(self): + """Gets the offset of this ListCcRulesRequest. + + offset + + :return: The offset of this ListCcRulesRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListCcRulesRequest. + + offset + + :param offset: The offset of this ListCcRulesRequest. + :type: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListCcRulesRequest. + + limit + + :return: The limit of this ListCcRulesRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListCcRulesRequest. + + limit + + :param limit: The limit of this ListCcRulesRequest. + :type: int + """ + self._limit = limit + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListCcRulesRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_cc_rules_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_cc_rules_response.py new file mode 100644 index 0000000000..c8cd0a7d94 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_cc_rules_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListCcRulesResponse(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[CcrulePostInfo]' + } + + attribute_map = { + 'total': 'total', + 'items': 'items' + } + + def __init__(self, total=None, items=None): + """ListCcRulesResponse - a model defined in huaweicloud sdk""" + + super(ListCcRulesResponse, 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 ListCcRulesResponse. + + 该策略下cc规则数量 + + :return: The total of this ListCcRulesResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListCcRulesResponse. + + 该策略下cc规则数量 + + :param total: The total of this ListCcRulesResponse. + :type: int + """ + self._total = total + + @property + def items(self): + """Gets the items of this ListCcRulesResponse. + + cc规则对象列表 + + :return: The items of this ListCcRulesResponse. + :rtype: list[CcrulePostInfo] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListCcRulesResponse. + + cc规则对象列表 + + :param items: The items of this ListCcRulesResponse. + :type: list[CcrulePostInfo] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListCcRulesResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_certificates_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_certificates_request.py new file mode 100644 index 0000000000..f08c806a7c --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_certificates_request.py @@ -0,0 +1,218 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListCertificatesRequest: + + + """ + 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 = { + 'page': 'int', + 'pagesize': 'int', + 'name': 'str', + 'host': 'bool', + 'exp_status': 'int' + } + + attribute_map = { + 'page': 'page', + 'pagesize': 'pagesize', + 'name': 'name', + 'host': 'host', + 'exp_status': 'exp_status' + } + + def __init__(self, page=None, pagesize=None, name=None, host=None, exp_status=None): + """ListCertificatesRequest - a model defined in huaweicloud sdk""" + + + + self._page = None + self._pagesize = None + self._name = None + self._host = None + self._exp_status = None + self.discriminator = None + + if page is not None: + self.page = page + if pagesize is not None: + self.pagesize = pagesize + if name is not None: + self.name = name + if host is not None: + self.host = host + if exp_status is not None: + self.exp_status = exp_status + + @property + def page(self): + """Gets the page of this ListCertificatesRequest. + + page + + :return: The page of this ListCertificatesRequest. + :rtype: int + """ + return self._page + + @page.setter + def page(self, page): + """Sets the page of this ListCertificatesRequest. + + page + + :param page: The page of this ListCertificatesRequest. + :type: int + """ + self._page = page + + @property + def pagesize(self): + """Gets the pagesize of this ListCertificatesRequest. + + pagesize + + :return: The pagesize of this ListCertificatesRequest. + :rtype: int + """ + return self._pagesize + + @pagesize.setter + def pagesize(self, pagesize): + """Sets the pagesize of this ListCertificatesRequest. + + pagesize + + :param pagesize: The pagesize of this ListCertificatesRequest. + :type: int + """ + self._pagesize = pagesize + + @property + def name(self): + """Gets the name of this ListCertificatesRequest. + + 证书名称 + + :return: The name of this ListCertificatesRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ListCertificatesRequest. + + 证书名称 + + :param name: The name of this ListCertificatesRequest. + :type: str + """ + self._name = name + + @property + def host(self): + """Gets the host of this ListCertificatesRequest. + + 是否获取证书关联的域名 + + :return: The host of this ListCertificatesRequest. + :rtype: bool + """ + return self._host + + @host.setter + def host(self, host): + """Sets the host of this ListCertificatesRequest. + + 是否获取证书关联的域名 + + :param host: The host of this ListCertificatesRequest. + :type: bool + """ + self._host = host + + @property + def exp_status(self): + """Gets the exp_status of this ListCertificatesRequest. + + 证书过期状态,0-未过期,1-已过期,2-即将过期 + + :return: The exp_status of this ListCertificatesRequest. + :rtype: int + """ + return self._exp_status + + @exp_status.setter + def exp_status(self, exp_status): + """Sets the exp_status of this ListCertificatesRequest. + + 证书过期状态,0-未过期,1-已过期,2-即将过期 + + :param exp_status: The exp_status of this ListCertificatesRequest. + :type: int + """ + self._exp_status = exp_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListCertificatesRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_certificates_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_certificates_response.py new file mode 100644 index 0000000000..65115e0819 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_certificates_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListCertificatesResponse(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 = { + 'items': 'list[CertificateBody]', + 'total': 'int' + } + + attribute_map = { + 'items': 'items', + 'total': 'total' + } + + def __init__(self, items=None, total=None): + """ListCertificatesResponse - a model defined in huaweicloud sdk""" + + super(ListCertificatesResponse, self).__init__() + + self._items = None + self._total = None + self.discriminator = None + + if items is not None: + self.items = items + if total is not None: + self.total = total + + @property + def items(self): + """Gets the items of this ListCertificatesResponse. + + 证书列表 + + :return: The items of this ListCertificatesResponse. + :rtype: list[CertificateBody] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListCertificatesResponse. + + 证书列表 + + :param items: The items of this ListCertificatesResponse. + :type: list[CertificateBody] + """ + self._items = items + + @property + def total(self): + """Gets the total of this ListCertificatesResponse. + + 证书总数 + + :return: The total of this ListCertificatesResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListCertificatesResponse. + + 证书总数 + + :param total: The total of this ListCertificatesResponse. + :type: int + """ + self._total = total + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListCertificatesResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_custom_rules_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_custom_rules_request.py new file mode 100644 index 0000000000..0bfd2f87a2 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_custom_rules_request.py @@ -0,0 +1,163 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListCustomRulesRequest: + + + """ + 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', + 'offset': 'int', + 'limit': 'int' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, policy_id=None, offset=None, limit=None): + """ListCustomRulesRequest - a model defined in huaweicloud sdk""" + + + + self._policy_id = None + self._offset = None + self._limit = None + self.discriminator = None + + self.policy_id = policy_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + + @property + def policy_id(self): + """Gets the policy_id of this ListCustomRulesRequest. + + policyid + + :return: The policy_id of this ListCustomRulesRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this ListCustomRulesRequest. + + policyid + + :param policy_id: The policy_id of this ListCustomRulesRequest. + :type: str + """ + self._policy_id = policy_id + + @property + def offset(self): + """Gets the offset of this ListCustomRulesRequest. + + offset + + :return: The offset of this ListCustomRulesRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListCustomRulesRequest. + + offset + + :param offset: The offset of this ListCustomRulesRequest. + :type: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListCustomRulesRequest. + + limit + + :return: The limit of this ListCustomRulesRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListCustomRulesRequest. + + limit + + :param limit: The limit of this ListCustomRulesRequest. + :type: int + """ + self._limit = limit + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListCustomRulesRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_custom_rules_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_custom_rules_response.py new file mode 100644 index 0000000000..73c5095c32 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_custom_rules_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListCustomRulesResponse(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[CustomPostBody]' + } + + attribute_map = { + 'total': 'total', + 'items': 'items' + } + + def __init__(self, total=None, items=None): + """ListCustomRulesResponse - a model defined in huaweicloud sdk""" + + super(ListCustomRulesResponse, 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 ListCustomRulesResponse. + + 该策略下设置的精准防护规则总数量 + + :return: The total of this ListCustomRulesResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListCustomRulesResponse. + + 该策略下设置的精准防护规则总数量 + + :param total: The total of this ListCustomRulesResponse. + :type: int + """ + self._total = total + + @property + def items(self): + """Gets the items of this ListCustomRulesResponse. + + 精准防护规则的对象列表 + + :return: The items of this ListCustomRulesResponse. + :rtype: list[CustomPostBody] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListCustomRulesResponse. + + 精准防护规则的对象列表 + + :param items: The items of this ListCustomRulesResponse. + :type: list[CustomPostBody] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListCustomRulesResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_event_by_timeline_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_event_by_timeline_request.py new file mode 100644 index 0000000000..9117e8df85 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_event_by_timeline_request.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListEventByTimelineRequest: + + + """ + 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', + 'hosts': 'list[str]' + } + + attribute_map = { + 'recent': 'recent', + 'hosts': 'hosts' + } + + def __init__(self, recent=None, hosts=None): + """ListEventByTimelineRequest - a model defined in huaweicloud sdk""" + + + + self._recent = None + self._hosts = None + self.discriminator = None + + self.recent = recent + if hosts is not None: + self.hosts = hosts + + @property + def recent(self): + """Gets the recent of this ListEventByTimelineRequest. + + 要查询事件时间范围 + + :return: The recent of this ListEventByTimelineRequest. + :rtype: str + """ + return self._recent + + @recent.setter + def recent(self, recent): + """Sets the recent of this ListEventByTimelineRequest. + + 要查询事件时间范围 + + :param recent: The recent of this ListEventByTimelineRequest. + :type: str + """ + self._recent = recent + + @property + def hosts(self): + """Gets the hosts of this ListEventByTimelineRequest. + + 要查询事件的域名列表 + + :return: The hosts of this ListEventByTimelineRequest. + :rtype: list[str] + """ + return self._hosts + + @hosts.setter + def hosts(self, hosts): + """Sets the hosts of this ListEventByTimelineRequest. + + 要查询事件的域名列表 + + :param hosts: The hosts of this ListEventByTimelineRequest. + :type: list[str] + """ + self._hosts = hosts + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListEventByTimelineRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_event_by_timeline_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_event_by_timeline_response.py new file mode 100644 index 0000000000..ebb641eab6 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_event_by_timeline_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListEventByTimelineResponse(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 = { + 'requests': 'list[StatisticListInfoRequests]', + 'attacks': 'list[StatisticListInfoRequests]' + } + + attribute_map = { + 'requests': 'requests', + 'attacks': 'attacks' + } + + def __init__(self, requests=None, attacks=None): + """ListEventByTimelineResponse - a model defined in huaweicloud sdk""" + + super(ListEventByTimelineResponse, self).__init__() + + self._requests = None + self._attacks = None + self.discriminator = None + + if requests is not None: + self.requests = requests + if attacks is not None: + self.attacks = attacks + + @property + def requests(self): + """Gets the requests of this ListEventByTimelineResponse. + + 请求个数列表 + + :return: The requests of this ListEventByTimelineResponse. + :rtype: list[StatisticListInfoRequests] + """ + return self._requests + + @requests.setter + def requests(self, requests): + """Sets the requests of this ListEventByTimelineResponse. + + 请求个数列表 + + :param requests: The requests of this ListEventByTimelineResponse. + :type: list[StatisticListInfoRequests] + """ + self._requests = requests + + @property + def attacks(self): + """Gets the attacks of this ListEventByTimelineResponse. + + 攻击个数列表 + + :return: The attacks of this ListEventByTimelineResponse. + :rtype: list[StatisticListInfoRequests] + """ + return self._attacks + + @attacks.setter + def attacks(self, attacks): + """Sets the attacks of this ListEventByTimelineResponse. + + 攻击个数列表 + + :param attacks: The attacks of this ListEventByTimelineResponse. + :type: list[StatisticListInfoRequests] + """ + self._attacks = attacks + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListEventByTimelineResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_events_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_events_request.py new file mode 100644 index 0000000000..8b794505fd --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_events_request.py @@ -0,0 +1,190 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListEventsRequest: + + + """ + 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', + 'hosts': 'list[str]', + 'page': 'int', + 'pagesize': 'int' + } + + attribute_map = { + 'recent': 'recent', + 'hosts': 'hosts', + 'page': 'page', + 'pagesize': 'pagesize' + } + + def __init__(self, recent=None, hosts=None, page=None, pagesize=None): + """ListEventsRequest - a model defined in huaweicloud sdk""" + + + + self._recent = None + self._hosts = None + self._page = None + self._pagesize = None + self.discriminator = None + + self.recent = recent + if hosts is not None: + self.hosts = hosts + if page is not None: + self.page = page + if pagesize is not None: + self.pagesize = pagesize + + @property + def recent(self): + """Gets the recent of this ListEventsRequest. + + 查询日志的时间范围 + + :return: The recent of this ListEventsRequest. + :rtype: str + """ + return self._recent + + @recent.setter + def recent(self, recent): + """Sets the recent of this ListEventsRequest. + + 查询日志的时间范围 + + :param recent: The recent of this ListEventsRequest. + :type: str + """ + self._recent = recent + + @property + def hosts(self): + """Gets the hosts of this ListEventsRequest. + + 查询指定host列表的日志 + + :return: The hosts of this ListEventsRequest. + :rtype: list[str] + """ + return self._hosts + + @hosts.setter + def hosts(self, hosts): + """Sets the hosts of this ListEventsRequest. + + 查询指定host列表的日志 + + :param hosts: The hosts of this ListEventsRequest. + :type: list[str] + """ + self._hosts = hosts + + @property + def page(self): + """Gets the page of this ListEventsRequest. + + 查询列表的页数 + + :return: The page of this ListEventsRequest. + :rtype: int + """ + return self._page + + @page.setter + def page(self, page): + """Sets the page of this ListEventsRequest. + + 查询列表的页数 + + :param page: The page of this ListEventsRequest. + :type: int + """ + self._page = page + + @property + def pagesize(self): + """Gets the pagesize of this ListEventsRequest. + + 查询列表每一页的条数 + + :return: The pagesize of this ListEventsRequest. + :rtype: int + """ + return self._pagesize + + @pagesize.setter + def pagesize(self, pagesize): + """Sets the pagesize of this ListEventsRequest. + + 查询列表每一页的条数 + + :param pagesize: The pagesize of this ListEventsRequest. + :type: int + """ + self._pagesize = pagesize + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListEventsRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_events_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_events_response.py new file mode 100644 index 0000000000..2a851e6556 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_events_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListEventsResponse(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[EventsListInfoItems]' + } + + attribute_map = { + 'total': 'total', + 'items': 'items' + } + + def __init__(self, total=None, items=None): + """ListEventsResponse - a model defined in huaweicloud sdk""" + + super(ListEventsResponse, 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 ListEventsResponse. + + 攻击事件数量 + + :return: The total of this ListEventsResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListEventsResponse. + + 攻击事件数量 + + :param total: The total of this ListEventsResponse. + :type: int + """ + self._total = total + + @property + def items(self): + """Gets the items of this ListEventsResponse. + + 攻击事件详情 + + :return: The items of this ListEventsResponse. + :rtype: list[EventsListInfoItems] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListEventsResponse. + + 攻击事件详情 + + :param items: The items of this ListEventsResponse. + :type: list[EventsListInfoItems] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListEventsResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_geoip_rules_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_geoip_rules_request.py new file mode 100644 index 0000000000..fce84f383d --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_geoip_rules_request.py @@ -0,0 +1,163 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListGeoipRulesRequest: + + + """ + 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', + 'offset': 'int', + 'limit': 'int' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, policy_id=None, offset=None, limit=None): + """ListGeoipRulesRequest - a model defined in huaweicloud sdk""" + + + + self._policy_id = None + self._offset = None + self._limit = None + self.discriminator = None + + self.policy_id = policy_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + + @property + def policy_id(self): + """Gets the policy_id of this ListGeoipRulesRequest. + + policyid + + :return: The policy_id of this ListGeoipRulesRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this ListGeoipRulesRequest. + + policyid + + :param policy_id: The policy_id of this ListGeoipRulesRequest. + :type: str + """ + self._policy_id = policy_id + + @property + def offset(self): + """Gets the offset of this ListGeoipRulesRequest. + + offset + + :return: The offset of this ListGeoipRulesRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListGeoipRulesRequest. + + offset + + :param offset: The offset of this ListGeoipRulesRequest. + :type: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListGeoipRulesRequest. + + limit + + :return: The limit of this ListGeoipRulesRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListGeoipRulesRequest. + + limit + + :param limit: The limit of this ListGeoipRulesRequest. + :type: int + """ + self._limit = limit + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListGeoipRulesRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_geoip_rules_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_geoip_rules_response.py new file mode 100644 index 0000000000..705f357523 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_geoip_rules_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListGeoipRulesResponse(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[PolicyGeoIpListInfoItems]' + } + + attribute_map = { + 'total': 'total', + 'items': 'items' + } + + def __init__(self, total=None, items=None): + """ListGeoipRulesResponse - a model defined in huaweicloud sdk""" + + super(ListGeoipRulesResponse, 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 ListGeoipRulesResponse. + + 该策略下地理位置封禁数量 + + :return: The total of this ListGeoipRulesResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListGeoipRulesResponse. + + 该策略下地理位置封禁数量 + + :param total: The total of this ListGeoipRulesResponse. + :type: int + """ + self._total = total + + @property + def items(self): + """Gets the items of this ListGeoipRulesResponse. + + 地理位置封禁列表 + + :return: The items of this ListGeoipRulesResponse. + :rtype: list[PolicyGeoIpListInfoItems] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListGeoipRulesResponse. + + 地理位置封禁列表 + + :param items: The items of this ListGeoipRulesResponse. + :type: list[PolicyGeoIpListInfoItems] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListGeoipRulesResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_instance_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_instance_request.py new file mode 100644 index 0000000000..10a2dea46f --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_instance_request.py @@ -0,0 +1,164 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListInstanceRequest: + + + """ + 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 = { + 'page': 'int', + 'pagesize': 'int', + 'instancename': 'str' + } + + attribute_map = { + 'page': 'page', + 'pagesize': 'pagesize', + 'instancename': 'instancename' + } + + def __init__(self, page=None, pagesize=None, instancename=None): + """ListInstanceRequest - a model defined in huaweicloud sdk""" + + + + self._page = None + self._pagesize = None + self._instancename = None + self.discriminator = None + + if page is not None: + self.page = page + if pagesize is not None: + self.pagesize = pagesize + if instancename is not None: + self.instancename = instancename + + @property + def page(self): + """Gets the page of this ListInstanceRequest. + + 页数 + + :return: The page of this ListInstanceRequest. + :rtype: int + """ + return self._page + + @page.setter + def page(self, page): + """Sets the page of this ListInstanceRequest. + + 页数 + + :param page: The page of this ListInstanceRequest. + :type: int + """ + self._page = page + + @property + def pagesize(self): + """Gets the pagesize of this ListInstanceRequest. + + 每页数量 + + :return: The pagesize of this ListInstanceRequest. + :rtype: int + """ + return self._pagesize + + @pagesize.setter + def pagesize(self, pagesize): + """Sets the pagesize of this ListInstanceRequest. + + 每页数量 + + :param pagesize: The pagesize of this ListInstanceRequest. + :type: int + """ + self._pagesize = pagesize + + @property + def instancename(self): + """Gets the instancename of this ListInstanceRequest. + + 独享引擎名称 + + :return: The instancename of this ListInstanceRequest. + :rtype: str + """ + return self._instancename + + @instancename.setter + def instancename(self, instancename): + """Sets the instancename of this ListInstanceRequest. + + 独享引擎名称 + + :param instancename: The instancename of this ListInstanceRequest. + :type: str + """ + self._instancename = instancename + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListInstanceRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_instance_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_instance_response.py new file mode 100644 index 0000000000..79b4d5344b --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_instance_response.py @@ -0,0 +1,164 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListInstanceResponse(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', + 'purchased': 'bool', + 'items': 'list[PremiumWafInstance]' + } + + attribute_map = { + 'total': 'total', + 'purchased': 'purchased', + 'items': 'items' + } + + def __init__(self, total=None, purchased=None, items=None): + """ListInstanceResponse - a model defined in huaweicloud sdk""" + + super(ListInstanceResponse, self).__init__() + + self._total = None + self._purchased = None + self._items = None + self.discriminator = None + + if total is not None: + self.total = total + if purchased is not None: + self.purchased = purchased + if items is not None: + self.items = items + + @property + def total(self): + """Gets the total of this ListInstanceResponse. + + 全部独享引擎的数量 + + :return: The total of this ListInstanceResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListInstanceResponse. + + 全部独享引擎的数量 + + :param total: The total of this ListInstanceResponse. + :type: int + """ + self._total = total + + @property + def purchased(self): + """Gets the purchased of this ListInstanceResponse. + + 是否曾经购买过独享引擎 + + :return: The purchased of this ListInstanceResponse. + :rtype: bool + """ + return self._purchased + + @purchased.setter + def purchased(self, purchased): + """Sets the purchased of this ListInstanceResponse. + + 是否曾经购买过独享引擎 + + :param purchased: The purchased of this ListInstanceResponse. + :type: bool + """ + self._purchased = purchased + + @property + def items(self): + """Gets the items of this ListInstanceResponse. + + 详细的独享引擎信息 + + :return: The items of this ListInstanceResponse. + :rtype: list[PremiumWafInstance] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListInstanceResponse. + + 详细的独享引擎信息 + + :param items: The items of this ListInstanceResponse. + :type: list[PremiumWafInstance] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListInstanceResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_instanes_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_instanes_request.py new file mode 100644 index 0000000000..74c716a644 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_instanes_request.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListInstanesRequest: + + + """ + 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 = { + 'offset': 'int', + 'limit': 'int' + } + + attribute_map = { + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, offset=None, limit=None): + """ListInstanesRequest - a model defined in huaweicloud sdk""" + + + + self._offset = None + self._limit = None + self.discriminator = None + + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + + @property + def offset(self): + """Gets the offset of this ListInstanesRequest. + + offset + + :return: The offset of this ListInstanesRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListInstanesRequest. + + offset + + :param offset: The offset of this ListInstanesRequest. + :type: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListInstanesRequest. + + limit + + :return: The limit of this ListInstanesRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListInstanesRequest. + + limit + + :param limit: The limit of this ListInstanesRequest. + :type: int + """ + self._limit = limit + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListInstanesRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_instanes_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_instanes_response.py new file mode 100644 index 0000000000..e728350912 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_instanes_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListInstanesResponse(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[InstanceResponse]' + } + + attribute_map = { + 'total': 'total', + 'items': 'items' + } + + def __init__(self, total=None, items=None): + """ListInstanesResponse - a model defined in huaweicloud sdk""" + + super(ListInstanesResponse, 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 ListInstanesResponse. + + 云模式防护域名的数量 + + :return: The total of this ListInstanesResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListInstanesResponse. + + 云模式防护域名的数量 + + :param total: The total of this ListInstanesResponse. + :type: int + """ + self._total = total + + @property + def items(self): + """Gets the items of this ListInstanesResponse. + + 详细的防护域名信息 + + :return: The items of this ListInstanesResponse. + :rtype: list[InstanceResponse] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListInstanesResponse. + + 详细的防护域名信息 + + :param items: The items of this ListInstanesResponse. + :type: list[InstanceResponse] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListInstanesResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_policy_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_policy_request.py new file mode 100644 index 0000000000..43007f03a9 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_policy_request.py @@ -0,0 +1,164 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListPolicyRequest: + + + """ + 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 = { + 'page': 'int', + 'pagesize': 'int', + 'name': 'str' + } + + attribute_map = { + 'page': 'page', + 'pagesize': 'pagesize', + 'name': 'name' + } + + def __init__(self, page=None, pagesize=None, name=None): + """ListPolicyRequest - a model defined in huaweicloud sdk""" + + + + self._page = None + self._pagesize = None + self._name = None + self.discriminator = None + + if page is not None: + self.page = page + if pagesize is not None: + self.pagesize = pagesize + if name is not None: + self.name = name + + @property + def page(self): + """Gets the page of this ListPolicyRequest. + + page + + :return: The page of this ListPolicyRequest. + :rtype: int + """ + return self._page + + @page.setter + def page(self, page): + """Sets the page of this ListPolicyRequest. + + page + + :param page: The page of this ListPolicyRequest. + :type: int + """ + self._page = page + + @property + def pagesize(self): + """Gets the pagesize of this ListPolicyRequest. + + pagesize + + :return: The pagesize of this ListPolicyRequest. + :rtype: int + """ + return self._pagesize + + @pagesize.setter + def pagesize(self, pagesize): + """Sets the pagesize of this ListPolicyRequest. + + pagesize + + :param pagesize: The pagesize of this ListPolicyRequest. + :type: int + """ + self._pagesize = pagesize + + @property + def name(self): + """Gets the name of this ListPolicyRequest. + + name + + :return: The name of this ListPolicyRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ListPolicyRequest. + + name + + :param name: The name of this ListPolicyRequest. + :type: str + """ + self._name = 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListPolicyRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_policy_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_policy_response.py new file mode 100644 index 0000000000..89764480b6 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_policy_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListPolicyResponse(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[PolicyResponse]' + } + + attribute_map = { + 'total': 'total', + 'items': 'items' + } + + def __init__(self, total=None, items=None): + """ListPolicyResponse - a model defined in huaweicloud sdk""" + + super(ListPolicyResponse, 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 ListPolicyResponse. + + 防护策略的数量 + + :return: The total of this ListPolicyResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListPolicyResponse. + + 防护策略的数量 + + :param total: The total of this ListPolicyResponse. + :type: int + """ + self._total = total + + @property + def items(self): + """Gets the items of this ListPolicyResponse. + + 防护策略的具体内容 + + :return: The items of this ListPolicyResponse. + :rtype: list[PolicyResponse] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListPolicyResponse. + + 防护策略的具体内容 + + :param items: The items of this ListPolicyResponse. + :type: list[PolicyResponse] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListPolicyResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_pools_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_pools_request.py new file mode 100644 index 0000000000..4599670bb7 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_pools_request.py @@ -0,0 +1,218 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListPoolsRequest: + + + """ + 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 = { + 'page': 'int', + 'pagesize': 'int', + 'name': 'str', + 'vpc_id': 'str', + 'detail': 'bool' + } + + attribute_map = { + 'page': 'page', + 'pagesize': 'pagesize', + 'name': 'name', + 'vpc_id': 'vpc_id', + 'detail': 'detail' + } + + def __init__(self, page=None, pagesize=None, name=None, vpc_id=None, detail=None): + """ListPoolsRequest - a model defined in huaweicloud sdk""" + + + + self._page = None + self._pagesize = None + self._name = None + self._vpc_id = None + self._detail = None + self.discriminator = None + + if page is not None: + self.page = page + if pagesize is not None: + self.pagesize = pagesize + if name is not None: + self.name = name + if vpc_id is not None: + self.vpc_id = vpc_id + if detail is not None: + self.detail = detail + + @property + def page(self): + """Gets the page of this ListPoolsRequest. + + 当前页数 + + :return: The page of this ListPoolsRequest. + :rtype: int + """ + return self._page + + @page.setter + def page(self, page): + """Sets the page of this ListPoolsRequest. + + 当前页数 + + :param page: The page of this ListPoolsRequest. + :type: int + """ + self._page = page + + @property + def pagesize(self): + """Gets the pagesize of this ListPoolsRequest. + + 页内项目数 + + :return: The pagesize of this ListPoolsRequest. + :rtype: int + """ + return self._pagesize + + @pagesize.setter + def pagesize(self, pagesize): + """Sets the pagesize of this ListPoolsRequest. + + 页内项目数 + + :param pagesize: The pagesize of this ListPoolsRequest. + :type: int + """ + self._pagesize = pagesize + + @property + def name(self): + """Gets the name of this ListPoolsRequest. + + WAF组名称 + + :return: The name of this ListPoolsRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ListPoolsRequest. + + WAF组名称 + + :param name: The name of this ListPoolsRequest. + :type: str + """ + self._name = name + + @property + def vpc_id(self): + """Gets the vpc_id of this ListPoolsRequest. + + WAF组所在VPC ID + + :return: The vpc_id of this ListPoolsRequest. + :rtype: str + """ + return self._vpc_id + + @vpc_id.setter + def vpc_id(self, vpc_id): + """Sets the vpc_id of this ListPoolsRequest. + + WAF组所在VPC ID + + :param vpc_id: The vpc_id of this ListPoolsRequest. + :type: str + """ + self._vpc_id = vpc_id + + @property + def detail(self): + """Gets the detail of this ListPoolsRequest. + + 是否返回WAF组详情(例如组内域名/实例等) + + :return: The detail of this ListPoolsRequest. + :rtype: bool + """ + return self._detail + + @detail.setter + def detail(self, detail): + """Sets the detail of this ListPoolsRequest. + + 是否返回WAF组详情(例如组内域名/实例等) + + :param detail: The detail of this ListPoolsRequest. + :type: bool + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListPoolsRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_pools_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_pools_response.py new file mode 100644 index 0000000000..5455c82d58 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_pools_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListPoolsResponse(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[PoolInfoResponse]' + } + + attribute_map = { + 'total': 'total', + 'items': 'items' + } + + def __init__(self, total=None, items=None): + """ListPoolsResponse - a model defined in huaweicloud sdk""" + + super(ListPoolsResponse, 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 ListPoolsResponse. + + 查询条件下的WAF独享引擎组总数量 + + :return: The total of this ListPoolsResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListPoolsResponse. + + 查询条件下的WAF独享引擎组总数量 + + :param total: The total of this ListPoolsResponse. + :type: int + """ + self._total = total + + @property + def items(self): + """Gets the items of this ListPoolsResponse. + + WAF独享引擎组的对象列表 + + :return: The items of this ListPoolsResponse. + :rtype: list[PoolInfoResponse] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListPoolsResponse. + + WAF独享引擎组的对象列表 + + :param items: The items of this ListPoolsResponse. + :type: list[PoolInfoResponse] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListPoolsResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_premium_host_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_premium_host_request.py new file mode 100644 index 0000000000..6a0b6bfc21 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_premium_host_request.py @@ -0,0 +1,218 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListPremiumHostRequest: + + + """ + 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 = { + 'page': 'str', + 'pagesize': 'str', + 'hostname': 'str', + 'policyname': 'str', + 'protect_status': 'int' + } + + attribute_map = { + 'page': 'page', + 'pagesize': 'pagesize', + 'hostname': 'hostname', + 'policyname': 'policyname', + 'protect_status': 'protect_status' + } + + def __init__(self, page=None, pagesize=None, hostname=None, policyname=None, protect_status=None): + """ListPremiumHostRequest - a model defined in huaweicloud sdk""" + + + + self._page = None + self._pagesize = None + self._hostname = None + self._policyname = None + self._protect_status = None + self.discriminator = None + + if page is not None: + self.page = page + if pagesize is not None: + self.pagesize = pagesize + if hostname is not None: + self.hostname = hostname + if policyname is not None: + self.policyname = policyname + if protect_status is not None: + self.protect_status = protect_status + + @property + def page(self): + """Gets the page of this ListPremiumHostRequest. + + 页数 + + :return: The page of this ListPremiumHostRequest. + :rtype: str + """ + return self._page + + @page.setter + def page(self, page): + """Sets the page of this ListPremiumHostRequest. + + 页数 + + :param page: The page of this ListPremiumHostRequest. + :type: str + """ + self._page = page + + @property + def pagesize(self): + """Gets the pagesize of this ListPremiumHostRequest. + + 每页数量 + + :return: The pagesize of this ListPremiumHostRequest. + :rtype: str + """ + return self._pagesize + + @pagesize.setter + def pagesize(self, pagesize): + """Sets the pagesize of this ListPremiumHostRequest. + + 每页数量 + + :param pagesize: The pagesize of this ListPremiumHostRequest. + :type: str + """ + self._pagesize = pagesize + + @property + def hostname(self): + """Gets the hostname of this ListPremiumHostRequest. + + 域名 + + :return: The hostname of this ListPremiumHostRequest. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """Sets the hostname of this ListPremiumHostRequest. + + 域名 + + :param hostname: The hostname of this ListPremiumHostRequest. + :type: str + """ + self._hostname = hostname + + @property + def policyname(self): + """Gets the policyname of this ListPremiumHostRequest. + + 策略名称 + + :return: The policyname of this ListPremiumHostRequest. + :rtype: str + """ + return self._policyname + + @policyname.setter + def policyname(self, policyname): + """Sets the policyname of this ListPremiumHostRequest. + + 策略名称 + + :param policyname: The policyname of this ListPremiumHostRequest. + :type: str + """ + self._policyname = policyname + + @property + def protect_status(self): + """Gets the protect_status of this ListPremiumHostRequest. + + 域名防护状态 + + :return: The protect_status of this ListPremiumHostRequest. + :rtype: int + """ + return self._protect_status + + @protect_status.setter + def protect_status(self, protect_status): + """Sets the protect_status of this ListPremiumHostRequest. + + 域名防护状态 + + :param protect_status: The protect_status of this ListPremiumHostRequest. + :type: int + """ + self._protect_status = protect_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListPremiumHostRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_premium_host_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_premium_host_response.py new file mode 100644 index 0000000000..f6c6c0997a --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_premium_host_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListPremiumHostResponse(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[SimplePremiumWafHost]' + } + + attribute_map = { + 'total': 'total', + 'items': 'items' + } + + def __init__(self, total=None, items=None): + """ListPremiumHostResponse - a model defined in huaweicloud sdk""" + + super(ListPremiumHostResponse, 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 ListPremiumHostResponse. + + 全部防护域名的数量 + + :return: The total of this ListPremiumHostResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListPremiumHostResponse. + + 全部防护域名的数量 + + :param total: The total of this ListPremiumHostResponse. + :type: int + """ + self._total = total + + @property + def items(self): + """Gets the items of this ListPremiumHostResponse. + + 详细的防护域名信息 + + :return: The items of this ListPremiumHostResponse. + :rtype: list[SimplePremiumWafHost] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListPremiumHostResponse. + + 详细的防护域名信息 + + :param items: The items of this ListPremiumHostResponse. + :type: list[SimplePremiumWafHost] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListPremiumHostResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_qps_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_qps_request.py new file mode 100644 index 0000000000..2f14091d12 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_qps_request.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListQpsRequest: + + + """ + 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', + 'hosts': 'list[str]' + } + + attribute_map = { + 'recent': 'recent', + 'hosts': 'hosts' + } + + def __init__(self, recent=None, hosts=None): + """ListQpsRequest - a model defined in huaweicloud sdk""" + + + + self._recent = None + self._hosts = None + self.discriminator = None + + self.recent = recent + if hosts is not None: + self.hosts = hosts + + @property + def recent(self): + """Gets the recent of this ListQpsRequest. + + 要查询事件时间范围 + + :return: The recent of this ListQpsRequest. + :rtype: str + """ + return self._recent + + @recent.setter + def recent(self, recent): + """Sets the recent of this ListQpsRequest. + + 要查询事件时间范围 + + :param recent: The recent of this ListQpsRequest. + :type: str + """ + self._recent = recent + + @property + def hosts(self): + """Gets the hosts of this ListQpsRequest. + + 要查询事件的域名列表 + + :return: The hosts of this ListQpsRequest. + :rtype: list[str] + """ + return self._hosts + + @hosts.setter + def hosts(self, hosts): + """Sets the hosts of this ListQpsRequest. + + 要查询事件的域名列表 + + :param hosts: The hosts of this ListQpsRequest. + :type: list[str] + """ + self._hosts = hosts + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListQpsRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_qps_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_qps_response.py new file mode 100644 index 0000000000..2567def147 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_qps_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListQpsResponse(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): + """ListQpsResponse - a model defined in huaweicloud sdk""" + + super(ListQpsResponse, 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 ListQpsResponse. + + 所有请求的每秒请求数 + + :return: The qps of this ListQpsResponse. + :rtype: int + """ + return self._qps + + @qps.setter + def qps(self, qps): + """Sets the qps of this ListQpsResponse. + + 所有请求的每秒请求数 + + :param qps: The qps of this ListQpsResponse. + :type: 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListQpsResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_qps_timeline_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_qps_timeline_request.py new file mode 100644 index 0000000000..437fba7bb9 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_qps_timeline_request.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListQpsTimelineRequest: + + + """ + 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 = { + '_from': 'int', + 'to': 'int', + 'hosts': 'str', + 'instances': 'str', + 'group_by': 'str' + } + + attribute_map = { + '_from': 'from', + 'to': 'to', + 'hosts': 'hosts', + 'instances': 'instances', + 'group_by': 'group_by' + } + + def __init__(self, _from=None, to=None, hosts=None, instances=None, group_by=None): + """ListQpsTimelineRequest - a model defined in huaweicloud sdk""" + + + + self.__from = None + self._to = None + self._hosts = None + self._instances = None + self._group_by = None + self.discriminator = None + + self._from = _from + self.to = to + if hosts is not None: + self.hosts = hosts + if instances is not None: + self.instances = instances + if group_by is not None: + self.group_by = group_by + + @property + def _from(self): + """Gets the _from of this ListQpsTimelineRequest. + + 起始时间 + + :return: The _from of this ListQpsTimelineRequest. + :rtype: int + """ + return self.__from + + @_from.setter + def _from(self, _from): + """Sets the _from of this ListQpsTimelineRequest. + + 起始时间 + + :param _from: The _from of this ListQpsTimelineRequest. + :type: int + """ + self.__from = _from + + @property + def to(self): + """Gets the to of this ListQpsTimelineRequest. + + 结束时间 + + :return: The to of this ListQpsTimelineRequest. + :rtype: int + """ + return self._to + + @to.setter + def to(self, to): + """Sets the to of this ListQpsTimelineRequest. + + 结束时间 + + :param to: The to of this ListQpsTimelineRequest. + :type: int + """ + self._to = to + + @property + def hosts(self): + """Gets the hosts of this ListQpsTimelineRequest. + + 要查询域名列表 + + :return: The hosts of this ListQpsTimelineRequest. + :rtype: str + """ + return self._hosts + + @hosts.setter + def hosts(self, hosts): + """Sets the hosts of this ListQpsTimelineRequest. + + 要查询域名列表 + + :param hosts: The hosts of this ListQpsTimelineRequest. + :type: str + """ + self._hosts = hosts + + @property + def instances(self): + """Gets the instances of this ListQpsTimelineRequest. + + 要查询实例列表 + + :return: The instances of this ListQpsTimelineRequest. + :rtype: str + """ + return self._instances + + @instances.setter + def instances(self, instances): + """Sets the instances of this ListQpsTimelineRequest. + + 要查询实例列表 + + :param instances: The instances of this ListQpsTimelineRequest. + :type: str + """ + self._instances = instances + + @property + def group_by(self): + """Gets the group_by of this ListQpsTimelineRequest. + + 展示维度,按天展示时传\"DAY\" + + :return: The group_by of this ListQpsTimelineRequest. + :rtype: str + """ + return self._group_by + + @group_by.setter + def group_by(self, group_by): + """Sets the group_by of this ListQpsTimelineRequest. + + 展示维度,按天展示时传\"DAY\" + + :param group_by: The group_by of this ListQpsTimelineRequest. + :type: str + """ + self._group_by = group_by + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListQpsTimelineRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_qps_timeline_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_qps_timeline_response.py new file mode 100644 index 0000000000..35d61bde7e --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_qps_timeline_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListQpsTimelineResponse(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[StatisticsTimelineItem]' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """ListQpsTimelineResponse - a model defined in huaweicloud sdk""" + + super(ListQpsTimelineResponse, 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 ListQpsTimelineResponse. + + 安全统计的时间线 + + :return: The body of this ListQpsTimelineResponse. + :rtype: list[StatisticsTimelineItem] + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ListQpsTimelineResponse. + + 安全统计的时间线 + + :param body: The body of this ListQpsTimelineResponse. + :type: list[StatisticsTimelineItem] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListQpsTimelineResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_request_timeline_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_request_timeline_request.py new file mode 100644 index 0000000000..19ba3e3146 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_request_timeline_request.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListRequestTimelineRequest: + + + """ + 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 = { + '_from': 'int', + 'to': 'int', + 'hosts': 'str', + 'instances': 'str', + 'group_by': 'str' + } + + attribute_map = { + '_from': 'from', + 'to': 'to', + 'hosts': 'hosts', + 'instances': 'instances', + 'group_by': 'group_by' + } + + def __init__(self, _from=None, to=None, hosts=None, instances=None, group_by=None): + """ListRequestTimelineRequest - a model defined in huaweicloud sdk""" + + + + self.__from = None + self._to = None + self._hosts = None + self._instances = None + self._group_by = None + self.discriminator = None + + self._from = _from + self.to = to + if hosts is not None: + self.hosts = hosts + if instances is not None: + self.instances = instances + if group_by is not None: + self.group_by = group_by + + @property + def _from(self): + """Gets the _from of this ListRequestTimelineRequest. + + 起始时间 + + :return: The _from of this ListRequestTimelineRequest. + :rtype: int + """ + return self.__from + + @_from.setter + def _from(self, _from): + """Sets the _from of this ListRequestTimelineRequest. + + 起始时间 + + :param _from: The _from of this ListRequestTimelineRequest. + :type: int + """ + self.__from = _from + + @property + def to(self): + """Gets the to of this ListRequestTimelineRequest. + + 结束时间 + + :return: The to of this ListRequestTimelineRequest. + :rtype: int + """ + return self._to + + @to.setter + def to(self, to): + """Sets the to of this ListRequestTimelineRequest. + + 结束时间 + + :param to: The to of this ListRequestTimelineRequest. + :type: int + """ + self._to = to + + @property + def hosts(self): + """Gets the hosts of this ListRequestTimelineRequest. + + 要查询域名列表 + + :return: The hosts of this ListRequestTimelineRequest. + :rtype: str + """ + return self._hosts + + @hosts.setter + def hosts(self, hosts): + """Sets the hosts of this ListRequestTimelineRequest. + + 要查询域名列表 + + :param hosts: The hosts of this ListRequestTimelineRequest. + :type: str + """ + self._hosts = hosts + + @property + def instances(self): + """Gets the instances of this ListRequestTimelineRequest. + + 要查询实例列表 + + :return: The instances of this ListRequestTimelineRequest. + :rtype: str + """ + return self._instances + + @instances.setter + def instances(self, instances): + """Sets the instances of this ListRequestTimelineRequest. + + 要查询实例列表 + + :param instances: The instances of this ListRequestTimelineRequest. + :type: str + """ + self._instances = instances + + @property + def group_by(self): + """Gets the group_by of this ListRequestTimelineRequest. + + 展示维度,按天展示时传\"DAY\" + + :return: The group_by of this ListRequestTimelineRequest. + :rtype: str + """ + return self._group_by + + @group_by.setter + def group_by(self, group_by): + """Sets the group_by of this ListRequestTimelineRequest. + + 展示维度,按天展示时传\"DAY\" + + :param group_by: The group_by of this ListRequestTimelineRequest. + :type: str + """ + self._group_by = group_by + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListRequestTimelineRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_request_timeline_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_request_timeline_response.py new file mode 100644 index 0000000000..18ab1e823d --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_request_timeline_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListRequestTimelineResponse(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[StatisticsTimelineItem]' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """ListRequestTimelineResponse - a model defined in huaweicloud sdk""" + + super(ListRequestTimelineResponse, 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 ListRequestTimelineResponse. + + 安全统计的时间线 + + :return: The body of this ListRequestTimelineResponse. + :rtype: list[StatisticsTimelineItem] + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ListRequestTimelineResponse. + + 安全统计的时间线 + + :param body: The body of this ListRequestTimelineResponse. + :type: list[StatisticsTimelineItem] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListRequestTimelineResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_response_code_timeline_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_response_code_timeline_request.py new file mode 100644 index 0000000000..a1f57fde22 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_response_code_timeline_request.py @@ -0,0 +1,243 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListResponseCodeTimelineRequest: + + + """ + 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 = { + '_from': 'int', + 'to': 'int', + 'hosts': 'str', + 'instances': 'str', + 'response_source': 'str', + 'group_by': 'str' + } + + attribute_map = { + '_from': 'from', + 'to': 'to', + 'hosts': 'hosts', + 'instances': 'instances', + 'response_source': 'response_source', + 'group_by': 'group_by' + } + + def __init__(self, _from=None, to=None, hosts=None, instances=None, response_source=None, group_by=None): + """ListResponseCodeTimelineRequest - a model defined in huaweicloud sdk""" + + + + self.__from = None + self._to = None + self._hosts = None + self._instances = None + self._response_source = None + self._group_by = None + self.discriminator = None + + self._from = _from + self.to = to + if hosts is not None: + self.hosts = hosts + if instances is not None: + self.instances = instances + if response_source is not None: + self.response_source = response_source + if group_by is not None: + self.group_by = group_by + + @property + def _from(self): + """Gets the _from of this ListResponseCodeTimelineRequest. + + 起始时间 + + :return: The _from of this ListResponseCodeTimelineRequest. + :rtype: int + """ + return self.__from + + @_from.setter + def _from(self, _from): + """Sets the _from of this ListResponseCodeTimelineRequest. + + 起始时间 + + :param _from: The _from of this ListResponseCodeTimelineRequest. + :type: int + """ + self.__from = _from + + @property + def to(self): + """Gets the to of this ListResponseCodeTimelineRequest. + + 结束时间 + + :return: The to of this ListResponseCodeTimelineRequest. + :rtype: int + """ + return self._to + + @to.setter + def to(self, to): + """Sets the to of this ListResponseCodeTimelineRequest. + + 结束时间 + + :param to: The to of this ListResponseCodeTimelineRequest. + :type: int + """ + self._to = to + + @property + def hosts(self): + """Gets the hosts of this ListResponseCodeTimelineRequest. + + 要查询域名列表 + + :return: The hosts of this ListResponseCodeTimelineRequest. + :rtype: str + """ + return self._hosts + + @hosts.setter + def hosts(self, hosts): + """Sets the hosts of this ListResponseCodeTimelineRequest. + + 要查询域名列表 + + :param hosts: The hosts of this ListResponseCodeTimelineRequest. + :type: str + """ + self._hosts = hosts + + @property + def instances(self): + """Gets the instances of this ListResponseCodeTimelineRequest. + + 要查询实例列表 + + :return: The instances of this ListResponseCodeTimelineRequest. + :rtype: str + """ + return self._instances + + @instances.setter + def instances(self, instances): + """Sets the instances of this ListResponseCodeTimelineRequest. + + 要查询实例列表 + + :param instances: The instances of this ListResponseCodeTimelineRequest. + :type: str + """ + self._instances = instances + + @property + def response_source(self): + """Gets the response_source of this ListResponseCodeTimelineRequest. + + 响应源 + + :return: The response_source of this ListResponseCodeTimelineRequest. + :rtype: str + """ + return self._response_source + + @response_source.setter + def response_source(self, response_source): + """Sets the response_source of this ListResponseCodeTimelineRequest. + + 响应源 + + :param response_source: The response_source of this ListResponseCodeTimelineRequest. + :type: str + """ + self._response_source = response_source + + @property + def group_by(self): + """Gets the group_by of this ListResponseCodeTimelineRequest. + + 展示维度,按天展示时传\"DAY\" + + :return: The group_by of this ListResponseCodeTimelineRequest. + :rtype: str + """ + return self._group_by + + @group_by.setter + def group_by(self, group_by): + """Sets the group_by of this ListResponseCodeTimelineRequest. + + 展示维度,按天展示时传\"DAY\" + + :param group_by: The group_by of this ListResponseCodeTimelineRequest. + :type: str + """ + self._group_by = group_by + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListResponseCodeTimelineRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_response_code_timeline_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_response_code_timeline_response.py new file mode 100644 index 0000000000..f3513934e2 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_response_code_timeline_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListResponseCodeTimelineResponse(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[StatisticsTimelineItem]' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """ListResponseCodeTimelineResponse - a model defined in huaweicloud sdk""" + + super(ListResponseCodeTimelineResponse, 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 ListResponseCodeTimelineResponse. + + 安全统计的时间线 + + :return: The body of this ListResponseCodeTimelineResponse. + :rtype: list[StatisticsTimelineItem] + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ListResponseCodeTimelineResponse. + + 安全统计的时间线 + + :param body: The body of this ListResponseCodeTimelineResponse. + :type: list[StatisticsTimelineItem] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListResponseCodeTimelineResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_source_domain_top5_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_source_domain_top5_request.py new file mode 100644 index 0000000000..ead6598caf --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_source_domain_top5_request.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListSourceDomainTop5Request: + + + """ + 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', + 'hosts': 'list[str]' + } + + attribute_map = { + 'recent': 'recent', + 'hosts': 'hosts' + } + + def __init__(self, recent=None, hosts=None): + """ListSourceDomainTop5Request - a model defined in huaweicloud sdk""" + + + + self._recent = None + self._hosts = None + self.discriminator = None + + self.recent = recent + if hosts is not None: + self.hosts = hosts + + @property + def recent(self): + """Gets the recent of this ListSourceDomainTop5Request. + + 要查询事件时间范围 + + :return: The recent of this ListSourceDomainTop5Request. + :rtype: str + """ + return self._recent + + @recent.setter + def recent(self, recent): + """Sets the recent of this ListSourceDomainTop5Request. + + 要查询事件时间范围 + + :param recent: The recent of this ListSourceDomainTop5Request. + :type: str + """ + self._recent = recent + + @property + def hosts(self): + """Gets the hosts of this ListSourceDomainTop5Request. + + 要查询事件域名列表 + + :return: The hosts of this ListSourceDomainTop5Request. + :rtype: list[str] + """ + return self._hosts + + @hosts.setter + def hosts(self, hosts): + """Sets the hosts of this ListSourceDomainTop5Request. + + 要查询事件域名列表 + + :param hosts: The hosts of this ListSourceDomainTop5Request. + :type: list[str] + """ + self._hosts = hosts + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListSourceDomainTop5Request): + 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-waf/huaweicloudsdkwaf/v1/model/list_source_domain_top5_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_source_domain_top5_response.py new file mode 100644 index 0000000000..529fe293de --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_source_domain_top5_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListSourceDomainTop5Response(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[AttackDomainTopListInfoItems]' + } + + attribute_map = { + 'total': 'total', + 'items': 'items' + } + + def __init__(self, total=None, items=None): + """ListSourceDomainTop5Response - a model defined in huaweicloud sdk""" + + super(ListSourceDomainTop5Response, 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 ListSourceDomainTop5Response. + + 攻击源ip的总数量 + + :return: The total of this ListSourceDomainTop5Response. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListSourceDomainTop5Response. + + 攻击源ip的总数量 + + :param total: The total of this ListSourceDomainTop5Response. + :type: int + """ + self._total = total + + @property + def items(self): + """Gets the items of this ListSourceDomainTop5Response. + + 对象数组 + + :return: The items of this ListSourceDomainTop5Response. + :rtype: list[AttackDomainTopListInfoItems] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListSourceDomainTop5Response. + + 对象数组 + + :param items: The items of this ListSourceDomainTop5Response. + :type: list[AttackDomainTopListInfoItems] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListSourceDomainTop5Response): + 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-waf/huaweicloudsdkwaf/v1/model/list_source_ip_num_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_source_ip_num_request.py new file mode 100644 index 0000000000..d62b484e0b --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_source_ip_num_request.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListSourceIpNumRequest: + + + """ + 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', + 'hosts': 'list[str]' + } + + attribute_map = { + 'recent': 'recent', + 'hosts': 'hosts' + } + + def __init__(self, recent=None, hosts=None): + """ListSourceIpNumRequest - a model defined in huaweicloud sdk""" + + + + self._recent = None + self._hosts = None + self.discriminator = None + + self.recent = recent + if hosts is not None: + self.hosts = hosts + + @property + def recent(self): + """Gets the recent of this ListSourceIpNumRequest. + + 要查询事件时间范围 + + :return: The recent of this ListSourceIpNumRequest. + :rtype: str + """ + return self._recent + + @recent.setter + def recent(self, recent): + """Sets the recent of this ListSourceIpNumRequest. + + 要查询事件时间范围 + + :param recent: The recent of this ListSourceIpNumRequest. + :type: str + """ + self._recent = recent + + @property + def hosts(self): + """Gets the hosts of this ListSourceIpNumRequest. + + 要查询事件的域名列表 + + :return: The hosts of this ListSourceIpNumRequest. + :rtype: list[str] + """ + return self._hosts + + @hosts.setter + def hosts(self, hosts): + """Sets the hosts of this ListSourceIpNumRequest. + + 要查询事件的域名列表 + + :param hosts: The hosts of this ListSourceIpNumRequest. + :type: list[str] + """ + self._hosts = hosts + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListSourceIpNumRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_source_ip_num_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_source_ip_num_response.py new file mode 100644 index 0000000000..b4a61054f9 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_source_ip_num_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListSourceIpNumResponse(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 = { + 'sip': 'int' + } + + attribute_map = { + 'sip': 'sip' + } + + def __init__(self, sip=None): + """ListSourceIpNumResponse - a model defined in huaweicloud sdk""" + + super(ListSourceIpNumResponse, self).__init__() + + self._sip = None + self.discriminator = None + + if sip is not None: + self.sip = sip + + @property + def sip(self): + """Gets the sip of this ListSourceIpNumResponse. + + 类型 + + :return: The sip of this ListSourceIpNumResponse. + :rtype: int + """ + return self._sip + + @sip.setter + def sip(self, sip): + """Sets the sip of this ListSourceIpNumResponse. + + 类型 + + :param sip: The sip of this ListSourceIpNumResponse. + :type: int + """ + self._sip = sip + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListSourceIpNumResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_source_ip_top5_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_source_ip_top5_request.py new file mode 100644 index 0000000000..009305ccdb --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_source_ip_top5_request.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListSourceIpTop5Request: + + + """ + 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', + 'hosts': 'list[str]' + } + + attribute_map = { + 'recent': 'recent', + 'hosts': 'hosts' + } + + def __init__(self, recent=None, hosts=None): + """ListSourceIpTop5Request - a model defined in huaweicloud sdk""" + + + + self._recent = None + self._hosts = None + self.discriminator = None + + self.recent = recent + if hosts is not None: + self.hosts = hosts + + @property + def recent(self): + """Gets the recent of this ListSourceIpTop5Request. + + 要查询事件时间范围 + + :return: The recent of this ListSourceIpTop5Request. + :rtype: str + """ + return self._recent + + @recent.setter + def recent(self, recent): + """Sets the recent of this ListSourceIpTop5Request. + + 要查询事件时间范围 + + :param recent: The recent of this ListSourceIpTop5Request. + :type: str + """ + self._recent = recent + + @property + def hosts(self): + """Gets the hosts of this ListSourceIpTop5Request. + + 要查询事件域名列表 + + :return: The hosts of this ListSourceIpTop5Request. + :rtype: list[str] + """ + return self._hosts + + @hosts.setter + def hosts(self, hosts): + """Sets the hosts of this ListSourceIpTop5Request. + + 要查询事件域名列表 + + :param hosts: The hosts of this ListSourceIpTop5Request. + :type: list[str] + """ + self._hosts = hosts + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListSourceIpTop5Request): + 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-waf/huaweicloudsdkwaf/v1/model/list_source_ip_top5_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_source_ip_top5_response.py new file mode 100644 index 0000000000..9d0d8398f5 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_source_ip_top5_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListSourceIpTop5Response(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[SourceIpTopListInfoItems]' + } + + attribute_map = { + 'total': 'total', + 'items': 'items' + } + + def __init__(self, total=None, items=None): + """ListSourceIpTop5Response - a model defined in huaweicloud sdk""" + + super(ListSourceIpTop5Response, 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 ListSourceIpTop5Response. + + 攻击源ip的总数量 + + :return: The total of this ListSourceIpTop5Response. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListSourceIpTop5Response. + + 攻击源ip的总数量 + + :param total: The total of this ListSourceIpTop5Response. + :type: int + """ + self._total = total + + @property + def items(self): + """Gets the items of this ListSourceIpTop5Response. + + 对象数组 + + :return: The items of this ListSourceIpTop5Response. + :rtype: list[SourceIpTopListInfoItems] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListSourceIpTop5Response. + + 对象数组 + + :param items: The items of this ListSourceIpTop5Response. + :type: list[SourceIpTopListInfoItems] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListSourceIpTop5Response): + 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-waf/huaweicloudsdkwaf/v1/model/list_source_url_top5_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_source_url_top5_request.py new file mode 100644 index 0000000000..0d2bf5965b --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_source_url_top5_request.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListSourceUrlTop5Request: + + + """ + 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', + 'hosts': 'list[str]' + } + + attribute_map = { + 'recent': 'recent', + 'hosts': 'hosts' + } + + def __init__(self, recent=None, hosts=None): + """ListSourceUrlTop5Request - a model defined in huaweicloud sdk""" + + + + self._recent = None + self._hosts = None + self.discriminator = None + + self.recent = recent + if hosts is not None: + self.hosts = hosts + + @property + def recent(self): + """Gets the recent of this ListSourceUrlTop5Request. + + 要查询事件时间范围 + + :return: The recent of this ListSourceUrlTop5Request. + :rtype: str + """ + return self._recent + + @recent.setter + def recent(self, recent): + """Sets the recent of this ListSourceUrlTop5Request. + + 要查询事件时间范围 + + :param recent: The recent of this ListSourceUrlTop5Request. + :type: str + """ + self._recent = recent + + @property + def hosts(self): + """Gets the hosts of this ListSourceUrlTop5Request. + + 要查询事件域名列表 + + :return: The hosts of this ListSourceUrlTop5Request. + :rtype: list[str] + """ + return self._hosts + + @hosts.setter + def hosts(self, hosts): + """Sets the hosts of this ListSourceUrlTop5Request. + + 要查询事件域名列表 + + :param hosts: The hosts of this ListSourceUrlTop5Request. + :type: list[str] + """ + self._hosts = hosts + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListSourceUrlTop5Request): + 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-waf/huaweicloudsdkwaf/v1/model/list_source_url_top5_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_source_url_top5_response.py new file mode 100644 index 0000000000..5facd78908 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_source_url_top5_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListSourceUrlTop5Response(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[AttackUrlTopListInfoItems]' + } + + attribute_map = { + 'total': 'total', + 'items': 'items' + } + + def __init__(self, total=None, items=None): + """ListSourceUrlTop5Response - a model defined in huaweicloud sdk""" + + super(ListSourceUrlTop5Response, 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 ListSourceUrlTop5Response. + + 攻击源ip的总数量 + + :return: The total of this ListSourceUrlTop5Response. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListSourceUrlTop5Response. + + 攻击源ip的总数量 + + :param total: The total of this ListSourceUrlTop5Response. + :type: int + """ + self._total = total + + @property + def items(self): + """Gets the items of this ListSourceUrlTop5Response. + + 对象数组 + + :return: The items of this ListSourceUrlTop5Response. + :rtype: list[AttackUrlTopListInfoItems] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListSourceUrlTop5Response. + + 对象数组 + + :param items: The items of this ListSourceUrlTop5Response. + :type: list[AttackUrlTopListInfoItems] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListSourceUrlTop5Response): + 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-waf/huaweicloudsdkwaf/v1/model/list_statistics_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_statistics_request.py new file mode 100644 index 0000000000..d9db76f764 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_statistics_request.py @@ -0,0 +1,189 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListStatisticsRequest: + + + """ + 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 = { + '_from': 'int', + 'to': 'int', + 'hosts': 'str', + 'instances': 'str' + } + + attribute_map = { + '_from': 'from', + 'to': 'to', + 'hosts': 'hosts', + 'instances': 'instances' + } + + def __init__(self, _from=None, to=None, hosts=None, instances=None): + """ListStatisticsRequest - a model defined in huaweicloud sdk""" + + + + self.__from = None + self._to = None + self._hosts = None + self._instances = None + self.discriminator = None + + self._from = _from + self.to = to + if hosts is not None: + self.hosts = hosts + if instances is not None: + self.instances = instances + + @property + def _from(self): + """Gets the _from of this ListStatisticsRequest. + + 起始时间 + + :return: The _from of this ListStatisticsRequest. + :rtype: int + """ + return self.__from + + @_from.setter + def _from(self, _from): + """Sets the _from of this ListStatisticsRequest. + + 起始时间 + + :param _from: The _from of this ListStatisticsRequest. + :type: int + """ + self.__from = _from + + @property + def to(self): + """Gets the to of this ListStatisticsRequest. + + 结束时间 + + :return: The to of this ListStatisticsRequest. + :rtype: int + """ + return self._to + + @to.setter + def to(self, to): + """Sets the to of this ListStatisticsRequest. + + 结束时间 + + :param to: The to of this ListStatisticsRequest. + :type: int + """ + self._to = to + + @property + def hosts(self): + """Gets the hosts of this ListStatisticsRequest. + + 要查询域名列表 + + :return: The hosts of this ListStatisticsRequest. + :rtype: str + """ + return self._hosts + + @hosts.setter + def hosts(self, hosts): + """Sets the hosts of this ListStatisticsRequest. + + 要查询域名列表 + + :param hosts: The hosts of this ListStatisticsRequest. + :type: str + """ + self._hosts = hosts + + @property + def instances(self): + """Gets the instances of this ListStatisticsRequest. + + 要查询实例列表 + + :return: The instances of this ListStatisticsRequest. + :rtype: str + """ + return self._instances + + @instances.setter + def instances(self, instances): + """Sets the instances of this ListStatisticsRequest. + + 要查询实例列表 + + :param instances: The instances of this ListStatisticsRequest. + :type: str + """ + self._instances = instances + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListStatisticsRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_statistics_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_statistics_response.py new file mode 100644 index 0000000000..310d05b2d6 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_statistics_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListStatisticsResponse(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[CountItem]' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """ListStatisticsResponse - a model defined in huaweicloud sdk""" + + super(ListStatisticsResponse, 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 ListStatisticsResponse. + + 安全统计数据 + + :return: The body of this ListStatisticsResponse. + :rtype: list[CountItem] + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ListStatisticsResponse. + + 安全统计数据 + + :param body: The body of this ListStatisticsResponse. + :type: list[CountItem] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListStatisticsResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_threats_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_threats_request.py new file mode 100644 index 0000000000..53f54e8839 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_threats_request.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListThreatsRequest: + + + """ + 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', + 'hosts': 'list[str]' + } + + attribute_map = { + 'recent': 'recent', + 'hosts': 'hosts' + } + + def __init__(self, recent=None, hosts=None): + """ListThreatsRequest - a model defined in huaweicloud sdk""" + + + + self._recent = None + self._hosts = None + self.discriminator = None + + self.recent = recent + if hosts is not None: + self.hosts = hosts + + @property + def recent(self): + """Gets the recent of this ListThreatsRequest. + + 要查询事件时间范围 + + :return: The recent of this ListThreatsRequest. + :rtype: str + """ + return self._recent + + @recent.setter + def recent(self, recent): + """Sets the recent of this ListThreatsRequest. + + 要查询事件时间范围 + + :param recent: The recent of this ListThreatsRequest. + :type: str + """ + self._recent = recent + + @property + def hosts(self): + """Gets the hosts of this ListThreatsRequest. + + 要查询事件的域名列表 + + :return: The hosts of this ListThreatsRequest. + :rtype: list[str] + """ + return self._hosts + + @hosts.setter + def hosts(self, hosts): + """Sets the hosts of this ListThreatsRequest. + + 要查询事件的域名列表 + + :param hosts: The hosts of this ListThreatsRequest. + :type: list[str] + """ + self._hosts = hosts + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListThreatsRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_threats_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_threats_response.py new file mode 100644 index 0000000000..e698a312d7 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_threats_response.py @@ -0,0 +1,407 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListThreatsResponse(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 = { + 'xss': 'int', + 'sqli': 'int', + 'cmdi': 'int', + 'lfi': 'int', + 'rfi': 'int', + 'webshell': 'int', + 'robot': 'int', + 'cc': 'int', + 'custom': 'int', + 'whiteblackip': 'int', + 'antileakage': 'int', + 'antitamper': 'int' + } + + attribute_map = { + 'xss': 'xss', + 'sqli': 'sqli', + 'cmdi': 'cmdi', + 'lfi': 'lfi', + 'rfi': 'rfi', + 'webshell': 'webshell', + 'robot': 'robot', + 'cc': 'cc', + 'custom': 'custom', + 'whiteblackip': 'whiteblackip', + 'antileakage': 'antileakage', + 'antitamper': 'antitamper' + } + + def __init__(self, xss=None, sqli=None, cmdi=None, lfi=None, rfi=None, webshell=None, robot=None, cc=None, custom=None, whiteblackip=None, antileakage=None, antitamper=None): + """ListThreatsResponse - a model defined in huaweicloud sdk""" + + super(ListThreatsResponse, self).__init__() + + self._xss = None + self._sqli = None + self._cmdi = None + self._lfi = None + self._rfi = None + self._webshell = None + self._robot = None + self._cc = None + self._custom = None + self._whiteblackip = None + self._antileakage = None + self._antitamper = None + self.discriminator = None + + if xss is not None: + self.xss = xss + if sqli is not None: + self.sqli = sqli + if cmdi is not None: + self.cmdi = cmdi + if lfi is not None: + self.lfi = lfi + if rfi is not None: + self.rfi = rfi + if webshell is not None: + self.webshell = webshell + if robot is not None: + self.robot = robot + if cc is not None: + self.cc = cc + if custom is not None: + self.custom = custom + if whiteblackip is not None: + self.whiteblackip = whiteblackip + if antileakage is not None: + self.antileakage = antileakage + if antitamper is not None: + self.antitamper = antitamper + + @property + def xss(self): + """Gets the xss of this ListThreatsResponse. + + 时间区间内xss攻击数量 + + :return: The xss of this ListThreatsResponse. + :rtype: int + """ + return self._xss + + @xss.setter + def xss(self, xss): + """Sets the xss of this ListThreatsResponse. + + 时间区间内xss攻击数量 + + :param xss: The xss of this ListThreatsResponse. + :type: int + """ + self._xss = xss + + @property + def sqli(self): + """Gets the sqli of this ListThreatsResponse. + + 时间区间内sqli攻击数量 + + :return: The sqli of this ListThreatsResponse. + :rtype: int + """ + return self._sqli + + @sqli.setter + def sqli(self, sqli): + """Sets the sqli of this ListThreatsResponse. + + 时间区间内sqli攻击数量 + + :param sqli: The sqli of this ListThreatsResponse. + :type: int + """ + self._sqli = sqli + + @property + def cmdi(self): + """Gets the cmdi of this ListThreatsResponse. + + 时间区间内cmdi攻击数量 + + :return: The cmdi of this ListThreatsResponse. + :rtype: int + """ + return self._cmdi + + @cmdi.setter + def cmdi(self, cmdi): + """Sets the cmdi of this ListThreatsResponse. + + 时间区间内cmdi攻击数量 + + :param cmdi: The cmdi of this ListThreatsResponse. + :type: int + """ + self._cmdi = cmdi + + @property + def lfi(self): + """Gets the lfi of this ListThreatsResponse. + + 时间区间内lfi攻击数量 + + :return: The lfi of this ListThreatsResponse. + :rtype: int + """ + return self._lfi + + @lfi.setter + def lfi(self, lfi): + """Sets the lfi of this ListThreatsResponse. + + 时间区间内lfi攻击数量 + + :param lfi: The lfi of this ListThreatsResponse. + :type: int + """ + self._lfi = lfi + + @property + def rfi(self): + """Gets the rfi of this ListThreatsResponse. + + 时间区间内rfi攻击数量 + + :return: The rfi of this ListThreatsResponse. + :rtype: int + """ + return self._rfi + + @rfi.setter + def rfi(self, rfi): + """Sets the rfi of this ListThreatsResponse. + + 时间区间内rfi攻击数量 + + :param rfi: The rfi of this ListThreatsResponse. + :type: int + """ + self._rfi = rfi + + @property + def webshell(self): + """Gets the webshell of this ListThreatsResponse. + + 时间区间内webshell攻击数量 + + :return: The webshell of this ListThreatsResponse. + :rtype: int + """ + return self._webshell + + @webshell.setter + def webshell(self, webshell): + """Sets the webshell of this ListThreatsResponse. + + 时间区间内webshell攻击数量 + + :param webshell: The webshell of this ListThreatsResponse. + :type: int + """ + self._webshell = webshell + + @property + def robot(self): + """Gets the robot of this ListThreatsResponse. + + 时间区间内恶意爬虫数量 + + :return: The robot of this ListThreatsResponse. + :rtype: int + """ + return self._robot + + @robot.setter + def robot(self, robot): + """Sets the robot of this ListThreatsResponse. + + 时间区间内恶意爬虫数量 + + :param robot: The robot of this ListThreatsResponse. + :type: int + """ + self._robot = robot + + @property + def cc(self): + """Gets the cc of this ListThreatsResponse. + + 时间区间内cc攻击数量 + + :return: The cc of this ListThreatsResponse. + :rtype: int + """ + return self._cc + + @cc.setter + def cc(self, cc): + """Sets the cc of this ListThreatsResponse. + + 时间区间内cc攻击数量 + + :param cc: The cc of this ListThreatsResponse. + :type: int + """ + self._cc = cc + + @property + def custom(self): + """Gets the custom of this ListThreatsResponse. + + 时间区间内对自定义规则攻击数量 + + :return: The custom of this ListThreatsResponse. + :rtype: int + """ + return self._custom + + @custom.setter + def custom(self, custom): + """Sets the custom of this ListThreatsResponse. + + 时间区间内对自定义规则攻击数量 + + :param custom: The custom of this ListThreatsResponse. + :type: int + """ + self._custom = custom + + @property + def whiteblackip(self): + """Gets the whiteblackip of this ListThreatsResponse. + + 时间区间内对黑白名单规则攻击数量 + + :return: The whiteblackip of this ListThreatsResponse. + :rtype: int + """ + return self._whiteblackip + + @whiteblackip.setter + def whiteblackip(self, whiteblackip): + """Sets the whiteblackip of this ListThreatsResponse. + + 时间区间内对黑白名单规则攻击数量 + + :param whiteblackip: The whiteblackip of this ListThreatsResponse. + :type: int + """ + self._whiteblackip = whiteblackip + + @property + def antileakage(self): + """Gets the antileakage of this ListThreatsResponse. + + 时间区间内反泄漏数量 + + :return: The antileakage of this ListThreatsResponse. + :rtype: int + """ + return self._antileakage + + @antileakage.setter + def antileakage(self, antileakage): + """Sets the antileakage of this ListThreatsResponse. + + 时间区间内反泄漏数量 + + :param antileakage: The antileakage of this ListThreatsResponse. + :type: int + """ + self._antileakage = antileakage + + @property + def antitamper(self): + """Gets the antitamper of this ListThreatsResponse. + + 时间区间内防篡改数量 + + :return: The antitamper of this ListThreatsResponse. + :rtype: int + """ + return self._antitamper + + @antitamper.setter + def antitamper(self, antitamper): + """Sets the antitamper of this ListThreatsResponse. + + 时间区间内防篡改数量 + + :param antitamper: The antitamper of this ListThreatsResponse. + :type: int + """ + self._antitamper = antitamper + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListThreatsResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_top_abnormal_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_top_abnormal_request.py new file mode 100644 index 0000000000..81faa9922e --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_top_abnormal_request.py @@ -0,0 +1,243 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListTopAbnormalRequest: + + + """ + 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 = { + '_from': 'int', + 'to': 'int', + 'top': 'int', + 'code': 'int', + 'hosts': 'str', + 'instances': 'str' + } + + attribute_map = { + '_from': 'from', + 'to': 'to', + 'top': 'top', + 'code': 'code', + 'hosts': 'hosts', + 'instances': 'instances' + } + + def __init__(self, _from=None, to=None, top=None, code=None, hosts=None, instances=None): + """ListTopAbnormalRequest - a model defined in huaweicloud sdk""" + + + + self.__from = None + self._to = None + self._top = None + self._code = None + self._hosts = None + self._instances = None + self.discriminator = None + + self._from = _from + self.to = to + if top is not None: + self.top = top + if code is not None: + self.code = code + if hosts is not None: + self.hosts = hosts + if instances is not None: + self.instances = instances + + @property + def _from(self): + """Gets the _from of this ListTopAbnormalRequest. + + 起始时间 + + :return: The _from of this ListTopAbnormalRequest. + :rtype: int + """ + return self.__from + + @_from.setter + def _from(self, _from): + """Sets the _from of this ListTopAbnormalRequest. + + 起始时间 + + :param _from: The _from of this ListTopAbnormalRequest. + :type: int + """ + self.__from = _from + + @property + def to(self): + """Gets the to of this ListTopAbnormalRequest. + + 结束时间 + + :return: The to of this ListTopAbnormalRequest. + :rtype: int + """ + return self._to + + @to.setter + def to(self, to): + """Sets the to of this ListTopAbnormalRequest. + + 结束时间 + + :param to: The to of this ListTopAbnormalRequest. + :type: int + """ + self._to = to + + @property + def top(self): + """Gets the top of this ListTopAbnormalRequest. + + 要查询的前几的结果 + + :return: The top of this ListTopAbnormalRequest. + :rtype: int + """ + return self._top + + @top.setter + def top(self, top): + """Sets the top of this ListTopAbnormalRequest. + + 要查询的前几的结果 + + :param top: The top of this ListTopAbnormalRequest. + :type: int + """ + self._top = top + + @property + def code(self): + """Gets the code of this ListTopAbnormalRequest. + + 状态码 + + :return: The code of this ListTopAbnormalRequest. + :rtype: int + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ListTopAbnormalRequest. + + 状态码 + + :param code: The code of this ListTopAbnormalRequest. + :type: int + """ + self._code = code + + @property + def hosts(self): + """Gets the hosts of this ListTopAbnormalRequest. + + 要查询域名列表 + + :return: The hosts of this ListTopAbnormalRequest. + :rtype: str + """ + return self._hosts + + @hosts.setter + def hosts(self, hosts): + """Sets the hosts of this ListTopAbnormalRequest. + + 要查询域名列表 + + :param hosts: The hosts of this ListTopAbnormalRequest. + :type: str + """ + self._hosts = hosts + + @property + def instances(self): + """Gets the instances of this ListTopAbnormalRequest. + + 要查询实例列表 + + :return: The instances of this ListTopAbnormalRequest. + :rtype: str + """ + return self._instances + + @instances.setter + def instances(self, instances): + """Sets the instances of this ListTopAbnormalRequest. + + 要查询实例列表 + + :param instances: The instances of this ListTopAbnormalRequest. + :type: str + """ + self._instances = instances + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListTopAbnormalRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_top_abnormal_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_top_abnormal_response.py new file mode 100644 index 0000000000..3a7a6374c3 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_top_abnormal_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListTopAbnormalResponse(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[UrlCountItem]' + } + + attribute_map = { + 'total': 'total', + 'items': 'items' + } + + def __init__(self, total=None, items=None): + """ListTopAbnormalResponse - a model defined in huaweicloud sdk""" + + super(ListTopAbnormalResponse, 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 ListTopAbnormalResponse. + + CountItem的总数量 + + :return: The total of this ListTopAbnormalResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListTopAbnormalResponse. + + CountItem的总数量 + + :param total: The total of this ListTopAbnormalResponse. + :type: int + """ + self._total = total + + @property + def items(self): + """Gets the items of this ListTopAbnormalResponse. + + CountItem详细信息 + + :return: The items of this ListTopAbnormalResponse. + :rtype: list[UrlCountItem] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListTopAbnormalResponse. + + CountItem详细信息 + + :param items: The items of this ListTopAbnormalResponse. + :type: list[UrlCountItem] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListTopAbnormalResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_top_domain_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_top_domain_request.py new file mode 100644 index 0000000000..da7d61612f --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_top_domain_request.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListTopDomainRequest: + + + """ + 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 = { + '_from': 'int', + 'to': 'int', + 'top': 'int', + 'hosts': 'str', + 'instances': 'str' + } + + attribute_map = { + '_from': 'from', + 'to': 'to', + 'top': 'top', + 'hosts': 'hosts', + 'instances': 'instances' + } + + def __init__(self, _from=None, to=None, top=None, hosts=None, instances=None): + """ListTopDomainRequest - a model defined in huaweicloud sdk""" + + + + self.__from = None + self._to = None + self._top = None + self._hosts = None + self._instances = None + self.discriminator = None + + self._from = _from + self.to = to + if top is not None: + self.top = top + if hosts is not None: + self.hosts = hosts + if instances is not None: + self.instances = instances + + @property + def _from(self): + """Gets the _from of this ListTopDomainRequest. + + 起始时间 + + :return: The _from of this ListTopDomainRequest. + :rtype: int + """ + return self.__from + + @_from.setter + def _from(self, _from): + """Sets the _from of this ListTopDomainRequest. + + 起始时间 + + :param _from: The _from of this ListTopDomainRequest. + :type: int + """ + self.__from = _from + + @property + def to(self): + """Gets the to of this ListTopDomainRequest. + + 结束时间 + + :return: The to of this ListTopDomainRequest. + :rtype: int + """ + return self._to + + @to.setter + def to(self, to): + """Sets the to of this ListTopDomainRequest. + + 结束时间 + + :param to: The to of this ListTopDomainRequest. + :type: int + """ + self._to = to + + @property + def top(self): + """Gets the top of this ListTopDomainRequest. + + 要查询的前几的结果 + + :return: The top of this ListTopDomainRequest. + :rtype: int + """ + return self._top + + @top.setter + def top(self, top): + """Sets the top of this ListTopDomainRequest. + + 要查询的前几的结果 + + :param top: The top of this ListTopDomainRequest. + :type: int + """ + self._top = top + + @property + def hosts(self): + """Gets the hosts of this ListTopDomainRequest. + + 要查询域名列表 + + :return: The hosts of this ListTopDomainRequest. + :rtype: str + """ + return self._hosts + + @hosts.setter + def hosts(self, hosts): + """Sets the hosts of this ListTopDomainRequest. + + 要查询域名列表 + + :param hosts: The hosts of this ListTopDomainRequest. + :type: str + """ + self._hosts = hosts + + @property + def instances(self): + """Gets the instances of this ListTopDomainRequest. + + 要查询实例列表 + + :return: The instances of this ListTopDomainRequest. + :rtype: str + """ + return self._instances + + @instances.setter + def instances(self, instances): + """Sets the instances of this ListTopDomainRequest. + + 要查询实例列表 + + :param instances: The instances of this ListTopDomainRequest. + :type: str + """ + self._instances = instances + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListTopDomainRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_top_domain_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_top_domain_response.py new file mode 100644 index 0000000000..826109da2d --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_top_domain_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListTopDomainResponse(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[CountItem]' + } + + attribute_map = { + 'total': 'total', + 'items': 'items' + } + + def __init__(self, total=None, items=None): + """ListTopDomainResponse - a model defined in huaweicloud sdk""" + + super(ListTopDomainResponse, 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 ListTopDomainResponse. + + CountItem的总数量 + + :return: The total of this ListTopDomainResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListTopDomainResponse. + + CountItem的总数量 + + :param total: The total of this ListTopDomainResponse. + :type: int + """ + self._total = total + + @property + def items(self): + """Gets the items of this ListTopDomainResponse. + + CountItem详细信息 + + :return: The items of this ListTopDomainResponse. + :rtype: list[CountItem] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListTopDomainResponse. + + CountItem详细信息 + + :param items: The items of this ListTopDomainResponse. + :type: list[CountItem] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListTopDomainResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_top_ip_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_top_ip_request.py new file mode 100644 index 0000000000..dd40749818 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_top_ip_request.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListTopIpRequest: + + + """ + 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 = { + '_from': 'int', + 'to': 'int', + 'top': 'int', + 'hosts': 'str', + 'instances': 'str' + } + + attribute_map = { + '_from': 'from', + 'to': 'to', + 'top': 'top', + 'hosts': 'hosts', + 'instances': 'instances' + } + + def __init__(self, _from=None, to=None, top=None, hosts=None, instances=None): + """ListTopIpRequest - a model defined in huaweicloud sdk""" + + + + self.__from = None + self._to = None + self._top = None + self._hosts = None + self._instances = None + self.discriminator = None + + self._from = _from + self.to = to + if top is not None: + self.top = top + if hosts is not None: + self.hosts = hosts + if instances is not None: + self.instances = instances + + @property + def _from(self): + """Gets the _from of this ListTopIpRequest. + + 起始时间 + + :return: The _from of this ListTopIpRequest. + :rtype: int + """ + return self.__from + + @_from.setter + def _from(self, _from): + """Sets the _from of this ListTopIpRequest. + + 起始时间 + + :param _from: The _from of this ListTopIpRequest. + :type: int + """ + self.__from = _from + + @property + def to(self): + """Gets the to of this ListTopIpRequest. + + 结束时间 + + :return: The to of this ListTopIpRequest. + :rtype: int + """ + return self._to + + @to.setter + def to(self, to): + """Sets the to of this ListTopIpRequest. + + 结束时间 + + :param to: The to of this ListTopIpRequest. + :type: int + """ + self._to = to + + @property + def top(self): + """Gets the top of this ListTopIpRequest. + + 要查询的前几的结果 + + :return: The top of this ListTopIpRequest. + :rtype: int + """ + return self._top + + @top.setter + def top(self, top): + """Sets the top of this ListTopIpRequest. + + 要查询的前几的结果 + + :param top: The top of this ListTopIpRequest. + :type: int + """ + self._top = top + + @property + def hosts(self): + """Gets the hosts of this ListTopIpRequest. + + 要查询域名列表 + + :return: The hosts of this ListTopIpRequest. + :rtype: str + """ + return self._hosts + + @hosts.setter + def hosts(self, hosts): + """Sets the hosts of this ListTopIpRequest. + + 要查询域名列表 + + :param hosts: The hosts of this ListTopIpRequest. + :type: str + """ + self._hosts = hosts + + @property + def instances(self): + """Gets the instances of this ListTopIpRequest. + + 要查询实例列表 + + :return: The instances of this ListTopIpRequest. + :rtype: str + """ + return self._instances + + @instances.setter + def instances(self, instances): + """Sets the instances of this ListTopIpRequest. + + 要查询实例列表 + + :param instances: The instances of this ListTopIpRequest. + :type: str + """ + self._instances = instances + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListTopIpRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_top_ip_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_top_ip_response.py new file mode 100644 index 0000000000..55476553b5 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_top_ip_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListTopIpResponse(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[CountItem]' + } + + attribute_map = { + 'total': 'total', + 'items': 'items' + } + + def __init__(self, total=None, items=None): + """ListTopIpResponse - a model defined in huaweicloud sdk""" + + super(ListTopIpResponse, 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 ListTopIpResponse. + + CountItem的总数量 + + :return: The total of this ListTopIpResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListTopIpResponse. + + CountItem的总数量 + + :param total: The total of this ListTopIpResponse. + :type: int + """ + self._total = total + + @property + def items(self): + """Gets the items of this ListTopIpResponse. + + CountItem详细信息 + + :return: The items of this ListTopIpResponse. + :rtype: list[CountItem] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListTopIpResponse. + + CountItem详细信息 + + :param items: The items of this ListTopIpResponse. + :type: list[CountItem] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListTopIpResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_top_region_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_top_region_request.py new file mode 100644 index 0000000000..b455b6f7f6 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_top_region_request.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListTopRegionRequest: + + + """ + 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 = { + '_from': 'int', + 'to': 'int', + 'top': 'int', + 'hosts': 'str', + 'instances': 'str' + } + + attribute_map = { + '_from': 'from', + 'to': 'to', + 'top': 'top', + 'hosts': 'hosts', + 'instances': 'instances' + } + + def __init__(self, _from=None, to=None, top=None, hosts=None, instances=None): + """ListTopRegionRequest - a model defined in huaweicloud sdk""" + + + + self.__from = None + self._to = None + self._top = None + self._hosts = None + self._instances = None + self.discriminator = None + + self._from = _from + self.to = to + if top is not None: + self.top = top + if hosts is not None: + self.hosts = hosts + if instances is not None: + self.instances = instances + + @property + def _from(self): + """Gets the _from of this ListTopRegionRequest. + + 起始时间 + + :return: The _from of this ListTopRegionRequest. + :rtype: int + """ + return self.__from + + @_from.setter + def _from(self, _from): + """Sets the _from of this ListTopRegionRequest. + + 起始时间 + + :param _from: The _from of this ListTopRegionRequest. + :type: int + """ + self.__from = _from + + @property + def to(self): + """Gets the to of this ListTopRegionRequest. + + 结束时间 + + :return: The to of this ListTopRegionRequest. + :rtype: int + """ + return self._to + + @to.setter + def to(self, to): + """Sets the to of this ListTopRegionRequest. + + 结束时间 + + :param to: The to of this ListTopRegionRequest. + :type: int + """ + self._to = to + + @property + def top(self): + """Gets the top of this ListTopRegionRequest. + + 要查询的前几的结果 + + :return: The top of this ListTopRegionRequest. + :rtype: int + """ + return self._top + + @top.setter + def top(self, top): + """Sets the top of this ListTopRegionRequest. + + 要查询的前几的结果 + + :param top: The top of this ListTopRegionRequest. + :type: int + """ + self._top = top + + @property + def hosts(self): + """Gets the hosts of this ListTopRegionRequest. + + 要查询域名列表 + + :return: The hosts of this ListTopRegionRequest. + :rtype: str + """ + return self._hosts + + @hosts.setter + def hosts(self, hosts): + """Sets the hosts of this ListTopRegionRequest. + + 要查询域名列表 + + :param hosts: The hosts of this ListTopRegionRequest. + :type: str + """ + self._hosts = hosts + + @property + def instances(self): + """Gets the instances of this ListTopRegionRequest. + + 要查询实例列表 + + :return: The instances of this ListTopRegionRequest. + :rtype: str + """ + return self._instances + + @instances.setter + def instances(self, instances): + """Sets the instances of this ListTopRegionRequest. + + 要查询实例列表 + + :param instances: The instances of this ListTopRegionRequest. + :type: str + """ + self._instances = instances + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListTopRegionRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_top_region_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_top_region_response.py new file mode 100644 index 0000000000..edea819661 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_top_region_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListTopRegionResponse(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[CountItem]' + } + + attribute_map = { + 'total': 'total', + 'items': 'items' + } + + def __init__(self, total=None, items=None): + """ListTopRegionResponse - a model defined in huaweicloud sdk""" + + super(ListTopRegionResponse, 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 ListTopRegionResponse. + + CountItem的总数量 + + :return: The total of this ListTopRegionResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListTopRegionResponse. + + CountItem的总数量 + + :param total: The total of this ListTopRegionResponse. + :type: int + """ + self._total = total + + @property + def items(self): + """Gets the items of this ListTopRegionResponse. + + CountItem详细信息 + + :return: The items of this ListTopRegionResponse. + :rtype: list[CountItem] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListTopRegionResponse. + + CountItem详细信息 + + :param items: The items of this ListTopRegionResponse. + :type: list[CountItem] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListTopRegionResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_top_url_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_top_url_request.py new file mode 100644 index 0000000000..e505d5efa9 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_top_url_request.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListTopUrlRequest: + + + """ + 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 = { + '_from': 'int', + 'to': 'int', + 'top': 'int', + 'hosts': 'str', + 'instances': 'str' + } + + attribute_map = { + '_from': 'from', + 'to': 'to', + 'top': 'top', + 'hosts': 'hosts', + 'instances': 'instances' + } + + def __init__(self, _from=None, to=None, top=None, hosts=None, instances=None): + """ListTopUrlRequest - a model defined in huaweicloud sdk""" + + + + self.__from = None + self._to = None + self._top = None + self._hosts = None + self._instances = None + self.discriminator = None + + self._from = _from + self.to = to + if top is not None: + self.top = top + if hosts is not None: + self.hosts = hosts + if instances is not None: + self.instances = instances + + @property + def _from(self): + """Gets the _from of this ListTopUrlRequest. + + 起始时间 + + :return: The _from of this ListTopUrlRequest. + :rtype: int + """ + return self.__from + + @_from.setter + def _from(self, _from): + """Sets the _from of this ListTopUrlRequest. + + 起始时间 + + :param _from: The _from of this ListTopUrlRequest. + :type: int + """ + self.__from = _from + + @property + def to(self): + """Gets the to of this ListTopUrlRequest. + + 结束时间 + + :return: The to of this ListTopUrlRequest. + :rtype: int + """ + return self._to + + @to.setter + def to(self, to): + """Sets the to of this ListTopUrlRequest. + + 结束时间 + + :param to: The to of this ListTopUrlRequest. + :type: int + """ + self._to = to + + @property + def top(self): + """Gets the top of this ListTopUrlRequest. + + 要查询的前几的结果 + + :return: The top of this ListTopUrlRequest. + :rtype: int + """ + return self._top + + @top.setter + def top(self, top): + """Sets the top of this ListTopUrlRequest. + + 要查询的前几的结果 + + :param top: The top of this ListTopUrlRequest. + :type: int + """ + self._top = top + + @property + def hosts(self): + """Gets the hosts of this ListTopUrlRequest. + + 要查询域名列表 + + :return: The hosts of this ListTopUrlRequest. + :rtype: str + """ + return self._hosts + + @hosts.setter + def hosts(self, hosts): + """Sets the hosts of this ListTopUrlRequest. + + 要查询域名列表 + + :param hosts: The hosts of this ListTopUrlRequest. + :type: str + """ + self._hosts = hosts + + @property + def instances(self): + """Gets the instances of this ListTopUrlRequest. + + 要查询实例列表 + + :return: The instances of this ListTopUrlRequest. + :rtype: str + """ + return self._instances + + @instances.setter + def instances(self, instances): + """Sets the instances of this ListTopUrlRequest. + + 要查询实例列表 + + :param instances: The instances of this ListTopUrlRequest. + :type: str + """ + self._instances = instances + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListTopUrlRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_top_url_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_top_url_response.py new file mode 100644 index 0000000000..6ce447190c --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_top_url_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListTopUrlResponse(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[UrlCountItem]' + } + + attribute_map = { + 'total': 'total', + 'items': 'items' + } + + def __init__(self, total=None, items=None): + """ListTopUrlResponse - a model defined in huaweicloud sdk""" + + super(ListTopUrlResponse, 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 ListTopUrlResponse. + + CountItem的总数量 + + :return: The total of this ListTopUrlResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListTopUrlResponse. + + CountItem的总数量 + + :param total: The total of this ListTopUrlResponse. + :type: int + """ + self._total = total + + @property + def items(self): + """Gets the items of this ListTopUrlResponse. + + CountItem详细信息 + + :return: The items of this ListTopUrlResponse. + :rtype: list[UrlCountItem] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListTopUrlResponse. + + CountItem详细信息 + + :param items: The items of this ListTopUrlResponse. + :type: list[UrlCountItem] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListTopUrlResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_url_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_url_request.py new file mode 100644 index 0000000000..1a2ab400bf --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_url_request.py @@ -0,0 +1,244 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListUrlRequest: + + + """ + 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 = { + 'top': 'str', + 'recent': 'str', + '_from': 'int', + 'to': 'int', + 'hosts': 'list[str]', + 'instances': 'list[str]' + } + + attribute_map = { + 'top': 'top', + 'recent': 'recent', + '_from': 'from', + 'to': 'to', + 'hosts': 'hosts', + 'instances': 'instances' + } + + def __init__(self, top=None, recent=None, _from=None, to=None, hosts=None, instances=None): + """ListUrlRequest - a model defined in huaweicloud sdk""" + + + + self._top = None + self._recent = None + self.__from = None + self._to = None + self._hosts = None + self._instances = None + self.discriminator = None + + self.top = top + if recent is not None: + self.recent = recent + if _from is not None: + self._from = _from + if to is not None: + self.to = to + if hosts is not None: + self.hosts = hosts + if instances is not None: + self.instances = instances + + @property + def top(self): + """Gets the top of this ListUrlRequest. + + 受攻击次数最多的几条url + + :return: The top of this ListUrlRequest. + :rtype: str + """ + return self._top + + @top.setter + def top(self, top): + """Sets the top of this ListUrlRequest. + + 受攻击次数最多的几条url + + :param top: The top of this ListUrlRequest. + :type: str + """ + self._top = top + + @property + def recent(self): + """Gets the recent of this ListUrlRequest. + + 要查询事件时间范围 + + :return: The recent of this ListUrlRequest. + :rtype: str + """ + return self._recent + + @recent.setter + def recent(self, recent): + """Sets the recent of this ListUrlRequest. + + 要查询事件时间范围 + + :param recent: The recent of this ListUrlRequest. + :type: str + """ + self._recent = recent + + @property + def _from(self): + """Gets the _from of this ListUrlRequest. + + 起始时间戳 + + :return: The _from of this ListUrlRequest. + :rtype: int + """ + return self.__from + + @_from.setter + def _from(self, _from): + """Sets the _from of this ListUrlRequest. + + 起始时间戳 + + :param _from: The _from of this ListUrlRequest. + :type: int + """ + self.__from = _from + + @property + def to(self): + """Gets the to of this ListUrlRequest. + + 截止时间戳 + + :return: The to of this ListUrlRequest. + :rtype: int + """ + return self._to + + @to.setter + def to(self, to): + """Sets the to of this ListUrlRequest. + + 截止时间戳 + + :param to: The to of this ListUrlRequest. + :type: int + """ + self._to = to + + @property + def hosts(self): + """Gets the hosts of this ListUrlRequest. + + 要查询事件的域名列表 + + :return: The hosts of this ListUrlRequest. + :rtype: list[str] + """ + return self._hosts + + @hosts.setter + def hosts(self, hosts): + """Sets the hosts of this ListUrlRequest. + + 要查询事件的域名列表 + + :param hosts: The hosts of this ListUrlRequest. + :type: list[str] + """ + self._hosts = hosts + + @property + def instances(self): + """Gets the instances of this ListUrlRequest. + + 域名 + + :return: The instances of this ListUrlRequest. + :rtype: list[str] + """ + return self._instances + + @instances.setter + def instances(self, instances): + """Sets the instances of this ListUrlRequest. + + 域名 + + :param instances: The instances of this ListUrlRequest. + :type: list[str] + """ + self._instances = instances + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListUrlRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_url_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_url_response.py new file mode 100644 index 0000000000..46d71b9b99 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_url_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListUrlResponse(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): + """ListUrlResponse - a model defined in huaweicloud sdk""" + + super(ListUrlResponse, 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 ListUrlResponse. + + 所有请求的每秒请求数 + + :return: The qps of this ListUrlResponse. + :rtype: int + """ + return self._qps + + @qps.setter + def qps(self, qps): + """Sets the qps of this ListUrlResponse. + + 所有请求的每秒请求数 + + :param qps: The qps of this ListUrlResponse. + :type: 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListUrlResponse): + 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-waf/huaweicloudsdkwaf/v1/model/list_value_list_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_value_list_request.py new file mode 100644 index 0000000000..fc8ea19247 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_value_list_request.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListValueListRequest: + + + """ + 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): + """ListValueListRequest - a 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListValueListRequest): + 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-waf/huaweicloudsdkwaf/v1/model/list_value_list_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_value_list_response.py new file mode 100644 index 0000000000..9aa913b8a6 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_value_list_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListValueListResponse(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[ValueList]' + } + + attribute_map = { + 'total': 'total', + 'items': 'items' + } + + def __init__(self, total=None, items=None): + """ListValueListResponse - a model defined in huaweicloud sdk""" + + super(ListValueListResponse, 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 ListValueListResponse. + + 引用表条数 + + :return: The total of this ListValueListResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListValueListResponse. + + 引用表条数 + + :param total: The total of this ListValueListResponse. + :type: int + """ + self._total = total + + @property + def items(self): + """Gets the items of this ListValueListResponse. + + 引用表列表 + + :return: The items of this ListValueListResponse. + :rtype: list[ValueList] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListValueListResponse. + + 引用表列表 + + :param items: The items of this ListValueListResponse. + :type: list[ValueList] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListValueListResponse): + 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-waf/huaweicloudsdkwaf/v1/model/policy_action.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/policy_action.py new file mode 100644 index 0000000000..1d47c185d8 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/policy_action.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class PolicyAction: + + + """ + 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', + 'followed_action_id': 'str' + } + + attribute_map = { + 'category': 'category', + 'followed_action_id': 'followed_action_id' + } + + def __init__(self, category=None, followed_action_id=None): + """PolicyAction - a model defined in huaweicloud sdk""" + + + + self._category = None + self._followed_action_id = None + self.discriminator = None + + if category is not None: + self.category = category + if followed_action_id is not None: + self.followed_action_id = followed_action_id + + @property + def category(self): + """Gets the category of this PolicyAction. + + 防护等级 + + :return: The category of this PolicyAction. + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this PolicyAction. + + 防护等级 + + :param category: The category of this PolicyAction. + :type: str + """ + self._category = category + + @property + def followed_action_id(self): + """Gets the followed_action_id of this PolicyAction. + + 攻击惩罚规则ID + + :return: The followed_action_id of this PolicyAction. + :rtype: str + """ + return self._followed_action_id + + @followed_action_id.setter + def followed_action_id(self, followed_action_id): + """Sets the followed_action_id of this PolicyAction. + + 攻击惩罚规则ID + + :param followed_action_id: The followed_action_id of this PolicyAction. + :type: str + """ + self._followed_action_id = followed_action_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PolicyAction): + 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-waf/huaweicloudsdkwaf/v1/model/policy_anti_crawler_post_info.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/policy_anti_crawler_post_info.py new file mode 100644 index 0000000000..4737bd6474 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/policy_anti_crawler_post_info.py @@ -0,0 +1,218 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class PolicyAntiCrawlerPostInfo: + + + """ + 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 = { + 'url': 'str', + 'logic': 'int', + 'name': 'str', + 'type': 'str', + 'description': 'str' + } + + attribute_map = { + 'url': 'url', + 'logic': 'logic', + 'name': 'name', + 'type': 'type', + 'description': 'description' + } + + def __init__(self, url=None, logic=None, name=None, type=None, description=None): + """PolicyAntiCrawlerPostInfo - a model defined in huaweicloud sdk""" + + + + self._url = None + self._logic = None + self._name = None + self._type = None + self._description = None + self.discriminator = None + + if url is not None: + self.url = url + if logic is not None: + self.logic = logic + if name is not None: + self.name = name + if type is not None: + self.type = type + if description is not None: + self.description = description + + @property + def url(self): + """Gets the url of this PolicyAntiCrawlerPostInfo. + + 规则应用的url + + :return: The url of this PolicyAntiCrawlerPostInfo. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this PolicyAntiCrawlerPostInfo. + + 规则应用的url + + :param url: The url of this PolicyAntiCrawlerPostInfo. + :type: str + """ + self._url = url + + @property + def logic(self): + """Gets the logic of this PolicyAntiCrawlerPostInfo. + + 规则匹配逻辑(说明:1:包含,2:不包含,3:等于,4:不等于,5:前缀为,6:前缀不为,7:后缀为,8:后缀不为) + + :return: The logic of this PolicyAntiCrawlerPostInfo. + :rtype: int + """ + return self._logic + + @logic.setter + def logic(self, logic): + """Sets the logic of this PolicyAntiCrawlerPostInfo. + + 规则匹配逻辑(说明:1:包含,2:不包含,3:等于,4:不等于,5:前缀为,6:前缀不为,7:后缀为,8:后缀不为) + + :param logic: The logic of this PolicyAntiCrawlerPostInfo. + :type: int + """ + self._logic = logic + + @property + def name(self): + """Gets the name of this PolicyAntiCrawlerPostInfo. + + 规则名称 + + :return: The name of this PolicyAntiCrawlerPostInfo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this PolicyAntiCrawlerPostInfo. + + 规则名称 + + :param name: The name of this PolicyAntiCrawlerPostInfo. + :type: str + """ + self._name = name + + @property + def type(self): + """Gets the type of this PolicyAntiCrawlerPostInfo. + + 规则url,默认为anticrawler_specific_url + + :return: The type of this PolicyAntiCrawlerPostInfo. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this PolicyAntiCrawlerPostInfo. + + 规则url,默认为anticrawler_specific_url + + :param type: The type of this PolicyAntiCrawlerPostInfo. + :type: str + """ + self._type = type + + @property + def description(self): + """Gets the description of this PolicyAntiCrawlerPostInfo. + + 规则描述 + + :return: The description of this PolicyAntiCrawlerPostInfo. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this PolicyAntiCrawlerPostInfo. + + 规则描述 + + :param description: The description of this PolicyAntiCrawlerPostInfo. + :type: 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PolicyAntiCrawlerPostInfo): + 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-waf/huaweicloudsdkwaf/v1/model/policy_anti_crawler_put_info.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/policy_anti_crawler_put_info.py new file mode 100644 index 0000000000..a7447f4bc2 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/policy_anti_crawler_put_info.py @@ -0,0 +1,164 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class PolicyAntiCrawlerPutInfo: + + + """ + 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 = { + 'url': 'str', + 'logic': 'int', + 'name': 'str' + } + + attribute_map = { + 'url': 'url', + 'logic': 'logic', + 'name': 'name' + } + + def __init__(self, url=None, logic=None, name=None): + """PolicyAntiCrawlerPutInfo - a model defined in huaweicloud sdk""" + + + + self._url = None + self._logic = None + self._name = None + self.discriminator = None + + if url is not None: + self.url = url + if logic is not None: + self.logic = logic + if name is not None: + self.name = name + + @property + def url(self): + """Gets the url of this PolicyAntiCrawlerPutInfo. + + 规则应用的url + + :return: The url of this PolicyAntiCrawlerPutInfo. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this PolicyAntiCrawlerPutInfo. + + 规则应用的url + + :param url: The url of this PolicyAntiCrawlerPutInfo. + :type: str + """ + self._url = url + + @property + def logic(self): + """Gets the logic of this PolicyAntiCrawlerPutInfo. + + 规则匹配逻辑 + + :return: The logic of this PolicyAntiCrawlerPutInfo. + :rtype: int + """ + return self._logic + + @logic.setter + def logic(self, logic): + """Sets the logic of this PolicyAntiCrawlerPutInfo. + + 规则匹配逻辑 + + :param logic: The logic of this PolicyAntiCrawlerPutInfo. + :type: int + """ + self._logic = logic + + @property + def name(self): + """Gets the name of this PolicyAntiCrawlerPutInfo. + + 规则名称 + + :return: The name of this PolicyAntiCrawlerPutInfo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this PolicyAntiCrawlerPutInfo. + + 规则名称 + + :param name: The name of this PolicyAntiCrawlerPutInfo. + :type: str + """ + self._name = 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PolicyAntiCrawlerPutInfo): + 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-waf/huaweicloudsdkwaf/v1/model/policy_geo_ip_list_info_items.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/policy_geo_ip_list_info_items.py new file mode 100644 index 0000000000..29e180dfa5 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/policy_geo_ip_list_info_items.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class PolicyGeoIpListInfoItems: + + + """ + 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', + 'geoip': 'str', + 'white': 'int', + 'timestamp': 'int' + } + + attribute_map = { + 'id': 'id', + 'geoip': 'geoip', + 'white': 'white', + 'timestamp': 'timestamp' + } + + def __init__(self, id=None, geoip=None, white=None, timestamp=None): + """PolicyGeoIpListInfoItems - a model defined in huaweicloud sdk""" + + + + self._id = None + self._geoip = None + self._white = None + self._timestamp = None + self.discriminator = None + + if id is not None: + self.id = id + if geoip is not None: + self.geoip = geoip + if white is not None: + self.white = white + if timestamp is not None: + self.timestamp = timestamp + + @property + def id(self): + """Gets the id of this PolicyGeoIpListInfoItems. + + 规则id + + :return: The id of this PolicyGeoIpListInfoItems. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this PolicyGeoIpListInfoItems. + + 规则id + + :param id: The id of this PolicyGeoIpListInfoItems. + :type: str + """ + self._id = id + + @property + def geoip(self): + """Gets the geoip of this PolicyGeoIpListInfoItems. + + 地理位置封禁区域 + + :return: The geoip of this PolicyGeoIpListInfoItems. + :rtype: str + """ + return self._geoip + + @geoip.setter + def geoip(self, geoip): + """Sets the geoip of this PolicyGeoIpListInfoItems. + + 地理位置封禁区域 + + :param geoip: The geoip of this PolicyGeoIpListInfoItems. + :type: str + """ + self._geoip = geoip + + @property + def white(self): + """Gets the white of this PolicyGeoIpListInfoItems. + + 放行或者拦截 + + :return: The white of this PolicyGeoIpListInfoItems. + :rtype: int + """ + return self._white + + @white.setter + def white(self, white): + """Sets the white of this PolicyGeoIpListInfoItems. + + 放行或者拦截 + + :param white: The white of this PolicyGeoIpListInfoItems. + :type: int + """ + self._white = white + + @property + def timestamp(self): + """Gets the timestamp of this PolicyGeoIpListInfoItems. + + 创建规则时间戳 + + :return: The timestamp of this PolicyGeoIpListInfoItems. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this PolicyGeoIpListInfoItems. + + 创建规则时间戳 + + :param timestamp: The timestamp of this PolicyGeoIpListInfoItems. + :type: int + """ + self._timestamp = timestamp + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PolicyGeoIpListInfoItems): + 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-waf/huaweicloudsdkwaf/v1/model/policy_option.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/policy_option.py new file mode 100644 index 0000000000..21b02d3646 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/policy_option.py @@ -0,0 +1,461 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class PolicyOption: + + + """ + 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 = { + 'webattack': 'bool', + 'common': 'bool', + 'crawler': 'bool', + 'crawler_engine': 'bool', + 'crawler_scanner': 'bool', + 'crawler_script': 'bool', + 'crawler_other': 'bool', + 'webshell': 'bool', + 'cc': 'bool', + 'custom': 'bool', + 'whiteblackip': 'bool', + 'ignore': 'bool', + 'privacy': 'bool', + 'antitamper': 'bool' + } + + attribute_map = { + 'webattack': 'webattack', + 'common': 'common', + 'crawler': 'crawler', + 'crawler_engine': 'crawler_engine', + 'crawler_scanner': 'crawler_scanner', + 'crawler_script': 'crawler_script', + 'crawler_other': 'crawler_other', + 'webshell': 'webshell', + 'cc': 'cc', + 'custom': 'custom', + 'whiteblackip': 'whiteblackip', + 'ignore': 'ignore', + 'privacy': 'privacy', + 'antitamper': 'antitamper' + } + + def __init__(self, webattack=None, common=None, crawler=None, crawler_engine=None, crawler_scanner=None, crawler_script=None, crawler_other=None, webshell=None, cc=None, custom=None, whiteblackip=None, ignore=None, privacy=None, antitamper=None): + """PolicyOption - a model defined in huaweicloud sdk""" + + + + self._webattack = None + self._common = None + self._crawler = None + self._crawler_engine = None + self._crawler_scanner = None + self._crawler_script = None + self._crawler_other = None + self._webshell = None + self._cc = None + self._custom = None + self._whiteblackip = None + self._ignore = None + self._privacy = None + self._antitamper = None + self.discriminator = None + + if webattack is not None: + self.webattack = webattack + if common is not None: + self.common = common + if crawler is not None: + self.crawler = crawler + if crawler_engine is not None: + self.crawler_engine = crawler_engine + if crawler_scanner is not None: + self.crawler_scanner = crawler_scanner + if crawler_script is not None: + self.crawler_script = crawler_script + if crawler_other is not None: + self.crawler_other = crawler_other + if webshell is not None: + self.webshell = webshell + if cc is not None: + self.cc = cc + if custom is not None: + self.custom = custom + if whiteblackip is not None: + self.whiteblackip = whiteblackip + if ignore is not None: + self.ignore = ignore + if privacy is not None: + self.privacy = privacy + if antitamper is not None: + self.antitamper = antitamper + + @property + def webattack(self): + """Gets the webattack of this PolicyOption. + + 基础防护是否开启 + + :return: The webattack of this PolicyOption. + :rtype: bool + """ + return self._webattack + + @webattack.setter + def webattack(self, webattack): + """Sets the webattack of this PolicyOption. + + 基础防护是否开启 + + :param webattack: The webattack of this PolicyOption. + :type: bool + """ + self._webattack = webattack + + @property + def common(self): + """Gets the common of this PolicyOption. + + 常规检测是否开启 + + :return: The common of this PolicyOption. + :rtype: bool + """ + return self._common + + @common.setter + def common(self, common): + """Sets the common of this PolicyOption. + + 常规检测是否开启 + + :param common: The common of this PolicyOption. + :type: bool + """ + self._common = common + + @property + def crawler(self): + """Gets the crawler of this PolicyOption. + + 反爬虫是否开启 + + :return: The crawler of this PolicyOption. + :rtype: bool + """ + return self._crawler + + @crawler.setter + def crawler(self, crawler): + """Sets the crawler of this PolicyOption. + + 反爬虫是否开启 + + :param crawler: The crawler of this PolicyOption. + :type: bool + """ + self._crawler = crawler + + @property + def crawler_engine(self): + """Gets the crawler_engine of this PolicyOption. + + 搜索engine是否开启 + + :return: The crawler_engine of this PolicyOption. + :rtype: bool + """ + return self._crawler_engine + + @crawler_engine.setter + def crawler_engine(self, crawler_engine): + """Sets the crawler_engine of this PolicyOption. + + 搜索engine是否开启 + + :param crawler_engine: The crawler_engine of this PolicyOption. + :type: bool + """ + self._crawler_engine = crawler_engine + + @property + def crawler_scanner(self): + """Gets the crawler_scanner of this PolicyOption. + + 扫描器是否开启 + + :return: The crawler_scanner of this PolicyOption. + :rtype: bool + """ + return self._crawler_scanner + + @crawler_scanner.setter + def crawler_scanner(self, crawler_scanner): + """Sets the crawler_scanner of this PolicyOption. + + 扫描器是否开启 + + :param crawler_scanner: The crawler_scanner of this PolicyOption. + :type: bool + """ + self._crawler_scanner = crawler_scanner + + @property + def crawler_script(self): + """Gets the crawler_script of this PolicyOption. + + 脚本反爬虫是否开启 + + :return: The crawler_script of this PolicyOption. + :rtype: bool + """ + return self._crawler_script + + @crawler_script.setter + def crawler_script(self, crawler_script): + """Sets the crawler_script of this PolicyOption. + + 脚本反爬虫是否开启 + + :param crawler_script: The crawler_script of this PolicyOption. + :type: bool + """ + self._crawler_script = crawler_script + + @property + def crawler_other(self): + """Gets the crawler_other of this PolicyOption. + + 其他爬虫是否开启 + + :return: The crawler_other of this PolicyOption. + :rtype: bool + """ + return self._crawler_other + + @crawler_other.setter + def crawler_other(self, crawler_other): + """Sets the crawler_other of this PolicyOption. + + 其他爬虫是否开启 + + :param crawler_other: The crawler_other of this PolicyOption. + :type: bool + """ + self._crawler_other = crawler_other + + @property + def webshell(self): + """Gets the webshell of this PolicyOption. + + Webshell检测是否开启 + + :return: The webshell of this PolicyOption. + :rtype: bool + """ + return self._webshell + + @webshell.setter + def webshell(self, webshell): + """Sets the webshell of this PolicyOption. + + Webshell检测是否开启 + + :param webshell: The webshell of this PolicyOption. + :type: bool + """ + self._webshell = webshell + + @property + def cc(self): + """Gets the cc of this PolicyOption. + + cc规则是否开启 + + :return: The cc of this PolicyOption. + :rtype: bool + """ + return self._cc + + @cc.setter + def cc(self, cc): + """Sets the cc of this PolicyOption. + + cc规则是否开启 + + :param cc: The cc of this PolicyOption. + :type: bool + """ + self._cc = cc + + @property + def custom(self): + """Gets the custom of this PolicyOption. + + 精准防护是否开启 + + :return: The custom of this PolicyOption. + :rtype: bool + """ + return self._custom + + @custom.setter + def custom(self, custom): + """Sets the custom of this PolicyOption. + + 精准防护是否开启 + + :param custom: The custom of this PolicyOption. + :type: bool + """ + self._custom = custom + + @property + def whiteblackip(self): + """Gets the whiteblackip of this PolicyOption. + + 黑白名单防护是否开启 + + :return: The whiteblackip of this PolicyOption. + :rtype: bool + """ + return self._whiteblackip + + @whiteblackip.setter + def whiteblackip(self, whiteblackip): + """Sets the whiteblackip of this PolicyOption. + + 黑白名单防护是否开启 + + :param whiteblackip: The whiteblackip of this PolicyOption. + :type: bool + """ + self._whiteblackip = whiteblackip + + @property + def ignore(self): + """Gets the ignore of this PolicyOption. + + 误报屏蔽是否开启 + + :return: The ignore of this PolicyOption. + :rtype: bool + """ + return self._ignore + + @ignore.setter + def ignore(self, ignore): + """Sets the ignore of this PolicyOption. + + 误报屏蔽是否开启 + + :param ignore: The ignore of this PolicyOption. + :type: bool + """ + self._ignore = ignore + + @property + def privacy(self): + """Gets the privacy of this PolicyOption. + + 隐私屏蔽是否开启 + + :return: The privacy of this PolicyOption. + :rtype: bool + """ + return self._privacy + + @privacy.setter + def privacy(self, privacy): + """Sets the privacy of this PolicyOption. + + 隐私屏蔽是否开启 + + :param privacy: The privacy of this PolicyOption. + :type: bool + """ + self._privacy = privacy + + @property + def antitamper(self): + """Gets the antitamper of this PolicyOption. + + 网页防篡改规则是否开启 + + :return: The antitamper of this PolicyOption. + :rtype: bool + """ + return self._antitamper + + @antitamper.setter + def antitamper(self, antitamper): + """Sets the antitamper of this PolicyOption. + + 网页防篡改规则是否开启 + + :param antitamper: The antitamper of this PolicyOption. + :type: bool + """ + self._antitamper = antitamper + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PolicyOption): + 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-waf/huaweicloudsdkwaf/v1/model/policy_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/policy_response.py new file mode 100644 index 0000000000..57d2675b94 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/policy_response.py @@ -0,0 +1,322 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class PolicyResponse: + + + """ + 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', + 'action': 'PolicyAction', + 'options': 'PolicyOption', + 'level': 'int', + 'full_detection': 'bool', + 'bind_host': 'list[BindHost]', + 'timestamp': 'int', + 'extend': 'dict(str, str)' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'action': 'action', + 'options': 'options', + 'level': 'level', + 'full_detection': 'full_detection', + 'bind_host': 'bind_host', + 'timestamp': 'timestamp', + 'extend': 'extend' + } + + def __init__(self, id=None, name=None, action=None, options=None, level=None, full_detection=None, bind_host=None, timestamp=None, extend=None): + """PolicyResponse - a model defined in huaweicloud sdk""" + + + + self._id = None + self._name = None + self._action = None + self._options = None + self._level = None + self._full_detection = None + self._bind_host = None + self._timestamp = None + self._extend = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if action is not None: + self.action = action + if options is not None: + self.options = options + if level is not None: + self.level = level + if full_detection is not None: + self.full_detection = full_detection + if bind_host is not None: + self.bind_host = bind_host + if timestamp is not None: + self.timestamp = timestamp + if extend is not None: + self.extend = extend + + @property + def id(self): + """Gets the id of this PolicyResponse. + + 防护策略id + + :return: The id of this PolicyResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this PolicyResponse. + + 防护策略id + + :param id: The id of this PolicyResponse. + :type: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this PolicyResponse. + + 防护策略名 + + :return: The name of this PolicyResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this PolicyResponse. + + 防护策略名 + + :param name: The name of this PolicyResponse. + :type: str + """ + self._name = name + + @property + def action(self): + """Gets the action of this PolicyResponse. + + + :return: The action of this PolicyResponse. + :rtype: PolicyAction + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this PolicyResponse. + + + :param action: The action of this PolicyResponse. + :type: PolicyAction + """ + self._action = action + + @property + def options(self): + """Gets the options of this PolicyResponse. + + + :return: The options of this PolicyResponse. + :rtype: PolicyOption + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PolicyResponse. + + + :param options: The options of this PolicyResponse. + :type: PolicyOption + """ + self._options = options + + @property + def level(self): + """Gets the level of this PolicyResponse. + + 防护等级 + + :return: The level of this PolicyResponse. + :rtype: int + """ + return self._level + + @level.setter + def level(self, level): + """Sets the level of this PolicyResponse. + + 防护等级 + + :param level: The level of this PolicyResponse. + :type: int + """ + self._level = level + + @property + def full_detection(self): + """Gets the full_detection of this PolicyResponse. + + 精准防护中的检测模式 + + :return: The full_detection of this PolicyResponse. + :rtype: bool + """ + return self._full_detection + + @full_detection.setter + def full_detection(self, full_detection): + """Sets the full_detection of this PolicyResponse. + + 精准防护中的检测模式 + + :param full_detection: The full_detection of this PolicyResponse. + :type: bool + """ + self._full_detection = full_detection + + @property + def bind_host(self): + """Gets the bind_host of this PolicyResponse. + + 防护域名的信息 + + :return: The bind_host of this PolicyResponse. + :rtype: list[BindHost] + """ + return self._bind_host + + @bind_host.setter + def bind_host(self, bind_host): + """Sets the bind_host of this PolicyResponse. + + 防护域名的信息 + + :param bind_host: The bind_host of this PolicyResponse. + :type: list[BindHost] + """ + self._bind_host = bind_host + + @property + def timestamp(self): + """Gets the timestamp of this PolicyResponse. + + 创建防护策略的时间 + + :return: The timestamp of this PolicyResponse. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this PolicyResponse. + + 创建防护策略的时间 + + :param timestamp: The timestamp of this PolicyResponse. + :type: int + """ + self._timestamp = timestamp + + @property + def extend(self): + """Gets the extend of this PolicyResponse. + + 扩展字段 + + :return: The extend of this PolicyResponse. + :rtype: dict(str, str) + """ + return self._extend + + @extend.setter + def extend(self, extend): + """Sets the extend of this PolicyResponse. + + 扩展字段 + + :param extend: The extend of this PolicyResponse. + :type: dict(str, str) + """ + self._extend = extend + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PolicyResponse): + 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-waf/huaweicloudsdkwaf/v1/model/pool_info_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/pool_info_response.py new file mode 100644 index 0000000000..052c8e53cc --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/pool_info_response.py @@ -0,0 +1,189 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class PoolInfoResponse: + + + """ + 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 = { + 'option': 'PremiumWafPoolOption', + 'hosts': 'list[IdNameEntry]', + 'instances': 'list[IdNameEntry]', + 'bindings': 'list[IdNameEntry]' + } + + attribute_map = { + 'option': 'option', + 'hosts': 'hosts', + 'instances': 'instances', + 'bindings': 'bindings' + } + + def __init__(self, option=None, hosts=None, instances=None, bindings=None): + """PoolInfoResponse - a model defined in huaweicloud sdk""" + + + + self._option = None + self._hosts = None + self._instances = None + self._bindings = None + self.discriminator = None + + if option is not None: + self.option = option + if hosts is not None: + self.hosts = hosts + if instances is not None: + self.instances = instances + if bindings is not None: + self.bindings = bindings + + @property + def option(self): + """Gets the option of this PoolInfoResponse. + + + :return: The option of this PoolInfoResponse. + :rtype: PremiumWafPoolOption + """ + return self._option + + @option.setter + def option(self, option): + """Sets the option of this PoolInfoResponse. + + + :param option: The option of this PoolInfoResponse. + :type: PremiumWafPoolOption + """ + self._option = option + + @property + def hosts(self): + """Gets the hosts of this PoolInfoResponse. + + 关联的域名 + + :return: The hosts of this PoolInfoResponse. + :rtype: list[IdNameEntry] + """ + return self._hosts + + @hosts.setter + def hosts(self, hosts): + """Sets the hosts of this PoolInfoResponse. + + 关联的域名 + + :param hosts: The hosts of this PoolInfoResponse. + :type: list[IdNameEntry] + """ + self._hosts = hosts + + @property + def instances(self): + """Gets the instances of this PoolInfoResponse. + + 组内的独享引擎 + + :return: The instances of this PoolInfoResponse. + :rtype: list[IdNameEntry] + """ + return self._instances + + @instances.setter + def instances(self, instances): + """Sets the instances of this PoolInfoResponse. + + 组内的独享引擎 + + :param instances: The instances of this PoolInfoResponse. + :type: list[IdNameEntry] + """ + self._instances = instances + + @property + def bindings(self): + """Gets the bindings of this PoolInfoResponse. + + 绑定的LoadBalancer + + :return: The bindings of this PoolInfoResponse. + :rtype: list[IdNameEntry] + """ + return self._bindings + + @bindings.setter + def bindings(self, bindings): + """Sets the bindings of this PoolInfoResponse. + + 绑定的LoadBalancer + + :param bindings: The bindings of this PoolInfoResponse. + :type: list[IdNameEntry] + """ + self._bindings = bindings + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoolInfoResponse): + 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-waf/huaweicloudsdkwaf/v1/model/premium_waf_host.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/premium_waf_host.py new file mode 100644 index 0000000000..766155bd5a --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/premium_waf_host.py @@ -0,0 +1,619 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class PremiumWafHost: + + + """ + 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', + 'policyid': 'str', + 'hostname': 'str', + 'domainid': 'str', + 'project_id': 'str', + 'access_code': 'str', + 'protocol': 'str', + 'server': 'list[PremiumWafServer]', + 'certificateid': 'str', + 'certificatename': 'str', + 'tls': 'str', + 'cipher': 'str', + 'proxy': 'bool', + 'locked': 'int', + 'protect_status': 'int', + 'access_status': 'int', + 'timestamp': 'int', + 'block_page': 'BlockPage', + 'extend': 'dict(str, str)', + 'traffic_mark': 'TrafficMark' + } + + attribute_map = { + 'id': 'id', + 'policyid': 'policyid', + 'hostname': 'hostname', + 'domainid': 'domainid', + 'project_id': 'project_id', + 'access_code': 'access_code', + 'protocol': 'protocol', + 'server': 'server', + 'certificateid': 'certificateid', + 'certificatename': 'certificatename', + 'tls': 'tls', + 'cipher': 'cipher', + 'proxy': 'proxy', + 'locked': 'locked', + 'protect_status': 'protect_status', + 'access_status': 'access_status', + 'timestamp': 'timestamp', + 'block_page': 'block_page', + 'extend': 'extend', + 'traffic_mark': 'traffic_mark' + } + + def __init__(self, id=None, policyid=None, hostname=None, domainid=None, project_id=None, access_code=None, protocol=None, server=None, certificateid=None, certificatename=None, tls=None, cipher=None, proxy=None, locked=None, protect_status=None, access_status=None, timestamp=None, block_page=None, extend=None, traffic_mark=None): + """PremiumWafHost - a model defined in huaweicloud sdk""" + + + + self._id = None + self._policyid = None + self._hostname = None + self._domainid = None + self._project_id = None + self._access_code = None + self._protocol = None + self._server = None + self._certificateid = None + self._certificatename = None + self._tls = None + self._cipher = None + self._proxy = None + self._locked = None + self._protect_status = None + self._access_status = None + self._timestamp = None + self._block_page = None + self._extend = None + self._traffic_mark = None + self.discriminator = None + + if id is not None: + self.id = id + if policyid is not None: + self.policyid = policyid + if hostname is not None: + self.hostname = hostname + if domainid is not None: + self.domainid = domainid + if project_id is not None: + self.project_id = project_id + if access_code is not None: + self.access_code = access_code + if protocol is not None: + self.protocol = protocol + if server is not None: + self.server = server + if certificateid is not None: + self.certificateid = certificateid + if certificatename is not None: + self.certificatename = certificatename + if tls is not None: + self.tls = tls + if cipher is not None: + self.cipher = cipher + if proxy is not None: + self.proxy = proxy + if locked is not None: + self.locked = locked + if protect_status is not None: + self.protect_status = protect_status + if access_status is not None: + self.access_status = access_status + if timestamp is not None: + self.timestamp = timestamp + if block_page is not None: + self.block_page = block_page + if extend is not None: + self.extend = extend + if traffic_mark is not None: + self.traffic_mark = traffic_mark + + @property + def id(self): + """Gets the id of this PremiumWafHost. + + 域名id + + :return: The id of this PremiumWafHost. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this PremiumWafHost. + + 域名id + + :param id: The id of this PremiumWafHost. + :type: str + """ + self._id = id + + @property + def policyid(self): + """Gets the policyid of this PremiumWafHost. + + 策略id + + :return: The policyid of this PremiumWafHost. + :rtype: str + """ + return self._policyid + + @policyid.setter + def policyid(self, policyid): + """Sets the policyid of this PremiumWafHost. + + 策略id + + :param policyid: The policyid of this PremiumWafHost. + :type: str + """ + self._policyid = policyid + + @property + def hostname(self): + """Gets the hostname of this PremiumWafHost. + + 创建的云模式防护域名 + + :return: The hostname of this PremiumWafHost. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """Sets the hostname of this PremiumWafHost. + + 创建的云模式防护域名 + + :param hostname: The hostname of this PremiumWafHost. + :type: str + """ + self._hostname = hostname + + @property + def domainid(self): + """Gets the domainid of this PremiumWafHost. + + 用户Domain ID + + :return: The domainid of this PremiumWafHost. + :rtype: str + """ + return self._domainid + + @domainid.setter + def domainid(self, domainid): + """Sets the domainid of this PremiumWafHost. + + 用户Domain ID + + :param domainid: The domainid of this PremiumWafHost. + :type: str + """ + self._domainid = domainid + + @property + def project_id(self): + """Gets the project_id of this PremiumWafHost. + + 用户Project ID + + :return: The project_id of this PremiumWafHost. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this PremiumWafHost. + + 用户Project ID + + :param project_id: The project_id of this PremiumWafHost. + :type: str + """ + self._project_id = project_id + + @property + def access_code(self): + """Gets the access_code of this PremiumWafHost. + + cname + + :return: The access_code of this PremiumWafHost. + :rtype: str + """ + return self._access_code + + @access_code.setter + def access_code(self, access_code): + """Sets the access_code of this PremiumWafHost. + + cname + + :param access_code: The access_code of this PremiumWafHost. + :type: str + """ + self._access_code = access_code + + @property + def protocol(self): + """Gets the protocol of this PremiumWafHost. + + 返回的客户端协议类型 + + :return: The protocol of this PremiumWafHost. + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this PremiumWafHost. + + 返回的客户端协议类型 + + :param protocol: The protocol of this PremiumWafHost. + :type: str + """ + self._protocol = protocol + + @property + def server(self): + """Gets the server of this PremiumWafHost. + + 源站信息 + + :return: The server of this PremiumWafHost. + :rtype: list[PremiumWafServer] + """ + return self._server + + @server.setter + def server(self, server): + """Sets the server of this PremiumWafHost. + + 源站信息 + + :param server: The server of this PremiumWafHost. + :type: list[PremiumWafServer] + """ + self._server = server + + @property + def certificateid(self): + """Gets the certificateid of this PremiumWafHost. + + 返回的证书id + + :return: The certificateid of this PremiumWafHost. + :rtype: str + """ + return self._certificateid + + @certificateid.setter + def certificateid(self, certificateid): + """Sets the certificateid of this PremiumWafHost. + + 返回的证书id + + :param certificateid: The certificateid of this PremiumWafHost. + :type: str + """ + self._certificateid = certificateid + + @property + def certificatename(self): + """Gets the certificatename of this PremiumWafHost. + + 证书名称 + + :return: The certificatename of this PremiumWafHost. + :rtype: str + """ + return self._certificatename + + @certificatename.setter + def certificatename(self, certificatename): + """Sets the certificatename of this PremiumWafHost. + + 证书名称 + + :param certificatename: The certificatename of this PremiumWafHost. + :type: str + """ + self._certificatename = certificatename + + @property + def tls(self): + """Gets the tls of this PremiumWafHost. + + 支持最低的TLS版本 + + :return: The tls of this PremiumWafHost. + :rtype: str + """ + return self._tls + + @tls.setter + def tls(self, tls): + """Sets the tls of this PremiumWafHost. + + 支持最低的TLS版本 + + :param tls: The tls of this PremiumWafHost. + :type: str + """ + self._tls = tls + + @property + def cipher(self): + """Gets the cipher of this PremiumWafHost. + + 加密套件代码 + + :return: The cipher of this PremiumWafHost. + :rtype: str + """ + return self._cipher + + @cipher.setter + def cipher(self, cipher): + """Sets the cipher of this PremiumWafHost. + + 加密套件代码 + + :param cipher: The cipher of this PremiumWafHost. + :type: str + """ + self._cipher = cipher + + @property + def proxy(self): + """Gets the proxy of this PremiumWafHost. + + 是否开启了代理 + + :return: The proxy of this PremiumWafHost. + :rtype: bool + """ + return self._proxy + + @proxy.setter + def proxy(self, proxy): + """Sets the proxy of this PremiumWafHost. + + 是否开启了代理 + + :param proxy: The proxy of this PremiumWafHost. + :type: bool + """ + self._proxy = proxy + + @property + def locked(self): + """Gets the locked of this PremiumWafHost. + + 锁定状态 + + :return: The locked of this PremiumWafHost. + :rtype: int + """ + return self._locked + + @locked.setter + def locked(self, locked): + """Sets the locked of this PremiumWafHost. + + 锁定状态 + + :param locked: The locked of this PremiumWafHost. + :type: int + """ + self._locked = locked + + @property + def protect_status(self): + """Gets the protect_status of this PremiumWafHost. + + 防护状态 + + :return: The protect_status of this PremiumWafHost. + :rtype: int + """ + return self._protect_status + + @protect_status.setter + def protect_status(self, protect_status): + """Sets the protect_status of this PremiumWafHost. + + 防护状态 + + :param protect_status: The protect_status of this PremiumWafHost. + :type: int + """ + self._protect_status = protect_status + + @property + def access_status(self): + """Gets the access_status of this PremiumWafHost. + + 接入状态 + + :return: The access_status of this PremiumWafHost. + :rtype: int + """ + return self._access_status + + @access_status.setter + def access_status(self, access_status): + """Sets the access_status of this PremiumWafHost. + + 接入状态 + + :param access_status: The access_status of this PremiumWafHost. + :type: int + """ + self._access_status = access_status + + @property + def timestamp(self): + """Gets the timestamp of this PremiumWafHost. + + 创建防护域名的时间 + + :return: The timestamp of this PremiumWafHost. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this PremiumWafHost. + + 创建防护域名的时间 + + :param timestamp: The timestamp of this PremiumWafHost. + :type: int + """ + self._timestamp = timestamp + + @property + def block_page(self): + """Gets the block_page of this PremiumWafHost. + + + :return: The block_page of this PremiumWafHost. + :rtype: BlockPage + """ + return self._block_page + + @block_page.setter + def block_page(self, block_page): + """Sets the block_page of this PremiumWafHost. + + + :param block_page: The block_page of this PremiumWafHost. + :type: BlockPage + """ + self._block_page = block_page + + @property + def extend(self): + """Gets the extend of this PremiumWafHost. + + 可扩展属性 + + :return: The extend of this PremiumWafHost. + :rtype: dict(str, str) + """ + return self._extend + + @extend.setter + def extend(self, extend): + """Sets the extend of this PremiumWafHost. + + 可扩展属性 + + :param extend: The extend of this PremiumWafHost. + :type: dict(str, str) + """ + self._extend = extend + + @property + def traffic_mark(self): + """Gets the traffic_mark of this PremiumWafHost. + + + :return: The traffic_mark of this PremiumWafHost. + :rtype: TrafficMark + """ + return self._traffic_mark + + @traffic_mark.setter + def traffic_mark(self, traffic_mark): + """Sets the traffic_mark of this PremiumWafHost. + + + :param traffic_mark: The traffic_mark of this PremiumWafHost. + :type: TrafficMark + """ + self._traffic_mark = traffic_mark + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PremiumWafHost): + 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-waf/huaweicloudsdkwaf/v1/model/premium_waf_instance.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/premium_waf_instance.py new file mode 100644 index 0000000000..1054d4194f --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/premium_waf_instance.py @@ -0,0 +1,785 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class PremiumWafInstance: + + + """ + 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', + 'instancename': 'str', + 'server_id': 'str', + 'region': 'str', + 'zone': 'str', + 'arch': 'str', + 'cpu_flavor': 'str', + 'vpc_id': 'str', + 'subnet_id': 'str', + 'service_ip': 'str', + 'service_ipv6': 'str', + 'float_ip': 'str', + 'security_group_id': 'list[str]', + 'mgr_security_group_id': 'str', + 'status': 'int', + 'run_status': 'int', + 'access_status': 'int', + 'upgradable': 'int', + 'cloud_service_type': 'str', + 'resource_type': 'str', + 'resource_spec_code': 'str', + 'specification': 'str', + 'hosts': 'list[IdHostnameEntry]', + 'volume_type': 'str', + 'cluster_id': 'str', + 'pool_id': 'str' + } + + attribute_map = { + 'id': 'id', + 'instancename': 'instancename', + 'server_id': 'serverId', + 'region': 'region', + 'zone': 'zone', + 'arch': 'arch', + 'cpu_flavor': 'cpu_flavor', + 'vpc_id': 'vpc_id', + 'subnet_id': 'subnet_id', + 'service_ip': 'service_ip', + 'service_ipv6': 'service_ipv6', + 'float_ip': 'floatIp', + 'security_group_id': 'securityGroupId', + 'mgr_security_group_id': 'mgrSecurityGroupId', + 'status': 'status', + 'run_status': 'run_status', + 'access_status': 'access_status', + 'upgradable': 'upgradable', + 'cloud_service_type': 'cloudServiceType', + 'resource_type': 'resourceType', + 'resource_spec_code': 'resourceSpecCode', + 'specification': 'specification', + 'hosts': 'hosts', + 'volume_type': 'volume_type', + 'cluster_id': 'cluster_id', + 'pool_id': 'pool_id' + } + + def __init__(self, id=None, instancename=None, server_id=None, region=None, zone=None, arch=None, cpu_flavor=None, vpc_id=None, subnet_id=None, service_ip=None, service_ipv6=None, float_ip=None, security_group_id=None, mgr_security_group_id=None, status=None, run_status=None, access_status=None, upgradable=None, cloud_service_type=None, resource_type=None, resource_spec_code=None, specification=None, hosts=None, volume_type=None, cluster_id=None, pool_id=None): + """PremiumWafInstance - a model defined in huaweicloud sdk""" + + + + self._id = None + self._instancename = None + self._server_id = None + self._region = None + self._zone = None + self._arch = None + self._cpu_flavor = None + self._vpc_id = None + self._subnet_id = None + self._service_ip = None + self._service_ipv6 = None + self._float_ip = None + self._security_group_id = None + self._mgr_security_group_id = None + self._status = None + self._run_status = None + self._access_status = None + self._upgradable = None + self._cloud_service_type = None + self._resource_type = None + self._resource_spec_code = None + self._specification = None + self._hosts = None + self._volume_type = None + self._cluster_id = None + self._pool_id = None + self.discriminator = None + + if id is not None: + self.id = id + if instancename is not None: + self.instancename = instancename + if server_id is not None: + self.server_id = server_id + if region is not None: + self.region = region + if zone is not None: + self.zone = zone + if arch is not None: + self.arch = arch + if cpu_flavor is not None: + self.cpu_flavor = cpu_flavor + if vpc_id is not None: + self.vpc_id = vpc_id + if subnet_id is not None: + self.subnet_id = subnet_id + if service_ip is not None: + self.service_ip = service_ip + if service_ipv6 is not None: + self.service_ipv6 = service_ipv6 + if float_ip is not None: + self.float_ip = float_ip + if security_group_id is not None: + self.security_group_id = security_group_id + if mgr_security_group_id is not None: + self.mgr_security_group_id = mgr_security_group_id + if status is not None: + self.status = status + if run_status is not None: + self.run_status = run_status + if access_status is not None: + self.access_status = access_status + if upgradable is not None: + self.upgradable = upgradable + if cloud_service_type is not None: + self.cloud_service_type = cloud_service_type + if resource_type is not None: + self.resource_type = resource_type + if resource_spec_code is not None: + self.resource_spec_code = resource_spec_code + if specification is not None: + self.specification = specification + if hosts is not None: + self.hosts = hosts + if volume_type is not None: + self.volume_type = volume_type + if cluster_id is not None: + self.cluster_id = cluster_id + if pool_id is not None: + self.pool_id = pool_id + + @property + def id(self): + """Gets the id of this PremiumWafInstance. + + 独享引擎ID + + :return: The id of this PremiumWafInstance. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this PremiumWafInstance. + + 独享引擎ID + + :param id: The id of this PremiumWafInstance. + :type: str + """ + self._id = id + + @property + def instancename(self): + """Gets the instancename of this PremiumWafInstance. + + 独享引擎名称 + + :return: The instancename of this PremiumWafInstance. + :rtype: str + """ + return self._instancename + + @instancename.setter + def instancename(self, instancename): + """Sets the instancename of this PremiumWafInstance. + + 独享引擎名称 + + :param instancename: The instancename of this PremiumWafInstance. + :type: str + """ + self._instancename = instancename + + @property + def server_id(self): + """Gets the server_id of this PremiumWafInstance. + + 独享引擎ECS ID + + :return: The server_id of this PremiumWafInstance. + :rtype: str + """ + return self._server_id + + @server_id.setter + def server_id(self, server_id): + """Sets the server_id of this PremiumWafInstance. + + 独享引擎ECS ID + + :param server_id: The server_id of this PremiumWafInstance. + :type: str + """ + self._server_id = server_id + + @property + def region(self): + """Gets the region of this PremiumWafInstance. + + Region代码 + + :return: The region of this PremiumWafInstance. + :rtype: str + """ + return self._region + + @region.setter + def region(self, region): + """Sets the region of this PremiumWafInstance. + + Region代码 + + :param region: The region of this PremiumWafInstance. + :type: str + """ + self._region = region + + @property + def zone(self): + """Gets the zone of this PremiumWafInstance. + + 可用区代码 + + :return: The zone of this PremiumWafInstance. + :rtype: str + """ + return self._zone + + @zone.setter + def zone(self, zone): + """Sets the zone of this PremiumWafInstance. + + 可用区代码 + + :param zone: The zone of this PremiumWafInstance. + :type: str + """ + self._zone = zone + + @property + def arch(self): + """Gets the arch of this PremiumWafInstance. + + CPU架构代码 + + :return: The arch of this PremiumWafInstance. + :rtype: str + """ + return self._arch + + @arch.setter + def arch(self, arch): + """Sets the arch of this PremiumWafInstance. + + CPU架构代码 + + :param arch: The arch of this PremiumWafInstance. + :type: str + """ + self._arch = arch + + @property + def cpu_flavor(self): + """Gets the cpu_flavor of this PremiumWafInstance. + + ECS规格代码 + + :return: The cpu_flavor of this PremiumWafInstance. + :rtype: str + """ + return self._cpu_flavor + + @cpu_flavor.setter + def cpu_flavor(self, cpu_flavor): + """Sets the cpu_flavor of this PremiumWafInstance. + + ECS规格代码 + + :param cpu_flavor: The cpu_flavor of this PremiumWafInstance. + :type: str + """ + self._cpu_flavor = cpu_flavor + + @property + def vpc_id(self): + """Gets the vpc_id of this PremiumWafInstance. + + 独享引擎所在VPC ID + + :return: The vpc_id of this PremiumWafInstance. + :rtype: str + """ + return self._vpc_id + + @vpc_id.setter + def vpc_id(self, vpc_id): + """Sets the vpc_id of this PremiumWafInstance. + + 独享引擎所在VPC ID + + :param vpc_id: The vpc_id of this PremiumWafInstance. + :type: str + """ + self._vpc_id = vpc_id + + @property + def subnet_id(self): + """Gets the subnet_id of this PremiumWafInstance. + + 独享引擎所在VPC的子网ID + + :return: The subnet_id of this PremiumWafInstance. + :rtype: str + """ + return self._subnet_id + + @subnet_id.setter + def subnet_id(self, subnet_id): + """Sets the subnet_id of this PremiumWafInstance. + + 独享引擎所在VPC的子网ID + + :param subnet_id: The subnet_id of this PremiumWafInstance. + :type: str + """ + self._subnet_id = subnet_id + + @property + def service_ip(self): + """Gets the service_ip of this PremiumWafInstance. + + 独享引擎的业务面IP + + :return: The service_ip of this PremiumWafInstance. + :rtype: str + """ + return self._service_ip + + @service_ip.setter + def service_ip(self, service_ip): + """Sets the service_ip of this PremiumWafInstance. + + 独享引擎的业务面IP + + :param service_ip: The service_ip of this PremiumWafInstance. + :type: str + """ + self._service_ip = service_ip + + @property + def service_ipv6(self): + """Gets the service_ipv6 of this PremiumWafInstance. + + 独享引擎的业务面IPV6地址 + + :return: The service_ipv6 of this PremiumWafInstance. + :rtype: str + """ + return self._service_ipv6 + + @service_ipv6.setter + def service_ipv6(self, service_ipv6): + """Sets the service_ipv6 of this PremiumWafInstance. + + 独享引擎的业务面IPV6地址 + + :param service_ipv6: The service_ipv6 of this PremiumWafInstance. + :type: str + """ + self._service_ipv6 = service_ipv6 + + @property + def float_ip(self): + """Gets the float_ip of this PremiumWafInstance. + + 独享引擎的管理面IP + + :return: The float_ip of this PremiumWafInstance. + :rtype: str + """ + return self._float_ip + + @float_ip.setter + def float_ip(self, float_ip): + """Sets the float_ip of this PremiumWafInstance. + + 独享引擎的管理面IP + + :param float_ip: The float_ip of this PremiumWafInstance. + :type: str + """ + self._float_ip = float_ip + + @property + def security_group_id(self): + """Gets the security_group_id of this PremiumWafInstance. + + 独享引擎ECS绑定的安全组 + + :return: The security_group_id of this PremiumWafInstance. + :rtype: list[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 PremiumWafInstance. + + 独享引擎ECS绑定的安全组 + + :param security_group_id: The security_group_id of this PremiumWafInstance. + :type: list[str] + """ + self._security_group_id = security_group_id + + @property + def mgr_security_group_id(self): + """Gets the mgr_security_group_id of this PremiumWafInstance. + + 独享引擎ECS绑定的用于WAF服务的安全组 + + :return: The mgr_security_group_id of this PremiumWafInstance. + :rtype: str + """ + return self._mgr_security_group_id + + @mgr_security_group_id.setter + def mgr_security_group_id(self, mgr_security_group_id): + """Sets the mgr_security_group_id of this PremiumWafInstance. + + 独享引擎ECS绑定的用于WAF服务的安全组 + + :param mgr_security_group_id: The mgr_security_group_id of this PremiumWafInstance. + :type: str + """ + self._mgr_security_group_id = mgr_security_group_id + + @property + def status(self): + """Gets the status of this PremiumWafInstance. + + 独享引擎计费状态 + + :return: The status of this PremiumWafInstance. + :rtype: int + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this PremiumWafInstance. + + 独享引擎计费状态 + + :param status: The status of this PremiumWafInstance. + :type: int + """ + self._status = status + + @property + def run_status(self): + """Gets the run_status of this PremiumWafInstance. + + 独享引擎允许状态 + + :return: The run_status of this PremiumWafInstance. + :rtype: int + """ + return self._run_status + + @run_status.setter + def run_status(self, run_status): + """Sets the run_status of this PremiumWafInstance. + + 独享引擎允许状态 + + :param run_status: The run_status of this PremiumWafInstance. + :type: int + """ + self._run_status = run_status + + @property + def access_status(self): + """Gets the access_status of this PremiumWafInstance. + + 独享引擎接入状态 + + :return: The access_status of this PremiumWafInstance. + :rtype: int + """ + return self._access_status + + @access_status.setter + def access_status(self, access_status): + """Sets the access_status of this PremiumWafInstance. + + 独享引擎接入状态 + + :param access_status: The access_status of this PremiumWafInstance. + :type: int + """ + self._access_status = access_status + + @property + def upgradable(self): + """Gets the upgradable of this PremiumWafInstance. + + 独享引擎是否可升级 + + :return: The upgradable of this PremiumWafInstance. + :rtype: int + """ + return self._upgradable + + @upgradable.setter + def upgradable(self, upgradable): + """Sets the upgradable of this PremiumWafInstance. + + 独享引擎是否可升级 + + :param upgradable: The upgradable of this PremiumWafInstance. + :type: int + """ + self._upgradable = upgradable + + @property + def cloud_service_type(self): + """Gets the cloud_service_type of this PremiumWafInstance. + + 云服务代码 + + :return: The cloud_service_type of this PremiumWafInstance. + :rtype: str + """ + return self._cloud_service_type + + @cloud_service_type.setter + def cloud_service_type(self, cloud_service_type): + """Sets the cloud_service_type of this PremiumWafInstance. + + 云服务代码 + + :param cloud_service_type: The cloud_service_type of this PremiumWafInstance. + :type: str + """ + self._cloud_service_type = cloud_service_type + + @property + def resource_type(self): + """Gets the resource_type of this PremiumWafInstance. + + 云服务资源类型 + + :return: The resource_type of this PremiumWafInstance. + :rtype: str + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """Sets the resource_type of this PremiumWafInstance. + + 云服务资源类型 + + :param resource_type: The resource_type of this PremiumWafInstance. + :type: str + """ + self._resource_type = resource_type + + @property + def resource_spec_code(self): + """Gets the resource_spec_code of this PremiumWafInstance. + + 云服务资源代码 + + :return: The resource_spec_code of this PremiumWafInstance. + :rtype: str + """ + return self._resource_spec_code + + @resource_spec_code.setter + def resource_spec_code(self, resource_spec_code): + """Sets the resource_spec_code of this PremiumWafInstance. + + 云服务资源代码 + + :param resource_spec_code: The resource_spec_code of this PremiumWafInstance. + :type: str + """ + self._resource_spec_code = resource_spec_code + + @property + def specification(self): + """Gets the specification of this PremiumWafInstance. + + 独享引擎ECS规格,如\"8vCPUs | 16GB\" + + :return: The specification of this PremiumWafInstance. + :rtype: str + """ + return self._specification + + @specification.setter + def specification(self, specification): + """Sets the specification of this PremiumWafInstance. + + 独享引擎ECS规格,如\"8vCPUs | 16GB\" + + :param specification: The specification of this PremiumWafInstance. + :type: str + """ + self._specification = specification + + @property + def hosts(self): + """Gets the hosts of this PremiumWafInstance. + + 独享引擎防护的域名 + + :return: The hosts of this PremiumWafInstance. + :rtype: list[IdHostnameEntry] + """ + return self._hosts + + @hosts.setter + def hosts(self, hosts): + """Sets the hosts of this PremiumWafInstance. + + 独享引擎防护的域名 + + :param hosts: The hosts of this PremiumWafInstance. + :type: list[IdHostnameEntry] + """ + self._hosts = hosts + + @property + def volume_type(self): + """Gets the volume_type of this PremiumWafInstance. + + 存储类型(可选) + + :return: The volume_type of this PremiumWafInstance. + :rtype: str + """ + return self._volume_type + + @volume_type.setter + def volume_type(self, volume_type): + """Sets the volume_type of this PremiumWafInstance. + + 存储类型(可选) + + :param volume_type: The volume_type of this PremiumWafInstance. + :type: str + """ + self._volume_type = volume_type + + @property + def cluster_id(self): + """Gets the cluster_id of this PremiumWafInstance. + + 存储资源池ID(可选) + + :return: The cluster_id of this PremiumWafInstance. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this PremiumWafInstance. + + 存储资源池ID(可选) + + :param cluster_id: The cluster_id of this PremiumWafInstance. + :type: str + """ + self._cluster_id = cluster_id + + @property + def pool_id(self): + """Gets the pool_id of this PremiumWafInstance. + + 独享引擎所在WAF组的ID(仅适用特殊独享模式) + + :return: The pool_id of this PremiumWafInstance. + :rtype: str + """ + return self._pool_id + + @pool_id.setter + def pool_id(self, pool_id): + """Sets the pool_id of this PremiumWafInstance. + + 独享引擎所在WAF组的ID(仅适用特殊独享模式) + + :param pool_id: The pool_id of this PremiumWafInstance. + :type: str + """ + self._pool_id = pool_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PremiumWafInstance): + 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-waf/huaweicloudsdkwaf/v1/model/premium_waf_pool_option.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/premium_waf_pool_option.py new file mode 100644 index 0000000000..61207e1870 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/premium_waf_pool_option.py @@ -0,0 +1,218 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class PremiumWafPoolOption: + + + """ + 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_limit': 'int', + 'header_limit': 'int', + 'connect_timeout': 'int', + 'send_timeout': 'int', + 'read_timeout': 'int' + } + + attribute_map = { + 'body_limit': 'body_limit', + 'header_limit': 'header_limit', + 'connect_timeout': 'connect_timeout', + 'send_timeout': 'send_timeout', + 'read_timeout': 'read_timeout' + } + + def __init__(self, body_limit=None, header_limit=None, connect_timeout=None, send_timeout=None, read_timeout=None): + """PremiumWafPoolOption - a model defined in huaweicloud sdk""" + + + + self._body_limit = None + self._header_limit = None + self._connect_timeout = None + self._send_timeout = None + self._read_timeout = None + self.discriminator = None + + if body_limit is not None: + self.body_limit = body_limit + if header_limit is not None: + self.header_limit = header_limit + if connect_timeout is not None: + self.connect_timeout = connect_timeout + if send_timeout is not None: + self.send_timeout = send_timeout + if read_timeout is not None: + self.read_timeout = read_timeout + + @property + def body_limit(self): + """Gets the body_limit of this PremiumWafPoolOption. + + body限制值 + + :return: The body_limit of this PremiumWafPoolOption. + :rtype: int + """ + return self._body_limit + + @body_limit.setter + def body_limit(self, body_limit): + """Sets the body_limit of this PremiumWafPoolOption. + + body限制值 + + :param body_limit: The body_limit of this PremiumWafPoolOption. + :type: int + """ + self._body_limit = body_limit + + @property + def header_limit(self): + """Gets the header_limit of this PremiumWafPoolOption. + + header限制值 + + :return: The header_limit of this PremiumWafPoolOption. + :rtype: int + """ + return self._header_limit + + @header_limit.setter + def header_limit(self, header_limit): + """Sets the header_limit of this PremiumWafPoolOption. + + header限制值 + + :param header_limit: The header_limit of this PremiumWafPoolOption. + :type: int + """ + self._header_limit = header_limit + + @property + def connect_timeout(self): + """Gets the connect_timeout of this PremiumWafPoolOption. + + 连接超时配置 + + :return: The connect_timeout of this PremiumWafPoolOption. + :rtype: int + """ + return self._connect_timeout + + @connect_timeout.setter + def connect_timeout(self, connect_timeout): + """Sets the connect_timeout of this PremiumWafPoolOption. + + 连接超时配置 + + :param connect_timeout: The connect_timeout of this PremiumWafPoolOption. + :type: int + """ + self._connect_timeout = connect_timeout + + @property + def send_timeout(self): + """Gets the send_timeout of this PremiumWafPoolOption. + + 发送超时配置 + + :return: The send_timeout of this PremiumWafPoolOption. + :rtype: int + """ + return self._send_timeout + + @send_timeout.setter + def send_timeout(self, send_timeout): + """Sets the send_timeout of this PremiumWafPoolOption. + + 发送超时配置 + + :param send_timeout: The send_timeout of this PremiumWafPoolOption. + :type: int + """ + self._send_timeout = send_timeout + + @property + def read_timeout(self): + """Gets the read_timeout of this PremiumWafPoolOption. + + 接收超时配置 + + :return: The read_timeout of this PremiumWafPoolOption. + :rtype: int + """ + return self._read_timeout + + @read_timeout.setter + def read_timeout(self, read_timeout): + """Sets the read_timeout of this PremiumWafPoolOption. + + 接收超时配置 + + :param read_timeout: The read_timeout of this PremiumWafPoolOption. + :type: int + """ + self._read_timeout = read_timeout + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PremiumWafPoolOption): + 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-waf/huaweicloudsdkwaf/v1/model/premium_waf_server.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/premium_waf_server.py new file mode 100644 index 0000000000..99682c1e8d --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/premium_waf_server.py @@ -0,0 +1,241 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class PremiumWafServer: + + + """ + 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 = { + 'front_protocol': 'str', + 'back_protocol': 'str', + 'address': 'str', + 'port': 'int', + 'type': 'str', + 'vpc_id': 'str' + } + + attribute_map = { + 'front_protocol': 'front_protocol', + 'back_protocol': 'back_protocol', + 'address': 'address', + 'port': 'port', + 'type': 'type', + 'vpc_id': 'vpc_id' + } + + def __init__(self, front_protocol=None, back_protocol=None, address=None, port=None, type=None, vpc_id=None): + """PremiumWafServer - a model defined in huaweicloud sdk""" + + + + self._front_protocol = None + self._back_protocol = None + self._address = None + self._port = None + self._type = None + self._vpc_id = None + self.discriminator = None + + self.front_protocol = front_protocol + self.back_protocol = back_protocol + self.address = address + self.port = port + if type is not None: + self.type = type + if vpc_id is not None: + self.vpc_id = vpc_id + + @property + def front_protocol(self): + """Gets the front_protocol of this PremiumWafServer. + + 对外协议 + + :return: The front_protocol of this PremiumWafServer. + :rtype: str + """ + return self._front_protocol + + @front_protocol.setter + def front_protocol(self, front_protocol): + """Sets the front_protocol of this PremiumWafServer. + + 对外协议 + + :param front_protocol: The front_protocol of this PremiumWafServer. + :type: str + """ + self._front_protocol = front_protocol + + @property + def back_protocol(self): + """Gets the back_protocol of this PremiumWafServer. + + 源站协议 + + :return: The back_protocol of this PremiumWafServer. + :rtype: str + """ + return self._back_protocol + + @back_protocol.setter + def back_protocol(self, back_protocol): + """Sets the back_protocol of this PremiumWafServer. + + 源站协议 + + :param back_protocol: The back_protocol of this PremiumWafServer. + :type: str + """ + self._back_protocol = back_protocol + + @property + def address(self): + """Gets the address of this PremiumWafServer. + + 源站地址 + + :return: The address of this PremiumWafServer. + :rtype: str + """ + return self._address + + @address.setter + def address(self, address): + """Sets the address of this PremiumWafServer. + + 源站地址 + + :param address: The address of this PremiumWafServer. + :type: str + """ + self._address = address + + @property + def port(self): + """Gets the port of this PremiumWafServer. + + 源站端口 + + :return: The port of this PremiumWafServer. + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """Sets the port of this PremiumWafServer. + + 源站端口 + + :param port: The port of this PremiumWafServer. + :type: int + """ + self._port = port + + @property + def type(self): + """Gets the type of this PremiumWafServer. + + 源站地址为ipv4或ipv6 + + :return: The type of this PremiumWafServer. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this PremiumWafServer. + + 源站地址为ipv4或ipv6 + + :param type: The type of this PremiumWafServer. + :type: str + """ + self._type = type + + @property + def vpc_id(self): + """Gets the vpc_id of this PremiumWafServer. + + 源站所在VPC ID + + :return: The vpc_id of this PremiumWafServer. + :rtype: str + """ + return self._vpc_id + + @vpc_id.setter + def vpc_id(self, vpc_id): + """Sets the vpc_id of this PremiumWafServer. + + 源站所在VPC ID + + :param vpc_id: The vpc_id of this PremiumWafServer. + :type: str + """ + self._vpc_id = vpc_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PremiumWafServer): + 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-waf/huaweicloudsdkwaf/v1/model/route_put_body.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/route_put_body.py new file mode 100644 index 0000000000..4b10015995 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/route_put_body.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class RoutePutBody: + + + """ + 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', + 'servers': 'list[RouteServerParm]' + } + + attribute_map = { + 'name': 'name', + 'servers': 'servers' + } + + def __init__(self, name=None, servers=None): + """RoutePutBody - a model defined in huaweicloud sdk""" + + + + self._name = None + self._servers = None + self.discriminator = None + + if name is not None: + self.name = name + if servers is not None: + self.servers = servers + + @property + def name(self): + """Gets the name of this RoutePutBody. + + 名称 + + :return: The name of this RoutePutBody. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this RoutePutBody. + + 名称 + + :param name: The name of this RoutePutBody. + :type: str + """ + self._name = name + + @property + def servers(self): + """Gets the servers of this RoutePutBody. + + 路由信息 + + :return: The servers of this RoutePutBody. + :rtype: list[RouteServerParm] + """ + return self._servers + + @servers.setter + def servers(self, servers): + """Sets the servers of this RoutePutBody. + + 路由信息 + + :param servers: The servers of this RoutePutBody. + :type: list[RouteServerParm] + """ + self._servers = servers + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RoutePutBody): + 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-waf/huaweicloudsdkwaf/v1/model/route_server_parm.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/route_server_parm.py new file mode 100644 index 0000000000..e23f677a3a --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/route_server_parm.py @@ -0,0 +1,164 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class RouteServerParm: + + + """ + 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 = { + 'back_protocol': 'str', + 'ip': 'str', + 'port': 'int' + } + + attribute_map = { + 'back_protocol': 'back_protocol', + 'ip': 'ip', + 'port': 'port' + } + + def __init__(self, back_protocol=None, ip=None, port=None): + """RouteServerParm - a model defined in huaweicloud sdk""" + + + + self._back_protocol = None + self._ip = None + self._port = None + self.discriminator = None + + if back_protocol is not None: + self.back_protocol = back_protocol + if ip is not None: + self.ip = ip + if port is not None: + self.port = port + + @property + def back_protocol(self): + """Gets the back_protocol of this RouteServerParm. + + 协议 + + :return: The back_protocol of this RouteServerParm. + :rtype: str + """ + return self._back_protocol + + @back_protocol.setter + def back_protocol(self, back_protocol): + """Sets the back_protocol of this RouteServerParm. + + 协议 + + :param back_protocol: The back_protocol of this RouteServerParm. + :type: str + """ + self._back_protocol = back_protocol + + @property + def ip(self): + """Gets the ip of this RouteServerParm. + + ip信息 + + :return: The ip of this RouteServerParm. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this RouteServerParm. + + ip信息 + + :param ip: The ip of this RouteServerParm. + :type: str + """ + self._ip = ip + + @property + def port(self): + """Gets the port of this RouteServerParm. + + 端口信息 + + :return: The port of this RouteServerParm. + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """Sets the port of this RouteServerParm. + + 端口信息 + + :param port: The port of this RouteServerParm. + :type: int + """ + self._port = port + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RouteServerParm): + 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-waf/huaweicloudsdkwaf/v1/model/show_anticrawler_rule_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_anticrawler_rule_request.py new file mode 100644 index 0000000000..9d10101c77 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_anticrawler_rule_request.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ShowAnticrawlerRuleRequest: + + + """ + 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', + 'rule_id': 'str' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'rule_id': 'rule_id' + } + + def __init__(self, policy_id=None, rule_id=None): + """ShowAnticrawlerRuleRequest - a model defined in huaweicloud sdk""" + + + + self._policy_id = None + self._rule_id = None + self.discriminator = None + + self.policy_id = policy_id + self.rule_id = rule_id + + @property + def policy_id(self): + """Gets the policy_id of this ShowAnticrawlerRuleRequest. + + policyid + + :return: The policy_id of this ShowAnticrawlerRuleRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this ShowAnticrawlerRuleRequest. + + policyid + + :param policy_id: The policy_id of this ShowAnticrawlerRuleRequest. + :type: str + """ + self._policy_id = policy_id + + @property + def rule_id(self): + """Gets the rule_id of this ShowAnticrawlerRuleRequest. + + anticrawlerRuleId + + :return: The rule_id of this ShowAnticrawlerRuleRequest. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this ShowAnticrawlerRuleRequest. + + anticrawlerRuleId + + :param rule_id: The rule_id of this ShowAnticrawlerRuleRequest. + :type: str + """ + self._rule_id = rule_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAnticrawlerRuleRequest): + 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-waf/huaweicloudsdkwaf/v1/model/show_anticrawler_rule_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_anticrawler_rule_response.py new file mode 100644 index 0000000000..69859de77a --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_anticrawler_rule_response.py @@ -0,0 +1,245 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ShowAnticrawlerRuleResponse(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', + 'url': 'str', + 'logic': 'int', + 'name': 'str', + 'type': 'str', + 'timestamp': 'int' + } + + attribute_map = { + 'id': 'id', + 'url': 'url', + 'logic': 'logic', + 'name': 'name', + 'type': 'type', + 'timestamp': 'timestamp' + } + + def __init__(self, id=None, url=None, logic=None, name=None, type=None, timestamp=None): + """ShowAnticrawlerRuleResponse - a model defined in huaweicloud sdk""" + + super(ShowAnticrawlerRuleResponse, self).__init__() + + self._id = None + self._url = None + self._logic = None + self._name = None + self._type = None + self._timestamp = None + self.discriminator = None + + if id is not None: + self.id = id + if url is not None: + self.url = url + if logic is not None: + self.logic = logic + if name is not None: + self.name = name + if type is not None: + self.type = type + if timestamp is not None: + self.timestamp = timestamp + + @property + def id(self): + """Gets the id of this ShowAnticrawlerRuleResponse. + + 规则id + + :return: The id of this ShowAnticrawlerRuleResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ShowAnticrawlerRuleResponse. + + 规则id + + :param id: The id of this ShowAnticrawlerRuleResponse. + :type: str + """ + self._id = id + + @property + def url(self): + """Gets the url of this ShowAnticrawlerRuleResponse. + + 规则应用的url + + :return: The url of this ShowAnticrawlerRuleResponse. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this ShowAnticrawlerRuleResponse. + + 规则应用的url + + :param url: The url of this ShowAnticrawlerRuleResponse. + :type: str + """ + self._url = url + + @property + def logic(self): + """Gets the logic of this ShowAnticrawlerRuleResponse. + + 规则匹配逻辑 + + :return: The logic of this ShowAnticrawlerRuleResponse. + :rtype: int + """ + return self._logic + + @logic.setter + def logic(self, logic): + """Sets the logic of this ShowAnticrawlerRuleResponse. + + 规则匹配逻辑 + + :param logic: The logic of this ShowAnticrawlerRuleResponse. + :type: int + """ + self._logic = logic + + @property + def name(self): + """Gets the name of this ShowAnticrawlerRuleResponse. + + 规则名称 + + :return: The name of this ShowAnticrawlerRuleResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ShowAnticrawlerRuleResponse. + + 规则名称 + + :param name: The name of this ShowAnticrawlerRuleResponse. + :type: str + """ + self._name = name + + @property + def type(self): + """Gets the type of this ShowAnticrawlerRuleResponse. + + 反爬虫类型,指定防护:anticrawler_specific_url 例外防护:anticrawler_except_url + + :return: The type of this ShowAnticrawlerRuleResponse. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ShowAnticrawlerRuleResponse. + + 反爬虫类型,指定防护:anticrawler_specific_url 例外防护:anticrawler_except_url + + :param type: The type of this ShowAnticrawlerRuleResponse. + :type: str + """ + self._type = type + + @property + def timestamp(self): + """Gets the timestamp of this ShowAnticrawlerRuleResponse. + + 创建规则时间戳 + + :return: The timestamp of this ShowAnticrawlerRuleResponse. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this ShowAnticrawlerRuleResponse. + + 创建规则时间戳 + + :param timestamp: The timestamp of this ShowAnticrawlerRuleResponse. + :type: int + """ + self._timestamp = timestamp + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAnticrawlerRuleResponse): + 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-waf/huaweicloudsdkwaf/v1/model/show_antileakage_rule_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_antileakage_rule_request.py new file mode 100644 index 0000000000..8f3fcc3968 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_antileakage_rule_request.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ShowAntileakageRuleRequest: + + + """ + 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', + 'rule_id': 'str' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'rule_id': 'rule_id' + } + + def __init__(self, policy_id=None, rule_id=None): + """ShowAntileakageRuleRequest - a model defined in huaweicloud sdk""" + + + + self._policy_id = None + self._rule_id = None + self.discriminator = None + + self.policy_id = policy_id + self.rule_id = rule_id + + @property + def policy_id(self): + """Gets the policy_id of this ShowAntileakageRuleRequest. + + policyid + + :return: The policy_id of this ShowAntileakageRuleRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this ShowAntileakageRuleRequest. + + policyid + + :param policy_id: The policy_id of this ShowAntileakageRuleRequest. + :type: str + """ + self._policy_id = policy_id + + @property + def rule_id(self): + """Gets the rule_id of this ShowAntileakageRuleRequest. + + antileakageRuleId + + :return: The rule_id of this ShowAntileakageRuleRequest. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this ShowAntileakageRuleRequest. + + antileakageRuleId + + :param rule_id: The rule_id of this ShowAntileakageRuleRequest. + :type: str + """ + self._rule_id = rule_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAntileakageRuleRequest): + 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-waf/huaweicloudsdkwaf/v1/model/show_antileakage_rule_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_antileakage_rule_response.py new file mode 100644 index 0000000000..25b2643475 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_antileakage_rule_response.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ShowAntileakageRuleResponse(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 = { + 'url': 'str', + 'category': 'str', + 'contents': 'list[str]', + 'description': 'str' + } + + attribute_map = { + 'url': 'url', + 'category': 'category', + 'contents': 'contents', + 'description': 'description' + } + + def __init__(self, url=None, category=None, contents=None, description=None): + """ShowAntileakageRuleResponse - a model defined in huaweicloud sdk""" + + super(ShowAntileakageRuleResponse, self).__init__() + + self._url = None + self._category = None + self._contents = None + self._description = None + self.discriminator = None + + if url is not None: + self.url = url + if category is not None: + self.category = category + if contents is not None: + self.contents = contents + if description is not None: + self.description = description + + @property + def url(self): + """Gets the url of this ShowAntileakageRuleResponse. + + 规则应用的url + + :return: The url of this ShowAntileakageRuleResponse. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this ShowAntileakageRuleResponse. + + 规则应用的url + + :param url: The url of this ShowAntileakageRuleResponse. + :type: str + """ + self._url = url + + @property + def category(self): + """Gets the category of this ShowAntileakageRuleResponse. + + 类别(响应码:code,敏感信息:sensitive) + + :return: The category of this ShowAntileakageRuleResponse. + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this ShowAntileakageRuleResponse. + + 类别(响应码:code,敏感信息:sensitive) + + :param category: The category of this ShowAntileakageRuleResponse. + :type: str + """ + self._category = category + + @property + def contents(self): + """Gets the contents of this ShowAntileakageRuleResponse. + + 规则内容(http状态码、手机:phone、身份证号:id_card、邮箱:email) + + :return: The contents of this ShowAntileakageRuleResponse. + :rtype: list[str] + """ + return self._contents + + @contents.setter + def contents(self, contents): + """Sets the contents of this ShowAntileakageRuleResponse. + + 规则内容(http状态码、手机:phone、身份证号:id_card、邮箱:email) + + :param contents: The contents of this ShowAntileakageRuleResponse. + :type: list[str] + """ + self._contents = contents + + @property + def description(self): + """Gets the description of this ShowAntileakageRuleResponse. + + 规则描述 + + :return: The description of this ShowAntileakageRuleResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ShowAntileakageRuleResponse. + + 规则描述 + + :param description: The description of this ShowAntileakageRuleResponse. + :type: 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAntileakageRuleResponse): + 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-waf/huaweicloudsdkwaf/v1/model/show_cc_rule_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_cc_rule_request.py new file mode 100644 index 0000000000..c69a3bfaca --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_cc_rule_request.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ShowCcRuleRequest: + + + """ + 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', + 'rule_id': 'str' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'rule_id': 'rule_id' + } + + def __init__(self, policy_id=None, rule_id=None): + """ShowCcRuleRequest - a model defined in huaweicloud sdk""" + + + + self._policy_id = None + self._rule_id = None + self.discriminator = None + + self.policy_id = policy_id + self.rule_id = rule_id + + @property + def policy_id(self): + """Gets the policy_id of this ShowCcRuleRequest. + + policyid + + :return: The policy_id of this ShowCcRuleRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this ShowCcRuleRequest. + + policyid + + :param policy_id: The policy_id of this ShowCcRuleRequest. + :type: str + """ + self._policy_id = policy_id + + @property + def rule_id(self): + """Gets the rule_id of this ShowCcRuleRequest. + + ccRuleId + + :return: The rule_id of this ShowCcRuleRequest. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this ShowCcRuleRequest. + + ccRuleId + + :param rule_id: The rule_id of this ShowCcRuleRequest. + :type: str + """ + self._rule_id = rule_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowCcRuleRequest): + 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-waf/huaweicloudsdkwaf/v1/model/show_cc_rule_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_cc_rule_response.py new file mode 100644 index 0000000000..03313260f5 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_cc_rule_response.py @@ -0,0 +1,513 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ShowCcRuleResponse(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', + 'policyid': 'str', + 'status': 'int', + 'description': 'str', + 'mode': 'int', + 'unaggregation': 'bool', + 'prefix': 'bool', + 'total_num': 'int', + 'url': 'str', + 'limit_num': 'int', + 'limit_period': 'int', + 'lock_time': 'int', + 'tag_type': 'str', + 'tag_index': 'str', + 'action': 'CcrulesListInfoAction', + 'timestamp': 'int' + } + + attribute_map = { + 'id': 'id', + 'policyid': 'policyid', + 'status': 'status', + 'description': 'description', + 'mode': 'mode', + 'unaggregation': 'unaggregation', + 'prefix': 'prefix', + 'total_num': 'total_num', + 'url': 'url', + 'limit_num': 'limit_num', + 'limit_period': 'limit_period', + 'lock_time': 'lock_time', + 'tag_type': 'tag_type', + 'tag_index': 'tag_index', + 'action': 'action', + 'timestamp': 'timestamp' + } + + def __init__(self, id=None, policyid=None, status=None, description=None, mode=None, unaggregation=None, prefix=None, total_num=None, url=None, limit_num=None, limit_period=None, lock_time=None, tag_type=None, tag_index=None, action=None, timestamp=None): + """ShowCcRuleResponse - a model defined in huaweicloud sdk""" + + super(ShowCcRuleResponse, self).__init__() + + self._id = None + self._policyid = None + self._status = None + self._description = None + self._mode = None + self._unaggregation = None + self._prefix = None + self._total_num = 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._action = None + self._timestamp = None + self.discriminator = None + + if id is not None: + self.id = id + if policyid is not None: + self.policyid = policyid + if status is not None: + self.status = status + if description is not None: + self.description = description + if mode is not None: + self.mode = mode + if unaggregation is not None: + self.unaggregation = unaggregation + if prefix is not None: + self.prefix = prefix + if total_num is not None: + self.total_num = total_num + 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 action is not None: + self.action = action + if timestamp is not None: + self.timestamp = timestamp + + @property + def id(self): + """Gets the id of this ShowCcRuleResponse. + + cc规则id + + :return: The id of this ShowCcRuleResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ShowCcRuleResponse. + + cc规则id + + :param id: The id of this ShowCcRuleResponse. + :type: str + """ + self._id = id + + @property + def policyid(self): + """Gets the policyid of this ShowCcRuleResponse. + + 所属策略id + + :return: The policyid of this ShowCcRuleResponse. + :rtype: str + """ + return self._policyid + + @policyid.setter + def policyid(self, policyid): + """Sets the policyid of this ShowCcRuleResponse. + + 所属策略id + + :param policyid: The policyid of this ShowCcRuleResponse. + :type: str + """ + self._policyid = policyid + + @property + def status(self): + """Gets the status of this ShowCcRuleResponse. + + 状态 + + :return: The status of this ShowCcRuleResponse. + :rtype: int + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ShowCcRuleResponse. + + 状态 + + :param status: The status of this ShowCcRuleResponse. + :type: int + """ + self._status = status + + @property + def description(self): + """Gets the description of this ShowCcRuleResponse. + + 规则描述 + + :return: The description of this ShowCcRuleResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ShowCcRuleResponse. + + 规则描述 + + :param description: The description of this ShowCcRuleResponse. + :type: str + """ + self._description = description + + @property + def mode(self): + """Gets the mode of this ShowCcRuleResponse. + + 阻断模式 + + :return: The mode of this ShowCcRuleResponse. + :rtype: int + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this ShowCcRuleResponse. + + 阻断模式 + + :param mode: The mode of this ShowCcRuleResponse. + :type: int + """ + self._mode = mode + + @property + def unaggregation(self): + """Gets the unaggregation of this ShowCcRuleResponse. + + 人机验证 + + :return: The unaggregation of this ShowCcRuleResponse. + :rtype: bool + """ + return self._unaggregation + + @unaggregation.setter + def unaggregation(self, unaggregation): + """Sets the unaggregation of this ShowCcRuleResponse. + + 人机验证 + + :param unaggregation: The unaggregation of this ShowCcRuleResponse. + :type: bool + """ + self._unaggregation = unaggregation + + @property + def prefix(self): + """Gets the prefix of this ShowCcRuleResponse. + + 前缀包含 + + :return: The prefix of this ShowCcRuleResponse. + :rtype: bool + """ + return self._prefix + + @prefix.setter + def prefix(self, prefix): + """Sets the prefix of this ShowCcRuleResponse. + + 前缀包含 + + :param prefix: The prefix of this ShowCcRuleResponse. + :type: bool + """ + self._prefix = prefix + + @property + def total_num(self): + """Gets the total_num of this ShowCcRuleResponse. + + 总数 + + :return: The total_num of this ShowCcRuleResponse. + :rtype: int + """ + return self._total_num + + @total_num.setter + def total_num(self, total_num): + """Sets the total_num of this ShowCcRuleResponse. + + 总数 + + :param total_num: The total_num of this ShowCcRuleResponse. + :type: int + """ + self._total_num = total_num + + @property + def url(self): + """Gets the url of this ShowCcRuleResponse. + + 规则应用的url链接 + + :return: The url of this ShowCcRuleResponse. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this ShowCcRuleResponse. + + 规则应用的url链接 + + :param url: The url of this ShowCcRuleResponse. + :type: str + """ + self._url = url + + @property + def limit_num(self): + """Gets the limit_num of this ShowCcRuleResponse. + + 单个用户的周期内请求次数 + + :return: The limit_num of this ShowCcRuleResponse. + :rtype: int + """ + return self._limit_num + + @limit_num.setter + def limit_num(self, limit_num): + """Sets the limit_num of this ShowCcRuleResponse. + + 单个用户的周期内请求次数 + + :param limit_num: The limit_num of this ShowCcRuleResponse. + :type: int + """ + self._limit_num = limit_num + + @property + def limit_period(self): + """Gets the limit_period of this ShowCcRuleResponse. + + 限速周期 + + :return: The limit_period of this ShowCcRuleResponse. + :rtype: int + """ + return self._limit_period + + @limit_period.setter + def limit_period(self, limit_period): + """Sets the limit_period of this ShowCcRuleResponse. + + 限速周期 + + :param limit_period: The limit_period of this ShowCcRuleResponse. + :type: int + """ + self._limit_period = limit_period + + @property + def lock_time(self): + """Gets the lock_time of this ShowCcRuleResponse. + + 锁定时长 + + :return: The lock_time of this ShowCcRuleResponse. + :rtype: int + """ + return self._lock_time + + @lock_time.setter + def lock_time(self, lock_time): + """Sets the lock_time of this ShowCcRuleResponse. + + 锁定时长 + + :param lock_time: The lock_time of this ShowCcRuleResponse. + :type: int + """ + self._lock_time = lock_time + + @property + def tag_type(self): + """Gets the tag_type of this ShowCcRuleResponse. + + 防护模式 + + :return: The tag_type of this ShowCcRuleResponse. + :rtype: str + """ + return self._tag_type + + @tag_type.setter + def tag_type(self, tag_type): + """Sets the tag_type of this ShowCcRuleResponse. + + 防护模式 + + :param tag_type: The tag_type of this ShowCcRuleResponse. + :type: str + """ + self._tag_type = tag_type + + @property + def tag_index(self): + """Gets the tag_index of this ShowCcRuleResponse. + + 防护模式标签 + + :return: The tag_index of this ShowCcRuleResponse. + :rtype: str + """ + return self._tag_index + + @tag_index.setter + def tag_index(self, tag_index): + """Sets the tag_index of this ShowCcRuleResponse. + + 防护模式标签 + + :param tag_index: The tag_index of this ShowCcRuleResponse. + :type: str + """ + self._tag_index = tag_index + + @property + def action(self): + """Gets the action of this ShowCcRuleResponse. + + + :return: The action of this ShowCcRuleResponse. + :rtype: CcrulesListInfoAction + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this ShowCcRuleResponse. + + + :param action: The action of this ShowCcRuleResponse. + :type: CcrulesListInfoAction + """ + self._action = action + + @property + def timestamp(self): + """Gets the timestamp of this ShowCcRuleResponse. + + 创建规则时间戳 + + :return: The timestamp of this ShowCcRuleResponse. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this ShowCcRuleResponse. + + 创建规则时间戳 + + :param timestamp: The timestamp of this ShowCcRuleResponse. + :type: int + """ + self._timestamp = timestamp + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowCcRuleResponse): + 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-waf/huaweicloudsdkwaf/v1/model/show_certificate_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_certificate_request.py new file mode 100644 index 0000000000..c232c80026 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_certificate_request.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ShowCertificateRequest: + + + """ + 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 = { + 'certificate_id': 'str' + } + + attribute_map = { + 'certificate_id': 'certificate_id' + } + + def __init__(self, certificate_id=None): + """ShowCertificateRequest - a model defined in huaweicloud sdk""" + + + + self._certificate_id = None + self.discriminator = None + + self.certificate_id = certificate_id + + @property + def certificate_id(self): + """Gets the certificate_id of this ShowCertificateRequest. + + 证书ID + + :return: The certificate_id of this ShowCertificateRequest. + :rtype: str + """ + return self._certificate_id + + @certificate_id.setter + def certificate_id(self, certificate_id): + """Sets the certificate_id of this ShowCertificateRequest. + + 证书ID + + :param certificate_id: The certificate_id of this ShowCertificateRequest. + :type: str + """ + self._certificate_id = certificate_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowCertificateRequest): + 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-waf/huaweicloudsdkwaf/v1/model/show_certificate_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_certificate_response.py new file mode 100644 index 0000000000..6a3456be9c --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_certificate_response.py @@ -0,0 +1,299 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ShowCertificateResponse(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', + 'name': 'str', + 'content': 'str', + 'key': 'str', + 'expire_time': 'int', + 'exp_status': 'int', + 'timestamp': 'int', + 'bind_host': 'list[BindHost]' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'content': 'content', + 'key': 'key', + 'expire_time': 'expire_time', + 'exp_status': 'exp_status', + 'timestamp': 'timestamp', + 'bind_host': 'bind_host' + } + + def __init__(self, id=None, name=None, content=None, key=None, expire_time=None, exp_status=None, timestamp=None, bind_host=None): + """ShowCertificateResponse - a model defined in huaweicloud sdk""" + + super(ShowCertificateResponse, self).__init__() + + self._id = None + self._name = None + self._content = None + self._key = None + self._expire_time = None + self._exp_status = None + self._timestamp = None + self._bind_host = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if content is not None: + self.content = content + if key is not None: + self.key = key + if expire_time is not None: + self.expire_time = expire_time + if exp_status is not None: + self.exp_status = exp_status + if timestamp is not None: + self.timestamp = timestamp + if bind_host is not None: + self.bind_host = bind_host + + @property + def id(self): + """Gets the id of this ShowCertificateResponse. + + 证书ID + + :return: The id of this ShowCertificateResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ShowCertificateResponse. + + 证书ID + + :param id: The id of this ShowCertificateResponse. + :type: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this ShowCertificateResponse. + + 证书名 + + :return: The name of this ShowCertificateResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ShowCertificateResponse. + + 证书名 + + :param name: The name of this ShowCertificateResponse. + :type: str + """ + self._name = name + + @property + def content(self): + """Gets the content of this ShowCertificateResponse. + + 证书文件,PEM编码 + + :return: The content of this ShowCertificateResponse. + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this ShowCertificateResponse. + + 证书文件,PEM编码 + + :param content: The content of this ShowCertificateResponse. + :type: str + """ + self._content = content + + @property + def key(self): + """Gets the key of this ShowCertificateResponse. + + 证书私钥,PEM编码 + + :return: The key of this ShowCertificateResponse. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this ShowCertificateResponse. + + 证书私钥,PEM编码 + + :param key: The key of this ShowCertificateResponse. + :type: str + """ + self._key = key + + @property + def expire_time(self): + """Gets the expire_time of this ShowCertificateResponse. + + 证书过期时间戳 + + :return: The expire_time of this ShowCertificateResponse. + :rtype: int + """ + return self._expire_time + + @expire_time.setter + def expire_time(self, expire_time): + """Sets the expire_time of this ShowCertificateResponse. + + 证书过期时间戳 + + :param expire_time: The expire_time of this ShowCertificateResponse. + :type: int + """ + self._expire_time = expire_time + + @property + def exp_status(self): + """Gets the exp_status of this ShowCertificateResponse. + + 证书过期状态,0-未过期,1-已过期,2-即将过期 + + :return: The exp_status of this ShowCertificateResponse. + :rtype: int + """ + return self._exp_status + + @exp_status.setter + def exp_status(self, exp_status): + """Sets the exp_status of this ShowCertificateResponse. + + 证书过期状态,0-未过期,1-已过期,2-即将过期 + + :param exp_status: The exp_status of this ShowCertificateResponse. + :type: int + """ + self._exp_status = exp_status + + @property + def timestamp(self): + """Gets the timestamp of this ShowCertificateResponse. + + 证书上传时间戳 + + :return: The timestamp of this ShowCertificateResponse. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this ShowCertificateResponse. + + 证书上传时间戳 + + :param timestamp: The timestamp of this ShowCertificateResponse. + :type: int + """ + self._timestamp = timestamp + + @property + def bind_host(self): + """Gets the bind_host of this ShowCertificateResponse. + + 证书关联的域名信息 + + :return: The bind_host of this ShowCertificateResponse. + :rtype: list[BindHost] + """ + return self._bind_host + + @bind_host.setter + def bind_host(self, bind_host): + """Sets the bind_host of this ShowCertificateResponse. + + 证书关联的域名信息 + + :param bind_host: The bind_host of this ShowCertificateResponse. + :type: list[BindHost] + """ + self._bind_host = bind_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowCertificateResponse): + 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-waf/huaweicloudsdkwaf/v1/model/show_custom_rule_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_custom_rule_request.py new file mode 100644 index 0000000000..d6c72a3c12 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_custom_rule_request.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ShowCustomRuleRequest: + + + """ + 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', + 'rule_id': 'str' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'rule_id': 'rule_id' + } + + def __init__(self, policy_id=None, rule_id=None): + """ShowCustomRuleRequest - a model defined in huaweicloud sdk""" + + + + self._policy_id = None + self._rule_id = None + self.discriminator = None + + self.policy_id = policy_id + self.rule_id = rule_id + + @property + def policy_id(self): + """Gets the policy_id of this ShowCustomRuleRequest. + + policyid + + :return: The policy_id of this ShowCustomRuleRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this ShowCustomRuleRequest. + + policyid + + :param policy_id: The policy_id of this ShowCustomRuleRequest. + :type: str + """ + self._policy_id = policy_id + + @property + def rule_id(self): + """Gets the rule_id of this ShowCustomRuleRequest. + + customRuleId + + :return: The rule_id of this ShowCustomRuleRequest. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this ShowCustomRuleRequest. + + customRuleId + + :param rule_id: The rule_id of this ShowCustomRuleRequest. + :type: str + """ + self._rule_id = rule_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowCustomRuleRequest): + 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-waf/huaweicloudsdkwaf/v1/model/show_custom_rule_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_custom_rule_response.py new file mode 100644 index 0000000000..9ef24ddb29 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_custom_rule_response.py @@ -0,0 +1,351 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ShowCustomRuleResponse(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', + 'policyid': 'str', + 'action_mode': 'bool', + 'name': 'str', + 'time': 'bool', + 'start': 'int', + 'terminal': 'int', + 'conditions': 'list[CustomConditions]', + 'action': 'CustomAction', + 'priority': 'int' + } + + attribute_map = { + 'id': 'id', + 'policyid': 'policyid', + 'action_mode': 'action_mode', + 'name': 'name', + 'time': 'time', + 'start': 'start', + 'terminal': 'terminal', + 'conditions': 'conditions', + 'action': 'action', + 'priority': 'priority' + } + + def __init__(self, id=None, policyid=None, action_mode=None, name=None, time=None, start=None, terminal=None, conditions=None, action=None, priority=None): + """ShowCustomRuleResponse - a model defined in huaweicloud sdk""" + + super(ShowCustomRuleResponse, self).__init__() + + self._id = None + self._policyid = None + self._action_mode = None + self._name = None + self._time = None + self._start = None + self._terminal = None + self._conditions = None + self._action = None + self._priority = None + self.discriminator = None + + if id is not None: + self.id = id + if policyid is not None: + self.policyid = policyid + if action_mode is not None: + self.action_mode = action_mode + if name is not None: + self.name = name + if time is not None: + self.time = time + if start is not None: + self.start = start + if terminal is not None: + self.terminal = terminal + if conditions is not None: + self.conditions = conditions + if action is not None: + self.action = action + if priority is not None: + self.priority = priority + + @property + def id(self): + """Gets the id of this ShowCustomRuleResponse. + + 规则id + + :return: The id of this ShowCustomRuleResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ShowCustomRuleResponse. + + 规则id + + :param id: The id of this ShowCustomRuleResponse. + :type: str + """ + self._id = id + + @property + def policyid(self): + """Gets the policyid of this ShowCustomRuleResponse. + + 策略id + + :return: The policyid of this ShowCustomRuleResponse. + :rtype: str + """ + return self._policyid + + @policyid.setter + def policyid(self, policyid): + """Sets the policyid of this ShowCustomRuleResponse. + + 策略id + + :param policyid: The policyid of this ShowCustomRuleResponse. + :type: str + """ + self._policyid = policyid + + @property + def action_mode(self): + """Gets the action_mode of this ShowCustomRuleResponse. + + 攻击惩罚 + + :return: The action_mode of this ShowCustomRuleResponse. + :rtype: bool + """ + return self._action_mode + + @action_mode.setter + def action_mode(self, action_mode): + """Sets the action_mode of this ShowCustomRuleResponse. + + 攻击惩罚 + + :param action_mode: The action_mode of this ShowCustomRuleResponse. + :type: bool + """ + self._action_mode = action_mode + + @property + def name(self): + """Gets the name of this ShowCustomRuleResponse. + + 自定义规则的名称 + + :return: The name of this ShowCustomRuleResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ShowCustomRuleResponse. + + 自定义规则的名称 + + :param name: The name of this ShowCustomRuleResponse. + :type: str + """ + self._name = name + + @property + def time(self): + """Gets the time of this ShowCustomRuleResponse. + + 精准防护规则生效时间 + + :return: The time of this ShowCustomRuleResponse. + :rtype: bool + """ + return self._time + + @time.setter + def time(self, time): + """Sets the time of this ShowCustomRuleResponse. + + 精准防护规则生效时间 + + :param time: The time of this ShowCustomRuleResponse. + :type: bool + """ + self._time = time + + @property + def start(self): + """Gets the start of this ShowCustomRuleResponse. + + 精准防护规则生效的起始时间 + + :return: The start of this ShowCustomRuleResponse. + :rtype: int + """ + return self._start + + @start.setter + def start(self, start): + """Sets the start of this ShowCustomRuleResponse. + + 精准防护规则生效的起始时间 + + :param start: The start of this ShowCustomRuleResponse. + :type: int + """ + self._start = start + + @property + def terminal(self): + """Gets the terminal of this ShowCustomRuleResponse. + + 精准防护规则生效的终止时间 + + :return: The terminal of this ShowCustomRuleResponse. + :rtype: int + """ + return self._terminal + + @terminal.setter + def terminal(self, terminal): + """Sets the terminal of this ShowCustomRuleResponse. + + 精准防护规则生效的终止时间 + + :param terminal: The terminal of this ShowCustomRuleResponse. + :type: int + """ + self._terminal = terminal + + @property + def conditions(self): + """Gets the conditions of this ShowCustomRuleResponse. + + 匹配条件列表 + + :return: The conditions of this ShowCustomRuleResponse. + :rtype: list[CustomConditions] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """Sets the conditions of this ShowCustomRuleResponse. + + 匹配条件列表 + + :param conditions: The conditions of this ShowCustomRuleResponse. + :type: list[CustomConditions] + """ + self._conditions = conditions + + @property + def action(self): + """Gets the action of this ShowCustomRuleResponse. + + + :return: The action of this ShowCustomRuleResponse. + :rtype: CustomAction + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this ShowCustomRuleResponse. + + + :param action: The action of this ShowCustomRuleResponse. + :type: CustomAction + """ + self._action = action + + @property + def priority(self): + """Gets the priority of this ShowCustomRuleResponse. + + 优先级(0-1000的整数) + + :return: The priority of this ShowCustomRuleResponse. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this ShowCustomRuleResponse. + + 优先级(0-1000的整数) + + :param priority: The priority of this ShowCustomRuleResponse. + :type: int + """ + self._priority = priority + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowCustomRuleResponse): + 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-waf/huaweicloudsdkwaf/v1/model/show_geoip_rule_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_geoip_rule_request.py new file mode 100644 index 0000000000..3de1fe466e --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_geoip_rule_request.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ShowGeoipRuleRequest: + + + """ + 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', + 'rule_id': 'str' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'rule_id': 'rule_id' + } + + def __init__(self, policy_id=None, rule_id=None): + """ShowGeoipRuleRequest - a model defined in huaweicloud sdk""" + + + + self._policy_id = None + self._rule_id = None + self.discriminator = None + + self.policy_id = policy_id + self.rule_id = rule_id + + @property + def policy_id(self): + """Gets the policy_id of this ShowGeoipRuleRequest. + + policyid + + :return: The policy_id of this ShowGeoipRuleRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this ShowGeoipRuleRequest. + + policyid + + :param policy_id: The policy_id of this ShowGeoipRuleRequest. + :type: str + """ + self._policy_id = policy_id + + @property + def rule_id(self): + """Gets the rule_id of this ShowGeoipRuleRequest. + + geoipRuleId + + :return: The rule_id of this ShowGeoipRuleRequest. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this ShowGeoipRuleRequest. + + geoipRuleId + + :param rule_id: The rule_id of this ShowGeoipRuleRequest. + :type: str + """ + self._rule_id = rule_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowGeoipRuleRequest): + 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-waf/huaweicloudsdkwaf/v1/model/show_geoip_rule_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_geoip_rule_response.py new file mode 100644 index 0000000000..1d65e55487 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_geoip_rule_response.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ShowGeoipRuleResponse(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', + 'geoip': 'str', + 'white': 'int', + 'timestamp': 'int' + } + + attribute_map = { + 'id': 'id', + 'geoip': 'geoip', + 'white': 'white', + 'timestamp': 'timestamp' + } + + def __init__(self, id=None, geoip=None, white=None, timestamp=None): + """ShowGeoipRuleResponse - a model defined in huaweicloud sdk""" + + super(ShowGeoipRuleResponse, self).__init__() + + self._id = None + self._geoip = None + self._white = None + self._timestamp = None + self.discriminator = None + + if id is not None: + self.id = id + if geoip is not None: + self.geoip = geoip + if white is not None: + self.white = white + if timestamp is not None: + self.timestamp = timestamp + + @property + def id(self): + """Gets the id of this ShowGeoipRuleResponse. + + 规则id + + :return: The id of this ShowGeoipRuleResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ShowGeoipRuleResponse. + + 规则id + + :param id: The id of this ShowGeoipRuleResponse. + :type: str + """ + self._id = id + + @property + def geoip(self): + """Gets the geoip of this ShowGeoipRuleResponse. + + 地理位置封禁区域 + + :return: The geoip of this ShowGeoipRuleResponse. + :rtype: str + """ + return self._geoip + + @geoip.setter + def geoip(self, geoip): + """Sets the geoip of this ShowGeoipRuleResponse. + + 地理位置封禁区域 + + :param geoip: The geoip of this ShowGeoipRuleResponse. + :type: str + """ + self._geoip = geoip + + @property + def white(self): + """Gets the white of this ShowGeoipRuleResponse. + + 放行或者拦截 + + :return: The white of this ShowGeoipRuleResponse. + :rtype: int + """ + return self._white + + @white.setter + def white(self, white): + """Sets the white of this ShowGeoipRuleResponse. + + 放行或者拦截 + + :param white: The white of this ShowGeoipRuleResponse. + :type: int + """ + self._white = white + + @property + def timestamp(self): + """Gets the timestamp of this ShowGeoipRuleResponse. + + 创建规则时间戳 + + :return: The timestamp of this ShowGeoipRuleResponse. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this ShowGeoipRuleResponse. + + 创建规则时间戳 + + :param timestamp: The timestamp of this ShowGeoipRuleResponse. + :type: int + """ + self._timestamp = timestamp + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowGeoipRuleResponse): + 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-waf/huaweicloudsdkwaf/v1/model/show_instance_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_instance_request.py new file mode 100644 index 0000000000..0c20c42083 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_instance_request.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ShowInstanceRequest: + + + """ + 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): + """ShowInstanceRequest - a model defined in huaweicloud sdk""" + + + + self._instance_id = None + self.discriminator = None + + self.instance_id = instance_id + + @property + def instance_id(self): + """Gets the instance_id of this ShowInstanceRequest. + + 域名Id + + :return: The instance_id of this ShowInstanceRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowInstanceRequest. + + 域名Id + + :param instance_id: The instance_id of this ShowInstanceRequest. + :type: 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowInstanceRequest): + 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-waf/huaweicloudsdkwaf/v1/model/show_instance_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_instance_response.py new file mode 100644 index 0000000000..02cf25c180 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_instance_response.py @@ -0,0 +1,407 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ShowInstanceResponse(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', + 'hostname': 'str', + 'policyid': 'str', + 'access_code': 'str', + 'protect_status': 'int', + 'access_status': 'int', + 'protocol': 'str', + 'certificateid': 'str', + 'certificatename': 'str', + 'server': 'list[PremiumWafServer]', + 'proxy': 'bool', + 'timestamp': 'int' + } + + attribute_map = { + 'id': 'id', + 'hostname': 'hostname', + 'policyid': 'policyid', + 'access_code': 'access_code', + 'protect_status': 'protect_status', + 'access_status': 'access_status', + 'protocol': 'protocol', + 'certificateid': 'certificateid', + 'certificatename': 'certificatename', + 'server': 'server', + 'proxy': 'proxy', + 'timestamp': 'timestamp' + } + + def __init__(self, id=None, hostname=None, policyid=None, access_code=None, protect_status=None, access_status=None, protocol=None, certificateid=None, certificatename=None, server=None, proxy=None, timestamp=None): + """ShowInstanceResponse - a model defined in huaweicloud sdk""" + + super(ShowInstanceResponse, self).__init__() + + self._id = None + self._hostname = None + self._policyid = None + self._access_code = None + self._protect_status = None + self._access_status = None + self._protocol = None + self._certificateid = None + self._certificatename = None + self._server = None + self._proxy = None + self._timestamp = None + self.discriminator = None + + if id is not None: + self.id = id + if hostname is not None: + self.hostname = hostname + if policyid is not None: + self.policyid = policyid + if access_code is not None: + self.access_code = access_code + if protect_status is not None: + self.protect_status = protect_status + if access_status is not None: + self.access_status = access_status + if protocol is not None: + self.protocol = protocol + if certificateid is not None: + self.certificateid = certificateid + if certificatename is not None: + self.certificatename = certificatename + if server is not None: + self.server = server + if proxy is not None: + self.proxy = proxy + if timestamp is not None: + self.timestamp = timestamp + + @property + def id(self): + """Gets the id of this ShowInstanceResponse. + + 域名id + + :return: The id of this ShowInstanceResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ShowInstanceResponse. + + 域名id + + :param id: The id of this ShowInstanceResponse. + :type: str + """ + self._id = id + + @property + def hostname(self): + """Gets the hostname of this ShowInstanceResponse. + + 创建的云模式防护域名 + + :return: The hostname of this ShowInstanceResponse. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """Sets the hostname of this ShowInstanceResponse. + + 创建的云模式防护域名 + + :param hostname: The hostname of this ShowInstanceResponse. + :type: str + """ + self._hostname = hostname + + @property + def policyid(self): + """Gets the policyid of this ShowInstanceResponse. + + 策略id + + :return: The policyid of this ShowInstanceResponse. + :rtype: str + """ + return self._policyid + + @policyid.setter + def policyid(self, policyid): + """Sets the policyid of this ShowInstanceResponse. + + 策略id + + :param policyid: The policyid of this ShowInstanceResponse. + :type: str + """ + self._policyid = policyid + + @property + def access_code(self): + """Gets the access_code of this ShowInstanceResponse. + + cname + + :return: The access_code of this ShowInstanceResponse. + :rtype: str + """ + return self._access_code + + @access_code.setter + def access_code(self, access_code): + """Sets the access_code of this ShowInstanceResponse. + + cname + + :param access_code: The access_code of this ShowInstanceResponse. + :type: str + """ + self._access_code = access_code + + @property + def protect_status(self): + """Gets the protect_status of this ShowInstanceResponse. + + 防护状态 + + :return: The protect_status of this ShowInstanceResponse. + :rtype: int + """ + return self._protect_status + + @protect_status.setter + def protect_status(self, protect_status): + """Sets the protect_status of this ShowInstanceResponse. + + 防护状态 + + :param protect_status: The protect_status of this ShowInstanceResponse. + :type: int + """ + self._protect_status = protect_status + + @property + def access_status(self): + """Gets the access_status of this ShowInstanceResponse. + + 接入状态 + + :return: The access_status of this ShowInstanceResponse. + :rtype: int + """ + return self._access_status + + @access_status.setter + def access_status(self, access_status): + """Sets the access_status of this ShowInstanceResponse. + + 接入状态 + + :param access_status: The access_status of this ShowInstanceResponse. + :type: int + """ + self._access_status = access_status + + @property + def protocol(self): + """Gets the protocol of this ShowInstanceResponse. + + 返回的客户端协议类型 + + :return: The protocol of this ShowInstanceResponse. + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this ShowInstanceResponse. + + 返回的客户端协议类型 + + :param protocol: The protocol of this ShowInstanceResponse. + :type: str + """ + self._protocol = protocol + + @property + def certificateid(self): + """Gets the certificateid of this ShowInstanceResponse. + + 返回的证书id + + :return: The certificateid of this ShowInstanceResponse. + :rtype: str + """ + return self._certificateid + + @certificateid.setter + def certificateid(self, certificateid): + """Sets the certificateid of this ShowInstanceResponse. + + 返回的证书id + + :param certificateid: The certificateid of this ShowInstanceResponse. + :type: str + """ + self._certificateid = certificateid + + @property + def certificatename(self): + """Gets the certificatename of this ShowInstanceResponse. + + 证书名称 + + :return: The certificatename of this ShowInstanceResponse. + :rtype: str + """ + return self._certificatename + + @certificatename.setter + def certificatename(self, certificatename): + """Sets the certificatename of this ShowInstanceResponse. + + 证书名称 + + :param certificatename: The certificatename of this ShowInstanceResponse. + :type: str + """ + self._certificatename = certificatename + + @property + def server(self): + """Gets the server of this ShowInstanceResponse. + + 源站信息 + + :return: The server of this ShowInstanceResponse. + :rtype: list[PremiumWafServer] + """ + return self._server + + @server.setter + def server(self, server): + """Sets the server of this ShowInstanceResponse. + + 源站信息 + + :param server: The server of this ShowInstanceResponse. + :type: list[PremiumWafServer] + """ + self._server = server + + @property + def proxy(self): + """Gets the proxy of this ShowInstanceResponse. + + 是否开启了代理 + + :return: The proxy of this ShowInstanceResponse. + :rtype: bool + """ + return self._proxy + + @proxy.setter + def proxy(self, proxy): + """Sets the proxy of this ShowInstanceResponse. + + 是否开启了代理 + + :param proxy: The proxy of this ShowInstanceResponse. + :type: bool + """ + self._proxy = proxy + + @property + def timestamp(self): + """Gets the timestamp of this ShowInstanceResponse. + + 创建防护域名的时间 + + :return: The timestamp of this ShowInstanceResponse. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this ShowInstanceResponse. + + 创建防护域名的时间 + + :param timestamp: The timestamp of this ShowInstanceResponse. + :type: int + """ + self._timestamp = timestamp + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowInstanceResponse): + 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-waf/huaweicloudsdkwaf/v1/model/show_instance_route_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_instance_route_request.py new file mode 100644 index 0000000000..536a1449bd --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_instance_route_request.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ShowInstanceRouteRequest: + + + """ + 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 = { + 'instanceid': 'str' + } + + attribute_map = { + 'instanceid': 'instanceid' + } + + def __init__(self, instanceid=None): + """ShowInstanceRouteRequest - a model defined in huaweicloud sdk""" + + + + self._instanceid = None + self.discriminator = None + + self.instanceid = instanceid + + @property + def instanceid(self): + """Gets the instanceid of this ShowInstanceRouteRequest. + + 域名Id + + :return: The instanceid of this ShowInstanceRouteRequest. + :rtype: str + """ + return self._instanceid + + @instanceid.setter + def instanceid(self, instanceid): + """Sets the instanceid of this ShowInstanceRouteRequest. + + 域名Id + + :param instanceid: The instanceid of this ShowInstanceRouteRequest. + :type: str + """ + self._instanceid = instanceid + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowInstanceRouteRequest): + 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-waf/huaweicloudsdkwaf/v1/model/show_instance_route_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_instance_route_response.py new file mode 100644 index 0000000000..0da5bd5ef1 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_instance_route_response.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ShowInstanceRouteResponse(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': 'RoutePutBody' + } + + attribute_map = { + 'total': 'total', + 'items': 'items' + } + + def __init__(self, total=None, items=None): + """ShowInstanceRouteResponse - a model defined in huaweicloud sdk""" + + super(ShowInstanceRouteResponse, 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 ShowInstanceRouteResponse. + + 数量 + + :return: The total of this ShowInstanceRouteResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ShowInstanceRouteResponse. + + 数量 + + :param total: The total of this ShowInstanceRouteResponse. + :type: int + """ + self._total = total + + @property + def items(self): + """Gets the items of this ShowInstanceRouteResponse. + + + :return: The items of this ShowInstanceRouteResponse. + :rtype: RoutePutBody + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ShowInstanceRouteResponse. + + + :param items: The items of this ShowInstanceRouteResponse. + :type: RoutePutBody + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowInstanceRouteResponse): + 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-waf/huaweicloudsdkwaf/v1/model/show_pool_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_pool_request.py new file mode 100644 index 0000000000..b13617adbd --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_pool_request.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ShowPoolRequest: + + + """ + 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 = { + 'pool_id': 'str' + } + + attribute_map = { + 'pool_id': 'pool_id' + } + + def __init__(self, pool_id=None): + """ShowPoolRequest - a model defined in huaweicloud sdk""" + + + + self._pool_id = None + self.discriminator = None + + self.pool_id = pool_id + + @property + def pool_id(self): + """Gets the pool_id of this ShowPoolRequest. + + WAF独享引擎组ID + + :return: The pool_id of this ShowPoolRequest. + :rtype: str + """ + return self._pool_id + + @pool_id.setter + def pool_id(self, pool_id): + """Sets the pool_id of this ShowPoolRequest. + + WAF独享引擎组ID + + :param pool_id: The pool_id of this ShowPoolRequest. + :type: str + """ + self._pool_id = pool_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPoolRequest): + 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-waf/huaweicloudsdkwaf/v1/model/show_pool_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_pool_response.py new file mode 100644 index 0000000000..209bf89ca2 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_pool_response.py @@ -0,0 +1,189 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ShowPoolResponse(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 = { + 'option': 'PremiumWafPoolOption', + 'hosts': 'list[IdNameEntry]', + 'instances': 'list[IdNameEntry]', + 'bindings': 'list[IdNameEntry]' + } + + attribute_map = { + 'option': 'option', + 'hosts': 'hosts', + 'instances': 'instances', + 'bindings': 'bindings' + } + + def __init__(self, option=None, hosts=None, instances=None, bindings=None): + """ShowPoolResponse - a model defined in huaweicloud sdk""" + + super(ShowPoolResponse, self).__init__() + + self._option = None + self._hosts = None + self._instances = None + self._bindings = None + self.discriminator = None + + if option is not None: + self.option = option + if hosts is not None: + self.hosts = hosts + if instances is not None: + self.instances = instances + if bindings is not None: + self.bindings = bindings + + @property + def option(self): + """Gets the option of this ShowPoolResponse. + + + :return: The option of this ShowPoolResponse. + :rtype: PremiumWafPoolOption + """ + return self._option + + @option.setter + def option(self, option): + """Sets the option of this ShowPoolResponse. + + + :param option: The option of this ShowPoolResponse. + :type: PremiumWafPoolOption + """ + self._option = option + + @property + def hosts(self): + """Gets the hosts of this ShowPoolResponse. + + 关联的域名 + + :return: The hosts of this ShowPoolResponse. + :rtype: list[IdNameEntry] + """ + return self._hosts + + @hosts.setter + def hosts(self, hosts): + """Sets the hosts of this ShowPoolResponse. + + 关联的域名 + + :param hosts: The hosts of this ShowPoolResponse. + :type: list[IdNameEntry] + """ + self._hosts = hosts + + @property + def instances(self): + """Gets the instances of this ShowPoolResponse. + + 组内的独享引擎 + + :return: The instances of this ShowPoolResponse. + :rtype: list[IdNameEntry] + """ + return self._instances + + @instances.setter + def instances(self, instances): + """Sets the instances of this ShowPoolResponse. + + 组内的独享引擎 + + :param instances: The instances of this ShowPoolResponse. + :type: list[IdNameEntry] + """ + self._instances = instances + + @property + def bindings(self): + """Gets the bindings of this ShowPoolResponse. + + 绑定的LoadBalancer + + :return: The bindings of this ShowPoolResponse. + :rtype: list[IdNameEntry] + """ + return self._bindings + + @bindings.setter + def bindings(self, bindings): + """Sets the bindings of this ShowPoolResponse. + + 绑定的LoadBalancer + + :param bindings: The bindings of this ShowPoolResponse. + :type: list[IdNameEntry] + """ + self._bindings = bindings + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPoolResponse): + 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-waf/huaweicloudsdkwaf/v1/model/show_premium_host_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_premium_host_request.py new file mode 100644 index 0000000000..fd1d94adec --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_premium_host_request.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ShowPremiumHostRequest: + + + """ + 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 = { + 'host_id': 'str' + } + + attribute_map = { + 'host_id': 'host_id' + } + + def __init__(self, host_id=None): + """ShowPremiumHostRequest - a model defined in huaweicloud sdk""" + + + + self._host_id = None + self.discriminator = None + + self.host_id = host_id + + @property + def host_id(self): + """Gets the host_id of this ShowPremiumHostRequest. + + 独享模式域名ID + + :return: The host_id of this ShowPremiumHostRequest. + :rtype: str + """ + return self._host_id + + @host_id.setter + def host_id(self, host_id): + """Sets the host_id of this ShowPremiumHostRequest. + + 独享模式域名ID + + :param host_id: The host_id of this ShowPremiumHostRequest. + :type: str + """ + self._host_id = host_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPremiumHostRequest): + 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-waf/huaweicloudsdkwaf/v1/model/show_premium_host_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_premium_host_response.py new file mode 100644 index 0000000000..7dba089d78 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/show_premium_host_response.py @@ -0,0 +1,700 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ShowPremiumHostResponse(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', + 'policyid': 'str', + 'hostname': 'str', + 'domainid': 'str', + 'project_id': 'str', + 'access_code': 'str', + 'protocol': 'str', + 'server': 'list[PremiumWafServer]', + 'certificateid': 'str', + 'certificatename': 'str', + 'tls': 'str', + 'cipher': 'str', + 'proxy': 'bool', + 'locked': 'int', + 'protect_status': 'int', + 'access_status': 'int', + 'timestamp': 'int', + 'block_page': 'BlockPage', + 'extend': 'dict(str, str)', + 'traffic_mark': 'TrafficMark', + 'flag': 'dict(str, str)', + 'mode': 'str', + 'pool_ids': 'list[str]' + } + + attribute_map = { + 'id': 'id', + 'policyid': 'policyid', + 'hostname': 'hostname', + 'domainid': 'domainid', + 'project_id': 'project_id', + 'access_code': 'access_code', + 'protocol': 'protocol', + 'server': 'server', + 'certificateid': 'certificateid', + 'certificatename': 'certificatename', + 'tls': 'tls', + 'cipher': 'cipher', + 'proxy': 'proxy', + 'locked': 'locked', + 'protect_status': 'protect_status', + 'access_status': 'access_status', + 'timestamp': 'timestamp', + 'block_page': 'block_page', + 'extend': 'extend', + 'traffic_mark': 'traffic_mark', + 'flag': 'flag', + 'mode': 'mode', + 'pool_ids': 'pool_ids' + } + + def __init__(self, id=None, policyid=None, hostname=None, domainid=None, project_id=None, access_code=None, protocol=None, server=None, certificateid=None, certificatename=None, tls=None, cipher=None, proxy=None, locked=None, protect_status=None, access_status=None, timestamp=None, block_page=None, extend=None, traffic_mark=None, flag=None, mode=None, pool_ids=None): + """ShowPremiumHostResponse - a model defined in huaweicloud sdk""" + + super(ShowPremiumHostResponse, self).__init__() + + self._id = None + self._policyid = None + self._hostname = None + self._domainid = None + self._project_id = None + self._access_code = None + self._protocol = None + self._server = None + self._certificateid = None + self._certificatename = None + self._tls = None + self._cipher = None + self._proxy = None + self._locked = None + self._protect_status = None + self._access_status = None + self._timestamp = None + self._block_page = None + self._extend = None + self._traffic_mark = None + self._flag = None + self._mode = None + self._pool_ids = None + self.discriminator = None + + if id is not None: + self.id = id + if policyid is not None: + self.policyid = policyid + if hostname is not None: + self.hostname = hostname + if domainid is not None: + self.domainid = domainid + if project_id is not None: + self.project_id = project_id + if access_code is not None: + self.access_code = access_code + if protocol is not None: + self.protocol = protocol + if server is not None: + self.server = server + if certificateid is not None: + self.certificateid = certificateid + if certificatename is not None: + self.certificatename = certificatename + if tls is not None: + self.tls = tls + if cipher is not None: + self.cipher = cipher + if proxy is not None: + self.proxy = proxy + if locked is not None: + self.locked = locked + if protect_status is not None: + self.protect_status = protect_status + if access_status is not None: + self.access_status = access_status + if timestamp is not None: + self.timestamp = timestamp + if block_page is not None: + self.block_page = block_page + if extend is not None: + self.extend = extend + if traffic_mark is not None: + self.traffic_mark = traffic_mark + if flag is not None: + self.flag = flag + if mode is not None: + self.mode = mode + if pool_ids is not None: + self.pool_ids = pool_ids + + @property + def id(self): + """Gets the id of this ShowPremiumHostResponse. + + 域名id + + :return: The id of this ShowPremiumHostResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ShowPremiumHostResponse. + + 域名id + + :param id: The id of this ShowPremiumHostResponse. + :type: str + """ + self._id = id + + @property + def policyid(self): + """Gets the policyid of this ShowPremiumHostResponse. + + 策略id + + :return: The policyid of this ShowPremiumHostResponse. + :rtype: str + """ + return self._policyid + + @policyid.setter + def policyid(self, policyid): + """Sets the policyid of this ShowPremiumHostResponse. + + 策略id + + :param policyid: The policyid of this ShowPremiumHostResponse. + :type: str + """ + self._policyid = policyid + + @property + def hostname(self): + """Gets the hostname of this ShowPremiumHostResponse. + + 创建的云模式防护域名 + + :return: The hostname of this ShowPremiumHostResponse. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """Sets the hostname of this ShowPremiumHostResponse. + + 创建的云模式防护域名 + + :param hostname: The hostname of this ShowPremiumHostResponse. + :type: str + """ + self._hostname = hostname + + @property + def domainid(self): + """Gets the domainid of this ShowPremiumHostResponse. + + 用户Domain ID + + :return: The domainid of this ShowPremiumHostResponse. + :rtype: str + """ + return self._domainid + + @domainid.setter + def domainid(self, domainid): + """Sets the domainid of this ShowPremiumHostResponse. + + 用户Domain ID + + :param domainid: The domainid of this ShowPremiumHostResponse. + :type: str + """ + self._domainid = domainid + + @property + def project_id(self): + """Gets the project_id of this ShowPremiumHostResponse. + + 用户Project ID + + :return: The project_id of this ShowPremiumHostResponse. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowPremiumHostResponse. + + 用户Project ID + + :param project_id: The project_id of this ShowPremiumHostResponse. + :type: str + """ + self._project_id = project_id + + @property + def access_code(self): + """Gets the access_code of this ShowPremiumHostResponse. + + cname + + :return: The access_code of this ShowPremiumHostResponse. + :rtype: str + """ + return self._access_code + + @access_code.setter + def access_code(self, access_code): + """Sets the access_code of this ShowPremiumHostResponse. + + cname + + :param access_code: The access_code of this ShowPremiumHostResponse. + :type: str + """ + self._access_code = access_code + + @property + def protocol(self): + """Gets the protocol of this ShowPremiumHostResponse. + + 返回的客户端协议类型 + + :return: The protocol of this ShowPremiumHostResponse. + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this ShowPremiumHostResponse. + + 返回的客户端协议类型 + + :param protocol: The protocol of this ShowPremiumHostResponse. + :type: str + """ + self._protocol = protocol + + @property + def server(self): + """Gets the server of this ShowPremiumHostResponse. + + 源站信息 + + :return: The server of this ShowPremiumHostResponse. + :rtype: list[PremiumWafServer] + """ + return self._server + + @server.setter + def server(self, server): + """Sets the server of this ShowPremiumHostResponse. + + 源站信息 + + :param server: The server of this ShowPremiumHostResponse. + :type: list[PremiumWafServer] + """ + self._server = server + + @property + def certificateid(self): + """Gets the certificateid of this ShowPremiumHostResponse. + + 返回的证书id + + :return: The certificateid of this ShowPremiumHostResponse. + :rtype: str + """ + return self._certificateid + + @certificateid.setter + def certificateid(self, certificateid): + """Sets the certificateid of this ShowPremiumHostResponse. + + 返回的证书id + + :param certificateid: The certificateid of this ShowPremiumHostResponse. + :type: str + """ + self._certificateid = certificateid + + @property + def certificatename(self): + """Gets the certificatename of this ShowPremiumHostResponse. + + 证书名称 + + :return: The certificatename of this ShowPremiumHostResponse. + :rtype: str + """ + return self._certificatename + + @certificatename.setter + def certificatename(self, certificatename): + """Sets the certificatename of this ShowPremiumHostResponse. + + 证书名称 + + :param certificatename: The certificatename of this ShowPremiumHostResponse. + :type: str + """ + self._certificatename = certificatename + + @property + def tls(self): + """Gets the tls of this ShowPremiumHostResponse. + + 支持最低的TLS版本 + + :return: The tls of this ShowPremiumHostResponse. + :rtype: str + """ + return self._tls + + @tls.setter + def tls(self, tls): + """Sets the tls of this ShowPremiumHostResponse. + + 支持最低的TLS版本 + + :param tls: The tls of this ShowPremiumHostResponse. + :type: str + """ + self._tls = tls + + @property + def cipher(self): + """Gets the cipher of this ShowPremiumHostResponse. + + 加密套件代码 + + :return: The cipher of this ShowPremiumHostResponse. + :rtype: str + """ + return self._cipher + + @cipher.setter + def cipher(self, cipher): + """Sets the cipher of this ShowPremiumHostResponse. + + 加密套件代码 + + :param cipher: The cipher of this ShowPremiumHostResponse. + :type: str + """ + self._cipher = cipher + + @property + def proxy(self): + """Gets the proxy of this ShowPremiumHostResponse. + + 是否开启了代理 + + :return: The proxy of this ShowPremiumHostResponse. + :rtype: bool + """ + return self._proxy + + @proxy.setter + def proxy(self, proxy): + """Sets the proxy of this ShowPremiumHostResponse. + + 是否开启了代理 + + :param proxy: The proxy of this ShowPremiumHostResponse. + :type: bool + """ + self._proxy = proxy + + @property + def locked(self): + """Gets the locked of this ShowPremiumHostResponse. + + 锁定状态 + + :return: The locked of this ShowPremiumHostResponse. + :rtype: int + """ + return self._locked + + @locked.setter + def locked(self, locked): + """Sets the locked of this ShowPremiumHostResponse. + + 锁定状态 + + :param locked: The locked of this ShowPremiumHostResponse. + :type: int + """ + self._locked = locked + + @property + def protect_status(self): + """Gets the protect_status of this ShowPremiumHostResponse. + + 防护状态 + + :return: The protect_status of this ShowPremiumHostResponse. + :rtype: int + """ + return self._protect_status + + @protect_status.setter + def protect_status(self, protect_status): + """Sets the protect_status of this ShowPremiumHostResponse. + + 防护状态 + + :param protect_status: The protect_status of this ShowPremiumHostResponse. + :type: int + """ + self._protect_status = protect_status + + @property + def access_status(self): + """Gets the access_status of this ShowPremiumHostResponse. + + 接入状态 + + :return: The access_status of this ShowPremiumHostResponse. + :rtype: int + """ + return self._access_status + + @access_status.setter + def access_status(self, access_status): + """Sets the access_status of this ShowPremiumHostResponse. + + 接入状态 + + :param access_status: The access_status of this ShowPremiumHostResponse. + :type: int + """ + self._access_status = access_status + + @property + def timestamp(self): + """Gets the timestamp of this ShowPremiumHostResponse. + + 创建防护域名的时间 + + :return: The timestamp of this ShowPremiumHostResponse. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this ShowPremiumHostResponse. + + 创建防护域名的时间 + + :param timestamp: The timestamp of this ShowPremiumHostResponse. + :type: int + """ + self._timestamp = timestamp + + @property + def block_page(self): + """Gets the block_page of this ShowPremiumHostResponse. + + + :return: The block_page of this ShowPremiumHostResponse. + :rtype: BlockPage + """ + return self._block_page + + @block_page.setter + def block_page(self, block_page): + """Sets the block_page of this ShowPremiumHostResponse. + + + :param block_page: The block_page of this ShowPremiumHostResponse. + :type: BlockPage + """ + self._block_page = block_page + + @property + def extend(self): + """Gets the extend of this ShowPremiumHostResponse. + + 可扩展属性 + + :return: The extend of this ShowPremiumHostResponse. + :rtype: dict(str, str) + """ + return self._extend + + @extend.setter + def extend(self, extend): + """Sets the extend of this ShowPremiumHostResponse. + + 可扩展属性 + + :param extend: The extend of this ShowPremiumHostResponse. + :type: dict(str, str) + """ + self._extend = extend + + @property + def traffic_mark(self): + """Gets the traffic_mark of this ShowPremiumHostResponse. + + + :return: The traffic_mark of this ShowPremiumHostResponse. + :rtype: TrafficMark + """ + return self._traffic_mark + + @traffic_mark.setter + def traffic_mark(self, traffic_mark): + """Sets the traffic_mark of this ShowPremiumHostResponse. + + + :param traffic_mark: The traffic_mark of this ShowPremiumHostResponse. + :type: TrafficMark + """ + self._traffic_mark = traffic_mark + + @property + def flag(self): + """Gets the flag of this ShowPremiumHostResponse. + + 域名特殊标记 + + :return: The flag of this ShowPremiumHostResponse. + :rtype: dict(str, str) + """ + return self._flag + + @flag.setter + def flag(self, flag): + """Sets the flag of this ShowPremiumHostResponse. + + 域名特殊标记 + + :param flag: The flag of this ShowPremiumHostResponse. + :type: dict(str, str) + """ + self._flag = flag + + @property + def mode(self): + """Gets the mode of this ShowPremiumHostResponse. + + 独享模式特殊域名模式(仅特殊模式需要,如elb) + + :return: The mode of this ShowPremiumHostResponse. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this ShowPremiumHostResponse. + + 独享模式特殊域名模式(仅特殊模式需要,如elb) + + :param mode: The mode of this ShowPremiumHostResponse. + :type: str + """ + self._mode = mode + + @property + def pool_ids(self): + """Gets the pool_ids of this ShowPremiumHostResponse. + + 域名关联的组ID(仅特殊模式需要,如elb) + + :return: The pool_ids of this ShowPremiumHostResponse. + :rtype: list[str] + """ + return self._pool_ids + + @pool_ids.setter + def pool_ids(self, pool_ids): + """Sets the pool_ids of this ShowPremiumHostResponse. + + 域名关联的组ID(仅特殊模式需要,如elb) + + :param pool_ids: The pool_ids of this ShowPremiumHostResponse. + :type: list[str] + """ + self._pool_ids = pool_ids + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPremiumHostResponse): + 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-waf/huaweicloudsdkwaf/v1/model/simple_premium_waf_host.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/simple_premium_waf_host.py new file mode 100644 index 0000000000..7b99d04352 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/simple_premium_waf_host.py @@ -0,0 +1,299 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class SimplePremiumWafHost: + + + """ + 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', + 'hostname': 'str', + 'policyid': 'str', + 'protect_status': 'int', + 'access_status': 'int', + 'flag': 'dict(str, str)', + 'mode': 'str', + 'pool_ids': 'list[str]' + } + + attribute_map = { + 'id': 'id', + 'hostname': 'hostname', + 'policyid': 'policyid', + 'protect_status': 'protect_status', + 'access_status': 'access_status', + 'flag': 'flag', + 'mode': 'mode', + 'pool_ids': 'pool_ids' + } + + def __init__(self, id=None, hostname=None, policyid=None, protect_status=None, access_status=None, flag=None, mode=None, pool_ids=None): + """SimplePremiumWafHost - a model defined in huaweicloud sdk""" + + + + self._id = None + self._hostname = None + self._policyid = None + self._protect_status = None + self._access_status = None + self._flag = None + self._mode = None + self._pool_ids = None + self.discriminator = None + + if id is not None: + self.id = id + if hostname is not None: + self.hostname = hostname + if policyid is not None: + self.policyid = policyid + if protect_status is not None: + self.protect_status = protect_status + if access_status is not None: + self.access_status = access_status + if flag is not None: + self.flag = flag + if mode is not None: + self.mode = mode + if pool_ids is not None: + self.pool_ids = pool_ids + + @property + def id(self): + """Gets the id of this SimplePremiumWafHost. + + 域名id + + :return: The id of this SimplePremiumWafHost. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this SimplePremiumWafHost. + + 域名id + + :param id: The id of this SimplePremiumWafHost. + :type: str + """ + self._id = id + + @property + def hostname(self): + """Gets the hostname of this SimplePremiumWafHost. + + 域名 + + :return: The hostname of this SimplePremiumWafHost. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """Sets the hostname of this SimplePremiumWafHost. + + 域名 + + :param hostname: The hostname of this SimplePremiumWafHost. + :type: str + """ + self._hostname = hostname + + @property + def policyid(self): + """Gets the policyid of this SimplePremiumWafHost. + + 策略id + + :return: The policyid of this SimplePremiumWafHost. + :rtype: str + """ + return self._policyid + + @policyid.setter + def policyid(self, policyid): + """Sets the policyid of this SimplePremiumWafHost. + + 策略id + + :param policyid: The policyid of this SimplePremiumWafHost. + :type: str + """ + self._policyid = policyid + + @property + def protect_status(self): + """Gets the protect_status of this SimplePremiumWafHost. + + 防护状态 + + :return: The protect_status of this SimplePremiumWafHost. + :rtype: int + """ + return self._protect_status + + @protect_status.setter + def protect_status(self, protect_status): + """Sets the protect_status of this SimplePremiumWafHost. + + 防护状态 + + :param protect_status: The protect_status of this SimplePremiumWafHost. + :type: int + """ + self._protect_status = protect_status + + @property + def access_status(self): + """Gets the access_status of this SimplePremiumWafHost. + + 接入状态 + + :return: The access_status of this SimplePremiumWafHost. + :rtype: int + """ + return self._access_status + + @access_status.setter + def access_status(self, access_status): + """Sets the access_status of this SimplePremiumWafHost. + + 接入状态 + + :param access_status: The access_status of this SimplePremiumWafHost. + :type: int + """ + self._access_status = access_status + + @property + def flag(self): + """Gets the flag of this SimplePremiumWafHost. + + 特殊标识 + + :return: The flag of this SimplePremiumWafHost. + :rtype: dict(str, str) + """ + return self._flag + + @flag.setter + def flag(self, flag): + """Sets the flag of this SimplePremiumWafHost. + + 特殊标识 + + :param flag: The flag of this SimplePremiumWafHost. + :type: dict(str, str) + """ + self._flag = flag + + @property + def mode(self): + """Gets the mode of this SimplePremiumWafHost. + + 特殊模式独享引擎的标识(如elb) + + :return: The mode of this SimplePremiumWafHost. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this SimplePremiumWafHost. + + 特殊模式独享引擎的标识(如elb) + + :param mode: The mode of this SimplePremiumWafHost. + :type: str + """ + self._mode = mode + + @property + def pool_ids(self): + """Gets the pool_ids of this SimplePremiumWafHost. + + 特殊模式域名所属独享引擎组 + + :return: The pool_ids of this SimplePremiumWafHost. + :rtype: list[str] + """ + return self._pool_ids + + @pool_ids.setter + def pool_ids(self, pool_ids): + """Sets the pool_ids of this SimplePremiumWafHost. + + 特殊模式域名所属独享引擎组 + + :param pool_ids: The pool_ids of this SimplePremiumWafHost. + :type: list[str] + """ + self._pool_ids = pool_ids + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SimplePremiumWafHost): + 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-waf/huaweicloudsdkwaf/v1/model/source_ip_top_list_info_items.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/source_ip_top_list_info_items.py new file mode 100644 index 0000000000..c6c8a548c1 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/source_ip_top_list_info_items.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class SourceIpTopListInfoItems: + + + """ + 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', + 'num': 'int' + } + + attribute_map = { + 'ip': 'ip', + 'num': 'num' + } + + def __init__(self, ip=None, num=None): + """SourceIpTopListInfoItems - a model defined in huaweicloud sdk""" + + + + self._ip = None + self._num = None + self.discriminator = None + + if ip is not None: + self.ip = ip + if num is not None: + self.num = num + + @property + def ip(self): + """Gets the ip of this SourceIpTopListInfoItems. + + 攻击源ip地址 + + :return: The ip of this SourceIpTopListInfoItems. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this SourceIpTopListInfoItems. + + 攻击源ip地址 + + :param ip: The ip of this SourceIpTopListInfoItems. + :type: str + """ + self._ip = ip + + @property + def num(self): + """Gets the num of this SourceIpTopListInfoItems. + + 攻击源ip攻击次数 + + :return: The num of this SourceIpTopListInfoItems. + :rtype: int + """ + return self._num + + @num.setter + def num(self, num): + """Sets the num of this SourceIpTopListInfoItems. + + 攻击源ip攻击次数 + + :param num: The num of this SourceIpTopListInfoItems. + :type: int + """ + self._num = 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SourceIpTopListInfoItems): + 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-waf/huaweicloudsdkwaf/v1/model/statistic_list_info_requests.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/statistic_list_info_requests.py new file mode 100644 index 0000000000..37f17125af --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/statistic_list_info_requests.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class StatisticListInfoRequests: + + + """ + 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', + 'num': 'int' + } + + attribute_map = { + 'time': 'time', + 'num': 'num' + } + + def __init__(self, time=None, num=None): + """StatisticListInfoRequests - a model defined in huaweicloud sdk""" + + + + self._time = None + self._num = None + self.discriminator = None + + if time is not None: + self.time = time + if num is not None: + self.num = num + + @property + def time(self): + """Gets the time of this StatisticListInfoRequests. + + 统计终止时间点 + + :return: The time of this StatisticListInfoRequests. + :rtype: int + """ + return self._time + + @time.setter + def time(self, time): + """Sets the time of this StatisticListInfoRequests. + + 统计终止时间点 + + :param time: The time of this StatisticListInfoRequests. + :type: int + """ + self._time = time + + @property + def num(self): + """Gets the num of this StatisticListInfoRequests. + + 统计计数 + + :return: The num of this StatisticListInfoRequests. + :rtype: int + """ + return self._num + + @num.setter + def num(self, num): + """Sets the num of this StatisticListInfoRequests. + + 统计计数 + + :param num: The num of this StatisticListInfoRequests. + :type: int + """ + self._num = 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StatisticListInfoRequests): + 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-waf/huaweicloudsdkwaf/v1/model/statistics_timeline_item.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/statistics_timeline_item.py new file mode 100644 index 0000000000..8c76f3bf1f --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/statistics_timeline_item.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class StatisticsTimelineItem: + + + """ + 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 = { + 'key': 'str', + 'timeline': 'list[TimeLineItem]' + } + + attribute_map = { + 'key': 'key', + 'timeline': 'timeline' + } + + def __init__(self, key=None, timeline=None): + """StatisticsTimelineItem - a model defined in huaweicloud sdk""" + + + + self._key = None + self._timeline = None + self.discriminator = None + + if key is not None: + self.key = key + if timeline is not None: + self.timeline = timeline + + @property + def key(self): + """Gets the key of this StatisticsTimelineItem. + + 键值 + + :return: The key of this StatisticsTimelineItem. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this StatisticsTimelineItem. + + 键值 + + :param key: The key of this StatisticsTimelineItem. + :type: str + """ + self._key = key + + @property + def timeline(self): + """Gets the timeline of this StatisticsTimelineItem. + + 对应键值的时间线 + + :return: The timeline of this StatisticsTimelineItem. + :rtype: list[TimeLineItem] + """ + return self._timeline + + @timeline.setter + def timeline(self, timeline): + """Sets the timeline of this StatisticsTimelineItem. + + 对应键值的时间线 + + :param timeline: The timeline of this StatisticsTimelineItem. + :type: list[TimeLineItem] + """ + self._timeline = timeline + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StatisticsTimelineItem): + 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-waf/huaweicloudsdkwaf/v1/model/time_line_item.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/time_line_item.py new file mode 100644 index 0000000000..d68e44802c --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/time_line_item.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class TimeLineItem: + + + """ + 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', + 'num': 'int' + } + + attribute_map = { + 'time': 'time', + 'num': 'num' + } + + def __init__(self, time=None, num=None): + """TimeLineItem - a model defined in huaweicloud sdk""" + + + + self._time = None + self._num = None + self.discriminator = None + + if time is not None: + self.time = time + if num is not None: + self.num = num + + @property + def time(self): + """Gets the time of this TimeLineItem. + + 时间点 + + :return: The time of this TimeLineItem. + :rtype: int + """ + return self._time + + @time.setter + def time(self, time): + """Sets the time of this TimeLineItem. + + 时间点 + + :param time: The time of this TimeLineItem. + :type: int + """ + self._time = time + + @property + def num(self): + """Gets the num of this TimeLineItem. + + 数量 + + :return: The num of this TimeLineItem. + :rtype: int + """ + return self._num + + @num.setter + def num(self, num): + """Sets the num of this TimeLineItem. + + 数量 + + :param num: The num of this TimeLineItem. + :type: int + """ + self._num = 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TimeLineItem): + 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-waf/huaweicloudsdkwaf/v1/model/traffic_mark.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/traffic_mark.py new file mode 100644 index 0000000000..8eddca3bc9 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/traffic_mark.py @@ -0,0 +1,164 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class TrafficMark: + + + """ + 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 = { + 'sip': 'list[str]', + 'cookie': 'str', + 'params': 'str' + } + + attribute_map = { + 'sip': 'sip', + 'cookie': 'cookie', + 'params': 'params' + } + + def __init__(self, sip=None, cookie=None, params=None): + """TrafficMark - a model defined in huaweicloud sdk""" + + + + self._sip = None + self._cookie = None + self._params = None + self.discriminator = None + + if sip is not None: + self.sip = sip + if cookie is not None: + self.cookie = cookie + if params is not None: + self.params = params + + @property + def sip(self): + """Gets the sip of this TrafficMark. + + 惩罚ip + + :return: The sip of this TrafficMark. + :rtype: list[str] + """ + return self._sip + + @sip.setter + def sip(self, sip): + """Sets the sip of this TrafficMark. + + 惩罚ip + + :param sip: The sip of this TrafficMark. + :type: list[str] + """ + self._sip = sip + + @property + def cookie(self): + """Gets the cookie of this TrafficMark. + + cookie + + :return: The cookie of this TrafficMark. + :rtype: str + """ + return self._cookie + + @cookie.setter + def cookie(self, cookie): + """Sets the cookie of this TrafficMark. + + cookie + + :param cookie: The cookie of this TrafficMark. + :type: str + """ + self._cookie = cookie + + @property + def params(self): + """Gets the params of this TrafficMark. + + 参数 + + :return: The params of this TrafficMark. + :rtype: str + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this TrafficMark. + + 参数 + + :param params: The params of this TrafficMark. + :type: str + """ + self._params = params + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TrafficMark): + 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-waf/huaweicloudsdkwaf/v1/model/update_anticrawler_rule_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_anticrawler_rule_request.py new file mode 100644 index 0000000000..5c75388686 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_anticrawler_rule_request.py @@ -0,0 +1,160 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdateAnticrawlerRuleRequest: + + + """ + 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', + 'rule_id': 'str', + 'body': 'PolicyAntiCrawlerPutInfo' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'rule_id': 'rule_id', + 'body': 'body' + } + + def __init__(self, policy_id=None, rule_id=None, body=None): + """UpdateAnticrawlerRuleRequest - a model defined in huaweicloud sdk""" + + + + self._policy_id = None + self._rule_id = None + self._body = None + self.discriminator = None + + self.policy_id = policy_id + self.rule_id = rule_id + if body is not None: + self.body = body + + @property + def policy_id(self): + """Gets the policy_id of this UpdateAnticrawlerRuleRequest. + + policyid + + :return: The policy_id of this UpdateAnticrawlerRuleRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this UpdateAnticrawlerRuleRequest. + + policyid + + :param policy_id: The policy_id of this UpdateAnticrawlerRuleRequest. + :type: str + """ + self._policy_id = policy_id + + @property + def rule_id(self): + """Gets the rule_id of this UpdateAnticrawlerRuleRequest. + + anticrawlerRuleId + + :return: The rule_id of this UpdateAnticrawlerRuleRequest. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this UpdateAnticrawlerRuleRequest. + + anticrawlerRuleId + + :param rule_id: The rule_id of this UpdateAnticrawlerRuleRequest. + :type: str + """ + self._rule_id = rule_id + + @property + def body(self): + """Gets the body of this UpdateAnticrawlerRuleRequest. + + + :return: The body of this UpdateAnticrawlerRuleRequest. + :rtype: PolicyAntiCrawlerPutInfo + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateAnticrawlerRuleRequest. + + + :param body: The body of this UpdateAnticrawlerRuleRequest. + :type: PolicyAntiCrawlerPutInfo + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateAnticrawlerRuleRequest): + 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-waf/huaweicloudsdkwaf/v1/model/update_anticrawler_rule_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_anticrawler_rule_response.py new file mode 100644 index 0000000000..e39fa1af94 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_anticrawler_rule_response.py @@ -0,0 +1,245 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class UpdateAnticrawlerRuleResponse(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', + 'url': 'str', + 'logic': 'int', + 'name': 'str', + 'type': 'str', + 'timestamp': 'int' + } + + attribute_map = { + 'id': 'id', + 'url': 'url', + 'logic': 'logic', + 'name': 'name', + 'type': 'type', + 'timestamp': 'timestamp' + } + + def __init__(self, id=None, url=None, logic=None, name=None, type=None, timestamp=None): + """UpdateAnticrawlerRuleResponse - a model defined in huaweicloud sdk""" + + super(UpdateAnticrawlerRuleResponse, self).__init__() + + self._id = None + self._url = None + self._logic = None + self._name = None + self._type = None + self._timestamp = None + self.discriminator = None + + if id is not None: + self.id = id + if url is not None: + self.url = url + if logic is not None: + self.logic = logic + if name is not None: + self.name = name + if type is not None: + self.type = type + if timestamp is not None: + self.timestamp = timestamp + + @property + def id(self): + """Gets the id of this UpdateAnticrawlerRuleResponse. + + 规则id + + :return: The id of this UpdateAnticrawlerRuleResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this UpdateAnticrawlerRuleResponse. + + 规则id + + :param id: The id of this UpdateAnticrawlerRuleResponse. + :type: str + """ + self._id = id + + @property + def url(self): + """Gets the url of this UpdateAnticrawlerRuleResponse. + + 规则应用的url + + :return: The url of this UpdateAnticrawlerRuleResponse. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this UpdateAnticrawlerRuleResponse. + + 规则应用的url + + :param url: The url of this UpdateAnticrawlerRuleResponse. + :type: str + """ + self._url = url + + @property + def logic(self): + """Gets the logic of this UpdateAnticrawlerRuleResponse. + + 规则匹配逻辑 + + :return: The logic of this UpdateAnticrawlerRuleResponse. + :rtype: int + """ + return self._logic + + @logic.setter + def logic(self, logic): + """Sets the logic of this UpdateAnticrawlerRuleResponse. + + 规则匹配逻辑 + + :param logic: The logic of this UpdateAnticrawlerRuleResponse. + :type: int + """ + self._logic = logic + + @property + def name(self): + """Gets the name of this UpdateAnticrawlerRuleResponse. + + 规则名称 + + :return: The name of this UpdateAnticrawlerRuleResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this UpdateAnticrawlerRuleResponse. + + 规则名称 + + :param name: The name of this UpdateAnticrawlerRuleResponse. + :type: str + """ + self._name = name + + @property + def type(self): + """Gets the type of this UpdateAnticrawlerRuleResponse. + + 反爬虫类型,指定防护:anticrawler_specific_url 例外防护:anticrawler_except_url + + :return: The type of this UpdateAnticrawlerRuleResponse. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this UpdateAnticrawlerRuleResponse. + + 反爬虫类型,指定防护:anticrawler_specific_url 例外防护:anticrawler_except_url + + :param type: The type of this UpdateAnticrawlerRuleResponse. + :type: str + """ + self._type = type + + @property + def timestamp(self): + """Gets the timestamp of this UpdateAnticrawlerRuleResponse. + + 创建规则时间戳 + + :return: The timestamp of this UpdateAnticrawlerRuleResponse. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this UpdateAnticrawlerRuleResponse. + + 创建规则时间戳 + + :param timestamp: The timestamp of this UpdateAnticrawlerRuleResponse. + :type: int + """ + self._timestamp = timestamp + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateAnticrawlerRuleResponse): + 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-waf/huaweicloudsdkwaf/v1/model/update_antileakage_rule_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_antileakage_rule_request.py new file mode 100644 index 0000000000..78f5a8c965 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_antileakage_rule_request.py @@ -0,0 +1,160 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdateAntileakageRuleRequest: + + + """ + 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', + 'rule_id': 'str', + 'body': 'CreateAntiLeakageRequestBody' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'rule_id': 'rule_id', + 'body': 'body' + } + + def __init__(self, policy_id=None, rule_id=None, body=None): + """UpdateAntileakageRuleRequest - a model defined in huaweicloud sdk""" + + + + self._policy_id = None + self._rule_id = None + self._body = None + self.discriminator = None + + self.policy_id = policy_id + self.rule_id = rule_id + if body is not None: + self.body = body + + @property + def policy_id(self): + """Gets the policy_id of this UpdateAntileakageRuleRequest. + + policyid + + :return: The policy_id of this UpdateAntileakageRuleRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this UpdateAntileakageRuleRequest. + + policyid + + :param policy_id: The policy_id of this UpdateAntileakageRuleRequest. + :type: str + """ + self._policy_id = policy_id + + @property + def rule_id(self): + """Gets the rule_id of this UpdateAntileakageRuleRequest. + + antileakageRuleId + + :return: The rule_id of this UpdateAntileakageRuleRequest. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this UpdateAntileakageRuleRequest. + + antileakageRuleId + + :param rule_id: The rule_id of this UpdateAntileakageRuleRequest. + :type: str + """ + self._rule_id = rule_id + + @property + def body(self): + """Gets the body of this UpdateAntileakageRuleRequest. + + + :return: The body of this UpdateAntileakageRuleRequest. + :rtype: CreateAntiLeakageRequestBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateAntileakageRuleRequest. + + + :param body: The body of this UpdateAntileakageRuleRequest. + :type: CreateAntiLeakageRequestBody + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateAntileakageRuleRequest): + 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-waf/huaweicloudsdkwaf/v1/model/update_antileakage_rule_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_antileakage_rule_response.py new file mode 100644 index 0000000000..4138fb24ff --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_antileakage_rule_response.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class UpdateAntileakageRuleResponse(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 = { + 'url': 'str', + 'category': 'str', + 'contents': 'list[str]', + 'description': 'str' + } + + attribute_map = { + 'url': 'url', + 'category': 'category', + 'contents': 'contents', + 'description': 'description' + } + + def __init__(self, url=None, category=None, contents=None, description=None): + """UpdateAntileakageRuleResponse - a model defined in huaweicloud sdk""" + + super(UpdateAntileakageRuleResponse, self).__init__() + + self._url = None + self._category = None + self._contents = None + self._description = None + self.discriminator = None + + if url is not None: + self.url = url + if category is not None: + self.category = category + if contents is not None: + self.contents = contents + if description is not None: + self.description = description + + @property + def url(self): + """Gets the url of this UpdateAntileakageRuleResponse. + + 规则应用的url + + :return: The url of this UpdateAntileakageRuleResponse. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this UpdateAntileakageRuleResponse. + + 规则应用的url + + :param url: The url of this UpdateAntileakageRuleResponse. + :type: str + """ + self._url = url + + @property + def category(self): + """Gets the category of this UpdateAntileakageRuleResponse. + + 类别(响应码:code,敏感信息:sensitive) + + :return: The category of this UpdateAntileakageRuleResponse. + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this UpdateAntileakageRuleResponse. + + 类别(响应码:code,敏感信息:sensitive) + + :param category: The category of this UpdateAntileakageRuleResponse. + :type: str + """ + self._category = category + + @property + def contents(self): + """Gets the contents of this UpdateAntileakageRuleResponse. + + 规则内容(http状态码、手机:phone、身份证号:id_card、邮箱:email) + + :return: The contents of this UpdateAntileakageRuleResponse. + :rtype: list[str] + """ + return self._contents + + @contents.setter + def contents(self, contents): + """Sets the contents of this UpdateAntileakageRuleResponse. + + 规则内容(http状态码、手机:phone、身份证号:id_card、邮箱:email) + + :param contents: The contents of this UpdateAntileakageRuleResponse. + :type: list[str] + """ + self._contents = contents + + @property + def description(self): + """Gets the description of this UpdateAntileakageRuleResponse. + + 规则描述 + + :return: The description of this UpdateAntileakageRuleResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UpdateAntileakageRuleResponse. + + 规则描述 + + :param description: The description of this UpdateAntileakageRuleResponse. + :type: 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateAntileakageRuleResponse): + 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-waf/huaweicloudsdkwaf/v1/model/update_cc_rule_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_cc_rule_request.py new file mode 100644 index 0000000000..1e86f77e92 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_cc_rule_request.py @@ -0,0 +1,160 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdateCcRuleRequest: + + + """ + 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', + 'rule_id': 'str', + 'body': 'CreateCcRuleRequestBody' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'rule_id': 'rule_id', + 'body': 'body' + } + + def __init__(self, policy_id=None, rule_id=None, body=None): + """UpdateCcRuleRequest - a model defined in huaweicloud sdk""" + + + + self._policy_id = None + self._rule_id = None + self._body = None + self.discriminator = None + + self.policy_id = policy_id + self.rule_id = rule_id + if body is not None: + self.body = body + + @property + def policy_id(self): + """Gets the policy_id of this UpdateCcRuleRequest. + + policyid + + :return: The policy_id of this UpdateCcRuleRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this UpdateCcRuleRequest. + + policyid + + :param policy_id: The policy_id of this UpdateCcRuleRequest. + :type: str + """ + self._policy_id = policy_id + + @property + def rule_id(self): + """Gets the rule_id of this UpdateCcRuleRequest. + + ccRuleId + + :return: The rule_id of this UpdateCcRuleRequest. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this UpdateCcRuleRequest. + + ccRuleId + + :param rule_id: The rule_id of this UpdateCcRuleRequest. + :type: str + """ + self._rule_id = rule_id + + @property + def body(self): + """Gets the body of this UpdateCcRuleRequest. + + + :return: The body of this UpdateCcRuleRequest. + :rtype: CreateCcRuleRequestBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateCcRuleRequest. + + + :param body: The body of this UpdateCcRuleRequest. + :type: CreateCcRuleRequestBody + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateCcRuleRequest): + 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-waf/huaweicloudsdkwaf/v1/model/update_cc_rule_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_cc_rule_response.py new file mode 100644 index 0000000000..05f52390f8 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_cc_rule_response.py @@ -0,0 +1,324 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class UpdateCcRuleResponse(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', + 'url': 'str', + 'limit_num': 'int', + 'limit_period': 'int', + 'lock_time': 'int', + 'tag_type': 'str', + 'tag_index': 'str', + 'action': 'CcrulesListInfoAction', + 'timestamp': 'int' + } + + attribute_map = { + 'id': 'id', + 'url': 'url', + 'limit_num': 'limit_num', + 'limit_period': 'limit_period', + 'lock_time': 'lock_time', + 'tag_type': 'tag_type', + 'tag_index': 'tag_index', + 'action': 'action', + 'timestamp': 'timestamp' + } + + def __init__(self, id=None, url=None, limit_num=None, limit_period=None, lock_time=None, tag_type=None, tag_index=None, action=None, timestamp=None): + """UpdateCcRuleResponse - a model defined in huaweicloud sdk""" + + super(UpdateCcRuleResponse, self).__init__() + + self._id = 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._action = None + self._timestamp = None + self.discriminator = None + + if id is not None: + self.id = id + 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 action is not None: + self.action = action + if timestamp is not None: + self.timestamp = timestamp + + @property + def id(self): + """Gets the id of this UpdateCcRuleResponse. + + cc规则id + + :return: The id of this UpdateCcRuleResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this UpdateCcRuleResponse. + + cc规则id + + :param id: The id of this UpdateCcRuleResponse. + :type: str + """ + self._id = id + + @property + def url(self): + """Gets the url of this UpdateCcRuleResponse. + + 规则应用的url链接 + + :return: The url of this UpdateCcRuleResponse. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this UpdateCcRuleResponse. + + 规则应用的url链接 + + :param url: The url of this UpdateCcRuleResponse. + :type: str + """ + self._url = url + + @property + def limit_num(self): + """Gets the limit_num of this UpdateCcRuleResponse. + + 单个用户的周期内请求次数 + + :return: The limit_num of this UpdateCcRuleResponse. + :rtype: int + """ + return self._limit_num + + @limit_num.setter + def limit_num(self, limit_num): + """Sets the limit_num of this UpdateCcRuleResponse. + + 单个用户的周期内请求次数 + + :param limit_num: The limit_num of this UpdateCcRuleResponse. + :type: int + """ + self._limit_num = limit_num + + @property + def limit_period(self): + """Gets the limit_period of this UpdateCcRuleResponse. + + 限速周期 + + :return: The limit_period of this UpdateCcRuleResponse. + :rtype: int + """ + return self._limit_period + + @limit_period.setter + def limit_period(self, limit_period): + """Sets the limit_period of this UpdateCcRuleResponse. + + 限速周期 + + :param limit_period: The limit_period of this UpdateCcRuleResponse. + :type: int + """ + self._limit_period = limit_period + + @property + def lock_time(self): + """Gets the lock_time of this UpdateCcRuleResponse. + + 锁定时长 + + :return: The lock_time of this UpdateCcRuleResponse. + :rtype: int + """ + return self._lock_time + + @lock_time.setter + def lock_time(self, lock_time): + """Sets the lock_time of this UpdateCcRuleResponse. + + 锁定时长 + + :param lock_time: The lock_time of this UpdateCcRuleResponse. + :type: int + """ + self._lock_time = lock_time + + @property + def tag_type(self): + """Gets the tag_type of this UpdateCcRuleResponse. + + 防护模式 + + :return: The tag_type of this UpdateCcRuleResponse. + :rtype: str + """ + return self._tag_type + + @tag_type.setter + def tag_type(self, tag_type): + """Sets the tag_type of this UpdateCcRuleResponse. + + 防护模式 + + :param tag_type: The tag_type of this UpdateCcRuleResponse. + :type: str + """ + self._tag_type = tag_type + + @property + def tag_index(self): + """Gets the tag_index of this UpdateCcRuleResponse. + + 防护模式标签 + + :return: The tag_index of this UpdateCcRuleResponse. + :rtype: str + """ + return self._tag_index + + @tag_index.setter + def tag_index(self, tag_index): + """Sets the tag_index of this UpdateCcRuleResponse. + + 防护模式标签 + + :param tag_index: The tag_index of this UpdateCcRuleResponse. + :type: str + """ + self._tag_index = tag_index + + @property + def action(self): + """Gets the action of this UpdateCcRuleResponse. + + + :return: The action of this UpdateCcRuleResponse. + :rtype: CcrulesListInfoAction + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this UpdateCcRuleResponse. + + + :param action: The action of this UpdateCcRuleResponse. + :type: CcrulesListInfoAction + """ + self._action = action + + @property + def timestamp(self): + """Gets the timestamp of this UpdateCcRuleResponse. + + 创建规则时间戳 + + :return: The timestamp of this UpdateCcRuleResponse. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this UpdateCcRuleResponse. + + 创建规则时间戳 + + :param timestamp: The timestamp of this UpdateCcRuleResponse. + :type: int + """ + self._timestamp = timestamp + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateCcRuleResponse): + 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-waf/huaweicloudsdkwaf/v1/model/update_certificate_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_certificate_request.py new file mode 100644 index 0000000000..39040ce55e --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_certificate_request.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdateCertificateRequest: + + + """ + 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 = { + 'certificate_id': 'str', + 'body': 'UpdateCertificateRequestBody' + } + + attribute_map = { + 'certificate_id': 'certificate_id', + 'body': 'body' + } + + def __init__(self, certificate_id=None, body=None): + """UpdateCertificateRequest - a model defined in huaweicloud sdk""" + + + + self._certificate_id = None + self._body = None + self.discriminator = None + + self.certificate_id = certificate_id + if body is not None: + self.body = body + + @property + def certificate_id(self): + """Gets the certificate_id of this UpdateCertificateRequest. + + 证书ID + + :return: The certificate_id of this UpdateCertificateRequest. + :rtype: str + """ + return self._certificate_id + + @certificate_id.setter + def certificate_id(self, certificate_id): + """Sets the certificate_id of this UpdateCertificateRequest. + + 证书ID + + :param certificate_id: The certificate_id of this UpdateCertificateRequest. + :type: str + """ + self._certificate_id = certificate_id + + @property + def body(self): + """Gets the body of this UpdateCertificateRequest. + + + :return: The body of this UpdateCertificateRequest. + :rtype: UpdateCertificateRequestBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateCertificateRequest. + + + :param body: The body of this UpdateCertificateRequest. + :type: UpdateCertificateRequestBody + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateCertificateRequest): + 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-waf/huaweicloudsdkwaf/v1/model/update_certificate_request_body.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_certificate_request_body.py new file mode 100644 index 0000000000..d208929d86 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_certificate_request_body.py @@ -0,0 +1,164 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdateCertificateRequestBody: + + + """ + 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', + 'content': 'str', + 'key': 'str' + } + + attribute_map = { + 'name': 'name', + 'content': 'content', + 'key': 'key' + } + + def __init__(self, name=None, content=None, key=None): + """UpdateCertificateRequestBody - a model defined in huaweicloud sdk""" + + + + self._name = None + self._content = None + self._key = None + self.discriminator = None + + if name is not None: + self.name = name + if content is not None: + self.content = content + if key is not None: + self.key = key + + @property + def name(self): + """Gets the name of this UpdateCertificateRequestBody. + + 证书名 + + :return: The name of this UpdateCertificateRequestBody. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this UpdateCertificateRequestBody. + + 证书名 + + :param name: The name of this UpdateCertificateRequestBody. + :type: str + """ + self._name = name + + @property + def content(self): + """Gets the content of this UpdateCertificateRequestBody. + + 证书文件,PEM编码 + + :return: The content of this UpdateCertificateRequestBody. + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this UpdateCertificateRequestBody. + + 证书文件,PEM编码 + + :param content: The content of this UpdateCertificateRequestBody. + :type: str + """ + self._content = content + + @property + def key(self): + """Gets the key of this UpdateCertificateRequestBody. + + 证书私钥,PEM编码 + + :return: The key of this UpdateCertificateRequestBody. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this UpdateCertificateRequestBody. + + 证书私钥,PEM编码 + + :param key: The key of this UpdateCertificateRequestBody. + :type: str + """ + self._key = key + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateCertificateRequestBody): + 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-waf/huaweicloudsdkwaf/v1/model/update_certificate_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_certificate_response.py new file mode 100644 index 0000000000..31e81de036 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_certificate_response.py @@ -0,0 +1,299 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class UpdateCertificateResponse(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', + 'name': 'str', + 'content': 'str', + 'key': 'str', + 'expire_time': 'int', + 'exp_status': 'int', + 'timestamp': 'int', + 'bind_host': 'list[BindHost]' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'content': 'content', + 'key': 'key', + 'expire_time': 'expire_time', + 'exp_status': 'exp_status', + 'timestamp': 'timestamp', + 'bind_host': 'bind_host' + } + + def __init__(self, id=None, name=None, content=None, key=None, expire_time=None, exp_status=None, timestamp=None, bind_host=None): + """UpdateCertificateResponse - a model defined in huaweicloud sdk""" + + super(UpdateCertificateResponse, self).__init__() + + self._id = None + self._name = None + self._content = None + self._key = None + self._expire_time = None + self._exp_status = None + self._timestamp = None + self._bind_host = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if content is not None: + self.content = content + if key is not None: + self.key = key + if expire_time is not None: + self.expire_time = expire_time + if exp_status is not None: + self.exp_status = exp_status + if timestamp is not None: + self.timestamp = timestamp + if bind_host is not None: + self.bind_host = bind_host + + @property + def id(self): + """Gets the id of this UpdateCertificateResponse. + + 证书ID + + :return: The id of this UpdateCertificateResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this UpdateCertificateResponse. + + 证书ID + + :param id: The id of this UpdateCertificateResponse. + :type: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this UpdateCertificateResponse. + + 证书名 + + :return: The name of this UpdateCertificateResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this UpdateCertificateResponse. + + 证书名 + + :param name: The name of this UpdateCertificateResponse. + :type: str + """ + self._name = name + + @property + def content(self): + """Gets the content of this UpdateCertificateResponse. + + 证书文件,PEM编码 + + :return: The content of this UpdateCertificateResponse. + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this UpdateCertificateResponse. + + 证书文件,PEM编码 + + :param content: The content of this UpdateCertificateResponse. + :type: str + """ + self._content = content + + @property + def key(self): + """Gets the key of this UpdateCertificateResponse. + + 证书私钥,PEM编码 + + :return: The key of this UpdateCertificateResponse. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this UpdateCertificateResponse. + + 证书私钥,PEM编码 + + :param key: The key of this UpdateCertificateResponse. + :type: str + """ + self._key = key + + @property + def expire_time(self): + """Gets the expire_time of this UpdateCertificateResponse. + + 证书过期时间戳 + + :return: The expire_time of this UpdateCertificateResponse. + :rtype: int + """ + return self._expire_time + + @expire_time.setter + def expire_time(self, expire_time): + """Sets the expire_time of this UpdateCertificateResponse. + + 证书过期时间戳 + + :param expire_time: The expire_time of this UpdateCertificateResponse. + :type: int + """ + self._expire_time = expire_time + + @property + def exp_status(self): + """Gets the exp_status of this UpdateCertificateResponse. + + 证书过期状态,0-未过期,1-已过期,2-即将过期 + + :return: The exp_status of this UpdateCertificateResponse. + :rtype: int + """ + return self._exp_status + + @exp_status.setter + def exp_status(self, exp_status): + """Sets the exp_status of this UpdateCertificateResponse. + + 证书过期状态,0-未过期,1-已过期,2-即将过期 + + :param exp_status: The exp_status of this UpdateCertificateResponse. + :type: int + """ + self._exp_status = exp_status + + @property + def timestamp(self): + """Gets the timestamp of this UpdateCertificateResponse. + + 证书上传时间戳 + + :return: The timestamp of this UpdateCertificateResponse. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this UpdateCertificateResponse. + + 证书上传时间戳 + + :param timestamp: The timestamp of this UpdateCertificateResponse. + :type: int + """ + self._timestamp = timestamp + + @property + def bind_host(self): + """Gets the bind_host of this UpdateCertificateResponse. + + 证书关联的域名信息 + + :return: The bind_host of this UpdateCertificateResponse. + :rtype: list[BindHost] + """ + return self._bind_host + + @bind_host.setter + def bind_host(self, bind_host): + """Sets the bind_host of this UpdateCertificateResponse. + + 证书关联的域名信息 + + :param bind_host: The bind_host of this UpdateCertificateResponse. + :type: list[BindHost] + """ + self._bind_host = bind_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateCertificateResponse): + 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-waf/huaweicloudsdkwaf/v1/model/update_custom_rule_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_custom_rule_request.py new file mode 100644 index 0000000000..a9f5fd9c5d --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_custom_rule_request.py @@ -0,0 +1,160 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdateCustomRuleRequest: + + + """ + 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', + 'rule_id': 'str', + 'body': 'CustomPostBody' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'rule_id': 'rule_id', + 'body': 'body' + } + + def __init__(self, policy_id=None, rule_id=None, body=None): + """UpdateCustomRuleRequest - a model defined in huaweicloud sdk""" + + + + self._policy_id = None + self._rule_id = None + self._body = None + self.discriminator = None + + self.policy_id = policy_id + self.rule_id = rule_id + if body is not None: + self.body = body + + @property + def policy_id(self): + """Gets the policy_id of this UpdateCustomRuleRequest. + + policyid + + :return: The policy_id of this UpdateCustomRuleRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this UpdateCustomRuleRequest. + + policyid + + :param policy_id: The policy_id of this UpdateCustomRuleRequest. + :type: str + """ + self._policy_id = policy_id + + @property + def rule_id(self): + """Gets the rule_id of this UpdateCustomRuleRequest. + + customRuleId + + :return: The rule_id of this UpdateCustomRuleRequest. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this UpdateCustomRuleRequest. + + customRuleId + + :param rule_id: The rule_id of this UpdateCustomRuleRequest. + :type: str + """ + self._rule_id = rule_id + + @property + def body(self): + """Gets the body of this UpdateCustomRuleRequest. + + + :return: The body of this UpdateCustomRuleRequest. + :rtype: CustomPostBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateCustomRuleRequest. + + + :param body: The body of this UpdateCustomRuleRequest. + :type: CustomPostBody + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateCustomRuleRequest): + 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-waf/huaweicloudsdkwaf/v1/model/update_custom_rule_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_custom_rule_response.py new file mode 100644 index 0000000000..2b3e9e543b --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_custom_rule_response.py @@ -0,0 +1,351 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class UpdateCustomRuleResponse(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', + 'policyid': 'str', + 'action_mode': 'bool', + 'name': 'str', + 'time': 'bool', + 'start': 'int', + 'terminal': 'int', + 'conditions': 'list[CustomConditions]', + 'action': 'CustomAction', + 'priority': 'int' + } + + attribute_map = { + 'id': 'id', + 'policyid': 'policyid', + 'action_mode': 'action_mode', + 'name': 'name', + 'time': 'time', + 'start': 'start', + 'terminal': 'terminal', + 'conditions': 'conditions', + 'action': 'action', + 'priority': 'priority' + } + + def __init__(self, id=None, policyid=None, action_mode=None, name=None, time=None, start=None, terminal=None, conditions=None, action=None, priority=None): + """UpdateCustomRuleResponse - a model defined in huaweicloud sdk""" + + super(UpdateCustomRuleResponse, self).__init__() + + self._id = None + self._policyid = None + self._action_mode = None + self._name = None + self._time = None + self._start = None + self._terminal = None + self._conditions = None + self._action = None + self._priority = None + self.discriminator = None + + if id is not None: + self.id = id + if policyid is not None: + self.policyid = policyid + if action_mode is not None: + self.action_mode = action_mode + if name is not None: + self.name = name + if time is not None: + self.time = time + if start is not None: + self.start = start + if terminal is not None: + self.terminal = terminal + if conditions is not None: + self.conditions = conditions + if action is not None: + self.action = action + if priority is not None: + self.priority = priority + + @property + def id(self): + """Gets the id of this UpdateCustomRuleResponse. + + 规则id + + :return: The id of this UpdateCustomRuleResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this UpdateCustomRuleResponse. + + 规则id + + :param id: The id of this UpdateCustomRuleResponse. + :type: str + """ + self._id = id + + @property + def policyid(self): + """Gets the policyid of this UpdateCustomRuleResponse. + + 策略id + + :return: The policyid of this UpdateCustomRuleResponse. + :rtype: str + """ + return self._policyid + + @policyid.setter + def policyid(self, policyid): + """Sets the policyid of this UpdateCustomRuleResponse. + + 策略id + + :param policyid: The policyid of this UpdateCustomRuleResponse. + :type: str + """ + self._policyid = policyid + + @property + def action_mode(self): + """Gets the action_mode of this UpdateCustomRuleResponse. + + 攻击惩罚 + + :return: The action_mode of this UpdateCustomRuleResponse. + :rtype: bool + """ + return self._action_mode + + @action_mode.setter + def action_mode(self, action_mode): + """Sets the action_mode of this UpdateCustomRuleResponse. + + 攻击惩罚 + + :param action_mode: The action_mode of this UpdateCustomRuleResponse. + :type: bool + """ + self._action_mode = action_mode + + @property + def name(self): + """Gets the name of this UpdateCustomRuleResponse. + + 自定义规则的名称 + + :return: The name of this UpdateCustomRuleResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this UpdateCustomRuleResponse. + + 自定义规则的名称 + + :param name: The name of this UpdateCustomRuleResponse. + :type: str + """ + self._name = name + + @property + def time(self): + """Gets the time of this UpdateCustomRuleResponse. + + 精准防护规则生效时间 + + :return: The time of this UpdateCustomRuleResponse. + :rtype: bool + """ + return self._time + + @time.setter + def time(self, time): + """Sets the time of this UpdateCustomRuleResponse. + + 精准防护规则生效时间 + + :param time: The time of this UpdateCustomRuleResponse. + :type: bool + """ + self._time = time + + @property + def start(self): + """Gets the start of this UpdateCustomRuleResponse. + + 精准防护规则生效的起始时间 + + :return: The start of this UpdateCustomRuleResponse. + :rtype: int + """ + return self._start + + @start.setter + def start(self, start): + """Sets the start of this UpdateCustomRuleResponse. + + 精准防护规则生效的起始时间 + + :param start: The start of this UpdateCustomRuleResponse. + :type: int + """ + self._start = start + + @property + def terminal(self): + """Gets the terminal of this UpdateCustomRuleResponse. + + 精准防护规则生效的终止时间 + + :return: The terminal of this UpdateCustomRuleResponse. + :rtype: int + """ + return self._terminal + + @terminal.setter + def terminal(self, terminal): + """Sets the terminal of this UpdateCustomRuleResponse. + + 精准防护规则生效的终止时间 + + :param terminal: The terminal of this UpdateCustomRuleResponse. + :type: int + """ + self._terminal = terminal + + @property + def conditions(self): + """Gets the conditions of this UpdateCustomRuleResponse. + + 匹配条件列表 + + :return: The conditions of this UpdateCustomRuleResponse. + :rtype: list[CustomConditions] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """Sets the conditions of this UpdateCustomRuleResponse. + + 匹配条件列表 + + :param conditions: The conditions of this UpdateCustomRuleResponse. + :type: list[CustomConditions] + """ + self._conditions = conditions + + @property + def action(self): + """Gets the action of this UpdateCustomRuleResponse. + + + :return: The action of this UpdateCustomRuleResponse. + :rtype: CustomAction + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this UpdateCustomRuleResponse. + + + :param action: The action of this UpdateCustomRuleResponse. + :type: CustomAction + """ + self._action = action + + @property + def priority(self): + """Gets the priority of this UpdateCustomRuleResponse. + + 优先级(0-1000的整数) + + :return: The priority of this UpdateCustomRuleResponse. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this UpdateCustomRuleResponse. + + 优先级(0-1000的整数) + + :param priority: The priority of this UpdateCustomRuleResponse. + :type: int + """ + self._priority = priority + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateCustomRuleResponse): + 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-waf/huaweicloudsdkwaf/v1/model/update_geoip_rule_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_geoip_rule_request.py new file mode 100644 index 0000000000..7f631b6626 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_geoip_rule_request.py @@ -0,0 +1,160 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdateGeoipRuleRequest: + + + """ + 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', + 'rule_id': 'str', + 'body': 'GeoIpBody' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'rule_id': 'rule_id', + 'body': 'body' + } + + def __init__(self, policy_id=None, rule_id=None, body=None): + """UpdateGeoipRuleRequest - a model defined in huaweicloud sdk""" + + + + self._policy_id = None + self._rule_id = None + self._body = None + self.discriminator = None + + self.policy_id = policy_id + self.rule_id = rule_id + if body is not None: + self.body = body + + @property + def policy_id(self): + """Gets the policy_id of this UpdateGeoipRuleRequest. + + policyid + + :return: The policy_id of this UpdateGeoipRuleRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this UpdateGeoipRuleRequest. + + policyid + + :param policy_id: The policy_id of this UpdateGeoipRuleRequest. + :type: str + """ + self._policy_id = policy_id + + @property + def rule_id(self): + """Gets the rule_id of this UpdateGeoipRuleRequest. + + geoipRuleId + + :return: The rule_id of this UpdateGeoipRuleRequest. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this UpdateGeoipRuleRequest. + + geoipRuleId + + :param rule_id: The rule_id of this UpdateGeoipRuleRequest. + :type: str + """ + self._rule_id = rule_id + + @property + def body(self): + """Gets the body of this UpdateGeoipRuleRequest. + + + :return: The body of this UpdateGeoipRuleRequest. + :rtype: GeoIpBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateGeoipRuleRequest. + + + :param body: The body of this UpdateGeoipRuleRequest. + :type: GeoIpBody + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateGeoipRuleRequest): + 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-waf/huaweicloudsdkwaf/v1/model/update_geoip_rule_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_geoip_rule_response.py new file mode 100644 index 0000000000..62c9cdb0d3 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_geoip_rule_response.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class UpdateGeoipRuleResponse(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', + 'geoip': 'str', + 'white': 'int', + 'timestamp': 'int' + } + + attribute_map = { + 'id': 'id', + 'geoip': 'geoip', + 'white': 'white', + 'timestamp': 'timestamp' + } + + def __init__(self, id=None, geoip=None, white=None, timestamp=None): + """UpdateGeoipRuleResponse - a model defined in huaweicloud sdk""" + + super(UpdateGeoipRuleResponse, self).__init__() + + self._id = None + self._geoip = None + self._white = None + self._timestamp = None + self.discriminator = None + + if id is not None: + self.id = id + if geoip is not None: + self.geoip = geoip + if white is not None: + self.white = white + if timestamp is not None: + self.timestamp = timestamp + + @property + def id(self): + """Gets the id of this UpdateGeoipRuleResponse. + + 规则id + + :return: The id of this UpdateGeoipRuleResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this UpdateGeoipRuleResponse. + + 规则id + + :param id: The id of this UpdateGeoipRuleResponse. + :type: str + """ + self._id = id + + @property + def geoip(self): + """Gets the geoip of this UpdateGeoipRuleResponse. + + 地理位置封禁区域 + + :return: The geoip of this UpdateGeoipRuleResponse. + :rtype: str + """ + return self._geoip + + @geoip.setter + def geoip(self, geoip): + """Sets the geoip of this UpdateGeoipRuleResponse. + + 地理位置封禁区域 + + :param geoip: The geoip of this UpdateGeoipRuleResponse. + :type: str + """ + self._geoip = geoip + + @property + def white(self): + """Gets the white of this UpdateGeoipRuleResponse. + + 放行或者拦截 + + :return: The white of this UpdateGeoipRuleResponse. + :rtype: int + """ + return self._white + + @white.setter + def white(self, white): + """Sets the white of this UpdateGeoipRuleResponse. + + 放行或者拦截 + + :param white: The white of this UpdateGeoipRuleResponse. + :type: int + """ + self._white = white + + @property + def timestamp(self): + """Gets the timestamp of this UpdateGeoipRuleResponse. + + 创建规则时间戳 + + :return: The timestamp of this UpdateGeoipRuleResponse. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this UpdateGeoipRuleResponse. + + 创建规则时间戳 + + :param timestamp: The timestamp of this UpdateGeoipRuleResponse. + :type: int + """ + self._timestamp = timestamp + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateGeoipRuleResponse): + 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-waf/huaweicloudsdkwaf/v1/model/update_instance_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_instance_request.py new file mode 100644 index 0000000000..6b84b98fd0 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_instance_request.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdateInstanceRequest: + + + """ + 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': 'UpdateInstanceRequestBody' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """UpdateInstanceRequest - a model defined in huaweicloud sdk""" + + + + 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 UpdateInstanceRequest. + + 域名Id + + :return: The instance_id of this UpdateInstanceRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UpdateInstanceRequest. + + 域名Id + + :param instance_id: The instance_id of this UpdateInstanceRequest. + :type: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this UpdateInstanceRequest. + + + :return: The body of this UpdateInstanceRequest. + :rtype: UpdateInstanceRequestBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateInstanceRequest. + + + :param body: The body of this UpdateInstanceRequest. + :type: UpdateInstanceRequestBody + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateInstanceRequest): + 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-waf/huaweicloudsdkwaf/v1/model/update_instance_request_body.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_instance_request_body.py new file mode 100644 index 0000000000..36753a768a --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_instance_request_body.py @@ -0,0 +1,349 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdateInstanceRequestBody: + + + """ + 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 = { + 'proxy': 'bool', + 'certificateid': 'str', + 'certificatename': 'str', + 'server': 'list[PremiumWafServer]', + 'tls': 'str', + 'cipher': 'str', + 'block_page': 'BlockPage', + 'traffic_mark': 'TrafficMark', + 'flag': 'dict(str, str)', + 'extend': 'dict(str, str)' + } + + attribute_map = { + 'proxy': 'proxy', + 'certificateid': 'certificateid', + 'certificatename': 'certificatename', + 'server': 'server', + 'tls': 'tls', + 'cipher': 'cipher', + 'block_page': 'block_page', + 'traffic_mark': 'traffic_mark', + 'flag': 'flag', + 'extend': 'extend' + } + + def __init__(self, proxy=None, certificateid=None, certificatename=None, server=None, tls=None, cipher=None, block_page=None, traffic_mark=None, flag=None, extend=None): + """UpdateInstanceRequestBody - a model defined in huaweicloud sdk""" + + + + self._proxy = None + self._certificateid = None + self._certificatename = None + self._server = None + self._tls = None + self._cipher = None + self._block_page = None + self._traffic_mark = None + self._flag = None + self._extend = None + self.discriminator = None + + if proxy is not None: + self.proxy = proxy + if certificateid is not None: + self.certificateid = certificateid + if certificatename is not None: + self.certificatename = certificatename + if server is not None: + self.server = server + if tls is not None: + self.tls = tls + if cipher is not None: + self.cipher = cipher + if block_page is not None: + self.block_page = block_page + if traffic_mark is not None: + self.traffic_mark = traffic_mark + if flag is not None: + self.flag = flag + if extend is not None: + self.extend = extend + + @property + def proxy(self): + """Gets the proxy of this UpdateInstanceRequestBody. + + 是否使用代理 + + :return: The proxy of this UpdateInstanceRequestBody. + :rtype: bool + """ + return self._proxy + + @proxy.setter + def proxy(self, proxy): + """Sets the proxy of this UpdateInstanceRequestBody. + + 是否使用代理 + + :param proxy: The proxy of this UpdateInstanceRequestBody. + :type: bool + """ + self._proxy = proxy + + @property + def certificateid(self): + """Gets the certificateid of this UpdateInstanceRequestBody. + + 证书ID + + :return: The certificateid of this UpdateInstanceRequestBody. + :rtype: str + """ + return self._certificateid + + @certificateid.setter + def certificateid(self, certificateid): + """Sets the certificateid of this UpdateInstanceRequestBody. + + 证书ID + + :param certificateid: The certificateid of this UpdateInstanceRequestBody. + :type: str + """ + self._certificateid = certificateid + + @property + def certificatename(self): + """Gets the certificatename of this UpdateInstanceRequestBody. + + 证书名称 + + :return: The certificatename of this UpdateInstanceRequestBody. + :rtype: str + """ + return self._certificatename + + @certificatename.setter + def certificatename(self, certificatename): + """Sets the certificatename of this UpdateInstanceRequestBody. + + 证书名称 + + :param certificatename: The certificatename of this UpdateInstanceRequestBody. + :type: str + """ + self._certificatename = certificatename + + @property + def server(self): + """Gets the server of this UpdateInstanceRequestBody. + + 独享模式回源服务器配置 + + :return: The server of this UpdateInstanceRequestBody. + :rtype: list[PremiumWafServer] + """ + return self._server + + @server.setter + def server(self, server): + """Sets the server of this UpdateInstanceRequestBody. + + 独享模式回源服务器配置 + + :param server: The server of this UpdateInstanceRequestBody. + :type: list[PremiumWafServer] + """ + self._server = server + + @property + def tls(self): + """Gets the tls of this UpdateInstanceRequestBody. + + 支持最低的TLS版本(TLS v1.0/TLS v1.1/TLS v1.2) + + :return: The tls of this UpdateInstanceRequestBody. + :rtype: str + """ + return self._tls + + @tls.setter + def tls(self, tls): + """Sets the tls of this UpdateInstanceRequestBody. + + 支持最低的TLS版本(TLS v1.0/TLS v1.1/TLS v1.2) + + :param tls: The tls of this UpdateInstanceRequestBody. + :type: str + """ + self._tls = tls + + @property + def cipher(self): + """Gets the cipher of this UpdateInstanceRequestBody. + + 加密套件代码(cipher_default/cipher_1/cipher_2) + + :return: The cipher of this UpdateInstanceRequestBody. + :rtype: str + """ + return self._cipher + + @cipher.setter + def cipher(self, cipher): + """Sets the cipher of this UpdateInstanceRequestBody. + + 加密套件代码(cipher_default/cipher_1/cipher_2) + + :param cipher: The cipher of this UpdateInstanceRequestBody. + :type: str + """ + self._cipher = cipher + + @property + def block_page(self): + """Gets the block_page of this UpdateInstanceRequestBody. + + + :return: The block_page of this UpdateInstanceRequestBody. + :rtype: BlockPage + """ + return self._block_page + + @block_page.setter + def block_page(self, block_page): + """Sets the block_page of this UpdateInstanceRequestBody. + + + :param block_page: The block_page of this UpdateInstanceRequestBody. + :type: BlockPage + """ + self._block_page = block_page + + @property + def traffic_mark(self): + """Gets the traffic_mark of this UpdateInstanceRequestBody. + + + :return: The traffic_mark of this UpdateInstanceRequestBody. + :rtype: TrafficMark + """ + return self._traffic_mark + + @traffic_mark.setter + def traffic_mark(self, traffic_mark): + """Sets the traffic_mark of this UpdateInstanceRequestBody. + + + :param traffic_mark: The traffic_mark of this UpdateInstanceRequestBody. + :type: TrafficMark + """ + self._traffic_mark = traffic_mark + + @property + def flag(self): + """Gets the flag of this UpdateInstanceRequestBody. + + 域名特殊标识 + + :return: The flag of this UpdateInstanceRequestBody. + :rtype: dict(str, str) + """ + return self._flag + + @flag.setter + def flag(self, flag): + """Sets the flag of this UpdateInstanceRequestBody. + + 域名特殊标识 + + :param flag: The flag of this UpdateInstanceRequestBody. + :type: dict(str, str) + """ + self._flag = flag + + @property + def extend(self): + """Gets the extend of this UpdateInstanceRequestBody. + + 可扩展字段 + + :return: The extend of this UpdateInstanceRequestBody. + :rtype: dict(str, str) + """ + return self._extend + + @extend.setter + def extend(self, extend): + """Sets the extend of this UpdateInstanceRequestBody. + + 可扩展字段 + + :param extend: The extend of this UpdateInstanceRequestBody. + :type: dict(str, str) + """ + self._extend = extend + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateInstanceRequestBody): + 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-waf/huaweicloudsdkwaf/v1/model/update_instance_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_instance_response.py new file mode 100644 index 0000000000..bf7b6160ed --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_instance_response.py @@ -0,0 +1,407 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class UpdateInstanceResponse(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', + 'hostname': 'str', + 'policyid': 'str', + 'access_code': 'str', + 'protect_status': 'int', + 'access_status': 'int', + 'protocol': 'str', + 'certificateid': 'str', + 'certificatename': 'str', + 'server': 'list[PremiumWafServer]', + 'proxy': 'bool', + 'timestamp': 'int' + } + + attribute_map = { + 'id': 'id', + 'hostname': 'hostname', + 'policyid': 'policyid', + 'access_code': 'access_code', + 'protect_status': 'protect_status', + 'access_status': 'access_status', + 'protocol': 'protocol', + 'certificateid': 'certificateid', + 'certificatename': 'certificatename', + 'server': 'server', + 'proxy': 'proxy', + 'timestamp': 'timestamp' + } + + def __init__(self, id=None, hostname=None, policyid=None, access_code=None, protect_status=None, access_status=None, protocol=None, certificateid=None, certificatename=None, server=None, proxy=None, timestamp=None): + """UpdateInstanceResponse - a model defined in huaweicloud sdk""" + + super(UpdateInstanceResponse, self).__init__() + + self._id = None + self._hostname = None + self._policyid = None + self._access_code = None + self._protect_status = None + self._access_status = None + self._protocol = None + self._certificateid = None + self._certificatename = None + self._server = None + self._proxy = None + self._timestamp = None + self.discriminator = None + + if id is not None: + self.id = id + if hostname is not None: + self.hostname = hostname + if policyid is not None: + self.policyid = policyid + if access_code is not None: + self.access_code = access_code + if protect_status is not None: + self.protect_status = protect_status + if access_status is not None: + self.access_status = access_status + if protocol is not None: + self.protocol = protocol + if certificateid is not None: + self.certificateid = certificateid + if certificatename is not None: + self.certificatename = certificatename + if server is not None: + self.server = server + if proxy is not None: + self.proxy = proxy + if timestamp is not None: + self.timestamp = timestamp + + @property + def id(self): + """Gets the id of this UpdateInstanceResponse. + + 域名id + + :return: The id of this UpdateInstanceResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this UpdateInstanceResponse. + + 域名id + + :param id: The id of this UpdateInstanceResponse. + :type: str + """ + self._id = id + + @property + def hostname(self): + """Gets the hostname of this UpdateInstanceResponse. + + 创建的云模式防护域名 + + :return: The hostname of this UpdateInstanceResponse. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """Sets the hostname of this UpdateInstanceResponse. + + 创建的云模式防护域名 + + :param hostname: The hostname of this UpdateInstanceResponse. + :type: str + """ + self._hostname = hostname + + @property + def policyid(self): + """Gets the policyid of this UpdateInstanceResponse. + + 策略id + + :return: The policyid of this UpdateInstanceResponse. + :rtype: str + """ + return self._policyid + + @policyid.setter + def policyid(self, policyid): + """Sets the policyid of this UpdateInstanceResponse. + + 策略id + + :param policyid: The policyid of this UpdateInstanceResponse. + :type: str + """ + self._policyid = policyid + + @property + def access_code(self): + """Gets the access_code of this UpdateInstanceResponse. + + cname + + :return: The access_code of this UpdateInstanceResponse. + :rtype: str + """ + return self._access_code + + @access_code.setter + def access_code(self, access_code): + """Sets the access_code of this UpdateInstanceResponse. + + cname + + :param access_code: The access_code of this UpdateInstanceResponse. + :type: str + """ + self._access_code = access_code + + @property + def protect_status(self): + """Gets the protect_status of this UpdateInstanceResponse. + + 防护状态 + + :return: The protect_status of this UpdateInstanceResponse. + :rtype: int + """ + return self._protect_status + + @protect_status.setter + def protect_status(self, protect_status): + """Sets the protect_status of this UpdateInstanceResponse. + + 防护状态 + + :param protect_status: The protect_status of this UpdateInstanceResponse. + :type: int + """ + self._protect_status = protect_status + + @property + def access_status(self): + """Gets the access_status of this UpdateInstanceResponse. + + 接入状态 + + :return: The access_status of this UpdateInstanceResponse. + :rtype: int + """ + return self._access_status + + @access_status.setter + def access_status(self, access_status): + """Sets the access_status of this UpdateInstanceResponse. + + 接入状态 + + :param access_status: The access_status of this UpdateInstanceResponse. + :type: int + """ + self._access_status = access_status + + @property + def protocol(self): + """Gets the protocol of this UpdateInstanceResponse. + + 返回的客户端协议类型 + + :return: The protocol of this UpdateInstanceResponse. + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this UpdateInstanceResponse. + + 返回的客户端协议类型 + + :param protocol: The protocol of this UpdateInstanceResponse. + :type: str + """ + self._protocol = protocol + + @property + def certificateid(self): + """Gets the certificateid of this UpdateInstanceResponse. + + 返回的证书id + + :return: The certificateid of this UpdateInstanceResponse. + :rtype: str + """ + return self._certificateid + + @certificateid.setter + def certificateid(self, certificateid): + """Sets the certificateid of this UpdateInstanceResponse. + + 返回的证书id + + :param certificateid: The certificateid of this UpdateInstanceResponse. + :type: str + """ + self._certificateid = certificateid + + @property + def certificatename(self): + """Gets the certificatename of this UpdateInstanceResponse. + + 证书名称 + + :return: The certificatename of this UpdateInstanceResponse. + :rtype: str + """ + return self._certificatename + + @certificatename.setter + def certificatename(self, certificatename): + """Sets the certificatename of this UpdateInstanceResponse. + + 证书名称 + + :param certificatename: The certificatename of this UpdateInstanceResponse. + :type: str + """ + self._certificatename = certificatename + + @property + def server(self): + """Gets the server of this UpdateInstanceResponse. + + 源站信息 + + :return: The server of this UpdateInstanceResponse. + :rtype: list[PremiumWafServer] + """ + return self._server + + @server.setter + def server(self, server): + """Sets the server of this UpdateInstanceResponse. + + 源站信息 + + :param server: The server of this UpdateInstanceResponse. + :type: list[PremiumWafServer] + """ + self._server = server + + @property + def proxy(self): + """Gets the proxy of this UpdateInstanceResponse. + + 是否开启了代理 + + :return: The proxy of this UpdateInstanceResponse. + :rtype: bool + """ + return self._proxy + + @proxy.setter + def proxy(self, proxy): + """Sets the proxy of this UpdateInstanceResponse. + + 是否开启了代理 + + :param proxy: The proxy of this UpdateInstanceResponse. + :type: bool + """ + self._proxy = proxy + + @property + def timestamp(self): + """Gets the timestamp of this UpdateInstanceResponse. + + 创建防护域名的时间 + + :return: The timestamp of this UpdateInstanceResponse. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this UpdateInstanceResponse. + + 创建防护域名的时间 + + :param timestamp: The timestamp of this UpdateInstanceResponse. + :type: int + """ + self._timestamp = timestamp + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateInstanceResponse): + 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-waf/huaweicloudsdkwaf/v1/model/update_patch_policy_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_patch_policy_request.py new file mode 100644 index 0000000000..56f43a3cf2 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_patch_policy_request.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdatePatchPolicyRequest: + + + """ + 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': 'UpdatePolicyRequestBody' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'body': 'body' + } + + def __init__(self, policy_id=None, body=None): + """UpdatePatchPolicyRequest - a model defined in huaweicloud sdk""" + + + + 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 UpdatePatchPolicyRequest. + + policyid + + :return: The policy_id of this UpdatePatchPolicyRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this UpdatePatchPolicyRequest. + + policyid + + :param policy_id: The policy_id of this UpdatePatchPolicyRequest. + :type: str + """ + self._policy_id = policy_id + + @property + def body(self): + """Gets the body of this UpdatePatchPolicyRequest. + + + :return: The body of this UpdatePatchPolicyRequest. + :rtype: UpdatePolicyRequestBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdatePatchPolicyRequest. + + + :param body: The body of this UpdatePatchPolicyRequest. + :type: UpdatePolicyRequestBody + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePatchPolicyRequest): + 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-waf/huaweicloudsdkwaf/v1/model/update_patch_policy_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_patch_policy_response.py new file mode 100644 index 0000000000..2c7de295cc --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_patch_policy_response.py @@ -0,0 +1,322 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class UpdatePatchPolicyResponse(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', + 'name': 'str', + 'action': 'PolicyAction', + 'options': 'PolicyOption', + 'level': 'int', + 'full_detection': 'bool', + 'bind_host': 'list[BindHost]', + 'timestamp': 'int', + 'extend': 'dict(str, str)' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'action': 'action', + 'options': 'options', + 'level': 'level', + 'full_detection': 'full_detection', + 'bind_host': 'bind_host', + 'timestamp': 'timestamp', + 'extend': 'extend' + } + + def __init__(self, id=None, name=None, action=None, options=None, level=None, full_detection=None, bind_host=None, timestamp=None, extend=None): + """UpdatePatchPolicyResponse - a model defined in huaweicloud sdk""" + + super(UpdatePatchPolicyResponse, self).__init__() + + self._id = None + self._name = None + self._action = None + self._options = None + self._level = None + self._full_detection = None + self._bind_host = None + self._timestamp = None + self._extend = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if action is not None: + self.action = action + if options is not None: + self.options = options + if level is not None: + self.level = level + if full_detection is not None: + self.full_detection = full_detection + if bind_host is not None: + self.bind_host = bind_host + if timestamp is not None: + self.timestamp = timestamp + if extend is not None: + self.extend = extend + + @property + def id(self): + """Gets the id of this UpdatePatchPolicyResponse. + + 防护策略id + + :return: The id of this UpdatePatchPolicyResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this UpdatePatchPolicyResponse. + + 防护策略id + + :param id: The id of this UpdatePatchPolicyResponse. + :type: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this UpdatePatchPolicyResponse. + + 防护策略名 + + :return: The name of this UpdatePatchPolicyResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this UpdatePatchPolicyResponse. + + 防护策略名 + + :param name: The name of this UpdatePatchPolicyResponse. + :type: str + """ + self._name = name + + @property + def action(self): + """Gets the action of this UpdatePatchPolicyResponse. + + + :return: The action of this UpdatePatchPolicyResponse. + :rtype: PolicyAction + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this UpdatePatchPolicyResponse. + + + :param action: The action of this UpdatePatchPolicyResponse. + :type: PolicyAction + """ + self._action = action + + @property + def options(self): + """Gets the options of this UpdatePatchPolicyResponse. + + + :return: The options of this UpdatePatchPolicyResponse. + :rtype: PolicyOption + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UpdatePatchPolicyResponse. + + + :param options: The options of this UpdatePatchPolicyResponse. + :type: PolicyOption + """ + self._options = options + + @property + def level(self): + """Gets the level of this UpdatePatchPolicyResponse. + + 防护等级 + + :return: The level of this UpdatePatchPolicyResponse. + :rtype: int + """ + return self._level + + @level.setter + def level(self, level): + """Sets the level of this UpdatePatchPolicyResponse. + + 防护等级 + + :param level: The level of this UpdatePatchPolicyResponse. + :type: int + """ + self._level = level + + @property + def full_detection(self): + """Gets the full_detection of this UpdatePatchPolicyResponse. + + 精准防护中的检测模式 + + :return: The full_detection of this UpdatePatchPolicyResponse. + :rtype: bool + """ + return self._full_detection + + @full_detection.setter + def full_detection(self, full_detection): + """Sets the full_detection of this UpdatePatchPolicyResponse. + + 精准防护中的检测模式 + + :param full_detection: The full_detection of this UpdatePatchPolicyResponse. + :type: bool + """ + self._full_detection = full_detection + + @property + def bind_host(self): + """Gets the bind_host of this UpdatePatchPolicyResponse. + + 防护域名的信息 + + :return: The bind_host of this UpdatePatchPolicyResponse. + :rtype: list[BindHost] + """ + return self._bind_host + + @bind_host.setter + def bind_host(self, bind_host): + """Sets the bind_host of this UpdatePatchPolicyResponse. + + 防护域名的信息 + + :param bind_host: The bind_host of this UpdatePatchPolicyResponse. + :type: list[BindHost] + """ + self._bind_host = bind_host + + @property + def timestamp(self): + """Gets the timestamp of this UpdatePatchPolicyResponse. + + 创建防护策略的时间 + + :return: The timestamp of this UpdatePatchPolicyResponse. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this UpdatePatchPolicyResponse. + + 创建防护策略的时间 + + :param timestamp: The timestamp of this UpdatePatchPolicyResponse. + :type: int + """ + self._timestamp = timestamp + + @property + def extend(self): + """Gets the extend of this UpdatePatchPolicyResponse. + + 扩展字段 + + :return: The extend of this UpdatePatchPolicyResponse. + :rtype: dict(str, str) + """ + return self._extend + + @extend.setter + def extend(self, extend): + """Sets the extend of this UpdatePatchPolicyResponse. + + 扩展字段 + + :param extend: The extend of this UpdatePatchPolicyResponse. + :type: dict(str, str) + """ + self._extend = extend + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePatchPolicyResponse): + 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-waf/huaweicloudsdkwaf/v1/model/update_policy_request_body.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_policy_request_body.py new file mode 100644 index 0000000000..ae12ea883f --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_policy_request_body.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdatePolicyRequestBody: + + + """ + 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', + 'action': 'PolicyAction', + 'options': 'PolicyOption', + 'level': 'int', + 'full_detection': 'bool' + } + + attribute_map = { + 'name': 'name', + 'action': 'action', + 'options': 'options', + 'level': 'level', + 'full_detection': 'full_detection' + } + + def __init__(self, name=None, action=None, options=None, level=None, full_detection=None): + """UpdatePolicyRequestBody - a model defined in huaweicloud sdk""" + + + + self._name = None + self._action = None + self._options = None + self._level = None + self._full_detection = None + self.discriminator = None + + if name is not None: + self.name = name + if action is not None: + self.action = action + if options is not None: + self.options = options + if level is not None: + self.level = level + if full_detection is not None: + self.full_detection = full_detection + + @property + def name(self): + """Gets the name of this UpdatePolicyRequestBody. + + 防护策略名 + + :return: The name of this UpdatePolicyRequestBody. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this UpdatePolicyRequestBody. + + 防护策略名 + + :param name: The name of this UpdatePolicyRequestBody. + :type: str + """ + self._name = name + + @property + def action(self): + """Gets the action of this UpdatePolicyRequestBody. + + + :return: The action of this UpdatePolicyRequestBody. + :rtype: PolicyAction + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this UpdatePolicyRequestBody. + + + :param action: The action of this UpdatePolicyRequestBody. + :type: PolicyAction + """ + self._action = action + + @property + def options(self): + """Gets the options of this UpdatePolicyRequestBody. + + + :return: The options of this UpdatePolicyRequestBody. + :rtype: PolicyOption + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UpdatePolicyRequestBody. + + + :param options: The options of this UpdatePolicyRequestBody. + :type: PolicyOption + """ + self._options = options + + @property + def level(self): + """Gets the level of this UpdatePolicyRequestBody. + + 防护等级 + + :return: The level of this UpdatePolicyRequestBody. + :rtype: int + """ + return self._level + + @level.setter + def level(self, level): + """Sets the level of this UpdatePolicyRequestBody. + + 防护等级 + + :param level: The level of this UpdatePolicyRequestBody. + :type: int + """ + self._level = level + + @property + def full_detection(self): + """Gets the full_detection of this UpdatePolicyRequestBody. + + 精准防护中的检测模式 + + :return: The full_detection of this UpdatePolicyRequestBody. + :rtype: bool + """ + return self._full_detection + + @full_detection.setter + def full_detection(self, full_detection): + """Sets the full_detection of this UpdatePolicyRequestBody. + + 精准防护中的检测模式 + + :param full_detection: The full_detection of this UpdatePolicyRequestBody. + :type: bool + """ + self._full_detection = full_detection + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePolicyRequestBody): + 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-waf/huaweicloudsdkwaf/v1/model/update_pool_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_pool_request.py new file mode 100644 index 0000000000..f25fc59361 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_pool_request.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdatePoolRequest: + + + """ + 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 = { + 'pool_id': 'str', + 'body': 'UpdatePoolRequestBody' + } + + attribute_map = { + 'pool_id': 'pool_id', + 'body': 'body' + } + + def __init__(self, pool_id=None, body=None): + """UpdatePoolRequest - a model defined in huaweicloud sdk""" + + + + self._pool_id = None + self._body = None + self.discriminator = None + + self.pool_id = pool_id + if body is not None: + self.body = body + + @property + def pool_id(self): + """Gets the pool_id of this UpdatePoolRequest. + + WAF组ID + + :return: The pool_id of this UpdatePoolRequest. + :rtype: str + """ + return self._pool_id + + @pool_id.setter + def pool_id(self, pool_id): + """Sets the pool_id of this UpdatePoolRequest. + + WAF组ID + + :param pool_id: The pool_id of this UpdatePoolRequest. + :type: str + """ + self._pool_id = pool_id + + @property + def body(self): + """Gets the body of this UpdatePoolRequest. + + + :return: The body of this UpdatePoolRequest. + :rtype: UpdatePoolRequestBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdatePoolRequest. + + + :param body: The body of this UpdatePoolRequest. + :type: UpdatePoolRequestBody + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePoolRequest): + 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-waf/huaweicloudsdkwaf/v1/model/update_pool_request_body.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_pool_request_body.py new file mode 100644 index 0000000000..bdddd6db43 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_pool_request_body.py @@ -0,0 +1,162 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdatePoolRequestBody: + + + """ + 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', + 'option': 'PremiumWafPoolOption' + } + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'option': 'option' + } + + def __init__(self, name=None, description=None, option=None): + """UpdatePoolRequestBody - a model defined in huaweicloud sdk""" + + + + self._name = None + self._description = None + self._option = None + self.discriminator = None + + if name is not None: + self.name = name + if description is not None: + self.description = description + if option is not None: + self.option = option + + @property + def name(self): + """Gets the name of this UpdatePoolRequestBody. + + WAF独享引擎组名称 + + :return: The name of this UpdatePoolRequestBody. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this UpdatePoolRequestBody. + + WAF独享引擎组名称 + + :param name: The name of this UpdatePoolRequestBody. + :type: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this UpdatePoolRequestBody. + + 注释 + + :return: The description of this UpdatePoolRequestBody. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UpdatePoolRequestBody. + + 注释 + + :param description: The description of this UpdatePoolRequestBody. + :type: str + """ + self._description = description + + @property + def option(self): + """Gets the option of this UpdatePoolRequestBody. + + + :return: The option of this UpdatePoolRequestBody. + :rtype: PremiumWafPoolOption + """ + return self._option + + @option.setter + def option(self, option): + """Sets the option of this UpdatePoolRequestBody. + + + :param option: The option of this UpdatePoolRequestBody. + :type: PremiumWafPoolOption + """ + self._option = option + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePoolRequestBody): + 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-waf/huaweicloudsdkwaf/v1/model/update_pool_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_pool_response.py new file mode 100644 index 0000000000..fb894ea721 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_pool_response.py @@ -0,0 +1,189 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class UpdatePoolResponse(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 = { + 'option': 'PremiumWafPoolOption', + 'hosts': 'list[IdNameEntry]', + 'instances': 'list[IdNameEntry]', + 'bindings': 'list[IdNameEntry]' + } + + attribute_map = { + 'option': 'option', + 'hosts': 'hosts', + 'instances': 'instances', + 'bindings': 'bindings' + } + + def __init__(self, option=None, hosts=None, instances=None, bindings=None): + """UpdatePoolResponse - a model defined in huaweicloud sdk""" + + super(UpdatePoolResponse, self).__init__() + + self._option = None + self._hosts = None + self._instances = None + self._bindings = None + self.discriminator = None + + if option is not None: + self.option = option + if hosts is not None: + self.hosts = hosts + if instances is not None: + self.instances = instances + if bindings is not None: + self.bindings = bindings + + @property + def option(self): + """Gets the option of this UpdatePoolResponse. + + + :return: The option of this UpdatePoolResponse. + :rtype: PremiumWafPoolOption + """ + return self._option + + @option.setter + def option(self, option): + """Sets the option of this UpdatePoolResponse. + + + :param option: The option of this UpdatePoolResponse. + :type: PremiumWafPoolOption + """ + self._option = option + + @property + def hosts(self): + """Gets the hosts of this UpdatePoolResponse. + + 关联的域名 + + :return: The hosts of this UpdatePoolResponse. + :rtype: list[IdNameEntry] + """ + return self._hosts + + @hosts.setter + def hosts(self, hosts): + """Sets the hosts of this UpdatePoolResponse. + + 关联的域名 + + :param hosts: The hosts of this UpdatePoolResponse. + :type: list[IdNameEntry] + """ + self._hosts = hosts + + @property + def instances(self): + """Gets the instances of this UpdatePoolResponse. + + 组内的独享引擎 + + :return: The instances of this UpdatePoolResponse. + :rtype: list[IdNameEntry] + """ + return self._instances + + @instances.setter + def instances(self, instances): + """Sets the instances of this UpdatePoolResponse. + + 组内的独享引擎 + + :param instances: The instances of this UpdatePoolResponse. + :type: list[IdNameEntry] + """ + self._instances = instances + + @property + def bindings(self): + """Gets the bindings of this UpdatePoolResponse. + + 绑定的LoadBalancer + + :return: The bindings of this UpdatePoolResponse. + :rtype: list[IdNameEntry] + """ + return self._bindings + + @bindings.setter + def bindings(self, bindings): + """Sets the bindings of this UpdatePoolResponse. + + 绑定的LoadBalancer + + :param bindings: The bindings of this UpdatePoolResponse. + :type: list[IdNameEntry] + """ + self._bindings = bindings + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePoolResponse): + 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-waf/huaweicloudsdkwaf/v1/model/update_premium_host_access_status_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_premium_host_access_status_request.py new file mode 100644 index 0000000000..ae694816e0 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_premium_host_access_status_request.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdatePremiumHostAccessStatusRequest: + + + """ + 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 = { + 'host_id': 'str', + 'body': 'UpdatePremiumHostAccessStatusRequestBody' + } + + attribute_map = { + 'host_id': 'host_id', + 'body': 'body' + } + + def __init__(self, host_id=None, body=None): + """UpdatePremiumHostAccessStatusRequest - a model defined in huaweicloud sdk""" + + + + self._host_id = None + self._body = None + self.discriminator = None + + self.host_id = host_id + if body is not None: + self.body = body + + @property + def host_id(self): + """Gets the host_id of this UpdatePremiumHostAccessStatusRequest. + + 独享模式域名ID + + :return: The host_id of this UpdatePremiumHostAccessStatusRequest. + :rtype: str + """ + return self._host_id + + @host_id.setter + def host_id(self, host_id): + """Sets the host_id of this UpdatePremiumHostAccessStatusRequest. + + 独享模式域名ID + + :param host_id: The host_id of this UpdatePremiumHostAccessStatusRequest. + :type: str + """ + self._host_id = host_id + + @property + def body(self): + """Gets the body of this UpdatePremiumHostAccessStatusRequest. + + + :return: The body of this UpdatePremiumHostAccessStatusRequest. + :rtype: UpdatePremiumHostAccessStatusRequestBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdatePremiumHostAccessStatusRequest. + + + :param body: The body of this UpdatePremiumHostAccessStatusRequest. + :type: UpdatePremiumHostAccessStatusRequestBody + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePremiumHostAccessStatusRequest): + 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-waf/huaweicloudsdkwaf/v1/model/update_premium_host_access_status_request_body.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_premium_host_access_status_request_body.py new file mode 100644 index 0000000000..5f0ca273c7 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_premium_host_access_status_request_body.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdatePremiumHostAccessStatusRequestBody: + + + """ + 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 = { + 'access_status': 'int' + } + + attribute_map = { + 'access_status': 'access_status' + } + + def __init__(self, access_status=None): + """UpdatePremiumHostAccessStatusRequestBody - a model defined in huaweicloud sdk""" + + + + self._access_status = None + self.discriminator = None + + if access_status is not None: + self.access_status = access_status + + @property + def access_status(self): + """Gets the access_status of this UpdatePremiumHostAccessStatusRequestBody. + + 域名接入状态 + + :return: The access_status of this UpdatePremiumHostAccessStatusRequestBody. + :rtype: int + """ + return self._access_status + + @access_status.setter + def access_status(self, access_status): + """Sets the access_status of this UpdatePremiumHostAccessStatusRequestBody. + + 域名接入状态 + + :param access_status: The access_status of this UpdatePremiumHostAccessStatusRequestBody. + :type: int + """ + self._access_status = access_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePremiumHostAccessStatusRequestBody): + 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-waf/huaweicloudsdkwaf/v1/model/update_premium_host_access_status_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_premium_host_access_status_response.py new file mode 100644 index 0000000000..f56dc6115c --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_premium_host_access_status_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class UpdatePremiumHostAccessStatusResponse(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 = { + 'access_status': 'int' + } + + attribute_map = { + 'access_status': 'access_status' + } + + def __init__(self, access_status=None): + """UpdatePremiumHostAccessStatusResponse - a model defined in huaweicloud sdk""" + + super(UpdatePremiumHostAccessStatusResponse, self).__init__() + + self._access_status = None + self.discriminator = None + + if access_status is not None: + self.access_status = access_status + + @property + def access_status(self): + """Gets the access_status of this UpdatePremiumHostAccessStatusResponse. + + 域名接入状态 + + :return: The access_status of this UpdatePremiumHostAccessStatusResponse. + :rtype: int + """ + return self._access_status + + @access_status.setter + def access_status(self, access_status): + """Sets the access_status of this UpdatePremiumHostAccessStatusResponse. + + 域名接入状态 + + :param access_status: The access_status of this UpdatePremiumHostAccessStatusResponse. + :type: int + """ + self._access_status = access_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePremiumHostAccessStatusResponse): + 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-waf/huaweicloudsdkwaf/v1/model/update_premium_host_protect_status_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_premium_host_protect_status_request.py new file mode 100644 index 0000000000..1e6db64ee9 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_premium_host_protect_status_request.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdatePremiumHostProtectStatusRequest: + + + """ + 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 = { + 'host_id': 'str', + 'body': 'UpdatePremiumHostProtectStatusRequestBody' + } + + attribute_map = { + 'host_id': 'host_id', + 'body': 'body' + } + + def __init__(self, host_id=None, body=None): + """UpdatePremiumHostProtectStatusRequest - a model defined in huaweicloud sdk""" + + + + self._host_id = None + self._body = None + self.discriminator = None + + self.host_id = host_id + if body is not None: + self.body = body + + @property + def host_id(self): + """Gets the host_id of this UpdatePremiumHostProtectStatusRequest. + + 独享模式域名ID + + :return: The host_id of this UpdatePremiumHostProtectStatusRequest. + :rtype: str + """ + return self._host_id + + @host_id.setter + def host_id(self, host_id): + """Sets the host_id of this UpdatePremiumHostProtectStatusRequest. + + 独享模式域名ID + + :param host_id: The host_id of this UpdatePremiumHostProtectStatusRequest. + :type: str + """ + self._host_id = host_id + + @property + def body(self): + """Gets the body of this UpdatePremiumHostProtectStatusRequest. + + + :return: The body of this UpdatePremiumHostProtectStatusRequest. + :rtype: UpdatePremiumHostProtectStatusRequestBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdatePremiumHostProtectStatusRequest. + + + :param body: The body of this UpdatePremiumHostProtectStatusRequest. + :type: UpdatePremiumHostProtectStatusRequestBody + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePremiumHostProtectStatusRequest): + 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-waf/huaweicloudsdkwaf/v1/model/update_premium_host_protect_status_request_body.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_premium_host_protect_status_request_body.py new file mode 100644 index 0000000000..18a78ab19f --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_premium_host_protect_status_request_body.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdatePremiumHostProtectStatusRequestBody: + + + """ + 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 = { + 'protect_status': 'int' + } + + attribute_map = { + 'protect_status': 'protect_status' + } + + def __init__(self, protect_status=None): + """UpdatePremiumHostProtectStatusRequestBody - a model defined in huaweicloud sdk""" + + + + self._protect_status = None + self.discriminator = None + + if protect_status is not None: + self.protect_status = protect_status + + @property + def protect_status(self): + """Gets the protect_status of this UpdatePremiumHostProtectStatusRequestBody. + + 防护状态 + + :return: The protect_status of this UpdatePremiumHostProtectStatusRequestBody. + :rtype: int + """ + return self._protect_status + + @protect_status.setter + def protect_status(self, protect_status): + """Sets the protect_status of this UpdatePremiumHostProtectStatusRequestBody. + + 防护状态 + + :param protect_status: The protect_status of this UpdatePremiumHostProtectStatusRequestBody. + :type: int + """ + self._protect_status = protect_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePremiumHostProtectStatusRequestBody): + 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-waf/huaweicloudsdkwaf/v1/model/update_premium_host_protect_status_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_premium_host_protect_status_response.py new file mode 100644 index 0000000000..63e1c5637b --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_premium_host_protect_status_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class UpdatePremiumHostProtectStatusResponse(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 = { + 'protect_status': 'int' + } + + attribute_map = { + 'protect_status': 'protect_status' + } + + def __init__(self, protect_status=None): + """UpdatePremiumHostProtectStatusResponse - a model defined in huaweicloud sdk""" + + super(UpdatePremiumHostProtectStatusResponse, self).__init__() + + self._protect_status = None + self.discriminator = None + + if protect_status is not None: + self.protect_status = protect_status + + @property + def protect_status(self): + """Gets the protect_status of this UpdatePremiumHostProtectStatusResponse. + + 防护状态 + + :return: The protect_status of this UpdatePremiumHostProtectStatusResponse. + :rtype: int + """ + return self._protect_status + + @protect_status.setter + def protect_status(self, protect_status): + """Sets the protect_status of this UpdatePremiumHostProtectStatusResponse. + + 防护状态 + + :param protect_status: The protect_status of this UpdatePremiumHostProtectStatusResponse. + :type: int + """ + self._protect_status = protect_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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePremiumHostProtectStatusResponse): + 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-waf/huaweicloudsdkwaf/v1/model/update_premium_host_request.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_premium_host_request.py new file mode 100644 index 0000000000..e2e8c0276f --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_premium_host_request.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdatePremiumHostRequest: + + + """ + 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 = { + 'host_id': 'str', + 'body': 'UpdatePremiumHostRequestBody' + } + + attribute_map = { + 'host_id': 'host_id', + 'body': 'body' + } + + def __init__(self, host_id=None, body=None): + """UpdatePremiumHostRequest - a model defined in huaweicloud sdk""" + + + + self._host_id = None + self._body = None + self.discriminator = None + + self.host_id = host_id + if body is not None: + self.body = body + + @property + def host_id(self): + """Gets the host_id of this UpdatePremiumHostRequest. + + 独享模式域名ID + + :return: The host_id of this UpdatePremiumHostRequest. + :rtype: str + """ + return self._host_id + + @host_id.setter + def host_id(self, host_id): + """Sets the host_id of this UpdatePremiumHostRequest. + + 独享模式域名ID + + :param host_id: The host_id of this UpdatePremiumHostRequest. + :type: str + """ + self._host_id = host_id + + @property + def body(self): + """Gets the body of this UpdatePremiumHostRequest. + + + :return: The body of this UpdatePremiumHostRequest. + :rtype: UpdatePremiumHostRequestBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdatePremiumHostRequest. + + + :param body: The body of this UpdatePremiumHostRequest. + :type: UpdatePremiumHostRequestBody + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePremiumHostRequest): + 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-waf/huaweicloudsdkwaf/v1/model/update_premium_host_request_body.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_premium_host_request_body.py new file mode 100644 index 0000000000..8d11becd47 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_premium_host_request_body.py @@ -0,0 +1,700 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UpdatePremiumHostRequestBody: + + + """ + 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', + 'policyid': 'str', + 'hostname': 'str', + 'domainid': 'str', + 'project_id': 'str', + 'access_code': 'str', + 'protocol': 'str', + 'proxy': 'bool', + 'certificateid': 'str', + 'certificatename': 'str', + 'locked': 'int', + 'protect_status': 'int', + 'access_status': 'int', + 'timestamp': 'int', + 'server': 'list[PremiumWafServer]', + 'mode': 'str', + 'tls': 'str', + 'cipher': 'str', + 'pool_ids': 'list[str]', + 'block_page': 'BlockPage', + 'traffic_mark': 'TrafficMark', + 'flag': 'dict(str, str)', + 'extend': 'dict(str, str)' + } + + attribute_map = { + 'id': 'id', + 'policyid': 'policyid', + 'hostname': 'hostname', + 'domainid': 'domainid', + 'project_id': 'project_id', + 'access_code': 'access_code', + 'protocol': 'protocol', + 'proxy': 'proxy', + 'certificateid': 'certificateid', + 'certificatename': 'certificatename', + 'locked': 'locked', + 'protect_status': 'protect_status', + 'access_status': 'access_status', + 'timestamp': 'timestamp', + 'server': 'server', + 'mode': 'mode', + 'tls': 'tls', + 'cipher': 'cipher', + 'pool_ids': 'pool_ids', + 'block_page': 'block_page', + 'traffic_mark': 'traffic_mark', + 'flag': 'flag', + 'extend': 'extend' + } + + def __init__(self, id=None, policyid=None, hostname=None, domainid=None, project_id=None, access_code=None, protocol=None, proxy=None, certificateid=None, certificatename=None, locked=None, protect_status=None, access_status=None, timestamp=None, server=None, mode=None, tls=None, cipher=None, pool_ids=None, block_page=None, traffic_mark=None, flag=None, extend=None): + """UpdatePremiumHostRequestBody - a model defined in huaweicloud sdk""" + + + + self._id = None + self._policyid = None + self._hostname = None + self._domainid = None + self._project_id = None + self._access_code = None + self._protocol = None + self._proxy = None + self._certificateid = None + self._certificatename = None + self._locked = None + self._protect_status = None + self._access_status = None + self._timestamp = None + self._server = None + self._mode = None + self._tls = None + self._cipher = None + self._pool_ids = None + self._block_page = None + self._traffic_mark = None + self._flag = None + self._extend = None + self.discriminator = None + + if id is not None: + self.id = id + if policyid is not None: + self.policyid = policyid + if hostname is not None: + self.hostname = hostname + if domainid is not None: + self.domainid = domainid + if project_id is not None: + self.project_id = project_id + if access_code is not None: + self.access_code = access_code + if protocol is not None: + self.protocol = protocol + if proxy is not None: + self.proxy = proxy + if certificateid is not None: + self.certificateid = certificateid + if certificatename is not None: + self.certificatename = certificatename + if locked is not None: + self.locked = locked + if protect_status is not None: + self.protect_status = protect_status + if access_status is not None: + self.access_status = access_status + if timestamp is not None: + self.timestamp = timestamp + if server is not None: + self.server = server + if mode is not None: + self.mode = mode + if tls is not None: + self.tls = tls + if cipher is not None: + self.cipher = cipher + if pool_ids is not None: + self.pool_ids = pool_ids + if block_page is not None: + self.block_page = block_page + if traffic_mark is not None: + self.traffic_mark = traffic_mark + if flag is not None: + self.flag = flag + if extend is not None: + self.extend = extend + + @property + def id(self): + """Gets the id of this UpdatePremiumHostRequestBody. + + 域名id + + :return: The id of this UpdatePremiumHostRequestBody. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this UpdatePremiumHostRequestBody. + + 域名id + + :param id: The id of this UpdatePremiumHostRequestBody. + :type: str + """ + self._id = id + + @property + def policyid(self): + """Gets the policyid of this UpdatePremiumHostRequestBody. + + 防护策略id + + :return: The policyid of this UpdatePremiumHostRequestBody. + :rtype: str + """ + return self._policyid + + @policyid.setter + def policyid(self, policyid): + """Sets the policyid of this UpdatePremiumHostRequestBody. + + 防护策略id + + :param policyid: The policyid of this UpdatePremiumHostRequestBody. + :type: str + """ + self._policyid = policyid + + @property + def hostname(self): + """Gets the hostname of this UpdatePremiumHostRequestBody. + + 防护域名 + + :return: The hostname of this UpdatePremiumHostRequestBody. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """Sets the hostname of this UpdatePremiumHostRequestBody. + + 防护域名 + + :param hostname: The hostname of this UpdatePremiumHostRequestBody. + :type: str + """ + self._hostname = hostname + + @property + def domainid(self): + """Gets the domainid of this UpdatePremiumHostRequestBody. + + 用户的domainid + + :return: The domainid of this UpdatePremiumHostRequestBody. + :rtype: str + """ + return self._domainid + + @domainid.setter + def domainid(self, domainid): + """Sets the domainid of this UpdatePremiumHostRequestBody. + + 用户的domainid + + :param domainid: The domainid of this UpdatePremiumHostRequestBody. + :type: str + """ + self._domainid = domainid + + @property + def project_id(self): + """Gets the project_id of this UpdatePremiumHostRequestBody. + + 用户的project_id + + :return: The project_id of this UpdatePremiumHostRequestBody. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this UpdatePremiumHostRequestBody. + + 用户的project_id + + :param project_id: The project_id of this UpdatePremiumHostRequestBody. + :type: str + """ + self._project_id = project_id + + @property + def access_code(self): + """Gets the access_code of this UpdatePremiumHostRequestBody. + + 用户的access_code + + :return: The access_code of this UpdatePremiumHostRequestBody. + :rtype: str + """ + return self._access_code + + @access_code.setter + def access_code(self, access_code): + """Sets the access_code of this UpdatePremiumHostRequestBody. + + 用户的access_code + + :param access_code: The access_code of this UpdatePremiumHostRequestBody. + :type: str + """ + self._access_code = access_code + + @property + def protocol(self): + """Gets the protocol of this UpdatePremiumHostRequestBody. + + http协议 + + :return: The protocol of this UpdatePremiumHostRequestBody. + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this UpdatePremiumHostRequestBody. + + http协议 + + :param protocol: The protocol of this UpdatePremiumHostRequestBody. + :type: str + """ + self._protocol = protocol + + @property + def proxy(self): + """Gets the proxy of this UpdatePremiumHostRequestBody. + + 是否使用代理 + + :return: The proxy of this UpdatePremiumHostRequestBody. + :rtype: bool + """ + return self._proxy + + @proxy.setter + def proxy(self, proxy): + """Sets the proxy of this UpdatePremiumHostRequestBody. + + 是否使用代理 + + :param proxy: The proxy of this UpdatePremiumHostRequestBody. + :type: bool + """ + self._proxy = proxy + + @property + def certificateid(self): + """Gets the certificateid of this UpdatePremiumHostRequestBody. + + 证书ID + + :return: The certificateid of this UpdatePremiumHostRequestBody. + :rtype: str + """ + return self._certificateid + + @certificateid.setter + def certificateid(self, certificateid): + """Sets the certificateid of this UpdatePremiumHostRequestBody. + + 证书ID + + :param certificateid: The certificateid of this UpdatePremiumHostRequestBody. + :type: str + """ + self._certificateid = certificateid + + @property + def certificatename(self): + """Gets the certificatename of this UpdatePremiumHostRequestBody. + + 证书名称 + + :return: The certificatename of this UpdatePremiumHostRequestBody. + :rtype: str + """ + return self._certificatename + + @certificatename.setter + def certificatename(self, certificatename): + """Sets the certificatename of this UpdatePremiumHostRequestBody. + + 证书名称 + + :param certificatename: The certificatename of this UpdatePremiumHostRequestBody. + :type: str + """ + self._certificatename = certificatename + + @property + def locked(self): + """Gets the locked of this UpdatePremiumHostRequestBody. + + 是否锁定 + + :return: The locked of this UpdatePremiumHostRequestBody. + :rtype: int + """ + return self._locked + + @locked.setter + def locked(self, locked): + """Sets the locked of this UpdatePremiumHostRequestBody. + + 是否锁定 + + :param locked: The locked of this UpdatePremiumHostRequestBody. + :type: int + """ + self._locked = locked + + @property + def protect_status(self): + """Gets the protect_status of this UpdatePremiumHostRequestBody. + + 防护状态 + + :return: The protect_status of this UpdatePremiumHostRequestBody. + :rtype: int + """ + return self._protect_status + + @protect_status.setter + def protect_status(self, protect_status): + """Sets the protect_status of this UpdatePremiumHostRequestBody. + + 防护状态 + + :param protect_status: The protect_status of this UpdatePremiumHostRequestBody. + :type: int + """ + self._protect_status = protect_status + + @property + def access_status(self): + """Gets the access_status of this UpdatePremiumHostRequestBody. + + 接入状态 + + :return: The access_status of this UpdatePremiumHostRequestBody. + :rtype: int + """ + return self._access_status + + @access_status.setter + def access_status(self, access_status): + """Sets the access_status of this UpdatePremiumHostRequestBody. + + 接入状态 + + :param access_status: The access_status of this UpdatePremiumHostRequestBody. + :type: int + """ + self._access_status = access_status + + @property + def timestamp(self): + """Gets the timestamp of this UpdatePremiumHostRequestBody. + + 时间戳 + + :return: The timestamp of this UpdatePremiumHostRequestBody. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this UpdatePremiumHostRequestBody. + + 时间戳 + + :param timestamp: The timestamp of this UpdatePremiumHostRequestBody. + :type: int + """ + self._timestamp = timestamp + + @property + def server(self): + """Gets the server of this UpdatePremiumHostRequestBody. + + 独享模式回源服务器配置 + + :return: The server of this UpdatePremiumHostRequestBody. + :rtype: list[PremiumWafServer] + """ + return self._server + + @server.setter + def server(self, server): + """Sets the server of this UpdatePremiumHostRequestBody. + + 独享模式回源服务器配置 + + :param server: The server of this UpdatePremiumHostRequestBody. + :type: list[PremiumWafServer] + """ + self._server = server + + @property + def mode(self): + """Gets the mode of this UpdatePremiumHostRequestBody. + + 独享模式特殊域名模式(仅特殊模式需要,如elb) + + :return: The mode of this UpdatePremiumHostRequestBody. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this UpdatePremiumHostRequestBody. + + 独享模式特殊域名模式(仅特殊模式需要,如elb) + + :param mode: The mode of this UpdatePremiumHostRequestBody. + :type: str + """ + self._mode = mode + + @property + def tls(self): + """Gets the tls of this UpdatePremiumHostRequestBody. + + 支持最低的TLS版本 + + :return: The tls of this UpdatePremiumHostRequestBody. + :rtype: str + """ + return self._tls + + @tls.setter + def tls(self, tls): + """Sets the tls of this UpdatePremiumHostRequestBody. + + 支持最低的TLS版本 + + :param tls: The tls of this UpdatePremiumHostRequestBody. + :type: str + """ + self._tls = tls + + @property + def cipher(self): + """Gets the cipher of this UpdatePremiumHostRequestBody. + + 加密套件代码 + + :return: The cipher of this UpdatePremiumHostRequestBody. + :rtype: str + """ + return self._cipher + + @cipher.setter + def cipher(self, cipher): + """Sets the cipher of this UpdatePremiumHostRequestBody. + + 加密套件代码 + + :param cipher: The cipher of this UpdatePremiumHostRequestBody. + :type: str + """ + self._cipher = cipher + + @property + def pool_ids(self): + """Gets the pool_ids of this UpdatePremiumHostRequestBody. + + 域名关联的组ID(仅特殊模式需要,如elb) + + :return: The pool_ids of this UpdatePremiumHostRequestBody. + :rtype: list[str] + """ + return self._pool_ids + + @pool_ids.setter + def pool_ids(self, pool_ids): + """Sets the pool_ids of this UpdatePremiumHostRequestBody. + + 域名关联的组ID(仅特殊模式需要,如elb) + + :param pool_ids: The pool_ids of this UpdatePremiumHostRequestBody. + :type: list[str] + """ + self._pool_ids = pool_ids + + @property + def block_page(self): + """Gets the block_page of this UpdatePremiumHostRequestBody. + + + :return: The block_page of this UpdatePremiumHostRequestBody. + :rtype: BlockPage + """ + return self._block_page + + @block_page.setter + def block_page(self, block_page): + """Sets the block_page of this UpdatePremiumHostRequestBody. + + + :param block_page: The block_page of this UpdatePremiumHostRequestBody. + :type: BlockPage + """ + self._block_page = block_page + + @property + def traffic_mark(self): + """Gets the traffic_mark of this UpdatePremiumHostRequestBody. + + + :return: The traffic_mark of this UpdatePremiumHostRequestBody. + :rtype: TrafficMark + """ + return self._traffic_mark + + @traffic_mark.setter + def traffic_mark(self, traffic_mark): + """Sets the traffic_mark of this UpdatePremiumHostRequestBody. + + + :param traffic_mark: The traffic_mark of this UpdatePremiumHostRequestBody. + :type: TrafficMark + """ + self._traffic_mark = traffic_mark + + @property + def flag(self): + """Gets the flag of this UpdatePremiumHostRequestBody. + + 域名特殊标识 + + :return: The flag of this UpdatePremiumHostRequestBody. + :rtype: dict(str, str) + """ + return self._flag + + @flag.setter + def flag(self, flag): + """Sets the flag of this UpdatePremiumHostRequestBody. + + 域名特殊标识 + + :param flag: The flag of this UpdatePremiumHostRequestBody. + :type: dict(str, str) + """ + self._flag = flag + + @property + def extend(self): + """Gets the extend of this UpdatePremiumHostRequestBody. + + 可扩展字段 + + :return: The extend of this UpdatePremiumHostRequestBody. + :rtype: dict(str, str) + """ + return self._extend + + @extend.setter + def extend(self, extend): + """Sets the extend of this UpdatePremiumHostRequestBody. + + 可扩展字段 + + :param extend: The extend of this UpdatePremiumHostRequestBody. + :type: dict(str, str) + """ + self._extend = extend + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePremiumHostRequestBody): + 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-waf/huaweicloudsdkwaf/v1/model/update_premium_host_response.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_premium_host_response.py new file mode 100644 index 0000000000..e710084252 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/update_premium_host_response.py @@ -0,0 +1,700 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class UpdatePremiumHostResponse(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', + 'policyid': 'str', + 'hostname': 'str', + 'domainid': 'str', + 'project_id': 'str', + 'access_code': 'str', + 'protocol': 'str', + 'server': 'list[PremiumWafServer]', + 'certificateid': 'str', + 'certificatename': 'str', + 'tls': 'str', + 'cipher': 'str', + 'proxy': 'bool', + 'locked': 'int', + 'protect_status': 'int', + 'access_status': 'int', + 'timestamp': 'int', + 'block_page': 'BlockPage', + 'extend': 'dict(str, str)', + 'traffic_mark': 'TrafficMark', + 'flag': 'dict(str, str)', + 'mode': 'str', + 'pool_ids': 'list[str]' + } + + attribute_map = { + 'id': 'id', + 'policyid': 'policyid', + 'hostname': 'hostname', + 'domainid': 'domainid', + 'project_id': 'project_id', + 'access_code': 'access_code', + 'protocol': 'protocol', + 'server': 'server', + 'certificateid': 'certificateid', + 'certificatename': 'certificatename', + 'tls': 'tls', + 'cipher': 'cipher', + 'proxy': 'proxy', + 'locked': 'locked', + 'protect_status': 'protect_status', + 'access_status': 'access_status', + 'timestamp': 'timestamp', + 'block_page': 'block_page', + 'extend': 'extend', + 'traffic_mark': 'traffic_mark', + 'flag': 'flag', + 'mode': 'mode', + 'pool_ids': 'pool_ids' + } + + def __init__(self, id=None, policyid=None, hostname=None, domainid=None, project_id=None, access_code=None, protocol=None, server=None, certificateid=None, certificatename=None, tls=None, cipher=None, proxy=None, locked=None, protect_status=None, access_status=None, timestamp=None, block_page=None, extend=None, traffic_mark=None, flag=None, mode=None, pool_ids=None): + """UpdatePremiumHostResponse - a model defined in huaweicloud sdk""" + + super(UpdatePremiumHostResponse, self).__init__() + + self._id = None + self._policyid = None + self._hostname = None + self._domainid = None + self._project_id = None + self._access_code = None + self._protocol = None + self._server = None + self._certificateid = None + self._certificatename = None + self._tls = None + self._cipher = None + self._proxy = None + self._locked = None + self._protect_status = None + self._access_status = None + self._timestamp = None + self._block_page = None + self._extend = None + self._traffic_mark = None + self._flag = None + self._mode = None + self._pool_ids = None + self.discriminator = None + + if id is not None: + self.id = id + if policyid is not None: + self.policyid = policyid + if hostname is not None: + self.hostname = hostname + if domainid is not None: + self.domainid = domainid + if project_id is not None: + self.project_id = project_id + if access_code is not None: + self.access_code = access_code + if protocol is not None: + self.protocol = protocol + if server is not None: + self.server = server + if certificateid is not None: + self.certificateid = certificateid + if certificatename is not None: + self.certificatename = certificatename + if tls is not None: + self.tls = tls + if cipher is not None: + self.cipher = cipher + if proxy is not None: + self.proxy = proxy + if locked is not None: + self.locked = locked + if protect_status is not None: + self.protect_status = protect_status + if access_status is not None: + self.access_status = access_status + if timestamp is not None: + self.timestamp = timestamp + if block_page is not None: + self.block_page = block_page + if extend is not None: + self.extend = extend + if traffic_mark is not None: + self.traffic_mark = traffic_mark + if flag is not None: + self.flag = flag + if mode is not None: + self.mode = mode + if pool_ids is not None: + self.pool_ids = pool_ids + + @property + def id(self): + """Gets the id of this UpdatePremiumHostResponse. + + 域名id + + :return: The id of this UpdatePremiumHostResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this UpdatePremiumHostResponse. + + 域名id + + :param id: The id of this UpdatePremiumHostResponse. + :type: str + """ + self._id = id + + @property + def policyid(self): + """Gets the policyid of this UpdatePremiumHostResponse. + + 策略id + + :return: The policyid of this UpdatePremiumHostResponse. + :rtype: str + """ + return self._policyid + + @policyid.setter + def policyid(self, policyid): + """Sets the policyid of this UpdatePremiumHostResponse. + + 策略id + + :param policyid: The policyid of this UpdatePremiumHostResponse. + :type: str + """ + self._policyid = policyid + + @property + def hostname(self): + """Gets the hostname of this UpdatePremiumHostResponse. + + 创建的云模式防护域名 + + :return: The hostname of this UpdatePremiumHostResponse. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """Sets the hostname of this UpdatePremiumHostResponse. + + 创建的云模式防护域名 + + :param hostname: The hostname of this UpdatePremiumHostResponse. + :type: str + """ + self._hostname = hostname + + @property + def domainid(self): + """Gets the domainid of this UpdatePremiumHostResponse. + + 用户Domain ID + + :return: The domainid of this UpdatePremiumHostResponse. + :rtype: str + """ + return self._domainid + + @domainid.setter + def domainid(self, domainid): + """Sets the domainid of this UpdatePremiumHostResponse. + + 用户Domain ID + + :param domainid: The domainid of this UpdatePremiumHostResponse. + :type: str + """ + self._domainid = domainid + + @property + def project_id(self): + """Gets the project_id of this UpdatePremiumHostResponse. + + 用户Project ID + + :return: The project_id of this UpdatePremiumHostResponse. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this UpdatePremiumHostResponse. + + 用户Project ID + + :param project_id: The project_id of this UpdatePremiumHostResponse. + :type: str + """ + self._project_id = project_id + + @property + def access_code(self): + """Gets the access_code of this UpdatePremiumHostResponse. + + cname + + :return: The access_code of this UpdatePremiumHostResponse. + :rtype: str + """ + return self._access_code + + @access_code.setter + def access_code(self, access_code): + """Sets the access_code of this UpdatePremiumHostResponse. + + cname + + :param access_code: The access_code of this UpdatePremiumHostResponse. + :type: str + """ + self._access_code = access_code + + @property + def protocol(self): + """Gets the protocol of this UpdatePremiumHostResponse. + + 返回的客户端协议类型 + + :return: The protocol of this UpdatePremiumHostResponse. + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this UpdatePremiumHostResponse. + + 返回的客户端协议类型 + + :param protocol: The protocol of this UpdatePremiumHostResponse. + :type: str + """ + self._protocol = protocol + + @property + def server(self): + """Gets the server of this UpdatePremiumHostResponse. + + 源站信息 + + :return: The server of this UpdatePremiumHostResponse. + :rtype: list[PremiumWafServer] + """ + return self._server + + @server.setter + def server(self, server): + """Sets the server of this UpdatePremiumHostResponse. + + 源站信息 + + :param server: The server of this UpdatePremiumHostResponse. + :type: list[PremiumWafServer] + """ + self._server = server + + @property + def certificateid(self): + """Gets the certificateid of this UpdatePremiumHostResponse. + + 返回的证书id + + :return: The certificateid of this UpdatePremiumHostResponse. + :rtype: str + """ + return self._certificateid + + @certificateid.setter + def certificateid(self, certificateid): + """Sets the certificateid of this UpdatePremiumHostResponse. + + 返回的证书id + + :param certificateid: The certificateid of this UpdatePremiumHostResponse. + :type: str + """ + self._certificateid = certificateid + + @property + def certificatename(self): + """Gets the certificatename of this UpdatePremiumHostResponse. + + 证书名称 + + :return: The certificatename of this UpdatePremiumHostResponse. + :rtype: str + """ + return self._certificatename + + @certificatename.setter + def certificatename(self, certificatename): + """Sets the certificatename of this UpdatePremiumHostResponse. + + 证书名称 + + :param certificatename: The certificatename of this UpdatePremiumHostResponse. + :type: str + """ + self._certificatename = certificatename + + @property + def tls(self): + """Gets the tls of this UpdatePremiumHostResponse. + + 支持最低的TLS版本 + + :return: The tls of this UpdatePremiumHostResponse. + :rtype: str + """ + return self._tls + + @tls.setter + def tls(self, tls): + """Sets the tls of this UpdatePremiumHostResponse. + + 支持最低的TLS版本 + + :param tls: The tls of this UpdatePremiumHostResponse. + :type: str + """ + self._tls = tls + + @property + def cipher(self): + """Gets the cipher of this UpdatePremiumHostResponse. + + 加密套件代码 + + :return: The cipher of this UpdatePremiumHostResponse. + :rtype: str + """ + return self._cipher + + @cipher.setter + def cipher(self, cipher): + """Sets the cipher of this UpdatePremiumHostResponse. + + 加密套件代码 + + :param cipher: The cipher of this UpdatePremiumHostResponse. + :type: str + """ + self._cipher = cipher + + @property + def proxy(self): + """Gets the proxy of this UpdatePremiumHostResponse. + + 是否开启了代理 + + :return: The proxy of this UpdatePremiumHostResponse. + :rtype: bool + """ + return self._proxy + + @proxy.setter + def proxy(self, proxy): + """Sets the proxy of this UpdatePremiumHostResponse. + + 是否开启了代理 + + :param proxy: The proxy of this UpdatePremiumHostResponse. + :type: bool + """ + self._proxy = proxy + + @property + def locked(self): + """Gets the locked of this UpdatePremiumHostResponse. + + 锁定状态 + + :return: The locked of this UpdatePremiumHostResponse. + :rtype: int + """ + return self._locked + + @locked.setter + def locked(self, locked): + """Sets the locked of this UpdatePremiumHostResponse. + + 锁定状态 + + :param locked: The locked of this UpdatePremiumHostResponse. + :type: int + """ + self._locked = locked + + @property + def protect_status(self): + """Gets the protect_status of this UpdatePremiumHostResponse. + + 防护状态 + + :return: The protect_status of this UpdatePremiumHostResponse. + :rtype: int + """ + return self._protect_status + + @protect_status.setter + def protect_status(self, protect_status): + """Sets the protect_status of this UpdatePremiumHostResponse. + + 防护状态 + + :param protect_status: The protect_status of this UpdatePremiumHostResponse. + :type: int + """ + self._protect_status = protect_status + + @property + def access_status(self): + """Gets the access_status of this UpdatePremiumHostResponse. + + 接入状态 + + :return: The access_status of this UpdatePremiumHostResponse. + :rtype: int + """ + return self._access_status + + @access_status.setter + def access_status(self, access_status): + """Sets the access_status of this UpdatePremiumHostResponse. + + 接入状态 + + :param access_status: The access_status of this UpdatePremiumHostResponse. + :type: int + """ + self._access_status = access_status + + @property + def timestamp(self): + """Gets the timestamp of this UpdatePremiumHostResponse. + + 创建防护域名的时间 + + :return: The timestamp of this UpdatePremiumHostResponse. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this UpdatePremiumHostResponse. + + 创建防护域名的时间 + + :param timestamp: The timestamp of this UpdatePremiumHostResponse. + :type: int + """ + self._timestamp = timestamp + + @property + def block_page(self): + """Gets the block_page of this UpdatePremiumHostResponse. + + + :return: The block_page of this UpdatePremiumHostResponse. + :rtype: BlockPage + """ + return self._block_page + + @block_page.setter + def block_page(self, block_page): + """Sets the block_page of this UpdatePremiumHostResponse. + + + :param block_page: The block_page of this UpdatePremiumHostResponse. + :type: BlockPage + """ + self._block_page = block_page + + @property + def extend(self): + """Gets the extend of this UpdatePremiumHostResponse. + + 可扩展属性 + + :return: The extend of this UpdatePremiumHostResponse. + :rtype: dict(str, str) + """ + return self._extend + + @extend.setter + def extend(self, extend): + """Sets the extend of this UpdatePremiumHostResponse. + + 可扩展属性 + + :param extend: The extend of this UpdatePremiumHostResponse. + :type: dict(str, str) + """ + self._extend = extend + + @property + def traffic_mark(self): + """Gets the traffic_mark of this UpdatePremiumHostResponse. + + + :return: The traffic_mark of this UpdatePremiumHostResponse. + :rtype: TrafficMark + """ + return self._traffic_mark + + @traffic_mark.setter + def traffic_mark(self, traffic_mark): + """Sets the traffic_mark of this UpdatePremiumHostResponse. + + + :param traffic_mark: The traffic_mark of this UpdatePremiumHostResponse. + :type: TrafficMark + """ + self._traffic_mark = traffic_mark + + @property + def flag(self): + """Gets the flag of this UpdatePremiumHostResponse. + + 域名特殊标记 + + :return: The flag of this UpdatePremiumHostResponse. + :rtype: dict(str, str) + """ + return self._flag + + @flag.setter + def flag(self, flag): + """Sets the flag of this UpdatePremiumHostResponse. + + 域名特殊标记 + + :param flag: The flag of this UpdatePremiumHostResponse. + :type: dict(str, str) + """ + self._flag = flag + + @property + def mode(self): + """Gets the mode of this UpdatePremiumHostResponse. + + 独享模式特殊域名模式(仅特殊模式需要,如elb) + + :return: The mode of this UpdatePremiumHostResponse. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this UpdatePremiumHostResponse. + + 独享模式特殊域名模式(仅特殊模式需要,如elb) + + :param mode: The mode of this UpdatePremiumHostResponse. + :type: str + """ + self._mode = mode + + @property + def pool_ids(self): + """Gets the pool_ids of this UpdatePremiumHostResponse. + + 域名关联的组ID(仅特殊模式需要,如elb) + + :return: The pool_ids of this UpdatePremiumHostResponse. + :rtype: list[str] + """ + return self._pool_ids + + @pool_ids.setter + def pool_ids(self, pool_ids): + """Sets the pool_ids of this UpdatePremiumHostResponse. + + 域名关联的组ID(仅特殊模式需要,如elb) + + :param pool_ids: The pool_ids of this UpdatePremiumHostResponse. + :type: list[str] + """ + self._pool_ids = pool_ids + + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePremiumHostResponse): + 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-waf/huaweicloudsdkwaf/v1/model/url_count_item.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/url_count_item.py new file mode 100644 index 0000000000..7afb8c3ab4 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/url_count_item.py @@ -0,0 +1,164 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class UrlCountItem: + + + """ + 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 = { + 'key': 'str', + 'num': 'int', + 'host': 'str' + } + + attribute_map = { + 'key': 'key', + 'num': 'num', + 'host': 'host' + } + + def __init__(self, key=None, num=None, host=None): + """UrlCountItem - a model defined in huaweicloud sdk""" + + + + self._key = None + self._num = None + self._host = None + self.discriminator = None + + if key is not None: + self.key = key + if num is not None: + self.num = num + if host is not None: + self.host = host + + @property + def key(self): + """Gets the key of this UrlCountItem. + + 键值 + + :return: The key of this UrlCountItem. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this UrlCountItem. + + 键值 + + :param key: The key of this UrlCountItem. + :type: str + """ + self._key = key + + @property + def num(self): + """Gets the num of this UrlCountItem. + + 数量 + + :return: The num of this UrlCountItem. + :rtype: int + """ + return self._num + + @num.setter + def num(self, num): + """Sets the num of this UrlCountItem. + + 数量 + + :param num: The num of this UrlCountItem. + :type: int + """ + self._num = num + + @property + def host(self): + """Gets the host of this UrlCountItem. + + 域名 + + :return: The host of this UrlCountItem. + :rtype: str + """ + return self._host + + @host.setter + def host(self, host): + """Sets the host of this UrlCountItem. + + 域名 + + :param host: The host of this UrlCountItem. + :type: 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UrlCountItem): + 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-waf/huaweicloudsdkwaf/v1/model/value_list.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/value_list.py new file mode 100644 index 0000000000..1e1677234d --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/value_list.py @@ -0,0 +1,245 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ValueList: + + + """ + 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', + 'type': 'str', + 'description': 'str', + 'timestamp': 'int', + 'value': 'list[str]' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'type': 'type', + 'description': 'description', + 'timestamp': 'timestamp', + 'value': 'value' + } + + def __init__(self, id=None, name=None, type=None, description=None, timestamp=None, value=None): + """ValueList - a model defined in huaweicloud sdk""" + + + + self._id = None + self._name = None + self._type = None + self._description = None + self._timestamp = None + self._value = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if type is not None: + self.type = type + if description is not None: + self.description = description + if timestamp is not None: + self.timestamp = timestamp + if value is not None: + self.value = value + + @property + def id(self): + """Gets the id of this ValueList. + + 引用表id + + :return: The id of this ValueList. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ValueList. + + 引用表id + + :param id: The id of this ValueList. + :type: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this ValueList. + + 引用表名称 + + :return: The name of this ValueList. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ValueList. + + 引用表名称 + + :param name: The name of this ValueList. + :type: str + """ + self._name = name + + @property + def type(self): + """Gets the type of this ValueList. + + 引用表类型 + + :return: The type of this ValueList. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ValueList. + + 引用表类型 + + :param type: The type of this ValueList. + :type: str + """ + self._type = type + + @property + def description(self): + """Gets the description of this ValueList. + + 引用表描述 + + :return: The description of this ValueList. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ValueList. + + 引用表描述 + + :param description: The description of this ValueList. + :type: str + """ + self._description = description + + @property + def timestamp(self): + """Gets the timestamp of this ValueList. + + 引用表时间戳 + + :return: The timestamp of this ValueList. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this ValueList. + + 引用表时间戳 + + :param timestamp: The timestamp of this ValueList. + :type: int + """ + self._timestamp = timestamp + + @property + def value(self): + """Gets the value of this ValueList. + + 引用表的值 + + :return: The value of this ValueList. + :rtype: list[str] + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this ValueList. + + 引用表的值 + + :param value: The value of this ValueList. + :type: list[str] + """ + 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""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ValueList): + 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-waf/huaweicloudsdkwaf/v1/region/__init__.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/region/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/region/waf_region.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/region/waf_region.py new file mode 100644 index 0000000000..079ee5eb10 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/region/waf_region.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +import types +import six + +from huaweicloudsdkcore.region.region import Region + + +class WafRegion: + def __init__(self): + pass + + CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://waf.cn-north-1.myhuaweicloud.com") + + CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://waf.cn-north-2.myhuaweicloud.com") + + CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://waf.cn-north-4.myhuaweicloud.com") + + CN_EAST_3 = Region(id="cn-east-3", endpoint="https://waf.cn-east-3.myhuaweicloud.com") + + CN_EAST_2 = Region(id="cn-east-2", endpoint="https://waf.cn-east-2.myhuaweicloud.com") + + CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://waf.cn-south-1.myhuaweicloud.com") + + CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://waf.cn-south-2.myhuaweicloud.com") + + AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://waf.ap-southeast-1.myhuaweicloud.com") + + AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://waf.ap-southeast-2.myhuaweicloud.com") + + AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://waf.ap-southeast-3.myhuaweicloud.com") + + AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://waf.af-south-1.huaweicloud.com") + + RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://waf.ru-northwest-2.myhuaweicloud.com") + + static_fields = { + "cn-north-1": CN_NORTH_1, + "cn-north-2": CN_NORTH_2, + "cn-north-4": CN_NORTH_4, + "cn-east-3": CN_EAST_3, + "cn-east-2": CN_EAST_2, + "cn-south-1": CN_SOUTH_1, + "cn-south-2": CN_SOUTH_2, + "ap-southeast-1": AP_SOUTHEAST_1, + "ap-southeast-2": AP_SOUTHEAST_2, + "ap-southeast-3": AP_SOUTHEAST_3, + "af-south-1": AF_SOUTH_1, + "ru-northwest-2": RU_NORTHWEST_2, + } + + @staticmethod + def value_of(region_id, static_fields=types.MappingProxyType(static_fields) if six.PY3 else static_fields): + if region_id is None or len(region_id) == 0: + raise KeyError("Unexpected empty parameter: region_id.") + if not static_fields.get(region_id): + raise KeyError("Unexpected region_id: " + region_id) + return static_fields.get(region_id) + + diff --git a/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/waf_async_client.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/waf_async_client.py new file mode 100644 index 0000000000..99579e4ea6 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/waf_async_client.py @@ -0,0 +1,5185 @@ +# coding: utf-8 + +from __future__ import absolute_import + +import datetime +import re +import importlib + +import six + +from huaweicloudsdkcore.client import Client, ClientBuilder +from huaweicloudsdkcore.exceptions import exceptions +from huaweicloudsdkcore.utils import http_utils +from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest + + +class WafAsyncClient(Client): + """ + :param configuration: .Configuration object for this client + :param pool_threads: The number of threads to use for async requests + to the API. More threads means more concurrent API requests. + """ + + PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int if six.PY3 else long, + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'object': object, + } + + def __init__(self): + super(WafAsyncClient, self).__init__() + self.model_package = importlib.import_module("huaweicloudsdkwaf.v1.model") + self.preset_headers = {'User-Agent': 'HuaweiCloud-SDK-Python'} + + @classmethod + def new_builder(cls, clazz=None): + if clazz is None: + return ClientBuilder(cls) + + if clazz.__name__ != "WafClient": + raise TypeError("client type error, support client type is WafClient") + + return ClientBuilder(clazz) + + def confirm_cloud_waf_subscription_info_async(self, request): + """查询租户云模式订购信息 + + 查询租户云模式订购信息,包括包周期、按需计费 + + :param ConfirmCloudWafSubscriptionInfoRequest request + :return: ConfirmCloudWafSubscriptionInfoResponse + """ + return self.confirm_cloud_waf_subscription_info_with_http_info(request) + + def confirm_cloud_waf_subscription_info_with_http_info(self, request): + """查询租户云模式订购信息 + + 查询租户云模式订购信息,包括包周期、按需计费 + + :param ConfirmCloudWafSubscriptionInfoRequest request + :return: ConfirmCloudWafSubscriptionInfoResponse + """ + + all_params = [] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/subscription', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ConfirmCloudWafSubscriptionInfoResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def confirm_user_bundle_async(self, request): + """获取用户套餐信息 + + 获取用户购买的WAF规格信息 + + :param ConfirmUserBundleRequest request + :return: ConfirmUserBundleResponse + """ + return self.confirm_user_bundle_with_http_info(request) + + def confirm_user_bundle_with_http_info(self, request): + """获取用户套餐信息 + + 获取用户购买的WAF规格信息 + + :param ConfirmUserBundleRequest request + :return: ConfirmUserBundleResponse + """ + + all_params = [] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/bundle', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ConfirmUserBundleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_anticrawler_rules_async(self, request): + """创建反爬虫规则 + + 创建反爬虫规则 + + :param CreateAnticrawlerRulesRequest request + :return: CreateAnticrawlerRulesResponse + """ + return self.create_anticrawler_rules_with_http_info(request) + + def create_anticrawler_rules_with_http_info(self, request): + """创建反爬虫规则 + + 创建反爬虫规则 + + :param CreateAnticrawlerRulesRequest request + :return: CreateAnticrawlerRulesResponse + """ + + all_params = ['policy_id', 'create_anticrawler_rules_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + 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_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/anticrawler', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateAnticrawlerRulesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_antileakage_rules_async(self, request): + """创建防敏感信息泄露规则 + + 创建防敏感信息泄露规则 + + :param CreateAntileakageRulesRequest request + :return: CreateAntileakageRulesResponse + """ + return self.create_antileakage_rules_with_http_info(request) + + def create_antileakage_rules_with_http_info(self, request): + """创建防敏感信息泄露规则 + + 创建防敏感信息泄露规则 + + :param CreateAntileakageRulesRequest request + :return: CreateAntileakageRulesResponse + """ + + all_params = ['policy_id', 'create_antileakage_rules_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + 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_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/antileakage', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateAntileakageRulesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_cc_rule_async(self, request): + """创建cc规则 + + 创建cc规则 + + :param CreateCcRuleRequest request + :return: CreateCcRuleResponse + """ + return self.create_cc_rule_with_http_info(request) + + def create_cc_rule_with_http_info(self, request): + """创建cc规则 + + 创建cc规则 + + :param CreateCcRuleRequest request + :return: CreateCcRuleResponse + """ + + all_params = ['policy_id', 'create_cc_rule_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + 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_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/cc', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateCcRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_certificate_async(self, request): + """创建证书 + + 创建证书 + + :param CreateCertificateRequest request + :return: CreateCertificateResponse + """ + return self.create_certificate_with_http_info(request) + + def create_certificate_with_http_info(self, request): + """创建证书 + + 创建证书 + + :param CreateCertificateRequest request + :return: CreateCertificateResponse + """ + + all_params = ['create_certificate_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/certificate', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateCertificateResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_custom_rules_async(self, request): + """创建精准防护规则 + + 创建精准防护规则 + + :param CreateCustomRulesRequest request + :return: CreateCustomRulesResponse + """ + return self.create_custom_rules_with_http_info(request) + + def create_custom_rules_with_http_info(self, request): + """创建精准防护规则 + + 创建精准防护规则 + + :param CreateCustomRulesRequest request + :return: CreateCustomRulesResponse + """ + + all_params = ['policy_id', 'create_custom_rules_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + 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_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/custom', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateCustomRulesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_geoip_rules_async(self, request): + """创建地理位置规则 + + 创建地理位置规则 + + :param CreateGeoipRulesRequest request + :return: CreateGeoipRulesResponse + """ + return self.create_geoip_rules_with_http_info(request) + + def create_geoip_rules_with_http_info(self, request): + """创建地理位置规则 + + 创建地理位置规则 + + :param CreateGeoipRulesRequest request + :return: CreateGeoipRulesResponse + """ + + all_params = ['policy_id', 'create_geoip_rules_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + 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_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/geoip', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateGeoipRulesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_instane_async(self, request): + """创建云模式防护域名 + + 创建云模式防护域名 + + :param CreateInstaneRequest request + :return: CreateInstaneResponse + """ + return self.create_instane_with_http_info(request) + + def create_instane_with_http_info(self, request): + """创建云模式防护域名 + + 创建云模式防护域名 + + :param CreateInstaneRequest request + :return: CreateInstaneResponse + """ + + all_params = ['create_instane_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/instance', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateInstaneResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_policy_async(self, request): + """创建防护策略 + + 创建防护策略 + + :param CreatePolicyRequest request + :return: CreatePolicyResponse + """ + return self.create_policy_with_http_info(request) + + def create_policy_with_http_info(self, request): + """创建防护策略 + + 创建防护策略 + + :param CreatePolicyRequest request + :return: CreatePolicyResponse + """ + + all_params = ['create_policy_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreatePolicyResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_premium_host_async(self, request): + """创建独享模式域名 + + 创建独享模式域名 + + :param CreatePremiumHostRequest request + :return: CreatePremiumHostResponse + """ + return self.create_premium_host_with_http_info(request) + + def create_premium_host_with_http_info(self, request): + """创建独享模式域名 + + 创建独享模式域名 + + :param CreatePremiumHostRequest request + :return: CreatePremiumHostResponse + """ + + all_params = ['create_premium_host_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/premium-waf/host', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreatePremiumHostResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_anticrawler_rule_async(self, request): + """删除反爬虫防护规则 + + 删除反爬虫防护规则 + + :param DeleteAnticrawlerRuleRequest request + :return: DeleteAnticrawlerRuleResponse + """ + return self.delete_anticrawler_rule_with_http_info(request) + + def delete_anticrawler_rule_with_http_info(self, request): + """删除反爬虫防护规则 + + 删除反爬虫防护规则 + + :param DeleteAnticrawlerRuleRequest request + :return: DeleteAnticrawlerRuleResponse + """ + + all_params = ['policy_id', 'rule_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/anticrawler/{rule_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteAnticrawlerRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_antileakage_rule_async(self, request): + """删除防敏感信息泄露防护规则 + + 删除防敏感信息泄露防护规则 + + :param DeleteAntileakageRuleRequest request + :return: DeleteAntileakageRuleResponse + """ + return self.delete_antileakage_rule_with_http_info(request) + + def delete_antileakage_rule_with_http_info(self, request): + """删除防敏感信息泄露防护规则 + + 删除防敏感信息泄露防护规则 + + :param DeleteAntileakageRuleRequest request + :return: DeleteAntileakageRuleResponse + """ + + all_params = ['policy_id', 'rule_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/antileakage/{rule_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteAntileakageRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_cc_rule_async(self, request): + """删除cc防护规则 + + 删除cc防护规则 + + :param DeleteCcRuleRequest request + :return: DeleteCcRuleResponse + """ + return self.delete_cc_rule_with_http_info(request) + + def delete_cc_rule_with_http_info(self, request): + """删除cc防护规则 + + 删除cc防护规则 + + :param DeleteCcRuleRequest request + :return: DeleteCcRuleResponse + """ + + all_params = ['policy_id', 'rule_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/cc/{rule_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteCcRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_certificate_async(self, request): + """删除证书 + + 删除证书 + + :param DeleteCertificateRequest request + :return: DeleteCertificateResponse + """ + return self.delete_certificate_with_http_info(request) + + def delete_certificate_with_http_info(self, request): + """删除证书 + + 删除证书 + + :param DeleteCertificateRequest request + :return: DeleteCertificateResponse + """ + + all_params = ['certificate_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'certificate_id' in local_var_params: + path_params['certificate_id'] = local_var_params['certificate_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/certificate/{certificate_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteCertificateResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_custom_rule_async(self, request): + """删除精准防护规则 + + 删除精准防护规则 + + :param DeleteCustomRuleRequest request + :return: DeleteCustomRuleResponse + """ + return self.delete_custom_rule_with_http_info(request) + + def delete_custom_rule_with_http_info(self, request): + """删除精准防护规则 + + 删除精准防护规则 + + :param DeleteCustomRuleRequest request + :return: DeleteCustomRuleResponse + """ + + all_params = ['policy_id', 'rule_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/custom/{rule_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteCustomRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_geoip_rule_async(self, request): + """删除地理位置防护规则 + + 删除地理位置防护规则 + + :param DeleteGeoipRuleRequest request + :return: DeleteGeoipRuleResponse + """ + return self.delete_geoip_rule_with_http_info(request) + + def delete_geoip_rule_with_http_info(self, request): + """删除地理位置防护规则 + + 删除地理位置防护规则 + + :param DeleteGeoipRuleRequest request + :return: DeleteGeoipRuleResponse + """ + + all_params = ['policy_id', 'rule_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/geoip/{rule_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteGeoipRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_instane_async(self, request): + """删除云模式防护域名 + + 删除云模式防护域名 + + :param DeleteInstaneRequest request + :return: DeleteInstaneResponse + """ + return self.delete_instane_with_http_info(request) + + def delete_instane_with_http_info(self, request): + """删除云模式防护域名 + + 删除云模式防护域名 + + :param DeleteInstaneRequest request + :return: DeleteInstaneResponse + """ + + all_params = ['instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + 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_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/instance/{instance_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteInstaneResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_policy_async(self, request): + """删除防护策略 + + 删除防护策略 + + :param DeletePolicyRequest request + :return: DeletePolicyResponse + """ + return self.delete_policy_with_http_info(request) + + def delete_policy_with_http_info(self, request): + """删除防护策略 + + 删除防护策略 + + :param DeletePolicyRequest request + :return: DeletePolicyResponse + """ + + all_params = ['policy_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + 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_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeletePolicyResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_premium_host_async(self, request): + """删除独享模式域名 + + 删除独享模式域名 + + :param DeletePremiumHostRequest request + :return: DeletePremiumHostResponse + """ + return self.delete_premium_host_with_http_info(request) + + def delete_premium_host_with_http_info(self, request): + """删除独享模式域名 + + 删除独享模式域名 + + :param DeletePremiumHostRequest request + :return: DeletePremiumHostResponse + """ + + all_params = ['host_id', 'keep_policy'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'host_id' in local_var_params: + path_params['host_id'] = local_var_params['host_id'] + + query_params = [] + if 'keep_policy' in local_var_params: + query_params.append(('keepPolicy', local_var_params['keep_policy'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/premium-waf/host/{host_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeletePremiumHostResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_anticrawler_rules_async(self, request): + """查询反爬虫规则列表 + + 查询反爬虫规则列表 + + :param ListAnticrawlerRulesRequest request + :return: ListAnticrawlerRulesResponse + """ + return self.list_anticrawler_rules_with_http_info(request) + + def list_anticrawler_rules_with_http_info(self, request): + """查询反爬虫规则列表 + + 查询反爬虫规则列表 + + :param ListAnticrawlerRulesRequest request + :return: ListAnticrawlerRulesResponse + """ + + all_params = ['policy_id', 'offset', 'limit'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + + query_params = [] + 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'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/anticrawler', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListAnticrawlerRulesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_antileakage_rules_async(self, request): + """查询防敏感信息泄露规则列表 + + 查询防敏感信息泄露规则列表 + + :param ListAntileakageRulesRequest request + :return: ListAntileakageRulesResponse + """ + return self.list_antileakage_rules_with_http_info(request) + + def list_antileakage_rules_with_http_info(self, request): + """查询防敏感信息泄露规则列表 + + 查询防敏感信息泄露规则列表 + + :param ListAntileakageRulesRequest request + :return: ListAntileakageRulesResponse + """ + + all_params = ['policy_id', 'offset', 'limit'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + + query_params = [] + 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'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/antileakage', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListAntileakageRulesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_attack_action_async(self, request): + """查询攻击防护类型 + + 查询攻击防护类型 + + :param ListAttackActionRequest request + :return: ListAttackActionResponse + """ + return self.list_attack_action_with_http_info(request) + + def list_attack_action_with_http_info(self, request): + """查询攻击防护类型 + + 查询攻击防护类型 + + :param ListAttackActionRequest request + :return: ListAttackActionResponse + """ + + all_params = ['_from', 'to', 'hosts', 'instances'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + if 'instances' in local_var_params: + query_params.append(('instances', local_var_params['instances'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/overviews/attack/action', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListAttackActionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_attack_distribution_async(self, request): + """查询攻击事件分布 + + 查询攻击事件分布 + + :param ListAttackDistributionRequest request + :return: ListAttackDistributionResponse + """ + return self.list_attack_distribution_with_http_info(request) + + def list_attack_distribution_with_http_info(self, request): + """查询攻击事件分布 + + 查询攻击事件分布 + + :param ListAttackDistributionRequest request + :return: ListAttackDistributionResponse + """ + + all_params = ['_from', 'to', 'hosts', 'instances'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + if 'instances' in local_var_params: + query_params.append(('instances', local_var_params['instances'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/overviews/attack/distribution', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListAttackDistributionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_bandwidth_timeline_async(self, request): + """查询安全统计带宽数据 + + 查询安全统计带宽数据 + + :param ListBandwidthTimelineRequest request + :return: ListBandwidthTimelineResponse + """ + return self.list_bandwidth_timeline_with_http_info(request) + + def list_bandwidth_timeline_with_http_info(self, request): + """查询安全统计带宽数据 + + 查询安全统计带宽数据 + + :param ListBandwidthTimelineRequest request + :return: ListBandwidthTimelineResponse + """ + + all_params = ['_from', 'to', 'hosts', 'instances', 'group_by'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + if 'instances' in local_var_params: + query_params.append(('instances', local_var_params['instances'])) + if 'group_by' in local_var_params: + query_params.append(('group_by', local_var_params['group_by'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/overviews/bandwidth/timeline', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListBandwidthTimelineResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_cc_rules_async(self, request): + """查询cc规则列表 + + 查询cc规则列表 + + :param ListCcRulesRequest request + :return: ListCcRulesResponse + """ + return self.list_cc_rules_with_http_info(request) + + def list_cc_rules_with_http_info(self, request): + """查询cc规则列表 + + 查询cc规则列表 + + :param ListCcRulesRequest request + :return: ListCcRulesResponse + """ + + all_params = ['policy_id', 'offset', 'limit'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + + query_params = [] + 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'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/cc', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListCcRulesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_certificates_async(self, request): + """查询证书列表 + + 查询证书列表 + + :param ListCertificatesRequest request + :return: ListCertificatesResponse + """ + return self.list_certificates_with_http_info(request) + + def list_certificates_with_http_info(self, request): + """查询证书列表 + + 查询证书列表 + + :param ListCertificatesRequest request + :return: ListCertificatesResponse + """ + + all_params = ['page', 'pagesize', 'name', 'host', 'exp_status'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'page' in local_var_params: + query_params.append(('page', local_var_params['page'])) + if 'pagesize' in local_var_params: + query_params.append(('pagesize', local_var_params['pagesize'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'host' in local_var_params: + query_params.append(('host', local_var_params['host'])) + if 'exp_status' in local_var_params: + query_params.append(('exp_status', local_var_params['exp_status'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/certificate', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListCertificatesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_custom_rules_async(self, request): + """查询精准防护规则列表 + + 查询精准防护规则列表 + + :param ListCustomRulesRequest request + :return: ListCustomRulesResponse + """ + return self.list_custom_rules_with_http_info(request) + + def list_custom_rules_with_http_info(self, request): + """查询精准防护规则列表 + + 查询精准防护规则列表 + + :param ListCustomRulesRequest request + :return: ListCustomRulesResponse + """ + + all_params = ['policy_id', 'offset', 'limit'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + + query_params = [] + 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'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/custom', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListCustomRulesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_event_by_timeline_async(self, request): + """查询请求/攻击数量统计 + + 查询请求/攻击数量统计。 + + :param ListEventByTimelineRequest request + :return: ListEventByTimelineResponse + """ + return self.list_event_by_timeline_with_http_info(request) + + def list_event_by_timeline_with_http_info(self, request): + """查询请求/攻击数量统计 + + 查询请求/攻击数量统计。 + + :param ListEventByTimelineRequest request + :return: ListEventByTimelineResponse + """ + + all_params = ['recent', 'hosts'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'recent' in local_var_params: + query_params.append(('recent', local_var_params['recent'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + collection_formats['hosts'] = 'csv' + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/event/timeline', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListEventByTimelineResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_events_async(self, request): + """查询攻击事件详情列表 + + 查询攻击事件详情列表 + + :param ListEventsRequest request + :return: ListEventsResponse + """ + return self.list_events_with_http_info(request) + + def list_events_with_http_info(self, request): + """查询攻击事件详情列表 + + 查询攻击事件详情列表 + + :param ListEventsRequest request + :return: ListEventsResponse + """ + + all_params = ['recent', 'hosts', 'page', 'pagesize'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'recent' in local_var_params: + query_params.append(('recent', local_var_params['recent'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + collection_formats['hosts'] = 'csv' + if 'page' in local_var_params: + query_params.append(('page', local_var_params['page'])) + if 'pagesize' in local_var_params: + query_params.append(('pagesize', local_var_params['pagesize'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/event', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListEventsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_geoip_rules_async(self, request): + """查询地理位置规则列表 + + 查询地理位置规则列表 + + :param ListGeoipRulesRequest request + :return: ListGeoipRulesResponse + """ + return self.list_geoip_rules_with_http_info(request) + + def list_geoip_rules_with_http_info(self, request): + """查询地理位置规则列表 + + 查询地理位置规则列表 + + :param ListGeoipRulesRequest request + :return: ListGeoipRulesResponse + """ + + all_params = ['policy_id', 'offset', 'limit'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + + query_params = [] + 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'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/geoip', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListGeoipRulesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_instance_async(self, request): + """查询WAF独享引擎列表 + + 查询WAF独享引擎列表 + + :param ListInstanceRequest request + :return: ListInstanceResponse + """ + return self.list_instance_with_http_info(request) + + def list_instance_with_http_info(self, request): + """查询WAF独享引擎列表 + + 查询WAF独享引擎列表 + + :param ListInstanceRequest request + :return: ListInstanceResponse + """ + + all_params = ['page', 'pagesize', 'instancename'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'page' in local_var_params: + query_params.append(('page', local_var_params['page'])) + if 'pagesize' in local_var_params: + query_params.append(('pagesize', local_var_params['pagesize'])) + if 'instancename' in local_var_params: + query_params.append(('instancename', local_var_params['instancename'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/premium-waf/instance', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListInstanceResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_instanes_async(self, request): + """查询云模式防护域名列表 + + 查询云模式防护域名列表 + + :param ListInstanesRequest request + :return: ListInstanesResponse + """ + return self.list_instanes_with_http_info(request) + + def list_instanes_with_http_info(self, request): + """查询云模式防护域名列表 + + 查询云模式防护域名列表 + + :param ListInstanesRequest request + :return: ListInstanesResponse + """ + + all_params = ['offset', 'limit'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + 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'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/instance', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListInstanesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_policy_async(self, request): + """查询防护策略列表 + + 查询防护策略列表 + + :param ListPolicyRequest request + :return: ListPolicyResponse + """ + return self.list_policy_with_http_info(request) + + def list_policy_with_http_info(self, request): + """查询防护策略列表 + + 查询防护策略列表 + + :param ListPolicyRequest request + :return: ListPolicyResponse + """ + + all_params = ['page', 'pagesize', 'name'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'page' in local_var_params: + query_params.append(('page', local_var_params['page'])) + if 'pagesize' in local_var_params: + query_params.append(('pagesize', local_var_params['pagesize'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListPolicyResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_premium_host_async(self, request): + """独享模式域名列表 + + 独享模式域名列表 + + :param ListPremiumHostRequest request + :return: ListPremiumHostResponse + """ + return self.list_premium_host_with_http_info(request) + + def list_premium_host_with_http_info(self, request): + """独享模式域名列表 + + 独享模式域名列表 + + :param ListPremiumHostRequest request + :return: ListPremiumHostResponse + """ + + all_params = ['page', 'pagesize', 'hostname', 'policyname', 'protect_status'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'page' in local_var_params: + query_params.append(('page', local_var_params['page'])) + if 'pagesize' in local_var_params: + query_params.append(('pagesize', local_var_params['pagesize'])) + if 'hostname' in local_var_params: + query_params.append(('hostname', local_var_params['hostname'])) + if 'policyname' in local_var_params: + query_params.append(('policyname', local_var_params['policyname'])) + if 'protect_status' in local_var_params: + query_params.append(('protect_status', local_var_params['protect_status'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/premium-waf/host', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListPremiumHostResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_qps_async(self, request): + """查询QPS + + 查询QPS。 + + :param ListQpsRequest request + :return: ListQpsResponse + """ + return self.list_qps_with_http_info(request) + + def list_qps_with_http_info(self, request): + """查询QPS + + 查询QPS。 + + :param ListQpsRequest request + :return: ListQpsResponse + """ + + all_params = ['recent', 'hosts'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'recent' in local_var_params: + query_params.append(('recent', local_var_params['recent'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + collection_formats['hosts'] = 'csv' + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/event/request/peak', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListQpsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_qps_timeline_async(self, request): + """查询安全统计qps次数 + + 查询安全统计qps次数 + + :param ListQpsTimelineRequest request + :return: ListQpsTimelineResponse + """ + return self.list_qps_timeline_with_http_info(request) + + def list_qps_timeline_with_http_info(self, request): + """查询安全统计qps次数 + + 查询安全统计qps次数 + + :param ListQpsTimelineRequest request + :return: ListQpsTimelineResponse + """ + + all_params = ['_from', 'to', 'hosts', 'instances', 'group_by'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + if 'instances' in local_var_params: + query_params.append(('instances', local_var_params['instances'])) + if 'group_by' in local_var_params: + query_params.append(('group_by', local_var_params['group_by'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/overviews/qps/timeline', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListQpsTimelineResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_request_timeline_async(self, request): + """查询安全统计请求次数 + + 查询安全统计请求次数 + + :param ListRequestTimelineRequest request + :return: ListRequestTimelineResponse + """ + return self.list_request_timeline_with_http_info(request) + + def list_request_timeline_with_http_info(self, request): + """查询安全统计请求次数 + + 查询安全统计请求次数 + + :param ListRequestTimelineRequest request + :return: ListRequestTimelineResponse + """ + + all_params = ['_from', 'to', 'hosts', 'instances', 'group_by'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + if 'instances' in local_var_params: + query_params.append(('instances', local_var_params['instances'])) + if 'group_by' in local_var_params: + query_params.append(('group_by', local_var_params['group_by'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/overviews/request/timeline', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListRequestTimelineResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_response_code_timeline_async(self, request): + """查询安全统计响应码数据 + + 查询安全统计响应码数据 + + :param ListResponseCodeTimelineRequest request + :return: ListResponseCodeTimelineResponse + """ + return self.list_response_code_timeline_with_http_info(request) + + def list_response_code_timeline_with_http_info(self, request): + """查询安全统计响应码数据 + + 查询安全统计响应码数据 + + :param ListResponseCodeTimelineRequest request + :return: ListResponseCodeTimelineResponse + """ + + all_params = ['_from', 'to', 'hosts', 'instances', 'response_source', 'group_by'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + if 'instances' in local_var_params: + query_params.append(('instances', local_var_params['instances'])) + if 'response_source' in local_var_params: + query_params.append(('response_source', local_var_params['response_source'])) + if 'group_by' in local_var_params: + query_params.append(('group_by', local_var_params['group_by'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/overviews/response-code/timeline', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListResponseCodeTimelineResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_source_domain_top5_async(self, request): + """查询被攻击次数前五的域名 + + 查询被攻击次数前五的域名 + + :param ListSourceDomainTop5Request request + :return: ListSourceDomainTop5Response + """ + return self.list_source_domain_top5_with_http_info(request) + + def list_source_domain_top5_with_http_info(self, request): + """查询被攻击次数前五的域名 + + 查询被攻击次数前五的域名 + + :param ListSourceDomainTop5Request request + :return: ListSourceDomainTop5Response + """ + + all_params = ['recent', 'hosts'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'recent' in local_var_params: + query_params.append(('recent', local_var_params['recent'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + collection_formats['hosts'] = 'csv' + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/event/attack/domain', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListSourceDomainTop5Response', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_source_ip_num_async(self, request): + """查询攻击源IP的个数 + + 查询攻击源IP的个数。 + + :param ListSourceIpNumRequest request + :return: ListSourceIpNumResponse + """ + return self.list_source_ip_num_with_http_info(request) + + def list_source_ip_num_with_http_info(self, request): + """查询攻击源IP的个数 + + 查询攻击源IP的个数。 + + :param ListSourceIpNumRequest request + :return: ListSourceIpNumResponse + """ + + all_params = ['recent', 'hosts'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'recent' in local_var_params: + query_params.append(('recent', local_var_params['recent'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + collection_formats['hosts'] = 'csv' + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/event/attack/source/num', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListSourceIpNumResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_source_ip_top5_async(self, request): + """查询攻击源ip + + 查询攻击源ip + + :param ListSourceIpTop5Request request + :return: ListSourceIpTop5Response + """ + return self.list_source_ip_top5_with_http_info(request) + + def list_source_ip_top5_with_http_info(self, request): + """查询攻击源ip + + 查询攻击源ip + + :param ListSourceIpTop5Request request + :return: ListSourceIpTop5Response + """ + + all_params = ['recent', 'hosts'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'recent' in local_var_params: + query_params.append(('recent', local_var_params['recent'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + collection_formats['hosts'] = 'csv' + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/event/attack/source', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListSourceIpTop5Response', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_source_url_top5_async(self, request): + """查询被攻击次数前五的url + + 查询被攻击次数前五的url + + :param ListSourceUrlTop5Request request + :return: ListSourceUrlTop5Response + """ + return self.list_source_url_top5_with_http_info(request) + + def list_source_url_top5_with_http_info(self, request): + """查询被攻击次数前五的url + + 查询被攻击次数前五的url + + :param ListSourceUrlTop5Request request + :return: ListSourceUrlTop5Response + """ + + all_params = ['recent', 'hosts'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'recent' in local_var_params: + query_params.append(('recent', local_var_params['recent'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + collection_formats['hosts'] = 'csv' + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/event/domain/url', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListSourceUrlTop5Response', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_statistics_async(self, request): + """查询安全总览请求数据 + + 查询安全总览请求数据 + + :param ListStatisticsRequest request + :return: ListStatisticsResponse + """ + return self.list_statistics_with_http_info(request) + + def list_statistics_with_http_info(self, request): + """查询安全总览请求数据 + + 查询安全总览请求数据 + + :param ListStatisticsRequest request + :return: ListStatisticsResponse + """ + + all_params = ['_from', 'to', 'hosts', 'instances'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + if 'instances' in local_var_params: + query_params.append(('instances', local_var_params['instances'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/overviews/statistics', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListStatisticsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_threats_async(self, request): + """查询攻击事件分布类型 + + 查询攻击事件分布类型。 + + :param ListThreatsRequest request + :return: ListThreatsResponse + """ + return self.list_threats_with_http_info(request) + + def list_threats_with_http_info(self, request): + """查询攻击事件分布类型 + + 查询攻击事件分布类型。 + + :param ListThreatsRequest request + :return: ListThreatsResponse + """ + + all_params = ['recent', 'hosts'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'recent' in local_var_params: + query_params.append(('recent', local_var_params['recent'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + collection_formats['hosts'] = 'csv' + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/event/attack/type', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListThreatsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_top_abnormal_async(self, request): + """查询业务异常监控 + + 查询业务异常监控 + + :param ListTopAbnormalRequest request + :return: ListTopAbnormalResponse + """ + return self.list_top_abnormal_with_http_info(request) + + def list_top_abnormal_with_http_info(self, request): + """查询业务异常监控 + + 查询业务异常监控 + + :param ListTopAbnormalRequest request + :return: ListTopAbnormalResponse + """ + + all_params = ['_from', 'to', 'top', 'code', 'hosts', 'instances'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'top' in local_var_params: + query_params.append(('top', local_var_params['top'])) + if 'code' in local_var_params: + query_params.append(('code', local_var_params['code'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + if 'instances' in local_var_params: + query_params.append(('instances', local_var_params['instances'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/overviews/abnormal', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListTopAbnormalResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_top_domain_async(self, request): + """查询攻击域名 + + 查询攻击域名 + + :param ListTopDomainRequest request + :return: ListTopDomainResponse + """ + return self.list_top_domain_with_http_info(request) + + def list_top_domain_with_http_info(self, request): + """查询攻击域名 + + 查询攻击域名 + + :param ListTopDomainRequest request + :return: ListTopDomainResponse + """ + + all_params = ['_from', 'to', 'top', 'hosts', 'instances'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'top' in local_var_params: + query_params.append(('top', local_var_params['top'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + if 'instances' in local_var_params: + query_params.append(('instances', local_var_params['instances'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/overviews/attack/domain', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListTopDomainResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_top_ip_async(self, request): + """查询攻击源ip + + 查询攻击源ip + + :param ListTopIpRequest request + :return: ListTopIpResponse + """ + return self.list_top_ip_with_http_info(request) + + def list_top_ip_with_http_info(self, request): + """查询攻击源ip + + 查询攻击源ip + + :param ListTopIpRequest request + :return: ListTopIpResponse + """ + + all_params = ['_from', 'to', 'top', 'hosts', 'instances'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'top' in local_var_params: + query_params.append(('top', local_var_params['top'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + if 'instances' in local_var_params: + query_params.append(('instances', local_var_params['instances'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/overviews/attack/ip', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListTopIpResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_top_region_async(self, request): + """查询攻击来源区域 + + 查询攻击来源区域 + + :param ListTopRegionRequest request + :return: ListTopRegionResponse + """ + return self.list_top_region_with_http_info(request) + + def list_top_region_with_http_info(self, request): + """查询攻击来源区域 + + 查询攻击来源区域 + + :param ListTopRegionRequest request + :return: ListTopRegionResponse + """ + + all_params = ['_from', 'to', 'top', 'hosts', 'instances'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'top' in local_var_params: + query_params.append(('top', local_var_params['top'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + if 'instances' in local_var_params: + query_params.append(('instances', local_var_params['instances'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/overviews/attack/region', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListTopRegionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_top_url_async(self, request): + """查询被攻击url + + 查询被攻击url + + :param ListTopUrlRequest request + :return: ListTopUrlResponse + """ + return self.list_top_url_with_http_info(request) + + def list_top_url_with_http_info(self, request): + """查询被攻击url + + 查询被攻击url + + :param ListTopUrlRequest request + :return: ListTopUrlResponse + """ + + all_params = ['_from', 'to', 'top', 'hosts', 'instances'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'top' in local_var_params: + query_params.append(('top', local_var_params['top'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + if 'instances' in local_var_params: + query_params.append(('instances', local_var_params['instances'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/overviews/attack/url', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListTopUrlResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_url_async(self, request): + """查询事件日志中的url + + 查询QPS。 + + :param ListUrlRequest request + :return: ListUrlResponse + """ + return self.list_url_with_http_info(request) + + def list_url_with_http_info(self, request): + """查询事件日志中的url + + 查询QPS。 + + :param ListUrlRequest request + :return: ListUrlResponse + """ + + all_params = ['top', 'recent', '_from', 'to', 'hosts', 'instances'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'top' in local_var_params: + query_params.append(('top', local_var_params['top'])) + if 'recent' in local_var_params: + query_params.append(('recent', local_var_params['recent'])) + if '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + collection_formats['hosts'] = 'csv' + if 'instances' in local_var_params: + query_params.append(('instances', local_var_params['instances'])) + collection_formats['instances'] = 'csv' + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/event/url', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListUrlResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_value_list_async(self, request): + """查询引用表列表 + + 查询引用表列表 + + :param ListValueListRequest request + :return: ListValueListResponse + """ + return self.list_value_list_with_http_info(request) + + def list_value_list_with_http_info(self, request): + """查询引用表列表 + + 查询引用表列表 + + :param ListValueListRequest request + :return: ListValueListResponse + """ + + all_params = [] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/valuelist', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListValueListResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_anticrawler_rule_async(self, request): + """查询反爬虫防护规则 + + 根据Id查询反爬虫防护规则 + + :param ShowAnticrawlerRuleRequest request + :return: ShowAnticrawlerRuleResponse + """ + return self.show_anticrawler_rule_with_http_info(request) + + def show_anticrawler_rule_with_http_info(self, request): + """查询反爬虫防护规则 + + 根据Id查询反爬虫防护规则 + + :param ShowAnticrawlerRuleRequest request + :return: ShowAnticrawlerRuleResponse + """ + + all_params = ['policy_id', 'rule_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/anticrawler/{rule_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowAnticrawlerRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_antileakage_rule_async(self, request): + """查询防敏感信息泄露防护规则 + + 根据Id查询防敏感信息泄露防护规则 + + :param ShowAntileakageRuleRequest request + :return: ShowAntileakageRuleResponse + """ + return self.show_antileakage_rule_with_http_info(request) + + def show_antileakage_rule_with_http_info(self, request): + """查询防敏感信息泄露防护规则 + + 根据Id查询防敏感信息泄露防护规则 + + :param ShowAntileakageRuleRequest request + :return: ShowAntileakageRuleResponse + """ + + all_params = ['policy_id', 'rule_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/antileakage/{rule_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowAntileakageRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_cc_rule_async(self, request): + """根据Id查询cc防护规则 + + 根据Id查询cc防护规则 + + :param ShowCcRuleRequest request + :return: ShowCcRuleResponse + """ + return self.show_cc_rule_with_http_info(request) + + def show_cc_rule_with_http_info(self, request): + """根据Id查询cc防护规则 + + 根据Id查询cc防护规则 + + :param ShowCcRuleRequest request + :return: ShowCcRuleResponse + """ + + all_params = ['policy_id', 'rule_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/cc/{rule_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowCcRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_certificate_async(self, request): + """查询证书 + + 查询证书 + + :param ShowCertificateRequest request + :return: ShowCertificateResponse + """ + return self.show_certificate_with_http_info(request) + + def show_certificate_with_http_info(self, request): + """查询证书 + + 查询证书 + + :param ShowCertificateRequest request + :return: ShowCertificateResponse + """ + + all_params = ['certificate_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'certificate_id' in local_var_params: + path_params['certificate_id'] = local_var_params['certificate_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/certificate/{certificate_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowCertificateResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_custom_rule_async(self, request): + """根据Id查询精准防护规则 + + 根据Id查询精准防护规则 + + :param ShowCustomRuleRequest request + :return: ShowCustomRuleResponse + """ + return self.show_custom_rule_with_http_info(request) + + def show_custom_rule_with_http_info(self, request): + """根据Id查询精准防护规则 + + 根据Id查询精准防护规则 + + :param ShowCustomRuleRequest request + :return: ShowCustomRuleResponse + """ + + all_params = ['policy_id', 'rule_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/custom/{rule_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowCustomRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_geoip_rule_async(self, request): + """根据Id查询地理位置防护规则 + + 根据Id查询地理位置防护规则 + + :param ShowGeoipRuleRequest request + :return: ShowGeoipRuleResponse + """ + return self.show_geoip_rule_with_http_info(request) + + def show_geoip_rule_with_http_info(self, request): + """根据Id查询地理位置防护规则 + + 根据Id查询地理位置防护规则 + + :param ShowGeoipRuleRequest request + :return: ShowGeoipRuleResponse + """ + + all_params = ['policy_id', 'rule_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/geoip/{rule_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowGeoipRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_instance_async(self, request): + """根据Id查询云模式防护域名 + + 根据Id查询云模式防护域名 + + :param ShowInstanceRequest request + :return: ShowInstanceResponse + """ + return self.show_instance_with_http_info(request) + + def show_instance_with_http_info(self, request): + """根据Id查询云模式防护域名 + + 根据Id查询云模式防护域名 + + :param ShowInstanceRequest request + :return: ShowInstanceResponse + """ + + all_params = ['instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + 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_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/instance/{instance_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowInstanceResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_instance_route_async(self, request): + """获取云模式域名路由信息 + + 返回路由信息 + + :param ShowInstanceRouteRequest request + :return: ShowInstanceRouteResponse + """ + return self.show_instance_route_with_http_info(request) + + def show_instance_route_with_http_info(self, request): + """获取云模式域名路由信息 + + 返回路由信息 + + :param ShowInstanceRouteRequest request + :return: ShowInstanceRouteResponse + """ + + all_params = ['instanceid'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'instanceid' in local_var_params: + path_params['instanceid'] = local_var_params['instanceid'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/instance/{instanceid}/route', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowInstanceRouteResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_premium_host_async(self, request): + """查看独享模式域名配置 + + 查看独享模式域名配置 + + :param ShowPremiumHostRequest request + :return: ShowPremiumHostResponse + """ + return self.show_premium_host_with_http_info(request) + + def show_premium_host_with_http_info(self, request): + """查看独享模式域名配置 + + 查看独享模式域名配置 + + :param ShowPremiumHostRequest request + :return: ShowPremiumHostResponse + """ + + all_params = ['host_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'host_id' in local_var_params: + path_params['host_id'] = local_var_params['host_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/premium-waf/host/{host_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowPremiumHostResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_anticrawler_rule_async(self, request): + """更新反爬虫防护规则 + + 更新反爬虫防护规则 + + :param UpdateAnticrawlerRuleRequest request + :return: UpdateAnticrawlerRuleResponse + """ + return self.update_anticrawler_rule_with_http_info(request) + + def update_anticrawler_rule_with_http_info(self, request): + """更新反爬虫防护规则 + + 更新反爬虫防护规则 + + :param UpdateAnticrawlerRuleRequest request + :return: UpdateAnticrawlerRuleResponse + """ + + all_params = ['policy_id', 'rule_id', 'update_anticrawler_rule_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/anticrawler/{rule_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateAnticrawlerRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_antileakage_rule_async(self, request): + """更新防敏感信息泄露防护规则 + + 更新防敏感信息泄露防护规则 + + :param UpdateAntileakageRuleRequest request + :return: UpdateAntileakageRuleResponse + """ + return self.update_antileakage_rule_with_http_info(request) + + def update_antileakage_rule_with_http_info(self, request): + """更新防敏感信息泄露防护规则 + + 更新防敏感信息泄露防护规则 + + :param UpdateAntileakageRuleRequest request + :return: UpdateAntileakageRuleResponse + """ + + all_params = ['policy_id', 'rule_id', 'update_antileakage_rule_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/antileakage/{rule_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateAntileakageRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_cc_rule_async(self, request): + """更新cc防护规则 + + 更新cc防护规则 + + :param UpdateCcRuleRequest request + :return: UpdateCcRuleResponse + """ + return self.update_cc_rule_with_http_info(request) + + def update_cc_rule_with_http_info(self, request): + """更新cc防护规则 + + 更新cc防护规则 + + :param UpdateCcRuleRequest request + :return: UpdateCcRuleResponse + """ + + all_params = ['policy_id', 'rule_id', 'update_cc_rule_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/cc/{rule_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateCcRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_certificate_async(self, request): + """修改证书 + + 修改证书 + + :param UpdateCertificateRequest request + :return: UpdateCertificateResponse + """ + return self.update_certificate_with_http_info(request) + + def update_certificate_with_http_info(self, request): + """修改证书 + + 修改证书 + + :param UpdateCertificateRequest request + :return: UpdateCertificateResponse + """ + + all_params = ['certificate_id', 'update_certificate_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'certificate_id' in local_var_params: + path_params['certificate_id'] = local_var_params['certificate_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/certificate/{certificate_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateCertificateResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_custom_rule_async(self, request): + """更新精准防护规则 + + 更新精准防护规则 + + :param UpdateCustomRuleRequest request + :return: UpdateCustomRuleResponse + """ + return self.update_custom_rule_with_http_info(request) + + def update_custom_rule_with_http_info(self, request): + """更新精准防护规则 + + 更新精准防护规则 + + :param UpdateCustomRuleRequest request + :return: UpdateCustomRuleResponse + """ + + all_params = ['policy_id', 'rule_id', 'update_custom_rule_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/custom/{rule_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateCustomRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_geoip_rule_async(self, request): + """更新地理位置防护规则 + + 更新地理位置防护规则 + + :param UpdateGeoipRuleRequest request + :return: UpdateGeoipRuleResponse + """ + return self.update_geoip_rule_with_http_info(request) + + def update_geoip_rule_with_http_info(self, request): + """更新地理位置防护规则 + + 更新地理位置防护规则 + + :param UpdateGeoipRuleRequest request + :return: UpdateGeoipRuleResponse + """ + + all_params = ['policy_id', 'rule_id', 'update_geoip_rule_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/geoip/{rule_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateGeoipRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_instance_async(self, request): + """更新云模式防护域名 + + 更新云模式防护域名 + + :param UpdateInstanceRequest request + :return: UpdateInstanceResponse + """ + return self.update_instance_with_http_info(request) + + def update_instance_with_http_info(self, request): + """更新云模式防护域名 + + 更新云模式防护域名 + + :param UpdateInstanceRequest request + :return: UpdateInstanceResponse + """ + + all_params = ['instance_id', 'update_instance_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + 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_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/instance/{instance_id}', + method='PATCH', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateInstanceResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_patch_policy_async(self, request): + """更新防护策略 + + 更新防护策略,请求体可只传需要更新的部分 + + :param UpdatePatchPolicyRequest request + :return: UpdatePatchPolicyResponse + """ + return self.update_patch_policy_with_http_info(request) + + def update_patch_policy_with_http_info(self, request): + """更新防护策略 + + 更新防护策略,请求体可只传需要更新的部分 + + :param UpdatePatchPolicyRequest request + :return: UpdatePatchPolicyResponse + """ + + all_params = ['policy_id', 'update_patch_policy_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + 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_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}', + method='PATCH', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdatePatchPolicyResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_premium_host_async(self, request): + """修改独享模式域名配置 + + 修改独享模式域名配置 + + :param UpdatePremiumHostRequest request + :return: UpdatePremiumHostResponse + """ + return self.update_premium_host_with_http_info(request) + + def update_premium_host_with_http_info(self, request): + """修改独享模式域名配置 + + 修改独享模式域名配置 + + :param UpdatePremiumHostRequest request + :return: UpdatePremiumHostResponse + """ + + all_params = ['host_id', 'update_premium_host_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'host_id' in local_var_params: + path_params['host_id'] = local_var_params['host_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/premium-waf/host/{host_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdatePremiumHostResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_premium_host_access_status_async(self, request): + """修改独享模式域名接入状态 + + 修改独享模式域名接入状态 + + :param UpdatePremiumHostAccessStatusRequest request + :return: UpdatePremiumHostAccessStatusResponse + """ + return self.update_premium_host_access_status_with_http_info(request) + + def update_premium_host_access_status_with_http_info(self, request): + """修改独享模式域名接入状态 + + 修改独享模式域名接入状态 + + :param UpdatePremiumHostAccessStatusRequest request + :return: UpdatePremiumHostAccessStatusResponse + """ + + all_params = ['host_id', 'update_premium_host_access_status_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'host_id' in local_var_params: + path_params['host_id'] = local_var_params['host_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/premium-waf/host/{host_id}/access_status', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdatePremiumHostAccessStatusResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_premium_host_protect_status_async(self, request): + """修改独享模式域名防护状态 + + 修改独享模式域名防护状态 + + :param UpdatePremiumHostProtectStatusRequest request + :return: UpdatePremiumHostProtectStatusResponse + """ + return self.update_premium_host_protect_status_with_http_info(request) + + def update_premium_host_protect_status_with_http_info(self, request): + """修改独享模式域名防护状态 + + 修改独享模式域名防护状态 + + :param UpdatePremiumHostProtectStatusRequest request + :return: UpdatePremiumHostProtectStatusResponse + """ + + all_params = ['host_id', 'update_premium_host_protect_status_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'host_id' in local_var_params: + path_params['host_id'] = local_var_params['host_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/premium-waf/host/{host_id}/protect_status', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdatePremiumHostProtectStatusResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_pool_async(self, request): + """创建WAF独享引擎组 + + 创建WAF独享引擎组 + + :param CreatePoolRequest request + :return: CreatePoolResponse + """ + return self.create_pool_with_http_info(request) + + def create_pool_with_http_info(self, request): + """创建WAF独享引擎组 + + 创建WAF独享引擎组 + + :param CreatePoolRequest request + :return: CreatePoolResponse + """ + + all_params = ['create_pool_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/premium-waf/pool', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreatePoolResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_pool_async(self, request): + """删除WAF独享引擎组 + + 删除WAF独享引擎组 + + :param DeletePoolRequest request + :return: DeletePoolResponse + """ + return self.delete_pool_with_http_info(request) + + def delete_pool_with_http_info(self, request): + """删除WAF独享引擎组 + + 删除WAF独享引擎组 + + :param DeletePoolRequest request + :return: DeletePoolResponse + """ + + all_params = ['pool_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'pool_id' in local_var_params: + path_params['pool_id'] = local_var_params['pool_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/premium-waf/pool/{pool_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeletePoolResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_pools_async(self, request): + """查询WAF独享引擎组列表 + + 查询WAF独享引擎组列表 + + :param ListPoolsRequest request + :return: ListPoolsResponse + """ + return self.list_pools_with_http_info(request) + + def list_pools_with_http_info(self, request): + """查询WAF独享引擎组列表 + + 查询WAF独享引擎组列表 + + :param ListPoolsRequest request + :return: ListPoolsResponse + """ + + all_params = ['page', 'pagesize', 'name', 'vpc_id', 'detail'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'page' in local_var_params: + query_params.append(('page', local_var_params['page'])) + if 'pagesize' in local_var_params: + query_params.append(('pagesize', local_var_params['pagesize'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'vpc_id' in local_var_params: + query_params.append(('vpc_id', local_var_params['vpc_id'])) + if 'detail' in local_var_params: + query_params.append(('detail', local_var_params['detail'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/premium-waf/pool', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListPoolsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_pool_async(self, request): + """查询WAF独享引擎组信息 + + 查询WAF独享引擎组信息 + + :param ShowPoolRequest request + :return: ShowPoolResponse + """ + return self.show_pool_with_http_info(request) + + def show_pool_with_http_info(self, request): + """查询WAF独享引擎组信息 + + 查询WAF独享引擎组信息 + + :param ShowPoolRequest request + :return: ShowPoolResponse + """ + + all_params = ['pool_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'pool_id' in local_var_params: + path_params['pool_id'] = local_var_params['pool_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/premium-waf/pool/{pool_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowPoolResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_pool_async(self, request): + """修改WAF独享引擎组信息 + + 修改WAF独享引擎组信息 + + :param UpdatePoolRequest request + :return: UpdatePoolResponse + """ + return self.update_pool_with_http_info(request) + + def update_pool_with_http_info(self, request): + """修改WAF独享引擎组信息 + + 修改WAF独享引擎组信息 + + :param UpdatePoolRequest request + :return: UpdatePoolResponse + """ + + all_params = ['pool_id', 'update_pool_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'pool_id' in local_var_params: + path_params['pool_id'] = local_var_params['pool_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/premium-waf/pool/{pool_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdatePoolResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, + post_params=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 dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: 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, + response_type=response_type, + response_headers=response_headers, + collection_formats=collection_formats, + request_type=request_type, + async_request=True) diff --git a/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/waf_client.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/waf_client.py new file mode 100644 index 0000000000..a9c38e4f92 --- /dev/null +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/waf_client.py @@ -0,0 +1,5183 @@ +# coding: utf-8 + +from __future__ import absolute_import + +import datetime +import re +import importlib + +import six + +from huaweicloudsdkcore.client import Client, ClientBuilder +from huaweicloudsdkcore.exceptions import exceptions +from huaweicloudsdkcore.utils import http_utils +from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest + + +class WafClient(Client): + """ + :param configuration: .Configuration object for this client + :param pool_threads: The number of threads to use for async requests + to the API. More threads means more concurrent API requests. + """ + + PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int if six.PY3 else long, + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'object': object, + } + + def __init__(self): + super(WafClient, self).__init__() + self.model_package = importlib.import_module("huaweicloudsdkwaf.v1.model") + self.preset_headers = {'User-Agent': 'HuaweiCloud-SDK-Python'} + + @classmethod + def new_builder(cls, clazz=None): + if clazz is None: + return ClientBuilder(cls) + + if clazz.__name__ != "WafClient": + raise TypeError("client type error, support client type is WafClient") + + return ClientBuilder(clazz) + + def confirm_cloud_waf_subscription_info(self, request): + """查询租户云模式订购信息 + + 查询租户云模式订购信息,包括包周期、按需计费 + + :param ConfirmCloudWafSubscriptionInfoRequest request + :return: ConfirmCloudWafSubscriptionInfoResponse + """ + return self.confirm_cloud_waf_subscription_info_with_http_info(request) + + def confirm_cloud_waf_subscription_info_with_http_info(self, request): + """查询租户云模式订购信息 + + 查询租户云模式订购信息,包括包周期、按需计费 + + :param ConfirmCloudWafSubscriptionInfoRequest request + :return: ConfirmCloudWafSubscriptionInfoResponse + """ + + all_params = [] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/subscription', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ConfirmCloudWafSubscriptionInfoResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def confirm_user_bundle(self, request): + """获取用户套餐信息 + + 获取用户购买的WAF规格信息 + + :param ConfirmUserBundleRequest request + :return: ConfirmUserBundleResponse + """ + return self.confirm_user_bundle_with_http_info(request) + + def confirm_user_bundle_with_http_info(self, request): + """获取用户套餐信息 + + 获取用户购买的WAF规格信息 + + :param ConfirmUserBundleRequest request + :return: ConfirmUserBundleResponse + """ + + all_params = [] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/bundle', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ConfirmUserBundleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_anticrawler_rules(self, request): + """创建反爬虫规则 + + 创建反爬虫规则 + + :param CreateAnticrawlerRulesRequest request + :return: CreateAnticrawlerRulesResponse + """ + return self.create_anticrawler_rules_with_http_info(request) + + def create_anticrawler_rules_with_http_info(self, request): + """创建反爬虫规则 + + 创建反爬虫规则 + + :param CreateAnticrawlerRulesRequest request + :return: CreateAnticrawlerRulesResponse + """ + + all_params = ['policy_id', 'create_anticrawler_rules_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + 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_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/anticrawler', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateAnticrawlerRulesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_antileakage_rules(self, request): + """创建防敏感信息泄露规则 + + 创建防敏感信息泄露规则 + + :param CreateAntileakageRulesRequest request + :return: CreateAntileakageRulesResponse + """ + return self.create_antileakage_rules_with_http_info(request) + + def create_antileakage_rules_with_http_info(self, request): + """创建防敏感信息泄露规则 + + 创建防敏感信息泄露规则 + + :param CreateAntileakageRulesRequest request + :return: CreateAntileakageRulesResponse + """ + + all_params = ['policy_id', 'create_antileakage_rules_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + 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_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/antileakage', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateAntileakageRulesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_cc_rule(self, request): + """创建cc规则 + + 创建cc规则 + + :param CreateCcRuleRequest request + :return: CreateCcRuleResponse + """ + return self.create_cc_rule_with_http_info(request) + + def create_cc_rule_with_http_info(self, request): + """创建cc规则 + + 创建cc规则 + + :param CreateCcRuleRequest request + :return: CreateCcRuleResponse + """ + + all_params = ['policy_id', 'create_cc_rule_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + 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_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/cc', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateCcRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_certificate(self, request): + """创建证书 + + 创建证书 + + :param CreateCertificateRequest request + :return: CreateCertificateResponse + """ + return self.create_certificate_with_http_info(request) + + def create_certificate_with_http_info(self, request): + """创建证书 + + 创建证书 + + :param CreateCertificateRequest request + :return: CreateCertificateResponse + """ + + all_params = ['create_certificate_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/certificate', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateCertificateResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_custom_rules(self, request): + """创建精准防护规则 + + 创建精准防护规则 + + :param CreateCustomRulesRequest request + :return: CreateCustomRulesResponse + """ + return self.create_custom_rules_with_http_info(request) + + def create_custom_rules_with_http_info(self, request): + """创建精准防护规则 + + 创建精准防护规则 + + :param CreateCustomRulesRequest request + :return: CreateCustomRulesResponse + """ + + all_params = ['policy_id', 'create_custom_rules_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + 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_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/custom', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateCustomRulesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_geoip_rules(self, request): + """创建地理位置规则 + + 创建地理位置规则 + + :param CreateGeoipRulesRequest request + :return: CreateGeoipRulesResponse + """ + return self.create_geoip_rules_with_http_info(request) + + def create_geoip_rules_with_http_info(self, request): + """创建地理位置规则 + + 创建地理位置规则 + + :param CreateGeoipRulesRequest request + :return: CreateGeoipRulesResponse + """ + + all_params = ['policy_id', 'create_geoip_rules_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + 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_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/geoip', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateGeoipRulesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_instane(self, request): + """创建云模式防护域名 + + 创建云模式防护域名 + + :param CreateInstaneRequest request + :return: CreateInstaneResponse + """ + return self.create_instane_with_http_info(request) + + def create_instane_with_http_info(self, request): + """创建云模式防护域名 + + 创建云模式防护域名 + + :param CreateInstaneRequest request + :return: CreateInstaneResponse + """ + + all_params = ['create_instane_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/instance', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateInstaneResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_policy(self, request): + """创建防护策略 + + 创建防护策略 + + :param CreatePolicyRequest request + :return: CreatePolicyResponse + """ + return self.create_policy_with_http_info(request) + + def create_policy_with_http_info(self, request): + """创建防护策略 + + 创建防护策略 + + :param CreatePolicyRequest request + :return: CreatePolicyResponse + """ + + all_params = ['create_policy_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreatePolicyResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_premium_host(self, request): + """创建独享模式域名 + + 创建独享模式域名 + + :param CreatePremiumHostRequest request + :return: CreatePremiumHostResponse + """ + return self.create_premium_host_with_http_info(request) + + def create_premium_host_with_http_info(self, request): + """创建独享模式域名 + + 创建独享模式域名 + + :param CreatePremiumHostRequest request + :return: CreatePremiumHostResponse + """ + + all_params = ['create_premium_host_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/premium-waf/host', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreatePremiumHostResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_anticrawler_rule(self, request): + """删除反爬虫防护规则 + + 删除反爬虫防护规则 + + :param DeleteAnticrawlerRuleRequest request + :return: DeleteAnticrawlerRuleResponse + """ + return self.delete_anticrawler_rule_with_http_info(request) + + def delete_anticrawler_rule_with_http_info(self, request): + """删除反爬虫防护规则 + + 删除反爬虫防护规则 + + :param DeleteAnticrawlerRuleRequest request + :return: DeleteAnticrawlerRuleResponse + """ + + all_params = ['policy_id', 'rule_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/anticrawler/{rule_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteAnticrawlerRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_antileakage_rule(self, request): + """删除防敏感信息泄露防护规则 + + 删除防敏感信息泄露防护规则 + + :param DeleteAntileakageRuleRequest request + :return: DeleteAntileakageRuleResponse + """ + return self.delete_antileakage_rule_with_http_info(request) + + def delete_antileakage_rule_with_http_info(self, request): + """删除防敏感信息泄露防护规则 + + 删除防敏感信息泄露防护规则 + + :param DeleteAntileakageRuleRequest request + :return: DeleteAntileakageRuleResponse + """ + + all_params = ['policy_id', 'rule_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/antileakage/{rule_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteAntileakageRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_cc_rule(self, request): + """删除cc防护规则 + + 删除cc防护规则 + + :param DeleteCcRuleRequest request + :return: DeleteCcRuleResponse + """ + return self.delete_cc_rule_with_http_info(request) + + def delete_cc_rule_with_http_info(self, request): + """删除cc防护规则 + + 删除cc防护规则 + + :param DeleteCcRuleRequest request + :return: DeleteCcRuleResponse + """ + + all_params = ['policy_id', 'rule_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/cc/{rule_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteCcRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_certificate(self, request): + """删除证书 + + 删除证书 + + :param DeleteCertificateRequest request + :return: DeleteCertificateResponse + """ + return self.delete_certificate_with_http_info(request) + + def delete_certificate_with_http_info(self, request): + """删除证书 + + 删除证书 + + :param DeleteCertificateRequest request + :return: DeleteCertificateResponse + """ + + all_params = ['certificate_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'certificate_id' in local_var_params: + path_params['certificate_id'] = local_var_params['certificate_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/certificate/{certificate_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteCertificateResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_custom_rule(self, request): + """删除精准防护规则 + + 删除精准防护规则 + + :param DeleteCustomRuleRequest request + :return: DeleteCustomRuleResponse + """ + return self.delete_custom_rule_with_http_info(request) + + def delete_custom_rule_with_http_info(self, request): + """删除精准防护规则 + + 删除精准防护规则 + + :param DeleteCustomRuleRequest request + :return: DeleteCustomRuleResponse + """ + + all_params = ['policy_id', 'rule_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/custom/{rule_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteCustomRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_geoip_rule(self, request): + """删除地理位置防护规则 + + 删除地理位置防护规则 + + :param DeleteGeoipRuleRequest request + :return: DeleteGeoipRuleResponse + """ + return self.delete_geoip_rule_with_http_info(request) + + def delete_geoip_rule_with_http_info(self, request): + """删除地理位置防护规则 + + 删除地理位置防护规则 + + :param DeleteGeoipRuleRequest request + :return: DeleteGeoipRuleResponse + """ + + all_params = ['policy_id', 'rule_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/geoip/{rule_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteGeoipRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_instane(self, request): + """删除云模式防护域名 + + 删除云模式防护域名 + + :param DeleteInstaneRequest request + :return: DeleteInstaneResponse + """ + return self.delete_instane_with_http_info(request) + + def delete_instane_with_http_info(self, request): + """删除云模式防护域名 + + 删除云模式防护域名 + + :param DeleteInstaneRequest request + :return: DeleteInstaneResponse + """ + + all_params = ['instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + 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_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/instance/{instance_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteInstaneResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_policy(self, request): + """删除防护策略 + + 删除防护策略 + + :param DeletePolicyRequest request + :return: DeletePolicyResponse + """ + return self.delete_policy_with_http_info(request) + + def delete_policy_with_http_info(self, request): + """删除防护策略 + + 删除防护策略 + + :param DeletePolicyRequest request + :return: DeletePolicyResponse + """ + + all_params = ['policy_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + 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_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeletePolicyResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_premium_host(self, request): + """删除独享模式域名 + + 删除独享模式域名 + + :param DeletePremiumHostRequest request + :return: DeletePremiumHostResponse + """ + return self.delete_premium_host_with_http_info(request) + + def delete_premium_host_with_http_info(self, request): + """删除独享模式域名 + + 删除独享模式域名 + + :param DeletePremiumHostRequest request + :return: DeletePremiumHostResponse + """ + + all_params = ['host_id', 'keep_policy'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'host_id' in local_var_params: + path_params['host_id'] = local_var_params['host_id'] + + query_params = [] + if 'keep_policy' in local_var_params: + query_params.append(('keepPolicy', local_var_params['keep_policy'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/premium-waf/host/{host_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeletePremiumHostResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_anticrawler_rules(self, request): + """查询反爬虫规则列表 + + 查询反爬虫规则列表 + + :param ListAnticrawlerRulesRequest request + :return: ListAnticrawlerRulesResponse + """ + return self.list_anticrawler_rules_with_http_info(request) + + def list_anticrawler_rules_with_http_info(self, request): + """查询反爬虫规则列表 + + 查询反爬虫规则列表 + + :param ListAnticrawlerRulesRequest request + :return: ListAnticrawlerRulesResponse + """ + + all_params = ['policy_id', 'offset', 'limit'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + + query_params = [] + 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'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/anticrawler', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListAnticrawlerRulesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_antileakage_rules(self, request): + """查询防敏感信息泄露规则列表 + + 查询防敏感信息泄露规则列表 + + :param ListAntileakageRulesRequest request + :return: ListAntileakageRulesResponse + """ + return self.list_antileakage_rules_with_http_info(request) + + def list_antileakage_rules_with_http_info(self, request): + """查询防敏感信息泄露规则列表 + + 查询防敏感信息泄露规则列表 + + :param ListAntileakageRulesRequest request + :return: ListAntileakageRulesResponse + """ + + all_params = ['policy_id', 'offset', 'limit'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + + query_params = [] + 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'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/antileakage', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListAntileakageRulesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_attack_action(self, request): + """查询攻击防护类型 + + 查询攻击防护类型 + + :param ListAttackActionRequest request + :return: ListAttackActionResponse + """ + return self.list_attack_action_with_http_info(request) + + def list_attack_action_with_http_info(self, request): + """查询攻击防护类型 + + 查询攻击防护类型 + + :param ListAttackActionRequest request + :return: ListAttackActionResponse + """ + + all_params = ['_from', 'to', 'hosts', 'instances'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + if 'instances' in local_var_params: + query_params.append(('instances', local_var_params['instances'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/overviews/attack/action', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListAttackActionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_attack_distribution(self, request): + """查询攻击事件分布 + + 查询攻击事件分布 + + :param ListAttackDistributionRequest request + :return: ListAttackDistributionResponse + """ + return self.list_attack_distribution_with_http_info(request) + + def list_attack_distribution_with_http_info(self, request): + """查询攻击事件分布 + + 查询攻击事件分布 + + :param ListAttackDistributionRequest request + :return: ListAttackDistributionResponse + """ + + all_params = ['_from', 'to', 'hosts', 'instances'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + if 'instances' in local_var_params: + query_params.append(('instances', local_var_params['instances'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/overviews/attack/distribution', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListAttackDistributionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_bandwidth_timeline(self, request): + """查询安全统计带宽数据 + + 查询安全统计带宽数据 + + :param ListBandwidthTimelineRequest request + :return: ListBandwidthTimelineResponse + """ + return self.list_bandwidth_timeline_with_http_info(request) + + def list_bandwidth_timeline_with_http_info(self, request): + """查询安全统计带宽数据 + + 查询安全统计带宽数据 + + :param ListBandwidthTimelineRequest request + :return: ListBandwidthTimelineResponse + """ + + all_params = ['_from', 'to', 'hosts', 'instances', 'group_by'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + if 'instances' in local_var_params: + query_params.append(('instances', local_var_params['instances'])) + if 'group_by' in local_var_params: + query_params.append(('group_by', local_var_params['group_by'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/overviews/bandwidth/timeline', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListBandwidthTimelineResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_cc_rules(self, request): + """查询cc规则列表 + + 查询cc规则列表 + + :param ListCcRulesRequest request + :return: ListCcRulesResponse + """ + return self.list_cc_rules_with_http_info(request) + + def list_cc_rules_with_http_info(self, request): + """查询cc规则列表 + + 查询cc规则列表 + + :param ListCcRulesRequest request + :return: ListCcRulesResponse + """ + + all_params = ['policy_id', 'offset', 'limit'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + + query_params = [] + 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'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/cc', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListCcRulesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_certificates(self, request): + """查询证书列表 + + 查询证书列表 + + :param ListCertificatesRequest request + :return: ListCertificatesResponse + """ + return self.list_certificates_with_http_info(request) + + def list_certificates_with_http_info(self, request): + """查询证书列表 + + 查询证书列表 + + :param ListCertificatesRequest request + :return: ListCertificatesResponse + """ + + all_params = ['page', 'pagesize', 'name', 'host', 'exp_status'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'page' in local_var_params: + query_params.append(('page', local_var_params['page'])) + if 'pagesize' in local_var_params: + query_params.append(('pagesize', local_var_params['pagesize'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'host' in local_var_params: + query_params.append(('host', local_var_params['host'])) + if 'exp_status' in local_var_params: + query_params.append(('exp_status', local_var_params['exp_status'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/certificate', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListCertificatesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_custom_rules(self, request): + """查询精准防护规则列表 + + 查询精准防护规则列表 + + :param ListCustomRulesRequest request + :return: ListCustomRulesResponse + """ + return self.list_custom_rules_with_http_info(request) + + def list_custom_rules_with_http_info(self, request): + """查询精准防护规则列表 + + 查询精准防护规则列表 + + :param ListCustomRulesRequest request + :return: ListCustomRulesResponse + """ + + all_params = ['policy_id', 'offset', 'limit'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + + query_params = [] + 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'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/custom', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListCustomRulesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_event_by_timeline(self, request): + """查询请求/攻击数量统计 + + 查询请求/攻击数量统计。 + + :param ListEventByTimelineRequest request + :return: ListEventByTimelineResponse + """ + return self.list_event_by_timeline_with_http_info(request) + + def list_event_by_timeline_with_http_info(self, request): + """查询请求/攻击数量统计 + + 查询请求/攻击数量统计。 + + :param ListEventByTimelineRequest request + :return: ListEventByTimelineResponse + """ + + all_params = ['recent', 'hosts'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'recent' in local_var_params: + query_params.append(('recent', local_var_params['recent'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + collection_formats['hosts'] = 'csv' + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/event/timeline', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListEventByTimelineResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_events(self, request): + """查询攻击事件详情列表 + + 查询攻击事件详情列表 + + :param ListEventsRequest request + :return: ListEventsResponse + """ + return self.list_events_with_http_info(request) + + def list_events_with_http_info(self, request): + """查询攻击事件详情列表 + + 查询攻击事件详情列表 + + :param ListEventsRequest request + :return: ListEventsResponse + """ + + all_params = ['recent', 'hosts', 'page', 'pagesize'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'recent' in local_var_params: + query_params.append(('recent', local_var_params['recent'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + collection_formats['hosts'] = 'csv' + if 'page' in local_var_params: + query_params.append(('page', local_var_params['page'])) + if 'pagesize' in local_var_params: + query_params.append(('pagesize', local_var_params['pagesize'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/event', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListEventsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_geoip_rules(self, request): + """查询地理位置规则列表 + + 查询地理位置规则列表 + + :param ListGeoipRulesRequest request + :return: ListGeoipRulesResponse + """ + return self.list_geoip_rules_with_http_info(request) + + def list_geoip_rules_with_http_info(self, request): + """查询地理位置规则列表 + + 查询地理位置规则列表 + + :param ListGeoipRulesRequest request + :return: ListGeoipRulesResponse + """ + + all_params = ['policy_id', 'offset', 'limit'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + + query_params = [] + 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'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/geoip', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListGeoipRulesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_instance(self, request): + """查询WAF独享引擎列表 + + 查询WAF独享引擎列表 + + :param ListInstanceRequest request + :return: ListInstanceResponse + """ + return self.list_instance_with_http_info(request) + + def list_instance_with_http_info(self, request): + """查询WAF独享引擎列表 + + 查询WAF独享引擎列表 + + :param ListInstanceRequest request + :return: ListInstanceResponse + """ + + all_params = ['page', 'pagesize', 'instancename'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'page' in local_var_params: + query_params.append(('page', local_var_params['page'])) + if 'pagesize' in local_var_params: + query_params.append(('pagesize', local_var_params['pagesize'])) + if 'instancename' in local_var_params: + query_params.append(('instancename', local_var_params['instancename'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/premium-waf/instance', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListInstanceResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_instanes(self, request): + """查询云模式防护域名列表 + + 查询云模式防护域名列表 + + :param ListInstanesRequest request + :return: ListInstanesResponse + """ + return self.list_instanes_with_http_info(request) + + def list_instanes_with_http_info(self, request): + """查询云模式防护域名列表 + + 查询云模式防护域名列表 + + :param ListInstanesRequest request + :return: ListInstanesResponse + """ + + all_params = ['offset', 'limit'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + 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'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/instance', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListInstanesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_policy(self, request): + """查询防护策略列表 + + 查询防护策略列表 + + :param ListPolicyRequest request + :return: ListPolicyResponse + """ + return self.list_policy_with_http_info(request) + + def list_policy_with_http_info(self, request): + """查询防护策略列表 + + 查询防护策略列表 + + :param ListPolicyRequest request + :return: ListPolicyResponse + """ + + all_params = ['page', 'pagesize', 'name'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'page' in local_var_params: + query_params.append(('page', local_var_params['page'])) + if 'pagesize' in local_var_params: + query_params.append(('pagesize', local_var_params['pagesize'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListPolicyResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_premium_host(self, request): + """独享模式域名列表 + + 独享模式域名列表 + + :param ListPremiumHostRequest request + :return: ListPremiumHostResponse + """ + return self.list_premium_host_with_http_info(request) + + def list_premium_host_with_http_info(self, request): + """独享模式域名列表 + + 独享模式域名列表 + + :param ListPremiumHostRequest request + :return: ListPremiumHostResponse + """ + + all_params = ['page', 'pagesize', 'hostname', 'policyname', 'protect_status'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'page' in local_var_params: + query_params.append(('page', local_var_params['page'])) + if 'pagesize' in local_var_params: + query_params.append(('pagesize', local_var_params['pagesize'])) + if 'hostname' in local_var_params: + query_params.append(('hostname', local_var_params['hostname'])) + if 'policyname' in local_var_params: + query_params.append(('policyname', local_var_params['policyname'])) + if 'protect_status' in local_var_params: + query_params.append(('protect_status', local_var_params['protect_status'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/premium-waf/host', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListPremiumHostResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_qps(self, request): + """查询QPS + + 查询QPS。 + + :param ListQpsRequest request + :return: ListQpsResponse + """ + return self.list_qps_with_http_info(request) + + def list_qps_with_http_info(self, request): + """查询QPS + + 查询QPS。 + + :param ListQpsRequest request + :return: ListQpsResponse + """ + + all_params = ['recent', 'hosts'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'recent' in local_var_params: + query_params.append(('recent', local_var_params['recent'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + collection_formats['hosts'] = 'csv' + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/event/request/peak', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListQpsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_qps_timeline(self, request): + """查询安全统计qps次数 + + 查询安全统计qps次数 + + :param ListQpsTimelineRequest request + :return: ListQpsTimelineResponse + """ + return self.list_qps_timeline_with_http_info(request) + + def list_qps_timeline_with_http_info(self, request): + """查询安全统计qps次数 + + 查询安全统计qps次数 + + :param ListQpsTimelineRequest request + :return: ListQpsTimelineResponse + """ + + all_params = ['_from', 'to', 'hosts', 'instances', 'group_by'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + if 'instances' in local_var_params: + query_params.append(('instances', local_var_params['instances'])) + if 'group_by' in local_var_params: + query_params.append(('group_by', local_var_params['group_by'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/overviews/qps/timeline', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListQpsTimelineResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_request_timeline(self, request): + """查询安全统计请求次数 + + 查询安全统计请求次数 + + :param ListRequestTimelineRequest request + :return: ListRequestTimelineResponse + """ + return self.list_request_timeline_with_http_info(request) + + def list_request_timeline_with_http_info(self, request): + """查询安全统计请求次数 + + 查询安全统计请求次数 + + :param ListRequestTimelineRequest request + :return: ListRequestTimelineResponse + """ + + all_params = ['_from', 'to', 'hosts', 'instances', 'group_by'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + if 'instances' in local_var_params: + query_params.append(('instances', local_var_params['instances'])) + if 'group_by' in local_var_params: + query_params.append(('group_by', local_var_params['group_by'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/overviews/request/timeline', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListRequestTimelineResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_response_code_timeline(self, request): + """查询安全统计响应码数据 + + 查询安全统计响应码数据 + + :param ListResponseCodeTimelineRequest request + :return: ListResponseCodeTimelineResponse + """ + return self.list_response_code_timeline_with_http_info(request) + + def list_response_code_timeline_with_http_info(self, request): + """查询安全统计响应码数据 + + 查询安全统计响应码数据 + + :param ListResponseCodeTimelineRequest request + :return: ListResponseCodeTimelineResponse + """ + + all_params = ['_from', 'to', 'hosts', 'instances', 'response_source', 'group_by'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + if 'instances' in local_var_params: + query_params.append(('instances', local_var_params['instances'])) + if 'response_source' in local_var_params: + query_params.append(('response_source', local_var_params['response_source'])) + if 'group_by' in local_var_params: + query_params.append(('group_by', local_var_params['group_by'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/overviews/response-code/timeline', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListResponseCodeTimelineResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_source_domain_top5(self, request): + """查询被攻击次数前五的域名 + + 查询被攻击次数前五的域名 + + :param ListSourceDomainTop5Request request + :return: ListSourceDomainTop5Response + """ + return self.list_source_domain_top5_with_http_info(request) + + def list_source_domain_top5_with_http_info(self, request): + """查询被攻击次数前五的域名 + + 查询被攻击次数前五的域名 + + :param ListSourceDomainTop5Request request + :return: ListSourceDomainTop5Response + """ + + all_params = ['recent', 'hosts'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'recent' in local_var_params: + query_params.append(('recent', local_var_params['recent'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + collection_formats['hosts'] = 'csv' + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/event/attack/domain', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListSourceDomainTop5Response', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_source_ip_num(self, request): + """查询攻击源IP的个数 + + 查询攻击源IP的个数。 + + :param ListSourceIpNumRequest request + :return: ListSourceIpNumResponse + """ + return self.list_source_ip_num_with_http_info(request) + + def list_source_ip_num_with_http_info(self, request): + """查询攻击源IP的个数 + + 查询攻击源IP的个数。 + + :param ListSourceIpNumRequest request + :return: ListSourceIpNumResponse + """ + + all_params = ['recent', 'hosts'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'recent' in local_var_params: + query_params.append(('recent', local_var_params['recent'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + collection_formats['hosts'] = 'csv' + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/event/attack/source/num', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListSourceIpNumResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_source_ip_top5(self, request): + """查询攻击源ip + + 查询攻击源ip + + :param ListSourceIpTop5Request request + :return: ListSourceIpTop5Response + """ + return self.list_source_ip_top5_with_http_info(request) + + def list_source_ip_top5_with_http_info(self, request): + """查询攻击源ip + + 查询攻击源ip + + :param ListSourceIpTop5Request request + :return: ListSourceIpTop5Response + """ + + all_params = ['recent', 'hosts'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'recent' in local_var_params: + query_params.append(('recent', local_var_params['recent'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + collection_formats['hosts'] = 'csv' + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/event/attack/source', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListSourceIpTop5Response', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_source_url_top5(self, request): + """查询被攻击次数前五的url + + 查询被攻击次数前五的url + + :param ListSourceUrlTop5Request request + :return: ListSourceUrlTop5Response + """ + return self.list_source_url_top5_with_http_info(request) + + def list_source_url_top5_with_http_info(self, request): + """查询被攻击次数前五的url + + 查询被攻击次数前五的url + + :param ListSourceUrlTop5Request request + :return: ListSourceUrlTop5Response + """ + + all_params = ['recent', 'hosts'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'recent' in local_var_params: + query_params.append(('recent', local_var_params['recent'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + collection_formats['hosts'] = 'csv' + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/event/domain/url', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListSourceUrlTop5Response', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_statistics(self, request): + """查询安全总览请求数据 + + 查询安全总览请求数据 + + :param ListStatisticsRequest request + :return: ListStatisticsResponse + """ + return self.list_statistics_with_http_info(request) + + def list_statistics_with_http_info(self, request): + """查询安全总览请求数据 + + 查询安全总览请求数据 + + :param ListStatisticsRequest request + :return: ListStatisticsResponse + """ + + all_params = ['_from', 'to', 'hosts', 'instances'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + if 'instances' in local_var_params: + query_params.append(('instances', local_var_params['instances'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/overviews/statistics', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListStatisticsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_threats(self, request): + """查询攻击事件分布类型 + + 查询攻击事件分布类型。 + + :param ListThreatsRequest request + :return: ListThreatsResponse + """ + return self.list_threats_with_http_info(request) + + def list_threats_with_http_info(self, request): + """查询攻击事件分布类型 + + 查询攻击事件分布类型。 + + :param ListThreatsRequest request + :return: ListThreatsResponse + """ + + all_params = ['recent', 'hosts'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'recent' in local_var_params: + query_params.append(('recent', local_var_params['recent'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + collection_formats['hosts'] = 'csv' + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/event/attack/type', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListThreatsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_top_abnormal(self, request): + """查询业务异常监控 + + 查询业务异常监控 + + :param ListTopAbnormalRequest request + :return: ListTopAbnormalResponse + """ + return self.list_top_abnormal_with_http_info(request) + + def list_top_abnormal_with_http_info(self, request): + """查询业务异常监控 + + 查询业务异常监控 + + :param ListTopAbnormalRequest request + :return: ListTopAbnormalResponse + """ + + all_params = ['_from', 'to', 'top', 'code', 'hosts', 'instances'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'top' in local_var_params: + query_params.append(('top', local_var_params['top'])) + if 'code' in local_var_params: + query_params.append(('code', local_var_params['code'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + if 'instances' in local_var_params: + query_params.append(('instances', local_var_params['instances'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/overviews/abnormal', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListTopAbnormalResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_top_domain(self, request): + """查询攻击域名 + + 查询攻击域名 + + :param ListTopDomainRequest request + :return: ListTopDomainResponse + """ + return self.list_top_domain_with_http_info(request) + + def list_top_domain_with_http_info(self, request): + """查询攻击域名 + + 查询攻击域名 + + :param ListTopDomainRequest request + :return: ListTopDomainResponse + """ + + all_params = ['_from', 'to', 'top', 'hosts', 'instances'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'top' in local_var_params: + query_params.append(('top', local_var_params['top'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + if 'instances' in local_var_params: + query_params.append(('instances', local_var_params['instances'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/overviews/attack/domain', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListTopDomainResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_top_ip(self, request): + """查询攻击源ip + + 查询攻击源ip + + :param ListTopIpRequest request + :return: ListTopIpResponse + """ + return self.list_top_ip_with_http_info(request) + + def list_top_ip_with_http_info(self, request): + """查询攻击源ip + + 查询攻击源ip + + :param ListTopIpRequest request + :return: ListTopIpResponse + """ + + all_params = ['_from', 'to', 'top', 'hosts', 'instances'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'top' in local_var_params: + query_params.append(('top', local_var_params['top'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + if 'instances' in local_var_params: + query_params.append(('instances', local_var_params['instances'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/overviews/attack/ip', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListTopIpResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_top_region(self, request): + """查询攻击来源区域 + + 查询攻击来源区域 + + :param ListTopRegionRequest request + :return: ListTopRegionResponse + """ + return self.list_top_region_with_http_info(request) + + def list_top_region_with_http_info(self, request): + """查询攻击来源区域 + + 查询攻击来源区域 + + :param ListTopRegionRequest request + :return: ListTopRegionResponse + """ + + all_params = ['_from', 'to', 'top', 'hosts', 'instances'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'top' in local_var_params: + query_params.append(('top', local_var_params['top'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + if 'instances' in local_var_params: + query_params.append(('instances', local_var_params['instances'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/overviews/attack/region', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListTopRegionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_top_url(self, request): + """查询被攻击url + + 查询被攻击url + + :param ListTopUrlRequest request + :return: ListTopUrlResponse + """ + return self.list_top_url_with_http_info(request) + + def list_top_url_with_http_info(self, request): + """查询被攻击url + + 查询被攻击url + + :param ListTopUrlRequest request + :return: ListTopUrlResponse + """ + + all_params = ['_from', 'to', 'top', 'hosts', 'instances'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'top' in local_var_params: + query_params.append(('top', local_var_params['top'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + if 'instances' in local_var_params: + query_params.append(('instances', local_var_params['instances'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/overviews/attack/url', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListTopUrlResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_url(self, request): + """查询事件日志中的url + + 查询QPS。 + + :param ListUrlRequest request + :return: ListUrlResponse + """ + return self.list_url_with_http_info(request) + + def list_url_with_http_info(self, request): + """查询事件日志中的url + + 查询QPS。 + + :param ListUrlRequest request + :return: ListUrlResponse + """ + + all_params = ['top', 'recent', '_from', 'to', 'hosts', 'instances'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'top' in local_var_params: + query_params.append(('top', local_var_params['top'])) + if 'recent' in local_var_params: + query_params.append(('recent', local_var_params['recent'])) + if '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'hosts' in local_var_params: + query_params.append(('hosts', local_var_params['hosts'])) + collection_formats['hosts'] = 'csv' + if 'instances' in local_var_params: + query_params.append(('instances', local_var_params['instances'])) + collection_formats['instances'] = 'csv' + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/event/url', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListUrlResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_value_list(self, request): + """查询引用表列表 + + 查询引用表列表 + + :param ListValueListRequest request + :return: ListValueListResponse + """ + return self.list_value_list_with_http_info(request) + + def list_value_list_with_http_info(self, request): + """查询引用表列表 + + 查询引用表列表 + + :param ListValueListRequest request + :return: ListValueListResponse + """ + + all_params = [] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/valuelist', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListValueListResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_anticrawler_rule(self, request): + """查询反爬虫防护规则 + + 根据Id查询反爬虫防护规则 + + :param ShowAnticrawlerRuleRequest request + :return: ShowAnticrawlerRuleResponse + """ + return self.show_anticrawler_rule_with_http_info(request) + + def show_anticrawler_rule_with_http_info(self, request): + """查询反爬虫防护规则 + + 根据Id查询反爬虫防护规则 + + :param ShowAnticrawlerRuleRequest request + :return: ShowAnticrawlerRuleResponse + """ + + all_params = ['policy_id', 'rule_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/anticrawler/{rule_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowAnticrawlerRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_antileakage_rule(self, request): + """查询防敏感信息泄露防护规则 + + 根据Id查询防敏感信息泄露防护规则 + + :param ShowAntileakageRuleRequest request + :return: ShowAntileakageRuleResponse + """ + return self.show_antileakage_rule_with_http_info(request) + + def show_antileakage_rule_with_http_info(self, request): + """查询防敏感信息泄露防护规则 + + 根据Id查询防敏感信息泄露防护规则 + + :param ShowAntileakageRuleRequest request + :return: ShowAntileakageRuleResponse + """ + + all_params = ['policy_id', 'rule_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/antileakage/{rule_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowAntileakageRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_cc_rule(self, request): + """根据Id查询cc防护规则 + + 根据Id查询cc防护规则 + + :param ShowCcRuleRequest request + :return: ShowCcRuleResponse + """ + return self.show_cc_rule_with_http_info(request) + + def show_cc_rule_with_http_info(self, request): + """根据Id查询cc防护规则 + + 根据Id查询cc防护规则 + + :param ShowCcRuleRequest request + :return: ShowCcRuleResponse + """ + + all_params = ['policy_id', 'rule_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/cc/{rule_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowCcRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_certificate(self, request): + """查询证书 + + 查询证书 + + :param ShowCertificateRequest request + :return: ShowCertificateResponse + """ + return self.show_certificate_with_http_info(request) + + def show_certificate_with_http_info(self, request): + """查询证书 + + 查询证书 + + :param ShowCertificateRequest request + :return: ShowCertificateResponse + """ + + all_params = ['certificate_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'certificate_id' in local_var_params: + path_params['certificate_id'] = local_var_params['certificate_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/certificate/{certificate_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowCertificateResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_custom_rule(self, request): + """根据Id查询精准防护规则 + + 根据Id查询精准防护规则 + + :param ShowCustomRuleRequest request + :return: ShowCustomRuleResponse + """ + return self.show_custom_rule_with_http_info(request) + + def show_custom_rule_with_http_info(self, request): + """根据Id查询精准防护规则 + + 根据Id查询精准防护规则 + + :param ShowCustomRuleRequest request + :return: ShowCustomRuleResponse + """ + + all_params = ['policy_id', 'rule_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/custom/{rule_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowCustomRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_geoip_rule(self, request): + """根据Id查询地理位置防护规则 + + 根据Id查询地理位置防护规则 + + :param ShowGeoipRuleRequest request + :return: ShowGeoipRuleResponse + """ + return self.show_geoip_rule_with_http_info(request) + + def show_geoip_rule_with_http_info(self, request): + """根据Id查询地理位置防护规则 + + 根据Id查询地理位置防护规则 + + :param ShowGeoipRuleRequest request + :return: ShowGeoipRuleResponse + """ + + all_params = ['policy_id', 'rule_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/geoip/{rule_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowGeoipRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_instance(self, request): + """根据Id查询云模式防护域名 + + 根据Id查询云模式防护域名 + + :param ShowInstanceRequest request + :return: ShowInstanceResponse + """ + return self.show_instance_with_http_info(request) + + def show_instance_with_http_info(self, request): + """根据Id查询云模式防护域名 + + 根据Id查询云模式防护域名 + + :param ShowInstanceRequest request + :return: ShowInstanceResponse + """ + + all_params = ['instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + 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_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/instance/{instance_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowInstanceResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_instance_route(self, request): + """获取云模式域名路由信息 + + 返回路由信息 + + :param ShowInstanceRouteRequest request + :return: ShowInstanceRouteResponse + """ + return self.show_instance_route_with_http_info(request) + + def show_instance_route_with_http_info(self, request): + """获取云模式域名路由信息 + + 返回路由信息 + + :param ShowInstanceRouteRequest request + :return: ShowInstanceRouteResponse + """ + + all_params = ['instanceid'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'instanceid' in local_var_params: + path_params['instanceid'] = local_var_params['instanceid'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/instance/{instanceid}/route', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowInstanceRouteResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_premium_host(self, request): + """查看独享模式域名配置 + + 查看独享模式域名配置 + + :param ShowPremiumHostRequest request + :return: ShowPremiumHostResponse + """ + return self.show_premium_host_with_http_info(request) + + def show_premium_host_with_http_info(self, request): + """查看独享模式域名配置 + + 查看独享模式域名配置 + + :param ShowPremiumHostRequest request + :return: ShowPremiumHostResponse + """ + + all_params = ['host_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'host_id' in local_var_params: + path_params['host_id'] = local_var_params['host_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/premium-waf/host/{host_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowPremiumHostResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_anticrawler_rule(self, request): + """更新反爬虫防护规则 + + 更新反爬虫防护规则 + + :param UpdateAnticrawlerRuleRequest request + :return: UpdateAnticrawlerRuleResponse + """ + return self.update_anticrawler_rule_with_http_info(request) + + def update_anticrawler_rule_with_http_info(self, request): + """更新反爬虫防护规则 + + 更新反爬虫防护规则 + + :param UpdateAnticrawlerRuleRequest request + :return: UpdateAnticrawlerRuleResponse + """ + + all_params = ['policy_id', 'rule_id', 'update_anticrawler_rule_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/anticrawler/{rule_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateAnticrawlerRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_antileakage_rule(self, request): + """更新防敏感信息泄露防护规则 + + 更新防敏感信息泄露防护规则 + + :param UpdateAntileakageRuleRequest request + :return: UpdateAntileakageRuleResponse + """ + return self.update_antileakage_rule_with_http_info(request) + + def update_antileakage_rule_with_http_info(self, request): + """更新防敏感信息泄露防护规则 + + 更新防敏感信息泄露防护规则 + + :param UpdateAntileakageRuleRequest request + :return: UpdateAntileakageRuleResponse + """ + + all_params = ['policy_id', 'rule_id', 'update_antileakage_rule_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/antileakage/{rule_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateAntileakageRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_cc_rule(self, request): + """更新cc防护规则 + + 更新cc防护规则 + + :param UpdateCcRuleRequest request + :return: UpdateCcRuleResponse + """ + return self.update_cc_rule_with_http_info(request) + + def update_cc_rule_with_http_info(self, request): + """更新cc防护规则 + + 更新cc防护规则 + + :param UpdateCcRuleRequest request + :return: UpdateCcRuleResponse + """ + + all_params = ['policy_id', 'rule_id', 'update_cc_rule_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/cc/{rule_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateCcRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_certificate(self, request): + """修改证书 + + 修改证书 + + :param UpdateCertificateRequest request + :return: UpdateCertificateResponse + """ + return self.update_certificate_with_http_info(request) + + def update_certificate_with_http_info(self, request): + """修改证书 + + 修改证书 + + :param UpdateCertificateRequest request + :return: UpdateCertificateResponse + """ + + all_params = ['certificate_id', 'update_certificate_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'certificate_id' in local_var_params: + path_params['certificate_id'] = local_var_params['certificate_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/certificate/{certificate_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateCertificateResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_custom_rule(self, request): + """更新精准防护规则 + + 更新精准防护规则 + + :param UpdateCustomRuleRequest request + :return: UpdateCustomRuleResponse + """ + return self.update_custom_rule_with_http_info(request) + + def update_custom_rule_with_http_info(self, request): + """更新精准防护规则 + + 更新精准防护规则 + + :param UpdateCustomRuleRequest request + :return: UpdateCustomRuleResponse + """ + + all_params = ['policy_id', 'rule_id', 'update_custom_rule_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/custom/{rule_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateCustomRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_geoip_rule(self, request): + """更新地理位置防护规则 + + 更新地理位置防护规则 + + :param UpdateGeoipRuleRequest request + :return: UpdateGeoipRuleResponse + """ + return self.update_geoip_rule_with_http_info(request) + + def update_geoip_rule_with_http_info(self, request): + """更新地理位置防护规则 + + 更新地理位置防护规则 + + :param UpdateGeoipRuleRequest request + :return: UpdateGeoipRuleResponse + """ + + all_params = ['policy_id', 'rule_id', 'update_geoip_rule_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}/geoip/{rule_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateGeoipRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_instance(self, request): + """更新云模式防护域名 + + 更新云模式防护域名 + + :param UpdateInstanceRequest request + :return: UpdateInstanceResponse + """ + return self.update_instance_with_http_info(request) + + def update_instance_with_http_info(self, request): + """更新云模式防护域名 + + 更新云模式防护域名 + + :param UpdateInstanceRequest request + :return: UpdateInstanceResponse + """ + + all_params = ['instance_id', 'update_instance_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + 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_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/instance/{instance_id}', + method='PATCH', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateInstanceResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_patch_policy(self, request): + """更新防护策略 + + 更新防护策略,请求体可只传需要更新的部分 + + :param UpdatePatchPolicyRequest request + :return: UpdatePatchPolicyResponse + """ + return self.update_patch_policy_with_http_info(request) + + def update_patch_policy_with_http_info(self, request): + """更新防护策略 + + 更新防护策略,请求体可只传需要更新的部分 + + :param UpdatePatchPolicyRequest request + :return: UpdatePatchPolicyResponse + """ + + all_params = ['policy_id', 'update_patch_policy_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + 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_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/waf/policy/{policy_id}', + method='PATCH', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdatePatchPolicyResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_premium_host(self, request): + """修改独享模式域名配置 + + 修改独享模式域名配置 + + :param UpdatePremiumHostRequest request + :return: UpdatePremiumHostResponse + """ + return self.update_premium_host_with_http_info(request) + + def update_premium_host_with_http_info(self, request): + """修改独享模式域名配置 + + 修改独享模式域名配置 + + :param UpdatePremiumHostRequest request + :return: UpdatePremiumHostResponse + """ + + all_params = ['host_id', 'update_premium_host_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'host_id' in local_var_params: + path_params['host_id'] = local_var_params['host_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/premium-waf/host/{host_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdatePremiumHostResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_premium_host_access_status(self, request): + """修改独享模式域名接入状态 + + 修改独享模式域名接入状态 + + :param UpdatePremiumHostAccessStatusRequest request + :return: UpdatePremiumHostAccessStatusResponse + """ + return self.update_premium_host_access_status_with_http_info(request) + + def update_premium_host_access_status_with_http_info(self, request): + """修改独享模式域名接入状态 + + 修改独享模式域名接入状态 + + :param UpdatePremiumHostAccessStatusRequest request + :return: UpdatePremiumHostAccessStatusResponse + """ + + all_params = ['host_id', 'update_premium_host_access_status_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'host_id' in local_var_params: + path_params['host_id'] = local_var_params['host_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/premium-waf/host/{host_id}/access_status', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdatePremiumHostAccessStatusResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_premium_host_protect_status(self, request): + """修改独享模式域名防护状态 + + 修改独享模式域名防护状态 + + :param UpdatePremiumHostProtectStatusRequest request + :return: UpdatePremiumHostProtectStatusResponse + """ + return self.update_premium_host_protect_status_with_http_info(request) + + def update_premium_host_protect_status_with_http_info(self, request): + """修改独享模式域名防护状态 + + 修改独享模式域名防护状态 + + :param UpdatePremiumHostProtectStatusRequest request + :return: UpdatePremiumHostProtectStatusResponse + """ + + all_params = ['host_id', 'update_premium_host_protect_status_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'host_id' in local_var_params: + path_params['host_id'] = local_var_params['host_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/premium-waf/host/{host_id}/protect_status', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdatePremiumHostProtectStatusResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_pool(self, request): + """创建WAF独享引擎组 + + 创建WAF独享引擎组 + + :param CreatePoolRequest request + :return: CreatePoolResponse + """ + return self.create_pool_with_http_info(request) + + def create_pool_with_http_info(self, request): + """创建WAF独享引擎组 + + 创建WAF独享引擎组 + + :param CreatePoolRequest request + :return: CreatePoolResponse + """ + + all_params = ['create_pool_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/premium-waf/pool', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreatePoolResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_pool(self, request): + """删除WAF独享引擎组 + + 删除WAF独享引擎组 + + :param DeletePoolRequest request + :return: DeletePoolResponse + """ + return self.delete_pool_with_http_info(request) + + def delete_pool_with_http_info(self, request): + """删除WAF独享引擎组 + + 删除WAF独享引擎组 + + :param DeletePoolRequest request + :return: DeletePoolResponse + """ + + all_params = ['pool_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'pool_id' in local_var_params: + path_params['pool_id'] = local_var_params['pool_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/premium-waf/pool/{pool_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeletePoolResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_pools(self, request): + """查询WAF独享引擎组列表 + + 查询WAF独享引擎组列表 + + :param ListPoolsRequest request + :return: ListPoolsResponse + """ + return self.list_pools_with_http_info(request) + + def list_pools_with_http_info(self, request): + """查询WAF独享引擎组列表 + + 查询WAF独享引擎组列表 + + :param ListPoolsRequest request + :return: ListPoolsResponse + """ + + all_params = ['page', 'pagesize', 'name', 'vpc_id', 'detail'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'page' in local_var_params: + query_params.append(('page', local_var_params['page'])) + if 'pagesize' in local_var_params: + query_params.append(('pagesize', local_var_params['pagesize'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'vpc_id' in local_var_params: + query_params.append(('vpc_id', local_var_params['vpc_id'])) + if 'detail' in local_var_params: + query_params.append(('detail', local_var_params['detail'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/premium-waf/pool', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListPoolsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_pool(self, request): + """查询WAF独享引擎组信息 + + 查询WAF独享引擎组信息 + + :param ShowPoolRequest request + :return: ShowPoolResponse + """ + return self.show_pool_with_http_info(request) + + def show_pool_with_http_info(self, request): + """查询WAF独享引擎组信息 + + 查询WAF独享引擎组信息 + + :param ShowPoolRequest request + :return: ShowPoolResponse + """ + + all_params = ['pool_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'pool_id' in local_var_params: + path_params['pool_id'] = local_var_params['pool_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/premium-waf/pool/{pool_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowPoolResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_pool(self, request): + """修改WAF独享引擎组信息 + + 修改WAF独享引擎组信息 + + :param UpdatePoolRequest request + :return: UpdatePoolResponse + """ + return self.update_pool_with_http_info(request) + + def update_pool_with_http_info(self, request): + """修改WAF独享引擎组信息 + + 修改WAF独享引擎组信息 + + :param UpdatePoolRequest request + :return: UpdatePoolResponse + """ + + all_params = ['pool_id', 'update_pool_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'pool_id' in local_var_params: + path_params['pool_id'] = local_var_params['pool_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/premium-waf/pool/{pool_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdatePoolResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, + post_params=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 dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: 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, + response_type=response_type, + response_headers=response_headers, + collection_formats=collection_formats, + request_type=request_type) diff --git a/huaweicloud-sdk-waf/requirements.txt b/huaweicloud-sdk-waf/requirements.txt new file mode 100644 index 0000000000..bf54e8e3d8 --- /dev/null +++ b/huaweicloud-sdk-waf/requirements.txt @@ -0,0 +1 @@ +huaweicloud-sdk-python-core diff --git a/huaweicloud-sdk-waf/setup.py b/huaweicloud-sdk-waf/setup.py new file mode 100644 index 0000000000..ae0f68bdbb --- /dev/null +++ b/huaweicloud-sdk-waf/setup.py @@ -0,0 +1,55 @@ +# coding: utf-8 +from os import path + +from setuptools import setup, find_packages + +NAME = "huaweicloudsdkwaf" +VERSION = "3.0.49" +AUTHOR = "HuaweiCloud SDK" +AUTHOR_EMAIL = "hwcloudsdk@huawei.com" +URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" + +DESCRIPTION = "WAF" +this_directory = path.abspath(path.dirname(__file__)) +with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: + LONG_DESCRIPTION = f.read() + +REQUIRES = ["huaweicloudsdkcore"] + +OPTIONS = { + 'bdist_wheel': { + 'universal': True + } +} + +setup( + name=NAME, + version=VERSION, + options=OPTIONS, + description=DESCRIPTION, + long_description=LONG_DESCRIPTION, + long_description_content_type='text/markdown', + author=AUTHOR, + author_email=AUTHOR_EMAIL, + license="Apache LICENSE 2.0", + url=URL, + keywords=["huaweicloud", "sdk", "WAF"], + packages=find_packages(exclude=["tests*"]), + install_requires=REQUIRES, + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", + include_package_data=True, + classifiers=[ + 'Development Status :: 5 - Production/Stable', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: Apache Software License', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Topic :: Software Development' + ] +) diff --git a/huaweicloud-sdk-waf/test-requirements.txt b/huaweicloud-sdk-waf/test-requirements.txt new file mode 100644 index 0000000000..2702246c0e --- /dev/null +++ b/huaweicloud-sdk-waf/test-requirements.txt @@ -0,0 +1,5 @@ +coverage>=4.0.3 +nose>=1.3.7 +pluggy>=0.3.1 +py>=1.4.31 +randomize>=0.13