diff --git a/CHANGELOG.md b/CHANGELOG.md index dda704a89..908c2e15a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,81 @@ +# 3.0.41-rc 2021-04-30 + +### HuaweiCloud SDK BCS + +- _Features_ + - Support interface `ListOpRecord` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK DDS + +- _Features_ + - Support interfaces: + - `ShowShardingBalancer` + - `SetBalancerSwitch` + - `SetBalancerWindow` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK HSS + +- _Features_ + - Support interface `ListHosts` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK IAM + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Add optional values to request parameter `type` of the interface `ShowDomainQuota`: + - `assigment_group_mp` + - `assigment_agency_mp` + - `assigment_group_ep` + - `assigment_user_ep` + +### HuaweiCloud SDK IoTDA + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Remove interfaces: + - `ListSubscriptions` + - `CreateSubscription` + - `UpdateSubscription` + - `ShowSubscription` + - `DeleteSubscription` + +### HuaweiCloud SDK MPC + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Add request parameters `language`、`sky_switch` to the interface `CreateMpeCallBack`. + - Update optional values of request parameter `subtitle_type` of interface `CreateTranscodingTask`. + +### HuaweiCloud SDK ProjectMan + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Add a field `project_code` to response body of the interface `ShowProjectInfoV4`. + # 3.0.40-rc 2021-04-15 ### HuaweiCloud SDK RDS diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 8f3ee0c2b..479599d67 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,81 @@ +# 3.0.41-rc 2021-04-30 + +### HuaweiCloud SDK BCS + +- _新增特性_ + - 新增支持查询异步操作结果的接口`ListOpRecord` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK DDS + +- _新增特性_ + - 新增支持的接口 + - 查询集群均衡设置 `ShowShardingBalancer` + - 设置集群均衡开关 `SetBalancerSwitch` + - 设置集群均衡活动时间窗 `SetBalancerWindow` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK HSS + +- _新增特性_ + - 新增支持查询弹性云服务器状态列表的接口`ListHosts` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK IAM + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 查询账号配额接口`ShowDomainQuota`的请求参数`type`增加可选值: + - `assigment_group_mp` + - `assigment_agency_mp` + - `assigment_group_ep` + - `assigment_user_ep` + +### HuaweiCloud SDK IoTDA + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 下线订阅管理相关接口: + - `ListSubscriptions` + - `CreateSubscription` + - `UpdateSubscription` + - `ShowSubscription` + - `DeleteSubscription` + +### HuaweiCloud SDK MPC + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`CreateMpeCallBack`新增请求参数`language`、`sky_switch` + - 接口`CreateTranscodingTask`的请求参数`subtitle_type`可选值调整为`0`、`1`、`2` + +### HuaweiCloud SDK ProjectMan + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 获取项目详情接口`ShowProjectInfoV4`的响应体新增字段`project_code` + # 3.0.40-rc 2021-04-15 ### HuaweiCloud SDK RDS diff --git a/examples/setup.py b/examples/setup.py index b17404368..59b8e2099 100644 --- a/examples/setup.py +++ b/examples/setup.py @@ -21,7 +21,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkexample" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" 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 46e7176cb..8abb2ab0c 100644 --- a/huaweicloud-sdk-aom/setup.py +++ b/huaweicloud-sdk-aom/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkaom" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-apig/setup.py b/huaweicloud-sdk-apig/setup.py index 55c6a376c..78673ee17 100644 --- a/huaweicloud-sdk-apig/setup.py +++ b/huaweicloud-sdk-apig/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkapig" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-as/setup.py b/huaweicloud-sdk-as/setup.py index 9cfbd27e7..81f824524 100644 --- a/huaweicloud-sdk-as/setup.py +++ b/huaweicloud-sdk-as/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkas" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/__init__.py b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/__init__.py index aa8e4cfa7..70ab0177d 100644 --- a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/__init__.py +++ b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/__init__.py @@ -73,6 +73,8 @@ from huaweicloudsdkbcs.v2.model.list_members_request import ListMembersRequest from huaweicloudsdkbcs.v2.model.list_members_response import ListMembersResponse from huaweicloudsdkbcs.v2.model.list_notifications_request import ListNotificationsRequest from huaweicloudsdkbcs.v2.model.list_notifications_response import ListNotificationsResponse +from huaweicloudsdkbcs.v2.model.list_op_record_request import ListOpRecordRequest +from huaweicloudsdkbcs.v2.model.list_op_record_response import ListOpRecordResponse from huaweicloudsdkbcs.v2.model.list_quotas_request import ListQuotasRequest from huaweicloudsdkbcs.v2.model.list_quotas_response import ListQuotasResponse from huaweicloudsdkbcs.v2.model.member import Member @@ -82,14 +84,18 @@ from huaweicloudsdkbcs.v2.model.metric_data_points import MetricDataPoints from huaweicloudsdkbcs.v2.model.metric_demision import MetricDemision from huaweicloudsdkbcs.v2.model.metric_item_result_api import MetricItemResultAPI from huaweicloudsdkbcs.v2.model.node import Node -from huaweicloudsdkbcs.v2.model.node_orgs import NodeOrgs +from huaweicloudsdkbcs.v2.model.node_info import NodeInfo from huaweicloudsdkbcs.v2.model.notification_list import NotificationList from huaweicloudsdkbcs.v2.model.obs_info import OBSInfo +from huaweicloudsdkbcs.v2.model.op_id_res import OpIdRes +from huaweicloudsdkbcs.v2.model.oprecord_cluster import OprecordCluster from huaweicloudsdkbcs.v2.model.org import Org from huaweicloudsdkbcs.v2.model.org_peer import OrgPeer from huaweicloudsdkbcs.v2.model.organization_v2 import OrganizationV2 from huaweicloudsdkbcs.v2.model.peer_address import PeerAddress from huaweicloudsdkbcs.v2.model.peer_info import PeerInfo +from huaweicloudsdkbcs.v2.model.process_info import ProcessInfo +from huaweicloudsdkbcs.v2.model.record_detail_info import RecordDetailInfo from huaweicloudsdkbcs.v2.model.resource import Resource from huaweicloudsdkbcs.v2.model.sfs_info import SfsInfo from huaweicloudsdkbcs.v2.model.show_blockchain_detail_request import ShowBlockchainDetailRequest @@ -99,7 +105,7 @@ from huaweicloudsdkbcs.v2.model.show_blockchain_nodes_response import ShowBlockc from huaweicloudsdkbcs.v2.model.show_blockchain_status_request import ShowBlockchainStatusRequest from huaweicloudsdkbcs.v2.model.show_blockchain_status_response import ShowBlockchainStatusResponse from huaweicloudsdkbcs.v2.model.statistic_value import StatisticValue +from huaweicloudsdkbcs.v2.model.sub_detail import SubDetail from huaweicloudsdkbcs.v2.model.update_instance_request import UpdateInstanceRequest -from huaweicloudsdkbcs.v2.model.update_instance_request_body import UpdateInstanceRequestBody from huaweicloudsdkbcs.v2.model.update_instance_response import UpdateInstanceResponse diff --git a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/bcs_async_client.py b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/bcs_async_client.py index 98ab03e79..f99e3a832 100644 --- a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/bcs_async_client.py +++ b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/bcs_async_client.py @@ -1009,6 +1009,77 @@ class BcsAsyncClient(Client): request_type=request.__class__.__name__) + def list_op_record_async(self, request): + """查询异步操作结果 + + 查询异步操作结果 + + :param ListOpRecordRequest request + :return: ListOpRecordResponse + """ + return self.list_op_record_with_http_info(request) + + def list_op_record_with_http_info(self, request): + """查询异步操作结果 + + 查询异步操作结果 + + :param ListOpRecordRequest request + :return: ListOpRecordResponse + """ + + all_params = ['blockchain_id', 'operation_status', 'resource_type', 'operation_type', 'operation_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 'blockchain_id' in local_var_params: + query_params.append(('blockchain_id', local_var_params['blockchain_id'])) + if 'operation_status' in local_var_params: + query_params.append(('operation_status', local_var_params['operation_status'])) + if 'resource_type' in local_var_params: + query_params.append(('resource_type', local_var_params['resource_type'])) + if 'operation_type' in local_var_params: + query_params.append(('operation_type', local_var_params['operation_type'])) + if 'operation_id' in local_var_params: + query_params.append(('operation_id', local_var_params['operation_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='/v2/{project_id}/operation/record', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListOpRecordResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_quotas_async(self, request): """查询配额 diff --git a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/bcs_client.py b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/bcs_client.py index b2d1c553b..e73977add 100644 --- a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/bcs_client.py +++ b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/bcs_client.py @@ -1009,6 +1009,77 @@ class BcsClient(Client): request_type=request.__class__.__name__) + def list_op_record(self, request): + """查询异步操作结果 + + 查询异步操作结果 + + :param ListOpRecordRequest request + :return: ListOpRecordResponse + """ + return self.list_op_record_with_http_info(request) + + def list_op_record_with_http_info(self, request): + """查询异步操作结果 + + 查询异步操作结果 + + :param ListOpRecordRequest request + :return: ListOpRecordResponse + """ + + all_params = ['blockchain_id', 'operation_status', 'resource_type', 'operation_type', 'operation_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 'blockchain_id' in local_var_params: + query_params.append(('blockchain_id', local_var_params['blockchain_id'])) + if 'operation_status' in local_var_params: + query_params.append(('operation_status', local_var_params['operation_status'])) + if 'resource_type' in local_var_params: + query_params.append(('resource_type', local_var_params['resource_type'])) + if 'operation_type' in local_var_params: + query_params.append(('operation_type', local_var_params['operation_type'])) + if 'operation_id' in local_var_params: + query_params.append(('operation_id', local_var_params['operation_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='/v2/{project_id}/operation/record', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListOpRecordResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_quotas(self, request): """查询配额 diff --git a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/__init__.py b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/__init__.py index 660824e96..906fdecd2 100644 --- a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/__init__.py +++ b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/__init__.py @@ -70,6 +70,8 @@ from huaweicloudsdkbcs.v2.model.list_members_request import ListMembersRequest from huaweicloudsdkbcs.v2.model.list_members_response import ListMembersResponse from huaweicloudsdkbcs.v2.model.list_notifications_request import ListNotificationsRequest from huaweicloudsdkbcs.v2.model.list_notifications_response import ListNotificationsResponse +from huaweicloudsdkbcs.v2.model.list_op_record_request import ListOpRecordRequest +from huaweicloudsdkbcs.v2.model.list_op_record_response import ListOpRecordResponse from huaweicloudsdkbcs.v2.model.list_quotas_request import ListQuotasRequest from huaweicloudsdkbcs.v2.model.list_quotas_response import ListQuotasResponse from huaweicloudsdkbcs.v2.model.member import Member @@ -79,14 +81,18 @@ from huaweicloudsdkbcs.v2.model.metric_data_points import MetricDataPoints from huaweicloudsdkbcs.v2.model.metric_demision import MetricDemision from huaweicloudsdkbcs.v2.model.metric_item_result_api import MetricItemResultAPI from huaweicloudsdkbcs.v2.model.node import Node -from huaweicloudsdkbcs.v2.model.node_orgs import NodeOrgs +from huaweicloudsdkbcs.v2.model.node_info import NodeInfo from huaweicloudsdkbcs.v2.model.notification_list import NotificationList from huaweicloudsdkbcs.v2.model.obs_info import OBSInfo +from huaweicloudsdkbcs.v2.model.op_id_res import OpIdRes +from huaweicloudsdkbcs.v2.model.oprecord_cluster import OprecordCluster from huaweicloudsdkbcs.v2.model.org import Org from huaweicloudsdkbcs.v2.model.org_peer import OrgPeer from huaweicloudsdkbcs.v2.model.organization_v2 import OrganizationV2 from huaweicloudsdkbcs.v2.model.peer_address import PeerAddress from huaweicloudsdkbcs.v2.model.peer_info import PeerInfo +from huaweicloudsdkbcs.v2.model.process_info import ProcessInfo +from huaweicloudsdkbcs.v2.model.record_detail_info import RecordDetailInfo from huaweicloudsdkbcs.v2.model.resource import Resource from huaweicloudsdkbcs.v2.model.sfs_info import SfsInfo from huaweicloudsdkbcs.v2.model.show_blockchain_detail_request import ShowBlockchainDetailRequest @@ -96,6 +102,6 @@ from huaweicloudsdkbcs.v2.model.show_blockchain_nodes_response import ShowBlockc from huaweicloudsdkbcs.v2.model.show_blockchain_status_request import ShowBlockchainStatusRequest from huaweicloudsdkbcs.v2.model.show_blockchain_status_response import ShowBlockchainStatusResponse from huaweicloudsdkbcs.v2.model.statistic_value import StatisticValue +from huaweicloudsdkbcs.v2.model.sub_detail import SubDetail from huaweicloudsdkbcs.v2.model.update_instance_request import UpdateInstanceRequest -from huaweicloudsdkbcs.v2.model.update_instance_request_body import UpdateInstanceRequestBody from huaweicloudsdkbcs.v2.model.update_instance_response import UpdateInstanceResponse diff --git a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/batch_add_peers_to_channel_response.py b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/batch_add_peers_to_channel_response.py index 3d453033f..d0f9f625c 100644 --- a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/batch_add_peers_to_channel_response.py +++ b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/batch_add_peers_to_channel_response.py @@ -23,17 +23,46 @@ class BatchAddPeersToChannelResponse(SdkResponse): sensitive_list = [] openapi_types = { + 'operation_id': 'str' } attribute_map = { + 'operation_id': 'operation_id' } - def __init__(self): + def __init__(self, operation_id=None): """BatchAddPeersToChannelResponse - a model defined in huaweicloud sdk""" super().__init__() + + self._operation_id = None self.discriminator = None + if operation_id is not None: + self.operation_id = operation_id + + @property + def operation_id(self): + """Gets the operation_id of this BatchAddPeersToChannelResponse. + + 操作记录id + + :return: The operation_id of this BatchAddPeersToChannelResponse. + :rtype: str + """ + return self._operation_id + + @operation_id.setter + def operation_id(self, operation_id): + """Sets the operation_id of this BatchAddPeersToChannelResponse. + + 操作记录id + + :param operation_id: The operation_id of this BatchAddPeersToChannelResponse. + :type: str + """ + self._operation_id = operation_id + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/create_new_blockchain_response.py b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/create_new_blockchain_response.py index d897b8862..2ac27419b 100644 --- a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/create_new_blockchain_response.py +++ b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/create_new_blockchain_response.py @@ -24,27 +24,32 @@ class CreateNewBlockchainResponse(SdkResponse): openapi_types = { 'blockchain_id': 'str', - 'blockchain_name': 'str' + 'blockchain_name': 'str', + 'operation_id': 'str' } attribute_map = { 'blockchain_id': 'blockchain_id', - 'blockchain_name': 'blockchain_name' + 'blockchain_name': 'blockchain_name', + 'operation_id': 'operation_id' } - def __init__(self, blockchain_id=None, blockchain_name=None): + def __init__(self, blockchain_id=None, blockchain_name=None, operation_id=None): """CreateNewBlockchainResponse - a model defined in huaweicloud sdk""" super().__init__() self._blockchain_id = None self._blockchain_name = None + self._operation_id = None self.discriminator = None if blockchain_id is not None: self.blockchain_id = blockchain_id if blockchain_name is not None: self.blockchain_name = blockchain_name + if operation_id is not None: + self.operation_id = operation_id @property def blockchain_id(self): @@ -90,6 +95,28 @@ class CreateNewBlockchainResponse(SdkResponse): """ self._blockchain_name = blockchain_name + @property + def operation_id(self): + """Gets the operation_id of this CreateNewBlockchainResponse. + + 操作ID + + :return: The operation_id of this CreateNewBlockchainResponse. + :rtype: str + """ + return self._operation_id + + @operation_id.setter + def operation_id(self, operation_id): + """Sets the operation_id of this CreateNewBlockchainResponse. + + 操作ID + + :param operation_id: The operation_id of this CreateNewBlockchainResponse. + :type: str + """ + self._operation_id = operation_id + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/delete_blockchain_response.py b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/delete_blockchain_response.py index 492cfdc4c..3978f11fa 100644 --- a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/delete_blockchain_response.py +++ b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/delete_blockchain_response.py @@ -23,17 +23,46 @@ class DeleteBlockchainResponse(SdkResponse): sensitive_list = [] openapi_types = { + 'operation_id': 'str' } attribute_map = { + 'operation_id': 'operation_id' } - def __init__(self): + def __init__(self, operation_id=None): """DeleteBlockchainResponse - a model defined in huaweicloud sdk""" super().__init__() + + self._operation_id = None self.discriminator = None + if operation_id is not None: + self.operation_id = operation_id + + @property + def operation_id(self): + """Gets the operation_id of this DeleteBlockchainResponse. + + 操作记录id + + :return: The operation_id of this DeleteBlockchainResponse. + :rtype: str + """ + return self._operation_id + + @operation_id.setter + def operation_id(self, operation_id): + """Sets the operation_id of this DeleteBlockchainResponse. + + 操作记录id + + :param operation_id: The operation_id of this DeleteBlockchainResponse. + :type: str + """ + self._operation_id = operation_id + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/list_op_record_request.py b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/list_op_record_request.py new file mode 100644 index 000000000..6b44736b1 --- /dev/null +++ b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/list_op_record_request.py @@ -0,0 +1,208 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListOpRecordRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'blockchain_id': 'str', + 'operation_status': 'str', + 'resource_type': 'str', + 'operation_type': 'str', + 'operation_id': 'str' + } + + attribute_map = { + 'blockchain_id': 'blockchain_id', + 'operation_status': 'operation_status', + 'resource_type': 'resource_type', + 'operation_type': 'operation_type', + 'operation_id': 'operation_id' + } + + def __init__(self, blockchain_id=None, operation_status=None, resource_type=None, operation_type=None, operation_id=None): + """ListOpRecordRequest - a model defined in huaweicloud sdk""" + + + + self._blockchain_id = None + self._operation_status = None + self._resource_type = None + self._operation_type = None + self._operation_id = None + self.discriminator = None + + if blockchain_id is not None: + self.blockchain_id = blockchain_id + if operation_status is not None: + self.operation_status = operation_status + if resource_type is not None: + self.resource_type = resource_type + if operation_type is not None: + self.operation_type = operation_type + if operation_id is not None: + self.operation_id = operation_id + + @property + def blockchain_id(self): + """Gets the blockchain_id of this ListOpRecordRequest. + + + :return: The blockchain_id of this ListOpRecordRequest. + :rtype: str + """ + return self._blockchain_id + + @blockchain_id.setter + def blockchain_id(self, blockchain_id): + """Sets the blockchain_id of this ListOpRecordRequest. + + + :param blockchain_id: The blockchain_id of this ListOpRecordRequest. + :type: str + """ + self._blockchain_id = blockchain_id + + @property + def operation_status(self): + """Gets the operation_status of this ListOpRecordRequest. + + + :return: The operation_status of this ListOpRecordRequest. + :rtype: str + """ + return self._operation_status + + @operation_status.setter + def operation_status(self, operation_status): + """Sets the operation_status of this ListOpRecordRequest. + + + :param operation_status: The operation_status of this ListOpRecordRequest. + :type: str + """ + self._operation_status = operation_status + + @property + def resource_type(self): + """Gets the resource_type of this ListOpRecordRequest. + + + :return: The resource_type of this ListOpRecordRequest. + :rtype: str + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """Sets the resource_type of this ListOpRecordRequest. + + + :param resource_type: The resource_type of this ListOpRecordRequest. + :type: str + """ + self._resource_type = resource_type + + @property + def operation_type(self): + """Gets the operation_type of this ListOpRecordRequest. + + + :return: The operation_type of this ListOpRecordRequest. + :rtype: str + """ + return self._operation_type + + @operation_type.setter + def operation_type(self, operation_type): + """Sets the operation_type of this ListOpRecordRequest. + + + :param operation_type: The operation_type of this ListOpRecordRequest. + :type: str + """ + self._operation_type = operation_type + + @property + def operation_id(self): + """Gets the operation_id of this ListOpRecordRequest. + + + :return: The operation_id of this ListOpRecordRequest. + :rtype: str + """ + return self._operation_id + + @operation_id.setter + def operation_id(self, operation_id): + """Sets the operation_id of this ListOpRecordRequest. + + + :param operation_id: The operation_id of this ListOpRecordRequest. + :type: str + """ + self._operation_id = operation_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, ListOpRecordRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/list_op_record_response.py b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/list_op_record_response.py new file mode 100644 index 000000000..43161a278 --- /dev/null +++ b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/list_op_record_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListOpRecordResponse(SdkResponse): + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'count': 'int', + 'operation_records': 'list[RecordDetailInfo]' + } + + attribute_map = { + 'count': 'count', + 'operation_records': 'operation_records' + } + + def __init__(self, count=None, operation_records=None): + """ListOpRecordResponse - a model defined in huaweicloud sdk""" + + super().__init__() + + self._count = None + self._operation_records = None + self.discriminator = None + + if count is not None: + self.count = count + if operation_records is not None: + self.operation_records = operation_records + + @property + def count(self): + """Gets the count of this ListOpRecordResponse. + + 操作记录总数 + + :return: The count of this ListOpRecordResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListOpRecordResponse. + + 操作记录总数 + + :param count: The count of this ListOpRecordResponse. + :type: int + """ + self._count = count + + @property + def operation_records(self): + """Gets the operation_records of this ListOpRecordResponse. + + 操作记录列表 + + :return: The operation_records of this ListOpRecordResponse. + :rtype: list[RecordDetailInfo] + """ + return self._operation_records + + @operation_records.setter + def operation_records(self, operation_records): + """Sets the operation_records of this ListOpRecordResponse. + + 操作记录列表 + + :param operation_records: The operation_records of this ListOpRecordResponse. + :type: list[RecordDetailInfo] + """ + self._operation_records = operation_records + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListOpRecordResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/node_info.py b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/node_info.py new file mode 100644 index 000000000..74b215d51 --- /dev/null +++ b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/node_info.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class NodeInfo: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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' + } + + attribute_map = { + 'name': 'name', + 'id': 'id' + } + + def __init__(self, name=None, id=None): + """NodeInfo - a model defined in huaweicloud sdk""" + + + + self._name = None + self._id = None + self.discriminator = None + + if name is not None: + self.name = name + if id is not None: + self.id = id + + @property + def name(self): + """Gets the name of this NodeInfo. + + 节点名 + + :return: The name of this NodeInfo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this NodeInfo. + + 节点名 + + :param name: The name of this NodeInfo. + :type: str + """ + self._name = name + + @property + def id(self): + """Gets the id of this NodeInfo. + + 节点ID + + :return: The id of this NodeInfo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this NodeInfo. + + 节点ID + + :param id: The id of this NodeInfo. + :type: str + """ + 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, NodeInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/node_orgs.py b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/node_orgs.py deleted file mode 100644 index 24cc350a1..000000000 --- a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/node_orgs.py +++ /dev/null @@ -1,162 +0,0 @@ -# coding: utf-8 - -import pprint -import re - -import six - - - - - -class NodeOrgs: - - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the 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', - 'node_count': 'int', - 'pvc_name': 'str' - } - - attribute_map = { - 'name': 'name', - 'node_count': 'node_count', - 'pvc_name': 'pvc_name' - } - - def __init__(self, name=None, node_count=None, pvc_name=None): - """NodeOrgs - a model defined in huaweicloud sdk""" - - - - self._name = None - self._node_count = None - self._pvc_name = None - self.discriminator = None - - self.name = name - self.node_count = node_count - if pvc_name is not None: - self.pvc_name = pvc_name - - @property - def name(self): - """Gets the name of this NodeOrgs. - - 组织名称 - - :return: The name of this NodeOrgs. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this NodeOrgs. - - 组织名称 - - :param name: The name of this NodeOrgs. - :type: str - """ - self._name = name - - @property - def node_count(self): - """Gets the node_count of this NodeOrgs. - - 组织目标节点数 - - :return: The node_count of this NodeOrgs. - :rtype: int - """ - return self._node_count - - @node_count.setter - def node_count(self, node_count): - """Sets the node_count of this NodeOrgs. - - 组织目标节点数 - - :param node_count: The node_count of this NodeOrgs. - :type: int - """ - self._node_count = node_count - - @property - def pvc_name(self): - """Gets the pvc_name of this NodeOrgs. - - pvc名称,添加组织时需要提供pvc_name - - :return: The pvc_name of this NodeOrgs. - :rtype: str - """ - return self._pvc_name - - @pvc_name.setter - def pvc_name(self, pvc_name): - """Sets the pvc_name of this NodeOrgs. - - pvc名称,添加组织时需要提供pvc_name - - :param pvc_name: The pvc_name of this NodeOrgs. - :type: str - """ - self._pvc_name = pvc_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, NodeOrgs): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_sub_req.py b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/op_id_res.py similarity index 66% rename from huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_sub_req.py rename to huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/op_id_res.py index accb0408e..50249d5ec 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_sub_req.py +++ b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/op_id_res.py @@ -9,7 +9,7 @@ import six -class UpdateSubReq: +class OpIdRes: """ @@ -23,45 +23,45 @@ class UpdateSubReq: sensitive_list = [] openapi_types = { - 'callbackurl': 'str' + 'operation_id': 'str' } attribute_map = { - 'callbackurl': 'callbackurl' + 'operation_id': 'operation_id' } - def __init__(self, callbackurl=None): - """UpdateSubReq - a model defined in huaweicloud sdk""" + def __init__(self, operation_id=None): + """OpIdRes - a model defined in huaweicloud sdk""" - self._callbackurl = None + self._operation_id = None self.discriminator = None - if callbackurl is not None: - self.callbackurl = callbackurl + if operation_id is not None: + self.operation_id = operation_id @property - def callbackurl(self): - """Gets the callbackurl of this UpdateSubReq. + def operation_id(self): + """Gets the operation_id of this OpIdRes. - 订阅的回调地址,用于接收对应资源事件的通知消息,例如:https://10.10.10.10:443/callbackurltest。 + 操作记录id - :return: The callbackurl of this UpdateSubReq. + :return: The operation_id of this OpIdRes. :rtype: str """ - return self._callbackurl + return self._operation_id - @callbackurl.setter - def callbackurl(self, callbackurl): - """Sets the callbackurl of this UpdateSubReq. + @operation_id.setter + def operation_id(self, operation_id): + """Sets the operation_id of this OpIdRes. - 订阅的回调地址,用于接收对应资源事件的通知消息,例如:https://10.10.10.10:443/callbackurltest。 + 操作记录id - :param callbackurl: The callbackurl of this UpdateSubReq. + :param operation_id: The operation_id of this OpIdRes. :type: str """ - self._callbackurl = callbackurl + self._operation_id = operation_id def to_dict(self): """Returns the model properties as a dict""" @@ -100,7 +100,7 @@ class UpdateSubReq: def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, UpdateSubReq): + if not isinstance(other, OpIdRes): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/oprecord_cluster.py b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/oprecord_cluster.py new file mode 100644 index 000000000..53860ae36 --- /dev/null +++ b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/oprecord_cluster.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class OprecordCluster: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_type': 'str', + 'name': 'str', + 'cluster_id': 'str', + 'node_infos': 'list[NodeInfo]' + } + + attribute_map = { + 'cluster_type': 'cluster_type', + 'name': 'name', + 'cluster_id': 'cluster_id', + 'node_infos': 'node_infos' + } + + def __init__(self, cluster_type=None, name=None, cluster_id=None, node_infos=None): + """OprecordCluster - a model defined in huaweicloud sdk""" + + + + self._cluster_type = None + self._name = None + self._cluster_id = None + self._node_infos = None + self.discriminator = None + + if cluster_type is not None: + self.cluster_type = cluster_type + if name is not None: + self.name = name + if cluster_id is not None: + self.cluster_id = cluster_id + if node_infos is not None: + self.node_infos = node_infos + + @property + def cluster_type(self): + """Gets the cluster_type of this OprecordCluster. + + 集群类型 + + :return: The cluster_type of this OprecordCluster. + :rtype: str + """ + return self._cluster_type + + @cluster_type.setter + def cluster_type(self, cluster_type): + """Sets the cluster_type of this OprecordCluster. + + 集群类型 + + :param cluster_type: The cluster_type of this OprecordCluster. + :type: str + """ + self._cluster_type = cluster_type + + @property + def name(self): + """Gets the name of this OprecordCluster. + + 集群名称 + + :return: The name of this OprecordCluster. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this OprecordCluster. + + 集群名称 + + :param name: The name of this OprecordCluster. + :type: str + """ + self._name = name + + @property + def cluster_id(self): + """Gets the cluster_id of this OprecordCluster. + + 集群ID + + :return: The cluster_id of this OprecordCluster. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this OprecordCluster. + + 集群ID + + :param cluster_id: The cluster_id of this OprecordCluster. + :type: str + """ + self._cluster_id = cluster_id + + @property + def node_infos(self): + """Gets the node_infos of this OprecordCluster. + + 节点信息 + + :return: The node_infos of this OprecordCluster. + :rtype: list[NodeInfo] + """ + return self._node_infos + + @node_infos.setter + def node_infos(self, node_infos): + """Sets the node_infos of this OprecordCluster. + + 节点信息 + + :param node_infos: The node_infos of this OprecordCluster. + :type: list[NodeInfo] + """ + self._node_infos = node_infos + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, OprecordCluster): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/process_info.py b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/process_info.py new file mode 100644 index 000000000..33275d6da --- /dev/null +++ b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/process_info.py @@ -0,0 +1,218 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ProcessInfo: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'step_name': 'str', + 'status': 'str', + 'detail': 'str', + 'sub_steps': 'dict(str, SubDetail)', + 'serial_num': 'int' + } + + attribute_map = { + 'step_name': 'step_name', + 'status': 'status', + 'detail': 'detail', + 'sub_steps': 'sub_steps', + 'serial_num': 'serial_num' + } + + def __init__(self, step_name=None, status=None, detail=None, sub_steps=None, serial_num=None): + """ProcessInfo - a model defined in huaweicloud sdk""" + + + + self._step_name = None + self._status = None + self._detail = None + self._sub_steps = None + self._serial_num = None + self.discriminator = None + + if step_name is not None: + self.step_name = step_name + if status is not None: + self.status = status + if detail is not None: + self.detail = detail + if sub_steps is not None: + self.sub_steps = sub_steps + if serial_num is not None: + self.serial_num = serial_num + + @property + def step_name(self): + """Gets the step_name of this ProcessInfo. + + 操作名 + + :return: The step_name of this ProcessInfo. + :rtype: str + """ + return self._step_name + + @step_name.setter + def step_name(self, step_name): + """Sets the step_name of this ProcessInfo. + + 操作名 + + :param step_name: The step_name of this ProcessInfo. + :type: str + """ + self._step_name = step_name + + @property + def status(self): + """Gets the status of this ProcessInfo. + + 操作状态 + + :return: The status of this ProcessInfo. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ProcessInfo. + + 操作状态 + + :param status: The status of this ProcessInfo. + :type: str + """ + self._status = status + + @property + def detail(self): + """Gets the detail of this ProcessInfo. + + 操作详情 + + :return: The detail of this ProcessInfo. + :rtype: str + """ + return self._detail + + @detail.setter + def detail(self, detail): + """Sets the detail of this ProcessInfo. + + 操作详情 + + :param detail: The detail of this ProcessInfo. + :type: str + """ + self._detail = detail + + @property + def sub_steps(self): + """Gets the sub_steps of this ProcessInfo. + + 子操作, \"map[string][SubDetail] key:子操作名 value:子操作结果\" + + :return: The sub_steps of this ProcessInfo. + :rtype: dict(str, SubDetail) + """ + return self._sub_steps + + @sub_steps.setter + def sub_steps(self, sub_steps): + """Sets the sub_steps of this ProcessInfo. + + 子操作, \"map[string][SubDetail] key:子操作名 value:子操作结果\" + + :param sub_steps: The sub_steps of this ProcessInfo. + :type: dict(str, SubDetail) + """ + self._sub_steps = sub_steps + + @property + def serial_num(self): + """Gets the serial_num of this ProcessInfo. + + 序列号 + + :return: The serial_num of this ProcessInfo. + :rtype: int + """ + return self._serial_num + + @serial_num.setter + def serial_num(self, serial_num): + """Sets the serial_num of this ProcessInfo. + + 序列号 + + :param serial_num: The serial_num of this ProcessInfo. + :type: int + """ + self._serial_num = serial_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, ProcessInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/record_detail_info.py b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/record_detail_info.py new file mode 100644 index 000000000..c6b88c866 --- /dev/null +++ b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/record_detail_info.py @@ -0,0 +1,432 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class RecordDetailInfo: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'operation_id': 'str', + 'resource_type': 'str', + 'operation_type': 'str', + 'domain_id': 'str', + 'project_id': 'str', + 'blockchain_id': 'str', + 'blockchain_name': 'str', + 'cluster_info': 'OprecordCluster', + 'operation_process': 'dict(str, ProcessInfo)', + 'record_time': 'int', + 'operation_status': 'str', + 'message': 'list[str]', + 'desc': 'str' + } + + attribute_map = { + 'operation_id': 'operation_id', + 'resource_type': 'resource_type', + 'operation_type': 'operation_type', + 'domain_id': 'domain_id', + 'project_id': 'project_id', + 'blockchain_id': 'blockchain_id', + 'blockchain_name': 'blockchain_name', + 'cluster_info': 'cluster_info', + 'operation_process': 'operation_process', + 'record_time': 'record_time', + 'operation_status': 'operation_status', + 'message': 'message', + 'desc': 'desc' + } + + def __init__(self, operation_id=None, resource_type=None, operation_type=None, domain_id=None, project_id=None, blockchain_id=None, blockchain_name=None, cluster_info=None, operation_process=None, record_time=None, operation_status=None, message=None, desc=None): + """RecordDetailInfo - a model defined in huaweicloud sdk""" + + + + self._operation_id = None + self._resource_type = None + self._operation_type = None + self._domain_id = None + self._project_id = None + self._blockchain_id = None + self._blockchain_name = None + self._cluster_info = None + self._operation_process = None + self._record_time = None + self._operation_status = None + self._message = None + self._desc = None + self.discriminator = None + + if operation_id is not None: + self.operation_id = operation_id + if resource_type is not None: + self.resource_type = resource_type + if operation_type is not None: + self.operation_type = operation_type + if domain_id is not None: + self.domain_id = domain_id + if project_id is not None: + self.project_id = project_id + if blockchain_id is not None: + self.blockchain_id = blockchain_id + if blockchain_name is not None: + self.blockchain_name = blockchain_name + if cluster_info is not None: + self.cluster_info = cluster_info + if operation_process is not None: + self.operation_process = operation_process + if record_time is not None: + self.record_time = record_time + if operation_status is not None: + self.operation_status = operation_status + if message is not None: + self.message = message + if desc is not None: + self.desc = desc + + @property + def operation_id(self): + """Gets the operation_id of this RecordDetailInfo. + + 操作记录ID + + :return: The operation_id of this RecordDetailInfo. + :rtype: str + """ + return self._operation_id + + @operation_id.setter + def operation_id(self, operation_id): + """Sets the operation_id of this RecordDetailInfo. + + 操作记录ID + + :param operation_id: The operation_id of this RecordDetailInfo. + :type: str + """ + self._operation_id = operation_id + + @property + def resource_type(self): + """Gets the resource_type of this RecordDetailInfo. + + 资源类型 + + :return: The resource_type of this RecordDetailInfo. + :rtype: str + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """Sets the resource_type of this RecordDetailInfo. + + 资源类型 + + :param resource_type: The resource_type of this RecordDetailInfo. + :type: str + """ + self._resource_type = resource_type + + @property + def operation_type(self): + """Gets the operation_type of this RecordDetailInfo. + + 操作类型 + + :return: The operation_type of this RecordDetailInfo. + :rtype: str + """ + return self._operation_type + + @operation_type.setter + def operation_type(self, operation_type): + """Sets the operation_type of this RecordDetailInfo. + + 操作类型 + + :param operation_type: The operation_type of this RecordDetailInfo. + :type: str + """ + self._operation_type = operation_type + + @property + def domain_id(self): + """Gets the domain_id of this RecordDetailInfo. + + 租户ID + + :return: The domain_id of this RecordDetailInfo. + :rtype: str + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this RecordDetailInfo. + + 租户ID + + :param domain_id: The domain_id of this RecordDetailInfo. + :type: str + """ + self._domain_id = domain_id + + @property + def project_id(self): + """Gets the project_id of this RecordDetailInfo. + + 项目ID + + :return: The project_id of this RecordDetailInfo. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this RecordDetailInfo. + + 项目ID + + :param project_id: The project_id of this RecordDetailInfo. + :type: str + """ + self._project_id = project_id + + @property + def blockchain_id(self): + """Gets the blockchain_id of this RecordDetailInfo. + + 区块链ID + + :return: The blockchain_id of this RecordDetailInfo. + :rtype: str + """ + return self._blockchain_id + + @blockchain_id.setter + def blockchain_id(self, blockchain_id): + """Sets the blockchain_id of this RecordDetailInfo. + + 区块链ID + + :param blockchain_id: The blockchain_id of this RecordDetailInfo. + :type: str + """ + self._blockchain_id = blockchain_id + + @property + def blockchain_name(self): + """Gets the blockchain_name of this RecordDetailInfo. + + 区块链名称 + + :return: The blockchain_name of this RecordDetailInfo. + :rtype: str + """ + return self._blockchain_name + + @blockchain_name.setter + def blockchain_name(self, blockchain_name): + """Sets the blockchain_name of this RecordDetailInfo. + + 区块链名称 + + :param blockchain_name: The blockchain_name of this RecordDetailInfo. + :type: str + """ + self._blockchain_name = blockchain_name + + @property + def cluster_info(self): + """Gets the cluster_info of this RecordDetailInfo. + + + :return: The cluster_info of this RecordDetailInfo. + :rtype: OprecordCluster + """ + return self._cluster_info + + @cluster_info.setter + def cluster_info(self, cluster_info): + """Sets the cluster_info of this RecordDetailInfo. + + + :param cluster_info: The cluster_info of this RecordDetailInfo. + :type: OprecordCluster + """ + self._cluster_info = cluster_info + + @property + def operation_process(self): + """Gets the operation_process of this RecordDetailInfo. + + 操作流程,key为流程名,value为流程信息 + + :return: The operation_process of this RecordDetailInfo. + :rtype: dict(str, ProcessInfo) + """ + return self._operation_process + + @operation_process.setter + def operation_process(self, operation_process): + """Sets the operation_process of this RecordDetailInfo. + + 操作流程,key为流程名,value为流程信息 + + :param operation_process: The operation_process of this RecordDetailInfo. + :type: dict(str, ProcessInfo) + """ + self._operation_process = operation_process + + @property + def record_time(self): + """Gets the record_time of this RecordDetailInfo. + + 记录更新时间 + + :return: The record_time of this RecordDetailInfo. + :rtype: int + """ + return self._record_time + + @record_time.setter + def record_time(self, record_time): + """Sets the record_time of this RecordDetailInfo. + + 记录更新时间 + + :param record_time: The record_time of this RecordDetailInfo. + :type: int + """ + self._record_time = record_time + + @property + def operation_status(self): + """Gets the operation_status of this RecordDetailInfo. + + 操作状态 + + :return: The operation_status of this RecordDetailInfo. + :rtype: str + """ + return self._operation_status + + @operation_status.setter + def operation_status(self, operation_status): + """Sets the operation_status of this RecordDetailInfo. + + 操作状态 + + :param operation_status: The operation_status of this RecordDetailInfo. + :type: str + """ + self._operation_status = operation_status + + @property + def message(self): + """Gets the message of this RecordDetailInfo. + + 操作过程信息记录 + + :return: The message of this RecordDetailInfo. + :rtype: list[str] + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this RecordDetailInfo. + + 操作过程信息记录 + + :param message: The message of this RecordDetailInfo. + :type: list[str] + """ + self._message = message + + @property + def desc(self): + """Gets the desc of this RecordDetailInfo. + + 操作描述 + + :return: The desc of this RecordDetailInfo. + :rtype: str + """ + return self._desc + + @desc.setter + def desc(self, desc): + """Sets the desc of this RecordDetailInfo. + + 操作描述 + + :param desc: The desc of this RecordDetailInfo. + :type: str + """ + self._desc = desc + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RecordDetailInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/sub_detail.py b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/sub_detail.py new file mode 100644 index 000000000..739c488b0 --- /dev/null +++ b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/sub_detail.py @@ -0,0 +1,272 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class SubDetail: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'substep_name': 'str', + 'detail': 'str', + 'status': 'str', + 'message': 'list[str]', + 'start_time': 'int', + 'end_time': 'int', + 'serial_num': 'int' + } + + attribute_map = { + 'substep_name': 'substep_name', + 'detail': 'detail', + 'status': 'status', + 'message': 'message', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'serial_num': 'serial_num' + } + + def __init__(self, substep_name=None, detail=None, status=None, message=None, start_time=None, end_time=None, serial_num=None): + """SubDetail - a model defined in huaweicloud sdk""" + + + + self._substep_name = None + self._detail = None + self._status = None + self._message = None + self._start_time = None + self._end_time = None + self._serial_num = None + self.discriminator = None + + if substep_name is not None: + self.substep_name = substep_name + if detail is not None: + self.detail = detail + if status is not None: + self.status = status + if message is not None: + self.message = message + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if serial_num is not None: + self.serial_num = serial_num + + @property + def substep_name(self): + """Gets the substep_name of this SubDetail. + + 子操作名 + + :return: The substep_name of this SubDetail. + :rtype: str + """ + return self._substep_name + + @substep_name.setter + def substep_name(self, substep_name): + """Sets the substep_name of this SubDetail. + + 子操作名 + + :param substep_name: The substep_name of this SubDetail. + :type: str + """ + self._substep_name = substep_name + + @property + def detail(self): + """Gets the detail of this SubDetail. + + 子操作详情 + + :return: The detail of this SubDetail. + :rtype: str + """ + return self._detail + + @detail.setter + def detail(self, detail): + """Sets the detail of this SubDetail. + + 子操作详情 + + :param detail: The detail of this SubDetail. + :type: str + """ + self._detail = detail + + @property + def status(self): + """Gets the status of this SubDetail. + + 子操作状态 + + :return: The status of this SubDetail. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this SubDetail. + + 子操作状态 + + :param status: The status of this SubDetail. + :type: str + """ + self._status = status + + @property + def message(self): + """Gets the message of this SubDetail. + + 子操作过程信息记录 + + :return: The message of this SubDetail. + :rtype: list[str] + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this SubDetail. + + 子操作过程信息记录 + + :param message: The message of this SubDetail. + :type: list[str] + """ + self._message = message + + @property + def start_time(self): + """Gets the start_time of this SubDetail. + + 开始时间 + + :return: The start_time of this SubDetail. + :rtype: int + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this SubDetail. + + 开始时间 + + :param start_time: The start_time of this SubDetail. + :type: int + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this SubDetail. + + 结束时间 + + :return: The end_time of this SubDetail. + :rtype: int + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this SubDetail. + + 结束时间 + + :param end_time: The end_time of this SubDetail. + :type: int + """ + self._end_time = end_time + + @property + def serial_num(self): + """Gets the serial_num of this SubDetail. + + 序列号 + + :return: The serial_num of this SubDetail. + :rtype: int + """ + return self._serial_num + + @serial_num.setter + def serial_num(self, serial_num): + """Sets the serial_num of this SubDetail. + + 序列号 + + :param serial_num: The serial_num of this SubDetail. + :type: int + """ + self._serial_num = serial_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, SubDetail): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/update_instance_request.py b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/update_instance_request.py index 56e8f4545..78f3f9919 100644 --- a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/update_instance_request.py +++ b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/update_instance_request.py @@ -24,7 +24,7 @@ class UpdateInstanceRequest: openapi_types = { 'blockchain_id': 'str', - 'body': 'UpdateInstanceRequestBody' + 'body': 'OpIdRes' } attribute_map = { @@ -71,7 +71,7 @@ class UpdateInstanceRequest: :return: The body of this UpdateInstanceRequest. - :rtype: UpdateInstanceRequestBody + :rtype: OpIdRes """ return self._body @@ -81,7 +81,7 @@ class UpdateInstanceRequest: :param body: The body of this UpdateInstanceRequest. - :type: UpdateInstanceRequestBody + :type: OpIdRes """ self._body = body diff --git a/huaweicloud-sdk-bcs/setup.py b/huaweicloud-sdk-bcs/setup.py index b389c103a..55b90671d 100644 --- a/huaweicloud-sdk-bcs/setup.py +++ b/huaweicloud-sdk-bcs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkbcs" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-bms/setup.py b/huaweicloud-sdk-bms/setup.py index 5933ea5b4..3758f6ac1 100644 --- a/huaweicloud-sdk-bms/setup.py +++ b/huaweicloud-sdk-bms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkbms" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-bss/setup.py b/huaweicloud-sdk-bss/setup.py index 5c76e0c76..65f36624e 100644 --- a/huaweicloud-sdk-bss/setup.py +++ b/huaweicloud-sdk-bss/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkbss" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-bssintl/setup.py b/huaweicloud-sdk-bssintl/setup.py index 8b577a296..4ec99090e 100644 --- a/huaweicloud-sdk-bssintl/setup.py +++ b/huaweicloud-sdk-bssintl/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkbssintl" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cbr/setup.py b/huaweicloud-sdk-cbr/setup.py index 213f607f4..6afde26f7 100644 --- a/huaweicloud-sdk-cbr/setup.py +++ b/huaweicloud-sdk-cbr/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcbr" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cce/setup.py b/huaweicloud-sdk-cce/setup.py index 0de0f4147..c4cfbe621 100644 --- a/huaweicloud-sdk-cce/setup.py +++ b/huaweicloud-sdk-cce/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcce" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-ces/setup.py b/huaweicloud-sdk-ces/setup.py index 735775cc3..80a9d0ba0 100644 --- a/huaweicloud-sdk-ces/setup.py +++ b/huaweicloud-sdk-ces/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkces" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-classroom/setup.py b/huaweicloud-sdk-classroom/setup.py index fb55ce9de..eed553fba 100644 --- a/huaweicloud-sdk-classroom/setup.py +++ b/huaweicloud-sdk-classroom/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkclassroom" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cloudide/setup.py b/huaweicloud-sdk-cloudide/setup.py index da168393b..2607ce60f 100644 --- a/huaweicloud-sdk-cloudide/setup.py +++ b/huaweicloud-sdk-cloudide/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudide" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cloudpipeline/setup.py b/huaweicloud-sdk-cloudpipeline/setup.py index 9c442e96c..624dba165 100644 --- a/huaweicloud-sdk-cloudpipeline/setup.py +++ b/huaweicloud-sdk-cloudpipeline/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudpipeline" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cloudtest/setup.py b/huaweicloud-sdk-cloudtest/setup.py index 8315d0767..6f31dc342 100644 --- a/huaweicloud-sdk-cloudtest/setup.py +++ b/huaweicloud-sdk-cloudtest/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudtest" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-core/setup.py b/huaweicloud-sdk-core/setup.py index 24feb8b8e..4aec0d1e8 100644 --- a/huaweicloud-sdk-core/setup.py +++ b/huaweicloud-sdk-core/setup.py @@ -22,7 +22,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcore" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cts/setup.py b/huaweicloud-sdk-cts/setup.py index 233dd721f..457a463c9 100644 --- a/huaweicloud-sdk-cts/setup.py +++ b/huaweicloud-sdk-cts/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcts" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-dcs/setup.py b/huaweicloud-sdk-dcs/setup.py index 175dd19f5..98dfb78fa 100644 --- a/huaweicloud-sdk-dcs/setup.py +++ b/huaweicloud-sdk-dcs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdcs" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/__init__.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/__init__.py index eaf20eef1..869ab3080 100644 --- a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/__init__.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/__init__.py @@ -22,6 +22,7 @@ from huaweicloudsdkdds.v3.model.backup_policy import BackupPolicy from huaweicloudsdkdds.v3.model.backup_policy_item import BackupPolicyItem from huaweicloudsdkdds.v3.model.backup_strategy import BackupStrategy from huaweicloudsdkdds.v3.model.backup_strategy_for_item_response import BackupStrategyForItemResponse +from huaweicloudsdkdds.v3.model.balancer_active_window import BalancerActiveWindow from huaweicloudsdkdds.v3.model.batch_operate_instance_tag_request_body import BatchOperateInstanceTagRequestBody from huaweicloudsdkdds.v3.model.batch_tag_action_request import BatchTagActionRequest from huaweicloudsdkdds.v3.model.batch_tag_action_response import BatchTagActionResponse @@ -163,6 +164,10 @@ from huaweicloudsdkdds.v3.model.set_auditlog_policy_response import SetAuditlogP from huaweicloudsdkdds.v3.model.set_backup_policy_request import SetBackupPolicyRequest from huaweicloudsdkdds.v3.model.set_backup_policy_request_body import SetBackupPolicyRequestBody from huaweicloudsdkdds.v3.model.set_backup_policy_response import SetBackupPolicyResponse +from huaweicloudsdkdds.v3.model.set_balancer_switch_request import SetBalancerSwitchRequest +from huaweicloudsdkdds.v3.model.set_balancer_switch_response import SetBalancerSwitchResponse +from huaweicloudsdkdds.v3.model.set_balancer_window_request import SetBalancerWindowRequest +from huaweicloudsdkdds.v3.model.set_balancer_window_response import SetBalancerWindowResponse from huaweicloudsdkdds.v3.model.show_api_version_request import ShowApiVersionRequest from huaweicloudsdkdds.v3.model.show_api_version_response import ShowApiVersionResponse from huaweicloudsdkdds.v3.model.show_auditlog_policy_request import ShowAuditlogPolicyRequest @@ -173,6 +178,8 @@ from huaweicloudsdkdds.v3.model.show_backup_policy_request import ShowBackupPoli from huaweicloudsdkdds.v3.model.show_backup_policy_response import ShowBackupPolicyResponse from huaweicloudsdkdds.v3.model.show_connection_statistics_request import ShowConnectionStatisticsRequest from huaweicloudsdkdds.v3.model.show_connection_statistics_response import ShowConnectionStatisticsResponse +from huaweicloudsdkdds.v3.model.show_sharding_balancer_request import ShowShardingBalancerRequest +from huaweicloudsdkdds.v3.model.show_sharding_balancer_response import ShowShardingBalancerResponse from huaweicloudsdkdds.v3.model.slowlog_result import SlowlogResult from huaweicloudsdkdds.v3.model.source import Source from huaweicloudsdkdds.v3.model.storage import Storage diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/dds_async_client.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/dds_async_client.py index 299d0a997..52e132272 100644 --- a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/dds_async_client.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/dds_async_client.py @@ -3043,6 +3043,136 @@ class DdsAsyncClient(Client): request_type=request.__class__.__name__) + def set_balancer_switch_async(self, request): + """设置集群均衡开关 + + 设置集群均衡开关。 + + :param SetBalancerSwitchRequest request + :return: SetBalancerSwitchResponse + """ + return self.set_balancer_switch_with_http_info(request) + + def set_balancer_switch_with_http_info(self, request): + """设置集群均衡开关 + + 设置集群均衡开关。 + + :param SetBalancerSwitchRequest request + :return: SetBalancerSwitchResponse + """ + + all_params = ['instance_id', 'action'] + 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 'action' in local_var_params: + path_params['action'] = local_var_params['action'] + + 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='/v3/{project_id}/instances/{instance_id}/balancer/{action}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='SetBalancerSwitchResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def set_balancer_window_async(self, request): + """设置集群均衡活动时间窗 + + 设置集群均衡活动时间窗。 + + :param SetBalancerWindowRequest request + :return: SetBalancerWindowResponse + """ + return self.set_balancer_window_with_http_info(request) + + def set_balancer_window_with_http_info(self, request): + """设置集群均衡活动时间窗 + + 设置集群均衡活动时间窗。 + + :param SetBalancerWindowRequest request + :return: SetBalancerWindowResponse + """ + + all_params = ['instance_id', 'balancer_active_window'] + 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='/v3/{project_id}/instances/{instance_id}/balancer/active-window', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='SetBalancerWindowResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_auditlog_policy_async(self, request): """查询审计日志策略 @@ -3303,6 +3433,69 @@ class DdsAsyncClient(Client): request_type=request.__class__.__name__) + def show_sharding_balancer_async(self, request): + """查询集群均衡设置 + + 查询集群均衡设置。 + + :param ShowShardingBalancerRequest request + :return: ShowShardingBalancerResponse + """ + return self.show_sharding_balancer_with_http_info(request) + + def show_sharding_balancer_with_http_info(self, request): + """查询集群均衡设置 + + 查询集群均衡设置。 + + :param ShowShardingBalancerRequest request + :return: ShowShardingBalancerResponse + """ + + 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='/v3/{project_id}/instances/{instance_id}/balancer', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowShardingBalancerResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def switch_ssl_async(self, request): """切换SSL开关 diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/dds_client.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/dds_client.py index 6bfbfaba1..b069c3f73 100644 --- a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/dds_client.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/dds_client.py @@ -3043,6 +3043,136 @@ class DdsClient(Client): request_type=request.__class__.__name__) + def set_balancer_switch(self, request): + """设置集群均衡开关 + + 设置集群均衡开关。 + + :param SetBalancerSwitchRequest request + :return: SetBalancerSwitchResponse + """ + return self.set_balancer_switch_with_http_info(request) + + def set_balancer_switch_with_http_info(self, request): + """设置集群均衡开关 + + 设置集群均衡开关。 + + :param SetBalancerSwitchRequest request + :return: SetBalancerSwitchResponse + """ + + all_params = ['instance_id', 'action'] + 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 'action' in local_var_params: + path_params['action'] = local_var_params['action'] + + 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='/v3/{project_id}/instances/{instance_id}/balancer/{action}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='SetBalancerSwitchResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def set_balancer_window(self, request): + """设置集群均衡活动时间窗 + + 设置集群均衡活动时间窗。 + + :param SetBalancerWindowRequest request + :return: SetBalancerWindowResponse + """ + return self.set_balancer_window_with_http_info(request) + + def set_balancer_window_with_http_info(self, request): + """设置集群均衡活动时间窗 + + 设置集群均衡活动时间窗。 + + :param SetBalancerWindowRequest request + :return: SetBalancerWindowResponse + """ + + all_params = ['instance_id', 'balancer_active_window'] + 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='/v3/{project_id}/instances/{instance_id}/balancer/active-window', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='SetBalancerWindowResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_auditlog_policy(self, request): """查询审计日志策略 @@ -3303,6 +3433,69 @@ class DdsClient(Client): request_type=request.__class__.__name__) + def show_sharding_balancer(self, request): + """查询集群均衡设置 + + 查询集群均衡设置。 + + :param ShowShardingBalancerRequest request + :return: ShowShardingBalancerResponse + """ + return self.show_sharding_balancer_with_http_info(request) + + def show_sharding_balancer_with_http_info(self, request): + """查询集群均衡设置 + + 查询集群均衡设置。 + + :param ShowShardingBalancerRequest request + :return: ShowShardingBalancerResponse + """ + + 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='/v3/{project_id}/instances/{instance_id}/balancer', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowShardingBalancerResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def switch_ssl(self, request): """切换SSL开关 diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/__init__.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/__init__.py index 904098471..c0a75b16f 100644 --- a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/__init__.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/__init__.py @@ -19,6 +19,7 @@ from huaweicloudsdkdds.v3.model.backup_policy import BackupPolicy from huaweicloudsdkdds.v3.model.backup_policy_item import BackupPolicyItem from huaweicloudsdkdds.v3.model.backup_strategy import BackupStrategy from huaweicloudsdkdds.v3.model.backup_strategy_for_item_response import BackupStrategyForItemResponse +from huaweicloudsdkdds.v3.model.balancer_active_window import BalancerActiveWindow from huaweicloudsdkdds.v3.model.batch_operate_instance_tag_request_body import BatchOperateInstanceTagRequestBody from huaweicloudsdkdds.v3.model.batch_tag_action_request import BatchTagActionRequest from huaweicloudsdkdds.v3.model.batch_tag_action_response import BatchTagActionResponse @@ -160,6 +161,10 @@ from huaweicloudsdkdds.v3.model.set_auditlog_policy_response import SetAuditlogP from huaweicloudsdkdds.v3.model.set_backup_policy_request import SetBackupPolicyRequest from huaweicloudsdkdds.v3.model.set_backup_policy_request_body import SetBackupPolicyRequestBody from huaweicloudsdkdds.v3.model.set_backup_policy_response import SetBackupPolicyResponse +from huaweicloudsdkdds.v3.model.set_balancer_switch_request import SetBalancerSwitchRequest +from huaweicloudsdkdds.v3.model.set_balancer_switch_response import SetBalancerSwitchResponse +from huaweicloudsdkdds.v3.model.set_balancer_window_request import SetBalancerWindowRequest +from huaweicloudsdkdds.v3.model.set_balancer_window_response import SetBalancerWindowResponse from huaweicloudsdkdds.v3.model.show_api_version_request import ShowApiVersionRequest from huaweicloudsdkdds.v3.model.show_api_version_response import ShowApiVersionResponse from huaweicloudsdkdds.v3.model.show_auditlog_policy_request import ShowAuditlogPolicyRequest @@ -170,6 +175,8 @@ from huaweicloudsdkdds.v3.model.show_backup_policy_request import ShowBackupPoli from huaweicloudsdkdds.v3.model.show_backup_policy_response import ShowBackupPolicyResponse from huaweicloudsdkdds.v3.model.show_connection_statistics_request import ShowConnectionStatisticsRequest from huaweicloudsdkdds.v3.model.show_connection_statistics_response import ShowConnectionStatisticsResponse +from huaweicloudsdkdds.v3.model.show_sharding_balancer_request import ShowShardingBalancerRequest +from huaweicloudsdkdds.v3.model.show_sharding_balancer_response import ShowShardingBalancerResponse from huaweicloudsdkdds.v3.model.slowlog_result import SlowlogResult from huaweicloudsdkdds.v3.model.source import Source from huaweicloudsdkdds.v3.model.storage import Storage diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_subscription_request.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/balancer_active_window.py similarity index 57% rename from huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_subscription_request.py rename to huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/balancer_active_window.py index 253467cde..aeea9247f 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_subscription_request.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/balancer_active_window.py @@ -9,7 +9,7 @@ import six -class DeleteSubscriptionRequest: +class BalancerActiveWindow: """ @@ -23,67 +23,70 @@ class DeleteSubscriptionRequest: sensitive_list = [] openapi_types = { - 'instance_id': 'str', - 'subscription_id': 'str' + 'start_time': 'str', + 'stop_time': 'str' } attribute_map = { - 'instance_id': 'Instance-Id', - 'subscription_id': 'subscription_id' + 'start_time': 'start_time', + 'stop_time': 'stop_time' } - def __init__(self, instance_id=None, subscription_id=None): - """DeleteSubscriptionRequest - a model defined in huaweicloud sdk""" + def __init__(self, start_time=None, stop_time=None): + """BalancerActiveWindow - a model defined in huaweicloud sdk""" - self._instance_id = None - self._subscription_id = None + self._start_time = None + self._stop_time = None self.discriminator = None - if instance_id is not None: - self.instance_id = instance_id - self.subscription_id = subscription_id + self.start_time = start_time + self.stop_time = stop_time @property - def instance_id(self): - """Gets the instance_id of this DeleteSubscriptionRequest. + def start_time(self): + """Gets the start_time of this BalancerActiveWindow. + 活动时间窗开始时间。 - :return: The instance_id of this DeleteSubscriptionRequest. + :return: The start_time of this BalancerActiveWindow. :rtype: str """ - return self._instance_id + return self._start_time - @instance_id.setter - def instance_id(self, instance_id): - """Sets the instance_id of this DeleteSubscriptionRequest. + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this BalancerActiveWindow. + 活动时间窗开始时间。 - :param instance_id: The instance_id of this DeleteSubscriptionRequest. + :param start_time: The start_time of this BalancerActiveWindow. :type: str """ - self._instance_id = instance_id + self._start_time = start_time @property - def subscription_id(self): - """Gets the subscription_id of this DeleteSubscriptionRequest. + def stop_time(self): + """Gets the stop_time of this BalancerActiveWindow. + 活动时间窗结束时间。 - :return: The subscription_id of this DeleteSubscriptionRequest. + :return: The stop_time of this BalancerActiveWindow. :rtype: str """ - return self._subscription_id + return self._stop_time - @subscription_id.setter - def subscription_id(self, subscription_id): - """Sets the subscription_id of this DeleteSubscriptionRequest. + @stop_time.setter + def stop_time(self, stop_time): + """Sets the stop_time of this BalancerActiveWindow. + 活动时间窗结束时间。 - :param subscription_id: The subscription_id of this DeleteSubscriptionRequest. + :param stop_time: The stop_time of this BalancerActiveWindow. :type: str """ - self._subscription_id = subscription_id + self._stop_time = stop_time def to_dict(self): """Returns the model properties as a dict""" @@ -122,7 +125,7 @@ class DeleteSubscriptionRequest: def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, DeleteSubscriptionRequest): + if not isinstance(other, BalancerActiveWindow): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_subscription_request.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/set_balancer_switch_request.py similarity index 64% rename from huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_subscription_request.py rename to huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/set_balancer_switch_request.py index ff6cd6e6e..d53a75278 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_subscription_request.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/set_balancer_switch_request.py @@ -9,7 +9,7 @@ import six -class ShowSubscriptionRequest: +class SetBalancerSwitchRequest: """ @@ -24,66 +24,65 @@ class ShowSubscriptionRequest: openapi_types = { 'instance_id': 'str', - 'subscription_id': 'str' + 'action': 'str' } attribute_map = { - 'instance_id': 'Instance-Id', - 'subscription_id': 'subscription_id' + 'instance_id': 'instance_id', + 'action': 'action' } - def __init__(self, instance_id=None, subscription_id=None): - """ShowSubscriptionRequest - a model defined in huaweicloud sdk""" + def __init__(self, instance_id=None, action=None): + """SetBalancerSwitchRequest - a model defined in huaweicloud sdk""" self._instance_id = None - self._subscription_id = None + self._action = None self.discriminator = None - if instance_id is not None: - self.instance_id = instance_id - self.subscription_id = subscription_id + self.instance_id = instance_id + self.action = action @property def instance_id(self): - """Gets the instance_id of this ShowSubscriptionRequest. + """Gets the instance_id of this SetBalancerSwitchRequest. - :return: The instance_id of this ShowSubscriptionRequest. + :return: The instance_id of this SetBalancerSwitchRequest. :rtype: str """ return self._instance_id @instance_id.setter def instance_id(self, instance_id): - """Sets the instance_id of this ShowSubscriptionRequest. + """Sets the instance_id of this SetBalancerSwitchRequest. - :param instance_id: The instance_id of this ShowSubscriptionRequest. + :param instance_id: The instance_id of this SetBalancerSwitchRequest. :type: str """ self._instance_id = instance_id @property - def subscription_id(self): - """Gets the subscription_id of this ShowSubscriptionRequest. + def action(self): + """Gets the action of this SetBalancerSwitchRequest. - :return: The subscription_id of this ShowSubscriptionRequest. + :return: The action of this SetBalancerSwitchRequest. :rtype: str """ - return self._subscription_id + return self._action - @subscription_id.setter - def subscription_id(self, subscription_id): - """Sets the subscription_id of this ShowSubscriptionRequest. + @action.setter + def action(self, action): + """Sets the action of this SetBalancerSwitchRequest. - :param subscription_id: The subscription_id of this ShowSubscriptionRequest. + :param action: The action of this SetBalancerSwitchRequest. :type: str """ - self._subscription_id = subscription_id + self._action = action def to_dict(self): """Returns the model properties as a dict""" @@ -122,7 +121,7 @@ class ShowSubscriptionRequest: def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ShowSubscriptionRequest): + if not isinstance(other, SetBalancerSwitchRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_subscription_response.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/set_balancer_switch_response.py similarity index 72% rename from huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_subscription_response.py rename to huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/set_balancer_switch_response.py index b33adc9f9..7406d99b8 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_subscription_response.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/set_balancer_switch_response.py @@ -9,7 +9,7 @@ import six from huaweicloudsdkcore.sdk_response import SdkResponse -class DeleteSubscriptionResponse(SdkResponse): +class SetBalancerSwitchResponse(SdkResponse): """ @@ -23,43 +23,45 @@ class DeleteSubscriptionResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'body': 'str' + 'job_id': 'str' } attribute_map = { - 'body': 'body' + 'job_id': 'job_id' } - def __init__(self, body=None): - """DeleteSubscriptionResponse - a model defined in huaweicloud sdk""" + def __init__(self, job_id=None): + """SetBalancerSwitchResponse - a model defined in huaweicloud sdk""" super().__init__() - self._body = None + self._job_id = None self.discriminator = None - if body is not None: - self.body = body + if job_id is not None: + self.job_id = job_id @property - def body(self): - """Gets the body of this DeleteSubscriptionResponse. + def job_id(self): + """Gets the job_id of this SetBalancerSwitchResponse. + 任务ID。 - :return: The body of this DeleteSubscriptionResponse. + :return: The job_id of this SetBalancerSwitchResponse. :rtype: str """ - return self._body + return self._job_id - @body.setter - def body(self, body): - """Sets the body of this DeleteSubscriptionResponse. + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this SetBalancerSwitchResponse. + 任务ID。 - :param body: The body of this DeleteSubscriptionResponse. + :param job_id: The job_id of this SetBalancerSwitchResponse. :type: str """ - self._body = body + self._job_id = job_id def to_dict(self): """Returns the model properties as a dict""" @@ -98,7 +100,7 @@ class DeleteSubscriptionResponse(SdkResponse): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, DeleteSubscriptionResponse): + if not isinstance(other, SetBalancerSwitchResponse): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_subscription_request.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/set_balancer_window_request.py similarity index 73% rename from huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_subscription_request.py rename to huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/set_balancer_window_request.py index ce49e403a..74c011d66 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_subscription_request.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/set_balancer_window_request.py @@ -9,7 +9,7 @@ import six -class CreateSubscriptionRequest: +class SetBalancerWindowRequest: """ @@ -24,16 +24,16 @@ class CreateSubscriptionRequest: openapi_types = { 'instance_id': 'str', - 'body': 'CreateSubReq' + 'body': 'BalancerActiveWindow' } attribute_map = { - 'instance_id': 'Instance-Id', + 'instance_id': 'instance_id', 'body': 'body' } def __init__(self, instance_id=None, body=None): - """CreateSubscriptionRequest - a model defined in huaweicloud sdk""" + """SetBalancerWindowRequest - a model defined in huaweicloud sdk""" @@ -41,48 +41,47 @@ class CreateSubscriptionRequest: self._body = None self.discriminator = None - if instance_id is not None: - self.instance_id = instance_id + self.instance_id = instance_id if body is not None: self.body = body @property def instance_id(self): - """Gets the instance_id of this CreateSubscriptionRequest. + """Gets the instance_id of this SetBalancerWindowRequest. - :return: The instance_id of this CreateSubscriptionRequest. + :return: The instance_id of this SetBalancerWindowRequest. :rtype: str """ return self._instance_id @instance_id.setter def instance_id(self, instance_id): - """Sets the instance_id of this CreateSubscriptionRequest. + """Sets the instance_id of this SetBalancerWindowRequest. - :param instance_id: The instance_id of this CreateSubscriptionRequest. + :param instance_id: The instance_id of this SetBalancerWindowRequest. :type: str """ self._instance_id = instance_id @property def body(self): - """Gets the body of this CreateSubscriptionRequest. + """Gets the body of this SetBalancerWindowRequest. - :return: The body of this CreateSubscriptionRequest. - :rtype: CreateSubReq + :return: The body of this SetBalancerWindowRequest. + :rtype: BalancerActiveWindow """ return self._body @body.setter def body(self, body): - """Sets the body of this CreateSubscriptionRequest. + """Sets the body of this SetBalancerWindowRequest. - :param body: The body of this CreateSubscriptionRequest. - :type: CreateSubReq + :param body: The body of this SetBalancerWindowRequest. + :type: BalancerActiveWindow """ self._body = body @@ -123,7 +122,7 @@ class CreateSubscriptionRequest: def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, CreateSubscriptionRequest): + if not isinstance(other, SetBalancerWindowRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/update_instance_request_body.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/set_balancer_window_response.py similarity index 68% rename from huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/update_instance_request_body.py rename to huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/set_balancer_window_response.py index e726ced16..ebeb65063 100644 --- a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/update_instance_request_body.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/set_balancer_window_response.py @@ -6,10 +6,10 @@ import re import six +from huaweicloudsdkcore.sdk_response import SdkResponse - -class UpdateInstanceRequestBody: +class SetBalancerWindowResponse(SdkResponse): """ @@ -23,44 +23,45 @@ class UpdateInstanceRequestBody: sensitive_list = [] openapi_types = { - 'node_orgs': 'list[NodeOrgs]' + 'job_id': 'str' } attribute_map = { - 'node_orgs': 'node_orgs' + 'job_id': 'job_id' } - def __init__(self, node_orgs=None): - """UpdateInstanceRequestBody - a model defined in huaweicloud sdk""" - + def __init__(self, job_id=None): + """SetBalancerWindowResponse - a model defined in huaweicloud sdk""" + super().__init__() - self._node_orgs = None + self._job_id = None self.discriminator = None - self.node_orgs = node_orgs + if job_id is not None: + self.job_id = job_id @property - def node_orgs(self): - """Gets the node_orgs of this UpdateInstanceRequestBody. + def job_id(self): + """Gets the job_id of this SetBalancerWindowResponse. - 添加节点的组织列表 + 任务ID。 - :return: The node_orgs of this UpdateInstanceRequestBody. - :rtype: list[NodeOrgs] + :return: The job_id of this SetBalancerWindowResponse. + :rtype: str """ - return self._node_orgs + return self._job_id - @node_orgs.setter - def node_orgs(self, node_orgs): - """Sets the node_orgs of this UpdateInstanceRequestBody. + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this SetBalancerWindowResponse. - 添加节点的组织列表 + 任务ID。 - :param node_orgs: The node_orgs of this UpdateInstanceRequestBody. - :type: list[NodeOrgs] + :param job_id: The job_id of this SetBalancerWindowResponse. + :type: str """ - self._node_orgs = node_orgs + self._job_id = job_id def to_dict(self): """Returns the model properties as a dict""" @@ -99,7 +100,7 @@ class UpdateInstanceRequestBody: def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, UpdateInstanceRequestBody): + if not isinstance(other, SetBalancerWindowResponse): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/show_sharding_balancer_request.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/show_sharding_balancer_request.py new file mode 100644 index 000000000..754507e6e --- /dev/null +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/show_sharding_balancer_request.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ShowShardingBalancerRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """ShowShardingBalancerRequest - 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 ShowShardingBalancerRequest. + + + :return: The instance_id of this ShowShardingBalancerRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowShardingBalancerRequest. + + + :param instance_id: The instance_id of this ShowShardingBalancerRequest. + :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, ShowShardingBalancerRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/show_sharding_balancer_response.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/show_sharding_balancer_response.py new file mode 100644 index 000000000..3e5fbe51b --- /dev/null +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/show_sharding_balancer_response.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ShowShardingBalancerResponse(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_open': 'bool', + 'active_window': 'BalancerActiveWindow' + } + + attribute_map = { + 'is_open': 'is_open', + 'active_window': 'active_window' + } + + def __init__(self, is_open=None, active_window=None): + """ShowShardingBalancerResponse - a model defined in huaweicloud sdk""" + + super().__init__() + + self._is_open = None + self._active_window = None + self.discriminator = None + + if is_open is not None: + self.is_open = is_open + if active_window is not None: + self.active_window = active_window + + @property + def is_open(self): + """Gets the is_open of this ShowShardingBalancerResponse. + + 集群均衡是否打开。 + + :return: The is_open of this ShowShardingBalancerResponse. + :rtype: bool + """ + return self._is_open + + @is_open.setter + def is_open(self, is_open): + """Sets the is_open of this ShowShardingBalancerResponse. + + 集群均衡是否打开。 + + :param is_open: The is_open of this ShowShardingBalancerResponse. + :type: bool + """ + self._is_open = is_open + + @property + def active_window(self): + """Gets the active_window of this ShowShardingBalancerResponse. + + + :return: The active_window of this ShowShardingBalancerResponse. + :rtype: BalancerActiveWindow + """ + return self._active_window + + @active_window.setter + def active_window(self, active_window): + """Sets the active_window of this ShowShardingBalancerResponse. + + + :param active_window: The active_window of this ShowShardingBalancerResponse. + :type: BalancerActiveWindow + """ + self._active_window = active_window + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowShardingBalancerResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dds/setup.py b/huaweicloud-sdk-dds/setup.py index e5b93baa4..f0b04ab1b 100644 --- a/huaweicloud-sdk-dds/setup.py +++ b/huaweicloud-sdk-dds/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdds" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-devstar/setup.py b/huaweicloud-sdk-devstar/setup.py index a6a3be632..c8268cdf2 100644 --- a/huaweicloud-sdk-devstar/setup.py +++ b/huaweicloud-sdk-devstar/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdevstar" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-dgc/setup.py b/huaweicloud-sdk-dgc/setup.py index 15aeae5a1..66c82321e 100644 --- a/huaweicloud-sdk-dgc/setup.py +++ b/huaweicloud-sdk-dgc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdgc" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-dms/setup.py b/huaweicloud-sdk-dms/setup.py index d2dcc4817..27af01680 100644 --- a/huaweicloud-sdk-dms/setup.py +++ b/huaweicloud-sdk-dms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdms" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-dns/setup.py b/huaweicloud-sdk-dns/setup.py index c10af5766..1c3b79326 100644 --- a/huaweicloud-sdk-dns/setup.py +++ b/huaweicloud-sdk-dns/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdns" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-ecs/setup.py b/huaweicloud-sdk-ecs/setup.py index ac1da8412..954ba9200 100644 --- a/huaweicloud-sdk-ecs/setup.py +++ b/huaweicloud-sdk-ecs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkecs" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-eip/setup.py b/huaweicloud-sdk-eip/setup.py index b410d4432..c66447ba5 100644 --- a/huaweicloud-sdk-eip/setup.py +++ b/huaweicloud-sdk-eip/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkeip" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-elb/setup.py b/huaweicloud-sdk-elb/setup.py index bb8924467..701709a32 100644 --- a/huaweicloud-sdk-elb/setup.py +++ b/huaweicloud-sdk-elb/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkelb" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-eps/setup.py b/huaweicloud-sdk-eps/setup.py index 74100544b..fa269d74f 100644 --- a/huaweicloud-sdk-eps/setup.py +++ b/huaweicloud-sdk-eps/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkeps" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/create_volume_option.py b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/create_volume_option.py index 425f95f43..e77beffcf 100644 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/create_volume_option.py +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/create_volume_option.py @@ -32,7 +32,6 @@ class CreateVolumeOption: 'metadata': 'dict(str, str)', 'multiattach': 'bool', 'name': 'str', - 'shareable': 'str', 'size': 'int', 'snapshot_id': 'str', 'volume_type': 'str', @@ -49,14 +48,13 @@ class CreateVolumeOption: 'metadata': 'metadata', 'multiattach': 'multiattach', 'name': 'name', - 'shareable': 'shareable', 'size': 'size', 'snapshot_id': 'snapshot_id', 'volume_type': 'volume_type', 'tags': 'tags' } - def __init__(self, availability_zone=None, backup_id=None, count=None, description=None, enterprise_project_id=None, image_ref=None, metadata=None, multiattach=None, name=None, shareable=None, size=None, snapshot_id=None, volume_type=None, tags=None): + def __init__(self, availability_zone=None, backup_id=None, count=None, description=None, enterprise_project_id=None, image_ref=None, metadata=None, multiattach=None, name=None, size=None, snapshot_id=None, volume_type=None, tags=None): """CreateVolumeOption - a model defined in huaweicloud sdk""" @@ -70,7 +68,6 @@ class CreateVolumeOption: self._metadata = None self._multiattach = None self._name = None - self._shareable = None self._size = None self._snapshot_id = None self._volume_type = None @@ -94,8 +91,6 @@ class CreateVolumeOption: self.multiattach = multiattach if name is not None: self.name = name - if shareable is not None: - self.shareable = shareable if size is not None: self.size = size if snapshot_id is not None: @@ -302,28 +297,6 @@ class CreateVolumeOption: """ self._name = name - @property - def shareable(self): - """Gets the shareable of this CreateVolumeOption. - - 是否为共享云硬盘。true为共享盘,false为普通云硬盘。 该字段已经废弃,请使用multiattach。 - - :return: The shareable of this CreateVolumeOption. - :rtype: str - """ - return self._shareable - - @shareable.setter - def shareable(self, shareable): - """Sets the shareable of this CreateVolumeOption. - - 是否为共享云硬盘。true为共享盘,false为普通云硬盘。 该字段已经废弃,请使用multiattach。 - - :param shareable: The shareable of this CreateVolumeOption. - :type: str - """ - self._shareable = shareable - @property def size(self): """Gets the size of this CreateVolumeOption. diff --git a/huaweicloud-sdk-evs/setup.py b/huaweicloud-sdk-evs/setup.py index a84ca7191..e980cd4d7 100644 --- a/huaweicloud-sdk-evs/setup.py +++ b/huaweicloud-sdk-evs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkevs" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-functiongraph/setup.py b/huaweicloud-sdk-functiongraph/setup.py index e9e41fa9c..b99caf3f4 100644 --- a/huaweicloud-sdk-functiongraph/setup.py +++ b/huaweicloud-sdk-functiongraph/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkfunctiongraph" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-hss/LICENSE b/huaweicloud-sdk-hss/LICENSE new file mode 100644 index 000000000..808e3296c --- /dev/null +++ b/huaweicloud-sdk-hss/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-hss/README_PYPI.md b/huaweicloud-sdk-hss/README_PYPI.md new file mode 100644 index 000000000..9711543c7 --- /dev/null +++ b/huaweicloud-sdk-hss/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-hss/huaweicloudsdkhss/__init__.py b/huaweicloud-sdk-hss/huaweicloudsdkhss/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/__init__.py b/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/__init__.py new file mode 100644 index 000000000..ace6823ac --- /dev/null +++ b/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/__init__.py @@ -0,0 +1,12 @@ +# coding: utf-8 + +from __future__ import absolute_import + +# import HssClient +from huaweicloudsdkhss.v1.hss_client import HssClient +from huaweicloudsdkhss.v1.hss_async_client import HssAsyncClient +# import models into sdk package +from huaweicloudsdkhss.v1.model.host import Host +from huaweicloudsdkhss.v1.model.list_hosts_request import ListHostsRequest +from huaweicloudsdkhss.v1.model.list_hosts_response import ListHostsResponse + diff --git a/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/hss_async_client.py b/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/hss_async_client.py new file mode 100644 index 000000000..fbcf1f493 --- /dev/null +++ b/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/hss_async_client.py @@ -0,0 +1,171 @@ +# 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 HssAsyncClient(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(HssAsyncClient, self).__init__() + self.model_package = importlib.import_module("huaweicloudsdkhss.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__ != "HssClient": + raise TypeError("client type error, support client type is HssClient") + + return ClientBuilder(clazz) + + def list_hosts_async(self, request): + """查询弹性云服务器状态列表 + + 查询弹性云服务器状态列表 + + :param ListHostsRequest request + :return: ListHostsResponse + """ + return self.list_hosts_with_http_info(request) + + def list_hosts_with_http_info(self, request): + """查询弹性云服务器状态列表 + + 查询弹性云服务器状态列表 + + :param ListHostsRequest request + :return: ListHostsResponse + """ + + all_params = ['version', 'agent_status', 'host_status', 'protect_status', 'detect_result', 'host_name', 'host_ip', 'public_ip', 'os_type', 'charging_mode', 'limit', 'offset'] + 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 'version' in local_var_params: + query_params.append(('version', local_var_params['version'])) + if 'agent_status' in local_var_params: + query_params.append(('agent_status', local_var_params['agent_status'])) + if 'host_status' in local_var_params: + query_params.append(('host_status', local_var_params['host_status'])) + if 'protect_status' in local_var_params: + query_params.append(('protect_status', local_var_params['protect_status'])) + if 'detect_result' in local_var_params: + query_params.append(('detect_result', local_var_params['detect_result'])) + if 'host_name' in local_var_params: + query_params.append(('host_name', local_var_params['host_name'])) + if 'host_ip' in local_var_params: + query_params.append(('host_ip', local_var_params['host_ip'])) + if 'public_ip' in local_var_params: + query_params.append(('public_ip', local_var_params['public_ip'])) + if 'os_type' in local_var_params: + query_params.append(('os_type', local_var_params['os_type'])) + if 'charging_mode' in local_var_params: + query_params.append(('charging_mode', local_var_params['charging_mode'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + + header_params = {} + + form_params = {} + + body_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='/hss/v1/{project_id}/api/host-management/hosts', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListHostsResponse', + 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-hss/huaweicloudsdkhss/v1/hss_client.py b/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/hss_client.py new file mode 100644 index 000000000..b855f65f8 --- /dev/null +++ b/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/hss_client.py @@ -0,0 +1,169 @@ +# 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 HssClient(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(HssClient, self).__init__() + self.model_package = importlib.import_module("huaweicloudsdkhss.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__ != "HssClient": + raise TypeError("client type error, support client type is HssClient") + + return ClientBuilder(clazz) + + def list_hosts(self, request): + """查询弹性云服务器状态列表 + + 查询弹性云服务器状态列表 + + :param ListHostsRequest request + :return: ListHostsResponse + """ + return self.list_hosts_with_http_info(request) + + def list_hosts_with_http_info(self, request): + """查询弹性云服务器状态列表 + + 查询弹性云服务器状态列表 + + :param ListHostsRequest request + :return: ListHostsResponse + """ + + all_params = ['version', 'agent_status', 'host_status', 'protect_status', 'detect_result', 'host_name', 'host_ip', 'public_ip', 'os_type', 'charging_mode', 'limit', 'offset'] + 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 'version' in local_var_params: + query_params.append(('version', local_var_params['version'])) + if 'agent_status' in local_var_params: + query_params.append(('agent_status', local_var_params['agent_status'])) + if 'host_status' in local_var_params: + query_params.append(('host_status', local_var_params['host_status'])) + if 'protect_status' in local_var_params: + query_params.append(('protect_status', local_var_params['protect_status'])) + if 'detect_result' in local_var_params: + query_params.append(('detect_result', local_var_params['detect_result'])) + if 'host_name' in local_var_params: + query_params.append(('host_name', local_var_params['host_name'])) + if 'host_ip' in local_var_params: + query_params.append(('host_ip', local_var_params['host_ip'])) + if 'public_ip' in local_var_params: + query_params.append(('public_ip', local_var_params['public_ip'])) + if 'os_type' in local_var_params: + query_params.append(('os_type', local_var_params['os_type'])) + if 'charging_mode' in local_var_params: + query_params.append(('charging_mode', local_var_params['charging_mode'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + + header_params = {} + + form_params = {} + + body_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='/hss/v1/{project_id}/api/host-management/hosts', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListHostsResponse', + 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-hss/huaweicloudsdkhss/v1/model/__init__.py b/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/model/__init__.py new file mode 100644 index 000000000..9e16efe54 --- /dev/null +++ b/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/model/__init__.py @@ -0,0 +1,8 @@ +# coding: utf-8 + +from __future__ import absolute_import + +# import models into model package +from huaweicloudsdkhss.v1.model.host import Host +from huaweicloudsdkhss.v1.model.list_hosts_request import ListHostsRequest +from huaweicloudsdkhss.v1.model.list_hosts_response import ListHostsResponse diff --git a/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/model/host.py b/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/model/host.py new file mode 100644 index 000000000..3131f1052 --- /dev/null +++ b/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/model/host.py @@ -0,0 +1,704 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class Host: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'agent_id': 'str', + 'host_id': 'str', + 'host_name': 'str', + 'host_ip': 'str', + 'public_ip': 'str', + 'enterprise_project_name': 'str', + 'group_name': 'str', + 'expire_time': 'int', + 'policy_group_name': 'str', + 'host_status': 'str', + 'agent_status': 'str', + 'version': 'str', + 'protect_status': 'str', + 'os_image': 'str', + 'os_type': 'str', + 'os_bit': 'str', + 'detect_result': 'str', + 'risk_port_num': 'int', + 'risk_vul_num': 'int', + 'risk_intrusion_num': 'int', + 'risk_baseline_num': 'int', + 'charging_mode': 'str', + 'resource_id': 'str' + } + + attribute_map = { + 'agent_id': 'agent_id', + 'host_id': 'host_id', + 'host_name': 'host_name', + 'host_ip': 'host_ip', + 'public_ip': 'public_ip', + 'enterprise_project_name': 'enterprise_project_name', + 'group_name': 'group_name', + 'expire_time': 'expire_time', + 'policy_group_name': 'policy_group_name', + 'host_status': 'host_status', + 'agent_status': 'agent_status', + 'version': 'version', + 'protect_status': 'protect_status', + 'os_image': 'os_image', + 'os_type': 'os_type', + 'os_bit': 'os_bit', + 'detect_result': 'detect_result', + 'risk_port_num': 'risk_port_num', + 'risk_vul_num': 'risk_vul_num', + 'risk_intrusion_num': 'risk_intrusion_num', + 'risk_baseline_num': 'risk_baseline_num', + 'charging_mode': 'charging_mode', + 'resource_id': 'resource_id' + } + + def __init__(self, agent_id=None, host_id=None, host_name=None, host_ip=None, public_ip=None, enterprise_project_name=None, group_name=None, expire_time=None, policy_group_name=None, host_status=None, agent_status=None, version=None, protect_status=None, os_image=None, os_type=None, os_bit=None, detect_result=None, risk_port_num=None, risk_vul_num=None, risk_intrusion_num=None, risk_baseline_num=None, charging_mode=None, resource_id=None): + """Host - a model defined in huaweicloud sdk""" + + + + self._agent_id = None + self._host_id = None + self._host_name = None + self._host_ip = None + self._public_ip = None + self._enterprise_project_name = None + self._group_name = None + self._expire_time = None + self._policy_group_name = None + self._host_status = None + self._agent_status = None + self._version = None + self._protect_status = None + self._os_image = None + self._os_type = None + self._os_bit = None + self._detect_result = None + self._risk_port_num = None + self._risk_vul_num = None + self._risk_intrusion_num = None + self._risk_baseline_num = None + self._charging_mode = None + self._resource_id = None + self.discriminator = None + + if agent_id is not None: + self.agent_id = agent_id + if host_id is not None: + self.host_id = host_id + if host_name is not None: + self.host_name = host_name + if host_ip is not None: + self.host_ip = host_ip + if public_ip is not None: + self.public_ip = public_ip + if enterprise_project_name is not None: + self.enterprise_project_name = enterprise_project_name + if group_name is not None: + self.group_name = group_name + if expire_time is not None: + self.expire_time = expire_time + if policy_group_name is not None: + self.policy_group_name = policy_group_name + if host_status is not None: + self.host_status = host_status + if agent_status is not None: + self.agent_status = agent_status + if version is not None: + self.version = version + if protect_status is not None: + self.protect_status = protect_status + if os_image is not None: + self.os_image = os_image + if os_type is not None: + self.os_type = os_type + if os_bit is not None: + self.os_bit = os_bit + if detect_result is not None: + self.detect_result = detect_result + if risk_port_num is not None: + self.risk_port_num = risk_port_num + if risk_vul_num is not None: + self.risk_vul_num = risk_vul_num + if risk_intrusion_num is not None: + self.risk_intrusion_num = risk_intrusion_num + if risk_baseline_num is not None: + self.risk_baseline_num = risk_baseline_num + if charging_mode is not None: + self.charging_mode = charging_mode + if resource_id is not None: + self.resource_id = resource_id + + @property + def agent_id(self): + """Gets the agent_id of this Host. + + 云主机id + + :return: The agent_id of this Host. + :rtype: str + """ + return self._agent_id + + @agent_id.setter + def agent_id(self, agent_id): + """Sets the agent_id of this Host. + + 云主机id + + :param agent_id: The agent_id of this Host. + :type: str + """ + self._agent_id = agent_id + + @property + def host_id(self): + """Gets the host_id of this Host. + + 云主机id + + :return: The host_id of this Host. + :rtype: str + """ + return self._host_id + + @host_id.setter + def host_id(self, host_id): + """Sets the host_id of this Host. + + 云主机id + + :param host_id: The host_id of this Host. + :type: str + """ + self._host_id = host_id + + @property + def host_name(self): + """Gets the host_name of this Host. + + 云主机名称 + + :return: The host_name of this Host. + :rtype: str + """ + return self._host_name + + @host_name.setter + def host_name(self, host_name): + """Sets the host_name of this Host. + + 云主机名称 + + :param host_name: The host_name of this Host. + :type: str + """ + self._host_name = host_name + + @property + def host_ip(self): + """Gets the host_ip of this Host. + + 云主机私有IP + + :return: The host_ip of this Host. + :rtype: str + """ + return self._host_ip + + @host_ip.setter + def host_ip(self, host_ip): + """Sets the host_ip of this Host. + + 云主机私有IP + + :param host_ip: The host_ip of this Host. + :type: str + """ + self._host_ip = host_ip + + @property + def public_ip(self): + """Gets the public_ip of this Host. + + 云主机公网IP + + :return: The public_ip of this Host. + :rtype: str + """ + return self._public_ip + + @public_ip.setter + def public_ip(self, public_ip): + """Sets the public_ip of this Host. + + 云主机公网IP + + :param public_ip: The public_ip of this Host. + :type: str + """ + self._public_ip = public_ip + + @property + def enterprise_project_name(self): + """Gets the enterprise_project_name of this Host. + + 所属企业项目名称 + + :return: The enterprise_project_name of this Host. + :rtype: str + """ + return self._enterprise_project_name + + @enterprise_project_name.setter + def enterprise_project_name(self, enterprise_project_name): + """Sets the enterprise_project_name of this Host. + + 所属企业项目名称 + + :param enterprise_project_name: The enterprise_project_name of this Host. + :type: str + """ + self._enterprise_project_name = enterprise_project_name + + @property + def group_name(self): + """Gets the group_name of this Host. + + 服务器组名称 + + :return: The group_name of this Host. + :rtype: str + """ + return self._group_name + + @group_name.setter + def group_name(self, group_name): + """Sets the group_name of this Host. + + 服务器组名称 + + :param group_name: The group_name of this Host. + :type: str + """ + self._group_name = group_name + + @property + def expire_time(self): + """Gets the expire_time of this Host. + + 服务到期时间 + + :return: The expire_time of this Host. + :rtype: int + """ + return self._expire_time + + @expire_time.setter + def expire_time(self, expire_time): + """Sets the expire_time of this Host. + + 服务到期时间 + + :param expire_time: The expire_time of this Host. + :type: int + """ + self._expire_time = expire_time + + @property + def policy_group_name(self): + """Gets the policy_group_name of this Host. + + 策略组名称 + + :return: The policy_group_name of this Host. + :rtype: str + """ + return self._policy_group_name + + @policy_group_name.setter + def policy_group_name(self, policy_group_name): + """Sets the policy_group_name of this Host. + + 策略组名称 + + :param policy_group_name: The policy_group_name of this Host. + :type: str + """ + self._policy_group_name = policy_group_name + + @property + def host_status(self): + """Gets the host_status of this Host. + + 云主机状态:正在运行:ACTIVE; 关机:SHUTOFF; 创建中:BUILDING; 故障:ERROR; + + :return: The host_status of this Host. + :rtype: str + """ + return self._host_status + + @host_status.setter + def host_status(self, host_status): + """Sets the host_status of this Host. + + 云主机状态:正在运行:ACTIVE; 关机:SHUTOFF; 创建中:BUILDING; 故障:ERROR; + + :param host_status: The host_status of this Host. + :type: str + """ + self._host_status = host_status + + @property + def agent_status(self): + """Gets the agent_status of this Host. + + 客户端状态, 未注册:not_register; 在线:online; 离线:offline; 所有状态:all; + + :return: The agent_status of this Host. + :rtype: str + """ + return self._agent_status + + @agent_status.setter + def agent_status(self, agent_status): + """Sets the agent_status of this Host. + + 客户端状态, 未注册:not_register; 在线:online; 离线:offline; 所有状态:all; + + :param agent_status: The agent_status of this Host. + :type: str + """ + self._agent_status = agent_status + + @property + def version(self): + """Gets the version of this Host. + + 云主机开通的版本,hss.version.null:无; hss.version.basic:基础班;hss.version.enterprise:企业版;hss.version.premium:旗舰版;hss.version.wtp:网页防篡改版 + + :return: The version of this Host. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this Host. + + 云主机开通的版本,hss.version.null:无; hss.version.basic:基础班;hss.version.enterprise:企业版;hss.version.premium:旗舰版;hss.version.wtp:网页防篡改版 + + :param version: The version of this Host. + :type: str + """ + self._version = version + + @property + def protect_status(self): + """Gets the protect_status of this Host. + + 防护状态, opened:开启;opened:关闭 + + :return: The protect_status of this Host. + :rtype: str + """ + return self._protect_status + + @protect_status.setter + def protect_status(self, protect_status): + """Sets the protect_status of this Host. + + 防护状态, opened:开启;opened:关闭 + + :param protect_status: The protect_status of this Host. + :type: str + """ + self._protect_status = protect_status + + @property + def os_image(self): + """Gets the os_image of this Host. + + 系统镜像 + + :return: The os_image of this Host. + :rtype: str + """ + return self._os_image + + @os_image.setter + def os_image(self, os_image): + """Sets the os_image of this Host. + + 系统镜像 + + :param os_image: The os_image of this Host. + :type: str + """ + self._os_image = os_image + + @property + def os_type(self): + """Gets the os_type of this Host. + + 系统类型 + + :return: The os_type of this Host. + :rtype: str + """ + return self._os_type + + @os_type.setter + def os_type(self, os_type): + """Sets the os_type of this Host. + + 系统类型 + + :param os_type: The os_type of this Host. + :type: str + """ + self._os_type = os_type + + @property + def os_bit(self): + """Gets the os_bit of this Host. + + 操作系统位数 + + :return: The os_bit of this Host. + :rtype: str + """ + return self._os_bit + + @os_bit.setter + def os_bit(self, os_bit): + """Sets the os_bit of this Host. + + 操作系统位数 + + :param os_bit: The os_bit of this Host. + :type: str + """ + self._os_bit = os_bit + + @property + def detect_result(self): + """Gets the detect_result of this Host. + + 云主机安全检测结果:undetect:未检测;clean:无风险;risk:有风险 + + :return: The detect_result of this Host. + :rtype: str + """ + return self._detect_result + + @detect_result.setter + def detect_result(self, detect_result): + """Sets the detect_result of this Host. + + 云主机安全检测结果:undetect:未检测;clean:无风险;risk:有风险 + + :param detect_result: The detect_result of this Host. + :type: str + """ + self._detect_result = detect_result + + @property + def risk_port_num(self): + """Gets the risk_port_num of this Host. + + 资产风险个数 + + :return: The risk_port_num of this Host. + :rtype: int + """ + return self._risk_port_num + + @risk_port_num.setter + def risk_port_num(self, risk_port_num): + """Sets the risk_port_num of this Host. + + 资产风险个数 + + :param risk_port_num: The risk_port_num of this Host. + :type: int + """ + self._risk_port_num = risk_port_num + + @property + def risk_vul_num(self): + """Gets the risk_vul_num of this Host. + + 漏洞风险个数 + + :return: The risk_vul_num of this Host. + :rtype: int + """ + return self._risk_vul_num + + @risk_vul_num.setter + def risk_vul_num(self, risk_vul_num): + """Sets the risk_vul_num of this Host. + + 漏洞风险个数 + + :param risk_vul_num: The risk_vul_num of this Host. + :type: int + """ + self._risk_vul_num = risk_vul_num + + @property + def risk_intrusion_num(self): + """Gets the risk_intrusion_num of this Host. + + 入侵风险个数 + + :return: The risk_intrusion_num of this Host. + :rtype: int + """ + return self._risk_intrusion_num + + @risk_intrusion_num.setter + def risk_intrusion_num(self, risk_intrusion_num): + """Sets the risk_intrusion_num of this Host. + + 入侵风险个数 + + :param risk_intrusion_num: The risk_intrusion_num of this Host. + :type: int + """ + self._risk_intrusion_num = risk_intrusion_num + + @property + def risk_baseline_num(self): + """Gets the risk_baseline_num of this Host. + + 基线风险个数 + + :return: The risk_baseline_num of this Host. + :rtype: int + """ + return self._risk_baseline_num + + @risk_baseline_num.setter + def risk_baseline_num(self, risk_baseline_num): + """Sets the risk_baseline_num of this Host. + + 基线风险个数 + + :param risk_baseline_num: The risk_baseline_num of this Host. + :type: int + """ + self._risk_baseline_num = risk_baseline_num + + @property + def charging_mode(self): + """Gets the charging_mode of this Host. + + 计费模式:packet_cycle:包年包月;on_demand:按需付费 + + :return: The charging_mode of this Host. + :rtype: str + """ + return self._charging_mode + + @charging_mode.setter + def charging_mode(self, charging_mode): + """Sets the charging_mode of this Host. + + 计费模式:packet_cycle:包年包月;on_demand:按需付费 + + :param charging_mode: The charging_mode of this Host. + :type: str + """ + self._charging_mode = charging_mode + + @property + def resource_id(self): + """Gets the resource_id of this Host. + + 云服务资源实例ID(UUID) + + :return: The resource_id of this Host. + :rtype: str + """ + return self._resource_id + + @resource_id.setter + def resource_id(self, resource_id): + """Sets the resource_id of this Host. + + 云服务资源实例ID(UUID) + + :param resource_id: The resource_id of this Host. + :type: str + """ + self._resource_id = resource_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, Host): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/model/list_hosts_request.py b/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/model/list_hosts_request.py new file mode 100644 index 000000000..5ae816a86 --- /dev/null +++ b/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/model/list_hosts_request.py @@ -0,0 +1,383 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class ListHostsRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'version': 'str', + 'agent_status': 'str', + 'host_status': 'str', + 'protect_status': 'str', + 'detect_result': 'str', + 'host_name': 'str', + 'host_ip': 'str', + 'public_ip': 'str', + 'os_type': 'str', + 'charging_mode': 'str', + 'limit': 'int', + 'offset': 'int' + } + + attribute_map = { + 'version': 'version', + 'agent_status': 'agent_status', + 'host_status': 'host_status', + 'protect_status': 'protect_status', + 'detect_result': 'detect_result', + 'host_name': 'host_name', + 'host_ip': 'host_ip', + 'public_ip': 'public_ip', + 'os_type': 'os_type', + 'charging_mode': 'charging_mode', + 'limit': 'limit', + 'offset': 'offset' + } + + def __init__(self, version=None, agent_status=None, host_status=None, protect_status=None, detect_result=None, host_name=None, host_ip=None, public_ip=None, os_type=None, charging_mode=None, limit=None, offset=None): + """ListHostsRequest - a model defined in huaweicloud sdk""" + + + + self._version = None + self._agent_status = None + self._host_status = None + self._protect_status = None + self._detect_result = None + self._host_name = None + self._host_ip = None + self._public_ip = None + self._os_type = None + self._charging_mode = None + self._limit = None + self._offset = None + self.discriminator = None + + if version is not None: + self.version = version + if agent_status is not None: + self.agent_status = agent_status + if host_status is not None: + self.host_status = host_status + if protect_status is not None: + self.protect_status = protect_status + if detect_result is not None: + self.detect_result = detect_result + if host_name is not None: + self.host_name = host_name + if host_ip is not None: + self.host_ip = host_ip + if public_ip is not None: + self.public_ip = public_ip + if os_type is not None: + self.os_type = os_type + if charging_mode is not None: + self.charging_mode = charging_mode + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset + + @property + def version(self): + """Gets the version of this ListHostsRequest. + + + :return: The version of this ListHostsRequest. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this ListHostsRequest. + + + :param version: The version of this ListHostsRequest. + :type: str + """ + self._version = version + + @property + def agent_status(self): + """Gets the agent_status of this ListHostsRequest. + + + :return: The agent_status of this ListHostsRequest. + :rtype: str + """ + return self._agent_status + + @agent_status.setter + def agent_status(self, agent_status): + """Sets the agent_status of this ListHostsRequest. + + + :param agent_status: The agent_status of this ListHostsRequest. + :type: str + """ + self._agent_status = agent_status + + @property + def host_status(self): + """Gets the host_status of this ListHostsRequest. + + + :return: The host_status of this ListHostsRequest. + :rtype: str + """ + return self._host_status + + @host_status.setter + def host_status(self, host_status): + """Sets the host_status of this ListHostsRequest. + + + :param host_status: The host_status of this ListHostsRequest. + :type: str + """ + self._host_status = host_status + + @property + def protect_status(self): + """Gets the protect_status of this ListHostsRequest. + + + :return: The protect_status of this ListHostsRequest. + :rtype: str + """ + return self._protect_status + + @protect_status.setter + def protect_status(self, protect_status): + """Sets the protect_status of this ListHostsRequest. + + + :param protect_status: The protect_status of this ListHostsRequest. + :type: str + """ + self._protect_status = protect_status + + @property + def detect_result(self): + """Gets the detect_result of this ListHostsRequest. + + + :return: The detect_result of this ListHostsRequest. + :rtype: str + """ + return self._detect_result + + @detect_result.setter + def detect_result(self, detect_result): + """Sets the detect_result of this ListHostsRequest. + + + :param detect_result: The detect_result of this ListHostsRequest. + :type: str + """ + self._detect_result = detect_result + + @property + def host_name(self): + """Gets the host_name of this ListHostsRequest. + + + :return: The host_name of this ListHostsRequest. + :rtype: str + """ + return self._host_name + + @host_name.setter + def host_name(self, host_name): + """Sets the host_name of this ListHostsRequest. + + + :param host_name: The host_name of this ListHostsRequest. + :type: str + """ + self._host_name = host_name + + @property + def host_ip(self): + """Gets the host_ip of this ListHostsRequest. + + + :return: The host_ip of this ListHostsRequest. + :rtype: str + """ + return self._host_ip + + @host_ip.setter + def host_ip(self, host_ip): + """Sets the host_ip of this ListHostsRequest. + + + :param host_ip: The host_ip of this ListHostsRequest. + :type: str + """ + self._host_ip = host_ip + + @property + def public_ip(self): + """Gets the public_ip of this ListHostsRequest. + + + :return: The public_ip of this ListHostsRequest. + :rtype: str + """ + return self._public_ip + + @public_ip.setter + def public_ip(self, public_ip): + """Sets the public_ip of this ListHostsRequest. + + + :param public_ip: The public_ip of this ListHostsRequest. + :type: str + """ + self._public_ip = public_ip + + @property + def os_type(self): + """Gets the os_type of this ListHostsRequest. + + + :return: The os_type of this ListHostsRequest. + :rtype: str + """ + return self._os_type + + @os_type.setter + def os_type(self, os_type): + """Sets the os_type of this ListHostsRequest. + + + :param os_type: The os_type of this ListHostsRequest. + :type: str + """ + self._os_type = os_type + + @property + def charging_mode(self): + """Gets the charging_mode of this ListHostsRequest. + + + :return: The charging_mode of this ListHostsRequest. + :rtype: str + """ + return self._charging_mode + + @charging_mode.setter + def charging_mode(self, charging_mode): + """Sets the charging_mode of this ListHostsRequest. + + + :param charging_mode: The charging_mode of this ListHostsRequest. + :type: str + """ + self._charging_mode = charging_mode + + @property + def limit(self): + """Gets the limit of this ListHostsRequest. + + + :return: The limit of this ListHostsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListHostsRequest. + + + :param limit: The limit of this ListHostsRequest. + :type: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this ListHostsRequest. + + + :return: The offset of this ListHostsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListHostsRequest. + + + :param offset: The offset of this ListHostsRequest. + :type: int + """ + self._offset = offset + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListHostsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/model/list_hosts_response.py b/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/model/list_hosts_response.py new file mode 100644 index 000000000..bebc9f9a6 --- /dev/null +++ b/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/model/list_hosts_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import pprint +import re + +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListHostsResponse(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_num': 'int', + 'data_list': 'list[Host]' + } + + attribute_map = { + 'total_num': 'total_num', + 'data_list': 'data_list' + } + + def __init__(self, total_num=None, data_list=None): + """ListHostsResponse - a model defined in huaweicloud sdk""" + + super().__init__() + + self._total_num = None + self._data_list = None + self.discriminator = None + + if total_num is not None: + self.total_num = total_num + if data_list is not None: + self.data_list = data_list + + @property + def total_num(self): + """Gets the total_num of this ListHostsResponse. + + 总数 + + :return: The total_num of this ListHostsResponse. + :rtype: int + """ + return self._total_num + + @total_num.setter + def total_num(self, total_num): + """Sets the total_num of this ListHostsResponse. + + 总数 + + :param total_num: The total_num of this ListHostsResponse. + :type: int + """ + self._total_num = total_num + + @property + def data_list(self): + """Gets the data_list of this ListHostsResponse. + + 查询弹性云服务器状态列表 + + :return: The data_list of this ListHostsResponse. + :rtype: list[Host] + """ + return self._data_list + + @data_list.setter + def data_list(self, data_list): + """Sets the data_list of this ListHostsResponse. + + 查询弹性云服务器状态列表 + + :param data_list: The data_list of this ListHostsResponse. + :type: list[Host] + """ + self._data_list = data_list + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListHostsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/region/__init__.py b/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/region/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/region/hss_region.py b/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/region/hss_region.py new file mode 100644 index 000000000..ef3501d3f --- /dev/null +++ b/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/region/hss_region.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +import types + +from huaweicloudsdkcore.region.region import Region + + +class HssRegion: + def __init__(self): + pass + + CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://hss.cn-north-1.myhuaweicloud.com") + + CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://hss.cn-north-4.myhuaweicloud.com") + + CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://hss.cn-southwest-2.myhuaweicloud.com") + + CN_EAST_2 = Region(id="cn-east-2", endpoint="https://hss.cn-east-2.myhuaweicloud.com") + + CN_EAST_3 = Region(id="cn-east-3", endpoint="https://hss.cn-east-3.myhuaweicloud.com") + + CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://hss.cn-south-1.myhuaweicloud.com") + + CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://hss.cn-south-2.myhuaweicloud.com") + + static_fields = types.MappingProxyType({ + "cn-north-1": CN_NORTH_1, + "cn-north-4": CN_NORTH_4, + "cn-southwest-2": CN_SOUTHWEST_2, + "cn-east-2": CN_EAST_2, + "cn-east-3": CN_EAST_3, + "cn-south-1": CN_SOUTH_1, + "cn-south-2": CN_SOUTH_2, + }) + + @staticmethod + def value_of(region_id, static_fields=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-hss/requirements.txt b/huaweicloud-sdk-hss/requirements.txt new file mode 100644 index 000000000..bf54e8e3d --- /dev/null +++ b/huaweicloud-sdk-hss/requirements.txt @@ -0,0 +1 @@ +huaweicloud-sdk-python-core diff --git a/huaweicloud-sdk-hss/setup.py b/huaweicloud-sdk-hss/setup.py new file mode 100644 index 000000000..fe0791600 --- /dev/null +++ b/huaweicloud-sdk-hss/setup.py @@ -0,0 +1,45 @@ +# coding: utf-8 +from os import path + +from setuptools import setup, find_packages + +NAME = "huaweicloudsdkhss" +VERSION = "3.0.41-rc" +AUTHOR = "HuaweiCloud SDK" +AUTHOR_EMAIL = "hwcloudsdk@huawei.com" +URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" + +DESCRIPTION = "HSS" +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"] + +setup( + name=NAME, + version=VERSION, + 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", "HSS"], + packages=find_packages(exclude=["tests*"]), + install_requires=REQUIRES, + include_package_data=True, + classifiers=[ + 'Development Status :: 5 - Production/Stable', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: Apache Software License', + 'Programming Language :: Python :: 3', + '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', + 'Topic :: Software Development' + ] +) diff --git a/huaweicloud-sdk-hss/test-requirements.txt b/huaweicloud-sdk-hss/test-requirements.txt new file mode 100644 index 000000000..2702246c0 --- /dev/null +++ b/huaweicloud-sdk-hss/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-iam/setup.py b/huaweicloud-sdk-iam/setup.py index dfdcaa456..08744f679 100644 --- a/huaweicloud-sdk-iam/setup.py +++ b/huaweicloud-sdk-iam/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkiam" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-image/setup.py b/huaweicloud-sdk-image/setup.py index 8ebd77185..0e58de6ab 100644 --- a/huaweicloud-sdk-image/setup.py +++ b/huaweicloud-sdk-image/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkimage" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-ims/setup.py b/huaweicloud-sdk-ims/setup.py index de64de311..5d049dadf 100644 --- a/huaweicloud-sdk-ims/setup.py +++ b/huaweicloud-sdk-ims/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkims" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/__init__.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/__init__.py index 3980b79d0..a2f244c19 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/__init__.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/__init__.py @@ -72,9 +72,6 @@ from huaweicloudsdkiotda.v5.model.create_rule_action_request import CreateRuleAc from huaweicloudsdkiotda.v5.model.create_rule_action_response import CreateRuleActionResponse from huaweicloudsdkiotda.v5.model.create_rule_request import CreateRuleRequest from huaweicloudsdkiotda.v5.model.create_rule_response import CreateRuleResponse -from huaweicloudsdkiotda.v5.model.create_sub_req import CreateSubReq -from huaweicloudsdkiotda.v5.model.create_subscription_request import CreateSubscriptionRequest -from huaweicloudsdkiotda.v5.model.create_subscription_response import CreateSubscriptionResponse from huaweicloudsdkiotda.v5.model.daily_timer_type import DailyTimerType from huaweicloudsdkiotda.v5.model.delete_application_request import DeleteApplicationRequest from huaweicloudsdkiotda.v5.model.delete_application_response import DeleteApplicationResponse @@ -96,8 +93,6 @@ from huaweicloudsdkiotda.v5.model.delete_rule_action_request import DeleteRuleAc from huaweicloudsdkiotda.v5.model.delete_rule_action_response import DeleteRuleActionResponse from huaweicloudsdkiotda.v5.model.delete_rule_request import DeleteRuleRequest from huaweicloudsdkiotda.v5.model.delete_rule_response import DeleteRuleResponse -from huaweicloudsdkiotda.v5.model.delete_subscription_request import DeleteSubscriptionRequest -from huaweicloudsdkiotda.v5.model.delete_subscription_response import DeleteSubscriptionResponse from huaweicloudsdkiotda.v5.model.device_command_request import DeviceCommandRequest from huaweicloudsdkiotda.v5.model.device_data_condition import DeviceDataCondition from huaweicloudsdkiotda.v5.model.device_group_response_dto import DeviceGroupResponseDTO @@ -146,8 +141,6 @@ from huaweicloudsdkiotda.v5.model.list_rule_actions_request import ListRuleActio from huaweicloudsdkiotda.v5.model.list_rule_actions_response import ListRuleActionsResponse from huaweicloudsdkiotda.v5.model.list_rules_request import ListRulesRequest from huaweicloudsdkiotda.v5.model.list_rules_response import ListRulesResponse -from huaweicloudsdkiotda.v5.model.list_subscriptions_request import ListSubscriptionsRequest -from huaweicloudsdkiotda.v5.model.list_subscriptions_response import ListSubscriptionsResponse from huaweicloudsdkiotda.v5.model.lts_forwarding import LtsForwarding from huaweicloudsdkiotda.v5.model.message_result import MessageResult from huaweicloudsdkiotda.v5.model.mqs_forwarding import MqsForwarding @@ -210,13 +203,9 @@ from huaweicloudsdkiotda.v5.model.show_rule_action_request import ShowRuleAction from huaweicloudsdkiotda.v5.model.show_rule_action_response import ShowRuleActionResponse from huaweicloudsdkiotda.v5.model.show_rule_request import ShowRuleRequest from huaweicloudsdkiotda.v5.model.show_rule_response import ShowRuleResponse -from huaweicloudsdkiotda.v5.model.show_subscription_request import ShowSubscriptionRequest -from huaweicloudsdkiotda.v5.model.show_subscription_response import ShowSubscriptionResponse from huaweicloudsdkiotda.v5.model.simple_timer_type import SimpleTimerType from huaweicloudsdkiotda.v5.model.simplify_device import SimplifyDevice from huaweicloudsdkiotda.v5.model.strategy import Strategy -from huaweicloudsdkiotda.v5.model.subject import Subject -from huaweicloudsdkiotda.v5.model.subscription_item import SubscriptionItem from huaweicloudsdkiotda.v5.model.tag_device_request import TagDeviceRequest from huaweicloudsdkiotda.v5.model.tag_device_response import TagDeviceResponse from huaweicloudsdkiotda.v5.model.tag_v5_dto import TagV5DTO @@ -253,8 +242,5 @@ from huaweicloudsdkiotda.v5.model.update_rule_action_response import UpdateRuleA from huaweicloudsdkiotda.v5.model.update_rule_req import UpdateRuleReq from huaweicloudsdkiotda.v5.model.update_rule_request import UpdateRuleRequest from huaweicloudsdkiotda.v5.model.update_rule_response import UpdateRuleResponse -from huaweicloudsdkiotda.v5.model.update_sub_req import UpdateSubReq -from huaweicloudsdkiotda.v5.model.update_subscription_request import UpdateSubscriptionRequest -from huaweicloudsdkiotda.v5.model.update_subscription_response import UpdateSubscriptionResponse from huaweicloudsdkiotda.v5.model.verify_certificate_dto import VerifyCertificateDTO diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_async_client.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_async_client.py index e81797e71..ad768ce44 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_async_client.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_async_client.py @@ -4522,347 +4522,6 @@ class IoTDAAsyncClient(Client): request_type=request.__class__.__name__) - def create_subscription_async(self, request): - """创建订阅 - - 应用服务器可调用此接口订阅物联网平台资源的变化事件,当资源发生变化时(如设备激活,设备数据更新等),平台会向应用服务器发送通知消息。 - - :param CreateSubscriptionRequest request - :return: CreateSubscriptionResponse - """ - return self.create_subscription_with_http_info(request) - - def create_subscription_with_http_info(self, request): - """创建订阅 - - 应用服务器可调用此接口订阅物联网平台资源的变化事件,当资源发生变化时(如设备激活,设备数据更新等),平台会向应用服务器发送通知消息。 - - :param CreateSubscriptionRequest request - :return: CreateSubscriptionResponse - """ - - all_params = ['instance_id', 'create_subscription_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 = {} - if 'instance_id' in local_var_params: - header_params['Instance-Id'] = local_var_params['instance_id'] - - 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='/v5/iot/{project_id}/subscriptions', - method='POST', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - response_type='CreateSubscriptionResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - - def delete_subscription_async(self, request): - """删除订阅 - - 应用服务器可调用此接口删除物联网平台中的指定订阅配置。 - - :param DeleteSubscriptionRequest request - :return: DeleteSubscriptionResponse - """ - return self.delete_subscription_with_http_info(request) - - def delete_subscription_with_http_info(self, request): - """删除订阅 - - 应用服务器可调用此接口删除物联网平台中的指定订阅配置。 - - :param DeleteSubscriptionRequest request - :return: DeleteSubscriptionResponse - """ - - all_params = ['subscription_id', '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 'subscription_id' in local_var_params: - path_params['subscription_id'] = local_var_params['subscription_id'] - - query_params = [] - - header_params = {} - if 'instance_id' in local_var_params: - header_params['Instance-Id'] = local_var_params['instance_id'] - - 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='/v5/iot/{project_id}/subscriptions/{subscription_id}', - method='DELETE', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - response_type='DeleteSubscriptionResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - - def list_subscriptions_async(self, request): - """查询订阅列表 - - 应用服务器可调用此接口查询物联网平台中的订阅配置信息列表。 - - :param ListSubscriptionsRequest request - :return: ListSubscriptionsResponse - """ - return self.list_subscriptions_with_http_info(request) - - def list_subscriptions_with_http_info(self, request): - """查询订阅列表 - - 应用服务器可调用此接口查询物联网平台中的订阅配置信息列表。 - - :param ListSubscriptionsRequest request - :return: ListSubscriptionsResponse - """ - - all_params = ['instance_id', 'resource', 'event', 'callbackurl', 'app_id', 'channel', 'limit', 'marker', 'offset'] - 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 'resource' in local_var_params: - query_params.append(('resource', local_var_params['resource'])) - if 'event' in local_var_params: - query_params.append(('event', local_var_params['event'])) - if 'callbackurl' in local_var_params: - query_params.append(('callbackurl', local_var_params['callbackurl'])) - if 'app_id' in local_var_params: - query_params.append(('app_id', local_var_params['app_id'])) - if 'channel' in local_var_params: - query_params.append(('channel', local_var_params['channel'])) - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) - if 'marker' in local_var_params: - query_params.append(('marker', local_var_params['marker'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) - - header_params = {} - if 'instance_id' in local_var_params: - header_params['Instance-Id'] = local_var_params['instance_id'] - - 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='/v5/iot/{project_id}/subscriptions', - method='GET', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - response_type='ListSubscriptionsResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - - def show_subscription_async(self, request): - """查询订阅 - - 应用服务器可调用此接口查询物联网平台中指定订阅的配置信息。 - - :param ShowSubscriptionRequest request - :return: ShowSubscriptionResponse - """ - return self.show_subscription_with_http_info(request) - - def show_subscription_with_http_info(self, request): - """查询订阅 - - 应用服务器可调用此接口查询物联网平台中指定订阅的配置信息。 - - :param ShowSubscriptionRequest request - :return: ShowSubscriptionResponse - """ - - all_params = ['subscription_id', '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 'subscription_id' in local_var_params: - path_params['subscription_id'] = local_var_params['subscription_id'] - - query_params = [] - - header_params = {} - if 'instance_id' in local_var_params: - header_params['Instance-Id'] = local_var_params['instance_id'] - - 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='/v5/iot/{project_id}/subscriptions/{subscription_id}', - method='GET', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - response_type='ShowSubscriptionResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - - def update_subscription_async(self, request): - """修改订阅 - - 应用服务器可调用此接口修改物联网平台中的指定订阅配置,当前仅支持修改订阅回调地址(callbackurl)。 - - :param UpdateSubscriptionRequest request - :return: UpdateSubscriptionResponse - """ - return self.update_subscription_with_http_info(request) - - def update_subscription_with_http_info(self, request): - """修改订阅 - - 应用服务器可调用此接口修改物联网平台中的指定订阅配置,当前仅支持修改订阅回调地址(callbackurl)。 - - :param UpdateSubscriptionRequest request - :return: UpdateSubscriptionResponse - """ - - all_params = ['subscription_id', 'instance_id', 'update_subscription_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 'subscription_id' in local_var_params: - path_params['subscription_id'] = local_var_params['subscription_id'] - - query_params = [] - - header_params = {} - if 'instance_id' in local_var_params: - header_params['Instance-Id'] = local_var_params['instance_id'] - - 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='/v5/iot/{project_id}/subscriptions/{subscription_id}', - method='PUT', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - response_type='UpdateSubscriptionResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - def list_resources_by_tags_async(self, request): """按标签查询资源 diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_client.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_client.py index a5c26642b..f359ca2ff 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_client.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_client.py @@ -4522,347 +4522,6 @@ class IoTDAClient(Client): request_type=request.__class__.__name__) - def create_subscription(self, request): - """创建订阅 - - 应用服务器可调用此接口订阅物联网平台资源的变化事件,当资源发生变化时(如设备激活,设备数据更新等),平台会向应用服务器发送通知消息。 - - :param CreateSubscriptionRequest request - :return: CreateSubscriptionResponse - """ - return self.create_subscription_with_http_info(request) - - def create_subscription_with_http_info(self, request): - """创建订阅 - - 应用服务器可调用此接口订阅物联网平台资源的变化事件,当资源发生变化时(如设备激活,设备数据更新等),平台会向应用服务器发送通知消息。 - - :param CreateSubscriptionRequest request - :return: CreateSubscriptionResponse - """ - - all_params = ['instance_id', 'create_subscription_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 = {} - if 'instance_id' in local_var_params: - header_params['Instance-Id'] = local_var_params['instance_id'] - - 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='/v5/iot/{project_id}/subscriptions', - method='POST', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - response_type='CreateSubscriptionResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - - def delete_subscription(self, request): - """删除订阅 - - 应用服务器可调用此接口删除物联网平台中的指定订阅配置。 - - :param DeleteSubscriptionRequest request - :return: DeleteSubscriptionResponse - """ - return self.delete_subscription_with_http_info(request) - - def delete_subscription_with_http_info(self, request): - """删除订阅 - - 应用服务器可调用此接口删除物联网平台中的指定订阅配置。 - - :param DeleteSubscriptionRequest request - :return: DeleteSubscriptionResponse - """ - - all_params = ['subscription_id', '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 'subscription_id' in local_var_params: - path_params['subscription_id'] = local_var_params['subscription_id'] - - query_params = [] - - header_params = {} - if 'instance_id' in local_var_params: - header_params['Instance-Id'] = local_var_params['instance_id'] - - 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='/v5/iot/{project_id}/subscriptions/{subscription_id}', - method='DELETE', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - response_type='DeleteSubscriptionResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - - def list_subscriptions(self, request): - """查询订阅列表 - - 应用服务器可调用此接口查询物联网平台中的订阅配置信息列表。 - - :param ListSubscriptionsRequest request - :return: ListSubscriptionsResponse - """ - return self.list_subscriptions_with_http_info(request) - - def list_subscriptions_with_http_info(self, request): - """查询订阅列表 - - 应用服务器可调用此接口查询物联网平台中的订阅配置信息列表。 - - :param ListSubscriptionsRequest request - :return: ListSubscriptionsResponse - """ - - all_params = ['instance_id', 'resource', 'event', 'callbackurl', 'app_id', 'channel', 'limit', 'marker', 'offset'] - 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 'resource' in local_var_params: - query_params.append(('resource', local_var_params['resource'])) - if 'event' in local_var_params: - query_params.append(('event', local_var_params['event'])) - if 'callbackurl' in local_var_params: - query_params.append(('callbackurl', local_var_params['callbackurl'])) - if 'app_id' in local_var_params: - query_params.append(('app_id', local_var_params['app_id'])) - if 'channel' in local_var_params: - query_params.append(('channel', local_var_params['channel'])) - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) - if 'marker' in local_var_params: - query_params.append(('marker', local_var_params['marker'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) - - header_params = {} - if 'instance_id' in local_var_params: - header_params['Instance-Id'] = local_var_params['instance_id'] - - 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='/v5/iot/{project_id}/subscriptions', - method='GET', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - response_type='ListSubscriptionsResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - - def show_subscription(self, request): - """查询订阅 - - 应用服务器可调用此接口查询物联网平台中指定订阅的配置信息。 - - :param ShowSubscriptionRequest request - :return: ShowSubscriptionResponse - """ - return self.show_subscription_with_http_info(request) - - def show_subscription_with_http_info(self, request): - """查询订阅 - - 应用服务器可调用此接口查询物联网平台中指定订阅的配置信息。 - - :param ShowSubscriptionRequest request - :return: ShowSubscriptionResponse - """ - - all_params = ['subscription_id', '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 'subscription_id' in local_var_params: - path_params['subscription_id'] = local_var_params['subscription_id'] - - query_params = [] - - header_params = {} - if 'instance_id' in local_var_params: - header_params['Instance-Id'] = local_var_params['instance_id'] - - 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='/v5/iot/{project_id}/subscriptions/{subscription_id}', - method='GET', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - response_type='ShowSubscriptionResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - - def update_subscription(self, request): - """修改订阅 - - 应用服务器可调用此接口修改物联网平台中的指定订阅配置,当前仅支持修改订阅回调地址(callbackurl)。 - - :param UpdateSubscriptionRequest request - :return: UpdateSubscriptionResponse - """ - return self.update_subscription_with_http_info(request) - - def update_subscription_with_http_info(self, request): - """修改订阅 - - 应用服务器可调用此接口修改物联网平台中的指定订阅配置,当前仅支持修改订阅回调地址(callbackurl)。 - - :param UpdateSubscriptionRequest request - :return: UpdateSubscriptionResponse - """ - - all_params = ['subscription_id', 'instance_id', 'update_subscription_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 'subscription_id' in local_var_params: - path_params['subscription_id'] = local_var_params['subscription_id'] - - query_params = [] - - header_params = {} - if 'instance_id' in local_var_params: - header_params['Instance-Id'] = local_var_params['instance_id'] - - 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='/v5/iot/{project_id}/subscriptions/{subscription_id}', - method='PUT', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - response_type='UpdateSubscriptionResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - def list_resources_by_tags(self, request): """按标签查询资源 diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/__init__.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/__init__.py index 4aa1e79cc..083048e3a 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/__init__.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/__init__.py @@ -69,9 +69,6 @@ from huaweicloudsdkiotda.v5.model.create_rule_action_request import CreateRuleAc from huaweicloudsdkiotda.v5.model.create_rule_action_response import CreateRuleActionResponse from huaweicloudsdkiotda.v5.model.create_rule_request import CreateRuleRequest from huaweicloudsdkiotda.v5.model.create_rule_response import CreateRuleResponse -from huaweicloudsdkiotda.v5.model.create_sub_req import CreateSubReq -from huaweicloudsdkiotda.v5.model.create_subscription_request import CreateSubscriptionRequest -from huaweicloudsdkiotda.v5.model.create_subscription_response import CreateSubscriptionResponse from huaweicloudsdkiotda.v5.model.daily_timer_type import DailyTimerType from huaweicloudsdkiotda.v5.model.delete_application_request import DeleteApplicationRequest from huaweicloudsdkiotda.v5.model.delete_application_response import DeleteApplicationResponse @@ -93,8 +90,6 @@ from huaweicloudsdkiotda.v5.model.delete_rule_action_request import DeleteRuleAc from huaweicloudsdkiotda.v5.model.delete_rule_action_response import DeleteRuleActionResponse from huaweicloudsdkiotda.v5.model.delete_rule_request import DeleteRuleRequest from huaweicloudsdkiotda.v5.model.delete_rule_response import DeleteRuleResponse -from huaweicloudsdkiotda.v5.model.delete_subscription_request import DeleteSubscriptionRequest -from huaweicloudsdkiotda.v5.model.delete_subscription_response import DeleteSubscriptionResponse from huaweicloudsdkiotda.v5.model.device_command_request import DeviceCommandRequest from huaweicloudsdkiotda.v5.model.device_data_condition import DeviceDataCondition from huaweicloudsdkiotda.v5.model.device_group_response_dto import DeviceGroupResponseDTO @@ -143,8 +138,6 @@ from huaweicloudsdkiotda.v5.model.list_rule_actions_request import ListRuleActio from huaweicloudsdkiotda.v5.model.list_rule_actions_response import ListRuleActionsResponse from huaweicloudsdkiotda.v5.model.list_rules_request import ListRulesRequest from huaweicloudsdkiotda.v5.model.list_rules_response import ListRulesResponse -from huaweicloudsdkiotda.v5.model.list_subscriptions_request import ListSubscriptionsRequest -from huaweicloudsdkiotda.v5.model.list_subscriptions_response import ListSubscriptionsResponse from huaweicloudsdkiotda.v5.model.lts_forwarding import LtsForwarding from huaweicloudsdkiotda.v5.model.message_result import MessageResult from huaweicloudsdkiotda.v5.model.mqs_forwarding import MqsForwarding @@ -207,13 +200,9 @@ from huaweicloudsdkiotda.v5.model.show_rule_action_request import ShowRuleAction from huaweicloudsdkiotda.v5.model.show_rule_action_response import ShowRuleActionResponse from huaweicloudsdkiotda.v5.model.show_rule_request import ShowRuleRequest from huaweicloudsdkiotda.v5.model.show_rule_response import ShowRuleResponse -from huaweicloudsdkiotda.v5.model.show_subscription_request import ShowSubscriptionRequest -from huaweicloudsdkiotda.v5.model.show_subscription_response import ShowSubscriptionResponse from huaweicloudsdkiotda.v5.model.simple_timer_type import SimpleTimerType from huaweicloudsdkiotda.v5.model.simplify_device import SimplifyDevice from huaweicloudsdkiotda.v5.model.strategy import Strategy -from huaweicloudsdkiotda.v5.model.subject import Subject -from huaweicloudsdkiotda.v5.model.subscription_item import SubscriptionItem from huaweicloudsdkiotda.v5.model.tag_device_request import TagDeviceRequest from huaweicloudsdkiotda.v5.model.tag_device_response import TagDeviceResponse from huaweicloudsdkiotda.v5.model.tag_v5_dto import TagV5DTO @@ -250,7 +239,4 @@ from huaweicloudsdkiotda.v5.model.update_rule_action_response import UpdateRuleA from huaweicloudsdkiotda.v5.model.update_rule_req import UpdateRuleReq from huaweicloudsdkiotda.v5.model.update_rule_request import UpdateRuleRequest from huaweicloudsdkiotda.v5.model.update_rule_response import UpdateRuleResponse -from huaweicloudsdkiotda.v5.model.update_sub_req import UpdateSubReq -from huaweicloudsdkiotda.v5.model.update_subscription_request import UpdateSubscriptionRequest -from huaweicloudsdkiotda.v5.model.update_subscription_response import UpdateSubscriptionResponse from huaweicloudsdkiotda.v5.model.verify_certificate_dto import VerifyCertificateDTO diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_sub_req.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_sub_req.py deleted file mode 100644 index d5215813a..000000000 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_sub_req.py +++ /dev/null @@ -1,186 +0,0 @@ -# coding: utf-8 - -import pprint -import re - -import six - - - - - -class CreateSubReq: - - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - - sensitive_list = [] - - openapi_types = { - 'subject': 'Subject', - 'callbackurl': 'str', - 'app_id': 'str', - 'channel': 'str' - } - - attribute_map = { - 'subject': 'subject', - 'callbackurl': 'callbackurl', - 'app_id': 'app_id', - 'channel': 'channel' - } - - def __init__(self, subject=None, callbackurl=None, app_id=None, channel=None): - """CreateSubReq - a model defined in huaweicloud sdk""" - - - - self._subject = None - self._callbackurl = None - self._app_id = None - self._channel = None - self.discriminator = None - - self.subject = subject - self.callbackurl = callbackurl - if app_id is not None: - self.app_id = app_id - self.channel = channel - - @property - def subject(self): - """Gets the subject of this CreateSubReq. - - - :return: The subject of this CreateSubReq. - :rtype: Subject - """ - return self._subject - - @subject.setter - def subject(self, subject): - """Sets the subject of this CreateSubReq. - - - :param subject: The subject of this CreateSubReq. - :type: Subject - """ - self._subject = subject - - @property - def callbackurl(self): - """Gets the callbackurl of this CreateSubReq. - - 订阅的回调地址,用于接收对应资源事件的通知消息,例如:https://10.10.10.10:443/callbackurltest。 - - :return: The callbackurl of this CreateSubReq. - :rtype: str - """ - return self._callbackurl - - @callbackurl.setter - def callbackurl(self, callbackurl): - """Sets the callbackurl of this CreateSubReq. - - 订阅的回调地址,用于接收对应资源事件的通知消息,例如:https://10.10.10.10:443/callbackurltest。 - - :param callbackurl: The callbackurl of this CreateSubReq. - :type: str - """ - self._callbackurl = callbackurl - - @property - def app_id(self): - """Gets the app_id of this CreateSubReq. - - 资源空间ID。此参数为非必选参数,存在多资源空间的用户需要使用该接口时,建议携带该参数指定订阅哪个资源空间下的消息通知,否则订阅的消息通知将会归属到[默认资源空间](https://support.huaweicloud.com/usermanual-iothub/iot_01_0006.html#section0)下。 - - :return: The app_id of this CreateSubReq. - :rtype: str - """ - return self._app_id - - @app_id.setter - def app_id(self, app_id): - """Sets the app_id of this CreateSubReq. - - 资源空间ID。此参数为非必选参数,存在多资源空间的用户需要使用该接口时,建议携带该参数指定订阅哪个资源空间下的消息通知,否则订阅的消息通知将会归属到[默认资源空间](https://support.huaweicloud.com/usermanual-iothub/iot_01_0006.html#section0)下。 - - :param app_id: The app_id of this CreateSubReq. - :type: str - """ - self._app_id = app_id - - @property - def channel(self): - """Gets the channel of this CreateSubReq. - - 物联网平台推送通知消息时使用的协议通道。使用“http”填充,表示该订阅推送协议通道为http(s)协议。 - - :return: The channel of this CreateSubReq. - :rtype: str - """ - return self._channel - - @channel.setter - def channel(self, channel): - """Sets the channel of this CreateSubReq. - - 物联网平台推送通知消息时使用的协议通道。使用“http”填充,表示该订阅推送协议通道为http(s)协议。 - - :param channel: The channel of this CreateSubReq. - :type: str - """ - self._channel = channel - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CreateSubReq): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_subscription_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_subscription_response.py deleted file mode 100644 index ed0e420ee..000000000 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_subscription_response.py +++ /dev/null @@ -1,189 +0,0 @@ -# coding: utf-8 - -import pprint -import re - -import six - - -from huaweicloudsdkcore.sdk_response import SdkResponse - - -class CreateSubscriptionResponse(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 = { - 'subscription_id': 'str', - 'subject': 'Subject', - 'callbackurl': 'str', - 'channel': 'str' - } - - attribute_map = { - 'subscription_id': 'subscription_id', - 'subject': 'subject', - 'callbackurl': 'callbackurl', - 'channel': 'channel' - } - - def __init__(self, subscription_id=None, subject=None, callbackurl=None, channel=None): - """CreateSubscriptionResponse - a model defined in huaweicloud sdk""" - - super().__init__() - - self._subscription_id = None - self._subject = None - self._callbackurl = None - self._channel = None - self.discriminator = None - - if subscription_id is not None: - self.subscription_id = subscription_id - if subject is not None: - self.subject = subject - if callbackurl is not None: - self.callbackurl = callbackurl - if channel is not None: - self.channel = channel - - @property - def subscription_id(self): - """Gets the subscription_id of this CreateSubscriptionResponse. - - 订阅ID,用于唯一标识一个订阅,在创建订阅时由物联网平台分配获得。 - - :return: The subscription_id of this CreateSubscriptionResponse. - :rtype: str - """ - return self._subscription_id - - @subscription_id.setter - def subscription_id(self, subscription_id): - """Sets the subscription_id of this CreateSubscriptionResponse. - - 订阅ID,用于唯一标识一个订阅,在创建订阅时由物联网平台分配获得。 - - :param subscription_id: The subscription_id of this CreateSubscriptionResponse. - :type: str - """ - self._subscription_id = subscription_id - - @property - def subject(self): - """Gets the subject of this CreateSubscriptionResponse. - - - :return: The subject of this CreateSubscriptionResponse. - :rtype: Subject - """ - return self._subject - - @subject.setter - def subject(self, subject): - """Sets the subject of this CreateSubscriptionResponse. - - - :param subject: The subject of this CreateSubscriptionResponse. - :type: Subject - """ - self._subject = subject - - @property - def callbackurl(self): - """Gets the callbackurl of this CreateSubscriptionResponse. - - 订阅的回调地址,用于接收对应资源事件的通知消息。 - - :return: The callbackurl of this CreateSubscriptionResponse. - :rtype: str - """ - return self._callbackurl - - @callbackurl.setter - def callbackurl(self, callbackurl): - """Sets the callbackurl of this CreateSubscriptionResponse. - - 订阅的回调地址,用于接收对应资源事件的通知消息。 - - :param callbackurl: The callbackurl of this CreateSubscriptionResponse. - :type: str - """ - self._callbackurl = callbackurl - - @property - def channel(self): - """Gets the channel of this CreateSubscriptionResponse. - - 物联网平台推送通知消息时使用的协议通道。使用“http”填充,表示该订阅推送协议通道为http(s)协议。 - - :return: The channel of this CreateSubscriptionResponse. - :rtype: str - """ - return self._channel - - @channel.setter - def channel(self, channel): - """Sets the channel of this CreateSubscriptionResponse. - - 物联网平台推送通知消息时使用的协议通道。使用“http”填充,表示该订阅推送协议通道为http(s)协议。 - - :param channel: The channel of this CreateSubscriptionResponse. - :type: str - """ - self._channel = channel - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CreateSubscriptionResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_subscriptions_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_subscriptions_request.py deleted file mode 100644 index 8e1ac72b7..000000000 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_subscriptions_request.py +++ /dev/null @@ -1,308 +0,0 @@ -# coding: utf-8 - -import pprint -import re - -import six - - - - - -class ListSubscriptionsRequest: - - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the 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', - 'resource': 'str', - 'event': 'str', - 'callbackurl': 'str', - 'app_id': 'str', - 'channel': 'str', - 'limit': 'int', - 'marker': 'str', - 'offset': 'int' - } - - attribute_map = { - 'instance_id': 'Instance-Id', - 'resource': 'resource', - 'event': 'event', - 'callbackurl': 'callbackurl', - 'app_id': 'app_id', - 'channel': 'channel', - 'limit': 'limit', - 'marker': 'marker', - 'offset': 'offset' - } - - def __init__(self, instance_id=None, resource=None, event=None, callbackurl=None, app_id=None, channel=None, limit=None, marker=None, offset=None): - """ListSubscriptionsRequest - a model defined in huaweicloud sdk""" - - - - self._instance_id = None - self._resource = None - self._event = None - self._callbackurl = None - self._app_id = None - self._channel = None - self._limit = None - self._marker = None - self._offset = None - self.discriminator = None - - if instance_id is not None: - self.instance_id = instance_id - if resource is not None: - self.resource = resource - if event is not None: - self.event = event - if callbackurl is not None: - self.callbackurl = callbackurl - if app_id is not None: - self.app_id = app_id - if channel is not None: - self.channel = channel - if limit is not None: - self.limit = limit - if marker is not None: - self.marker = marker - if offset is not None: - self.offset = offset - - @property - def instance_id(self): - """Gets the instance_id of this ListSubscriptionsRequest. - - - :return: The instance_id of this ListSubscriptionsRequest. - :rtype: str - """ - return self._instance_id - - @instance_id.setter - def instance_id(self, instance_id): - """Sets the instance_id of this ListSubscriptionsRequest. - - - :param instance_id: The instance_id of this ListSubscriptionsRequest. - :type: str - """ - self._instance_id = instance_id - - @property - def resource(self): - """Gets the resource of this ListSubscriptionsRequest. - - - :return: The resource of this ListSubscriptionsRequest. - :rtype: str - """ - return self._resource - - @resource.setter - def resource(self, resource): - """Sets the resource of this ListSubscriptionsRequest. - - - :param resource: The resource of this ListSubscriptionsRequest. - :type: str - """ - self._resource = resource - - @property - def event(self): - """Gets the event of this ListSubscriptionsRequest. - - - :return: The event of this ListSubscriptionsRequest. - :rtype: str - """ - return self._event - - @event.setter - def event(self, event): - """Sets the event of this ListSubscriptionsRequest. - - - :param event: The event of this ListSubscriptionsRequest. - :type: str - """ - self._event = event - - @property - def callbackurl(self): - """Gets the callbackurl of this ListSubscriptionsRequest. - - - :return: The callbackurl of this ListSubscriptionsRequest. - :rtype: str - """ - return self._callbackurl - - @callbackurl.setter - def callbackurl(self, callbackurl): - """Sets the callbackurl of this ListSubscriptionsRequest. - - - :param callbackurl: The callbackurl of this ListSubscriptionsRequest. - :type: str - """ - self._callbackurl = callbackurl - - @property - def app_id(self): - """Gets the app_id of this ListSubscriptionsRequest. - - - :return: The app_id of this ListSubscriptionsRequest. - :rtype: str - """ - return self._app_id - - @app_id.setter - def app_id(self, app_id): - """Sets the app_id of this ListSubscriptionsRequest. - - - :param app_id: The app_id of this ListSubscriptionsRequest. - :type: str - """ - self._app_id = app_id - - @property - def channel(self): - """Gets the channel of this ListSubscriptionsRequest. - - - :return: The channel of this ListSubscriptionsRequest. - :rtype: str - """ - return self._channel - - @channel.setter - def channel(self, channel): - """Sets the channel of this ListSubscriptionsRequest. - - - :param channel: The channel of this ListSubscriptionsRequest. - :type: str - """ - self._channel = channel - - @property - def limit(self): - """Gets the limit of this ListSubscriptionsRequest. - - - :return: The limit of this ListSubscriptionsRequest. - :rtype: int - """ - return self._limit - - @limit.setter - def limit(self, limit): - """Sets the limit of this ListSubscriptionsRequest. - - - :param limit: The limit of this ListSubscriptionsRequest. - :type: int - """ - self._limit = limit - - @property - def marker(self): - """Gets the marker of this ListSubscriptionsRequest. - - - :return: The marker of this ListSubscriptionsRequest. - :rtype: str - """ - return self._marker - - @marker.setter - def marker(self, marker): - """Sets the marker of this ListSubscriptionsRequest. - - - :param marker: The marker of this ListSubscriptionsRequest. - :type: str - """ - self._marker = marker - - @property - def offset(self): - """Gets the offset of this ListSubscriptionsRequest. - - - :return: The offset of this ListSubscriptionsRequest. - :rtype: int - """ - return self._offset - - @offset.setter - def offset(self, offset): - """Sets the offset of this ListSubscriptionsRequest. - - - :param offset: The offset of this ListSubscriptionsRequest. - :type: int - """ - self._offset = offset - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ListSubscriptionsRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_subscriptions_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_subscriptions_response.py deleted file mode 100644 index 946dc4282..000000000 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_subscriptions_response.py +++ /dev/null @@ -1,164 +0,0 @@ -# coding: utf-8 - -import pprint -import re - -import six - - -from huaweicloudsdkcore.sdk_response import SdkResponse - - -class ListSubscriptionsResponse(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 = { - 'subscriptions': 'list[SubscriptionItem]', - 'count': 'int', - 'marker': 'str' - } - - attribute_map = { - 'subscriptions': 'subscriptions', - 'count': 'count', - 'marker': 'marker' - } - - def __init__(self, subscriptions=None, count=None, marker=None): - """ListSubscriptionsResponse - a model defined in huaweicloud sdk""" - - super().__init__() - - self._subscriptions = None - self._count = None - self._marker = None - self.discriminator = None - - if subscriptions is not None: - self.subscriptions = subscriptions - if count is not None: - self.count = count - if marker is not None: - self.marker = marker - - @property - def subscriptions(self): - """Gets the subscriptions of this ListSubscriptionsResponse. - - 订阅配置信息列表。 - - :return: The subscriptions of this ListSubscriptionsResponse. - :rtype: list[SubscriptionItem] - """ - return self._subscriptions - - @subscriptions.setter - def subscriptions(self, subscriptions): - """Sets the subscriptions of this ListSubscriptionsResponse. - - 订阅配置信息列表。 - - :param subscriptions: The subscriptions of this ListSubscriptionsResponse. - :type: list[SubscriptionItem] - """ - self._subscriptions = subscriptions - - @property - def count(self): - """Gets the count of this ListSubscriptionsResponse. - - 满足查询条件的记录总数。 - - :return: The count of this ListSubscriptionsResponse. - :rtype: int - """ - return self._count - - @count.setter - def count(self, count): - """Sets the count of this ListSubscriptionsResponse. - - 满足查询条件的记录总数。 - - :param count: The count of this ListSubscriptionsResponse. - :type: int - """ - self._count = count - - @property - def marker(self): - """Gets the marker of this ListSubscriptionsResponse. - - 本次分页查询结果中最后一条记录的ID,可在下一次分页查询时使用。 - - :return: The marker of this ListSubscriptionsResponse. - :rtype: str - """ - return self._marker - - @marker.setter - def marker(self, marker): - """Sets the marker of this ListSubscriptionsResponse. - - 本次分页查询结果中最后一条记录的ID,可在下一次分页查询时使用。 - - :param marker: The marker of this ListSubscriptionsResponse. - :type: str - """ - self._marker = marker - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ListSubscriptionsResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_subscription_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_subscription_response.py deleted file mode 100644 index 2368b7b75..000000000 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_subscription_response.py +++ /dev/null @@ -1,189 +0,0 @@ -# coding: utf-8 - -import pprint -import re - -import six - - -from huaweicloudsdkcore.sdk_response import SdkResponse - - -class ShowSubscriptionResponse(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 = { - 'subscription_id': 'str', - 'subject': 'Subject', - 'callbackurl': 'str', - 'channel': 'str' - } - - attribute_map = { - 'subscription_id': 'subscription_id', - 'subject': 'subject', - 'callbackurl': 'callbackurl', - 'channel': 'channel' - } - - def __init__(self, subscription_id=None, subject=None, callbackurl=None, channel=None): - """ShowSubscriptionResponse - a model defined in huaweicloud sdk""" - - super().__init__() - - self._subscription_id = None - self._subject = None - self._callbackurl = None - self._channel = None - self.discriminator = None - - if subscription_id is not None: - self.subscription_id = subscription_id - if subject is not None: - self.subject = subject - if callbackurl is not None: - self.callbackurl = callbackurl - if channel is not None: - self.channel = channel - - @property - def subscription_id(self): - """Gets the subscription_id of this ShowSubscriptionResponse. - - 订阅ID,用于唯一标识一个订阅,在创建订阅时由物联网平台分配获得。 - - :return: The subscription_id of this ShowSubscriptionResponse. - :rtype: str - """ - return self._subscription_id - - @subscription_id.setter - def subscription_id(self, subscription_id): - """Sets the subscription_id of this ShowSubscriptionResponse. - - 订阅ID,用于唯一标识一个订阅,在创建订阅时由物联网平台分配获得。 - - :param subscription_id: The subscription_id of this ShowSubscriptionResponse. - :type: str - """ - self._subscription_id = subscription_id - - @property - def subject(self): - """Gets the subject of this ShowSubscriptionResponse. - - - :return: The subject of this ShowSubscriptionResponse. - :rtype: Subject - """ - return self._subject - - @subject.setter - def subject(self, subject): - """Sets the subject of this ShowSubscriptionResponse. - - - :param subject: The subject of this ShowSubscriptionResponse. - :type: Subject - """ - self._subject = subject - - @property - def callbackurl(self): - """Gets the callbackurl of this ShowSubscriptionResponse. - - 订阅的回调地址,用于接收对应资源事件的通知消息。 - - :return: The callbackurl of this ShowSubscriptionResponse. - :rtype: str - """ - return self._callbackurl - - @callbackurl.setter - def callbackurl(self, callbackurl): - """Sets the callbackurl of this ShowSubscriptionResponse. - - 订阅的回调地址,用于接收对应资源事件的通知消息。 - - :param callbackurl: The callbackurl of this ShowSubscriptionResponse. - :type: str - """ - self._callbackurl = callbackurl - - @property - def channel(self): - """Gets the channel of this ShowSubscriptionResponse. - - 物联网平台推送通知消息时使用的协议通道。使用“http”填充,表示该订阅推送协议通道为http(s)协议。 - - :return: The channel of this ShowSubscriptionResponse. - :rtype: str - """ - return self._channel - - @channel.setter - def channel(self, channel): - """Sets the channel of this ShowSubscriptionResponse. - - 物联网平台推送通知消息时使用的协议通道。使用“http”填充,表示该订阅推送协议通道为http(s)协议。 - - :param channel: The channel of this ShowSubscriptionResponse. - :type: str - """ - self._channel = channel - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ShowSubscriptionResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/subject.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/subject.py deleted file mode 100644 index 339c0724e..000000000 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/subject.py +++ /dev/null @@ -1,135 +0,0 @@ -# coding: utf-8 - -import pprint -import re - -import six - - - - - -class Subject: - - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the 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': 'str', - 'event': 'str' - } - - attribute_map = { - 'resource': 'resource', - 'event': 'event' - } - - def __init__(self, resource=None, event=None): - """Subject - a model defined in huaweicloud sdk""" - - - - self._resource = None - self._event = None - self.discriminator = None - - self.resource = resource - self.event = event - - @property - def resource(self): - """Gets the resource of this Subject. - - 订阅的资源名称。 - device:设备。 - device.data:设备数据。 - device.message.status:设备消息状态。 - device.message:设备消息。 - device.status:设备状态。 - batchtask.status:批量任务状态。 - - :return: The resource of this Subject. - :rtype: str - """ - return self._resource - - @resource.setter - def resource(self, resource): - """Sets the resource of this Subject. - - 订阅的资源名称。 - device:设备。 - device.data:设备数据。 - device.message.status:设备消息状态。 - device.message:设备消息。 - device.status:设备状态。 - batchtask.status:批量任务状态。 - - :param resource: The resource of this Subject. - :type: str - """ - self._resource = resource - - @property - def event(self): - """Gets the event of this Subject. - - 订阅的资源事件,取值范围:activate、update、up。 event需要与resource关联使用,具体的“resource:event”映射关系如下: - device:activate(设备激活) - device.data:update(设备数据变化) - device.message.status:update(设备消息状态) - device.message:report(设备消息上报) - device.status:update (设备状态变化) - batchtask.status:update (批量任务状态变化) - - :return: The event of this Subject. - :rtype: str - """ - return self._event - - @event.setter - def event(self, event): - """Sets the event of this Subject. - - 订阅的资源事件,取值范围:activate、update、up。 event需要与resource关联使用,具体的“resource:event”映射关系如下: - device:activate(设备激活) - device.data:update(设备数据变化) - device.message.status:update(设备消息状态) - device.message:report(设备消息上报) - device.status:update (设备状态变化) - batchtask.status:update (批量任务状态变化) - - :param event: The event of this Subject. - :type: str - """ - self._event = event - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, Subject): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/subscription_item.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/subscription_item.py deleted file mode 100644 index 5096eb042..000000000 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/subscription_item.py +++ /dev/null @@ -1,189 +0,0 @@ -# coding: utf-8 - -import pprint -import re - -import six - - - - - -class SubscriptionItem: - - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - - sensitive_list = [] - - openapi_types = { - 'subscription_id': 'str', - 'subject': 'Subject', - 'callbackurl': 'str', - 'channel': 'str' - } - - attribute_map = { - 'subscription_id': 'subscription_id', - 'subject': 'subject', - 'callbackurl': 'callbackurl', - 'channel': 'channel' - } - - def __init__(self, subscription_id=None, subject=None, callbackurl=None, channel=None): - """SubscriptionItem - a model defined in huaweicloud sdk""" - - - - self._subscription_id = None - self._subject = None - self._callbackurl = None - self._channel = None - self.discriminator = None - - if subscription_id is not None: - self.subscription_id = subscription_id - if subject is not None: - self.subject = subject - if callbackurl is not None: - self.callbackurl = callbackurl - if channel is not None: - self.channel = channel - - @property - def subscription_id(self): - """Gets the subscription_id of this SubscriptionItem. - - 订阅ID,用于唯一标识一个订阅,在创建订阅时由物联网平台分配获得。 - - :return: The subscription_id of this SubscriptionItem. - :rtype: str - """ - return self._subscription_id - - @subscription_id.setter - def subscription_id(self, subscription_id): - """Sets the subscription_id of this SubscriptionItem. - - 订阅ID,用于唯一标识一个订阅,在创建订阅时由物联网平台分配获得。 - - :param subscription_id: The subscription_id of this SubscriptionItem. - :type: str - """ - self._subscription_id = subscription_id - - @property - def subject(self): - """Gets the subject of this SubscriptionItem. - - - :return: The subject of this SubscriptionItem. - :rtype: Subject - """ - return self._subject - - @subject.setter - def subject(self, subject): - """Sets the subject of this SubscriptionItem. - - - :param subject: The subject of this SubscriptionItem. - :type: Subject - """ - self._subject = subject - - @property - def callbackurl(self): - """Gets the callbackurl of this SubscriptionItem. - - 订阅的回调地址,用于接收对应资源事件的通知消息。 - - :return: The callbackurl of this SubscriptionItem. - :rtype: str - """ - return self._callbackurl - - @callbackurl.setter - def callbackurl(self, callbackurl): - """Sets the callbackurl of this SubscriptionItem. - - 订阅的回调地址,用于接收对应资源事件的通知消息。 - - :param callbackurl: The callbackurl of this SubscriptionItem. - :type: str - """ - self._callbackurl = callbackurl - - @property - def channel(self): - """Gets the channel of this SubscriptionItem. - - 物联网平台推送通知消息时使用的协议通道。使用“http”填充,表示该订阅推送协议通道为http(s)协议。 - - :return: The channel of this SubscriptionItem. - :rtype: str - """ - return self._channel - - @channel.setter - def channel(self, channel): - """Sets the channel of this SubscriptionItem. - - 物联网平台推送通知消息时使用的协议通道。使用“http”填充,表示该订阅推送协议通道为http(s)协议。 - - :param channel: The channel of this SubscriptionItem. - :type: str - """ - self._channel = channel - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SubscriptionItem): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_subscription_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_subscription_request.py deleted file mode 100644 index 433d74bb7..000000000 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_subscription_request.py +++ /dev/null @@ -1,157 +0,0 @@ -# coding: utf-8 - -import pprint -import re - -import six - - - - - -class UpdateSubscriptionRequest: - - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the 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', - 'subscription_id': 'str', - 'body': 'UpdateSubReq' - } - - attribute_map = { - 'instance_id': 'Instance-Id', - 'subscription_id': 'subscription_id', - 'body': 'body' - } - - def __init__(self, instance_id=None, subscription_id=None, body=None): - """UpdateSubscriptionRequest - a model defined in huaweicloud sdk""" - - - - self._instance_id = None - self._subscription_id = None - self._body = None - self.discriminator = None - - if instance_id is not None: - self.instance_id = instance_id - self.subscription_id = subscription_id - if body is not None: - self.body = body - - @property - def instance_id(self): - """Gets the instance_id of this UpdateSubscriptionRequest. - - - :return: The instance_id of this UpdateSubscriptionRequest. - :rtype: str - """ - return self._instance_id - - @instance_id.setter - def instance_id(self, instance_id): - """Sets the instance_id of this UpdateSubscriptionRequest. - - - :param instance_id: The instance_id of this UpdateSubscriptionRequest. - :type: str - """ - self._instance_id = instance_id - - @property - def subscription_id(self): - """Gets the subscription_id of this UpdateSubscriptionRequest. - - - :return: The subscription_id of this UpdateSubscriptionRequest. - :rtype: str - """ - return self._subscription_id - - @subscription_id.setter - def subscription_id(self, subscription_id): - """Sets the subscription_id of this UpdateSubscriptionRequest. - - - :param subscription_id: The subscription_id of this UpdateSubscriptionRequest. - :type: str - """ - self._subscription_id = subscription_id - - @property - def body(self): - """Gets the body of this UpdateSubscriptionRequest. - - - :return: The body of this UpdateSubscriptionRequest. - :rtype: UpdateSubReq - """ - return self._body - - @body.setter - def body(self, body): - """Sets the body of this UpdateSubscriptionRequest. - - - :param body: The body of this UpdateSubscriptionRequest. - :type: UpdateSubReq - """ - 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, UpdateSubscriptionRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_subscription_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_subscription_response.py deleted file mode 100644 index 8a7e51852..000000000 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_subscription_response.py +++ /dev/null @@ -1,189 +0,0 @@ -# coding: utf-8 - -import pprint -import re - -import six - - -from huaweicloudsdkcore.sdk_response import SdkResponse - - -class UpdateSubscriptionResponse(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 = { - 'subscription_id': 'str', - 'subject': 'Subject', - 'callbackurl': 'str', - 'channel': 'str' - } - - attribute_map = { - 'subscription_id': 'subscription_id', - 'subject': 'subject', - 'callbackurl': 'callbackurl', - 'channel': 'channel' - } - - def __init__(self, subscription_id=None, subject=None, callbackurl=None, channel=None): - """UpdateSubscriptionResponse - a model defined in huaweicloud sdk""" - - super().__init__() - - self._subscription_id = None - self._subject = None - self._callbackurl = None - self._channel = None - self.discriminator = None - - if subscription_id is not None: - self.subscription_id = subscription_id - if subject is not None: - self.subject = subject - if callbackurl is not None: - self.callbackurl = callbackurl - if channel is not None: - self.channel = channel - - @property - def subscription_id(self): - """Gets the subscription_id of this UpdateSubscriptionResponse. - - 订阅ID,用于唯一标识一个订阅,在创建订阅时由物联网平台分配获得。 - - :return: The subscription_id of this UpdateSubscriptionResponse. - :rtype: str - """ - return self._subscription_id - - @subscription_id.setter - def subscription_id(self, subscription_id): - """Sets the subscription_id of this UpdateSubscriptionResponse. - - 订阅ID,用于唯一标识一个订阅,在创建订阅时由物联网平台分配获得。 - - :param subscription_id: The subscription_id of this UpdateSubscriptionResponse. - :type: str - """ - self._subscription_id = subscription_id - - @property - def subject(self): - """Gets the subject of this UpdateSubscriptionResponse. - - - :return: The subject of this UpdateSubscriptionResponse. - :rtype: Subject - """ - return self._subject - - @subject.setter - def subject(self, subject): - """Sets the subject of this UpdateSubscriptionResponse. - - - :param subject: The subject of this UpdateSubscriptionResponse. - :type: Subject - """ - self._subject = subject - - @property - def callbackurl(self): - """Gets the callbackurl of this UpdateSubscriptionResponse. - - 订阅的回调地址,用于接收对应资源事件的通知消息。 - - :return: The callbackurl of this UpdateSubscriptionResponse. - :rtype: str - """ - return self._callbackurl - - @callbackurl.setter - def callbackurl(self, callbackurl): - """Sets the callbackurl of this UpdateSubscriptionResponse. - - 订阅的回调地址,用于接收对应资源事件的通知消息。 - - :param callbackurl: The callbackurl of this UpdateSubscriptionResponse. - :type: str - """ - self._callbackurl = callbackurl - - @property - def channel(self): - """Gets the channel of this UpdateSubscriptionResponse. - - 物联网平台推送通知消息时使用的协议通道。使用“http”填充,表示该订阅推送协议通道为http(s)协议。 - - :return: The channel of this UpdateSubscriptionResponse. - :rtype: str - """ - return self._channel - - @channel.setter - def channel(self, channel): - """Sets the channel of this UpdateSubscriptionResponse. - - 物联网平台推送通知消息时使用的协议通道。使用“http”填充,表示该订阅推送协议通道为http(s)协议。 - - :param channel: The channel of this UpdateSubscriptionResponse. - :type: str - """ - self._channel = channel - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UpdateSubscriptionResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/region/__init__.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/region/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/region/iotda_region.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/region/iotda_region.py new file mode 100644 index 000000000..0eb98bf67 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/region/iotda_region.py @@ -0,0 +1,26 @@ +# coding: utf-8 + +import types + +from huaweicloudsdkcore.region.region import Region + + +class IoTDARegion: + def __init__(self): + pass + + CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://iotda.cn-north-4.myhuaweicloud.com") + + static_fields = types.MappingProxyType({ + "cn-north-4": CN_NORTH_4, + }) + + @staticmethod + def value_of(region_id, static_fields=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-iotda/setup.py b/huaweicloud-sdk-iotda/setup.py index 5c70dad5d..4c7a38e25 100644 --- a/huaweicloud-sdk-iotda/setup.py +++ b/huaweicloud-sdk-iotda/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkiotda" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-kafka/setup.py b/huaweicloud-sdk-kafka/setup.py index 74de7a1af..4dbb3a9a2 100644 --- a/huaweicloud-sdk-kafka/setup.py +++ b/huaweicloud-sdk-kafka/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkkafka" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-kms/setup.py b/huaweicloud-sdk-kms/setup.py index 830ea7e02..0523fc6fd 100644 --- a/huaweicloud-sdk-kms/setup.py +++ b/huaweicloud-sdk-kms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkkms" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-live/setup.py b/huaweicloud-sdk-live/setup.py index 37f0d9178..253bf45bb 100644 --- a/huaweicloud-sdk-live/setup.py +++ b/huaweicloud-sdk-live/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdklive" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_credentials.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_credentials.py index 22bebb4ca..90c6b82b6 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_credentials.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_credentials.py @@ -6,23 +6,24 @@ from concurrent.futures.thread import ThreadPoolExecutor from pprint import pprint from huaweicloudsdkcore.auth.credentials import Credentials -from huaweicloudsdkcore.exceptions.exceptions import SdkException +from huaweicloudsdkcore.exceptions.exceptions import SdkException, ApiValueError from huaweicloudsdkcore.sdk_request import SdkRequest +from huaweicloudsdkcore.signer.signer import process_canonical_query_string class MeetingCredentials(Credentials): - def __init__(self, username, password): + def __init__(self, user_name, user_password): self._token = None self._last_token_date = None - if username is None or username == "": - raise ApiValueError("username can not be null.") + if user_name is None or user_name == "": + raise ApiValueError("user_name can not be null.") - if password is None or password == "": - raise ApiValueError("password can not be null.") + if user_password is None or user_password == "": + raise ApiValueError("user_password can not be null.") - self._username = username - self._password = password + self._user_name = user_name + self._user_password = user_password def get_update_path_params(self): pass @@ -39,10 +40,10 @@ class MeetingCredentials(Credentials): if self._token is None or self._last_token_date is None or ( now_time - self._last_token_date).days * 24 * 3600 + ( now_time - self._last_token_date).seconds > 12 * 60 * 60: - authorization = "Basic " + str(base64.b64encode((self._username + ':' + self._password).encode('utf-8')), + authorization = "Basic " + str(base64.b64encode((self._user_name + ':' + self._user_password).encode('utf-8')), 'utf-8') - body = {'account': self._username, 'clientType': 0} + body = {'account': self._user_name, 'clientType': 0} sdk_request = SdkRequest('POST', 'https', request.host, [], '/v1/usg/acs/auth/account', [], {'Authorization': authorization, 'Content-Type': 'application/json'}, json.dumps(body), []) @@ -52,11 +53,13 @@ class MeetingCredentials(Credentials): self._token = content['accessToken'] self._last_token_date = datetime.datetime.now() request.header_params["X-Auth-Token"] = self._token - request.uri = request.resource_path + canonical_query_string = process_canonical_query_string(request) + request.uri = request.resource_path + "?" + canonical_query_string if canonical_query_string != "" else request.resource_path return request else: request.header_params["X-Auth-Token"] = self._token - request.uri = request.resource_path + canonical_query_string = process_canonical_query_string(request) + request.uri = request.resource_path + "?" + canonical_query_string if canonical_query_string != "" else request.resource_path return request diff --git a/huaweicloud-sdk-meeting/setup.py b/huaweicloud-sdk-meeting/setup.py index e3fab2a2f..bdd8c58d3 100644 --- a/huaweicloud-sdk-meeting/setup.py +++ b/huaweicloud-sdk-meeting/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmeeting" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-moderation/setup.py b/huaweicloud-sdk-moderation/setup.py index 3f5a167ca..5f87d2038 100644 --- a/huaweicloud-sdk-moderation/setup.py +++ b/huaweicloud-sdk-moderation/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmoderation" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/audio_info.py b/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/audio_info.py index 55c9a4847..c3b7bd46b 100644 --- a/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/audio_info.py +++ b/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/audio_info.py @@ -23,44 +23,76 @@ class AudioInfo: sensitive_list = [] openapi_types = { + 'language': 'str', 'codec': 'str', 'sample': 'int', 'channels': 'int', + 'sky_switch': 'int', 'bitrate': 'int', 'bitrate_bps': 'int' } attribute_map = { + 'language': 'language', 'codec': 'codec', 'sample': 'sample', 'channels': 'channels', + 'sky_switch': 'sky_switch', 'bitrate': 'bitrate', 'bitrate_bps': 'bitrate_bps' } - def __init__(self, codec=None, sample=None, channels=None, bitrate=None, bitrate_bps=None): + def __init__(self, language=None, codec=None, sample=None, channels=None, sky_switch=None, bitrate=None, bitrate_bps=None): """AudioInfo - a model defined in huaweicloud sdk""" + self._language = None self._codec = None self._sample = None self._channels = None + self._sky_switch = None self._bitrate = None self._bitrate_bps = None self.discriminator = None + if language is not None: + self.language = language if codec is not None: self.codec = codec if sample is not None: self.sample = sample if channels is not None: self.channels = channels + if sky_switch is not None: + self.sky_switch = sky_switch if bitrate is not None: self.bitrate = bitrate if bitrate_bps is not None: self.bitrate_bps = bitrate_bps + @property + def language(self): + """Gets the language of this AudioInfo. + + 声轨语言。 + + :return: The language of this AudioInfo. + :rtype: str + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this AudioInfo. + + 声轨语言。 + + :param language: The language of this AudioInfo. + :type: str + """ + self._language = language + @property def codec(self): """Gets the codec of this AudioInfo. @@ -127,6 +159,28 @@ class AudioInfo: """ self._channels = channels + @property + def sky_switch(self): + """Gets the sky_switch of this AudioInfo. + + 是否开启了天空音。 + + :return: The sky_switch of this AudioInfo. + :rtype: int + """ + return self._sky_switch + + @sky_switch.setter + def sky_switch(self, sky_switch): + """Sets the sky_switch of this AudioInfo. + + 是否开启了天空音。 + + :param sky_switch: The sky_switch of this AudioInfo. + :type: int + """ + self._sky_switch = sky_switch + @property def bitrate(self): """Gets the bitrate of this AudioInfo. diff --git a/huaweicloud-sdk-mpc/setup.py b/huaweicloud-sdk-mpc/setup.py index e46d2f03d..433bdf8c2 100644 --- a/huaweicloud-sdk-mpc/setup.py +++ b/huaweicloud-sdk-mpc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmpc" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-nat/setup.py b/huaweicloud-sdk-nat/setup.py index 9131a976d..691b47d3b 100644 --- a/huaweicloud-sdk-nat/setup.py +++ b/huaweicloud-sdk-nat/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdknat" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-ocr/setup.py b/huaweicloud-sdk-ocr/setup.py index 46138eb0d..f12dbf631 100644 --- a/huaweicloud-sdk-ocr/setup.py +++ b/huaweicloud-sdk-ocr/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkocr" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-projectman/huaweicloudsdkprojectman/v4/model/get_project_info_v4_result_project.py b/huaweicloud-sdk-projectman/huaweicloudsdkprojectman/v4/model/get_project_info_v4_result_project.py index ad6e76bb5..117230abd 100644 --- a/huaweicloud-sdk-projectman/huaweicloudsdkprojectman/v4/model/get_project_info_v4_result_project.py +++ b/huaweicloud-sdk-projectman/huaweicloudsdkprojectman/v4/model/get_project_info_v4_result_project.py @@ -31,6 +31,7 @@ class GetProjectInfoV4ResultProject: 'project_type': 'str', 'archive': 'bool', 'enterprise_id': 'str', + 'project_code': 'str', 'creator': 'GetProjectInfoV4ResultProjectCreator' } @@ -43,10 +44,11 @@ class GetProjectInfoV4ResultProject: 'project_type': 'project_type', 'archive': 'archive', 'enterprise_id': 'enterprise_id', + 'project_code': 'project_code', 'creator': 'creator' } - def __init__(self, project_num_id=None, project_id=None, name=None, created_on=None, updated_on=None, project_type=None, archive=None, enterprise_id=None, creator=None): + def __init__(self, project_num_id=None, project_id=None, name=None, created_on=None, updated_on=None, project_type=None, archive=None, enterprise_id=None, project_code=None, creator=None): """GetProjectInfoV4ResultProject - a model defined in huaweicloud sdk""" @@ -59,6 +61,7 @@ class GetProjectInfoV4ResultProject: self._project_type = None self._archive = None self._enterprise_id = None + self._project_code = None self._creator = None self.discriminator = None @@ -78,6 +81,8 @@ class GetProjectInfoV4ResultProject: self.archive = archive if enterprise_id is not None: self.enterprise_id = enterprise_id + if project_code is not None: + self.project_code = project_code if creator is not None: self.creator = creator @@ -257,6 +262,28 @@ class GetProjectInfoV4ResultProject: """ self._enterprise_id = enterprise_id + @property + def project_code(self): + """Gets the project_code of this GetProjectInfoV4ResultProject. + + 项目代号 + + :return: The project_code of this GetProjectInfoV4ResultProject. + :rtype: str + """ + return self._project_code + + @project_code.setter + def project_code(self, project_code): + """Sets the project_code of this GetProjectInfoV4ResultProject. + + 项目代号 + + :param project_code: The project_code of this GetProjectInfoV4ResultProject. + :type: str + """ + self._project_code = project_code + @property def creator(self): """Gets the creator of this GetProjectInfoV4ResultProject. diff --git a/huaweicloud-sdk-projectman/setup.py b/huaweicloud-sdk-projectman/setup.py index 5b8d009ed..40e5d4b67 100644 --- a/huaweicloud-sdk-projectman/setup.py +++ b/huaweicloud-sdk-projectman/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkprojectman" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-rabbitmq/setup.py b/huaweicloud-sdk-rabbitmq/setup.py index f557493ff..4ddfaddea 100644 --- a/huaweicloud-sdk-rabbitmq/setup.py +++ b/huaweicloud-sdk-rabbitmq/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkrabbitmq" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/__init__.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/__init__.py index 88b92af79..6fda52fae 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/__init__.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/__init__.py @@ -72,10 +72,8 @@ from huaweicloudsdkrds.v3.model.create_sqlserver_db_user_request import CreateSq from huaweicloudsdkrds.v3.model.create_sqlserver_db_user_response import CreateSqlserverDbUserResponse from huaweicloudsdkrds.v3.model.data_ip_request import DataIpRequest from huaweicloudsdkrds.v3.model.database_for_creation import DatabaseForCreation -from huaweicloudsdkrds.v3.model.database_for_list_schema import DatabaseForListSchema from huaweicloudsdkrds.v3.model.database_with_privilege import DatabaseWithPrivilege from huaweicloudsdkrds.v3.model.datastore import Datastore -from huaweicloudsdkrds.v3.model.db_schema_req import DbSchemaReq from huaweicloudsdkrds.v3.model.db_user_pwd_request import DbUserPwdRequest from huaweicloudsdkrds.v3.model.delete_configuration_request import DeleteConfigurationRequest from huaweicloudsdkrds.v3.model.delete_configuration_response import DeleteConfigurationResponse @@ -106,6 +104,7 @@ from huaweicloudsdkrds.v3.model.follower_migrate_request import FollowerMigrateR from huaweicloudsdkrds.v3.model.generate_auditlog_download_link_request import GenerateAuditlogDownloadLinkRequest from huaweicloudsdkrds.v3.model.get_backup_download_link_files import GetBackupDownloadLinkFiles from huaweicloudsdkrds.v3.model.get_job_info_response_body_job import GetJobInfoResponseBodyJob +from huaweicloudsdkrds.v3.model.get_off_site_backup_policy import GetOffSiteBackupPolicy from huaweicloudsdkrds.v3.model.get_restore_time_response_restore_time import GetRestoreTimeResponseRestoreTime from huaweicloudsdkrds.v3.model.get_task_detail_list_rsp_instance import GetTaskDetailListRspInstance from huaweicloudsdkrds.v3.model.get_task_detail_list_rsp_jobs import GetTaskDetailListRspJobs @@ -181,12 +180,15 @@ from huaweicloudsdkrds.v3.model.off_site_backup_for_list import OffSiteBackupFor from huaweicloudsdkrds.v3.model.off_site_backup_policy import OffSiteBackupPolicy from huaweicloudsdkrds.v3.model.offsite_backup_instance import OffsiteBackupInstance from huaweicloudsdkrds.v3.model.ops_window_request import OpsWindowRequest -from huaweicloudsdkrds.v3.model.pg_grant_request import PgGrantRequest -from huaweicloudsdkrds.v3.model.pg_list_database import PgListDatabase -from huaweicloudsdkrds.v3.model.pg_user_for_list import PgUserForList -from huaweicloudsdkrds.v3.model.pg_user_with_privilege import PgUserWithPrivilege +from huaweicloudsdkrds.v3.model.postgresql_create_schema_req import PostgresqlCreateSchemaReq from huaweicloudsdkrds.v3.model.postgresql_database_for_creation import PostgresqlDatabaseForCreation +from huaweicloudsdkrds.v3.model.postgresql_database_for_list_schema import PostgresqlDatabaseForListSchema +from huaweicloudsdkrds.v3.model.postgresql_database_schema_req import PostgresqlDatabaseSchemaReq +from huaweicloudsdkrds.v3.model.postgresql_grant_request import PostgresqlGrantRequest +from huaweicloudsdkrds.v3.model.postgresql_list_database import PostgresqlListDatabase from huaweicloudsdkrds.v3.model.postgresql_user_for_creation import PostgresqlUserForCreation +from huaweicloudsdkrds.v3.model.postgresql_user_for_list import PostgresqlUserForList +from huaweicloudsdkrds.v3.model.postgresql_user_with_privilege import PostgresqlUserWithPrivilege from huaweicloudsdkrds.v3.model.project_tag_info_response import ProjectTagInfoResponse from huaweicloudsdkrds.v3.model.pwd_reset_request import PwdResetRequest from huaweicloudsdkrds.v3.model.recycle_policy_request_body import RecyclePolicyRequestBody @@ -211,7 +213,6 @@ from huaweicloudsdkrds.v3.model.revoke_request_body_users import RevokeRequestBo from huaweicloudsdkrds.v3.model.revoke_response import RevokeResponse from huaweicloudsdkrds.v3.model.revoke_sqlserver_db_user_privilege_request import RevokeSqlserverDbUserPrivilegeRequest from huaweicloudsdkrds.v3.model.revoke_sqlserver_db_user_privilege_response import RevokeSqlserverDbUserPrivilegeResponse -from huaweicloudsdkrds.v3.model.schema_req import SchemaReq from huaweicloudsdkrds.v3.model.security_group_request import SecurityGroupRequest from huaweicloudsdkrds.v3.model.set_auditlog_policy_request import SetAuditlogPolicyRequest from huaweicloudsdkrds.v3.model.set_auditlog_policy_request_body import SetAuditlogPolicyRequestBody diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/__init__.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/__init__.py index 034bf5299..ab13adfa2 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/__init__.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/__init__.py @@ -69,10 +69,8 @@ from huaweicloudsdkrds.v3.model.create_sqlserver_db_user_request import CreateSq from huaweicloudsdkrds.v3.model.create_sqlserver_db_user_response import CreateSqlserverDbUserResponse from huaweicloudsdkrds.v3.model.data_ip_request import DataIpRequest from huaweicloudsdkrds.v3.model.database_for_creation import DatabaseForCreation -from huaweicloudsdkrds.v3.model.database_for_list_schema import DatabaseForListSchema from huaweicloudsdkrds.v3.model.database_with_privilege import DatabaseWithPrivilege from huaweicloudsdkrds.v3.model.datastore import Datastore -from huaweicloudsdkrds.v3.model.db_schema_req import DbSchemaReq from huaweicloudsdkrds.v3.model.db_user_pwd_request import DbUserPwdRequest from huaweicloudsdkrds.v3.model.delete_configuration_request import DeleteConfigurationRequest from huaweicloudsdkrds.v3.model.delete_configuration_response import DeleteConfigurationResponse @@ -103,6 +101,7 @@ from huaweicloudsdkrds.v3.model.follower_migrate_request import FollowerMigrateR from huaweicloudsdkrds.v3.model.generate_auditlog_download_link_request import GenerateAuditlogDownloadLinkRequest from huaweicloudsdkrds.v3.model.get_backup_download_link_files import GetBackupDownloadLinkFiles from huaweicloudsdkrds.v3.model.get_job_info_response_body_job import GetJobInfoResponseBodyJob +from huaweicloudsdkrds.v3.model.get_off_site_backup_policy import GetOffSiteBackupPolicy from huaweicloudsdkrds.v3.model.get_restore_time_response_restore_time import GetRestoreTimeResponseRestoreTime from huaweicloudsdkrds.v3.model.get_task_detail_list_rsp_instance import GetTaskDetailListRspInstance from huaweicloudsdkrds.v3.model.get_task_detail_list_rsp_jobs import GetTaskDetailListRspJobs @@ -178,12 +177,15 @@ from huaweicloudsdkrds.v3.model.off_site_backup_for_list import OffSiteBackupFor from huaweicloudsdkrds.v3.model.off_site_backup_policy import OffSiteBackupPolicy from huaweicloudsdkrds.v3.model.offsite_backup_instance import OffsiteBackupInstance from huaweicloudsdkrds.v3.model.ops_window_request import OpsWindowRequest -from huaweicloudsdkrds.v3.model.pg_grant_request import PgGrantRequest -from huaweicloudsdkrds.v3.model.pg_list_database import PgListDatabase -from huaweicloudsdkrds.v3.model.pg_user_for_list import PgUserForList -from huaweicloudsdkrds.v3.model.pg_user_with_privilege import PgUserWithPrivilege +from huaweicloudsdkrds.v3.model.postgresql_create_schema_req import PostgresqlCreateSchemaReq from huaweicloudsdkrds.v3.model.postgresql_database_for_creation import PostgresqlDatabaseForCreation +from huaweicloudsdkrds.v3.model.postgresql_database_for_list_schema import PostgresqlDatabaseForListSchema +from huaweicloudsdkrds.v3.model.postgresql_database_schema_req import PostgresqlDatabaseSchemaReq +from huaweicloudsdkrds.v3.model.postgresql_grant_request import PostgresqlGrantRequest +from huaweicloudsdkrds.v3.model.postgresql_list_database import PostgresqlListDatabase from huaweicloudsdkrds.v3.model.postgresql_user_for_creation import PostgresqlUserForCreation +from huaweicloudsdkrds.v3.model.postgresql_user_for_list import PostgresqlUserForList +from huaweicloudsdkrds.v3.model.postgresql_user_with_privilege import PostgresqlUserWithPrivilege from huaweicloudsdkrds.v3.model.project_tag_info_response import ProjectTagInfoResponse from huaweicloudsdkrds.v3.model.pwd_reset_request import PwdResetRequest from huaweicloudsdkrds.v3.model.recycle_policy_request_body import RecyclePolicyRequestBody @@ -208,7 +210,6 @@ from huaweicloudsdkrds.v3.model.revoke_request_body_users import RevokeRequestBo from huaweicloudsdkrds.v3.model.revoke_response import RevokeResponse from huaweicloudsdkrds.v3.model.revoke_sqlserver_db_user_privilege_request import RevokeSqlserverDbUserPrivilegeRequest from huaweicloudsdkrds.v3.model.revoke_sqlserver_db_user_privilege_response import RevokeSqlserverDbUserPrivilegeResponse -from huaweicloudsdkrds.v3.model.schema_req import SchemaReq from huaweicloudsdkrds.v3.model.security_group_request import SecurityGroupRequest from huaweicloudsdkrds.v3.model.set_auditlog_policy_request import SetAuditlogPolicyRequest from huaweicloudsdkrds.v3.model.set_auditlog_policy_request_body import SetAuditlogPolicyRequestBody diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/allow_db_privilege_request.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/allow_db_privilege_request.py index 7a0b67c8b..6696f225b 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/allow_db_privilege_request.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/allow_db_privilege_request.py @@ -25,7 +25,7 @@ class AllowDbPrivilegeRequest: openapi_types = { 'x_language': 'str', 'instance_id': 'str', - 'body': 'PgGrantRequest' + 'body': 'PostgresqlGrantRequest' } attribute_map = { @@ -96,7 +96,7 @@ class AllowDbPrivilegeRequest: :return: The body of this AllowDbPrivilegeRequest. - :rtype: PgGrantRequest + :rtype: PostgresqlGrantRequest """ return self._body @@ -106,7 +106,7 @@ class AllowDbPrivilegeRequest: :param body: The body of this AllowDbPrivilegeRequest. - :type: PgGrantRequest + :type: PostgresqlGrantRequest """ self._body = body diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/create_postgresql_database_schema_request.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/create_postgresql_database_schema_request.py index 5d95a2477..33317d07b 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/create_postgresql_database_schema_request.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/create_postgresql_database_schema_request.py @@ -25,7 +25,7 @@ class CreatePostgresqlDatabaseSchemaRequest: openapi_types = { 'x_language': 'str', 'instance_id': 'str', - 'body': 'DbSchemaReq' + 'body': 'PostgresqlDatabaseSchemaReq' } attribute_map = { @@ -96,7 +96,7 @@ class CreatePostgresqlDatabaseSchemaRequest: :return: The body of this CreatePostgresqlDatabaseSchemaRequest. - :rtype: DbSchemaReq + :rtype: PostgresqlDatabaseSchemaReq """ return self._body @@ -106,7 +106,7 @@ class CreatePostgresqlDatabaseSchemaRequest: :param body: The body of this CreatePostgresqlDatabaseSchemaRequest. - :type: DbSchemaReq + :type: PostgresqlDatabaseSchemaReq """ self._body = body diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/db_user_pwd_request.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/db_user_pwd_request.py index 315158b3e..181769980 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/db_user_pwd_request.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/db_user_pwd_request.py @@ -48,7 +48,7 @@ class DbUserPwdRequest: def name(self): """Gets the name of this DbUserPwdRequest. - - 数据库帐号名称。 + 数据库帐号名称。 :return: The name of this DbUserPwdRequest. :rtype: str @@ -59,7 +59,7 @@ class DbUserPwdRequest: def name(self, name): """Sets the name of this DbUserPwdRequest. - - 数据库帐号名称。 + 数据库帐号名称。 :param name: The name of this DbUserPwdRequest. :type: str @@ -70,7 +70,7 @@ class DbUserPwdRequest: def password(self): """Gets the password of this DbUserPwdRequest. - - 数据库帐号密码。取值范围:非空,至少包含以下字符中的三种:大写字母、小写字母、数字和特殊符号~!@#%^*-_=+?组成,长度8~32个字符,不能和数据库帐号“name”或“name”的逆序相同。建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。 + 数据库帐号密码。 取值范围: 非空,至少包含以下字符中的三种:大写字母、小写字母、数字和特殊符号~!@#%^*-_=+?,组成,长度8~32个字符,不能和数据库帐号“name”或“name”的逆序相同。 建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。 :return: The password of this DbUserPwdRequest. :rtype: str @@ -81,7 +81,7 @@ class DbUserPwdRequest: def password(self, password): """Sets the password of this DbUserPwdRequest. - - 数据库帐号密码。取值范围:非空,至少包含以下字符中的三种:大写字母、小写字母、数字和特殊符号~!@#%^*-_=+?组成,长度8~32个字符,不能和数据库帐号“name”或“name”的逆序相同。建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。 + 数据库帐号密码。 取值范围: 非空,至少包含以下字符中的三种:大写字母、小写字母、数字和特殊符号~!@#%^*-_=+?,组成,长度8~32个字符,不能和数据库帐号“name”或“name”的逆序相同。 建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。 :param password: The password of this DbUserPwdRequest. :type: str diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/get_off_site_backup_policy.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/get_off_site_backup_policy.py new file mode 100644 index 000000000..3e7c56fd3 --- /dev/null +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/get_off_site_backup_policy.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class GetOffSiteBackupPolicy: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'backup_type': 'str', + 'keep_days': 'int', + 'destination_region': 'str', + 'destination_project_id': 'str' + } + + attribute_map = { + 'backup_type': 'backup_type', + 'keep_days': 'keep_days', + 'destination_region': 'destination_region', + 'destination_project_id': 'destination_project_id' + } + + def __init__(self, backup_type=None, keep_days=None, destination_region=None, destination_project_id=None): + """GetOffSiteBackupPolicy - a model defined in huaweicloud sdk""" + + + + self._backup_type = None + self._keep_days = None + self._destination_region = None + self._destination_project_id = None + self.discriminator = None + + if backup_type is not None: + self.backup_type = backup_type + if keep_days is not None: + self.keep_days = keep_days + if destination_region is not None: + self.destination_region = destination_region + if destination_project_id is not None: + self.destination_project_id = destination_project_id + + @property + def backup_type(self): + """Gets the backup_type of this GetOffSiteBackupPolicy. + + 指定备份的类型。取值如下: - auto:自动全量备份。 - incremental:自动增量备份。 - manual:手动备份,仅SQL Server返回该备份类型 。 + + :return: The backup_type of this GetOffSiteBackupPolicy. + :rtype: str + """ + return self._backup_type + + @backup_type.setter + def backup_type(self, backup_type): + """Sets the backup_type of this GetOffSiteBackupPolicy. + + 指定备份的类型。取值如下: - auto:自动全量备份。 - incremental:自动增量备份。 - manual:手动备份,仅SQL Server返回该备份类型 。 + + :param backup_type: The backup_type of this GetOffSiteBackupPolicy. + :type: str + """ + self._backup_type = backup_type + + @property + def keep_days(self): + """Gets the keep_days of this GetOffSiteBackupPolicy. + + 备份文件可以保存的天数。 + + :return: The keep_days of this GetOffSiteBackupPolicy. + :rtype: int + """ + return self._keep_days + + @keep_days.setter + def keep_days(self, keep_days): + """Sets the keep_days of this GetOffSiteBackupPolicy. + + 备份文件可以保存的天数。 + + :param keep_days: The keep_days of this GetOffSiteBackupPolicy. + :type: int + """ + self._keep_days = keep_days + + @property + def destination_region(self): + """Gets the destination_region of this GetOffSiteBackupPolicy. + + 设置跨区域备份策略的目标区域ID。 + + :return: The destination_region of this GetOffSiteBackupPolicy. + :rtype: str + """ + return self._destination_region + + @destination_region.setter + def destination_region(self, destination_region): + """Sets the destination_region of this GetOffSiteBackupPolicy. + + 设置跨区域备份策略的目标区域ID。 + + :param destination_region: The destination_region of this GetOffSiteBackupPolicy. + :type: str + """ + self._destination_region = destination_region + + @property + def destination_project_id(self): + """Gets the destination_project_id of this GetOffSiteBackupPolicy. + + 设置跨区域备份策略的目标project ID。 + + :return: The destination_project_id of this GetOffSiteBackupPolicy. + :rtype: str + """ + return self._destination_project_id + + @destination_project_id.setter + def destination_project_id(self, destination_project_id): + """Sets the destination_project_id of this GetOffSiteBackupPolicy. + + 设置跨区域备份策略的目标project ID。 + + :param destination_project_id: The destination_project_id of this GetOffSiteBackupPolicy. + :type: str + """ + self._destination_project_id = destination_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, GetOffSiteBackupPolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_off_site_backups_response.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_off_site_backups_response.py index 057a10024..73721f7a1 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_off_site_backups_response.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_off_site_backups_response.py @@ -23,50 +23,50 @@ class ListOffSiteBackupsResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'offsite_backups': 'list[OffSiteBackupForList]', + 'backups': 'list[OffSiteBackupForList]', 'total_count': 'int' } attribute_map = { - 'offsite_backups': 'offsite_backups', + 'backups': 'backups', 'total_count': 'total_count' } - def __init__(self, offsite_backups=None, total_count=None): + def __init__(self, backups=None, total_count=None): """ListOffSiteBackupsResponse - a model defined in huaweicloud sdk""" super().__init__() - self._offsite_backups = None + self._backups = None self._total_count = None self.discriminator = None - if offsite_backups is not None: - self.offsite_backups = offsite_backups + if backups is not None: + self.backups = backups if total_count is not None: self.total_count = total_count @property - def offsite_backups(self): - """Gets the offsite_backups of this ListOffSiteBackupsResponse. + def backups(self): + """Gets the backups of this ListOffSiteBackupsResponse. 跨区域备份信息。 - :return: The offsite_backups of this ListOffSiteBackupsResponse. + :return: The backups of this ListOffSiteBackupsResponse. :rtype: list[OffSiteBackupForList] """ - return self._offsite_backups + return self._backups - @offsite_backups.setter - def offsite_backups(self, offsite_backups): - """Sets the offsite_backups of this ListOffSiteBackupsResponse. + @backups.setter + def backups(self, backups): + """Sets the backups of this ListOffSiteBackupsResponse. 跨区域备份信息。 - :param offsite_backups: The offsite_backups of this ListOffSiteBackupsResponse. + :param backups: The backups of this ListOffSiteBackupsResponse. :type: list[OffSiteBackupForList] """ - self._offsite_backups = offsite_backups + self._backups = backups @property def total_count(self): diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_postgresql_database_schemas_response.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_postgresql_database_schemas_response.py index b140098ee..b90b96e74 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_postgresql_database_schemas_response.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_postgresql_database_schemas_response.py @@ -23,7 +23,7 @@ class ListPostgresqlDatabaseSchemasResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'database_schemas': 'list[DatabaseForListSchema]', + 'database_schemas': 'list[PostgresqlDatabaseForListSchema]', 'total_count': 'int' } @@ -53,7 +53,7 @@ class ListPostgresqlDatabaseSchemasResponse(SdkResponse): 列表中每个元素表示一个数据库schema。 :return: The database_schemas of this ListPostgresqlDatabaseSchemasResponse. - :rtype: list[DatabaseForListSchema] + :rtype: list[PostgresqlDatabaseForListSchema] """ return self._database_schemas @@ -64,7 +64,7 @@ class ListPostgresqlDatabaseSchemasResponse(SdkResponse): 列表中每个元素表示一个数据库schema。 :param database_schemas: The database_schemas of this ListPostgresqlDatabaseSchemasResponse. - :type: list[DatabaseForListSchema] + :type: list[PostgresqlDatabaseForListSchema] """ self._database_schemas = database_schemas @@ -72,7 +72,7 @@ class ListPostgresqlDatabaseSchemasResponse(SdkResponse): def total_count(self): """Gets the total_count of this ListPostgresqlDatabaseSchemasResponse. - 总数。 + 数据库schema总数。 :return: The total_count of this ListPostgresqlDatabaseSchemasResponse. :rtype: int @@ -83,7 +83,7 @@ class ListPostgresqlDatabaseSchemasResponse(SdkResponse): def total_count(self, total_count): """Sets the total_count of this ListPostgresqlDatabaseSchemasResponse. - 总数。 + 数据库schema总数。 :param total_count: The total_count of this ListPostgresqlDatabaseSchemasResponse. :type: int diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_postgresql_databases_response.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_postgresql_databases_response.py index 24b370d1d..2f2e669f8 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_postgresql_databases_response.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_postgresql_databases_response.py @@ -23,7 +23,7 @@ class ListPostgresqlDatabasesResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'databases': 'list[PgListDatabase]', + 'databases': 'list[PostgresqlListDatabase]', 'total_count': 'int' } @@ -50,10 +50,10 @@ class ListPostgresqlDatabasesResponse(SdkResponse): def databases(self): """Gets the databases of this ListPostgresqlDatabasesResponse. - 数据库信息。 + 列表中每个元素表示一个数据库。 :return: The databases of this ListPostgresqlDatabasesResponse. - :rtype: list[PgListDatabase] + :rtype: list[PostgresqlListDatabase] """ return self._databases @@ -61,10 +61,10 @@ class ListPostgresqlDatabasesResponse(SdkResponse): def databases(self, databases): """Sets the databases of this ListPostgresqlDatabasesResponse. - 数据库信息。 + 列表中每个元素表示一个数据库。 :param databases: The databases of this ListPostgresqlDatabasesResponse. - :type: list[PgListDatabase] + :type: list[PostgresqlListDatabase] """ self._databases = databases @@ -72,7 +72,7 @@ class ListPostgresqlDatabasesResponse(SdkResponse): def total_count(self): """Gets the total_count of this ListPostgresqlDatabasesResponse. - 总数。 + 数据库总数。 :return: The total_count of this ListPostgresqlDatabasesResponse. :rtype: int @@ -83,7 +83,7 @@ class ListPostgresqlDatabasesResponse(SdkResponse): def total_count(self, total_count): """Sets the total_count of this ListPostgresqlDatabasesResponse. - 总数。 + 数据库总数。 :param total_count: The total_count of this ListPostgresqlDatabasesResponse. :type: int diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_postgresql_db_user_paginated_response.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_postgresql_db_user_paginated_response.py index b2916f8bc..a17e40db6 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_postgresql_db_user_paginated_response.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_postgresql_db_user_paginated_response.py @@ -23,7 +23,7 @@ class ListPostgresqlDbUserPaginatedResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'users': 'list[PgUserForList]', + 'users': 'list[PostgresqlUserForList]', 'total_count': 'int' } @@ -50,10 +50,10 @@ class ListPostgresqlDbUserPaginatedResponse(SdkResponse): def users(self): """Gets the users of this ListPostgresqlDbUserPaginatedResponse. - 用户信息。 + 列表中每个元素表示一个数据库用户。 :return: The users of this ListPostgresqlDbUserPaginatedResponse. - :rtype: list[PgUserForList] + :rtype: list[PostgresqlUserForList] """ return self._users @@ -61,10 +61,10 @@ class ListPostgresqlDbUserPaginatedResponse(SdkResponse): def users(self, users): """Sets the users of this ListPostgresqlDbUserPaginatedResponse. - 用户信息。 + 列表中每个元素表示一个数据库用户。 :param users: The users of this ListPostgresqlDbUserPaginatedResponse. - :type: list[PgUserForList] + :type: list[PostgresqlUserForList] """ self._users = users @@ -72,7 +72,7 @@ class ListPostgresqlDbUserPaginatedResponse(SdkResponse): def total_count(self): """Gets the total_count of this ListPostgresqlDbUserPaginatedResponse. - 总条数。 + 数据库用户总数。 :return: The total_count of this ListPostgresqlDbUserPaginatedResponse. :rtype: int @@ -83,7 +83,7 @@ class ListPostgresqlDbUserPaginatedResponse(SdkResponse): def total_count(self, total_count): """Sets the total_count of this ListPostgresqlDbUserPaginatedResponse. - 总条数。 + 数据库用户总数。 :param total_count: The total_count of this ListPostgresqlDbUserPaginatedResponse. :type: int diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_sqlserver_databases_request.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_sqlserver_databases_request.py index db562884a..9ad7f0f76 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_sqlserver_databases_request.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_sqlserver_databases_request.py @@ -26,17 +26,19 @@ class ListSqlserverDatabasesRequest: 'x_language': 'str', 'instance_id': 'str', 'page': 'int', - 'limit': 'int' + 'limit': 'int', + 'db_name': 'str' } attribute_map = { 'x_language': 'X-Language', 'instance_id': 'instance_id', 'page': 'page', - 'limit': 'limit' + 'limit': 'limit', + 'db_name': 'db-name' } - def __init__(self, x_language=None, instance_id=None, page=None, limit=None): + def __init__(self, x_language=None, instance_id=None, page=None, limit=None, db_name=None): """ListSqlserverDatabasesRequest - a model defined in huaweicloud sdk""" @@ -45,6 +47,7 @@ class ListSqlserverDatabasesRequest: self._instance_id = None self._page = None self._limit = None + self._db_name = None self.discriminator = None if x_language is not None: @@ -52,6 +55,8 @@ class ListSqlserverDatabasesRequest: self.instance_id = instance_id self.page = page self.limit = limit + if db_name is not None: + self.db_name = db_name @property def x_language(self): @@ -133,6 +138,26 @@ class ListSqlserverDatabasesRequest: """ self._limit = limit + @property + def db_name(self): + """Gets the db_name of this ListSqlserverDatabasesRequest. + + + :return: The db_name of this ListSqlserverDatabasesRequest. + :rtype: str + """ + return self._db_name + + @db_name.setter + def db_name(self, db_name): + """Sets the db_name of this ListSqlserverDatabasesRequest. + + + :param db_name: The db_name of this ListSqlserverDatabasesRequest. + :type: str + """ + self._db_name = db_name + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/off_site_backup_policy.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/off_site_backup_policy.py index 61b345d27..d779f4267 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/off_site_backup_policy.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/off_site_backup_policy.py @@ -23,43 +23,62 @@ class OffSiteBackupPolicy: sensitive_list = [] openapi_types = { + 'backup_type': 'str', 'keep_days': 'int', - 'backup_type': 'object', 'destination_region': 'str', 'destination_project_id': 'str' } attribute_map = { - 'keep_days': 'keep_days', 'backup_type': 'backup_type', + 'keep_days': 'keep_days', 'destination_region': 'destination_region', 'destination_project_id': 'destination_project_id' } - def __init__(self, keep_days=None, backup_type=None, destination_region=None, destination_project_id=None): + def __init__(self, backup_type=None, keep_days=None, destination_region=None, destination_project_id=None): """OffSiteBackupPolicy - a model defined in huaweicloud sdk""" - self._keep_days = None self._backup_type = None + self._keep_days = None self._destination_region = None self._destination_project_id = None self.discriminator = None + self.backup_type = backup_type self.keep_days = keep_days - if backup_type is not None: - self.backup_type = backup_type - if destination_region is not None: - self.destination_region = destination_region - if destination_project_id is not None: - self.destination_project_id = destination_project_id + self.destination_region = destination_region + self.destination_project_id = destination_project_id + + @property + def backup_type(self): + """Gets the backup_type of this OffSiteBackupPolicy. + + 指定备份的类型。 SQL Server仅支持设置为“all”。 取值如下: - auto:自动全量备份。 - incremental:自动增量备份。 - all:同时设置所有备份类型。 - MySQL:同时设置自动全量和自动增量备份。 - SQL Server:同时设置自动全量、自动增量备份和手动备份。 + + :return: The backup_type of this OffSiteBackupPolicy. + :rtype: str + """ + return self._backup_type + + @backup_type.setter + def backup_type(self, backup_type): + """Sets the backup_type of this OffSiteBackupPolicy. + + 指定备份的类型。 SQL Server仅支持设置为“all”。 取值如下: - auto:自动全量备份。 - incremental:自动增量备份。 - all:同时设置所有备份类型。 - MySQL:同时设置自动全量和自动增量备份。 - SQL Server:同时设置自动全量、自动增量备份和手动备份。 + + :param backup_type: The backup_type of this OffSiteBackupPolicy. + :type: str + """ + self._backup_type = backup_type @property def keep_days(self): """Gets the keep_days of this OffSiteBackupPolicy. - 指定已生成的备份文件可以保存的天数。 取值范围:0~1825。保存天数设置为0时,表示关闭跨区域备份策略。 注意: 关闭备份策略后,备份任务将立即停止,如果有增量备份,所有增量备份任务将立即删除,使用增量备份的相关操作可能失败,相关操作不限于下载、复制、恢复、重建等,请谨慎操作。 + 备份文件可以保存的天数。 :return: The keep_days of this OffSiteBackupPolicy. :rtype: int @@ -70,40 +89,18 @@ class OffSiteBackupPolicy: def keep_days(self, keep_days): """Sets the keep_days of this OffSiteBackupPolicy. - 指定已生成的备份文件可以保存的天数。 取值范围:0~1825。保存天数设置为0时,表示关闭跨区域备份策略。 注意: 关闭备份策略后,备份任务将立即停止,如果有增量备份,所有增量备份任务将立即删除,使用增量备份的相关操作可能失败,相关操作不限于下载、复制、恢复、重建等,请谨慎操作。 + 备份文件可以保存的天数。 :param keep_days: The keep_days of this OffSiteBackupPolicy. :type: int """ self._keep_days = keep_days - @property - def backup_type(self): - """Gets the backup_type of this OffSiteBackupPolicy. - - 备份类型,取值: - SQL Server仅支持设置为“all” - “auto”: 自动全量备份 - “incremental”: 自动增量备份 - “manual“: 手动备份,仅SQL Server返回该备份类型 - “all”: 同时设置自动全量和自动增量备份。MySQL: 同时设置自动全量和自动增量备份。SQL Server: 同时设置自动全量、自动增量备份和手动备份。 - - :return: The backup_type of this OffSiteBackupPolicy. - :rtype: object - """ - return self._backup_type - - @backup_type.setter - def backup_type(self, backup_type): - """Sets the backup_type of this OffSiteBackupPolicy. - - 备份类型,取值: - SQL Server仅支持设置为“all” - “auto”: 自动全量备份 - “incremental”: 自动增量备份 - “manual“: 手动备份,仅SQL Server返回该备份类型 - “all”: 同时设置自动全量和自动增量备份。MySQL: 同时设置自动全量和自动增量备份。SQL Server: 同时设置自动全量、自动增量备份和手动备份。 - - :param backup_type: The backup_type of this OffSiteBackupPolicy. - :type: object - """ - self._backup_type = backup_type - @property def destination_region(self): """Gets the destination_region of this OffSiteBackupPolicy. - 目标区域ID。 + 设置跨区域备份策略的目标区域ID。 :return: The destination_region of this OffSiteBackupPolicy. :rtype: str @@ -114,7 +111,7 @@ class OffSiteBackupPolicy: def destination_region(self, destination_region): """Sets the destination_region of this OffSiteBackupPolicy. - 目标区域ID。 + 设置跨区域备份策略的目标区域ID。 :param destination_region: The destination_region of this OffSiteBackupPolicy. :type: str @@ -125,7 +122,7 @@ class OffSiteBackupPolicy: def destination_project_id(self): """Gets the destination_project_id of this OffSiteBackupPolicy. - 项目ID。 + 设置跨区域备份策略的目标project ID。 :return: The destination_project_id of this OffSiteBackupPolicy. :rtype: str @@ -136,7 +133,7 @@ class OffSiteBackupPolicy: def destination_project_id(self, destination_project_id): """Sets the destination_project_id of this OffSiteBackupPolicy. - 项目ID。 + 设置跨区域备份策略的目标project ID。 :param destination_project_id: The destination_project_id of this OffSiteBackupPolicy. :type: str diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/schema_req.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_create_schema_req.py similarity index 57% rename from huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/schema_req.py rename to huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_create_schema_req.py index 809d7d6d7..0f2e089a8 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/schema_req.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_create_schema_req.py @@ -9,7 +9,7 @@ import six -class SchemaReq: +class PostgresqlCreateSchemaReq: """ @@ -33,7 +33,7 @@ class SchemaReq: } def __init__(self, schema_name=None, owner=None): - """SchemaReq - a model defined in huaweicloud sdk""" + """PostgresqlCreateSchemaReq - a model defined in huaweicloud sdk""" @@ -48,44 +48,44 @@ class SchemaReq: @property def schema_name(self): - """Gets the schema_name of this SchemaReq. + """Gets the schema_name of this PostgresqlCreateSchemaReq. - schema名称。 schema名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和RDS for PostgreSQL模板库和已存在的schema重名。 RDS for PostgreSQL模板库包括postgres, template0 ,template1。 已存在的schema包括public,information_schema。 + schema名称。 schema名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和RDS for PostgreSQL模板库和已存在的schema重名。 RDS for PostgreSQL模板库包括postgres, template0 ,template1。 已存在的schema包括public,information_schema。 - :return: The schema_name of this SchemaReq. + :return: The schema_name of this PostgresqlCreateSchemaReq. :rtype: str """ return self._schema_name @schema_name.setter def schema_name(self, schema_name): - """Sets the schema_name of this SchemaReq. + """Sets the schema_name of this PostgresqlCreateSchemaReq. - schema名称。 schema名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和RDS for PostgreSQL模板库和已存在的schema重名。 RDS for PostgreSQL模板库包括postgres, template0 ,template1。 已存在的schema包括public,information_schema。 + schema名称。 schema名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和RDS for PostgreSQL模板库和已存在的schema重名。 RDS for PostgreSQL模板库包括postgres, template0 ,template1。 已存在的schema包括public,information_schema。 - :param schema_name: The schema_name of this SchemaReq. + :param schema_name: The schema_name of this PostgresqlCreateSchemaReq. :type: str """ self._schema_name = schema_name @property def owner(self): - """Gets the owner of this SchemaReq. + """Gets the owner of this PostgresqlCreateSchemaReq. - 数据库属主用户。 数据库属主名称在1到63个字符之间,不能以“pg”和数字开头,不能和系统用户名称相同。 系统用户包括“rdsAdmin”,“ rdsMetric”, “rdsBackup”, “rdsRepl”,“ rdsProxy”, “rdsDdm”。 + 数据库属主用户。 数据库属主名称在1到63个字符之间,不能以“pg”和数字开头,不能和系统用户名称相同。 系统用户包括“rdsAdmin”,“ rdsMetric”, “rdsBackup”, “rdsRepl”,“ rdsProxy”, “rdsDdm”。 - :return: The owner of this SchemaReq. + :return: The owner of this PostgresqlCreateSchemaReq. :rtype: str """ return self._owner @owner.setter def owner(self, owner): - """Sets the owner of this SchemaReq. + """Sets the owner of this PostgresqlCreateSchemaReq. - 数据库属主用户。 数据库属主名称在1到63个字符之间,不能以“pg”和数字开头,不能和系统用户名称相同。 系统用户包括“rdsAdmin”,“ rdsMetric”, “rdsBackup”, “rdsRepl”,“ rdsProxy”, “rdsDdm”。 + 数据库属主用户。 数据库属主名称在1到63个字符之间,不能以“pg”和数字开头,不能和系统用户名称相同。 系统用户包括“rdsAdmin”,“ rdsMetric”, “rdsBackup”, “rdsRepl”,“ rdsProxy”, “rdsDdm”。 - :param owner: The owner of this SchemaReq. + :param owner: The owner of this PostgresqlCreateSchemaReq. :type: str """ self._owner = owner @@ -127,7 +127,7 @@ class SchemaReq: def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, SchemaReq): + if not isinstance(other, PostgresqlCreateSchemaReq): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_database_for_creation.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_database_for_creation.py index 2e7d5184e..11115981f 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_database_for_creation.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_database_for_creation.py @@ -54,8 +54,10 @@ class PostgresqlDatabaseForCreation: self.discriminator = None self.name = name - self.character_set = character_set - self.owner = owner + if character_set is not None: + self.character_set = character_set + if owner is not None: + self.owner = owner if template is not None: self.template = template if lc_collate is not None: @@ -67,7 +69,7 @@ class PostgresqlDatabaseForCreation: def name(self): """Gets the name of this PostgresqlDatabaseForCreation. - 数据库名称。 数据库名称长度可在1~63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和RDS for PostgreSQL模板库重名。 RDS for PostgreSQL模板库包括postgres, template0 ,template1。 + 数据库名称。 数据库名称长度可在1~63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和RDS for PostgreSQL模板库重名。 RDS for PostgreSQL模板库包括postgres, template0 ,template1。 :return: The name of this PostgresqlDatabaseForCreation. :rtype: str @@ -78,7 +80,7 @@ class PostgresqlDatabaseForCreation: def name(self, name): """Sets the name of this PostgresqlDatabaseForCreation. - 数据库名称。 数据库名称长度可在1~63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和RDS for PostgreSQL模板库重名。 RDS for PostgreSQL模板库包括postgres, template0 ,template1。 + 数据库名称。 数据库名称长度可在1~63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和RDS for PostgreSQL模板库重名。 RDS for PostgreSQL模板库包括postgres, template0 ,template1。 :param name: The name of this PostgresqlDatabaseForCreation. :type: str @@ -155,7 +157,7 @@ class PostgresqlDatabaseForCreation: def lc_collate(self): """Gets the lc_collate of this PostgresqlDatabaseForCreation. - 数据库排序集。默认en_US.UTF-8。注意,不同的排序规则下,相同的比较其结果可能是不同的。例如,在en_US.utf8下, select 'a'>'A';为false,但在'C'下,select 'a'>'A';为true; 如果从oracle迁移到PostgreSQL,使用'C'才能得到一致的预期。支持的排序规则,可以查询系统表 pg_collation。 + 数据库排序集。默认en_US.UTF-8。 - 须知: 不同的排序规则下,相同字符串的比较其结果可能是不同的。 例如,在en_US.utf8下, select 'a'>'A';执行结果为false,但在'C'下,select 'a'>'A';结果为true。如果数据库从“O”迁移到PostgreSQL,数据库排序集需使用'C'才能得到一致的预期。支持的排序规则可以查询系统表 pg_collation。 :return: The lc_collate of this PostgresqlDatabaseForCreation. :rtype: str @@ -166,7 +168,7 @@ class PostgresqlDatabaseForCreation: def lc_collate(self, lc_collate): """Sets the lc_collate of this PostgresqlDatabaseForCreation. - 数据库排序集。默认en_US.UTF-8。注意,不同的排序规则下,相同的比较其结果可能是不同的。例如,在en_US.utf8下, select 'a'>'A';为false,但在'C'下,select 'a'>'A';为true; 如果从oracle迁移到PostgreSQL,使用'C'才能得到一致的预期。支持的排序规则,可以查询系统表 pg_collation。 + 数据库排序集。默认en_US.UTF-8。 - 须知: 不同的排序规则下,相同字符串的比较其结果可能是不同的。 例如,在en_US.utf8下, select 'a'>'A';执行结果为false,但在'C'下,select 'a'>'A';结果为true。如果数据库从“O”迁移到PostgreSQL,数据库排序集需使用'C'才能得到一致的预期。支持的排序规则可以查询系统表 pg_collation。 :param lc_collate: The lc_collate of this PostgresqlDatabaseForCreation. :type: str diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/database_for_list_schema.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_database_for_list_schema.py similarity index 78% rename from huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/database_for_list_schema.py rename to huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_database_for_list_schema.py index c363ef4c5..c3e291821 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/database_for_list_schema.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_database_for_list_schema.py @@ -9,7 +9,7 @@ import six -class DatabaseForListSchema: +class PostgresqlDatabaseForListSchema: """ @@ -33,7 +33,7 @@ class DatabaseForListSchema: } def __init__(self, schema_name=None, owner=None): - """DatabaseForListSchema - a model defined in huaweicloud sdk""" + """PostgresqlDatabaseForListSchema - a model defined in huaweicloud sdk""" @@ -46,44 +46,44 @@ class DatabaseForListSchema: @property def schema_name(self): - """Gets the schema_name of this DatabaseForListSchema. + """Gets the schema_name of this PostgresqlDatabaseForListSchema. schema名称。 - :return: The schema_name of this DatabaseForListSchema. + :return: The schema_name of this PostgresqlDatabaseForListSchema. :rtype: str """ return self._schema_name @schema_name.setter def schema_name(self, schema_name): - """Sets the schema_name of this DatabaseForListSchema. + """Sets the schema_name of this PostgresqlDatabaseForListSchema. schema名称。 - :param schema_name: The schema_name of this DatabaseForListSchema. + :param schema_name: The schema_name of this PostgresqlDatabaseForListSchema. :type: str """ self._schema_name = schema_name @property def owner(self): - """Gets the owner of this DatabaseForListSchema. + """Gets the owner of this PostgresqlDatabaseForListSchema. schema所属用户。 - :return: The owner of this DatabaseForListSchema. + :return: The owner of this PostgresqlDatabaseForListSchema. :rtype: str """ return self._owner @owner.setter def owner(self, owner): - """Sets the owner of this DatabaseForListSchema. + """Sets the owner of this PostgresqlDatabaseForListSchema. schema所属用户。 - :param owner: The owner of this DatabaseForListSchema. + :param owner: The owner of this PostgresqlDatabaseForListSchema. :type: str """ self._owner = owner @@ -125,7 +125,7 @@ class DatabaseForListSchema: def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, DatabaseForListSchema): + if not isinstance(other, PostgresqlDatabaseForListSchema): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/db_schema_req.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_database_schema_req.py similarity index 59% rename from huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/db_schema_req.py rename to huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_database_schema_req.py index ffa2f9603..d99cfb7c0 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/db_schema_req.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_database_schema_req.py @@ -9,7 +9,7 @@ import six -class DbSchemaReq: +class PostgresqlDatabaseSchemaReq: """ @@ -24,7 +24,7 @@ class DbSchemaReq: openapi_types = { 'db_name': 'str', - 'schemas': 'list[SchemaReq]' + 'schemas': 'list[PostgresqlCreateSchemaReq]' } attribute_map = { @@ -33,7 +33,7 @@ class DbSchemaReq: } def __init__(self, db_name=None, schemas=None): - """DbSchemaReq - a model defined in huaweicloud sdk""" + """PostgresqlDatabaseSchemaReq - a model defined in huaweicloud sdk""" @@ -42,48 +42,49 @@ class DbSchemaReq: self.discriminator = None self.db_name = db_name - if schemas is not None: - self.schemas = schemas + self.schemas = schemas @property def db_name(self): - """Gets the db_name of this DbSchemaReq. + """Gets the db_name of this PostgresqlDatabaseSchemaReq. - 数据库名称。 数据库名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和RDS for PostgreSQL模板库重名。 RDS for PostgreSQL模板库包括postgres, template0 ,template1。 + 数据库名称。 数据库名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和RDS for PostgreSQL模板库重名。 RDS for PostgreSQL模板库包括postgres, template0 ,template1。 - :return: The db_name of this DbSchemaReq. + :return: The db_name of this PostgresqlDatabaseSchemaReq. :rtype: str """ return self._db_name @db_name.setter def db_name(self, db_name): - """Sets the db_name of this DbSchemaReq. + """Sets the db_name of this PostgresqlDatabaseSchemaReq. - 数据库名称。 数据库名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和RDS for PostgreSQL模板库重名。 RDS for PostgreSQL模板库包括postgres, template0 ,template1。 + 数据库名称。 数据库名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和RDS for PostgreSQL模板库重名。 RDS for PostgreSQL模板库包括postgres, template0 ,template1。 - :param db_name: The db_name of this DbSchemaReq. + :param db_name: The db_name of this PostgresqlDatabaseSchemaReq. :type: str """ self._db_name = db_name @property def schemas(self): - """Gets the schemas of this DbSchemaReq. + """Gets the schemas of this PostgresqlDatabaseSchemaReq. + 每个元素都是与数据库相关联的schmea信息。单次请求最多支持20个元素。 - :return: The schemas of this DbSchemaReq. - :rtype: list[SchemaReq] + :return: The schemas of this PostgresqlDatabaseSchemaReq. + :rtype: list[PostgresqlCreateSchemaReq] """ return self._schemas @schemas.setter def schemas(self, schemas): - """Sets the schemas of this DbSchemaReq. + """Sets the schemas of this PostgresqlDatabaseSchemaReq. + 每个元素都是与数据库相关联的schmea信息。单次请求最多支持20个元素。 - :param schemas: The schemas of this DbSchemaReq. - :type: list[SchemaReq] + :param schemas: The schemas of this PostgresqlDatabaseSchemaReq. + :type: list[PostgresqlCreateSchemaReq] """ self._schemas = schemas @@ -124,7 +125,7 @@ class DbSchemaReq: def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, DbSchemaReq): + if not isinstance(other, PostgresqlDatabaseSchemaReq): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/pg_grant_request.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_grant_request.py similarity index 66% rename from huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/pg_grant_request.py rename to huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_grant_request.py index db8526f80..67a71dca0 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/pg_grant_request.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_grant_request.py @@ -9,7 +9,7 @@ import six -class PgGrantRequest: +class PostgresqlGrantRequest: """ @@ -24,7 +24,7 @@ class PgGrantRequest: openapi_types = { 'db_name': 'str', - 'users': 'list[PgUserWithPrivilege]' + 'users': 'list[PostgresqlUserWithPrivilege]' } attribute_map = { @@ -33,7 +33,7 @@ class PgGrantRequest: } def __init__(self, db_name=None, users=None): - """PgGrantRequest - a model defined in huaweicloud sdk""" + """PostgresqlGrantRequest - a model defined in huaweicloud sdk""" @@ -46,45 +46,45 @@ class PgGrantRequest: @property def db_name(self): - """Gets the db_name of this PgGrantRequest. + """Gets the db_name of this PostgresqlGrantRequest. - 数据库名称。 数据库名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和RDS for PostgreSQL模板库重名。 RDS for PostgreSQL模板库包括postgres, template0 ,template1。 + 数据库名称。 数据库名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和RDS for PostgreSQL模板库重名。 RDS for PostgreSQL模板库包括postgres, template0 ,template1。 - :return: The db_name of this PgGrantRequest. + :return: The db_name of this PostgresqlGrantRequest. :rtype: str """ return self._db_name @db_name.setter def db_name(self, db_name): - """Sets the db_name of this PgGrantRequest. + """Sets the db_name of this PostgresqlGrantRequest. - 数据库名称。 数据库名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和RDS for PostgreSQL模板库重名。 RDS for PostgreSQL模板库包括postgres, template0 ,template1。 + 数据库名称。 数据库名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和RDS for PostgreSQL模板库重名。 RDS for PostgreSQL模板库包括postgres, template0 ,template1。 - :param db_name: The db_name of this PgGrantRequest. + :param db_name: The db_name of this PostgresqlGrantRequest. :type: str """ self._db_name = db_name @property def users(self): - """Gets the users of this PgGrantRequest. + """Gets the users of this PostgresqlGrantRequest. 每个元素都是与数据库相关联的帐号。单次请求最多支持50个元素。 - :return: The users of this PgGrantRequest. - :rtype: list[PgUserWithPrivilege] + :return: The users of this PostgresqlGrantRequest. + :rtype: list[PostgresqlUserWithPrivilege] """ return self._users @users.setter def users(self, users): - """Sets the users of this PgGrantRequest. + """Sets the users of this PostgresqlGrantRequest. 每个元素都是与数据库相关联的帐号。单次请求最多支持50个元素。 - :param users: The users of this PgGrantRequest. - :type: list[PgUserWithPrivilege] + :param users: The users of this PostgresqlGrantRequest. + :type: list[PostgresqlUserWithPrivilege] """ self._users = users @@ -125,7 +125,7 @@ class PgGrantRequest: def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, PgGrantRequest): + if not isinstance(other, PostgresqlGrantRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/pg_list_database.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_list_database.py similarity index 75% rename from huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/pg_list_database.py rename to huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_list_database.py index bd1f7eb3f..85bd6b281 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/pg_list_database.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_list_database.py @@ -9,7 +9,7 @@ import six -class PgListDatabase: +class PostgresqlListDatabase: """ @@ -39,7 +39,7 @@ class PgListDatabase: } def __init__(self, name=None, owner=None, character_set=None, collate_set=None, size=None): - """PgListDatabase - a model defined in huaweicloud sdk""" + """PostgresqlListDatabase - a model defined in huaweicloud sdk""" @@ -63,110 +63,110 @@ class PgListDatabase: @property def name(self): - """Gets the name of this PgListDatabase. + """Gets the name of this PostgresqlListDatabase. 数据库名称。 - :return: The name of this PgListDatabase. + :return: The name of this PostgresqlListDatabase. :rtype: str """ return self._name @name.setter def name(self, name): - """Sets the name of this PgListDatabase. + """Sets the name of this PostgresqlListDatabase. 数据库名称。 - :param name: The name of this PgListDatabase. + :param name: The name of this PostgresqlListDatabase. :type: str """ self._name = name @property def owner(self): - """Gets the owner of this PgListDatabase. + """Gets the owner of this PostgresqlListDatabase. 数据库所属用户。 - :return: The owner of this PgListDatabase. + :return: The owner of this PostgresqlListDatabase. :rtype: str """ return self._owner @owner.setter def owner(self, owner): - """Sets the owner of this PgListDatabase. + """Sets the owner of this PostgresqlListDatabase. 数据库所属用户。 - :param owner: The owner of this PgListDatabase. + :param owner: The owner of this PostgresqlListDatabase. :type: str """ self._owner = owner @property def character_set(self): - """Gets the character_set of this PgListDatabase. + """Gets the character_set of this PostgresqlListDatabase. 数据库使用的字符集,例如UTF8。 - :return: The character_set of this PgListDatabase. + :return: The character_set of this PostgresqlListDatabase. :rtype: str """ return self._character_set @character_set.setter def character_set(self, character_set): - """Sets the character_set of this PgListDatabase. + """Sets the character_set of this PostgresqlListDatabase. 数据库使用的字符集,例如UTF8。 - :param character_set: The character_set of this PgListDatabase. + :param character_set: The character_set of this PostgresqlListDatabase. :type: str """ self._character_set = character_set @property def collate_set(self): - """Gets the collate_set of this PgListDatabase. + """Gets the collate_set of this PostgresqlListDatabase. 数据库排序集,例如en_US.UTF-8等。 - :return: The collate_set of this PgListDatabase. + :return: The collate_set of this PostgresqlListDatabase. :rtype: str """ return self._collate_set @collate_set.setter def collate_set(self, collate_set): - """Sets the collate_set of this PgListDatabase. + """Sets the collate_set of this PostgresqlListDatabase. 数据库排序集,例如en_US.UTF-8等。 - :param collate_set: The collate_set of this PgListDatabase. + :param collate_set: The collate_set of this PostgresqlListDatabase. :type: str """ self._collate_set = collate_set @property def size(self): - """Gets the size of this PgListDatabase. + """Gets the size of this PostgresqlListDatabase. 数据库大小(单位:字节)。 - :return: The size of this PgListDatabase. + :return: The size of this PostgresqlListDatabase. :rtype: int """ return self._size @size.setter def size(self, size): - """Sets the size of this PgListDatabase. + """Sets the size of this PostgresqlListDatabase. 数据库大小(单位:字节)。 - :param size: The size of this PgListDatabase. + :param size: The size of this PostgresqlListDatabase. :type: int """ self._size = size @@ -208,7 +208,7 @@ class PgListDatabase: def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, PgListDatabase): + if not isinstance(other, PostgresqlListDatabase): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_user_for_creation.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_user_for_creation.py index 2ec4c72c3..45021c145 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_user_for_creation.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_user_for_creation.py @@ -48,7 +48,7 @@ class PostgresqlUserForCreation: def name(self): """Gets the name of this PostgresqlUserForCreation. - 数据库用户名称。 数据库用户名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,不能和系统用户名称相同。 系统用户包括“rdsAdmin”,“ rdsMetric”, “rdsBackup”, “rdsRepl”,“ rdsProxy”, “rdsDdm”。 + 数据库用户名称。 数据库用户名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,不能和系统用户名称相同。 系统用户包括“rdsAdmin”,“ rdsMetric”, “rdsBackup”, “rdsRepl”,“ rdsProxy”, “rdsDdm”。 :return: The name of this PostgresqlUserForCreation. :rtype: str @@ -59,7 +59,7 @@ class PostgresqlUserForCreation: def name(self, name): """Sets the name of this PostgresqlUserForCreation. - 数据库用户名称。 数据库用户名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,不能和系统用户名称相同。 系统用户包括“rdsAdmin”,“ rdsMetric”, “rdsBackup”, “rdsRepl”,“ rdsProxy”, “rdsDdm”。 + 数据库用户名称。 数据库用户名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,不能和系统用户名称相同。 系统用户包括“rdsAdmin”,“ rdsMetric”, “rdsBackup”, “rdsRepl”,“ rdsProxy”, “rdsDdm”。 :param name: The name of this PostgresqlUserForCreation. :type: str @@ -70,7 +70,7 @@ class PostgresqlUserForCreation: def password(self): """Gets the password of this PostgresqlUserForCreation. - 数据库用户密码。 取值范围:非空,密码长度在8到32个字符之间,至少包含大写字母、小写字母、数字、特殊字符~!@#%^*-_=+?,三种字符的组合,不能和数据库帐号“name”或“name”的逆序相同。 建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。 + 数据库用户密码。 取值范围:非空,密码长度在8到32个字符之间,至少包含大写字母、小写字母、数字、特殊字符~!@#%^*-_=+?,三种字符的组合,不能和数据库帐号“name”或“name”的逆序相同。 建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。 :return: The password of this PostgresqlUserForCreation. :rtype: str @@ -81,7 +81,7 @@ class PostgresqlUserForCreation: def password(self, password): """Sets the password of this PostgresqlUserForCreation. - 数据库用户密码。 取值范围:非空,密码长度在8到32个字符之间,至少包含大写字母、小写字母、数字、特殊字符~!@#%^*-_=+?,三种字符的组合,不能和数据库帐号“name”或“name”的逆序相同。 建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。 + 数据库用户密码。 取值范围:非空,密码长度在8到32个字符之间,至少包含大写字母、小写字母、数字、特殊字符~!@#%^*-_=+?,三种字符的组合,不能和数据库帐号“name”或“name”的逆序相同。 建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。 :param password: The password of this PostgresqlUserForCreation. :type: str diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/pg_user_for_list.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_user_for_list.py similarity index 75% rename from huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/pg_user_for_list.py rename to huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_user_for_list.py index 1e91fc66f..6b3b06c78 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/pg_user_for_list.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_user_for_list.py @@ -9,7 +9,7 @@ import six -class PgUserForList: +class PostgresqlUserForList: """ @@ -35,7 +35,7 @@ class PgUserForList: } def __init__(self, name=None, attributes=None, memberof=None): - """PgUserForList - a model defined in huaweicloud sdk""" + """PostgresqlUserForList - a model defined in huaweicloud sdk""" @@ -52,66 +52,66 @@ class PgUserForList: @property def name(self): - """Gets the name of this PgUserForList. + """Gets the name of this PostgresqlUserForList. - 数据库用户名称。 + 帐号名。 - :return: The name of this PgUserForList. + :return: The name of this PostgresqlUserForList. :rtype: str """ return self._name @name.setter def name(self, name): - """Sets the name of this PgUserForList. + """Sets the name of this PostgresqlUserForList. - 数据库用户名称。 + 帐号名。 - :param name: The name of this PgUserForList. + :param name: The name of this PostgresqlUserForList. :type: str """ self._name = name @property def attributes(self): - """Gets the attributes of this PgUserForList. + """Gets the attributes of this PostgresqlUserForList. 用户的权限属性。 - :return: The attributes of this PgUserForList. + :return: The attributes of this PostgresqlUserForList. :rtype: object """ return self._attributes @attributes.setter def attributes(self, attributes): - """Sets the attributes of this PgUserForList. + """Sets the attributes of this PostgresqlUserForList. 用户的权限属性。 - :param attributes: The attributes of this PgUserForList. + :param attributes: The attributes of this PostgresqlUserForList. :type: object """ self._attributes = attributes @property def memberof(self): - """Gets the memberof of this PgUserForList. + """Gets the memberof of this PostgresqlUserForList. - 用户的权限属性。 + 用户的默认权限。 - :return: The memberof of this PgUserForList. + :return: The memberof of this PostgresqlUserForList. :rtype: list[str] """ return self._memberof @memberof.setter def memberof(self, memberof): - """Sets the memberof of this PgUserForList. + """Sets the memberof of this PostgresqlUserForList. - 用户的权限属性。 + 用户的默认权限。 - :param memberof: The memberof of this PgUserForList. + :param memberof: The memberof of this PostgresqlUserForList. :type: list[str] """ self._memberof = memberof @@ -153,7 +153,7 @@ class PgUserForList: def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, PgUserForList): + if not isinstance(other, PostgresqlUserForList): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/pg_user_with_privilege.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_user_with_privilege.py similarity index 54% rename from huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/pg_user_with_privilege.py rename to huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_user_with_privilege.py index c12448d1e..e5a6140fc 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/pg_user_with_privilege.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgresql_user_with_privilege.py @@ -9,7 +9,7 @@ import six -class PgUserWithPrivilege: +class PostgresqlUserWithPrivilege: """ @@ -35,7 +35,7 @@ class PgUserWithPrivilege: } def __init__(self, name=None, readonly=None, schema_name=None): - """PgUserWithPrivilege - a model defined in huaweicloud sdk""" + """PostgresqlUserWithPrivilege - a model defined in huaweicloud sdk""" @@ -50,66 +50,66 @@ class PgUserWithPrivilege: @property def name(self): - """Gets the name of this PgUserWithPrivilege. + """Gets the name of this PostgresqlUserWithPrivilege. - 数据库帐号名称。 数据库帐号名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,不能和系统用户名称相同且帐号名称必须存在。 系统用户包括“rdsAdmin”,“ rdsMetric”, “rdsBackup”, “rdsRepl”,“ rdsProxy”, “rdsDdm”。 + 数据库帐号名称。 数据库帐号名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,不能和系统用户名称相同且帐号名称必须存在。 系统用户包括“rdsAdmin”,“ rdsMetric”, “rdsBackup”, “rdsRepl”,“ rdsProxy”, “rdsDdm”。 - :return: The name of this PgUserWithPrivilege. + :return: The name of this PostgresqlUserWithPrivilege. :rtype: str """ return self._name @name.setter def name(self, name): - """Sets the name of this PgUserWithPrivilege. + """Sets the name of this PostgresqlUserWithPrivilege. - 数据库帐号名称。 数据库帐号名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,不能和系统用户名称相同且帐号名称必须存在。 系统用户包括“rdsAdmin”,“ rdsMetric”, “rdsBackup”, “rdsRepl”,“ rdsProxy”, “rdsDdm”。 + 数据库帐号名称。 数据库帐号名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,不能和系统用户名称相同且帐号名称必须存在。 系统用户包括“rdsAdmin”,“ rdsMetric”, “rdsBackup”, “rdsRepl”,“ rdsProxy”, “rdsDdm”。 - :param name: The name of this PgUserWithPrivilege. + :param name: The name of this PostgresqlUserWithPrivilege. :type: str """ self._name = name @property def readonly(self): - """Gets the readonly of this PgUserWithPrivilege. + """Gets the readonly of this PostgresqlUserWithPrivilege. - 数据库帐号权限。 - true:只读。 - false:可读可写。 + 数据库帐号权限。 - true:只读。 - false:可读可写。 - :return: The readonly of this PgUserWithPrivilege. + :return: The readonly of this PostgresqlUserWithPrivilege. :rtype: bool """ return self._readonly @readonly.setter def readonly(self, readonly): - """Sets the readonly of this PgUserWithPrivilege. + """Sets the readonly of this PostgresqlUserWithPrivilege. - 数据库帐号权限。 - true:只读。 - false:可读可写。 + 数据库帐号权限。 - true:只读。 - false:可读可写。 - :param readonly: The readonly of this PgUserWithPrivilege. + :param readonly: The readonly of this PostgresqlUserWithPrivilege. :type: bool """ self._readonly = readonly @property def schema_name(self): - """Gets the schema_name of this PgUserWithPrivilege. + """Gets the schema_name of this PostgresqlUserWithPrivilege. - schema名称。 schema名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,不能和RDS for PostgreSQL模板库重名,且schema名称必须存在。 RDS for PostgreSQL模板库包括postgres, template0 ,template1。 + schema名称。 schema名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,不能和RDS for PostgreSQL模板库重名,且schema名称必须存在。 RDS for PostgreSQL模板库包括postgres, template0 ,template1。 - :return: The schema_name of this PgUserWithPrivilege. + :return: The schema_name of this PostgresqlUserWithPrivilege. :rtype: str """ return self._schema_name @schema_name.setter def schema_name(self, schema_name): - """Sets the schema_name of this PgUserWithPrivilege. + """Sets the schema_name of this PostgresqlUserWithPrivilege. - schema名称。 schema名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,不能和RDS for PostgreSQL模板库重名,且schema名称必须存在。 RDS for PostgreSQL模板库包括postgres, template0 ,template1。 + schema名称。 schema名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,不能和RDS for PostgreSQL模板库重名,且schema名称必须存在。 RDS for PostgreSQL模板库包括postgres, template0 ,template1。 - :param schema_name: The schema_name of this PgUserWithPrivilege. + :param schema_name: The schema_name of this PostgresqlUserWithPrivilege. :type: str """ self._schema_name = schema_name @@ -151,7 +151,7 @@ class PgUserWithPrivilege: def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, PgUserWithPrivilege): + if not isinstance(other, PostgresqlUserWithPrivilege): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/show_off_site_backup_policy_response.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/show_off_site_backup_policy_response.py index 459e540da..2eacdb7ba 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/show_off_site_backup_policy_response.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/show_off_site_backup_policy_response.py @@ -23,7 +23,7 @@ class ShowOffSiteBackupPolicyResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'policy_para': 'OffSiteBackupPolicy' + 'policy_para': 'GetOffSiteBackupPolicy' } attribute_map = { @@ -47,7 +47,7 @@ class ShowOffSiteBackupPolicyResponse(SdkResponse): :return: The policy_para of this ShowOffSiteBackupPolicyResponse. - :rtype: OffSiteBackupPolicy + :rtype: GetOffSiteBackupPolicy """ return self._policy_para @@ -57,7 +57,7 @@ class ShowOffSiteBackupPolicyResponse(SdkResponse): :param policy_para: The policy_para of this ShowOffSiteBackupPolicyResponse. - :type: OffSiteBackupPolicy + :type: GetOffSiteBackupPolicy """ self._policy_para = policy_para diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/sqlserver_user_for_creation.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/sqlserver_user_for_creation.py index 92718d249..e344a063c 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/sqlserver_user_for_creation.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/sqlserver_user_for_creation.py @@ -48,7 +48,7 @@ class SqlserverUserForCreation: def name(self): """Gets the name of this SqlserverUserForCreation. - 数据库用户名称。 数据库帐号名称在1到128个字符之间,不能和系统用户名称相同。 系统用户包括:rdsadmin, rdsuser, rdsbackup, rdsmirror。 + 数据库用户名称。 数据库帐号名称在1到128个字符之间,不能和系统用户名称相同。 系统用户包括:rdsadmin, rdsuser, rdsbackup, rdsmirror。 :return: The name of this SqlserverUserForCreation. :rtype: str @@ -59,7 +59,7 @@ class SqlserverUserForCreation: def name(self, name): """Sets the name of this SqlserverUserForCreation. - 数据库用户名称。 数据库帐号名称在1到128个字符之间,不能和系统用户名称相同。 系统用户包括:rdsadmin, rdsuser, rdsbackup, rdsmirror。 + 数据库用户名称。 数据库帐号名称在1到128个字符之间,不能和系统用户名称相同。 系统用户包括:rdsadmin, rdsuser, rdsbackup, rdsmirror。 :param name: The name of this SqlserverUserForCreation. :type: str diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/update_rds_instance_alias_request.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/update_rds_instance_alias_request.py index db170fef4..0c0121e0e 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/update_rds_instance_alias_request.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/update_rds_instance_alias_request.py @@ -38,14 +38,13 @@ class UpdateRdsInstanceAliasRequest: self._alias = None self.discriminator = None - if alias is not None: - self.alias = alias + self.alias = alias @property def alias(self): """Gets the alias of this UpdateRdsInstanceAliasRequest. - 备注名称长度可在0~64个字符之间,由字母、数字、汉字,英文句号,下划线、中划线组成。 + 长度可在0~64个字符之间,由字母、数字、汉字、英文句号、下划线、中划线组成。 :return: The alias of this UpdateRdsInstanceAliasRequest. :rtype: str @@ -56,7 +55,7 @@ class UpdateRdsInstanceAliasRequest: def alias(self, alias): """Sets the alias of this UpdateRdsInstanceAliasRequest. - 备注名称长度可在0~64个字符之间,由字母、数字、汉字,英文句号,下划线、中划线组成。 + 长度可在0~64个字符之间,由字母、数字、汉字、英文句号、下划线、中划线组成。 :param alias: The alias of this UpdateRdsInstanceAliasRequest. :type: str diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_async_client.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_async_client.py index 9560bd94a..e668edf93 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_async_client.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_async_client.py @@ -2429,73 +2429,6 @@ class RdsAsyncClient(Client): request_type=request.__class__.__name__) - def reset_pwd_async(self, request): - """重置数据库密码 - - 重置数据库密码. - - :param ResetPwdRequest request - :return: ResetPwdResponse - """ - return self.reset_pwd_with_http_info(request) - - def reset_pwd_with_http_info(self, request): - """重置数据库密码 - - 重置数据库密码. - - :param ResetPwdRequest request - :return: ResetPwdResponse - """ - - all_params = ['instance_id', 'pwd_reset_request_body', 'x_language'] - 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 = {} - if 'x_language' in local_var_params: - header_params['X-Language'] = local_var_params['x_language'] - - 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='/v3/{project_id}/instances/{instance_id}/password', - method='POST', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - response_type='ResetPwdResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - def restore_tables_async(self, request): """表级时间点恢复 @@ -4220,6 +4153,73 @@ class RdsAsyncClient(Client): request_type=request.__class__.__name__) + def update_postgresql_instance_alias_async(self, request): + """修改实例备注信息 + + 修改指定数据库实例的备注信息。 + + :param UpdatePostgresqlInstanceAliasRequest request + :return: UpdatePostgresqlInstanceAliasResponse + """ + return self.update_postgresql_instance_alias_with_http_info(request) + + def update_postgresql_instance_alias_with_http_info(self, request): + """修改实例备注信息 + + 修改指定数据库实例的备注信息。 + + :param UpdatePostgresqlInstanceAliasRequest request + :return: UpdatePostgresqlInstanceAliasResponse + """ + + all_params = ['instance_id', 'update_rds_instance_alias_request', 'x_language'] + 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 = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + 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='/v3/{project_id}/instances/{instance_id}/alias', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdatePostgresqlInstanceAliasResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def allow_db_user_privilege_async(self, request): """授权数据库帐号 @@ -4835,6 +4835,73 @@ class RdsAsyncClient(Client): request_type=request.__class__.__name__) + def reset_pwd_async(self, request): + """重置数据库密码 + + 重置数据库密码. + + :param ResetPwdRequest request + :return: ResetPwdResponse + """ + return self.reset_pwd_with_http_info(request) + + def reset_pwd_with_http_info(self, request): + """重置数据库密码 + + 重置数据库密码. + + :param ResetPwdRequest request + :return: ResetPwdResponse + """ + + all_params = ['instance_id', 'pwd_reset_request_body', 'x_language'] + 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 = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + 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='/v3/{project_id}/instances/{instance_id}/password', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ResetPwdResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def revoke_async(self, request): """解除数据库帐号权限 @@ -4972,7 +5039,7 @@ class RdsAsyncClient(Client): def allow_db_privilege_async(self, request): """授权数据库帐号 - 授权数据库帐号。 + 在指定实例的数据库中, 设置帐号的权限。 :param AllowDbPrivilegeRequest request :return: AllowDbPrivilegeResponse @@ -4982,7 +5049,7 @@ class RdsAsyncClient(Client): def allow_db_privilege_with_http_info(self, request): """授权数据库帐号 - 授权数据库帐号。 + 在指定实例的数据库中, 设置帐号的权限。 :param AllowDbPrivilegeRequest request :return: AllowDbPrivilegeResponse @@ -5039,7 +5106,7 @@ class RdsAsyncClient(Client): def create_postgresql_database_async(self, request): """创建数据库 - 创建数据库。 + 在指定实例中创建数据库。 :param CreatePostgresqlDatabaseRequest request :return: CreatePostgresqlDatabaseResponse @@ -5049,7 +5116,7 @@ class RdsAsyncClient(Client): def create_postgresql_database_with_http_info(self, request): """创建数据库 - 创建数据库。 + 在指定实例中创建数据库。 :param CreatePostgresqlDatabaseRequest request :return: CreatePostgresqlDatabaseResponse @@ -5106,7 +5173,7 @@ class RdsAsyncClient(Client): def create_postgresql_database_schema_async(self, request): """创建数据库SCHEMA - 创建数据库SCHEMA。 + 在指定实例的数据库中, 创建数据库schema。 :param CreatePostgresqlDatabaseSchemaRequest request :return: CreatePostgresqlDatabaseSchemaResponse @@ -5116,7 +5183,7 @@ class RdsAsyncClient(Client): def create_postgresql_database_schema_with_http_info(self, request): """创建数据库SCHEMA - 创建数据库SCHEMA。 + 在指定实例的数据库中, 创建数据库schema。 :param CreatePostgresqlDatabaseSchemaRequest request :return: CreatePostgresqlDatabaseSchemaResponse @@ -5173,7 +5240,7 @@ class RdsAsyncClient(Client): def create_postgresql_db_user_async(self, request): """创建数据库用户 - 创建数据库用户。 + 在指定实例中创建数据库用户。 :param CreatePostgresqlDbUserRequest request :return: CreatePostgresqlDbUserResponse @@ -5183,7 +5250,7 @@ class RdsAsyncClient(Client): def create_postgresql_db_user_with_http_info(self, request): """创建数据库用户 - 创建数据库用户。 + 在指定实例中创建数据库用户。 :param CreatePostgresqlDbUserRequest request :return: CreatePostgresqlDbUserResponse @@ -5240,7 +5307,7 @@ class RdsAsyncClient(Client): def list_postgresql_database_schemas_async(self, request): """查询数据库SCHEMA列表 - 查询数据库SCHEMA列表。 + 查询指定实例的数据库SCHEMA列表。 :param ListPostgresqlDatabaseSchemasRequest request :return: ListPostgresqlDatabaseSchemasResponse @@ -5250,7 +5317,7 @@ class RdsAsyncClient(Client): def list_postgresql_database_schemas_with_http_info(self, request): """查询数据库SCHEMA列表 - 查询数据库SCHEMA列表。 + 查询指定实例的数据库SCHEMA列表。 :param ListPostgresqlDatabaseSchemasRequest request :return: ListPostgresqlDatabaseSchemasResponse @@ -5311,7 +5378,7 @@ class RdsAsyncClient(Client): def list_postgresql_databases_async(self, request): """查询数据库列表 - 查询数据库列表。 + 查询指定实例中的数据库列表。 :param ListPostgresqlDatabasesRequest request :return: ListPostgresqlDatabasesResponse @@ -5321,7 +5388,7 @@ class RdsAsyncClient(Client): def list_postgresql_databases_with_http_info(self, request): """查询数据库列表 - 查询数据库列表。 + 查询指定实例中的数据库列表。 :param ListPostgresqlDatabasesRequest request :return: ListPostgresqlDatabasesResponse @@ -5380,7 +5447,7 @@ class RdsAsyncClient(Client): def list_postgresql_db_user_paginated_async(self, request): """查询数据库用户列表 - 查询数据库用户列表。 + 在指定实例中查询数据库用户列表。 :param ListPostgresqlDbUserPaginatedRequest request :return: ListPostgresqlDbUserPaginatedResponse @@ -5390,7 +5457,7 @@ class RdsAsyncClient(Client): def list_postgresql_db_user_paginated_with_http_info(self, request): """查询数据库用户列表 - 查询数据库用户列表。 + 在指定实例中查询数据库用户列表。 :param ListPostgresqlDbUserPaginatedRequest request :return: ListPostgresqlDbUserPaginatedResponse @@ -5449,7 +5516,7 @@ class RdsAsyncClient(Client): def set_postgresql_db_user_pwd_async(self, request): """重置数据库帐号密码 - 重置数据库帐号密码。 + 重置指定数据库帐号的密码。 :param SetPostgresqlDbUserPwdRequest request :return: SetPostgresqlDbUserPwdResponse @@ -5459,7 +5526,7 @@ class RdsAsyncClient(Client): def set_postgresql_db_user_pwd_with_http_info(self, request): """重置数据库帐号密码 - 重置数据库帐号密码。 + 重置指定数据库帐号的密码。 :param SetPostgresqlDbUserPwdRequest request :return: SetPostgresqlDbUserPwdResponse @@ -5513,73 +5580,6 @@ class RdsAsyncClient(Client): request_type=request.__class__.__name__) - def update_postgresql_instance_alias_async(self, request): - """修改实例备注信息 - - 修改实例备注信息。 - - :param UpdatePostgresqlInstanceAliasRequest request - :return: UpdatePostgresqlInstanceAliasResponse - """ - return self.update_postgresql_instance_alias_with_http_info(request) - - def update_postgresql_instance_alias_with_http_info(self, request): - """修改实例备注信息 - - 修改实例备注信息。 - - :param UpdatePostgresqlInstanceAliasRequest request - :return: UpdatePostgresqlInstanceAliasResponse - """ - - all_params = ['instance_id', 'update_rds_instance_alias_request', 'x_language'] - 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 = {} - if 'x_language' in local_var_params: - header_params['X-Language'] = local_var_params['x_language'] - - 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='/v3/{project_id}/instances/{instance_id}/alias', - method='PUT', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - response_type='UpdatePostgresqlInstanceAliasResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - def allow_sqlserver_db_user_privilege_async(self, request): """授权数据库帐号 @@ -6005,7 +6005,7 @@ class RdsAsyncClient(Client): :return: ListSqlserverDatabasesResponse """ - all_params = ['instance_id', 'page', 'limit', 'x_language'] + all_params = ['instance_id', 'page', 'limit', 'x_language', 'db_name'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -6022,6 +6022,8 @@ class RdsAsyncClient(Client): query_params.append(('page', local_var_params['page'])) if 'limit' in local_var_params: query_params.append(('limit', local_var_params['limit'])) + if 'db_name' in local_var_params: + query_params.append(('db-name', local_var_params['db_name'])) header_params = {} if 'x_language' in local_var_params: diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_client.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_client.py index c6a110140..4d1ad556d 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_client.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_client.py @@ -2429,73 +2429,6 @@ class RdsClient(Client): request_type=request.__class__.__name__) - def reset_pwd(self, request): - """重置数据库密码 - - 重置数据库密码. - - :param ResetPwdRequest request - :return: ResetPwdResponse - """ - return self.reset_pwd_with_http_info(request) - - def reset_pwd_with_http_info(self, request): - """重置数据库密码 - - 重置数据库密码. - - :param ResetPwdRequest request - :return: ResetPwdResponse - """ - - all_params = ['instance_id', 'pwd_reset_request_body', 'x_language'] - 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 = {} - if 'x_language' in local_var_params: - header_params['X-Language'] = local_var_params['x_language'] - - 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='/v3/{project_id}/instances/{instance_id}/password', - method='POST', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - response_type='ResetPwdResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - def restore_tables(self, request): """表级时间点恢复 @@ -4220,6 +4153,73 @@ class RdsClient(Client): request_type=request.__class__.__name__) + def update_postgresql_instance_alias(self, request): + """修改实例备注信息 + + 修改指定数据库实例的备注信息。 + + :param UpdatePostgresqlInstanceAliasRequest request + :return: UpdatePostgresqlInstanceAliasResponse + """ + return self.update_postgresql_instance_alias_with_http_info(request) + + def update_postgresql_instance_alias_with_http_info(self, request): + """修改实例备注信息 + + 修改指定数据库实例的备注信息。 + + :param UpdatePostgresqlInstanceAliasRequest request + :return: UpdatePostgresqlInstanceAliasResponse + """ + + all_params = ['instance_id', 'update_rds_instance_alias_request', 'x_language'] + 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 = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + 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='/v3/{project_id}/instances/{instance_id}/alias', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdatePostgresqlInstanceAliasResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def allow_db_user_privilege(self, request): """授权数据库帐号 @@ -4835,6 +4835,73 @@ class RdsClient(Client): request_type=request.__class__.__name__) + def reset_pwd(self, request): + """重置数据库密码 + + 重置数据库密码. + + :param ResetPwdRequest request + :return: ResetPwdResponse + """ + return self.reset_pwd_with_http_info(request) + + def reset_pwd_with_http_info(self, request): + """重置数据库密码 + + 重置数据库密码. + + :param ResetPwdRequest request + :return: ResetPwdResponse + """ + + all_params = ['instance_id', 'pwd_reset_request_body', 'x_language'] + 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 = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + 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='/v3/{project_id}/instances/{instance_id}/password', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ResetPwdResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def revoke(self, request): """解除数据库帐号权限 @@ -4972,7 +5039,7 @@ class RdsClient(Client): def allow_db_privilege(self, request): """授权数据库帐号 - 授权数据库帐号。 + 在指定实例的数据库中, 设置帐号的权限。 :param AllowDbPrivilegeRequest request :return: AllowDbPrivilegeResponse @@ -4982,7 +5049,7 @@ class RdsClient(Client): def allow_db_privilege_with_http_info(self, request): """授权数据库帐号 - 授权数据库帐号。 + 在指定实例的数据库中, 设置帐号的权限。 :param AllowDbPrivilegeRequest request :return: AllowDbPrivilegeResponse @@ -5039,7 +5106,7 @@ class RdsClient(Client): def create_postgresql_database(self, request): """创建数据库 - 创建数据库。 + 在指定实例中创建数据库。 :param CreatePostgresqlDatabaseRequest request :return: CreatePostgresqlDatabaseResponse @@ -5049,7 +5116,7 @@ class RdsClient(Client): def create_postgresql_database_with_http_info(self, request): """创建数据库 - 创建数据库。 + 在指定实例中创建数据库。 :param CreatePostgresqlDatabaseRequest request :return: CreatePostgresqlDatabaseResponse @@ -5106,7 +5173,7 @@ class RdsClient(Client): def create_postgresql_database_schema(self, request): """创建数据库SCHEMA - 创建数据库SCHEMA。 + 在指定实例的数据库中, 创建数据库schema。 :param CreatePostgresqlDatabaseSchemaRequest request :return: CreatePostgresqlDatabaseSchemaResponse @@ -5116,7 +5183,7 @@ class RdsClient(Client): def create_postgresql_database_schema_with_http_info(self, request): """创建数据库SCHEMA - 创建数据库SCHEMA。 + 在指定实例的数据库中, 创建数据库schema。 :param CreatePostgresqlDatabaseSchemaRequest request :return: CreatePostgresqlDatabaseSchemaResponse @@ -5173,7 +5240,7 @@ class RdsClient(Client): def create_postgresql_db_user(self, request): """创建数据库用户 - 创建数据库用户。 + 在指定实例中创建数据库用户。 :param CreatePostgresqlDbUserRequest request :return: CreatePostgresqlDbUserResponse @@ -5183,7 +5250,7 @@ class RdsClient(Client): def create_postgresql_db_user_with_http_info(self, request): """创建数据库用户 - 创建数据库用户。 + 在指定实例中创建数据库用户。 :param CreatePostgresqlDbUserRequest request :return: CreatePostgresqlDbUserResponse @@ -5240,7 +5307,7 @@ class RdsClient(Client): def list_postgresql_database_schemas(self, request): """查询数据库SCHEMA列表 - 查询数据库SCHEMA列表。 + 查询指定实例的数据库SCHEMA列表。 :param ListPostgresqlDatabaseSchemasRequest request :return: ListPostgresqlDatabaseSchemasResponse @@ -5250,7 +5317,7 @@ class RdsClient(Client): def list_postgresql_database_schemas_with_http_info(self, request): """查询数据库SCHEMA列表 - 查询数据库SCHEMA列表。 + 查询指定实例的数据库SCHEMA列表。 :param ListPostgresqlDatabaseSchemasRequest request :return: ListPostgresqlDatabaseSchemasResponse @@ -5311,7 +5378,7 @@ class RdsClient(Client): def list_postgresql_databases(self, request): """查询数据库列表 - 查询数据库列表。 + 查询指定实例中的数据库列表。 :param ListPostgresqlDatabasesRequest request :return: ListPostgresqlDatabasesResponse @@ -5321,7 +5388,7 @@ class RdsClient(Client): def list_postgresql_databases_with_http_info(self, request): """查询数据库列表 - 查询数据库列表。 + 查询指定实例中的数据库列表。 :param ListPostgresqlDatabasesRequest request :return: ListPostgresqlDatabasesResponse @@ -5380,7 +5447,7 @@ class RdsClient(Client): def list_postgresql_db_user_paginated(self, request): """查询数据库用户列表 - 查询数据库用户列表。 + 在指定实例中查询数据库用户列表。 :param ListPostgresqlDbUserPaginatedRequest request :return: ListPostgresqlDbUserPaginatedResponse @@ -5390,7 +5457,7 @@ class RdsClient(Client): def list_postgresql_db_user_paginated_with_http_info(self, request): """查询数据库用户列表 - 查询数据库用户列表。 + 在指定实例中查询数据库用户列表。 :param ListPostgresqlDbUserPaginatedRequest request :return: ListPostgresqlDbUserPaginatedResponse @@ -5449,7 +5516,7 @@ class RdsClient(Client): def set_postgresql_db_user_pwd(self, request): """重置数据库帐号密码 - 重置数据库帐号密码。 + 重置指定数据库帐号的密码。 :param SetPostgresqlDbUserPwdRequest request :return: SetPostgresqlDbUserPwdResponse @@ -5459,7 +5526,7 @@ class RdsClient(Client): def set_postgresql_db_user_pwd_with_http_info(self, request): """重置数据库帐号密码 - 重置数据库帐号密码。 + 重置指定数据库帐号的密码。 :param SetPostgresqlDbUserPwdRequest request :return: SetPostgresqlDbUserPwdResponse @@ -5513,73 +5580,6 @@ class RdsClient(Client): request_type=request.__class__.__name__) - def update_postgresql_instance_alias(self, request): - """修改实例备注信息 - - 修改实例备注信息。 - - :param UpdatePostgresqlInstanceAliasRequest request - :return: UpdatePostgresqlInstanceAliasResponse - """ - return self.update_postgresql_instance_alias_with_http_info(request) - - def update_postgresql_instance_alias_with_http_info(self, request): - """修改实例备注信息 - - 修改实例备注信息。 - - :param UpdatePostgresqlInstanceAliasRequest request - :return: UpdatePostgresqlInstanceAliasResponse - """ - - all_params = ['instance_id', 'update_rds_instance_alias_request', 'x_language'] - 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 = {} - if 'x_language' in local_var_params: - header_params['X-Language'] = local_var_params['x_language'] - - 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='/v3/{project_id}/instances/{instance_id}/alias', - method='PUT', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - response_type='UpdatePostgresqlInstanceAliasResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - def allow_sqlserver_db_user_privilege(self, request): """授权数据库帐号 @@ -6005,7 +6005,7 @@ class RdsClient(Client): :return: ListSqlserverDatabasesResponse """ - all_params = ['instance_id', 'page', 'limit', 'x_language'] + all_params = ['instance_id', 'page', 'limit', 'x_language', 'db_name'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -6022,6 +6022,8 @@ class RdsClient(Client): query_params.append(('page', local_var_params['page'])) if 'limit' in local_var_params: query_params.append(('limit', local_var_params['limit'])) + if 'db_name' in local_var_params: + query_params.append(('db-name', local_var_params['db_name'])) header_params = {} if 'x_language' in local_var_params: diff --git a/huaweicloud-sdk-rds/setup.py b/huaweicloud-sdk-rds/setup.py index 7ed233da5..c9664f76b 100644 --- a/huaweicloud-sdk-rds/setup.py +++ b/huaweicloud-sdk-rds/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkrds" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-rms/setup.py b/huaweicloud-sdk-rms/setup.py index ac99928c6..a78124e3d 100644 --- a/huaweicloud-sdk-rms/setup.py +++ b/huaweicloud-sdk-rms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkrms" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-servicestage/setup.py b/huaweicloud-sdk-servicestage/setup.py index 4a8018208..3bcf50a00 100644 --- a/huaweicloud-sdk-servicestage/setup.py +++ b/huaweicloud-sdk-servicestage/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkservicestage" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-smn/setup.py b/huaweicloud-sdk-smn/setup.py index 0d4369241..082d74ce8 100644 --- a/huaweicloud-sdk-smn/setup.py +++ b/huaweicloud-sdk-smn/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksmn" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-swr/setup.py b/huaweicloud-sdk-swr/setup.py index 9a5a65f8b..6c4aace4d 100644 --- a/huaweicloud-sdk-swr/setup.py +++ b/huaweicloud-sdk-swr/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkswr" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-tms/setup.py b/huaweicloud-sdk-tms/setup.py index 22ce066b8..f005e12ac 100644 --- a/huaweicloud-sdk-tms/setup.py +++ b/huaweicloud-sdk-tms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdktms" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-vpc/setup.py b/huaweicloud-sdk-vpc/setup.py index f4cbef6d6..07d9ae8fb 100644 --- a/huaweicloud-sdk-vpc/setup.py +++ b/huaweicloud-sdk-vpc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkvpc" -VERSION = "3.0.40-rc" +VERSION = "3.0.41-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3"