diff --git a/CHANGELOG.md b/CHANGELOG.md index b7b87a3f88..daf2dd5e1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,384 @@ +# 3.1.128 2024-12-19 + +### HuaweiCloud SDK AAD + +- _API Version_ + - V2 +- _Features_ + - Support the APIs `AddWafWhiteIpRule`, `DeleteWafWhiteIpRule` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK AS + +- _API Version_ + - V1 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListScalingActivityLogs** + - changes of response param + - `+ scaling_activity_log.status: enum value [DOING]` + - `- scaling_activity_log.status: enum value [DING]` + - **ListScalingActivityV2Logs** + - changes of response param + - `+ scaling_activity_log.status: enum value [DOING]` + - `- scaling_activity_log.status: enum value [DING]` + +### HuaweiCloud SDK CAE + +- _API Version_ + - V1 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListComponentSnapshots** + - changes of response param + - `+ items.context.runtime: enum value [Java21]` + - **ShowComponent** + - changes of response param + - `+ spec.runtime: enum value [Java21]` + - **UpdateComponent** + - changes of request param + - `+ spec.runtime: enum value [Java21]` + - **CreateComponent** + - changes of request param + - `+ spec.runtime: enum value [Java21]` + - changes of response param + - `+ spec.runtime: enum value [Java21]` + - **ListComponents** + - changes of response param + - `+ items.spec.runtime: enum value [Java21]` + - **CreateComponentWithConfiguration** + - changes of request param + - `+ spec.runtime: enum value [Java21]` + - changes of response param + - `+ spec.runtime: enum value [Java21]` + +### HuaweiCloud SDK CCE + +- _API Version_ + - V3 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowAddonInstance** + - changes of response param + - `+ status.currentVersion.supportVersions.category` + - **UpdateAddonInstance** + - changes of response param + - `+ status.currentVersion.supportVersions.category` + - **RollbackAddonInstance** + - changes of response param + - `+ status.currentVersion.supportVersions.category` + - **ShowAutopilotAddonInstance** + - changes of response param + - `+ status.currentVersion.supportVersions.category` + - **UpdateAutopilotAddonInstance** + - changes of response param + - `+ status.currentVersion.supportVersions.category` + - **RollbackAutopilotAddonInstance** + - changes of response param + - `+ status.currentVersion.supportVersions.category` + - **CreateAddonInstance** + - changes of response param + - `+ status.currentVersion.supportVersions.category` + - **ListAddonInstances** + - changes of response param + - `+ items.status.currentVersion.supportVersions.category` + - **ListAddonTemplates** + - changes of response param + - `+ items.spec.versions.supportVersions.category` + - **CreateAutopilotAddonInstance** + - changes of response param + - `+ status.currentVersion.supportVersions.category` + - **ListAutopilotAddonInstances** + - changes of response param + - `+ items.status.currentVersion.supportVersions.category` + - **ListAutopilotAddonTemplates** + - changes of response param + - `+ items.spec.versions.supportVersions.category` + +### HuaweiCloud SDK CodeArtsPipeline + +- _API Version_ + - V2 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowPipelineRunDetail** + - changes of response param + - `* stages.jobs.async: string -> boolean` + +### HuaweiCloud SDK DataArtsStudio + +- _API Version_ + - V1 +- _Features_ + - Support the API `RetryFactoryJobInstance` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK DC + +- _API Version_ + - V3 +- _Features_ + - Support the APIs `ListDirectConnectLocations`, `ShowDirectConnectLocation` +- _Bug Fix_ + - None +- _Change_ + - Remove the APIs `ListRmsGlobalDcGateway`, `ShowRmsGlobalDcGateway` + - **ListGlobalDcGateways** + - changes of request param + - `+ status` + - `- hosting_id` + - **ShowGlobalDcGateway** + - changes of request param + - `+ limit` + - `+ enterprise_project_id` + - **UpdateVifPeer** + - changes of response param + - `- request_id` + - **CreateVifPeer** + - changes of response param + - `- request_id` + - **ListGdgwRouteTables** + - changes of request param + - `- fields` + - `- ext_fields` + - **ListGlobalEips** + - changes of response param + - `+ global_eips.status: enum value [ACTIVE,ERROR]` + - `+ global_eips.type: enum value [IP_ADDRESS,IP_SEGMENT]` + - **BindGlobalEips** + - changes of response param + - `+ global_eips.status: enum value [ACTIVE,ERROR]` + - `+ global_eips.type: enum value [IP_ADDRESS,IP_SEGMENT]` + - **UnbindGlobalEips** + - changes of response param + - `+ global_eips.status: enum value [ACTIVE,ERROR]` + - `+ global_eips.type: enum value [IP_ADDRESS,IP_SEGMENT]` + - **ShowDirectConnect** + - changes of response param + - `+ direct_connect.status: enum value [LEASED_LINE_DELIVERY]` + - **UpdateDirectConnect** + - changes of request param + - `+ direct_connect.status: enum value [APPLY]` + - changes of response param + - `+ direct_connect.status: enum value [LEASED_LINE_DELIVERY]` + - **ListDirectConnects** + - changes of response param + - `+ direct_connects.status: enum value [LEASED_LINE_DELIVERY]` + - **ListHostedDirectConnects** + - changes of response param + - `* hosted_connects.apply_time: string -> date-time` + - `* hosted_connects.create_time: string -> date-time` + - **CreateHostedDirectConnect** + - changes of response param + - `* hosted_connect.apply_time: string -> date-time` + - `* hosted_connect.create_time: string -> date-time` + - **ShowHostedDirectConnect** + - changes of response param + - `* hosted_connect.apply_time: string -> date-time` + - `* hosted_connect.create_time: string -> date-time` + - **UpdateHostedDirectConnect** + - changes of response param + - `* hosted_connect.apply_time: string -> date-time` + - `* hosted_connect.create_time: string -> date-time` + - **ShowVirtualGateway** + - changes of response param + - `+ virtual_gateway.enterprise_router_id` + - **UpdateVirtualGateway** + - changes of response param + - `+ virtual_gateway.enterprise_router_id` + - **ListVirtualGateways** + - changes of response param + - `+ virtual_gateways.enterprise_router_id` + - **CreateVirtualGateway** + - changes of request param + - `+ virtual_gateway.enterprise_router_id` + - changes of response param + - `+ virtual_gateway.enterprise_router_id` + - **ShowVirtualInterface** + - changes of response param + - `+ virtual_interface.update_time` + - **UpdateVirtualInterface** + - changes of response param + - `+ virtual_interface.update_time` + - **ListVirtualInterfaces** + - changes of response param + - `+ virtual_interfaces.update_time` + - **CreateVirtualInterface** + - changes of request param + - `- virtual_interface.service_type: enum value [vpc]` + - changes of response param + - `+ virtual_interface.update_time` + +### HuaweiCloud SDK DCS + +- _API Version_ + - V2 +- _Features_ + - Support the following APIs: + - `ShowBandwidths` + - `UpdateBandwidth` + - `ShowInstanceBandwidthAutoScalingPolicy` + - `UpdateInstanceBandwidthAutoScalingPolicy` + - `DeleteInstanceBandwidthAutoScalingPolicy` + - `UpdatePublicIp` + - `DeletePublicIp` + - `ChangeNodesStartStopStatus` + - `ShowInstanceVersion` + - `UpgradeInstanceMinorVersion` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK DWS + +- _API Version_ + - V2 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ResizeCluster** + - changes of request param + - `+ scale_out.subnet_id` + - **CreateSnapshotPolicy** + - changes of request param + - `* backup_strategies: object -> list` + - `* body: object -> object` + - **ResizeClusterWithExistedNodes** + - changes of request param + - `+ scale_out.subnet_id` + +### HuaweiCloud SDK EVS + +- _API Version_ + - V2 +- _Features_ + - Support the API `UnsubscribePostpaidVolume` +- _Bug Fix_ + - None +- _Change_ + - **CinderListQuotas** + - changes of response param + - `+ quota_set.gigabytes_ESSD` + - `+ quota_set.snapshots_ESSD` + - `+ quota_set.volumes_ESSD` + +### HuaweiCloud SDK GaussDBforopenGauss + +- _API Version_ + - V3 +- _Features_ + - Support the following APIs: + - `ListRestorableInstancesDetails` + - `ListRecycleInstancesDetails` + - `ShowParameterGroupDetail` + - `ShowSourceInstanceDetail` + - `AllowDbRolePrivileges` + - `ListDatabaseRoles` + - `CreateDbRole` + - `ListDatastoresDetails` + - `ListDatabaseInstances` + - `ListParameterGroupTemplates` + - `ShowInstanceParamGroupDetail` + - `ShowUpgradeCandidateVersionsDetails` + - `BatchShowUpgradeCandidateVersions` + - `ListFlavorsDetails` + - `ListBackupsDetails` + - `SyncLimitData` + - `DeleteDatabaseSchema` + - `CreateDatabaseInstance` +- _Bug Fix_ + - None +- _Change_ + - **ShowUpgradeCandidateVersions** + - changes of response param + - `* hotfix_upgrade_infos: object -> list` + - `* hotfix_rollback_infos: object -> list` + +### HuaweiCloud SDK IMS + +- _API Version_ + - V2 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ImportImageQuick** + - changes of request param + - `+ license_type` + +### HuaweiCloud SDK IoTEdge + +- _API Version_ + - V2 +- _Features_ + - Support the API `ListPropertyActiveControls` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK OCR + +- _API Version_ + - V1 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **RecognizeAutoClassification** + - changes of request param + - `+ pdf_page_number` + - **RecognizeSmartDocumentRecognizer** + - changes of request param + - `+ erase_seal` + +### HuaweiCloud SDK RDS + +- _API Version_ + - V3 +- _Features_ + - Support the API `ListUpdateBackupEnhancePolicy` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK SCM + +- _API Version_ + - V3 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListCertificates** + - changes of request param + - `+ owned_by_self` + # 3.1.127 2024-12-12 ### HuaweiCloud SDK AOS diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 5a68948e88..3decc64a64 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,384 @@ +# 3.1.128 2024-12-19 + +### HuaweiCloud SDK AAD + +- _接口版本_ + - V2 +- _新增特性_ + - 支持接口`AddWafWhiteIpRule`、`DeleteWafWhiteIpRule` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK AS + +- _接口版本_ + - V1 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListScalingActivityLogs** + - 响应参数变更 + - `+ scaling_activity_log.status: enum value [DOING]` + - `- scaling_activity_log.status: enum value [DING]` + - **ListScalingActivityV2Logs** + - 响应参数变更 + - `+ scaling_activity_log.status: enum value [DOING]` + - `- scaling_activity_log.status: enum value [DING]` + +### HuaweiCloud SDK CAE + +- _接口版本_ + - V1 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListComponentSnapshots** + - 响应参数变更 + - `+ items.context.runtime: enum value [Java21]` + - **ShowComponent** + - 响应参数变更 + - `+ spec.runtime: enum value [Java21]` + - **UpdateComponent** + - 请求参数变更 + - `+ spec.runtime: enum value [Java21]` + - **CreateComponent** + - 请求参数变更 + - `+ spec.runtime: enum value [Java21]` + - 响应参数变更 + - `+ spec.runtime: enum value [Java21]` + - **ListComponents** + - 响应参数变更 + - `+ items.spec.runtime: enum value [Java21]` + - **CreateComponentWithConfiguration** + - 请求参数变更 + - `+ spec.runtime: enum value [Java21]` + - 响应参数变更 + - `+ spec.runtime: enum value [Java21]` + +### HuaweiCloud SDK CCE + +- _接口版本_ + - V3 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowAddonInstance** + - 响应参数变更 + - `+ status.currentVersion.supportVersions.category` + - **UpdateAddonInstance** + - 响应参数变更 + - `+ status.currentVersion.supportVersions.category` + - **RollbackAddonInstance** + - 响应参数变更 + - `+ status.currentVersion.supportVersions.category` + - **ShowAutopilotAddonInstance** + - 响应参数变更 + - `+ status.currentVersion.supportVersions.category` + - **UpdateAutopilotAddonInstance** + - 响应参数变更 + - `+ status.currentVersion.supportVersions.category` + - **RollbackAutopilotAddonInstance** + - 响应参数变更 + - `+ status.currentVersion.supportVersions.category` + - **CreateAddonInstance** + - 响应参数变更 + - `+ status.currentVersion.supportVersions.category` + - **ListAddonInstances** + - 响应参数变更 + - `+ items.status.currentVersion.supportVersions.category` + - **ListAddonTemplates** + - 响应参数变更 + - `+ items.spec.versions.supportVersions.category` + - **CreateAutopilotAddonInstance** + - 响应参数变更 + - `+ status.currentVersion.supportVersions.category` + - **ListAutopilotAddonInstances** + - 响应参数变更 + - `+ items.status.currentVersion.supportVersions.category` + - **ListAutopilotAddonTemplates** + - 响应参数变更 + - `+ items.spec.versions.supportVersions.category` + +### HuaweiCloud SDK CodeArtsPipeline + +- _接口版本_ + - V2 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowPipelineRunDetail** + - 响应参数变更 + - `* stages.jobs.async: string -> boolean` + +### HuaweiCloud SDK DataArtsStudio + +- _接口版本_ + - V1 +- _新增特性_ + - 支持接口`RetryFactoryJobInstance` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK DC + +- _接口版本_ + - V3 +- _新增特性_ + - 支持接口`ListDirectConnectLocations`、`ShowDirectConnectLocation` +- _解决问题_ + - 无 +- _特性变更_ + - 移除接口`ListRmsGlobalDcGateway`、`ShowRmsGlobalDcGateway` + - **ListGlobalDcGateways** + - 请求参数变更 + - `+ status` + - `- hosting_id` + - **ShowGlobalDcGateway** + - 请求参数变更 + - `+ limit` + - `+ enterprise_project_id` + - **UpdateVifPeer** + - 响应参数变更 + - `- request_id` + - **CreateVifPeer** + - 响应参数变更 + - `- request_id` + - **ListGdgwRouteTables** + - 请求参数变更 + - `- fields` + - `- ext_fields` + - **ListGlobalEips** + - 响应参数变更 + - `+ global_eips.status: enum value [ACTIVE,ERROR]` + - `+ global_eips.type: enum value [IP_ADDRESS,IP_SEGMENT]` + - **BindGlobalEips** + - 响应参数变更 + - `+ global_eips.status: enum value [ACTIVE,ERROR]` + - `+ global_eips.type: enum value [IP_ADDRESS,IP_SEGMENT]` + - **UnbindGlobalEips** + - 响应参数变更 + - `+ global_eips.status: enum value [ACTIVE,ERROR]` + - `+ global_eips.type: enum value [IP_ADDRESS,IP_SEGMENT]` + - **ShowDirectConnect** + - 响应参数变更 + - `+ direct_connect.status: enum value [LEASED_LINE_DELIVERY]` + - **UpdateDirectConnect** + - 请求参数变更 + - `+ direct_connect.status: enum value [APPLY]` + - 响应参数变更 + - `+ direct_connect.status: enum value [LEASED_LINE_DELIVERY]` + - **ListDirectConnects** + - 响应参数变更 + - `+ direct_connects.status: enum value [LEASED_LINE_DELIVERY]` + - **ListHostedDirectConnects** + - 响应参数变更 + - `* hosted_connects.apply_time: string -> date-time` + - `* hosted_connects.create_time: string -> date-time` + - **CreateHostedDirectConnect** + - 响应参数变更 + - `* hosted_connect.apply_time: string -> date-time` + - `* hosted_connect.create_time: string -> date-time` + - **ShowHostedDirectConnect** + - 响应参数变更 + - `* hosted_connect.apply_time: string -> date-time` + - `* hosted_connect.create_time: string -> date-time` + - **UpdateHostedDirectConnect** + - 响应参数变更 + - `* hosted_connect.apply_time: string -> date-time` + - `* hosted_connect.create_time: string -> date-time` + - **ShowVirtualGateway** + - 响应参数变更 + - `+ virtual_gateway.enterprise_router_id` + - **UpdateVirtualGateway** + - 响应参数变更 + - `+ virtual_gateway.enterprise_router_id` + - **ListVirtualGateways** + - 响应参数变更 + - `+ virtual_gateways.enterprise_router_id` + - **CreateVirtualGateway** + - 请求参数变更 + - `+ virtual_gateway.enterprise_router_id` + - 响应参数变更 + - `+ virtual_gateway.enterprise_router_id` + - **ShowVirtualInterface** + - 响应参数变更 + - `+ virtual_interface.update_time` + - **UpdateVirtualInterface** + - 响应参数变更 + - `+ virtual_interface.update_time` + - **ListVirtualInterfaces** + - 响应参数变更 + - `+ virtual_interfaces.update_time` + - **CreateVirtualInterface** + - 请求参数变更 + - `- virtual_interface.service_type: enum value [vpc]` + - 响应参数变更 + - `+ virtual_interface.update_time` + +### HuaweiCloud SDK DCS + +- _接口版本_ + - V2 +- _新增特性_ + - 支持以下接口: + - `ShowBandwidths` + - `UpdateBandwidth` + - `ShowInstanceBandwidthAutoScalingPolicy` + - `UpdateInstanceBandwidthAutoScalingPolicy` + - `DeleteInstanceBandwidthAutoScalingPolicy` + - `UpdatePublicIp` + - `DeletePublicIp` + - `ChangeNodesStartStopStatus` + - `ShowInstanceVersion` + - `UpgradeInstanceMinorVersion` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK DWS + +- _接口版本_ + - V2 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ResizeCluster** + - 请求参数变更 + - `+ scale_out.subnet_id` + - **CreateSnapshotPolicy** + - 请求参数变更 + - `* backup_strategies: object -> list` + - `* body: object -> object` + - **ResizeClusterWithExistedNodes** + - 请求参数变更 + - `+ scale_out.subnet_id` + +### HuaweiCloud SDK EVS + +- _接口版本_ + - V2 +- _新增特性_ + - 支持接口`UnsubscribePostpaidVolume` +- _解决问题_ + - 无 +- _特性变更_ + - **CinderListQuotas** + - 响应参数变更 + - `+ quota_set.gigabytes_ESSD` + - `+ quota_set.snapshots_ESSD` + - `+ quota_set.volumes_ESSD` + +### HuaweiCloud SDK GaussDBforopenGauss + +- _接口版本_ + - V3 +- _新增特性_ + - 支持以下接口: + - `ListRestorableInstancesDetails` + - `ListRecycleInstancesDetails` + - `ShowParameterGroupDetail` + - `ShowSourceInstanceDetail` + - `AllowDbRolePrivileges` + - `ListDatabaseRoles` + - `CreateDbRole` + - `ListDatastoresDetails` + - `ListDatabaseInstances` + - `ListParameterGroupTemplates` + - `ShowInstanceParamGroupDetail` + - `ShowUpgradeCandidateVersionsDetails` + - `BatchShowUpgradeCandidateVersions` + - `ListFlavorsDetails` + - `ListBackupsDetails` + - `SyncLimitData` + - `DeleteDatabaseSchema` + - `CreateDatabaseInstance` +- _解决问题_ + - 无 +- _特性变更_ + - **ShowUpgradeCandidateVersions** + - 响应参数变更 + - `* hotfix_upgrade_infos: object -> list` + - `* hotfix_rollback_infos: object -> list` + +### HuaweiCloud SDK IMS + +- _接口版本_ + - V2 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ImportImageQuick** + - 请求参数变更 + - `+ license_type` + +### HuaweiCloud SDK IoTEdge + +- _接口版本_ + - V2 +- _新增特性_ + - 支持接口`ListPropertyActiveControls` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK OCR + +- _接口版本_ + - V1 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **RecognizeAutoClassification** + - 请求参数变更 + - `+ pdf_page_number` + - **RecognizeSmartDocumentRecognizer** + - 请求参数变更 + - `+ erase_seal` + +### HuaweiCloud SDK RDS + +- _接口版本_ + - V3 +- _新增特性_ + - 支持接口`ListUpdateBackupEnhancePolicy` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK SCM + +- _接口版本_ + - V3 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListCertificates** + - 请求参数变更 + - `+ owned_by_self` + # 3.1.127 2024-12-12 ### HuaweiCloud SDK AOS diff --git a/VERSION b/VERSION index 635a37622a..4888ce34bc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.127 +3.1.128 diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/__init__.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/__init__.py index 707168dc28..573af06937 100644 --- a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/__init__.py +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/__init__.py @@ -6,6 +6,9 @@ from huaweicloudsdkaad.v2.aad_async_client import AadAsyncClient from huaweicloudsdkaad.v2.model.action_info import ActionInfo +from huaweicloudsdkaad.v2.model.add_waf_white_ip_rule_request import AddWafWhiteIpRuleRequest +from huaweicloudsdkaad.v2.model.add_waf_white_ip_rule_response import AddWafWhiteIpRuleResponse +from huaweicloudsdkaad.v2.model.add_waf_white_ip_rule_v2_request_body import AddWafWhiteIpRuleV2RequestBody from huaweicloudsdkaad.v2.model.backend import Backend from huaweicloudsdkaad.v2.model.black_white_list_rule import BlackWhiteListRule from huaweicloudsdkaad.v2.model.bw_list_ips import BwListIps @@ -18,6 +21,9 @@ from huaweicloudsdkaad.v2.model.delete_domain_request import DeleteDomainRequest from huaweicloudsdkaad.v2.model.delete_domain_response import DeleteDomainResponse from huaweicloudsdkaad.v2.model.delete_domain_v2_request_body import DeleteDomainV2RequestBody +from huaweicloudsdkaad.v2.model.delete_waf_white_ip_rule_request import DeleteWafWhiteIpRuleRequest +from huaweicloudsdkaad.v2.model.delete_waf_white_ip_rule_response import DeleteWafWhiteIpRuleResponse +from huaweicloudsdkaad.v2.model.delete_waf_white_ip_rule_v2_request_body import DeleteWafWhiteIpRuleV2RequestBody from huaweicloudsdkaad.v2.model.detail_info import DetailInfo from huaweicloudsdkaad.v2.model.empty_json_response import EmptyJsonResponse from huaweicloudsdkaad.v2.model.flow_bps import FlowBps diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/aad_async_client.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/aad_async_client.py index fbf4f29033..f8f9d47c88 100644 --- a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/aad_async_client.py +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/aad_async_client.py @@ -32,6 +32,71 @@ def new_builder(cls, clazz=None): return client_builder + def add_waf_white_ip_rule_async(self, request): + """防护策略web-cc黑白名单-创建黑白名单规则 + + 防护策略web-cc黑白名单-创建黑白名单规则 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for AddWafWhiteIpRule + :type request: :class:`huaweicloudsdkaad.v2.AddWafWhiteIpRuleRequest` + :rtype: :class:`huaweicloudsdkaad.v2.AddWafWhiteIpRuleResponse` + """ + http_info = self._add_waf_white_ip_rule_http_info(request) + return self._call_api(**http_info) + + def add_waf_white_ip_rule_async_invoker(self, request): + http_info = self._add_waf_white_ip_rule_http_info(request) + return AsyncInvoker(self, http_info) + + def _add_waf_white_ip_rule_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v2/aad/policies/waf/blackwhite-list", + "request_type": request.__class__.__name__, + "response_type": "AddWafWhiteIpRuleResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_domain_async(self, request): """创建防护域名 @@ -162,6 +227,71 @@ def _delete_domain_http_info(self, request): return http_info + def delete_waf_white_ip_rule_async(self, request): + """防护策略web-cc黑白名单-删除黑白名单规则 + + 防护策略web-cc黑白名单-删除黑白名单规则 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteWafWhiteIpRule + :type request: :class:`huaweicloudsdkaad.v2.DeleteWafWhiteIpRuleRequest` + :rtype: :class:`huaweicloudsdkaad.v2.DeleteWafWhiteIpRuleResponse` + """ + http_info = self._delete_waf_white_ip_rule_http_info(request) + return self._call_api(**http_info) + + def delete_waf_white_ip_rule_async_invoker(self, request): + http_info = self._delete_waf_white_ip_rule_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_waf_white_ip_rule_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v2/aad/policies/waf/blackwhite-list", + "request_type": request.__class__.__name__, + "response_type": "DeleteWafWhiteIpRuleResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_d_do_s_attack_event_async(self, request): """查询DDoS攻击事件列表 diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/aad_client.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/aad_client.py index 7d7fe0fcad..050b8c9b8d 100644 --- a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/aad_client.py +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/aad_client.py @@ -32,6 +32,71 @@ def new_builder(cls, clazz=None): return client_builder + def add_waf_white_ip_rule(self, request): + """防护策略web-cc黑白名单-创建黑白名单规则 + + 防护策略web-cc黑白名单-创建黑白名单规则 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for AddWafWhiteIpRule + :type request: :class:`huaweicloudsdkaad.v2.AddWafWhiteIpRuleRequest` + :rtype: :class:`huaweicloudsdkaad.v2.AddWafWhiteIpRuleResponse` + """ + http_info = self._add_waf_white_ip_rule_http_info(request) + return self._call_api(**http_info) + + def add_waf_white_ip_rule_invoker(self, request): + http_info = self._add_waf_white_ip_rule_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _add_waf_white_ip_rule_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v2/aad/policies/waf/blackwhite-list", + "request_type": request.__class__.__name__, + "response_type": "AddWafWhiteIpRuleResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_domain(self, request): """创建防护域名 @@ -162,6 +227,71 @@ def _delete_domain_http_info(cls, request): return http_info + def delete_waf_white_ip_rule(self, request): + """防护策略web-cc黑白名单-删除黑白名单规则 + + 防护策略web-cc黑白名单-删除黑白名单规则 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteWafWhiteIpRule + :type request: :class:`huaweicloudsdkaad.v2.DeleteWafWhiteIpRuleRequest` + :rtype: :class:`huaweicloudsdkaad.v2.DeleteWafWhiteIpRuleResponse` + """ + http_info = self._delete_waf_white_ip_rule_http_info(request) + return self._call_api(**http_info) + + def delete_waf_white_ip_rule_invoker(self, request): + http_info = self._delete_waf_white_ip_rule_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_waf_white_ip_rule_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v2/aad/policies/waf/blackwhite-list", + "request_type": request.__class__.__name__, + "response_type": "DeleteWafWhiteIpRuleResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_d_do_s_attack_event(self, request): """查询DDoS攻击事件列表 diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/__init__.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/__init__.py index 1ac960c81c..92185bbf27 100644 --- a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/__init__.py +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/__init__.py @@ -4,6 +4,9 @@ # import models into model package from huaweicloudsdkaad.v2.model.action_info import ActionInfo +from huaweicloudsdkaad.v2.model.add_waf_white_ip_rule_request import AddWafWhiteIpRuleRequest +from huaweicloudsdkaad.v2.model.add_waf_white_ip_rule_response import AddWafWhiteIpRuleResponse +from huaweicloudsdkaad.v2.model.add_waf_white_ip_rule_v2_request_body import AddWafWhiteIpRuleV2RequestBody from huaweicloudsdkaad.v2.model.backend import Backend from huaweicloudsdkaad.v2.model.black_white_list_rule import BlackWhiteListRule from huaweicloudsdkaad.v2.model.bw_list_ips import BwListIps @@ -16,6 +19,9 @@ from huaweicloudsdkaad.v2.model.delete_domain_request import DeleteDomainRequest from huaweicloudsdkaad.v2.model.delete_domain_response import DeleteDomainResponse from huaweicloudsdkaad.v2.model.delete_domain_v2_request_body import DeleteDomainV2RequestBody +from huaweicloudsdkaad.v2.model.delete_waf_white_ip_rule_request import DeleteWafWhiteIpRuleRequest +from huaweicloudsdkaad.v2.model.delete_waf_white_ip_rule_response import DeleteWafWhiteIpRuleResponse +from huaweicloudsdkaad.v2.model.delete_waf_white_ip_rule_v2_request_body import DeleteWafWhiteIpRuleV2RequestBody from huaweicloudsdkaad.v2.model.detail_info import DetailInfo from huaweicloudsdkaad.v2.model.empty_json_response import EmptyJsonResponse from huaweicloudsdkaad.v2.model.flow_bps import FlowBps diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/add_waf_white_ip_rule_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/add_waf_white_ip_rule_request.py new file mode 100644 index 0000000000..4441ebc444 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/add_waf_white_ip_rule_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AddWafWhiteIpRuleRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'AddWafWhiteIpRuleV2RequestBody' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """AddWafWhiteIpRuleRequest + + The model defined in huaweicloud sdk + + :param body: Body of the AddWafWhiteIpRuleRequest + :type body: :class:`huaweicloudsdkaad.v2.AddWafWhiteIpRuleV2RequestBody` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this AddWafWhiteIpRuleRequest. + + :return: The body of this AddWafWhiteIpRuleRequest. + :rtype: :class:`huaweicloudsdkaad.v2.AddWafWhiteIpRuleV2RequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this AddWafWhiteIpRuleRequest. + + :param body: The body of this AddWafWhiteIpRuleRequest. + :type body: :class:`huaweicloudsdkaad.v2.AddWafWhiteIpRuleV2RequestBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AddWafWhiteIpRuleRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/add_waf_white_ip_rule_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/add_waf_white_ip_rule_response.py new file mode 100644 index 0000000000..d6e15fd88a --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/add_waf_white_ip_rule_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AddWafWhiteIpRuleResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'str' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """AddWafWhiteIpRuleResponse + + The model defined in huaweicloud sdk + + :param body: + :type body: str + """ + + super(AddWafWhiteIpRuleResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this AddWafWhiteIpRuleResponse. + + :return: The body of this AddWafWhiteIpRuleResponse. + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this AddWafWhiteIpRuleResponse. + + :param body: The body of this AddWafWhiteIpRuleResponse. + :type body: str + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AddWafWhiteIpRuleResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/add_waf_white_ip_rule_v2_request_body.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/add_waf_white_ip_rule_v2_request_body.py new file mode 100644 index 0000000000..4a74d3b29d --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/add_waf_white_ip_rule_v2_request_body.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AddWafWhiteIpRuleV2RequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'domain_name': 'str', + 'ips': 'list[str]', + 'overseas_type': 'int', + 'type': 'int' + } + + attribute_map = { + 'domain_name': 'domain_name', + 'ips': 'ips', + 'overseas_type': 'overseas_type', + 'type': 'type' + } + + def __init__(self, domain_name=None, ips=None, overseas_type=None, type=None): + """AddWafWhiteIpRuleV2RequestBody + + The model defined in huaweicloud sdk + + :param domain_name: 域名+端口组合,标准端口80/443无须加端口。 + :type domain_name: str + :param ips: 待添加ip/ip段 + :type ips: list[str] + :param overseas_type: 防护区域,0-大陆,1-海外 + :type overseas_type: int + :param type: 0-黑名单,1-白名单 + :type type: int + """ + + + + self._domain_name = None + self._ips = None + self._overseas_type = None + self._type = None + self.discriminator = None + + self.domain_name = domain_name + self.ips = ips + self.overseas_type = overseas_type + self.type = type + + @property + def domain_name(self): + """Gets the domain_name of this AddWafWhiteIpRuleV2RequestBody. + + 域名+端口组合,标准端口80/443无须加端口。 + + :return: The domain_name of this AddWafWhiteIpRuleV2RequestBody. + :rtype: str + """ + return self._domain_name + + @domain_name.setter + def domain_name(self, domain_name): + """Sets the domain_name of this AddWafWhiteIpRuleV2RequestBody. + + 域名+端口组合,标准端口80/443无须加端口。 + + :param domain_name: The domain_name of this AddWafWhiteIpRuleV2RequestBody. + :type domain_name: str + """ + self._domain_name = domain_name + + @property + def ips(self): + """Gets the ips of this AddWafWhiteIpRuleV2RequestBody. + + 待添加ip/ip段 + + :return: The ips of this AddWafWhiteIpRuleV2RequestBody. + :rtype: list[str] + """ + return self._ips + + @ips.setter + def ips(self, ips): + """Sets the ips of this AddWafWhiteIpRuleV2RequestBody. + + 待添加ip/ip段 + + :param ips: The ips of this AddWafWhiteIpRuleV2RequestBody. + :type ips: list[str] + """ + self._ips = ips + + @property + def overseas_type(self): + """Gets the overseas_type of this AddWafWhiteIpRuleV2RequestBody. + + 防护区域,0-大陆,1-海外 + + :return: The overseas_type of this AddWafWhiteIpRuleV2RequestBody. + :rtype: int + """ + return self._overseas_type + + @overseas_type.setter + def overseas_type(self, overseas_type): + """Sets the overseas_type of this AddWafWhiteIpRuleV2RequestBody. + + 防护区域,0-大陆,1-海外 + + :param overseas_type: The overseas_type of this AddWafWhiteIpRuleV2RequestBody. + :type overseas_type: int + """ + self._overseas_type = overseas_type + + @property + def type(self): + """Gets the type of this AddWafWhiteIpRuleV2RequestBody. + + 0-黑名单,1-白名单 + + :return: The type of this AddWafWhiteIpRuleV2RequestBody. + :rtype: int + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this AddWafWhiteIpRuleV2RequestBody. + + 0-黑名单,1-白名单 + + :param type: The type of this AddWafWhiteIpRuleV2RequestBody. + :type type: int + """ + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AddWafWhiteIpRuleV2RequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/delete_waf_white_ip_rule_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/delete_waf_white_ip_rule_request.py new file mode 100644 index 0000000000..630a9e8a37 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/delete_waf_white_ip_rule_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteWafWhiteIpRuleRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'DeleteWafWhiteIpRuleV2RequestBody' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """DeleteWafWhiteIpRuleRequest + + The model defined in huaweicloud sdk + + :param body: Body of the DeleteWafWhiteIpRuleRequest + :type body: :class:`huaweicloudsdkaad.v2.DeleteWafWhiteIpRuleV2RequestBody` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this DeleteWafWhiteIpRuleRequest. + + :return: The body of this DeleteWafWhiteIpRuleRequest. + :rtype: :class:`huaweicloudsdkaad.v2.DeleteWafWhiteIpRuleV2RequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteWafWhiteIpRuleRequest. + + :param body: The body of this DeleteWafWhiteIpRuleRequest. + :type body: :class:`huaweicloudsdkaad.v2.DeleteWafWhiteIpRuleV2RequestBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteWafWhiteIpRuleRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/delete_waf_white_ip_rule_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/delete_waf_white_ip_rule_response.py new file mode 100644 index 0000000000..399cd783a2 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/delete_waf_white_ip_rule_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteWafWhiteIpRuleResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'str' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """DeleteWafWhiteIpRuleResponse + + The model defined in huaweicloud sdk + + :param body: + :type body: str + """ + + super(DeleteWafWhiteIpRuleResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this DeleteWafWhiteIpRuleResponse. + + :return: The body of this DeleteWafWhiteIpRuleResponse. + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteWafWhiteIpRuleResponse. + + :param body: The body of this DeleteWafWhiteIpRuleResponse. + :type body: str + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteWafWhiteIpRuleResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/delete_waf_white_ip_rule_v2_request_body.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/delete_waf_white_ip_rule_v2_request_body.py new file mode 100644 index 0000000000..1c56e99b71 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v2/model/delete_waf_white_ip_rule_v2_request_body.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteWafWhiteIpRuleV2RequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'ids': 'list[str]', + 'domain_name': 'str', + 'overseas_type': 'int' + } + + attribute_map = { + 'ids': 'ids', + 'domain_name': 'domain_name', + 'overseas_type': 'overseas_type' + } + + def __init__(self, ids=None, domain_name=None, overseas_type=None): + """DeleteWafWhiteIpRuleV2RequestBody + + The model defined in huaweicloud sdk + + :param ids: 待删除规则id + :type ids: list[str] + :param domain_name: 域名+端口组合,标准端口80/443无须加端口。 + :type domain_name: str + :param overseas_type: 防护区域 + :type overseas_type: int + """ + + + + self._ids = None + self._domain_name = None + self._overseas_type = None + self.discriminator = None + + self.ids = ids + self.domain_name = domain_name + self.overseas_type = overseas_type + + @property + def ids(self): + """Gets the ids of this DeleteWafWhiteIpRuleV2RequestBody. + + 待删除规则id + + :return: The ids of this DeleteWafWhiteIpRuleV2RequestBody. + :rtype: list[str] + """ + return self._ids + + @ids.setter + def ids(self, ids): + """Sets the ids of this DeleteWafWhiteIpRuleV2RequestBody. + + 待删除规则id + + :param ids: The ids of this DeleteWafWhiteIpRuleV2RequestBody. + :type ids: list[str] + """ + self._ids = ids + + @property + def domain_name(self): + """Gets the domain_name of this DeleteWafWhiteIpRuleV2RequestBody. + + 域名+端口组合,标准端口80/443无须加端口。 + + :return: The domain_name of this DeleteWafWhiteIpRuleV2RequestBody. + :rtype: str + """ + return self._domain_name + + @domain_name.setter + def domain_name(self, domain_name): + """Sets the domain_name of this DeleteWafWhiteIpRuleV2RequestBody. + + 域名+端口组合,标准端口80/443无须加端口。 + + :param domain_name: The domain_name of this DeleteWafWhiteIpRuleV2RequestBody. + :type domain_name: str + """ + self._domain_name = domain_name + + @property + def overseas_type(self): + """Gets the overseas_type of this DeleteWafWhiteIpRuleV2RequestBody. + + 防护区域 + + :return: The overseas_type of this DeleteWafWhiteIpRuleV2RequestBody. + :rtype: int + """ + return self._overseas_type + + @overseas_type.setter + def overseas_type(self, overseas_type): + """Sets the overseas_type of this DeleteWafWhiteIpRuleV2RequestBody. + + 防护区域 + + :param overseas_type: The overseas_type of this DeleteWafWhiteIpRuleV2RequestBody. + :type overseas_type: int + """ + self._overseas_type = overseas_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteWafWhiteIpRuleV2RequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/requirements.txt b/huaweicloud-sdk-aad/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-aad/requirements.txt +++ b/huaweicloud-sdk-aad/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-aad/setup.py b/huaweicloud-sdk-aad/setup.py index d4e0c85fa2..2921a5fa67 100644 --- a/huaweicloud-sdk-aad/setup.py +++ b/huaweicloud-sdk-aad/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkaad" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-all/requirements.txt b/huaweicloud-sdk-all/requirements.txt index 8cfab22cdd..53fa4f79ae 100644 --- a/huaweicloud-sdk-all/requirements.txt +++ b/huaweicloud-sdk-all/requirements.txt @@ -1,169 +1,169 @@ -huaweicloudsdkcore == 3.1.127 -huaweicloudsdkaad == 3.1.127 -huaweicloudsdkantiddos == 3.1.127 -huaweicloudsdkaom == 3.1.127 -huaweicloudsdkaos == 3.1.127 -huaweicloudsdkapig == 3.1.127 -huaweicloudsdkapm == 3.1.127 -huaweicloudsdkas == 3.1.127 -huaweicloudsdkasm == 3.1.127 -huaweicloudsdkbcs == 3.1.127 -huaweicloudsdkbms == 3.1.127 -huaweicloudsdkbss == 3.1.127 -huaweicloudsdkbssintl == 3.1.127 -huaweicloudsdkcae == 3.1.127 -huaweicloudsdkcampusgo == 3.1.127 -huaweicloudsdkcbh == 3.1.127 -huaweicloudsdkcbr == 3.1.127 -huaweicloudsdkcbs == 3.1.127 -huaweicloudsdkcc == 3.1.127 -huaweicloudsdkcce == 3.1.127 -huaweicloudsdkccm == 3.1.127 -huaweicloudsdkcdm == 3.1.127 -huaweicloudsdkcdn == 3.1.127 -huaweicloudsdkces == 3.1.127 -huaweicloudsdkcfw == 3.1.127 -huaweicloudsdkcgs == 3.1.127 -huaweicloudsdkclassroom == 3.1.127 -huaweicloudsdkcloudide == 3.1.127 -huaweicloudsdkcloudpond == 3.1.127 -huaweicloudsdkcloudrtc == 3.1.127 -huaweicloudsdkcloudtable == 3.1.127 -huaweicloudsdkcloudtest == 3.1.127 -huaweicloudsdkcoc == 3.1.127 -huaweicloudsdkcodeartsartifact == 3.1.127 -huaweicloudsdkcodeartsbuild == 3.1.127 -huaweicloudsdkcodeartscheck == 3.1.127 -huaweicloudsdkcodeartsdeploy == 3.1.127 -huaweicloudsdkcodeartsgovernance == 3.1.127 -huaweicloudsdkcodeartsinspector == 3.1.127 -huaweicloudsdkcodeartspipeline == 3.1.127 -huaweicloudsdkcodecraft == 3.1.127 -huaweicloudsdkcodehub == 3.1.127 -huaweicloudsdkconfig == 3.1.127 -huaweicloudsdkcph == 3.1.127 -huaweicloudsdkcpts == 3.1.127 -huaweicloudsdkcse == 3.1.127 -huaweicloudsdkcsms == 3.1.127 -huaweicloudsdkcss == 3.1.127 -huaweicloudsdkcts == 3.1.127 -huaweicloudsdkdas == 3.1.127 -huaweicloudsdkdataartsfabric == 3.1.127 -huaweicloudsdkdataartsfabricep == 3.1.127 -huaweicloudsdkdataartsstudio == 3.1.127 -huaweicloudsdkdbss == 3.1.127 -huaweicloudsdkdc == 3.1.127 -huaweicloudsdkdcs == 3.1.127 -huaweicloudsdkddm == 3.1.127 -huaweicloudsdkdds == 3.1.127 -huaweicloudsdkdeh == 3.1.127 -huaweicloudsdkdevstar == 3.1.127 -huaweicloudsdkdgc == 3.1.127 -huaweicloudsdkdis == 3.1.127 -huaweicloudsdkdlf == 3.1.127 -huaweicloudsdkdli == 3.1.127 -huaweicloudsdkdns == 3.1.127 -huaweicloudsdkdris == 3.1.127 -huaweicloudsdkdrs == 3.1.127 -huaweicloudsdkdsc == 3.1.127 -huaweicloudsdkdwr == 3.1.127 -huaweicloudsdkdws == 3.1.127 -huaweicloudsdkec == 3.1.127 -huaweicloudsdkecs == 3.1.127 -huaweicloudsdkedgesec == 3.1.127 -huaweicloudsdkeg == 3.1.127 -huaweicloudsdkeihealth == 3.1.127 -huaweicloudsdkeip == 3.1.127 -huaweicloudsdkelb == 3.1.127 -huaweicloudsdkeps == 3.1.127 -huaweicloudsdker == 3.1.127 -huaweicloudsdkevs == 3.1.127 -huaweicloudsdkfrs == 3.1.127 -huaweicloudsdkfunctiongraph == 3.1.127 -huaweicloudsdkga == 3.1.127 -huaweicloudsdkgaussdb == 3.1.127 -huaweicloudsdkgaussdbfornosql == 3.1.127 -huaweicloudsdkgaussdbforopengauss == 3.1.127 -huaweicloudsdkgeip == 3.1.127 -huaweicloudsdkges == 3.1.127 -huaweicloudsdkgsl == 3.1.127 -huaweicloudsdkhilens == 3.1.127 -huaweicloudsdkhss == 3.1.127 -huaweicloudsdkiam == 3.1.127 -huaweicloudsdkiamaccessanalyzer == 3.1.127 -huaweicloudsdkidentitycenter == 3.1.127 -huaweicloudsdkidentitycenterstore == 3.1.127 -huaweicloudsdkidme == 3.1.127 -huaweicloudsdkidmeclassicapi == 3.1.127 -huaweicloudsdkiec == 3.1.127 -huaweicloudsdkief == 3.1.127 -huaweicloudsdkimage == 3.1.127 -huaweicloudsdkimagesearch == 3.1.127 -huaweicloudsdkims == 3.1.127 -huaweicloudsdkiotanalytics == 3.1.127 -huaweicloudsdkiotda == 3.1.127 -huaweicloudsdkiotdm == 3.1.127 -huaweicloudsdkiotedge == 3.1.127 -huaweicloudsdkivs == 3.1.127 -huaweicloudsdkkafka == 3.1.127 -huaweicloudsdkkms == 3.1.127 -huaweicloudsdkkoomessage == 3.1.127 -huaweicloudsdkkps == 3.1.127 -huaweicloudsdklakeformation == 3.1.127 -huaweicloudsdklive == 3.1.127 -huaweicloudsdklts == 3.1.127 -huaweicloudsdkmapds == 3.1.127 -huaweicloudsdkmas == 3.1.127 -huaweicloudsdkmastudio == 3.1.127 -huaweicloudsdkmeeting == 3.1.127 -huaweicloudsdkmetastudio == 3.1.127 -huaweicloudsdkmoderation == 3.1.127 -huaweicloudsdkmpc == 3.1.127 -huaweicloudsdkmrs == 3.1.127 -huaweicloudsdkmsgsms == 3.1.127 -huaweicloudsdkmssi == 3.1.127 -huaweicloudsdknat == 3.1.127 -huaweicloudsdknlp == 3.1.127 -huaweicloudsdkobs == 3.1.127 -huaweicloudsdkocr == 3.1.127 -huaweicloudsdkoctopus == 3.1.127 -huaweicloudsdkoms == 3.1.127 -huaweicloudsdkoptverse == 3.1.127 -huaweicloudsdkorganizations == 3.1.127 -huaweicloudsdkorgid == 3.1.127 -huaweicloudsdkoroas == 3.1.127 -huaweicloudsdkosm == 3.1.127 -huaweicloudsdkpangulargemodels == 3.1.127 -huaweicloudsdkprojectman == 3.1.127 -huaweicloudsdkrabbitmq == 3.1.127 -huaweicloudsdkram == 3.1.127 -huaweicloudsdkrds == 3.1.127 -huaweicloudsdkres == 3.1.127 -huaweicloudsdkrgc == 3.1.127 -huaweicloudsdkrms == 3.1.127 -huaweicloudsdkrocketmq == 3.1.127 -huaweicloudsdkroma == 3.1.127 -huaweicloudsdksa == 3.1.127 -huaweicloudsdkscm == 3.1.127 -huaweicloudsdksdrs == 3.1.127 -huaweicloudsdksecmaster == 3.1.127 -huaweicloudsdkservicestage == 3.1.127 -huaweicloudsdksfsturbo == 3.1.127 -huaweicloudsdksis == 3.1.127 -huaweicloudsdksmn == 3.1.127 -huaweicloudsdksms == 3.1.127 -huaweicloudsdksmsapi == 3.1.127 -huaweicloudsdksts == 3.1.127 -huaweicloudsdkswr == 3.1.127 -huaweicloudsdktics == 3.1.127 -huaweicloudsdktms == 3.1.127 -huaweicloudsdkugo == 3.1.127 -huaweicloudsdkvas == 3.1.127 -huaweicloudsdkvcm == 3.1.127 -huaweicloudsdkvod == 3.1.127 -huaweicloudsdkvpc == 3.1.127 -huaweicloudsdkvpcep == 3.1.127 -huaweicloudsdkvpn == 3.1.127 -huaweicloudsdkwaf == 3.1.127 -huaweicloudsdkworkspace == 3.1.127 -huaweicloudsdkworkspaceapp == 3.1.127 +huaweicloudsdkcore == 3.1.128 +huaweicloudsdkaad == 3.1.128 +huaweicloudsdkantiddos == 3.1.128 +huaweicloudsdkaom == 3.1.128 +huaweicloudsdkaos == 3.1.128 +huaweicloudsdkapig == 3.1.128 +huaweicloudsdkapm == 3.1.128 +huaweicloudsdkas == 3.1.128 +huaweicloudsdkasm == 3.1.128 +huaweicloudsdkbcs == 3.1.128 +huaweicloudsdkbms == 3.1.128 +huaweicloudsdkbss == 3.1.128 +huaweicloudsdkbssintl == 3.1.128 +huaweicloudsdkcae == 3.1.128 +huaweicloudsdkcampusgo == 3.1.128 +huaweicloudsdkcbh == 3.1.128 +huaweicloudsdkcbr == 3.1.128 +huaweicloudsdkcbs == 3.1.128 +huaweicloudsdkcc == 3.1.128 +huaweicloudsdkcce == 3.1.128 +huaweicloudsdkccm == 3.1.128 +huaweicloudsdkcdm == 3.1.128 +huaweicloudsdkcdn == 3.1.128 +huaweicloudsdkces == 3.1.128 +huaweicloudsdkcfw == 3.1.128 +huaweicloudsdkcgs == 3.1.128 +huaweicloudsdkclassroom == 3.1.128 +huaweicloudsdkcloudide == 3.1.128 +huaweicloudsdkcloudpond == 3.1.128 +huaweicloudsdkcloudrtc == 3.1.128 +huaweicloudsdkcloudtable == 3.1.128 +huaweicloudsdkcloudtest == 3.1.128 +huaweicloudsdkcoc == 3.1.128 +huaweicloudsdkcodeartsartifact == 3.1.128 +huaweicloudsdkcodeartsbuild == 3.1.128 +huaweicloudsdkcodeartscheck == 3.1.128 +huaweicloudsdkcodeartsdeploy == 3.1.128 +huaweicloudsdkcodeartsgovernance == 3.1.128 +huaweicloudsdkcodeartsinspector == 3.1.128 +huaweicloudsdkcodeartspipeline == 3.1.128 +huaweicloudsdkcodecraft == 3.1.128 +huaweicloudsdkcodehub == 3.1.128 +huaweicloudsdkconfig == 3.1.128 +huaweicloudsdkcph == 3.1.128 +huaweicloudsdkcpts == 3.1.128 +huaweicloudsdkcse == 3.1.128 +huaweicloudsdkcsms == 3.1.128 +huaweicloudsdkcss == 3.1.128 +huaweicloudsdkcts == 3.1.128 +huaweicloudsdkdas == 3.1.128 +huaweicloudsdkdataartsfabric == 3.1.128 +huaweicloudsdkdataartsfabricep == 3.1.128 +huaweicloudsdkdataartsstudio == 3.1.128 +huaweicloudsdkdbss == 3.1.128 +huaweicloudsdkdc == 3.1.128 +huaweicloudsdkdcs == 3.1.128 +huaweicloudsdkddm == 3.1.128 +huaweicloudsdkdds == 3.1.128 +huaweicloudsdkdeh == 3.1.128 +huaweicloudsdkdevstar == 3.1.128 +huaweicloudsdkdgc == 3.1.128 +huaweicloudsdkdis == 3.1.128 +huaweicloudsdkdlf == 3.1.128 +huaweicloudsdkdli == 3.1.128 +huaweicloudsdkdns == 3.1.128 +huaweicloudsdkdris == 3.1.128 +huaweicloudsdkdrs == 3.1.128 +huaweicloudsdkdsc == 3.1.128 +huaweicloudsdkdwr == 3.1.128 +huaweicloudsdkdws == 3.1.128 +huaweicloudsdkec == 3.1.128 +huaweicloudsdkecs == 3.1.128 +huaweicloudsdkedgesec == 3.1.128 +huaweicloudsdkeg == 3.1.128 +huaweicloudsdkeihealth == 3.1.128 +huaweicloudsdkeip == 3.1.128 +huaweicloudsdkelb == 3.1.128 +huaweicloudsdkeps == 3.1.128 +huaweicloudsdker == 3.1.128 +huaweicloudsdkevs == 3.1.128 +huaweicloudsdkfrs == 3.1.128 +huaweicloudsdkfunctiongraph == 3.1.128 +huaweicloudsdkga == 3.1.128 +huaweicloudsdkgaussdb == 3.1.128 +huaweicloudsdkgaussdbfornosql == 3.1.128 +huaweicloudsdkgaussdbforopengauss == 3.1.128 +huaweicloudsdkgeip == 3.1.128 +huaweicloudsdkges == 3.1.128 +huaweicloudsdkgsl == 3.1.128 +huaweicloudsdkhilens == 3.1.128 +huaweicloudsdkhss == 3.1.128 +huaweicloudsdkiam == 3.1.128 +huaweicloudsdkiamaccessanalyzer == 3.1.128 +huaweicloudsdkidentitycenter == 3.1.128 +huaweicloudsdkidentitycenterstore == 3.1.128 +huaweicloudsdkidme == 3.1.128 +huaweicloudsdkidmeclassicapi == 3.1.128 +huaweicloudsdkiec == 3.1.128 +huaweicloudsdkief == 3.1.128 +huaweicloudsdkimage == 3.1.128 +huaweicloudsdkimagesearch == 3.1.128 +huaweicloudsdkims == 3.1.128 +huaweicloudsdkiotanalytics == 3.1.128 +huaweicloudsdkiotda == 3.1.128 +huaweicloudsdkiotdm == 3.1.128 +huaweicloudsdkiotedge == 3.1.128 +huaweicloudsdkivs == 3.1.128 +huaweicloudsdkkafka == 3.1.128 +huaweicloudsdkkms == 3.1.128 +huaweicloudsdkkoomessage == 3.1.128 +huaweicloudsdkkps == 3.1.128 +huaweicloudsdklakeformation == 3.1.128 +huaweicloudsdklive == 3.1.128 +huaweicloudsdklts == 3.1.128 +huaweicloudsdkmapds == 3.1.128 +huaweicloudsdkmas == 3.1.128 +huaweicloudsdkmastudio == 3.1.128 +huaweicloudsdkmeeting == 3.1.128 +huaweicloudsdkmetastudio == 3.1.128 +huaweicloudsdkmoderation == 3.1.128 +huaweicloudsdkmpc == 3.1.128 +huaweicloudsdkmrs == 3.1.128 +huaweicloudsdkmsgsms == 3.1.128 +huaweicloudsdkmssi == 3.1.128 +huaweicloudsdknat == 3.1.128 +huaweicloudsdknlp == 3.1.128 +huaweicloudsdkobs == 3.1.128 +huaweicloudsdkocr == 3.1.128 +huaweicloudsdkoctopus == 3.1.128 +huaweicloudsdkoms == 3.1.128 +huaweicloudsdkoptverse == 3.1.128 +huaweicloudsdkorganizations == 3.1.128 +huaweicloudsdkorgid == 3.1.128 +huaweicloudsdkoroas == 3.1.128 +huaweicloudsdkosm == 3.1.128 +huaweicloudsdkpangulargemodels == 3.1.128 +huaweicloudsdkprojectman == 3.1.128 +huaweicloudsdkrabbitmq == 3.1.128 +huaweicloudsdkram == 3.1.128 +huaweicloudsdkrds == 3.1.128 +huaweicloudsdkres == 3.1.128 +huaweicloudsdkrgc == 3.1.128 +huaweicloudsdkrms == 3.1.128 +huaweicloudsdkrocketmq == 3.1.128 +huaweicloudsdkroma == 3.1.128 +huaweicloudsdksa == 3.1.128 +huaweicloudsdkscm == 3.1.128 +huaweicloudsdksdrs == 3.1.128 +huaweicloudsdksecmaster == 3.1.128 +huaweicloudsdkservicestage == 3.1.128 +huaweicloudsdksfsturbo == 3.1.128 +huaweicloudsdksis == 3.1.128 +huaweicloudsdksmn == 3.1.128 +huaweicloudsdksms == 3.1.128 +huaweicloudsdksmsapi == 3.1.128 +huaweicloudsdksts == 3.1.128 +huaweicloudsdkswr == 3.1.128 +huaweicloudsdktics == 3.1.128 +huaweicloudsdktms == 3.1.128 +huaweicloudsdkugo == 3.1.128 +huaweicloudsdkvas == 3.1.128 +huaweicloudsdkvcm == 3.1.128 +huaweicloudsdkvod == 3.1.128 +huaweicloudsdkvpc == 3.1.128 +huaweicloudsdkvpcep == 3.1.128 +huaweicloudsdkvpn == 3.1.128 +huaweicloudsdkwaf == 3.1.128 +huaweicloudsdkworkspace == 3.1.128 +huaweicloudsdkworkspaceapp == 3.1.128 diff --git a/huaweicloud-sdk-all/setup.py b/huaweicloud-sdk-all/setup.py index b3c78f8afd..507387d7d6 100644 --- a/huaweicloud-sdk-all/setup.py +++ b/huaweicloud-sdk-all/setup.py @@ -23,7 +23,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkall" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -34,175 +34,175 @@ LONG_DESCRIPTION = f.read() INSTALL_REQUIRES = [ - 'huaweicloudsdkcore==3.1.127', - 'huaweicloudsdkaad==3.1.127', - 'huaweicloudsdkantiddos==3.1.127', - 'huaweicloudsdkaom==3.1.127', - 'huaweicloudsdkaos==3.1.127', - 'huaweicloudsdkapig==3.1.127', - 'huaweicloudsdkapm==3.1.127', - 'huaweicloudsdkas==3.1.127', - 'huaweicloudsdkasm==3.1.127', - 'huaweicloudsdkbcs==3.1.127', - 'huaweicloudsdkbms==3.1.127', - 'huaweicloudsdkbss==3.1.127', - 'huaweicloudsdkbssintl==3.1.127', - 'huaweicloudsdkcae==3.1.127', - 'huaweicloudsdkcampusgo==3.1.127', - 'huaweicloudsdkcbh==3.1.127', - 'huaweicloudsdkcbr==3.1.127', - 'huaweicloudsdkcbs==3.1.127', - 'huaweicloudsdkcc==3.1.127', - 'huaweicloudsdkcce==3.1.127', - 'huaweicloudsdkccm==3.1.127', - 'huaweicloudsdkcdm==3.1.127', - 'huaweicloudsdkcdn==3.1.127', - 'huaweicloudsdkces==3.1.127', - 'huaweicloudsdkcfw==3.1.127', - 'huaweicloudsdkcgs==3.1.127', - 'huaweicloudsdkclassroom==3.1.127', - 'huaweicloudsdkcloudide==3.1.127', - 'huaweicloudsdkcloudpond==3.1.127', - 'huaweicloudsdkcloudrtc==3.1.127', - 'huaweicloudsdkcloudtable==3.1.127', - 'huaweicloudsdkcloudtest==3.1.127', - 'huaweicloudsdkcoc==3.1.127', - 'huaweicloudsdkcodeartsartifact==3.1.127', - 'huaweicloudsdkcodeartsbuild==3.1.127', - 'huaweicloudsdkcodeartscheck==3.1.127', - 'huaweicloudsdkcodeartsdeploy==3.1.127', - 'huaweicloudsdkcodeartsgovernance==3.1.127', - 'huaweicloudsdkcodeartsinspector==3.1.127', - 'huaweicloudsdkcodeartspipeline==3.1.127', - 'huaweicloudsdkcodecraft==3.1.127', - 'huaweicloudsdkcodehub==3.1.127', - 'huaweicloudsdkconfig==3.1.127', - 'huaweicloudsdkcph==3.1.127', - 'huaweicloudsdkcpts==3.1.127', - 'huaweicloudsdkcse==3.1.127', - 'huaweicloudsdkcsms==3.1.127', - 'huaweicloudsdkcss==3.1.127', - 'huaweicloudsdkcts==3.1.127', - 'huaweicloudsdkdas==3.1.127', - 'huaweicloudsdkdataartsfabric==3.1.127', - 'huaweicloudsdkdataartsfabricep==3.1.127', - 'huaweicloudsdkdataartsstudio==3.1.127', - 'huaweicloudsdkdbss==3.1.127', - 'huaweicloudsdkdc==3.1.127', - 'huaweicloudsdkdcs==3.1.127', - 'huaweicloudsdkddm==3.1.127', - 'huaweicloudsdkdds==3.1.127', - 'huaweicloudsdkdeh==3.1.127', - 'huaweicloudsdkdevstar==3.1.127', - 'huaweicloudsdkdgc==3.1.127', - 'huaweicloudsdkdis==3.1.127', - 'huaweicloudsdkdlf==3.1.127', - 'huaweicloudsdkdli==3.1.127', - 'huaweicloudsdkdns==3.1.127', - 'huaweicloudsdkdris==3.1.127', - 'huaweicloudsdkdrs==3.1.127', - 'huaweicloudsdkdsc==3.1.127', - 'huaweicloudsdkdwr==3.1.127', - 'huaweicloudsdkdws==3.1.127', - 'huaweicloudsdkec==3.1.127', - 'huaweicloudsdkecs==3.1.127', - 'huaweicloudsdkedgesec==3.1.127', - 'huaweicloudsdkeg==3.1.127', - 'huaweicloudsdkeihealth==3.1.127', - 'huaweicloudsdkeip==3.1.127', - 'huaweicloudsdkelb==3.1.127', - 'huaweicloudsdkeps==3.1.127', - 'huaweicloudsdker==3.1.127', - 'huaweicloudsdkevs==3.1.127', - 'huaweicloudsdkfrs==3.1.127', - 'huaweicloudsdkfunctiongraph==3.1.127', - 'huaweicloudsdkga==3.1.127', - 'huaweicloudsdkgaussdb==3.1.127', - 'huaweicloudsdkgaussdbfornosql==3.1.127', - 'huaweicloudsdkgaussdbforopengauss==3.1.127', - 'huaweicloudsdkgeip==3.1.127', - 'huaweicloudsdkges==3.1.127', - 'huaweicloudsdkgsl==3.1.127', - 'huaweicloudsdkhilens==3.1.127', - 'huaweicloudsdkhss==3.1.127', - 'huaweicloudsdkiam==3.1.127', - 'huaweicloudsdkiamaccessanalyzer==3.1.127', - 'huaweicloudsdkidentitycenter==3.1.127', - 'huaweicloudsdkidentitycenterstore==3.1.127', - 'huaweicloudsdkidme==3.1.127', - 'huaweicloudsdkidmeclassicapi==3.1.127', - 'huaweicloudsdkiec==3.1.127', - 'huaweicloudsdkief==3.1.127', - 'huaweicloudsdkimage==3.1.127', - 'huaweicloudsdkimagesearch==3.1.127', - 'huaweicloudsdkims==3.1.127', - 'huaweicloudsdkiotanalytics==3.1.127', - 'huaweicloudsdkiotda==3.1.127', - 'huaweicloudsdkiotdm==3.1.127', - 'huaweicloudsdkiotedge==3.1.127', - 'huaweicloudsdkivs==3.1.127', - 'huaweicloudsdkkafka==3.1.127', - 'huaweicloudsdkkms==3.1.127', - 'huaweicloudsdkkoomessage==3.1.127', - 'huaweicloudsdkkps==3.1.127', - 'huaweicloudsdklakeformation==3.1.127', - 'huaweicloudsdklive==3.1.127', - 'huaweicloudsdklts==3.1.127', - 'huaweicloudsdkmapds==3.1.127', - 'huaweicloudsdkmas==3.1.127', - 'huaweicloudsdkmastudio==3.1.127', - 'huaweicloudsdkmeeting==3.1.127', - 'huaweicloudsdkmetastudio==3.1.127', - 'huaweicloudsdkmoderation==3.1.127', - 'huaweicloudsdkmpc==3.1.127', - 'huaweicloudsdkmrs==3.1.127', - 'huaweicloudsdkmsgsms==3.1.127', - 'huaweicloudsdkmssi==3.1.127', - 'huaweicloudsdknat==3.1.127', - 'huaweicloudsdknlp==3.1.127', - 'huaweicloudsdkobs==3.1.127', - 'huaweicloudsdkocr==3.1.127', - 'huaweicloudsdkoctopus==3.1.127', - 'huaweicloudsdkoms==3.1.127', - 'huaweicloudsdkoptverse==3.1.127', - 'huaweicloudsdkorganizations==3.1.127', - 'huaweicloudsdkorgid==3.1.127', - 'huaweicloudsdkoroas==3.1.127', - 'huaweicloudsdkosm==3.1.127', - 'huaweicloudsdkpangulargemodels==3.1.127', - 'huaweicloudsdkprojectman==3.1.127', - 'huaweicloudsdkrabbitmq==3.1.127', - 'huaweicloudsdkram==3.1.127', - 'huaweicloudsdkrds==3.1.127', - 'huaweicloudsdkres==3.1.127', - 'huaweicloudsdkrgc==3.1.127', - 'huaweicloudsdkrms==3.1.127', - 'huaweicloudsdkrocketmq==3.1.127', - 'huaweicloudsdkroma==3.1.127', - 'huaweicloudsdksa==3.1.127', - 'huaweicloudsdkscm==3.1.127', - 'huaweicloudsdksdrs==3.1.127', - 'huaweicloudsdksecmaster==3.1.127', - 'huaweicloudsdkservicestage==3.1.127', - 'huaweicloudsdksfsturbo==3.1.127', - 'huaweicloudsdksis==3.1.127', - 'huaweicloudsdksmn==3.1.127', - 'huaweicloudsdksms==3.1.127', - 'huaweicloudsdksmsapi==3.1.127', - 'huaweicloudsdksts==3.1.127', - 'huaweicloudsdkswr==3.1.127', - 'huaweicloudsdktics==3.1.127', - 'huaweicloudsdktms==3.1.127', - 'huaweicloudsdkugo==3.1.127', - 'huaweicloudsdkvas==3.1.127', - 'huaweicloudsdkvcm==3.1.127', - 'huaweicloudsdkvod==3.1.127', - 'huaweicloudsdkvpc==3.1.127', - 'huaweicloudsdkvpcep==3.1.127', - 'huaweicloudsdkvpn==3.1.127', - 'huaweicloudsdkwaf==3.1.127', - 'huaweicloudsdkworkspace==3.1.127', - 'huaweicloudsdkworkspaceapp==3.1.127', + 'huaweicloudsdkcore==3.1.128', + 'huaweicloudsdkaad==3.1.128', + 'huaweicloudsdkantiddos==3.1.128', + 'huaweicloudsdkaom==3.1.128', + 'huaweicloudsdkaos==3.1.128', + 'huaweicloudsdkapig==3.1.128', + 'huaweicloudsdkapm==3.1.128', + 'huaweicloudsdkas==3.1.128', + 'huaweicloudsdkasm==3.1.128', + 'huaweicloudsdkbcs==3.1.128', + 'huaweicloudsdkbms==3.1.128', + 'huaweicloudsdkbss==3.1.128', + 'huaweicloudsdkbssintl==3.1.128', + 'huaweicloudsdkcae==3.1.128', + 'huaweicloudsdkcampusgo==3.1.128', + 'huaweicloudsdkcbh==3.1.128', + 'huaweicloudsdkcbr==3.1.128', + 'huaweicloudsdkcbs==3.1.128', + 'huaweicloudsdkcc==3.1.128', + 'huaweicloudsdkcce==3.1.128', + 'huaweicloudsdkccm==3.1.128', + 'huaweicloudsdkcdm==3.1.128', + 'huaweicloudsdkcdn==3.1.128', + 'huaweicloudsdkces==3.1.128', + 'huaweicloudsdkcfw==3.1.128', + 'huaweicloudsdkcgs==3.1.128', + 'huaweicloudsdkclassroom==3.1.128', + 'huaweicloudsdkcloudide==3.1.128', + 'huaweicloudsdkcloudpond==3.1.128', + 'huaweicloudsdkcloudrtc==3.1.128', + 'huaweicloudsdkcloudtable==3.1.128', + 'huaweicloudsdkcloudtest==3.1.128', + 'huaweicloudsdkcoc==3.1.128', + 'huaweicloudsdkcodeartsartifact==3.1.128', + 'huaweicloudsdkcodeartsbuild==3.1.128', + 'huaweicloudsdkcodeartscheck==3.1.128', + 'huaweicloudsdkcodeartsdeploy==3.1.128', + 'huaweicloudsdkcodeartsgovernance==3.1.128', + 'huaweicloudsdkcodeartsinspector==3.1.128', + 'huaweicloudsdkcodeartspipeline==3.1.128', + 'huaweicloudsdkcodecraft==3.1.128', + 'huaweicloudsdkcodehub==3.1.128', + 'huaweicloudsdkconfig==3.1.128', + 'huaweicloudsdkcph==3.1.128', + 'huaweicloudsdkcpts==3.1.128', + 'huaweicloudsdkcse==3.1.128', + 'huaweicloudsdkcsms==3.1.128', + 'huaweicloudsdkcss==3.1.128', + 'huaweicloudsdkcts==3.1.128', + 'huaweicloudsdkdas==3.1.128', + 'huaweicloudsdkdataartsfabric==3.1.128', + 'huaweicloudsdkdataartsfabricep==3.1.128', + 'huaweicloudsdkdataartsstudio==3.1.128', + 'huaweicloudsdkdbss==3.1.128', + 'huaweicloudsdkdc==3.1.128', + 'huaweicloudsdkdcs==3.1.128', + 'huaweicloudsdkddm==3.1.128', + 'huaweicloudsdkdds==3.1.128', + 'huaweicloudsdkdeh==3.1.128', + 'huaweicloudsdkdevstar==3.1.128', + 'huaweicloudsdkdgc==3.1.128', + 'huaweicloudsdkdis==3.1.128', + 'huaweicloudsdkdlf==3.1.128', + 'huaweicloudsdkdli==3.1.128', + 'huaweicloudsdkdns==3.1.128', + 'huaweicloudsdkdris==3.1.128', + 'huaweicloudsdkdrs==3.1.128', + 'huaweicloudsdkdsc==3.1.128', + 'huaweicloudsdkdwr==3.1.128', + 'huaweicloudsdkdws==3.1.128', + 'huaweicloudsdkec==3.1.128', + 'huaweicloudsdkecs==3.1.128', + 'huaweicloudsdkedgesec==3.1.128', + 'huaweicloudsdkeg==3.1.128', + 'huaweicloudsdkeihealth==3.1.128', + 'huaweicloudsdkeip==3.1.128', + 'huaweicloudsdkelb==3.1.128', + 'huaweicloudsdkeps==3.1.128', + 'huaweicloudsdker==3.1.128', + 'huaweicloudsdkevs==3.1.128', + 'huaweicloudsdkfrs==3.1.128', + 'huaweicloudsdkfunctiongraph==3.1.128', + 'huaweicloudsdkga==3.1.128', + 'huaweicloudsdkgaussdb==3.1.128', + 'huaweicloudsdkgaussdbfornosql==3.1.128', + 'huaweicloudsdkgaussdbforopengauss==3.1.128', + 'huaweicloudsdkgeip==3.1.128', + 'huaweicloudsdkges==3.1.128', + 'huaweicloudsdkgsl==3.1.128', + 'huaweicloudsdkhilens==3.1.128', + 'huaweicloudsdkhss==3.1.128', + 'huaweicloudsdkiam==3.1.128', + 'huaweicloudsdkiamaccessanalyzer==3.1.128', + 'huaweicloudsdkidentitycenter==3.1.128', + 'huaweicloudsdkidentitycenterstore==3.1.128', + 'huaweicloudsdkidme==3.1.128', + 'huaweicloudsdkidmeclassicapi==3.1.128', + 'huaweicloudsdkiec==3.1.128', + 'huaweicloudsdkief==3.1.128', + 'huaweicloudsdkimage==3.1.128', + 'huaweicloudsdkimagesearch==3.1.128', + 'huaweicloudsdkims==3.1.128', + 'huaweicloudsdkiotanalytics==3.1.128', + 'huaweicloudsdkiotda==3.1.128', + 'huaweicloudsdkiotdm==3.1.128', + 'huaweicloudsdkiotedge==3.1.128', + 'huaweicloudsdkivs==3.1.128', + 'huaweicloudsdkkafka==3.1.128', + 'huaweicloudsdkkms==3.1.128', + 'huaweicloudsdkkoomessage==3.1.128', + 'huaweicloudsdkkps==3.1.128', + 'huaweicloudsdklakeformation==3.1.128', + 'huaweicloudsdklive==3.1.128', + 'huaweicloudsdklts==3.1.128', + 'huaweicloudsdkmapds==3.1.128', + 'huaweicloudsdkmas==3.1.128', + 'huaweicloudsdkmastudio==3.1.128', + 'huaweicloudsdkmeeting==3.1.128', + 'huaweicloudsdkmetastudio==3.1.128', + 'huaweicloudsdkmoderation==3.1.128', + 'huaweicloudsdkmpc==3.1.128', + 'huaweicloudsdkmrs==3.1.128', + 'huaweicloudsdkmsgsms==3.1.128', + 'huaweicloudsdkmssi==3.1.128', + 'huaweicloudsdknat==3.1.128', + 'huaweicloudsdknlp==3.1.128', + 'huaweicloudsdkobs==3.1.128', + 'huaweicloudsdkocr==3.1.128', + 'huaweicloudsdkoctopus==3.1.128', + 'huaweicloudsdkoms==3.1.128', + 'huaweicloudsdkoptverse==3.1.128', + 'huaweicloudsdkorganizations==3.1.128', + 'huaweicloudsdkorgid==3.1.128', + 'huaweicloudsdkoroas==3.1.128', + 'huaweicloudsdkosm==3.1.128', + 'huaweicloudsdkpangulargemodels==3.1.128', + 'huaweicloudsdkprojectman==3.1.128', + 'huaweicloudsdkrabbitmq==3.1.128', + 'huaweicloudsdkram==3.1.128', + 'huaweicloudsdkrds==3.1.128', + 'huaweicloudsdkres==3.1.128', + 'huaweicloudsdkrgc==3.1.128', + 'huaweicloudsdkrms==3.1.128', + 'huaweicloudsdkrocketmq==3.1.128', + 'huaweicloudsdkroma==3.1.128', + 'huaweicloudsdksa==3.1.128', + 'huaweicloudsdkscm==3.1.128', + 'huaweicloudsdksdrs==3.1.128', + 'huaweicloudsdksecmaster==3.1.128', + 'huaweicloudsdkservicestage==3.1.128', + 'huaweicloudsdksfsturbo==3.1.128', + 'huaweicloudsdksis==3.1.128', + 'huaweicloudsdksmn==3.1.128', + 'huaweicloudsdksms==3.1.128', + 'huaweicloudsdksmsapi==3.1.128', + 'huaweicloudsdksts==3.1.128', + 'huaweicloudsdkswr==3.1.128', + 'huaweicloudsdktics==3.1.128', + 'huaweicloudsdktms==3.1.128', + 'huaweicloudsdkugo==3.1.128', + 'huaweicloudsdkvas==3.1.128', + 'huaweicloudsdkvcm==3.1.128', + 'huaweicloudsdkvod==3.1.128', + 'huaweicloudsdkvpc==3.1.128', + 'huaweicloudsdkvpcep==3.1.128', + 'huaweicloudsdkvpn==3.1.128', + 'huaweicloudsdkwaf==3.1.128', + 'huaweicloudsdkworkspace==3.1.128', + 'huaweicloudsdkworkspaceapp==3.1.128', ] OPTIONS = { diff --git a/huaweicloud-sdk-antiddos/requirements.txt b/huaweicloud-sdk-antiddos/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-antiddos/requirements.txt +++ b/huaweicloud-sdk-antiddos/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-antiddos/setup.py b/huaweicloud-sdk-antiddos/setup.py index f79e9c18e8..aa27fd9f72 100644 --- a/huaweicloud-sdk-antiddos/setup.py +++ b/huaweicloud-sdk-antiddos/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkantiddos" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-aom/requirements.txt b/huaweicloud-sdk-aom/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-aom/requirements.txt +++ b/huaweicloud-sdk-aom/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-aom/setup.py b/huaweicloud-sdk-aom/setup.py index 11704ff4e1..9c0c6b2fa5 100644 --- a/huaweicloud-sdk-aom/setup.py +++ b/huaweicloud-sdk-aom/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkaom" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-aos/requirements.txt b/huaweicloud-sdk-aos/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-aos/requirements.txt +++ b/huaweicloud-sdk-aos/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-aos/setup.py b/huaweicloud-sdk-aos/setup.py index d6627adee9..c4f2056f9d 100644 --- a/huaweicloud-sdk-aos/setup.py +++ b/huaweicloud-sdk-aos/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkaos" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-apig/requirements.txt b/huaweicloud-sdk-apig/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-apig/requirements.txt +++ b/huaweicloud-sdk-apig/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-apig/setup.py b/huaweicloud-sdk-apig/setup.py index 1e0443fda9..57ca7858ce 100644 --- a/huaweicloud-sdk-apig/setup.py +++ b/huaweicloud-sdk-apig/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkapig" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-apm/requirements.txt b/huaweicloud-sdk-apm/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-apm/requirements.txt +++ b/huaweicloud-sdk-apm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-apm/setup.py b/huaweicloud-sdk-apm/setup.py index 3acd328a96..37296840f4 100644 --- a/huaweicloud-sdk-apm/setup.py +++ b/huaweicloud-sdk-apm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkapm" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-as/requirements.txt b/huaweicloud-sdk-as/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-as/requirements.txt +++ b/huaweicloud-sdk-as/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-as/setup.py b/huaweicloud-sdk-as/setup.py index 38d6ea61a3..39f731afe0 100644 --- a/huaweicloud-sdk-as/setup.py +++ b/huaweicloud-sdk-as/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkas" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-asm/requirements.txt b/huaweicloud-sdk-asm/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-asm/requirements.txt +++ b/huaweicloud-sdk-asm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-asm/setup.py b/huaweicloud-sdk-asm/setup.py index c40bc8e44b..149c224c65 100644 --- a/huaweicloud-sdk-asm/setup.py +++ b/huaweicloud-sdk-asm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkasm" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bcs/requirements.txt b/huaweicloud-sdk-bcs/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-bcs/requirements.txt +++ b/huaweicloud-sdk-bcs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-bcs/setup.py b/huaweicloud-sdk-bcs/setup.py index a5fdb3adc3..3d077c02e8 100644 --- a/huaweicloud-sdk-bcs/setup.py +++ b/huaweicloud-sdk-bcs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkbcs" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bms/requirements.txt b/huaweicloud-sdk-bms/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-bms/requirements.txt +++ b/huaweicloud-sdk-bms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-bms/setup.py b/huaweicloud-sdk-bms/setup.py index f0a68164a3..84b6df55de 100644 --- a/huaweicloud-sdk-bms/setup.py +++ b/huaweicloud-sdk-bms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkbms" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bss/requirements.txt b/huaweicloud-sdk-bss/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-bss/requirements.txt +++ b/huaweicloud-sdk-bss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-bss/setup.py b/huaweicloud-sdk-bss/setup.py index e55654693b..4a3ece4538 100644 --- a/huaweicloud-sdk-bss/setup.py +++ b/huaweicloud-sdk-bss/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkbss" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bssintl/requirements.txt b/huaweicloud-sdk-bssintl/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-bssintl/requirements.txt +++ b/huaweicloud-sdk-bssintl/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-bssintl/setup.py b/huaweicloud-sdk-bssintl/setup.py index 5b6d648e6f..ef1602cc3a 100644 --- a/huaweicloud-sdk-bssintl/setup.py +++ b/huaweicloud-sdk-bssintl/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkbssintl" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/region/cae_region.py b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/region/cae_region.py index 93a81916d4..5218721703 100644 --- a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/region/cae_region.py +++ b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/region/cae_region.py @@ -7,15 +7,20 @@ class CaeRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CAE") CN_NORTH_4 = Region("cn-north-4", - "https://cae.cn-north-4.myhuaweicloud.com") + "https://cae.cn-north-4.myhuaweicloud.com", + "https://cae.cn-north-4.myhuaweicloud.cn") CN_EAST_3 = Region("cn-east-3", - "https://cae.cn-east-3.myhuaweicloud.com") + "https://cae.cn-east-3.myhuaweicloud.com", + "https://cae.cn-east-3.myhuaweicloud.cn") CN_SOUTH_1 = Region("cn-south-1", - "https://cae.cn-south-1.myhuaweicloud.com") + "https://cae.cn-south-1.myhuaweicloud.com", + "https://cae.cn-south-1.myhuaweicloud.cn") AP_SOUTHEAST_3 = Region("ap-southeast-3", - "https://cae.ap-southeast-3.myhuaweicloud.com") + "https://cae.ap-southeast-3.myhuaweicloud.com", + "https://cae.ap-southeast-3.myhuaweicloud.cn") AF_SOUTH_1 = Region("af-south-1", - "https://cae.af-south-1.myhuaweicloud.com") + "https://cae.af-south-1.myhuaweicloud.com", + "https://cae.af-south-1.myhuaweicloud.cn") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-cae/requirements.txt b/huaweicloud-sdk-cae/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-cae/requirements.txt +++ b/huaweicloud-sdk-cae/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-cae/setup.py b/huaweicloud-sdk-cae/setup.py index 4d8aa383c7..845aaf268d 100644 --- a/huaweicloud-sdk-cae/setup.py +++ b/huaweicloud-sdk-cae/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcae" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-campusgo/requirements.txt b/huaweicloud-sdk-campusgo/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-campusgo/requirements.txt +++ b/huaweicloud-sdk-campusgo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-campusgo/setup.py b/huaweicloud-sdk-campusgo/setup.py index 04ea9c3da1..5f6686d817 100644 --- a/huaweicloud-sdk-campusgo/setup.py +++ b/huaweicloud-sdk-campusgo/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcampusgo" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbh/requirements.txt b/huaweicloud-sdk-cbh/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-cbh/requirements.txt +++ b/huaweicloud-sdk-cbh/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-cbh/setup.py b/huaweicloud-sdk-cbh/setup.py index 9c62982da7..80810edada 100644 --- a/huaweicloud-sdk-cbh/setup.py +++ b/huaweicloud-sdk-cbh/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcbh" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbr/requirements.txt b/huaweicloud-sdk-cbr/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-cbr/requirements.txt +++ b/huaweicloud-sdk-cbr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-cbr/setup.py b/huaweicloud-sdk-cbr/setup.py index 3bcac6461b..b8c4c868de 100644 --- a/huaweicloud-sdk-cbr/setup.py +++ b/huaweicloud-sdk-cbr/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcbr" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbs/requirements.txt b/huaweicloud-sdk-cbs/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-cbs/requirements.txt +++ b/huaweicloud-sdk-cbs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-cbs/setup.py b/huaweicloud-sdk-cbs/setup.py index 31bcdd2721..78dd7f603b 100644 --- a/huaweicloud-sdk-cbs/setup.py +++ b/huaweicloud-sdk-cbs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcbs" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cc/requirements.txt b/huaweicloud-sdk-cc/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-cc/requirements.txt +++ b/huaweicloud-sdk-cc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-cc/setup.py b/huaweicloud-sdk-cc/setup.py index 726ff41adf..0717c70396 100644 --- a/huaweicloud-sdk-cc/setup.py +++ b/huaweicloud-sdk-cc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcc" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/support_versions.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/support_versions.py index 057aed0dff..f31db48539 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/support_versions.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/support_versions.py @@ -18,15 +18,17 @@ class SupportVersions: openapi_types = { 'cluster_type': 'str', - 'cluster_version': 'list[str]' + 'cluster_version': 'list[str]', + 'category': 'list[str]' } attribute_map = { 'cluster_type': 'clusterType', - 'cluster_version': 'clusterVersion' + 'cluster_version': 'clusterVersion', + 'category': 'category' } - def __init__(self, cluster_type=None, cluster_version=None): + def __init__(self, cluster_type=None, cluster_version=None, category=None): """SupportVersions The model defined in huaweicloud sdk @@ -35,16 +37,21 @@ def __init__(self, cluster_type=None, cluster_version=None): :type cluster_type: str :param cluster_version: 支持的集群版本(正则表达式) :type cluster_version: list[str] + :param category: 作用的集群类型 **取值范围:** - CCE:CCE Standard集群 - Turbo:CCE Turbo集群 - Autopilot:CCE Autopilot集群 **默认取值** 为空时默认为CCE Standard,CCE Turbo集群 + :type category: list[str] """ self._cluster_type = None self._cluster_version = None + self._category = None self.discriminator = None self.cluster_type = cluster_type self.cluster_version = cluster_version + if category is not None: + self.category = category @property def cluster_type(self): @@ -90,6 +97,28 @@ def cluster_version(self, cluster_version): """ self._cluster_version = cluster_version + @property + def category(self): + """Gets the category of this SupportVersions. + + 作用的集群类型 **取值范围:** - CCE:CCE Standard集群 - Turbo:CCE Turbo集群 - Autopilot:CCE Autopilot集群 **默认取值** 为空时默认为CCE Standard,CCE Turbo集群 + + :return: The category of this SupportVersions. + :rtype: list[str] + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this SupportVersions. + + 作用的集群类型 **取值范围:** - CCE:CCE Standard集群 - Turbo:CCE Turbo集群 - Autopilot:CCE Autopilot集群 **默认取值** 为空时默认为CCE Standard,CCE Turbo集群 + + :param category: The category of this SupportVersions. + :type category: list[str] + """ + self._category = category + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/region/cce_region.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/region/cce_region.py index 87334bea7e..a1c4c691dd 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/region/cce_region.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/region/cce_region.py @@ -68,6 +68,8 @@ class CceRegion: "https://cce.af-north-1.myhuaweicloud.com") CN_EAST_5 = Region("cn-east-5", "https://cce.cn-east-5.myhuaweicloud.com") + AP_SOUTHEAST_5 = Region("ap-southeast-5", + "https://cce.ap-southeast-5.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, @@ -101,6 +103,7 @@ class CceRegion: "cn-east-4": CN_EAST_4, "af-north-1": AF_NORTH_1, "cn-east-5": CN_EAST_5, + "ap-southeast-5": AP_SOUTHEAST_5, } @classmethod diff --git a/huaweicloud-sdk-cce/requirements.txt b/huaweicloud-sdk-cce/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-cce/requirements.txt +++ b/huaweicloud-sdk-cce/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-cce/setup.py b/huaweicloud-sdk-cce/setup.py index d248be525e..ce3b2bd1d2 100644 --- a/huaweicloud-sdk-cce/setup.py +++ b/huaweicloud-sdk-cce/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcce" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ccm/requirements.txt b/huaweicloud-sdk-ccm/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-ccm/requirements.txt +++ b/huaweicloud-sdk-ccm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-ccm/setup.py b/huaweicloud-sdk-ccm/setup.py index 7816477da6..0371ebe57c 100644 --- a/huaweicloud-sdk-ccm/setup.py +++ b/huaweicloud-sdk-ccm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkccm" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cdm/requirements.txt b/huaweicloud-sdk-cdm/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-cdm/requirements.txt +++ b/huaweicloud-sdk-cdm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-cdm/setup.py b/huaweicloud-sdk-cdm/setup.py index 1488b18a59..ab5c1c8a9a 100644 --- a/huaweicloud-sdk-cdm/setup.py +++ b/huaweicloud-sdk-cdm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcdm" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cdn/requirements.txt b/huaweicloud-sdk-cdn/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-cdn/requirements.txt +++ b/huaweicloud-sdk-cdn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-cdn/setup.py b/huaweicloud-sdk-cdn/setup.py index 658f09ffad..9968439f63 100644 --- a/huaweicloud-sdk-cdn/setup.py +++ b/huaweicloud-sdk-cdn/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcdn" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ces/requirements.txt b/huaweicloud-sdk-ces/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-ces/requirements.txt +++ b/huaweicloud-sdk-ces/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-ces/setup.py b/huaweicloud-sdk-ces/setup.py index 23570b514f..7b4942e2ef 100644 --- a/huaweicloud-sdk-ces/setup.py +++ b/huaweicloud-sdk-ces/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkces" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cfw/requirements.txt b/huaweicloud-sdk-cfw/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-cfw/requirements.txt +++ b/huaweicloud-sdk-cfw/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-cfw/setup.py b/huaweicloud-sdk-cfw/setup.py index 1118d74547..ef6229d6b8 100644 --- a/huaweicloud-sdk-cfw/setup.py +++ b/huaweicloud-sdk-cfw/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcfw" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cgs/requirements.txt b/huaweicloud-sdk-cgs/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-cgs/requirements.txt +++ b/huaweicloud-sdk-cgs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-cgs/setup.py b/huaweicloud-sdk-cgs/setup.py index d89855c4bf..198ad7814c 100644 --- a/huaweicloud-sdk-cgs/setup.py +++ b/huaweicloud-sdk-cgs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcgs" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-classroom/requirements.txt b/huaweicloud-sdk-classroom/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-classroom/requirements.txt +++ b/huaweicloud-sdk-classroom/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-classroom/setup.py b/huaweicloud-sdk-classroom/setup.py index 71b4a7d77a..eec230c7f6 100644 --- a/huaweicloud-sdk-classroom/setup.py +++ b/huaweicloud-sdk-classroom/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkclassroom" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudide/requirements.txt b/huaweicloud-sdk-cloudide/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-cloudide/requirements.txt +++ b/huaweicloud-sdk-cloudide/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudide/setup.py b/huaweicloud-sdk-cloudide/setup.py index d97c2c976a..291e0d2b8e 100644 --- a/huaweicloud-sdk-cloudide/setup.py +++ b/huaweicloud-sdk-cloudide/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudide" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudpond/requirements.txt b/huaweicloud-sdk-cloudpond/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-cloudpond/requirements.txt +++ b/huaweicloud-sdk-cloudpond/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudpond/setup.py b/huaweicloud-sdk-cloudpond/setup.py index 8065482305..36389600e7 100644 --- a/huaweicloud-sdk-cloudpond/setup.py +++ b/huaweicloud-sdk-cloudpond/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudpond" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudrtc/requirements.txt b/huaweicloud-sdk-cloudrtc/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-cloudrtc/requirements.txt +++ b/huaweicloud-sdk-cloudrtc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudrtc/setup.py b/huaweicloud-sdk-cloudrtc/setup.py index ec4582d3bd..1c4093c771 100644 --- a/huaweicloud-sdk-cloudrtc/setup.py +++ b/huaweicloud-sdk-cloudrtc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudrtc" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudtable/requirements.txt b/huaweicloud-sdk-cloudtable/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-cloudtable/requirements.txt +++ b/huaweicloud-sdk-cloudtable/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudtable/setup.py b/huaweicloud-sdk-cloudtable/setup.py index f13193c9a1..66b4a33ae5 100644 --- a/huaweicloud-sdk-cloudtable/setup.py +++ b/huaweicloud-sdk-cloudtable/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudtable" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudtest/requirements.txt b/huaweicloud-sdk-cloudtest/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-cloudtest/requirements.txt +++ b/huaweicloud-sdk-cloudtest/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudtest/setup.py b/huaweicloud-sdk-cloudtest/setup.py index e7fa38c154..934da620eb 100644 --- a/huaweicloud-sdk-cloudtest/setup.py +++ b/huaweicloud-sdk-cloudtest/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudtest" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-coc/requirements.txt b/huaweicloud-sdk-coc/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-coc/requirements.txt +++ b/huaweicloud-sdk-coc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-coc/setup.py b/huaweicloud-sdk-coc/setup.py index 497c351512..4509721b7c 100644 --- a/huaweicloud-sdk-coc/setup.py +++ b/huaweicloud-sdk-coc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcoc" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsartifact/requirements.txt b/huaweicloud-sdk-codeartsartifact/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-codeartsartifact/requirements.txt +++ b/huaweicloud-sdk-codeartsartifact/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsartifact/setup.py b/huaweicloud-sdk-codeartsartifact/setup.py index b4f7dd90e1..6e05112691 100644 --- a/huaweicloud-sdk-codeartsartifact/setup.py +++ b/huaweicloud-sdk-codeartsartifact/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsartifact" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsbuild/requirements.txt b/huaweicloud-sdk-codeartsbuild/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-codeartsbuild/requirements.txt +++ b/huaweicloud-sdk-codeartsbuild/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsbuild/setup.py b/huaweicloud-sdk-codeartsbuild/setup.py index 890e157d69..5042967e03 100644 --- a/huaweicloud-sdk-codeartsbuild/setup.py +++ b/huaweicloud-sdk-codeartsbuild/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsbuild" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartscheck/requirements.txt b/huaweicloud-sdk-codeartscheck/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-codeartscheck/requirements.txt +++ b/huaweicloud-sdk-codeartscheck/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartscheck/setup.py b/huaweicloud-sdk-codeartscheck/setup.py index 2726f6507c..ad65677f73 100644 --- a/huaweicloud-sdk-codeartscheck/setup.py +++ b/huaweicloud-sdk-codeartscheck/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartscheck" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsdeploy/requirements.txt b/huaweicloud-sdk-codeartsdeploy/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-codeartsdeploy/requirements.txt +++ b/huaweicloud-sdk-codeartsdeploy/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsdeploy/setup.py b/huaweicloud-sdk-codeartsdeploy/setup.py index 89b7588cdc..d7f1f0c2f5 100644 --- a/huaweicloud-sdk-codeartsdeploy/setup.py +++ b/huaweicloud-sdk-codeartsdeploy/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsdeploy" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsgovernance/requirements.txt b/huaweicloud-sdk-codeartsgovernance/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-codeartsgovernance/requirements.txt +++ b/huaweicloud-sdk-codeartsgovernance/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsgovernance/setup.py b/huaweicloud-sdk-codeartsgovernance/setup.py index a7ab784f2d..ea2a0c675e 100644 --- a/huaweicloud-sdk-codeartsgovernance/setup.py +++ b/huaweicloud-sdk-codeartsgovernance/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsgovernance" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsinspector/requirements.txt b/huaweicloud-sdk-codeartsinspector/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-codeartsinspector/requirements.txt +++ b/huaweicloud-sdk-codeartsinspector/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsinspector/setup.py b/huaweicloud-sdk-codeartsinspector/setup.py index cb5b5494cc..f4d7e656e7 100644 --- a/huaweicloud-sdk-codeartsinspector/setup.py +++ b/huaweicloud-sdk-codeartsinspector/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsinspector" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/job_run.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/job_run.py index bd30fa9d48..ca2869ba0a 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/job_run.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/job_run.py @@ -20,7 +20,7 @@ class JobRun: 'id': 'str', 'category': 'str', 'sequence': 'int', - '_async': 'str', + '_async': 'bool', 'name': 'str', 'identifier': 'str', 'depends_on': 'list[str]', @@ -70,7 +70,7 @@ def __init__(self, id=None, category=None, sequence=None, _async=None, name=None :param sequence: 序列号 :type sequence: int :param _async: 是否异步 - :type _async: str + :type _async: bool :param name: 任务名称 :type name: str :param identifier: 任务唯一标识 @@ -233,7 +233,7 @@ def _async(self): 是否异步 :return: The _async of this JobRun. - :rtype: str + :rtype: bool """ return self.__async @@ -244,7 +244,7 @@ def _async(self, _async): 是否异步 :param _async: The _async of this JobRun. - :type _async: str + :type _async: bool """ self.__async = _async diff --git a/huaweicloud-sdk-codeartspipeline/requirements.txt b/huaweicloud-sdk-codeartspipeline/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-codeartspipeline/requirements.txt +++ b/huaweicloud-sdk-codeartspipeline/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartspipeline/setup.py b/huaweicloud-sdk-codeartspipeline/setup.py index 870f5e10e5..e1be70a498 100644 --- a/huaweicloud-sdk-codeartspipeline/setup.py +++ b/huaweicloud-sdk-codeartspipeline/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartspipeline" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codecraft/requirements.txt b/huaweicloud-sdk-codecraft/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-codecraft/requirements.txt +++ b/huaweicloud-sdk-codecraft/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-codecraft/setup.py b/huaweicloud-sdk-codecraft/setup.py index 54f1388265..e106a04a6b 100644 --- a/huaweicloud-sdk-codecraft/setup.py +++ b/huaweicloud-sdk-codecraft/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodecraft" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codehub/requirements.txt b/huaweicloud-sdk-codehub/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-codehub/requirements.txt +++ b/huaweicloud-sdk-codehub/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-codehub/setup.py b/huaweicloud-sdk-codehub/setup.py index 4d3dc06c76..40b3f6fef1 100644 --- a/huaweicloud-sdk-codehub/setup.py +++ b/huaweicloud-sdk-codehub/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodehub" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-config/requirements.txt b/huaweicloud-sdk-config/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-config/requirements.txt +++ b/huaweicloud-sdk-config/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-config/setup.py b/huaweicloud-sdk-config/setup.py index 981d3a0cc0..5b3269cc1c 100644 --- a/huaweicloud-sdk-config/setup.py +++ b/huaweicloud-sdk-config/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkconfig" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-core/setup.py b/huaweicloud-sdk-core/setup.py index f1dcc39458..70ed825eb7 100644 --- a/huaweicloud-sdk-core/setup.py +++ b/huaweicloud-sdk-core/setup.py @@ -22,7 +22,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcore" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cph/requirements.txt b/huaweicloud-sdk-cph/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-cph/requirements.txt +++ b/huaweicloud-sdk-cph/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-cph/setup.py b/huaweicloud-sdk-cph/setup.py index 130ba0c830..7bbac376d7 100644 --- a/huaweicloud-sdk-cph/setup.py +++ b/huaweicloud-sdk-cph/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcph" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cpts/requirements.txt b/huaweicloud-sdk-cpts/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-cpts/requirements.txt +++ b/huaweicloud-sdk-cpts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-cpts/setup.py b/huaweicloud-sdk-cpts/setup.py index 443740d665..c79c1ea6f7 100644 --- a/huaweicloud-sdk-cpts/setup.py +++ b/huaweicloud-sdk-cpts/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcpts" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cse/requirements.txt b/huaweicloud-sdk-cse/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-cse/requirements.txt +++ b/huaweicloud-sdk-cse/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-cse/setup.py b/huaweicloud-sdk-cse/setup.py index 5f61f418f6..417dabafe3 100644 --- a/huaweicloud-sdk-cse/setup.py +++ b/huaweicloud-sdk-cse/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcse" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-csms/requirements.txt b/huaweicloud-sdk-csms/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-csms/requirements.txt +++ b/huaweicloud-sdk-csms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-csms/setup.py b/huaweicloud-sdk-csms/setup.py index 2fe8d87c58..273a5628e3 100644 --- a/huaweicloud-sdk-csms/setup.py +++ b/huaweicloud-sdk-csms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcsms" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-css/requirements.txt b/huaweicloud-sdk-css/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-css/requirements.txt +++ b/huaweicloud-sdk-css/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-css/setup.py b/huaweicloud-sdk-css/setup.py index 890c263754..f478f19f58 100644 --- a/huaweicloud-sdk-css/setup.py +++ b/huaweicloud-sdk-css/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcss" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cts/requirements.txt b/huaweicloud-sdk-cts/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-cts/requirements.txt +++ b/huaweicloud-sdk-cts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-cts/setup.py b/huaweicloud-sdk-cts/setup.py index 26b2fb41dc..a5f0392b05 100644 --- a/huaweicloud-sdk-cts/setup.py +++ b/huaweicloud-sdk-cts/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcts" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-das/requirements.txt b/huaweicloud-sdk-das/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-das/requirements.txt +++ b/huaweicloud-sdk-das/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-das/setup.py b/huaweicloud-sdk-das/setup.py index 494a164f4d..5e477a3e3a 100644 --- a/huaweicloud-sdk-das/setup.py +++ b/huaweicloud-sdk-das/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdas" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dataartsfabric/huaweicloudsdkdataartsfabric/v1/region/__init__.py b/huaweicloud-sdk-dataartsfabric/huaweicloudsdkdataartsfabric/v1/region/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/huaweicloud-sdk-dataartsfabric/huaweicloudsdkdataartsfabric/v1/region/dataartsfabric_region.py b/huaweicloud-sdk-dataartsfabric/huaweicloudsdkdataartsfabric/v1/region/dataartsfabric_region.py new file mode 100644 index 0000000000..4a1ff7790c --- /dev/null +++ b/huaweicloud-sdk-dataartsfabric/huaweicloudsdkdataartsfabric/v1/region/dataartsfabric_region.py @@ -0,0 +1,34 @@ +# coding: utf-8 + +from huaweicloudsdkcore.region.region import Region +from huaweicloudsdkcore.region.provider import RegionProviderChain + +class DataArtsFabricRegion: + _PROVIDER = RegionProviderChain.get_default_region_provider_chain("DATAARTSFABRIC") + + CN_NORTH_4 = Region("cn-north-4", + "https://fabric.cn-north-4.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://fabric.cn-southwest-2.myhuaweicloud.com") + + static_fields = { + "cn-north-4": CN_NORTH_4, + "cn-southwest-2": CN_SOUTHWEST_2, + } + + @classmethod + def value_of(cls, region_id, static_fields=None): + if not region_id: + raise KeyError("Unexpected empty parameter: region_id") + + fields = static_fields or cls.static_fields + + region = cls._PROVIDER.get_region(region_id) + if region: + return region + + if region_id in fields: + return fields.get(region_id) + + raise KeyError("region_id '%s' is not in the following supported regions of service 'DataArtsFabric': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-dataartsfabric/requirements.txt b/huaweicloud-sdk-dataartsfabric/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-dataartsfabric/requirements.txt +++ b/huaweicloud-sdk-dataartsfabric/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-dataartsfabric/setup.py b/huaweicloud-sdk-dataartsfabric/setup.py index f2a84c134e..21e27c3ea2 100644 --- a/huaweicloud-sdk-dataartsfabric/setup.py +++ b/huaweicloud-sdk-dataartsfabric/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdataartsfabric" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dataartsfabricep/huaweicloudsdkdataartsfabricep/v1/region/__init__.py b/huaweicloud-sdk-dataartsfabricep/huaweicloudsdkdataartsfabricep/v1/region/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/huaweicloud-sdk-dataartsfabricep/huaweicloudsdkdataartsfabricep/v1/region/dataartsfabricep_region.py b/huaweicloud-sdk-dataartsfabricep/huaweicloudsdkdataartsfabricep/v1/region/dataartsfabricep_region.py new file mode 100644 index 0000000000..8c223d83ac --- /dev/null +++ b/huaweicloud-sdk-dataartsfabricep/huaweicloudsdkdataartsfabricep/v1/region/dataartsfabricep_region.py @@ -0,0 +1,34 @@ +# coding: utf-8 + +from huaweicloudsdkcore.region.region import Region +from huaweicloudsdkcore.region.provider import RegionProviderChain + +class DataArtsFabricEpRegion: + _PROVIDER = RegionProviderChain.get_default_region_provider_chain("DATAARTSFABRICEP") + + CN_NORTH_4 = Region("cn-north-4", + "https://fabric-ep.cn-north-4.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://fabric-ep.cn-southwest-2.myhuaweicloud.com") + + static_fields = { + "cn-north-4": CN_NORTH_4, + "cn-southwest-2": CN_SOUTHWEST_2, + } + + @classmethod + def value_of(cls, region_id, static_fields=None): + if not region_id: + raise KeyError("Unexpected empty parameter: region_id") + + fields = static_fields or cls.static_fields + + region = cls._PROVIDER.get_region(region_id) + if region: + return region + + if region_id in fields: + return fields.get(region_id) + + raise KeyError("region_id '%s' is not in the following supported regions of service 'DataArtsFabricEp': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-dataartsfabricep/requirements.txt b/huaweicloud-sdk-dataartsfabricep/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-dataartsfabricep/requirements.txt +++ b/huaweicloud-sdk-dataartsfabricep/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-dataartsfabricep/setup.py b/huaweicloud-sdk-dataartsfabricep/setup.py index 6ea4ebc7fc..736013888b 100644 --- a/huaweicloud-sdk-dataartsfabricep/setup.py +++ b/huaweicloud-sdk-dataartsfabricep/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdataartsfabricep" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/__init__.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/__init__.py index 09d629e61a..bfe27e319f 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/__init__.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/__init__.py @@ -766,6 +766,11 @@ from huaweicloudsdkdataartsstudio.v1.model.reset_link_attribute_and_standard_request import ResetLinkAttributeAndStandardRequest from huaweicloudsdkdataartsstudio.v1.model.reset_link_attribute_and_standard_response import ResetLinkAttributeAndStandardResponse from huaweicloudsdkdataartsstudio.v1.model.reset_link_attribute_and_standard_result_data import ResetLinkAttributeAndStandardResultData +from huaweicloudsdkdataartsstudio.v1.model.retry_factory_job_instance_body import RetryFactoryJobInstanceBody +from huaweicloudsdkdataartsstudio.v1.model.retry_factory_job_instance_body_jobs import RetryFactoryJobInstanceBodyJobs +from huaweicloudsdkdataartsstudio.v1.model.retry_factory_job_instance_body_task_retrys import RetryFactoryJobInstanceBodyTaskRetrys +from huaweicloudsdkdataartsstudio.v1.model.retry_factory_job_instance_request import RetryFactoryJobInstanceRequest +from huaweicloudsdkdataartsstudio.v1.model.retry_factory_job_instance_response import RetryFactoryJobInstanceResponse from huaweicloudsdkdataartsstudio.v1.model.role_action_query_dto import RoleActionQueryDTO from huaweicloudsdkdataartsstudio.v1.model.rollback_approval_request import RollbackApprovalRequest from huaweicloudsdkdataartsstudio.v1.model.rollback_approval_response import RollbackApprovalResponse diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_async_client.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_async_client.py index fe5193ef3c..e9cf2c35d0 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_async_client.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_async_client.py @@ -14104,6 +14104,77 @@ def _reset_link_attribute_and_standard_http_info(self, request): return http_info + def retry_factory_job_instance_async(self, request): + """重跑作业实例 + + 支持重跑作业实例以及上下游的作业实例。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for RetryFactoryJobInstance + :type request: :class:`huaweicloudsdkdataartsstudio.v1.RetryFactoryJobInstanceRequest` + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.RetryFactoryJobInstanceResponse` + """ + http_info = self._retry_factory_job_instance_http_info(request) + return self._call_api(**http_info) + + def retry_factory_job_instance_async_invoker(self, request): + http_info = self._retry_factory_job_instance_http_info(request) + return AsyncInvoker(self, http_info) + + def _retry_factory_job_instance_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/factory/jobs/{job_name}/instances/retry", + "request_type": request.__class__.__name__, + "response_type": "RetryFactoryJobInstanceResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'job_name' in local_var_params: + path_params['job_name'] = local_var_params['job_name'] + + query_params = [] + + header_params = {} + if 'workspace' in local_var_params: + header_params['workspace'] = local_var_params['workspace'] + if 'x_project_id' in local_var_params: + header_params['X-Project-Id'] = local_var_params['x_project_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def rollback_approval_async(self, request): """撤回审批单 diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_client.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_client.py index 55a56923a8..531b65f9eb 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_client.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_client.py @@ -14104,6 +14104,77 @@ def _reset_link_attribute_and_standard_http_info(cls, request): return http_info + def retry_factory_job_instance(self, request): + """重跑作业实例 + + 支持重跑作业实例以及上下游的作业实例。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for RetryFactoryJobInstance + :type request: :class:`huaweicloudsdkdataartsstudio.v1.RetryFactoryJobInstanceRequest` + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.RetryFactoryJobInstanceResponse` + """ + http_info = self._retry_factory_job_instance_http_info(request) + return self._call_api(**http_info) + + def retry_factory_job_instance_invoker(self, request): + http_info = self._retry_factory_job_instance_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _retry_factory_job_instance_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/factory/jobs/{job_name}/instances/retry", + "request_type": request.__class__.__name__, + "response_type": "RetryFactoryJobInstanceResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'job_name' in local_var_params: + path_params['job_name'] = local_var_params['job_name'] + + query_params = [] + + header_params = {} + if 'workspace' in local_var_params: + header_params['workspace'] = local_var_params['workspace'] + if 'x_project_id' in local_var_params: + header_params['X-Project-Id'] = local_var_params['x_project_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def rollback_approval(self, request): """撤回审批单 diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/__init__.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/__init__.py index f79e2fe50f..73f74f6afa 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/__init__.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/__init__.py @@ -764,6 +764,11 @@ from huaweicloudsdkdataartsstudio.v1.model.reset_link_attribute_and_standard_request import ResetLinkAttributeAndStandardRequest from huaweicloudsdkdataartsstudio.v1.model.reset_link_attribute_and_standard_response import ResetLinkAttributeAndStandardResponse from huaweicloudsdkdataartsstudio.v1.model.reset_link_attribute_and_standard_result_data import ResetLinkAttributeAndStandardResultData +from huaweicloudsdkdataartsstudio.v1.model.retry_factory_job_instance_body import RetryFactoryJobInstanceBody +from huaweicloudsdkdataartsstudio.v1.model.retry_factory_job_instance_body_jobs import RetryFactoryJobInstanceBodyJobs +from huaweicloudsdkdataartsstudio.v1.model.retry_factory_job_instance_body_task_retrys import RetryFactoryJobInstanceBodyTaskRetrys +from huaweicloudsdkdataartsstudio.v1.model.retry_factory_job_instance_request import RetryFactoryJobInstanceRequest +from huaweicloudsdkdataartsstudio.v1.model.retry_factory_job_instance_response import RetryFactoryJobInstanceResponse from huaweicloudsdkdataartsstudio.v1.model.role_action_query_dto import RoleActionQueryDTO from huaweicloudsdkdataartsstudio.v1.model.rollback_approval_request import RollbackApprovalRequest from huaweicloudsdkdataartsstudio.v1.model.rollback_approval_response import RollbackApprovalResponse diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/retry_factory_job_instance_body.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/retry_factory_job_instance_body.py new file mode 100644 index 0000000000..7ae353fd3f --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/retry_factory_job_instance_body.py @@ -0,0 +1,345 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RetryFactoryJobInstanceBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'retry_location': 'str', + 'node_name': 'str', + 'retry_task_version': 'str', + 'ignore_obs_monitor': 'bool', + 'task_retrys': 'list[RetryFactoryJobInstanceBodyTaskRetrys]', + 'begin_time': 'int', + 'end_time': 'int', + 'jobs': 'list[RetryFactoryJobInstanceBodyJobs]', + 'concurrent': 'int' + } + + attribute_map = { + 'retry_location': 'retry_location', + 'node_name': 'node_name', + 'retry_task_version': 'retry_task_version', + 'ignore_obs_monitor': 'ignore_obs_monitor', + 'task_retrys': 'task_retrys', + 'begin_time': 'begin_time', + 'end_time': 'end_time', + 'jobs': 'jobs', + 'concurrent': 'concurrent' + } + + def __init__(self, retry_location=None, node_name=None, retry_task_version=None, ignore_obs_monitor=None, task_retrys=None, begin_time=None, end_time=None, jobs=None, concurrent=None): + """RetryFactoryJobInstanceBody + + The model defined in huaweicloud sdk + + :param retry_location: 重跑开始位置,取值有firstNode、errorNode和specifiedNode。 + :type retry_location: str + :param node_name: 节点名称。 + :type node_name: str + :param retry_task_version: 使用的作业参数,取值有original_version和current_version。 + :type retry_task_version: str + :param ignore_obs_monitor: 是否忽略obs监听,默认为true。 + :type ignore_obs_monitor: bool + :param task_retrys: 作业实例重跑参数,当重跑当前实例类型时,需要指定该参数的重跑信息,重跑当前作业及其上下游作业实例类型不需要指定该参数。 + :type task_retrys: list[:class:`huaweicloudsdkdataartsstudio.v1.RetryFactoryJobInstanceBodyTaskRetrys`] + :param begin_time: 实例开始时间,当重跑当前作业及其上下游作业实例类型时,该参数有效。 + :type begin_time: int + :param end_time: 实例结束时间,当重跑当前作业及其上下游作业实例类型时,该参数有效。 + :type end_time: int + :param jobs: 作业实例重跑参数,当重跑当前作业及其上下游作业实例类型时,需要指定该参数的重跑信息,重跑当前实例类型不需要指定该参数。 + :type jobs: list[:class:`huaweicloudsdkdataartsstudio.v1.RetryFactoryJobInstanceBodyJobs`] + :param concurrent: 并行度,当重跑当前作业及其上下游作业实例类型时,该参数有效,默认值为1,取值范围为1到128。 + :type concurrent: int + """ + + + + self._retry_location = None + self._node_name = None + self._retry_task_version = None + self._ignore_obs_monitor = None + self._task_retrys = None + self._begin_time = None + self._end_time = None + self._jobs = None + self._concurrent = None + self.discriminator = None + + self.retry_location = retry_location + if node_name is not None: + self.node_name = node_name + self.retry_task_version = retry_task_version + if ignore_obs_monitor is not None: + self.ignore_obs_monitor = ignore_obs_monitor + if task_retrys is not None: + self.task_retrys = task_retrys + if begin_time is not None: + self.begin_time = begin_time + if end_time is not None: + self.end_time = end_time + if jobs is not None: + self.jobs = jobs + if concurrent is not None: + self.concurrent = concurrent + + @property + def retry_location(self): + """Gets the retry_location of this RetryFactoryJobInstanceBody. + + 重跑开始位置,取值有firstNode、errorNode和specifiedNode。 + + :return: The retry_location of this RetryFactoryJobInstanceBody. + :rtype: str + """ + return self._retry_location + + @retry_location.setter + def retry_location(self, retry_location): + """Sets the retry_location of this RetryFactoryJobInstanceBody. + + 重跑开始位置,取值有firstNode、errorNode和specifiedNode。 + + :param retry_location: The retry_location of this RetryFactoryJobInstanceBody. + :type retry_location: str + """ + self._retry_location = retry_location + + @property + def node_name(self): + """Gets the node_name of this RetryFactoryJobInstanceBody. + + 节点名称。 + + :return: The node_name of this RetryFactoryJobInstanceBody. + :rtype: str + """ + return self._node_name + + @node_name.setter + def node_name(self, node_name): + """Sets the node_name of this RetryFactoryJobInstanceBody. + + 节点名称。 + + :param node_name: The node_name of this RetryFactoryJobInstanceBody. + :type node_name: str + """ + self._node_name = node_name + + @property + def retry_task_version(self): + """Gets the retry_task_version of this RetryFactoryJobInstanceBody. + + 使用的作业参数,取值有original_version和current_version。 + + :return: The retry_task_version of this RetryFactoryJobInstanceBody. + :rtype: str + """ + return self._retry_task_version + + @retry_task_version.setter + def retry_task_version(self, retry_task_version): + """Sets the retry_task_version of this RetryFactoryJobInstanceBody. + + 使用的作业参数,取值有original_version和current_version。 + + :param retry_task_version: The retry_task_version of this RetryFactoryJobInstanceBody. + :type retry_task_version: str + """ + self._retry_task_version = retry_task_version + + @property + def ignore_obs_monitor(self): + """Gets the ignore_obs_monitor of this RetryFactoryJobInstanceBody. + + 是否忽略obs监听,默认为true。 + + :return: The ignore_obs_monitor of this RetryFactoryJobInstanceBody. + :rtype: bool + """ + return self._ignore_obs_monitor + + @ignore_obs_monitor.setter + def ignore_obs_monitor(self, ignore_obs_monitor): + """Sets the ignore_obs_monitor of this RetryFactoryJobInstanceBody. + + 是否忽略obs监听,默认为true。 + + :param ignore_obs_monitor: The ignore_obs_monitor of this RetryFactoryJobInstanceBody. + :type ignore_obs_monitor: bool + """ + self._ignore_obs_monitor = ignore_obs_monitor + + @property + def task_retrys(self): + """Gets the task_retrys of this RetryFactoryJobInstanceBody. + + 作业实例重跑参数,当重跑当前实例类型时,需要指定该参数的重跑信息,重跑当前作业及其上下游作业实例类型不需要指定该参数。 + + :return: The task_retrys of this RetryFactoryJobInstanceBody. + :rtype: list[:class:`huaweicloudsdkdataartsstudio.v1.RetryFactoryJobInstanceBodyTaskRetrys`] + """ + return self._task_retrys + + @task_retrys.setter + def task_retrys(self, task_retrys): + """Sets the task_retrys of this RetryFactoryJobInstanceBody. + + 作业实例重跑参数,当重跑当前实例类型时,需要指定该参数的重跑信息,重跑当前作业及其上下游作业实例类型不需要指定该参数。 + + :param task_retrys: The task_retrys of this RetryFactoryJobInstanceBody. + :type task_retrys: list[:class:`huaweicloudsdkdataartsstudio.v1.RetryFactoryJobInstanceBodyTaskRetrys`] + """ + self._task_retrys = task_retrys + + @property + def begin_time(self): + """Gets the begin_time of this RetryFactoryJobInstanceBody. + + 实例开始时间,当重跑当前作业及其上下游作业实例类型时,该参数有效。 + + :return: The begin_time of this RetryFactoryJobInstanceBody. + :rtype: int + """ + return self._begin_time + + @begin_time.setter + def begin_time(self, begin_time): + """Sets the begin_time of this RetryFactoryJobInstanceBody. + + 实例开始时间,当重跑当前作业及其上下游作业实例类型时,该参数有效。 + + :param begin_time: The begin_time of this RetryFactoryJobInstanceBody. + :type begin_time: int + """ + self._begin_time = begin_time + + @property + def end_time(self): + """Gets the end_time of this RetryFactoryJobInstanceBody. + + 实例结束时间,当重跑当前作业及其上下游作业实例类型时,该参数有效。 + + :return: The end_time of this RetryFactoryJobInstanceBody. + :rtype: int + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this RetryFactoryJobInstanceBody. + + 实例结束时间,当重跑当前作业及其上下游作业实例类型时,该参数有效。 + + :param end_time: The end_time of this RetryFactoryJobInstanceBody. + :type end_time: int + """ + self._end_time = end_time + + @property + def jobs(self): + """Gets the jobs of this RetryFactoryJobInstanceBody. + + 作业实例重跑参数,当重跑当前作业及其上下游作业实例类型时,需要指定该参数的重跑信息,重跑当前实例类型不需要指定该参数。 + + :return: The jobs of this RetryFactoryJobInstanceBody. + :rtype: list[:class:`huaweicloudsdkdataartsstudio.v1.RetryFactoryJobInstanceBodyJobs`] + """ + return self._jobs + + @jobs.setter + def jobs(self, jobs): + """Sets the jobs of this RetryFactoryJobInstanceBody. + + 作业实例重跑参数,当重跑当前作业及其上下游作业实例类型时,需要指定该参数的重跑信息,重跑当前实例类型不需要指定该参数。 + + :param jobs: The jobs of this RetryFactoryJobInstanceBody. + :type jobs: list[:class:`huaweicloudsdkdataartsstudio.v1.RetryFactoryJobInstanceBodyJobs`] + """ + self._jobs = jobs + + @property + def concurrent(self): + """Gets the concurrent of this RetryFactoryJobInstanceBody. + + 并行度,当重跑当前作业及其上下游作业实例类型时,该参数有效,默认值为1,取值范围为1到128。 + + :return: The concurrent of this RetryFactoryJobInstanceBody. + :rtype: int + """ + return self._concurrent + + @concurrent.setter + def concurrent(self, concurrent): + """Sets the concurrent of this RetryFactoryJobInstanceBody. + + 并行度,当重跑当前作业及其上下游作业实例类型时,该参数有效,默认值为1,取值范围为1到128。 + + :param concurrent: The concurrent of this RetryFactoryJobInstanceBody. + :type concurrent: int + """ + self._concurrent = concurrent + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RetryFactoryJobInstanceBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/retry_factory_job_instance_body_jobs.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/retry_factory_job_instance_body_jobs.py new file mode 100644 index 0000000000..cc53c1c38b --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/retry_factory_job_instance_body_jobs.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RetryFactoryJobInstanceBodyJobs: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'job_name': 'str', + 'workspace_id': 'str' + } + + attribute_map = { + 'job_name': 'job_name', + 'workspace_id': 'workspace_id' + } + + def __init__(self, job_name=None, workspace_id=None): + """RetryFactoryJobInstanceBodyJobs + + The model defined in huaweicloud sdk + + :param job_name: 重跑的作业名称。 + :type job_name: str + :param workspace_id: 工作空间id + :type workspace_id: str + """ + + + + self._job_name = None + self._workspace_id = None + self.discriminator = None + + self.job_name = job_name + self.workspace_id = workspace_id + + @property + def job_name(self): + """Gets the job_name of this RetryFactoryJobInstanceBodyJobs. + + 重跑的作业名称。 + + :return: The job_name of this RetryFactoryJobInstanceBodyJobs. + :rtype: str + """ + return self._job_name + + @job_name.setter + def job_name(self, job_name): + """Sets the job_name of this RetryFactoryJobInstanceBodyJobs. + + 重跑的作业名称。 + + :param job_name: The job_name of this RetryFactoryJobInstanceBodyJobs. + :type job_name: str + """ + self._job_name = job_name + + @property + def workspace_id(self): + """Gets the workspace_id of this RetryFactoryJobInstanceBodyJobs. + + 工作空间id + + :return: The workspace_id of this RetryFactoryJobInstanceBodyJobs. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this RetryFactoryJobInstanceBodyJobs. + + 工作空间id + + :param workspace_id: The workspace_id of this RetryFactoryJobInstanceBodyJobs. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RetryFactoryJobInstanceBodyJobs): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/retry_factory_job_instance_body_task_retrys.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/retry_factory_job_instance_body_task_retrys.py new file mode 100644 index 0000000000..34e0af2239 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/retry_factory_job_instance_body_task_retrys.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RetryFactoryJobInstanceBodyTaskRetrys: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'job_id': 'int', + 'plan_time': 'int', + 'submit_time': 'int' + } + + attribute_map = { + 'job_id': 'job_id', + 'plan_time': 'plan_time', + 'submit_time': 'submit_time' + } + + def __init__(self, job_id=None, plan_time=None, submit_time=None): + """RetryFactoryJobInstanceBodyTaskRetrys + + The model defined in huaweicloud sdk + + :param job_id: 作业id,当前重跑实例的作业id。 + :type job_id: int + :param plan_time: 实例计划时间,13位时间戳,可通过查询作业实例列表接口获取。 + :type plan_time: int + :param submit_time: 实例提交时间,13位时间戳,可通过查询作业实例列表接口获取。 + :type submit_time: int + """ + + + + self._job_id = None + self._plan_time = None + self._submit_time = None + self.discriminator = None + + self.job_id = job_id + self.plan_time = plan_time + self.submit_time = submit_time + + @property + def job_id(self): + """Gets the job_id of this RetryFactoryJobInstanceBodyTaskRetrys. + + 作业id,当前重跑实例的作业id。 + + :return: The job_id of this RetryFactoryJobInstanceBodyTaskRetrys. + :rtype: int + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this RetryFactoryJobInstanceBodyTaskRetrys. + + 作业id,当前重跑实例的作业id。 + + :param job_id: The job_id of this RetryFactoryJobInstanceBodyTaskRetrys. + :type job_id: int + """ + self._job_id = job_id + + @property + def plan_time(self): + """Gets the plan_time of this RetryFactoryJobInstanceBodyTaskRetrys. + + 实例计划时间,13位时间戳,可通过查询作业实例列表接口获取。 + + :return: The plan_time of this RetryFactoryJobInstanceBodyTaskRetrys. + :rtype: int + """ + return self._plan_time + + @plan_time.setter + def plan_time(self, plan_time): + """Sets the plan_time of this RetryFactoryJobInstanceBodyTaskRetrys. + + 实例计划时间,13位时间戳,可通过查询作业实例列表接口获取。 + + :param plan_time: The plan_time of this RetryFactoryJobInstanceBodyTaskRetrys. + :type plan_time: int + """ + self._plan_time = plan_time + + @property + def submit_time(self): + """Gets the submit_time of this RetryFactoryJobInstanceBodyTaskRetrys. + + 实例提交时间,13位时间戳,可通过查询作业实例列表接口获取。 + + :return: The submit_time of this RetryFactoryJobInstanceBodyTaskRetrys. + :rtype: int + """ + return self._submit_time + + @submit_time.setter + def submit_time(self, submit_time): + """Sets the submit_time of this RetryFactoryJobInstanceBodyTaskRetrys. + + 实例提交时间,13位时间戳,可通过查询作业实例列表接口获取。 + + :param submit_time: The submit_time of this RetryFactoryJobInstanceBodyTaskRetrys. + :type submit_time: int + """ + self._submit_time = submit_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RetryFactoryJobInstanceBodyTaskRetrys): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/retry_factory_job_instance_request.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/retry_factory_job_instance_request.py new file mode 100644 index 0000000000..e1d280b624 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/retry_factory_job_instance_request.py @@ -0,0 +1,196 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RetryFactoryJobInstanceRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'job_name': 'str', + 'workspace': 'str', + 'x_project_id': 'str', + 'body': 'RetryFactoryJobInstanceBody' + } + + attribute_map = { + 'job_name': 'job_name', + 'workspace': 'workspace', + 'x_project_id': 'X-Project-Id', + 'body': 'body' + } + + def __init__(self, job_name=None, workspace=None, x_project_id=None, body=None): + """RetryFactoryJobInstanceRequest + + The model defined in huaweicloud sdk + + :param job_name: 当前作业名称 + :type job_name: str + :param workspace: 工作空间ID,获取方法请参见[实例ID和工作空间ID](dataartsstudio_02_0350.xml)。 + :type workspace: str + :param x_project_id: 项目ID,获取方法请参见[项目ID和账号ID](projectid_accountid.xml)。 多project场景采用AK/SK认证的接口请求,则该字段必选。 + :type x_project_id: str + :param body: Body of the RetryFactoryJobInstanceRequest + :type body: :class:`huaweicloudsdkdataartsstudio.v1.RetryFactoryJobInstanceBody` + """ + + + + self._job_name = None + self._workspace = None + self._x_project_id = None + self._body = None + self.discriminator = None + + self.job_name = job_name + self.workspace = workspace + if x_project_id is not None: + self.x_project_id = x_project_id + if body is not None: + self.body = body + + @property + def job_name(self): + """Gets the job_name of this RetryFactoryJobInstanceRequest. + + 当前作业名称 + + :return: The job_name of this RetryFactoryJobInstanceRequest. + :rtype: str + """ + return self._job_name + + @job_name.setter + def job_name(self, job_name): + """Sets the job_name of this RetryFactoryJobInstanceRequest. + + 当前作业名称 + + :param job_name: The job_name of this RetryFactoryJobInstanceRequest. + :type job_name: str + """ + self._job_name = job_name + + @property + def workspace(self): + """Gets the workspace of this RetryFactoryJobInstanceRequest. + + 工作空间ID,获取方法请参见[实例ID和工作空间ID](dataartsstudio_02_0350.xml)。 + + :return: The workspace of this RetryFactoryJobInstanceRequest. + :rtype: str + """ + return self._workspace + + @workspace.setter + def workspace(self, workspace): + """Sets the workspace of this RetryFactoryJobInstanceRequest. + + 工作空间ID,获取方法请参见[实例ID和工作空间ID](dataartsstudio_02_0350.xml)。 + + :param workspace: The workspace of this RetryFactoryJobInstanceRequest. + :type workspace: str + """ + self._workspace = workspace + + @property + def x_project_id(self): + """Gets the x_project_id of this RetryFactoryJobInstanceRequest. + + 项目ID,获取方法请参见[项目ID和账号ID](projectid_accountid.xml)。 多project场景采用AK/SK认证的接口请求,则该字段必选。 + + :return: The x_project_id of this RetryFactoryJobInstanceRequest. + :rtype: str + """ + return self._x_project_id + + @x_project_id.setter + def x_project_id(self, x_project_id): + """Sets the x_project_id of this RetryFactoryJobInstanceRequest. + + 项目ID,获取方法请参见[项目ID和账号ID](projectid_accountid.xml)。 多project场景采用AK/SK认证的接口请求,则该字段必选。 + + :param x_project_id: The x_project_id of this RetryFactoryJobInstanceRequest. + :type x_project_id: str + """ + self._x_project_id = x_project_id + + @property + def body(self): + """Gets the body of this RetryFactoryJobInstanceRequest. + + :return: The body of this RetryFactoryJobInstanceRequest. + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.RetryFactoryJobInstanceBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this RetryFactoryJobInstanceRequest. + + :param body: The body of this RetryFactoryJobInstanceRequest. + :type body: :class:`huaweicloudsdkdataartsstudio.v1.RetryFactoryJobInstanceBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RetryFactoryJobInstanceRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/retry_factory_job_instance_response.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/retry_factory_job_instance_response.py new file mode 100644 index 0000000000..113a541764 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/retry_factory_job_instance_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RetryFactoryJobInstanceResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """RetryFactoryJobInstanceResponse + + The model defined in huaweicloud sdk + + """ + + super(RetryFactoryJobInstanceResponse, self).__init__() + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RetryFactoryJobInstanceResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/requirements.txt b/huaweicloud-sdk-dataartsstudio/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-dataartsstudio/requirements.txt +++ b/huaweicloud-sdk-dataartsstudio/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-dataartsstudio/setup.py b/huaweicloud-sdk-dataartsstudio/setup.py index 7de644eaeb..337ec5ce17 100644 --- a/huaweicloud-sdk-dataartsstudio/setup.py +++ b/huaweicloud-sdk-dataartsstudio/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdataartsstudio" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dbss/requirements.txt b/huaweicloud-sdk-dbss/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-dbss/requirements.txt +++ b/huaweicloud-sdk-dbss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-dbss/setup.py b/huaweicloud-sdk-dbss/setup.py index 0eb2475d09..7ae32689cd 100644 --- a/huaweicloud-sdk-dbss/setup.py +++ b/huaweicloud-sdk-dbss/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdbss" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/__init__.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/__init__.py index b276814158..e1f00f9135 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/__init__.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/__init__.py @@ -5,32 +5,39 @@ from huaweicloudsdkdc.v3.dc_client import DcClient from huaweicloudsdkdc.v3.dc_async_client import DcAsyncClient +from huaweicloudsdkdc.v3.model.add_gdgw_route_action import AddGdgwRouteAction +from huaweicloudsdkdc.v3.model.address_body import AddressBody +from huaweicloudsdkdc.v3.model.address_family import AddressFamily +from huaweicloudsdkdc.v3.model.band_width_info import BandWidthInfo from huaweicloudsdkdc.v3.model.bandwidth_info_external import BandwidthInfoExternal +from huaweicloudsdkdc.v3.model.base_add_route_action import BaseAddRouteAction +from huaweicloudsdkdc.v3.model.base_delete_route_action import BaseDeleteRouteAction from huaweicloudsdkdc.v3.model.batch_create_resource_tags_request import BatchCreateResourceTagsRequest from huaweicloudsdkdc.v3.model.batch_create_resource_tags_response import BatchCreateResourceTagsResponse from huaweicloudsdkdc.v3.model.batch_operate_resource_tags_request_body import BatchOperateResourceTagsRequestBody from huaweicloudsdkdc.v3.model.bind_global_eips_request import BindGlobalEipsRequest from huaweicloudsdkdc.v3.model.bind_global_eips_response import BindGlobalEipsResponse from huaweicloudsdkdc.v3.model.binding_geip_body import BindingGeipBody +from huaweicloudsdkdc.v3.model.common_routetable import CommonRoutetable from huaweicloudsdkdc.v3.model.connect_gateway_response import ConnectGatewayResponse from huaweicloudsdkdc.v3.model.create_binding_geip_request_body import CreateBindingGeipRequestBody from huaweicloudsdkdc.v3.model.create_connect_gateway import CreateConnectGateway from huaweicloudsdkdc.v3.model.create_connect_gateway_request import CreateConnectGatewayRequest from huaweicloudsdkdc.v3.model.create_connect_gateway_request_body import CreateConnectGatewayRequestBody from huaweicloudsdkdc.v3.model.create_connect_gateway_response import CreateConnectGatewayResponse +from huaweicloudsdkdc.v3.model.create_external_peer_link_request_body import CreateExternalPeerLinkRequestBody +from huaweicloudsdkdc.v3.model.create_external_peer_link_request_body_peer_link import CreateExternalPeerLinkRequestBodyPeerLink +from huaweicloudsdkdc.v3.model.create_external_peer_link_request_body_peer_link_peer_site import CreateExternalPeerLinkRequestBodyPeerLinkPeerSite +from huaweicloudsdkdc.v3.model.create_global_dc_gateway import CreateGlobalDcGateway +from huaweicloudsdkdc.v3.model.create_global_dc_gateway_entry import CreateGlobalDcGatewayEntry from huaweicloudsdkdc.v3.model.create_global_dc_gateway_request import CreateGlobalDcGatewayRequest from huaweicloudsdkdc.v3.model.create_global_dc_gateway_request_body import CreateGlobalDcGatewayRequestBody -from huaweicloudsdkdc.v3.model.create_global_dc_gateway_request_body_global_dc_gateway import CreateGlobalDcGatewayRequestBodyGlobalDcGateway -from huaweicloudsdkdc.v3.model.create_global_dc_gateway_request_body_global_dc_gateway_tags import CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags from huaweicloudsdkdc.v3.model.create_global_dc_gateway_response import CreateGlobalDcGatewayResponse from huaweicloudsdkdc.v3.model.create_hosted_direct_connect import CreateHostedDirectConnect from huaweicloudsdkdc.v3.model.create_hosted_direct_connect_request import CreateHostedDirectConnectRequest from huaweicloudsdkdc.v3.model.create_hosted_direct_connect_request_body import CreateHostedDirectConnectRequestBody from huaweicloudsdkdc.v3.model.create_hosted_direct_connect_response import CreateHostedDirectConnectResponse from huaweicloudsdkdc.v3.model.create_peer_link_request import CreatePeerLinkRequest -from huaweicloudsdkdc.v3.model.create_peer_link_request_body import CreatePeerLinkRequestBody -from huaweicloudsdkdc.v3.model.create_peer_link_request_body_peer_link import CreatePeerLinkRequestBodyPeerLink -from huaweicloudsdkdc.v3.model.create_peer_link_request_body_peer_link_peer_site import CreatePeerLinkRequestBodyPeerLinkPeerSite from huaweicloudsdkdc.v3.model.create_peer_link_response import CreatePeerLinkResponse from huaweicloudsdkdc.v3.model.create_resource_tag_request import CreateResourceTagRequest from huaweicloudsdkdc.v3.model.create_resource_tag_request_body import CreateResourceTagRequestBody @@ -54,6 +61,7 @@ from huaweicloudsdkdc.v3.model.delete_connect_gateway_response import DeleteConnectGatewayResponse from huaweicloudsdkdc.v3.model.delete_direct_connect_request import DeleteDirectConnectRequest from huaweicloudsdkdc.v3.model.delete_direct_connect_response import DeleteDirectConnectResponse +from huaweicloudsdkdc.v3.model.delete_gdgw_route_action import DeleteGdgwRouteAction from huaweicloudsdkdc.v3.model.delete_global_dc_gateway_request import DeleteGlobalDcGatewayRequest from huaweicloudsdkdc.v3.model.delete_global_dc_gateway_response import DeleteGlobalDcGatewayResponse from huaweicloudsdkdc.v3.model.delete_hosted_direct_connect_request import DeleteHostedDirectConnectRequest @@ -69,25 +77,25 @@ from huaweicloudsdkdc.v3.model.delete_virtual_interface_request import DeleteVirtualInterfaceRequest from huaweicloudsdkdc.v3.model.delete_virtual_interface_response import DeleteVirtualInterfaceResponse from huaweicloudsdkdc.v3.model.direct_connect import DirectConnect -from huaweicloudsdkdc.v3.model.external_create_global_dc_gateway import ExternalCreateGlobalDcGateway +from huaweicloudsdkdc.v3.model.direct_connect_location_entry import DirectConnectLocationEntry from huaweicloudsdkdc.v3.model.external_create_peer_link import ExternalCreatePeerLink -from huaweicloudsdkdc.v3.model.external_list_global_dc_gateways import ExternalListGlobalDcGateways -from huaweicloudsdkdc.v3.model.external_list_peer_links import ExternalListPeerLinks -from huaweicloudsdkdc.v3.model.external_show_global_dc_gateway import ExternalShowGlobalDcGateway -from huaweicloudsdkdc.v3.model.external_show_peer_link import ExternalShowPeerLink -from huaweicloudsdkdc.v3.model.external_update_global_dc_gateway import ExternalUpdateGlobalDcGateway from huaweicloudsdkdc.v3.model.external_update_peer_link import ExternalUpdatePeerLink +from huaweicloudsdkdc.v3.model.gdgw_route_table_request import GdgwRouteTableRequest +from huaweicloudsdkdc.v3.model.global_dc_gateway_entry import GlobalDcGatewayEntry +from huaweicloudsdkdc.v3.model.global_dc_gateway_status import GlobalDcGatewayStatus from huaweicloudsdkdc.v3.model.hosted_direct_connect import HostedDirectConnect from huaweicloudsdkdc.v3.model.info import Info from huaweicloudsdkdc.v3.model.list_binding_geip import ListBindingGeip from huaweicloudsdkdc.v3.model.list_connect_gateways_request import ListConnectGatewaysRequest from huaweicloudsdkdc.v3.model.list_connect_gateways_response import ListConnectGatewaysResponse +from huaweicloudsdkdc.v3.model.list_direct_connect_locations_request import ListDirectConnectLocationsRequest +from huaweicloudsdkdc.v3.model.list_direct_connect_locations_response import ListDirectConnectLocationsResponse from huaweicloudsdkdc.v3.model.list_direct_connects_request import ListDirectConnectsRequest from huaweicloudsdkdc.v3.model.list_direct_connects_response import ListDirectConnectsResponse from huaweicloudsdkdc.v3.model.list_gdgw_route_tables_request import ListGdgwRouteTablesRequest from huaweicloudsdkdc.v3.model.list_gdgw_route_tables_response import ListGdgwRouteTablesResponse -from huaweicloudsdkdc.v3.model.list_global_dc_gateway_request import ListGlobalDcGatewayRequest -from huaweicloudsdkdc.v3.model.list_global_dc_gateway_response import ListGlobalDcGatewayResponse +from huaweicloudsdkdc.v3.model.list_global_dc_gateways_request import ListGlobalDcGatewaysRequest +from huaweicloudsdkdc.v3.model.list_global_dc_gateways_response import ListGlobalDcGatewaysResponse from huaweicloudsdkdc.v3.model.list_global_eips_request import ListGlobalEipsRequest from huaweicloudsdkdc.v3.model.list_global_eips_response import ListGlobalEipsResponse from huaweicloudsdkdc.v3.model.list_hosted_direct_connects_request import ListHostedDirectConnectsRequest @@ -96,8 +104,6 @@ from huaweicloudsdkdc.v3.model.list_peer_links_response import ListPeerLinksResponse from huaweicloudsdkdc.v3.model.list_project_tags_request import ListProjectTagsRequest from huaweicloudsdkdc.v3.model.list_project_tags_response import ListProjectTagsResponse -from huaweicloudsdkdc.v3.model.list_rms_global_dc_gateway_request import ListRmsGlobalDcGatewayRequest -from huaweicloudsdkdc.v3.model.list_rms_global_dc_gateway_response import ListRmsGlobalDcGatewayResponse from huaweicloudsdkdc.v3.model.list_switchover_test_records_request import ListSwitchoverTestRecordsRequest from huaweicloudsdkdc.v3.model.list_switchover_test_records_response import ListSwitchoverTestRecordsResponse from huaweicloudsdkdc.v3.model.list_tag_resource_instances_request import ListTagResourceInstancesRequest @@ -107,16 +113,24 @@ from huaweicloudsdkdc.v3.model.list_virtual_gateways_response import ListVirtualGatewaysResponse from huaweicloudsdkdc.v3.model.list_virtual_interfaces_request import ListVirtualInterfacesRequest from huaweicloudsdkdc.v3.model.list_virtual_interfaces_response import ListVirtualInterfacesResponse -from huaweicloudsdkdc.v3.model.locale import Locale from huaweicloudsdkdc.v3.model.locales_body import LocalesBody from huaweicloudsdkdc.v3.model.match import Match from huaweicloudsdkdc.v3.model.page_info import PageInfo +from huaweicloudsdkdc.v3.model.peer_link_entry import PeerLinkEntry +from huaweicloudsdkdc.v3.model.peer_link_status import PeerLinkStatus +from huaweicloudsdkdc.v3.model.peer_site import PeerSite from huaweicloudsdkdc.v3.model.peer_site_external import PeerSiteExternal +from huaweicloudsdkdc.v3.model.provider_response_body import ProviderResponseBody +from huaweicloudsdkdc.v3.model.provider_value_body import ProviderValueBody from huaweicloudsdkdc.v3.model.resource import Resource -from huaweicloudsdkdc.v3.model.rms_list_global_dc_gateways import RmsListGlobalDcGateways -from huaweicloudsdkdc.v3.model.rms_show_global_dc_gateway import RmsShowGlobalDcGateway +from huaweicloudsdkdc.v3.model.route_description import RouteDescription +from huaweicloudsdkdc.v3.model.route_destination import RouteDestination +from huaweicloudsdkdc.v3.model.route_next_hop import RouteNextHop +from huaweicloudsdkdc.v3.model.route_type_of_gdgw import RouteTypeOfGdgw from huaweicloudsdkdc.v3.model.show_connect_gateway_request import ShowConnectGatewayRequest from huaweicloudsdkdc.v3.model.show_connect_gateway_response import ShowConnectGatewayResponse +from huaweicloudsdkdc.v3.model.show_direct_connect_location_request import ShowDirectConnectLocationRequest +from huaweicloudsdkdc.v3.model.show_direct_connect_location_response import ShowDirectConnectLocationResponse from huaweicloudsdkdc.v3.model.show_direct_connect_request import ShowDirectConnectRequest from huaweicloudsdkdc.v3.model.show_direct_connect_response import ShowDirectConnectResponse from huaweicloudsdkdc.v3.model.show_gdgw_routetable import ShowGdgwRoutetable @@ -131,8 +145,6 @@ from huaweicloudsdkdc.v3.model.show_quotas_response_body_quotas import ShowQuotasResponseBodyQuotas from huaweicloudsdkdc.v3.model.show_resource_tag_request import ShowResourceTagRequest from huaweicloudsdkdc.v3.model.show_resource_tag_response import ShowResourceTagResponse -from huaweicloudsdkdc.v3.model.show_rms_global_dc_gateway_request import ShowRmsGlobalDcGatewayRequest -from huaweicloudsdkdc.v3.model.show_rms_global_dc_gateway_response import ShowRmsGlobalDcGatewayResponse from huaweicloudsdkdc.v3.model.show_virtual_gateway_request import ShowVirtualGatewayRequest from huaweicloudsdkdc.v3.model.show_virtual_gateway_response import ShowVirtualGatewayResponse from huaweicloudsdkdc.v3.model.show_virtual_interface_request import ShowVirtualInterfaceRequest @@ -154,25 +166,22 @@ from huaweicloudsdkdc.v3.model.update_direct_connect_request import UpdateDirectConnectRequest from huaweicloudsdkdc.v3.model.update_direct_connect_request_body import UpdateDirectConnectRequestBody from huaweicloudsdkdc.v3.model.update_direct_connect_response import UpdateDirectConnectResponse +from huaweicloudsdkdc.v3.model.update_external_peer_link_request_body import UpdateExternalPeerLinkRequestBody +from huaweicloudsdkdc.v3.model.update_external_peer_link_request_body_peer_link import UpdateExternalPeerLinkRequestBodyPeerLink from huaweicloudsdkdc.v3.model.update_gdgw_route_table_request import UpdateGdgwRouteTableRequest from huaweicloudsdkdc.v3.model.update_gdgw_route_table_response import UpdateGdgwRouteTableResponse from huaweicloudsdkdc.v3.model.update_gdgw_routetable_request_body import UpdateGdgwRoutetableRequestBody -from huaweicloudsdkdc.v3.model.update_gdgw_routetable_request_body_gdgw_routetable import UpdateGdgwRoutetableRequestBodyGdgwRoutetable -from huaweicloudsdkdc.v3.model.update_gdgw_routetable_request_body_gdgw_routetable_add_routes import UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes -from huaweicloudsdkdc.v3.model.update_gdgw_routetable_request_body_gdgw_routetable_del_routes import UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes -from huaweicloudsdkdc.v3.model.update_gdgw_routetable_request_body_gdgw_routetable_update_routes import UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes +from huaweicloudsdkdc.v3.model.update_global_dc_gateway import UpdateGlobalDcGateway from huaweicloudsdkdc.v3.model.update_global_dc_gateway_request import UpdateGlobalDcGatewayRequest from huaweicloudsdkdc.v3.model.update_global_dc_gateway_request_body import UpdateGlobalDcGatewayRequestBody -from huaweicloudsdkdc.v3.model.update_global_dc_gateway_request_body_global_dc_gateway import UpdateGlobalDcGatewayRequestBodyGlobalDcGateway from huaweicloudsdkdc.v3.model.update_global_dc_gateway_response import UpdateGlobalDcGatewayResponse from huaweicloudsdkdc.v3.model.update_hosted_direct_connect import UpdateHostedDirectConnect from huaweicloudsdkdc.v3.model.update_hosted_direct_connect_request import UpdateHostedDirectConnectRequest from huaweicloudsdkdc.v3.model.update_hosted_direct_connect_request_body import UpdateHostedDirectConnectRequestBody from huaweicloudsdkdc.v3.model.update_hosted_direct_connect_response import UpdateHostedDirectConnectResponse from huaweicloudsdkdc.v3.model.update_peer_link_request import UpdatePeerLinkRequest -from huaweicloudsdkdc.v3.model.update_peer_link_request_body import UpdatePeerLinkRequestBody -from huaweicloudsdkdc.v3.model.update_peer_link_request_body_peer_link import UpdatePeerLinkRequestBodyPeerLink from huaweicloudsdkdc.v3.model.update_peer_link_response import UpdatePeerLinkResponse +from huaweicloudsdkdc.v3.model.update_route_action import UpdateRouteAction from huaweicloudsdkdc.v3.model.update_vif_peer import UpdateVifPeer from huaweicloudsdkdc.v3.model.update_vif_peer_request import UpdateVifPeerRequest from huaweicloudsdkdc.v3.model.update_vif_peer_request_body import UpdateVifPeerRequestBody diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/dc_async_client.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/dc_async_client.py index 3ef0364321..ef095333a8 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/dc_async_client.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/dc_async_client.py @@ -81,7 +81,7 @@ def _bind_global_eips_http_info(self, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json; charset=utf-8']) @@ -174,7 +174,7 @@ def _list_global_eips_http_info(self, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -241,7 +241,7 @@ def _unbind_global_eips_http_info(self, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json; charset=utf-8']) @@ -1261,31 +1261,31 @@ def _update_hosted_direct_connect_http_info(self, request): return http_info - def list_gdgw_route_tables_async(self, request): - """查询全球接入网关路由表 + def list_direct_connect_locations_async(self, request): + """查询专线接入点位置列表 - 查询全球接入网关路由表,返回查询到的全球接入网关路由表的详细信息。 + 查询本区域下所有专线的接入点的信息,分页查询使用的参数为marker、limit。marker和limit一起使用时才会生效,单独使用无效。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListGdgwRouteTables - :type request: :class:`huaweicloudsdkdc.v3.ListGdgwRouteTablesRequest` - :rtype: :class:`huaweicloudsdkdc.v3.ListGdgwRouteTablesResponse` + :param request: Request instance for ListDirectConnectLocations + :type request: :class:`huaweicloudsdkdc.v3.ListDirectConnectLocationsRequest` + :rtype: :class:`huaweicloudsdkdc.v3.ListDirectConnectLocationsResponse` """ - http_info = self._list_gdgw_route_tables_http_info(request) + http_info = self._list_direct_connect_locations_http_info(request) return self._call_api(**http_info) - def list_gdgw_route_tables_async_invoker(self, request): - http_info = self._list_gdgw_route_tables_http_info(request) + def list_direct_connect_locations_async_invoker(self, request): + http_info = self._list_direct_connect_locations_http_info(request) return AsyncInvoker(self, http_info) - def _list_gdgw_route_tables_http_info(self, request): + def _list_direct_connect_locations_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v3/{project_id}/dcaas/gdgw/{gdgw_id}/routetables", + "resource_path": "/v3/{project_id}/dcaas/direct-connect-locations", "request_type": request.__class__.__name__, - "response_type": "ListGdgwRouteTablesResponse" + "response_type": "ListDirectConnectLocationsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1295,25 +1295,26 @@ def _list_gdgw_route_tables_http_info(self, request): collection_formats = {} path_params = {} - if 'gdgw_id' in local_var_params: - path_params['gdgw_id'] = local_var_params['gdgw_id'] query_params = [] - if 'fields' in local_var_params: - query_params.append(('fields', local_var_params['fields'])) - collection_formats['fields'] = 'multi' - if 'ext_fields' in local_var_params: - query_params.append(('ext_fields', local_var_params['ext_fields'])) - collection_formats['ext_fields'] = 'multi' - if 'nexthop' in local_var_params: - query_params.append(('nexthop', local_var_params['nexthop'])) - collection_formats['nexthop'] = 'multi' - if 'destination' in local_var_params: - query_params.append(('destination', local_var_params['destination'])) - collection_formats['destination'] = 'multi' - if 'address_family' in local_var_params: - query_params.append(('address_family', local_var_params['address_family'])) - collection_formats['address_family'] = 'multi' + 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 'sort_key' in local_var_params: + query_params.append(('sort_key', local_var_params['sort_key'])) + if 'sort_dir' in local_var_params: + query_params.append(('sort_dir', local_var_params['sort_dir'])) + collection_formats['sort_dir'] = 'multi' + if 'id' in local_var_params: + query_params.append(('id', local_var_params['id'])) + collection_formats['id'] = 'multi' + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + collection_formats['name'] = 'csv' + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + collection_formats['status'] = 'multi' header_params = {} @@ -1323,7 +1324,7 @@ def _list_gdgw_route_tables_http_info(self, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -1341,31 +1342,31 @@ def _list_gdgw_route_tables_http_info(self, request): return http_info - def update_gdgw_route_table_async(self, request): - """修改全球接入网关路由表 + def show_direct_connect_location_async(self, request): + """查询指定专线接入点详情 - 修改全球接入网关路由表,返回修改全球接入网关路由表的结果。 + 查询指定的专线接入点详情 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateGdgwRouteTable - :type request: :class:`huaweicloudsdkdc.v3.UpdateGdgwRouteTableRequest` - :rtype: :class:`huaweicloudsdkdc.v3.UpdateGdgwRouteTableResponse` + :param request: Request instance for ShowDirectConnectLocation + :type request: :class:`huaweicloudsdkdc.v3.ShowDirectConnectLocationRequest` + :rtype: :class:`huaweicloudsdkdc.v3.ShowDirectConnectLocationResponse` """ - http_info = self._update_gdgw_route_table_http_info(request) + http_info = self._show_direct_connect_location_http_info(request) return self._call_api(**http_info) - def update_gdgw_route_table_async_invoker(self, request): - http_info = self._update_gdgw_route_table_http_info(request) + def show_direct_connect_location_async_invoker(self, request): + http_info = self._show_direct_connect_location_http_info(request) return AsyncInvoker(self, http_info) - def _update_gdgw_route_table_http_info(self, request): + def _show_direct_connect_location_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v3/{project_id}/dcaas/gdgw/{gdgw_id}/routetables", + "method": "GET", + "resource_path": "/v3/{project_id}/dcaas/direct-connect-locations/{direct_connect_location_id}", "request_type": request.__class__.__name__, - "response_type": "UpdateGdgwRouteTableResponse" + "response_type": "ShowDirectConnectLocationResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1375,8 +1376,8 @@ def _update_gdgw_route_table_http_info(self, request): collection_formats = {} path_params = {} - if 'gdgw_id' in local_var_params: - path_params['gdgw_id'] = local_var_params['gdgw_id'] + if 'direct_connect_location_id' in local_var_params: + path_params['direct_connect_location_id'] = local_var_params['direct_connect_location_id'] query_params = [] @@ -1385,15 +1386,13 @@ def _update_gdgw_route_table_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json; charset=utf-8']) + ['application/json']) auth_settings = [] @@ -1408,31 +1407,31 @@ def _update_gdgw_route_table_http_info(self, request): return http_info - def create_global_dc_gateway_async(self, request): - """创建全球接入网关 + def list_gdgw_route_tables_async(self, request): + """查询全域接入网关路由表 - 创建全球接入网关,返回创建全球接入网关的结果。 + 查询全域接入网关路由表 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateGlobalDcGateway - :type request: :class:`huaweicloudsdkdc.v3.CreateGlobalDcGatewayRequest` - :rtype: :class:`huaweicloudsdkdc.v3.CreateGlobalDcGatewayResponse` + :param request: Request instance for ListGdgwRouteTables + :type request: :class:`huaweicloudsdkdc.v3.ListGdgwRouteTablesRequest` + :rtype: :class:`huaweicloudsdkdc.v3.ListGdgwRouteTablesResponse` """ - http_info = self._create_global_dc_gateway_http_info(request) + http_info = self._list_gdgw_route_tables_http_info(request) return self._call_api(**http_info) - def create_global_dc_gateway_async_invoker(self, request): - http_info = self._create_global_dc_gateway_http_info(request) + def list_gdgw_route_tables_async_invoker(self, request): + http_info = self._list_gdgw_route_tables_http_info(request) return AsyncInvoker(self, http_info) - def _create_global_dc_gateway_http_info(self, request): + def _list_gdgw_route_tables_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways", + "method": "GET", + "resource_path": "/v3/{project_id}/dcaas/gdgw/{gdgw_id}/routetables", "request_type": request.__class__.__name__, - "response_type": "CreateGlobalDcGatewayResponse" + "response_type": "ListGdgwRouteTablesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1442,23 +1441,32 @@ def _create_global_dc_gateway_http_info(self, request): collection_formats = {} path_params = {} + if 'gdgw_id' in local_var_params: + path_params['gdgw_id'] = local_var_params['gdgw_id'] query_params = [] + if 'address_family' in local_var_params: + query_params.append(('address_family', local_var_params['address_family'])) + collection_formats['address_family'] = 'multi' + if 'nexthop' in local_var_params: + query_params.append(('nexthop', local_var_params['nexthop'])) + collection_formats['nexthop'] = 'multi' + if 'destination' in local_var_params: + query_params.append(('destination', local_var_params['destination'])) + collection_formats['destination'] = 'multi' header_params = {} form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json; charset=utf-8']) + ['application/json']) auth_settings = [] @@ -1473,31 +1481,35 @@ def _create_global_dc_gateway_http_info(self, request): return http_info - def create_peer_link_async(self, request): - """创建全球接入网关对等链接 + def update_gdgw_route_table_async(self, request): + """修改全域接入网关路由表 - 创建全球接入网关对等链接,返回创建全球接入网关对等链接的结果。 + # 支持的修改操作: + **注意:新增、删除、修改操作互斥,一次请求只能执行其中一类操作** + + 1. 新增下一跳路由 + + 2. 删除下一跳路由 + + 3. 修改路由描述 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreatePeerLink - :type request: :class:`huaweicloudsdkdc.v3.CreatePeerLinkRequest` - :rtype: :class:`huaweicloudsdkdc.v3.CreatePeerLinkResponse` + :param request: Request instance for UpdateGdgwRouteTable + :type request: :class:`huaweicloudsdkdc.v3.UpdateGdgwRouteTableRequest` + :rtype: :class:`huaweicloudsdkdc.v3.UpdateGdgwRouteTableResponse` """ - http_info = self._create_peer_link_http_info(request) + http_info = self._update_gdgw_route_table_http_info(request) return self._call_api(**http_info) - def create_peer_link_async_invoker(self, request): - http_info = self._create_peer_link_http_info(request) + def update_gdgw_route_table_async_invoker(self, request): + http_info = self._update_gdgw_route_table_http_info(request) return AsyncInvoker(self, http_info) - def _create_peer_link_http_info(self, request): + def _update_gdgw_route_table_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}/peer-links", + "method": "PUT", + "resource_path": "/v3/{project_id}/dcaas/gdgw/{gdgw_id}/routetables", "request_type": request.__class__.__name__, - "response_type": "CreatePeerLinkResponse" + "response_type": "UpdateGdgwRouteTableResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1507,8 +1519,8 @@ def _create_peer_link_http_info(self, request): collection_formats = {} path_params = {} - if 'global_dc_gateway_id' in local_var_params: - path_params['global_dc_gateway_id'] = local_var_params['global_dc_gateway_id'] + if 'gdgw_id' in local_var_params: + path_params['gdgw_id'] = local_var_params['gdgw_id'] query_params = [] @@ -1522,7 +1534,7 @@ def _create_peer_link_http_info(self, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json; charset=utf-8']) @@ -1540,31 +1552,31 @@ def _create_peer_link_http_info(self, request): return http_info - def delete_global_dc_gateway_async(self, request): - """删除全球接入网关 + def create_global_dc_gateway_async(self, request): + """创建专线全域接入网关 - 根据ID删除全球接入网关,返回删除全球接入网关的结果。 + 创建专线全域接入网关实例(global-dc-gateway),用于接入全球的ER实例 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteGlobalDcGateway - :type request: :class:`huaweicloudsdkdc.v3.DeleteGlobalDcGatewayRequest` - :rtype: :class:`huaweicloudsdkdc.v3.DeleteGlobalDcGatewayResponse` + :param request: Request instance for CreateGlobalDcGateway + :type request: :class:`huaweicloudsdkdc.v3.CreateGlobalDcGatewayRequest` + :rtype: :class:`huaweicloudsdkdc.v3.CreateGlobalDcGatewayResponse` """ - http_info = self._delete_global_dc_gateway_http_info(request) + http_info = self._create_global_dc_gateway_http_info(request) return self._call_api(**http_info) - def delete_global_dc_gateway_async_invoker(self, request): - http_info = self._delete_global_dc_gateway_http_info(request) + def create_global_dc_gateway_async_invoker(self, request): + http_info = self._create_global_dc_gateway_http_info(request) return AsyncInvoker(self, http_info) - def _delete_global_dc_gateway_http_info(self, request): + def _create_global_dc_gateway_http_info(self, request): http_info = { - "method": "DELETE", - "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}", + "method": "POST", + "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways", "request_type": request.__class__.__name__, - "response_type": "DeleteGlobalDcGatewayResponse" + "response_type": "CreateGlobalDcGatewayResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1574,8 +1586,6 @@ def _delete_global_dc_gateway_http_info(self, request): collection_formats = {} path_params = {} - if 'global_dc_gateway_id' in local_var_params: - path_params['global_dc_gateway_id'] = local_var_params['global_dc_gateway_id'] query_params = [] @@ -1584,10 +1594,12 @@ def _delete_global_dc_gateway_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -1605,31 +1617,31 @@ def _delete_global_dc_gateway_http_info(self, request): return http_info - def delete_peer_link_async(self, request): - """删除全球接入网关对等链接 + def delete_global_dc_gateway_async(self, request): + """删除专线全域接入网关 - 根据ID删除全球接入网关对等链接,返回删除全球接入网关对等链接的结果。 + 删除专线全域接入网关global-dc-gateway实例 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeletePeerLink - :type request: :class:`huaweicloudsdkdc.v3.DeletePeerLinkRequest` - :rtype: :class:`huaweicloudsdkdc.v3.DeletePeerLinkResponse` + :param request: Request instance for DeleteGlobalDcGateway + :type request: :class:`huaweicloudsdkdc.v3.DeleteGlobalDcGatewayRequest` + :rtype: :class:`huaweicloudsdkdc.v3.DeleteGlobalDcGatewayResponse` """ - http_info = self._delete_peer_link_http_info(request) + http_info = self._delete_global_dc_gateway_http_info(request) return self._call_api(**http_info) - def delete_peer_link_async_invoker(self, request): - http_info = self._delete_peer_link_http_info(request) + def delete_global_dc_gateway_async_invoker(self, request): + http_info = self._delete_global_dc_gateway_http_info(request) return AsyncInvoker(self, http_info) - def _delete_peer_link_http_info(self, request): + def _delete_global_dc_gateway_http_info(self, request): http_info = { "method": "DELETE", - "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}/peer-links/{peer_link_id}", + "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}", "request_type": request.__class__.__name__, - "response_type": "DeletePeerLinkResponse" + "response_type": "DeleteGlobalDcGatewayResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1641,8 +1653,6 @@ def _delete_peer_link_http_info(self, request): path_params = {} if 'global_dc_gateway_id' in local_var_params: path_params['global_dc_gateway_id'] = local_var_params['global_dc_gateway_id'] - if 'peer_link_id' in local_var_params: - path_params['peer_link_id'] = local_var_params['peer_link_id'] query_params = [] @@ -1654,7 +1664,7 @@ def _delete_peer_link_http_info(self, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -1672,31 +1682,31 @@ def _delete_peer_link_http_info(self, request): return http_info - def list_global_dc_gateway_async(self, request): - """查询全球接入网关列表 + def list_global_dc_gateways_async(self, request): + """查询专线全域接入网关列表 - 查询 全球接入网关列表,返回列表中包含全球接入网关的详细信息。 + 查询专线全域接入网关列表,建议使用分页查询 分页查询使用的参数为marker、limit。marker和limit一起使用时才会生效,单独使用无效 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListGlobalDcGateway - :type request: :class:`huaweicloudsdkdc.v3.ListGlobalDcGatewayRequest` - :rtype: :class:`huaweicloudsdkdc.v3.ListGlobalDcGatewayResponse` + :param request: Request instance for ListGlobalDcGateways + :type request: :class:`huaweicloudsdkdc.v3.ListGlobalDcGatewaysRequest` + :rtype: :class:`huaweicloudsdkdc.v3.ListGlobalDcGatewaysResponse` """ - http_info = self._list_global_dc_gateway_http_info(request) + http_info = self._list_global_dc_gateways_http_info(request) return self._call_api(**http_info) - def list_global_dc_gateway_async_invoker(self, request): - http_info = self._list_global_dc_gateway_http_info(request) + def list_global_dc_gateways_async_invoker(self, request): + http_info = self._list_global_dc_gateways_http_info(request) return AsyncInvoker(self, http_info) - def _list_global_dc_gateway_http_info(self, request): + def _list_global_dc_gateways_http_info(self, request): http_info = { "method": "GET", "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways", "request_type": request.__class__.__name__, - "response_type": "ListGlobalDcGatewayResponse" + "response_type": "ListGlobalDcGatewaysResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1710,37 +1720,37 @@ def _list_global_dc_gateway_http_info(self, request): query_params = [] 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 'fields' in local_var_params: query_params.append(('fields', local_var_params['fields'])) collection_formats['fields'] = 'multi' + if 'marker' in local_var_params: + query_params.append(('marker', local_var_params['marker'])) if 'sort_key' in local_var_params: query_params.append(('sort_key', local_var_params['sort_key'])) if 'sort_dir' in local_var_params: query_params.append(('sort_dir', local_var_params['sort_dir'])) collection_formats['sort_dir'] = 'multi' - if 'hosting_id' in local_var_params: - query_params.append(('hosting_id', local_var_params['hosting_id'])) - collection_formats['hosting_id'] = 'multi' - if 'enterprise_project_id' in local_var_params: - query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) - collection_formats['enterprise_project_id'] = 'csv' if 'id' in local_var_params: query_params.append(('id', local_var_params['id'])) collection_formats['id'] = 'multi' if 'name' in local_var_params: query_params.append(('name', local_var_params['name'])) collection_formats['name'] = 'csv' - if 'global_center_network_id' in local_var_params: - query_params.append(('global_center_network_id', local_var_params['global_center_network_id'])) - collection_formats['global_center_network_id'] = 'multi' + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + collection_formats['enterprise_project_id'] = 'csv' if 'site_network_id' in local_var_params: query_params.append(('site_network_id', local_var_params['site_network_id'])) collection_formats['site_network_id'] = 'multi' if 'cloud_connection_id' in local_var_params: query_params.append(('cloud_connection_id', local_var_params['cloud_connection_id'])) collection_formats['cloud_connection_id'] = 'multi' + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + collection_formats['status'] = 'multi' + if 'global_center_network_id' in local_var_params: + query_params.append(('global_center_network_id', local_var_params['global_center_network_id'])) + collection_formats['global_center_network_id'] = 'multi' header_params = {} @@ -1750,7 +1760,7 @@ def _list_global_dc_gateway_http_info(self, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -1768,31 +1778,31 @@ def _list_global_dc_gateway_http_info(self, request): return http_info - def list_peer_links_async(self, request): - """查询全球接入网关对等链接 + def show_global_dc_gateway_async(self, request): + """查询专线全域接入网关详情 - 查询全球接入网关对等链接,返回查询到的全球接入网关对等链接的详细信息。 + 查询专线全域接入网关实例详情信息 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListPeerLinks - :type request: :class:`huaweicloudsdkdc.v3.ListPeerLinksRequest` - :rtype: :class:`huaweicloudsdkdc.v3.ListPeerLinksResponse` + :param request: Request instance for ShowGlobalDcGateway + :type request: :class:`huaweicloudsdkdc.v3.ShowGlobalDcGatewayRequest` + :rtype: :class:`huaweicloudsdkdc.v3.ShowGlobalDcGatewayResponse` """ - http_info = self._list_peer_links_http_info(request) + http_info = self._show_global_dc_gateway_http_info(request) return self._call_api(**http_info) - def list_peer_links_async_invoker(self, request): - http_info = self._list_peer_links_http_info(request) + def show_global_dc_gateway_async_invoker(self, request): + http_info = self._show_global_dc_gateway_http_info(request) return AsyncInvoker(self, http_info) - def _list_peer_links_http_info(self, request): + def _show_global_dc_gateway_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}/peer-links", + "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}", "request_type": request.__class__.__name__, - "response_type": "ListPeerLinksResponse" + "response_type": "ShowGlobalDcGatewayResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1808,29 +1818,15 @@ def _list_peer_links_http_info(self, request): query_params = [] if 'limit' in local_var_params: query_params.append(('limit', local_var_params['limit'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) - if 'marker' in local_var_params: - query_params.append(('marker', local_var_params['marker'])) - if 'page_reverse' in local_var_params: - query_params.append(('page_reverse', local_var_params['page_reverse'])) if 'fields' in local_var_params: query_params.append(('fields', local_var_params['fields'])) collection_formats['fields'] = 'multi' if 'ext_fields' in local_var_params: query_params.append(('ext_fields', local_var_params['ext_fields'])) collection_formats['ext_fields'] = 'multi' - if 'sort_key' in local_var_params: - query_params.append(('sort_key', local_var_params['sort_key'])) - if 'sort_dir' in local_var_params: - query_params.append(('sort_dir', local_var_params['sort_dir'])) - collection_formats['sort_dir'] = 'multi' - if 'id' in local_var_params: - query_params.append(('id', local_var_params['id'])) - collection_formats['id'] = 'multi' - if 'name' in local_var_params: - query_params.append(('name', local_var_params['name'])) - collection_formats['name'] = 'csv' + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + collection_formats['enterprise_project_id'] = 'csv' header_params = {} @@ -1840,7 +1836,7 @@ def _list_peer_links_http_info(self, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -1858,31 +1854,31 @@ def _list_peer_links_http_info(self, request): return http_info - def list_rms_global_dc_gateway_async(self, request): - """查询RMS全球接入网关 + def update_global_dc_gateway_async(self, request): + """更新专线全域接入网关 - 根据类型、domain_id、region_id,资源类型查询资源,返回查询到的资源的详细信息。 + 更新专线全域接入网关global-dc-gateway的名字,描述等信息 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListRmsGlobalDcGateway - :type request: :class:`huaweicloudsdkdc.v3.ListRmsGlobalDcGatewayRequest` - :rtype: :class:`huaweicloudsdkdc.v3.ListRmsGlobalDcGatewayResponse` + :param request: Request instance for UpdateGlobalDcGateway + :type request: :class:`huaweicloudsdkdc.v3.UpdateGlobalDcGatewayRequest` + :rtype: :class:`huaweicloudsdkdc.v3.UpdateGlobalDcGatewayResponse` """ - http_info = self._list_rms_global_dc_gateway_http_info(request) + http_info = self._update_global_dc_gateway_http_info(request) return self._call_api(**http_info) - def list_rms_global_dc_gateway_async_invoker(self, request): - http_info = self._list_rms_global_dc_gateway_http_info(request) + def update_global_dc_gateway_async_invoker(self, request): + http_info = self._update_global_dc_gateway_http_info(request) return AsyncInvoker(self, http_info) - def _list_rms_global_dc_gateway_http_info(self, request): + def _update_global_dc_gateway_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v3/providers/{rp_name}/domains/{domain_id}/regions/{region_id}/{resource_type}", + "method": "PUT", + "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}", "request_type": request.__class__.__name__, - "response_type": "ListRmsGlobalDcGatewayResponse" + "response_type": "UpdateGlobalDcGatewayResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1892,66 +1888,22 @@ def _list_rms_global_dc_gateway_http_info(self, request): collection_formats = {} path_params = {} - if 'rp_name' in local_var_params: - path_params['rp_name'] = local_var_params['rp_name'] - if 'domain_id' in local_var_params: - path_params['domain_id'] = local_var_params['domain_id'] - if 'region_id' in local_var_params: - path_params['region_id'] = local_var_params['region_id'] - if 'resource_type' in local_var_params: - path_params['resource_type'] = local_var_params['resource_type'] + if 'global_dc_gateway_id' in local_var_params: + path_params['global_dc_gateway_id'] = local_var_params['global_dc_gateway_id'] query_params = [] - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) - if 'marker' in local_var_params: - query_params.append(('marker', local_var_params['marker'])) - if 'page_reverse' in local_var_params: - query_params.append(('page_reverse', local_var_params['page_reverse'])) - if 'fields' in local_var_params: - query_params.append(('fields', local_var_params['fields'])) - collection_formats['fields'] = 'multi' - if 'ext_fields' in local_var_params: - query_params.append(('ext_fields', local_var_params['ext_fields'])) - collection_formats['ext_fields'] = 'multi' - if 'sort_key' in local_var_params: - query_params.append(('sort_key', local_var_params['sort_key'])) - if 'sort_dir' in local_var_params: - query_params.append(('sort_dir', local_var_params['sort_dir'])) - collection_formats['sort_dir'] = 'multi' - if 'id' in local_var_params: - query_params.append(('id', local_var_params['id'])) - collection_formats['id'] = 'multi' - if 'name' in local_var_params: - query_params.append(('name', local_var_params['name'])) - collection_formats['name'] = 'csv' - if 'status' in local_var_params: - query_params.append(('status', local_var_params['status'])) - collection_formats['status'] = 'multi' - if 'enterprise_project_id' in local_var_params: - query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) - collection_formats['enterprise_project_id'] = 'csv' - if 'global_center_network_id' in local_var_params: - query_params.append(('global_center_network_id', local_var_params['global_center_network_id'])) - collection_formats['global_center_network_id'] = 'multi' - if 'site_network_id' in local_var_params: - query_params.append(('site_network_id', local_var_params['site_network_id'])) - collection_formats['site_network_id'] = 'multi' - if 'cloud_connection_id' in local_var_params: - query_params.append(('cloud_connection_id', local_var_params['cloud_connection_id'])) - collection_formats['cloud_connection_id'] = 'multi' header_params = {} form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -1969,31 +1921,31 @@ def _list_rms_global_dc_gateway_http_info(self, request): return http_info - def show_global_dc_gateway_async(self, request): - """查询全球接入网关详情 + def create_peer_link_async(self, request): + """创建专线关联连接 - 根据ID查询全球接入网关,返回查询到的全球接入网关的详细信息。 + 创建专线全域接入网关的关联连接peer-link对象,用于连接企业路由器或者其他接入网关 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowGlobalDcGateway - :type request: :class:`huaweicloudsdkdc.v3.ShowGlobalDcGatewayRequest` - :rtype: :class:`huaweicloudsdkdc.v3.ShowGlobalDcGatewayResponse` + :param request: Request instance for CreatePeerLink + :type request: :class:`huaweicloudsdkdc.v3.CreatePeerLinkRequest` + :rtype: :class:`huaweicloudsdkdc.v3.CreatePeerLinkResponse` """ - http_info = self._show_global_dc_gateway_http_info(request) + http_info = self._create_peer_link_http_info(request) return self._call_api(**http_info) - def show_global_dc_gateway_async_invoker(self, request): - http_info = self._show_global_dc_gateway_http_info(request) + def create_peer_link_async_invoker(self, request): + http_info = self._create_peer_link_http_info(request) return AsyncInvoker(self, http_info) - def _show_global_dc_gateway_http_info(self, request): + def _create_peer_link_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}", + "method": "POST", + "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}/peer-links", "request_type": request.__class__.__name__, - "response_type": "ShowGlobalDcGatewayResponse" + "response_type": "CreatePeerLinkResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2007,22 +1959,18 @@ def _show_global_dc_gateway_http_info(self, request): path_params['global_dc_gateway_id'] = local_var_params['global_dc_gateway_id'] query_params = [] - if 'fields' in local_var_params: - query_params.append(('fields', local_var_params['fields'])) - collection_formats['fields'] = 'multi' - if 'ext_fields' in local_var_params: - query_params.append(('ext_fields', local_var_params['ext_fields'])) - collection_formats['ext_fields'] = 'multi' header_params = {} form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -2040,31 +1988,31 @@ def _show_global_dc_gateway_http_info(self, request): return http_info - def show_peer_link_async(self, request): - """查询全球接入网关对等链接 + def delete_peer_link_async(self, request): + """删除专线关联连接 - 根据ID查询全球接入网关对等链接,返回查询到的全球接入网关对等链接的详细信息。 + 删除全域接入网关与ER的关联连接peer-link Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowPeerLink - :type request: :class:`huaweicloudsdkdc.v3.ShowPeerLinkRequest` - :rtype: :class:`huaweicloudsdkdc.v3.ShowPeerLinkResponse` + :param request: Request instance for DeletePeerLink + :type request: :class:`huaweicloudsdkdc.v3.DeletePeerLinkRequest` + :rtype: :class:`huaweicloudsdkdc.v3.DeletePeerLinkResponse` """ - http_info = self._show_peer_link_http_info(request) + http_info = self._delete_peer_link_http_info(request) return self._call_api(**http_info) - def show_peer_link_async_invoker(self, request): - http_info = self._show_peer_link_http_info(request) + def delete_peer_link_async_invoker(self, request): + http_info = self._delete_peer_link_http_info(request) return AsyncInvoker(self, http_info) - def _show_peer_link_http_info(self, request): + def _delete_peer_link_http_info(self, request): http_info = { - "method": "GET", + "method": "DELETE", "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}/peer-links/{peer_link_id}", "request_type": request.__class__.__name__, - "response_type": "ShowPeerLinkResponse" + "response_type": "DeletePeerLinkResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2080,12 +2028,6 @@ def _show_peer_link_http_info(self, request): path_params['peer_link_id'] = local_var_params['peer_link_id'] query_params = [] - if 'fields' in local_var_params: - query_params.append(('fields', local_var_params['fields'])) - collection_formats['fields'] = 'multi' - if 'ext_fields' in local_var_params: - query_params.append(('ext_fields', local_var_params['ext_fields'])) - collection_formats['ext_fields'] = 'multi' header_params = {} @@ -2095,7 +2037,7 @@ def _show_peer_link_http_info(self, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -2113,31 +2055,31 @@ def _show_peer_link_http_info(self, request): return http_info - def show_rms_global_dc_gateway_async(self, request): - """查询RMS全球接入网关 + def list_peer_links_async(self, request): + """查询专线关联连接列表 - 根据类型、domain_id、region_id,资源类型,全球接入网关ID查询资源,返回查询到的资源的详细信息。 + 查询全域接入网关与ER等对象的关联连接列表,分页查询使用的参数为marker、limit。marker和limit一起使用时才会生效,单独使用无效 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowRmsGlobalDcGateway - :type request: :class:`huaweicloudsdkdc.v3.ShowRmsGlobalDcGatewayRequest` - :rtype: :class:`huaweicloudsdkdc.v3.ShowRmsGlobalDcGatewayResponse` + :param request: Request instance for ListPeerLinks + :type request: :class:`huaweicloudsdkdc.v3.ListPeerLinksRequest` + :rtype: :class:`huaweicloudsdkdc.v3.ListPeerLinksResponse` """ - http_info = self._show_rms_global_dc_gateway_http_info(request) + http_info = self._list_peer_links_http_info(request) return self._call_api(**http_info) - def show_rms_global_dc_gateway_async_invoker(self, request): - http_info = self._show_rms_global_dc_gateway_http_info(request) + def list_peer_links_async_invoker(self, request): + http_info = self._list_peer_links_http_info(request) return AsyncInvoker(self, http_info) - def _show_rms_global_dc_gateway_http_info(self, request): + def _list_peer_links_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v3/providers/{rp_name}/domains/{domain_id}/regions/{region_id}/{resource_type}/{global_dc_gateway_id}", + "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}/peer-links", "request_type": request.__class__.__name__, - "response_type": "ShowRmsGlobalDcGatewayResponse" + "response_type": "ListPeerLinksResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2147,24 +2089,35 @@ def _show_rms_global_dc_gateway_http_info(self, request): collection_formats = {} path_params = {} - if 'rp_name' in local_var_params: - path_params['rp_name'] = local_var_params['rp_name'] - if 'domain_id' in local_var_params: - path_params['domain_id'] = local_var_params['domain_id'] - if 'region_id' in local_var_params: - path_params['region_id'] = local_var_params['region_id'] - if 'resource_type' in local_var_params: - path_params['resource_type'] = local_var_params['resource_type'] if 'global_dc_gateway_id' in local_var_params: path_params['global_dc_gateway_id'] = local_var_params['global_dc_gateway_id'] query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'marker' in local_var_params: + query_params.append(('marker', local_var_params['marker'])) + if 'page_reverse' in local_var_params: + query_params.append(('page_reverse', local_var_params['page_reverse'])) if 'fields' in local_var_params: query_params.append(('fields', local_var_params['fields'])) collection_formats['fields'] = 'multi' if 'ext_fields' in local_var_params: query_params.append(('ext_fields', local_var_params['ext_fields'])) collection_formats['ext_fields'] = 'multi' + if 'sort_key' in local_var_params: + query_params.append(('sort_key', local_var_params['sort_key'])) + if 'sort_dir' in local_var_params: + query_params.append(('sort_dir', local_var_params['sort_dir'])) + collection_formats['sort_dir'] = 'multi' + if 'id' in local_var_params: + query_params.append(('id', local_var_params['id'])) + collection_formats['id'] = 'multi' + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + collection_formats['name'] = 'csv' header_params = {} @@ -2174,7 +2127,7 @@ def _show_rms_global_dc_gateway_http_info(self, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -2192,31 +2145,31 @@ def _show_rms_global_dc_gateway_http_info(self, request): return http_info - def update_global_dc_gateway_async(self, request): - """修改全球接入网关 + def show_peer_link_async(self, request): + """查询专线关联连接详情 - 根据ID修改全球接入网关,返回修改全球接入网关的结果。 + 查询指定接入网关的指定的关联连接(peer link)详情 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateGlobalDcGateway - :type request: :class:`huaweicloudsdkdc.v3.UpdateGlobalDcGatewayRequest` - :rtype: :class:`huaweicloudsdkdc.v3.UpdateGlobalDcGatewayResponse` + :param request: Request instance for ShowPeerLink + :type request: :class:`huaweicloudsdkdc.v3.ShowPeerLinkRequest` + :rtype: :class:`huaweicloudsdkdc.v3.ShowPeerLinkResponse` """ - http_info = self._update_global_dc_gateway_http_info(request) + http_info = self._show_peer_link_http_info(request) return self._call_api(**http_info) - def update_global_dc_gateway_async_invoker(self, request): - http_info = self._update_global_dc_gateway_http_info(request) + def show_peer_link_async_invoker(self, request): + http_info = self._show_peer_link_http_info(request) return AsyncInvoker(self, http_info) - def _update_global_dc_gateway_http_info(self, request): + def _show_peer_link_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}", + "method": "GET", + "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}/peer-links/{peer_link_id}", "request_type": request.__class__.__name__, - "response_type": "UpdateGlobalDcGatewayResponse" + "response_type": "ShowPeerLinkResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2228,23 +2181,29 @@ def _update_global_dc_gateway_http_info(self, request): path_params = {} if 'global_dc_gateway_id' in local_var_params: path_params['global_dc_gateway_id'] = local_var_params['global_dc_gateway_id'] + if 'peer_link_id' in local_var_params: + path_params['peer_link_id'] = local_var_params['peer_link_id'] query_params = [] + if 'fields' in local_var_params: + query_params.append(('fields', local_var_params['fields'])) + collection_formats['fields'] = 'multi' + if 'ext_fields' in local_var_params: + query_params.append(('ext_fields', local_var_params['ext_fields'])) + collection_formats['ext_fields'] = 'multi' header_params = {} form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json; charset=utf-8']) + ['application/json']) auth_settings = [] @@ -2260,9 +2219,9 @@ def _update_global_dc_gateway_http_info(self, request): return http_info def update_peer_link_async(self, request): - """修改全球接入网关对等链接 + """更新专线关联连接 - 根据ID修改全球接入网关对等链接,返回修改全球接入网关对等链接的结果。 + 更新接入网关与ER对接的关联连接peer-link Please refer to HUAWEI cloud API Explorer for details. @@ -2310,10 +2269,10 @@ def _update_peer_link_http_info(self, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json; charset=utf-8']) + ['application/json']) auth_settings = [] @@ -3287,7 +3246,7 @@ def _create_virtual_interface_http_info(self, request): def delete_vif_peer_async(self, request): """删除虚拟接口对应的对等体 - 删除虚拟接口对等体信息,虚拟接口到少要含一个对等体,最后一个对等体不能删除 本接口只在支持Ipv6的区域开放,如需要使用请联系客服 + 删除虚拟接口对等体信息,虚拟接口至少要含一个对等体,最后一个对等体不能删除 本接口只在支持Ipv6的区域开放,如需要使用请联系客服 Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/dc_client.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/dc_client.py index d2abe35e5b..2975acb356 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/dc_client.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/dc_client.py @@ -81,7 +81,7 @@ def _bind_global_eips_http_info(cls, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json; charset=utf-8']) @@ -174,7 +174,7 @@ def _list_global_eips_http_info(cls, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -241,7 +241,7 @@ def _unbind_global_eips_http_info(cls, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json; charset=utf-8']) @@ -1261,31 +1261,31 @@ def _update_hosted_direct_connect_http_info(cls, request): return http_info - def list_gdgw_route_tables(self, request): - """查询全球接入网关路由表 + def list_direct_connect_locations(self, request): + """查询专线接入点位置列表 - 查询全球接入网关路由表,返回查询到的全球接入网关路由表的详细信息。 + 查询本区域下所有专线的接入点的信息,分页查询使用的参数为marker、limit。marker和limit一起使用时才会生效,单独使用无效。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListGdgwRouteTables - :type request: :class:`huaweicloudsdkdc.v3.ListGdgwRouteTablesRequest` - :rtype: :class:`huaweicloudsdkdc.v3.ListGdgwRouteTablesResponse` + :param request: Request instance for ListDirectConnectLocations + :type request: :class:`huaweicloudsdkdc.v3.ListDirectConnectLocationsRequest` + :rtype: :class:`huaweicloudsdkdc.v3.ListDirectConnectLocationsResponse` """ - http_info = self._list_gdgw_route_tables_http_info(request) + http_info = self._list_direct_connect_locations_http_info(request) return self._call_api(**http_info) - def list_gdgw_route_tables_invoker(self, request): - http_info = self._list_gdgw_route_tables_http_info(request) + def list_direct_connect_locations_invoker(self, request): + http_info = self._list_direct_connect_locations_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_gdgw_route_tables_http_info(cls, request): + def _list_direct_connect_locations_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v3/{project_id}/dcaas/gdgw/{gdgw_id}/routetables", + "resource_path": "/v3/{project_id}/dcaas/direct-connect-locations", "request_type": request.__class__.__name__, - "response_type": "ListGdgwRouteTablesResponse" + "response_type": "ListDirectConnectLocationsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1295,25 +1295,26 @@ def _list_gdgw_route_tables_http_info(cls, request): collection_formats = {} path_params = {} - if 'gdgw_id' in local_var_params: - path_params['gdgw_id'] = local_var_params['gdgw_id'] query_params = [] - if 'fields' in local_var_params: - query_params.append(('fields', local_var_params['fields'])) - collection_formats['fields'] = 'multi' - if 'ext_fields' in local_var_params: - query_params.append(('ext_fields', local_var_params['ext_fields'])) - collection_formats['ext_fields'] = 'multi' - if 'nexthop' in local_var_params: - query_params.append(('nexthop', local_var_params['nexthop'])) - collection_formats['nexthop'] = 'multi' - if 'destination' in local_var_params: - query_params.append(('destination', local_var_params['destination'])) - collection_formats['destination'] = 'multi' - if 'address_family' in local_var_params: - query_params.append(('address_family', local_var_params['address_family'])) - collection_formats['address_family'] = 'multi' + 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 'sort_key' in local_var_params: + query_params.append(('sort_key', local_var_params['sort_key'])) + if 'sort_dir' in local_var_params: + query_params.append(('sort_dir', local_var_params['sort_dir'])) + collection_formats['sort_dir'] = 'multi' + if 'id' in local_var_params: + query_params.append(('id', local_var_params['id'])) + collection_formats['id'] = 'multi' + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + collection_formats['name'] = 'csv' + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + collection_formats['status'] = 'multi' header_params = {} @@ -1323,7 +1324,7 @@ def _list_gdgw_route_tables_http_info(cls, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -1341,31 +1342,31 @@ def _list_gdgw_route_tables_http_info(cls, request): return http_info - def update_gdgw_route_table(self, request): - """修改全球接入网关路由表 + def show_direct_connect_location(self, request): + """查询指定专线接入点详情 - 修改全球接入网关路由表,返回修改全球接入网关路由表的结果。 + 查询指定的专线接入点详情 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateGdgwRouteTable - :type request: :class:`huaweicloudsdkdc.v3.UpdateGdgwRouteTableRequest` - :rtype: :class:`huaweicloudsdkdc.v3.UpdateGdgwRouteTableResponse` + :param request: Request instance for ShowDirectConnectLocation + :type request: :class:`huaweicloudsdkdc.v3.ShowDirectConnectLocationRequest` + :rtype: :class:`huaweicloudsdkdc.v3.ShowDirectConnectLocationResponse` """ - http_info = self._update_gdgw_route_table_http_info(request) + http_info = self._show_direct_connect_location_http_info(request) return self._call_api(**http_info) - def update_gdgw_route_table_invoker(self, request): - http_info = self._update_gdgw_route_table_http_info(request) + def show_direct_connect_location_invoker(self, request): + http_info = self._show_direct_connect_location_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_gdgw_route_table_http_info(cls, request): + def _show_direct_connect_location_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v3/{project_id}/dcaas/gdgw/{gdgw_id}/routetables", + "method": "GET", + "resource_path": "/v3/{project_id}/dcaas/direct-connect-locations/{direct_connect_location_id}", "request_type": request.__class__.__name__, - "response_type": "UpdateGdgwRouteTableResponse" + "response_type": "ShowDirectConnectLocationResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1375,8 +1376,8 @@ def _update_gdgw_route_table_http_info(cls, request): collection_formats = {} path_params = {} - if 'gdgw_id' in local_var_params: - path_params['gdgw_id'] = local_var_params['gdgw_id'] + if 'direct_connect_location_id' in local_var_params: + path_params['direct_connect_location_id'] = local_var_params['direct_connect_location_id'] query_params = [] @@ -1385,15 +1386,13 @@ def _update_gdgw_route_table_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json; charset=utf-8']) + ['application/json']) auth_settings = [] @@ -1408,31 +1407,31 @@ def _update_gdgw_route_table_http_info(cls, request): return http_info - def create_global_dc_gateway(self, request): - """创建全球接入网关 + def list_gdgw_route_tables(self, request): + """查询全域接入网关路由表 - 创建全球接入网关,返回创建全球接入网关的结果。 + 查询全域接入网关路由表 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateGlobalDcGateway - :type request: :class:`huaweicloudsdkdc.v3.CreateGlobalDcGatewayRequest` - :rtype: :class:`huaweicloudsdkdc.v3.CreateGlobalDcGatewayResponse` + :param request: Request instance for ListGdgwRouteTables + :type request: :class:`huaweicloudsdkdc.v3.ListGdgwRouteTablesRequest` + :rtype: :class:`huaweicloudsdkdc.v3.ListGdgwRouteTablesResponse` """ - http_info = self._create_global_dc_gateway_http_info(request) + http_info = self._list_gdgw_route_tables_http_info(request) return self._call_api(**http_info) - def create_global_dc_gateway_invoker(self, request): - http_info = self._create_global_dc_gateway_http_info(request) + def list_gdgw_route_tables_invoker(self, request): + http_info = self._list_gdgw_route_tables_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_global_dc_gateway_http_info(cls, request): + def _list_gdgw_route_tables_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways", + "method": "GET", + "resource_path": "/v3/{project_id}/dcaas/gdgw/{gdgw_id}/routetables", "request_type": request.__class__.__name__, - "response_type": "CreateGlobalDcGatewayResponse" + "response_type": "ListGdgwRouteTablesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1442,23 +1441,32 @@ def _create_global_dc_gateway_http_info(cls, request): collection_formats = {} path_params = {} + if 'gdgw_id' in local_var_params: + path_params['gdgw_id'] = local_var_params['gdgw_id'] query_params = [] + if 'address_family' in local_var_params: + query_params.append(('address_family', local_var_params['address_family'])) + collection_formats['address_family'] = 'multi' + if 'nexthop' in local_var_params: + query_params.append(('nexthop', local_var_params['nexthop'])) + collection_formats['nexthop'] = 'multi' + if 'destination' in local_var_params: + query_params.append(('destination', local_var_params['destination'])) + collection_formats['destination'] = 'multi' header_params = {} form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json; charset=utf-8']) + ['application/json']) auth_settings = [] @@ -1473,31 +1481,35 @@ def _create_global_dc_gateway_http_info(cls, request): return http_info - def create_peer_link(self, request): - """创建全球接入网关对等链接 + def update_gdgw_route_table(self, request): + """修改全域接入网关路由表 - 创建全球接入网关对等链接,返回创建全球接入网关对等链接的结果。 + # 支持的修改操作: + **注意:新增、删除、修改操作互斥,一次请求只能执行其中一类操作** + + 1. 新增下一跳路由 + + 2. 删除下一跳路由 + + 3. 修改路由描述 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreatePeerLink - :type request: :class:`huaweicloudsdkdc.v3.CreatePeerLinkRequest` - :rtype: :class:`huaweicloudsdkdc.v3.CreatePeerLinkResponse` + :param request: Request instance for UpdateGdgwRouteTable + :type request: :class:`huaweicloudsdkdc.v3.UpdateGdgwRouteTableRequest` + :rtype: :class:`huaweicloudsdkdc.v3.UpdateGdgwRouteTableResponse` """ - http_info = self._create_peer_link_http_info(request) + http_info = self._update_gdgw_route_table_http_info(request) return self._call_api(**http_info) - def create_peer_link_invoker(self, request): - http_info = self._create_peer_link_http_info(request) + def update_gdgw_route_table_invoker(self, request): + http_info = self._update_gdgw_route_table_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_peer_link_http_info(cls, request): + def _update_gdgw_route_table_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}/peer-links", + "method": "PUT", + "resource_path": "/v3/{project_id}/dcaas/gdgw/{gdgw_id}/routetables", "request_type": request.__class__.__name__, - "response_type": "CreatePeerLinkResponse" + "response_type": "UpdateGdgwRouteTableResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1507,8 +1519,8 @@ def _create_peer_link_http_info(cls, request): collection_formats = {} path_params = {} - if 'global_dc_gateway_id' in local_var_params: - path_params['global_dc_gateway_id'] = local_var_params['global_dc_gateway_id'] + if 'gdgw_id' in local_var_params: + path_params['gdgw_id'] = local_var_params['gdgw_id'] query_params = [] @@ -1522,7 +1534,7 @@ def _create_peer_link_http_info(cls, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json; charset=utf-8']) @@ -1540,31 +1552,31 @@ def _create_peer_link_http_info(cls, request): return http_info - def delete_global_dc_gateway(self, request): - """删除全球接入网关 + def create_global_dc_gateway(self, request): + """创建专线全域接入网关 - 根据ID删除全球接入网关,返回删除全球接入网关的结果。 + 创建专线全域接入网关实例(global-dc-gateway),用于接入全球的ER实例 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteGlobalDcGateway - :type request: :class:`huaweicloudsdkdc.v3.DeleteGlobalDcGatewayRequest` - :rtype: :class:`huaweicloudsdkdc.v3.DeleteGlobalDcGatewayResponse` + :param request: Request instance for CreateGlobalDcGateway + :type request: :class:`huaweicloudsdkdc.v3.CreateGlobalDcGatewayRequest` + :rtype: :class:`huaweicloudsdkdc.v3.CreateGlobalDcGatewayResponse` """ - http_info = self._delete_global_dc_gateway_http_info(request) + http_info = self._create_global_dc_gateway_http_info(request) return self._call_api(**http_info) - def delete_global_dc_gateway_invoker(self, request): - http_info = self._delete_global_dc_gateway_http_info(request) + def create_global_dc_gateway_invoker(self, request): + http_info = self._create_global_dc_gateway_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _delete_global_dc_gateway_http_info(cls, request): + def _create_global_dc_gateway_http_info(cls, request): http_info = { - "method": "DELETE", - "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}", + "method": "POST", + "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways", "request_type": request.__class__.__name__, - "response_type": "DeleteGlobalDcGatewayResponse" + "response_type": "CreateGlobalDcGatewayResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1574,8 +1586,6 @@ def _delete_global_dc_gateway_http_info(cls, request): collection_formats = {} path_params = {} - if 'global_dc_gateway_id' in local_var_params: - path_params['global_dc_gateway_id'] = local_var_params['global_dc_gateway_id'] query_params = [] @@ -1584,10 +1594,12 @@ def _delete_global_dc_gateway_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -1605,31 +1617,31 @@ def _delete_global_dc_gateway_http_info(cls, request): return http_info - def delete_peer_link(self, request): - """删除全球接入网关对等链接 + def delete_global_dc_gateway(self, request): + """删除专线全域接入网关 - 根据ID删除全球接入网关对等链接,返回删除全球接入网关对等链接的结果。 + 删除专线全域接入网关global-dc-gateway实例 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeletePeerLink - :type request: :class:`huaweicloudsdkdc.v3.DeletePeerLinkRequest` - :rtype: :class:`huaweicloudsdkdc.v3.DeletePeerLinkResponse` + :param request: Request instance for DeleteGlobalDcGateway + :type request: :class:`huaweicloudsdkdc.v3.DeleteGlobalDcGatewayRequest` + :rtype: :class:`huaweicloudsdkdc.v3.DeleteGlobalDcGatewayResponse` """ - http_info = self._delete_peer_link_http_info(request) + http_info = self._delete_global_dc_gateway_http_info(request) return self._call_api(**http_info) - def delete_peer_link_invoker(self, request): - http_info = self._delete_peer_link_http_info(request) + def delete_global_dc_gateway_invoker(self, request): + http_info = self._delete_global_dc_gateway_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _delete_peer_link_http_info(cls, request): + def _delete_global_dc_gateway_http_info(cls, request): http_info = { "method": "DELETE", - "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}/peer-links/{peer_link_id}", + "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}", "request_type": request.__class__.__name__, - "response_type": "DeletePeerLinkResponse" + "response_type": "DeleteGlobalDcGatewayResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1641,8 +1653,6 @@ def _delete_peer_link_http_info(cls, request): path_params = {} if 'global_dc_gateway_id' in local_var_params: path_params['global_dc_gateway_id'] = local_var_params['global_dc_gateway_id'] - if 'peer_link_id' in local_var_params: - path_params['peer_link_id'] = local_var_params['peer_link_id'] query_params = [] @@ -1654,7 +1664,7 @@ def _delete_peer_link_http_info(cls, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -1672,31 +1682,31 @@ def _delete_peer_link_http_info(cls, request): return http_info - def list_global_dc_gateway(self, request): - """查询全球接入网关列表 + def list_global_dc_gateways(self, request): + """查询专线全域接入网关列表 - 查询 全球接入网关列表,返回列表中包含全球接入网关的详细信息。 + 查询专线全域接入网关列表,建议使用分页查询 分页查询使用的参数为marker、limit。marker和limit一起使用时才会生效,单独使用无效 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListGlobalDcGateway - :type request: :class:`huaweicloudsdkdc.v3.ListGlobalDcGatewayRequest` - :rtype: :class:`huaweicloudsdkdc.v3.ListGlobalDcGatewayResponse` + :param request: Request instance for ListGlobalDcGateways + :type request: :class:`huaweicloudsdkdc.v3.ListGlobalDcGatewaysRequest` + :rtype: :class:`huaweicloudsdkdc.v3.ListGlobalDcGatewaysResponse` """ - http_info = self._list_global_dc_gateway_http_info(request) + http_info = self._list_global_dc_gateways_http_info(request) return self._call_api(**http_info) - def list_global_dc_gateway_invoker(self, request): - http_info = self._list_global_dc_gateway_http_info(request) + def list_global_dc_gateways_invoker(self, request): + http_info = self._list_global_dc_gateways_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_global_dc_gateway_http_info(cls, request): + def _list_global_dc_gateways_http_info(cls, request): http_info = { "method": "GET", "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways", "request_type": request.__class__.__name__, - "response_type": "ListGlobalDcGatewayResponse" + "response_type": "ListGlobalDcGatewaysResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1710,37 +1720,37 @@ def _list_global_dc_gateway_http_info(cls, request): query_params = [] 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 'fields' in local_var_params: query_params.append(('fields', local_var_params['fields'])) collection_formats['fields'] = 'multi' + if 'marker' in local_var_params: + query_params.append(('marker', local_var_params['marker'])) if 'sort_key' in local_var_params: query_params.append(('sort_key', local_var_params['sort_key'])) if 'sort_dir' in local_var_params: query_params.append(('sort_dir', local_var_params['sort_dir'])) collection_formats['sort_dir'] = 'multi' - if 'hosting_id' in local_var_params: - query_params.append(('hosting_id', local_var_params['hosting_id'])) - collection_formats['hosting_id'] = 'multi' - if 'enterprise_project_id' in local_var_params: - query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) - collection_formats['enterprise_project_id'] = 'csv' if 'id' in local_var_params: query_params.append(('id', local_var_params['id'])) collection_formats['id'] = 'multi' if 'name' in local_var_params: query_params.append(('name', local_var_params['name'])) collection_formats['name'] = 'csv' - if 'global_center_network_id' in local_var_params: - query_params.append(('global_center_network_id', local_var_params['global_center_network_id'])) - collection_formats['global_center_network_id'] = 'multi' + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + collection_formats['enterprise_project_id'] = 'csv' if 'site_network_id' in local_var_params: query_params.append(('site_network_id', local_var_params['site_network_id'])) collection_formats['site_network_id'] = 'multi' if 'cloud_connection_id' in local_var_params: query_params.append(('cloud_connection_id', local_var_params['cloud_connection_id'])) collection_formats['cloud_connection_id'] = 'multi' + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + collection_formats['status'] = 'multi' + if 'global_center_network_id' in local_var_params: + query_params.append(('global_center_network_id', local_var_params['global_center_network_id'])) + collection_formats['global_center_network_id'] = 'multi' header_params = {} @@ -1750,7 +1760,7 @@ def _list_global_dc_gateway_http_info(cls, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -1768,31 +1778,31 @@ def _list_global_dc_gateway_http_info(cls, request): return http_info - def list_peer_links(self, request): - """查询全球接入网关对等链接 + def show_global_dc_gateway(self, request): + """查询专线全域接入网关详情 - 查询全球接入网关对等链接,返回查询到的全球接入网关对等链接的详细信息。 + 查询专线全域接入网关实例详情信息 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListPeerLinks - :type request: :class:`huaweicloudsdkdc.v3.ListPeerLinksRequest` - :rtype: :class:`huaweicloudsdkdc.v3.ListPeerLinksResponse` + :param request: Request instance for ShowGlobalDcGateway + :type request: :class:`huaweicloudsdkdc.v3.ShowGlobalDcGatewayRequest` + :rtype: :class:`huaweicloudsdkdc.v3.ShowGlobalDcGatewayResponse` """ - http_info = self._list_peer_links_http_info(request) + http_info = self._show_global_dc_gateway_http_info(request) return self._call_api(**http_info) - def list_peer_links_invoker(self, request): - http_info = self._list_peer_links_http_info(request) + def show_global_dc_gateway_invoker(self, request): + http_info = self._show_global_dc_gateway_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_peer_links_http_info(cls, request): + def _show_global_dc_gateway_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}/peer-links", + "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}", "request_type": request.__class__.__name__, - "response_type": "ListPeerLinksResponse" + "response_type": "ShowGlobalDcGatewayResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1808,29 +1818,15 @@ def _list_peer_links_http_info(cls, request): query_params = [] if 'limit' in local_var_params: query_params.append(('limit', local_var_params['limit'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) - if 'marker' in local_var_params: - query_params.append(('marker', local_var_params['marker'])) - if 'page_reverse' in local_var_params: - query_params.append(('page_reverse', local_var_params['page_reverse'])) if 'fields' in local_var_params: query_params.append(('fields', local_var_params['fields'])) collection_formats['fields'] = 'multi' if 'ext_fields' in local_var_params: query_params.append(('ext_fields', local_var_params['ext_fields'])) collection_formats['ext_fields'] = 'multi' - if 'sort_key' in local_var_params: - query_params.append(('sort_key', local_var_params['sort_key'])) - if 'sort_dir' in local_var_params: - query_params.append(('sort_dir', local_var_params['sort_dir'])) - collection_formats['sort_dir'] = 'multi' - if 'id' in local_var_params: - query_params.append(('id', local_var_params['id'])) - collection_formats['id'] = 'multi' - if 'name' in local_var_params: - query_params.append(('name', local_var_params['name'])) - collection_formats['name'] = 'csv' + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + collection_formats['enterprise_project_id'] = 'csv' header_params = {} @@ -1840,7 +1836,7 @@ def _list_peer_links_http_info(cls, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -1858,31 +1854,31 @@ def _list_peer_links_http_info(cls, request): return http_info - def list_rms_global_dc_gateway(self, request): - """查询RMS全球接入网关 + def update_global_dc_gateway(self, request): + """更新专线全域接入网关 - 根据类型、domain_id、region_id,资源类型查询资源,返回查询到的资源的详细信息。 + 更新专线全域接入网关global-dc-gateway的名字,描述等信息 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListRmsGlobalDcGateway - :type request: :class:`huaweicloudsdkdc.v3.ListRmsGlobalDcGatewayRequest` - :rtype: :class:`huaweicloudsdkdc.v3.ListRmsGlobalDcGatewayResponse` + :param request: Request instance for UpdateGlobalDcGateway + :type request: :class:`huaweicloudsdkdc.v3.UpdateGlobalDcGatewayRequest` + :rtype: :class:`huaweicloudsdkdc.v3.UpdateGlobalDcGatewayResponse` """ - http_info = self._list_rms_global_dc_gateway_http_info(request) + http_info = self._update_global_dc_gateway_http_info(request) return self._call_api(**http_info) - def list_rms_global_dc_gateway_invoker(self, request): - http_info = self._list_rms_global_dc_gateway_http_info(request) + def update_global_dc_gateway_invoker(self, request): + http_info = self._update_global_dc_gateway_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_rms_global_dc_gateway_http_info(cls, request): + def _update_global_dc_gateway_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v3/providers/{rp_name}/domains/{domain_id}/regions/{region_id}/{resource_type}", + "method": "PUT", + "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}", "request_type": request.__class__.__name__, - "response_type": "ListRmsGlobalDcGatewayResponse" + "response_type": "UpdateGlobalDcGatewayResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1892,66 +1888,22 @@ def _list_rms_global_dc_gateway_http_info(cls, request): collection_formats = {} path_params = {} - if 'rp_name' in local_var_params: - path_params['rp_name'] = local_var_params['rp_name'] - if 'domain_id' in local_var_params: - path_params['domain_id'] = local_var_params['domain_id'] - if 'region_id' in local_var_params: - path_params['region_id'] = local_var_params['region_id'] - if 'resource_type' in local_var_params: - path_params['resource_type'] = local_var_params['resource_type'] + if 'global_dc_gateway_id' in local_var_params: + path_params['global_dc_gateway_id'] = local_var_params['global_dc_gateway_id'] query_params = [] - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) - if 'marker' in local_var_params: - query_params.append(('marker', local_var_params['marker'])) - if 'page_reverse' in local_var_params: - query_params.append(('page_reverse', local_var_params['page_reverse'])) - if 'fields' in local_var_params: - query_params.append(('fields', local_var_params['fields'])) - collection_formats['fields'] = 'multi' - if 'ext_fields' in local_var_params: - query_params.append(('ext_fields', local_var_params['ext_fields'])) - collection_formats['ext_fields'] = 'multi' - if 'sort_key' in local_var_params: - query_params.append(('sort_key', local_var_params['sort_key'])) - if 'sort_dir' in local_var_params: - query_params.append(('sort_dir', local_var_params['sort_dir'])) - collection_formats['sort_dir'] = 'multi' - if 'id' in local_var_params: - query_params.append(('id', local_var_params['id'])) - collection_formats['id'] = 'multi' - if 'name' in local_var_params: - query_params.append(('name', local_var_params['name'])) - collection_formats['name'] = 'csv' - if 'status' in local_var_params: - query_params.append(('status', local_var_params['status'])) - collection_formats['status'] = 'multi' - if 'enterprise_project_id' in local_var_params: - query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) - collection_formats['enterprise_project_id'] = 'csv' - if 'global_center_network_id' in local_var_params: - query_params.append(('global_center_network_id', local_var_params['global_center_network_id'])) - collection_formats['global_center_network_id'] = 'multi' - if 'site_network_id' in local_var_params: - query_params.append(('site_network_id', local_var_params['site_network_id'])) - collection_formats['site_network_id'] = 'multi' - if 'cloud_connection_id' in local_var_params: - query_params.append(('cloud_connection_id', local_var_params['cloud_connection_id'])) - collection_formats['cloud_connection_id'] = 'multi' header_params = {} form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -1969,31 +1921,31 @@ def _list_rms_global_dc_gateway_http_info(cls, request): return http_info - def show_global_dc_gateway(self, request): - """查询全球接入网关详情 + def create_peer_link(self, request): + """创建专线关联连接 - 根据ID查询全球接入网关,返回查询到的全球接入网关的详细信息。 + 创建专线全域接入网关的关联连接peer-link对象,用于连接企业路由器或者其他接入网关 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowGlobalDcGateway - :type request: :class:`huaweicloudsdkdc.v3.ShowGlobalDcGatewayRequest` - :rtype: :class:`huaweicloudsdkdc.v3.ShowGlobalDcGatewayResponse` + :param request: Request instance for CreatePeerLink + :type request: :class:`huaweicloudsdkdc.v3.CreatePeerLinkRequest` + :rtype: :class:`huaweicloudsdkdc.v3.CreatePeerLinkResponse` """ - http_info = self._show_global_dc_gateway_http_info(request) + http_info = self._create_peer_link_http_info(request) return self._call_api(**http_info) - def show_global_dc_gateway_invoker(self, request): - http_info = self._show_global_dc_gateway_http_info(request) + def create_peer_link_invoker(self, request): + http_info = self._create_peer_link_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_global_dc_gateway_http_info(cls, request): + def _create_peer_link_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}", + "method": "POST", + "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}/peer-links", "request_type": request.__class__.__name__, - "response_type": "ShowGlobalDcGatewayResponse" + "response_type": "CreatePeerLinkResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2007,22 +1959,18 @@ def _show_global_dc_gateway_http_info(cls, request): path_params['global_dc_gateway_id'] = local_var_params['global_dc_gateway_id'] query_params = [] - if 'fields' in local_var_params: - query_params.append(('fields', local_var_params['fields'])) - collection_formats['fields'] = 'multi' - if 'ext_fields' in local_var_params: - query_params.append(('ext_fields', local_var_params['ext_fields'])) - collection_formats['ext_fields'] = 'multi' header_params = {} form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -2040,31 +1988,31 @@ def _show_global_dc_gateway_http_info(cls, request): return http_info - def show_peer_link(self, request): - """查询全球接入网关对等链接 + def delete_peer_link(self, request): + """删除专线关联连接 - 根据ID查询全球接入网关对等链接,返回查询到的全球接入网关对等链接的详细信息。 + 删除全域接入网关与ER的关联连接peer-link Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowPeerLink - :type request: :class:`huaweicloudsdkdc.v3.ShowPeerLinkRequest` - :rtype: :class:`huaweicloudsdkdc.v3.ShowPeerLinkResponse` + :param request: Request instance for DeletePeerLink + :type request: :class:`huaweicloudsdkdc.v3.DeletePeerLinkRequest` + :rtype: :class:`huaweicloudsdkdc.v3.DeletePeerLinkResponse` """ - http_info = self._show_peer_link_http_info(request) + http_info = self._delete_peer_link_http_info(request) return self._call_api(**http_info) - def show_peer_link_invoker(self, request): - http_info = self._show_peer_link_http_info(request) + def delete_peer_link_invoker(self, request): + http_info = self._delete_peer_link_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_peer_link_http_info(cls, request): + def _delete_peer_link_http_info(cls, request): http_info = { - "method": "GET", + "method": "DELETE", "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}/peer-links/{peer_link_id}", "request_type": request.__class__.__name__, - "response_type": "ShowPeerLinkResponse" + "response_type": "DeletePeerLinkResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2080,12 +2028,6 @@ def _show_peer_link_http_info(cls, request): path_params['peer_link_id'] = local_var_params['peer_link_id'] query_params = [] - if 'fields' in local_var_params: - query_params.append(('fields', local_var_params['fields'])) - collection_formats['fields'] = 'multi' - if 'ext_fields' in local_var_params: - query_params.append(('ext_fields', local_var_params['ext_fields'])) - collection_formats['ext_fields'] = 'multi' header_params = {} @@ -2095,7 +2037,7 @@ def _show_peer_link_http_info(cls, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -2113,31 +2055,31 @@ def _show_peer_link_http_info(cls, request): return http_info - def show_rms_global_dc_gateway(self, request): - """查询RMS全球接入网关 + def list_peer_links(self, request): + """查询专线关联连接列表 - 根据类型、domain_id、region_id,资源类型,全球接入网关ID查询资源,返回查询到的资源的详细信息。 + 查询全域接入网关与ER等对象的关联连接列表,分页查询使用的参数为marker、limit。marker和limit一起使用时才会生效,单独使用无效 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowRmsGlobalDcGateway - :type request: :class:`huaweicloudsdkdc.v3.ShowRmsGlobalDcGatewayRequest` - :rtype: :class:`huaweicloudsdkdc.v3.ShowRmsGlobalDcGatewayResponse` + :param request: Request instance for ListPeerLinks + :type request: :class:`huaweicloudsdkdc.v3.ListPeerLinksRequest` + :rtype: :class:`huaweicloudsdkdc.v3.ListPeerLinksResponse` """ - http_info = self._show_rms_global_dc_gateway_http_info(request) + http_info = self._list_peer_links_http_info(request) return self._call_api(**http_info) - def show_rms_global_dc_gateway_invoker(self, request): - http_info = self._show_rms_global_dc_gateway_http_info(request) + def list_peer_links_invoker(self, request): + http_info = self._list_peer_links_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_rms_global_dc_gateway_http_info(cls, request): + def _list_peer_links_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v3/providers/{rp_name}/domains/{domain_id}/regions/{region_id}/{resource_type}/{global_dc_gateway_id}", + "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}/peer-links", "request_type": request.__class__.__name__, - "response_type": "ShowRmsGlobalDcGatewayResponse" + "response_type": "ListPeerLinksResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2147,24 +2089,35 @@ def _show_rms_global_dc_gateway_http_info(cls, request): collection_formats = {} path_params = {} - if 'rp_name' in local_var_params: - path_params['rp_name'] = local_var_params['rp_name'] - if 'domain_id' in local_var_params: - path_params['domain_id'] = local_var_params['domain_id'] - if 'region_id' in local_var_params: - path_params['region_id'] = local_var_params['region_id'] - if 'resource_type' in local_var_params: - path_params['resource_type'] = local_var_params['resource_type'] if 'global_dc_gateway_id' in local_var_params: path_params['global_dc_gateway_id'] = local_var_params['global_dc_gateway_id'] query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'marker' in local_var_params: + query_params.append(('marker', local_var_params['marker'])) + if 'page_reverse' in local_var_params: + query_params.append(('page_reverse', local_var_params['page_reverse'])) if 'fields' in local_var_params: query_params.append(('fields', local_var_params['fields'])) collection_formats['fields'] = 'multi' if 'ext_fields' in local_var_params: query_params.append(('ext_fields', local_var_params['ext_fields'])) collection_formats['ext_fields'] = 'multi' + if 'sort_key' in local_var_params: + query_params.append(('sort_key', local_var_params['sort_key'])) + if 'sort_dir' in local_var_params: + query_params.append(('sort_dir', local_var_params['sort_dir'])) + collection_formats['sort_dir'] = 'multi' + if 'id' in local_var_params: + query_params.append(('id', local_var_params['id'])) + collection_formats['id'] = 'multi' + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + collection_formats['name'] = 'csv' header_params = {} @@ -2174,7 +2127,7 @@ def _show_rms_global_dc_gateway_http_info(cls, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -2192,31 +2145,31 @@ def _show_rms_global_dc_gateway_http_info(cls, request): return http_info - def update_global_dc_gateway(self, request): - """修改全球接入网关 + def show_peer_link(self, request): + """查询专线关联连接详情 - 根据ID修改全球接入网关,返回修改全球接入网关的结果。 + 查询指定接入网关的指定的关联连接(peer link)详情 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateGlobalDcGateway - :type request: :class:`huaweicloudsdkdc.v3.UpdateGlobalDcGatewayRequest` - :rtype: :class:`huaweicloudsdkdc.v3.UpdateGlobalDcGatewayResponse` + :param request: Request instance for ShowPeerLink + :type request: :class:`huaweicloudsdkdc.v3.ShowPeerLinkRequest` + :rtype: :class:`huaweicloudsdkdc.v3.ShowPeerLinkResponse` """ - http_info = self._update_global_dc_gateway_http_info(request) + http_info = self._show_peer_link_http_info(request) return self._call_api(**http_info) - def update_global_dc_gateway_invoker(self, request): - http_info = self._update_global_dc_gateway_http_info(request) + def show_peer_link_invoker(self, request): + http_info = self._show_peer_link_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_global_dc_gateway_http_info(cls, request): + def _show_peer_link_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}", + "method": "GET", + "resource_path": "/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}/peer-links/{peer_link_id}", "request_type": request.__class__.__name__, - "response_type": "UpdateGlobalDcGatewayResponse" + "response_type": "ShowPeerLinkResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2228,23 +2181,29 @@ def _update_global_dc_gateway_http_info(cls, request): path_params = {} if 'global_dc_gateway_id' in local_var_params: path_params['global_dc_gateway_id'] = local_var_params['global_dc_gateway_id'] + if 'peer_link_id' in local_var_params: + path_params['peer_link_id'] = local_var_params['peer_link_id'] query_params = [] + if 'fields' in local_var_params: + query_params.append(('fields', local_var_params['fields'])) + collection_formats['fields'] = 'multi' + if 'ext_fields' in local_var_params: + query_params.append(('ext_fields', local_var_params['ext_fields'])) + collection_formats['ext_fields'] = 'multi' header_params = {} form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json; charset=utf-8']) + ['application/json']) auth_settings = [] @@ -2260,9 +2219,9 @@ def _update_global_dc_gateway_http_info(cls, request): return http_info def update_peer_link(self, request): - """修改全球接入网关对等链接 + """更新专线关联连接 - 根据ID修改全球接入网关对等链接,返回修改全球接入网关对等链接的结果。 + 更新接入网关与ER对接的关联连接peer-link Please refer to HUAWEI cloud API Explorer for details. @@ -2310,10 +2269,10 @@ def _update_peer_link_http_info(cls, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json; charset=utf-8']) + ['application/json']) auth_settings = [] @@ -3287,7 +3246,7 @@ def _create_virtual_interface_http_info(cls, request): def delete_vif_peer(self, request): """删除虚拟接口对应的对等体 - 删除虚拟接口对等体信息,虚拟接口到少要含一个对等体,最后一个对等体不能删除 本接口只在支持Ipv6的区域开放,如需要使用请联系客服 + 删除虚拟接口对等体信息,虚拟接口至少要含一个对等体,最后一个对等体不能删除 本接口只在支持Ipv6的区域开放,如需要使用请联系客服 Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/__init__.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/__init__.py index b6f859c915..2b2037acfa 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/__init__.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/__init__.py @@ -3,32 +3,39 @@ from __future__ import absolute_import # import models into model package +from huaweicloudsdkdc.v3.model.add_gdgw_route_action import AddGdgwRouteAction +from huaweicloudsdkdc.v3.model.address_body import AddressBody +from huaweicloudsdkdc.v3.model.address_family import AddressFamily +from huaweicloudsdkdc.v3.model.band_width_info import BandWidthInfo from huaweicloudsdkdc.v3.model.bandwidth_info_external import BandwidthInfoExternal +from huaweicloudsdkdc.v3.model.base_add_route_action import BaseAddRouteAction +from huaweicloudsdkdc.v3.model.base_delete_route_action import BaseDeleteRouteAction from huaweicloudsdkdc.v3.model.batch_create_resource_tags_request import BatchCreateResourceTagsRequest from huaweicloudsdkdc.v3.model.batch_create_resource_tags_response import BatchCreateResourceTagsResponse from huaweicloudsdkdc.v3.model.batch_operate_resource_tags_request_body import BatchOperateResourceTagsRequestBody from huaweicloudsdkdc.v3.model.bind_global_eips_request import BindGlobalEipsRequest from huaweicloudsdkdc.v3.model.bind_global_eips_response import BindGlobalEipsResponse from huaweicloudsdkdc.v3.model.binding_geip_body import BindingGeipBody +from huaweicloudsdkdc.v3.model.common_routetable import CommonRoutetable from huaweicloudsdkdc.v3.model.connect_gateway_response import ConnectGatewayResponse from huaweicloudsdkdc.v3.model.create_binding_geip_request_body import CreateBindingGeipRequestBody from huaweicloudsdkdc.v3.model.create_connect_gateway import CreateConnectGateway from huaweicloudsdkdc.v3.model.create_connect_gateway_request import CreateConnectGatewayRequest from huaweicloudsdkdc.v3.model.create_connect_gateway_request_body import CreateConnectGatewayRequestBody from huaweicloudsdkdc.v3.model.create_connect_gateway_response import CreateConnectGatewayResponse +from huaweicloudsdkdc.v3.model.create_external_peer_link_request_body import CreateExternalPeerLinkRequestBody +from huaweicloudsdkdc.v3.model.create_external_peer_link_request_body_peer_link import CreateExternalPeerLinkRequestBodyPeerLink +from huaweicloudsdkdc.v3.model.create_external_peer_link_request_body_peer_link_peer_site import CreateExternalPeerLinkRequestBodyPeerLinkPeerSite +from huaweicloudsdkdc.v3.model.create_global_dc_gateway import CreateGlobalDcGateway +from huaweicloudsdkdc.v3.model.create_global_dc_gateway_entry import CreateGlobalDcGatewayEntry from huaweicloudsdkdc.v3.model.create_global_dc_gateway_request import CreateGlobalDcGatewayRequest from huaweicloudsdkdc.v3.model.create_global_dc_gateway_request_body import CreateGlobalDcGatewayRequestBody -from huaweicloudsdkdc.v3.model.create_global_dc_gateway_request_body_global_dc_gateway import CreateGlobalDcGatewayRequestBodyGlobalDcGateway -from huaweicloudsdkdc.v3.model.create_global_dc_gateway_request_body_global_dc_gateway_tags import CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags from huaweicloudsdkdc.v3.model.create_global_dc_gateway_response import CreateGlobalDcGatewayResponse from huaweicloudsdkdc.v3.model.create_hosted_direct_connect import CreateHostedDirectConnect from huaweicloudsdkdc.v3.model.create_hosted_direct_connect_request import CreateHostedDirectConnectRequest from huaweicloudsdkdc.v3.model.create_hosted_direct_connect_request_body import CreateHostedDirectConnectRequestBody from huaweicloudsdkdc.v3.model.create_hosted_direct_connect_response import CreateHostedDirectConnectResponse from huaweicloudsdkdc.v3.model.create_peer_link_request import CreatePeerLinkRequest -from huaweicloudsdkdc.v3.model.create_peer_link_request_body import CreatePeerLinkRequestBody -from huaweicloudsdkdc.v3.model.create_peer_link_request_body_peer_link import CreatePeerLinkRequestBodyPeerLink -from huaweicloudsdkdc.v3.model.create_peer_link_request_body_peer_link_peer_site import CreatePeerLinkRequestBodyPeerLinkPeerSite from huaweicloudsdkdc.v3.model.create_peer_link_response import CreatePeerLinkResponse from huaweicloudsdkdc.v3.model.create_resource_tag_request import CreateResourceTagRequest from huaweicloudsdkdc.v3.model.create_resource_tag_request_body import CreateResourceTagRequestBody @@ -52,6 +59,7 @@ from huaweicloudsdkdc.v3.model.delete_connect_gateway_response import DeleteConnectGatewayResponse from huaweicloudsdkdc.v3.model.delete_direct_connect_request import DeleteDirectConnectRequest from huaweicloudsdkdc.v3.model.delete_direct_connect_response import DeleteDirectConnectResponse +from huaweicloudsdkdc.v3.model.delete_gdgw_route_action import DeleteGdgwRouteAction from huaweicloudsdkdc.v3.model.delete_global_dc_gateway_request import DeleteGlobalDcGatewayRequest from huaweicloudsdkdc.v3.model.delete_global_dc_gateway_response import DeleteGlobalDcGatewayResponse from huaweicloudsdkdc.v3.model.delete_hosted_direct_connect_request import DeleteHostedDirectConnectRequest @@ -67,25 +75,25 @@ from huaweicloudsdkdc.v3.model.delete_virtual_interface_request import DeleteVirtualInterfaceRequest from huaweicloudsdkdc.v3.model.delete_virtual_interface_response import DeleteVirtualInterfaceResponse from huaweicloudsdkdc.v3.model.direct_connect import DirectConnect -from huaweicloudsdkdc.v3.model.external_create_global_dc_gateway import ExternalCreateGlobalDcGateway +from huaweicloudsdkdc.v3.model.direct_connect_location_entry import DirectConnectLocationEntry from huaweicloudsdkdc.v3.model.external_create_peer_link import ExternalCreatePeerLink -from huaweicloudsdkdc.v3.model.external_list_global_dc_gateways import ExternalListGlobalDcGateways -from huaweicloudsdkdc.v3.model.external_list_peer_links import ExternalListPeerLinks -from huaweicloudsdkdc.v3.model.external_show_global_dc_gateway import ExternalShowGlobalDcGateway -from huaweicloudsdkdc.v3.model.external_show_peer_link import ExternalShowPeerLink -from huaweicloudsdkdc.v3.model.external_update_global_dc_gateway import ExternalUpdateGlobalDcGateway from huaweicloudsdkdc.v3.model.external_update_peer_link import ExternalUpdatePeerLink +from huaweicloudsdkdc.v3.model.gdgw_route_table_request import GdgwRouteTableRequest +from huaweicloudsdkdc.v3.model.global_dc_gateway_entry import GlobalDcGatewayEntry +from huaweicloudsdkdc.v3.model.global_dc_gateway_status import GlobalDcGatewayStatus from huaweicloudsdkdc.v3.model.hosted_direct_connect import HostedDirectConnect from huaweicloudsdkdc.v3.model.info import Info from huaweicloudsdkdc.v3.model.list_binding_geip import ListBindingGeip from huaweicloudsdkdc.v3.model.list_connect_gateways_request import ListConnectGatewaysRequest from huaweicloudsdkdc.v3.model.list_connect_gateways_response import ListConnectGatewaysResponse +from huaweicloudsdkdc.v3.model.list_direct_connect_locations_request import ListDirectConnectLocationsRequest +from huaweicloudsdkdc.v3.model.list_direct_connect_locations_response import ListDirectConnectLocationsResponse from huaweicloudsdkdc.v3.model.list_direct_connects_request import ListDirectConnectsRequest from huaweicloudsdkdc.v3.model.list_direct_connects_response import ListDirectConnectsResponse from huaweicloudsdkdc.v3.model.list_gdgw_route_tables_request import ListGdgwRouteTablesRequest from huaweicloudsdkdc.v3.model.list_gdgw_route_tables_response import ListGdgwRouteTablesResponse -from huaweicloudsdkdc.v3.model.list_global_dc_gateway_request import ListGlobalDcGatewayRequest -from huaweicloudsdkdc.v3.model.list_global_dc_gateway_response import ListGlobalDcGatewayResponse +from huaweicloudsdkdc.v3.model.list_global_dc_gateways_request import ListGlobalDcGatewaysRequest +from huaweicloudsdkdc.v3.model.list_global_dc_gateways_response import ListGlobalDcGatewaysResponse from huaweicloudsdkdc.v3.model.list_global_eips_request import ListGlobalEipsRequest from huaweicloudsdkdc.v3.model.list_global_eips_response import ListGlobalEipsResponse from huaweicloudsdkdc.v3.model.list_hosted_direct_connects_request import ListHostedDirectConnectsRequest @@ -94,8 +102,6 @@ from huaweicloudsdkdc.v3.model.list_peer_links_response import ListPeerLinksResponse from huaweicloudsdkdc.v3.model.list_project_tags_request import ListProjectTagsRequest from huaweicloudsdkdc.v3.model.list_project_tags_response import ListProjectTagsResponse -from huaweicloudsdkdc.v3.model.list_rms_global_dc_gateway_request import ListRmsGlobalDcGatewayRequest -from huaweicloudsdkdc.v3.model.list_rms_global_dc_gateway_response import ListRmsGlobalDcGatewayResponse from huaweicloudsdkdc.v3.model.list_switchover_test_records_request import ListSwitchoverTestRecordsRequest from huaweicloudsdkdc.v3.model.list_switchover_test_records_response import ListSwitchoverTestRecordsResponse from huaweicloudsdkdc.v3.model.list_tag_resource_instances_request import ListTagResourceInstancesRequest @@ -105,16 +111,24 @@ from huaweicloudsdkdc.v3.model.list_virtual_gateways_response import ListVirtualGatewaysResponse from huaweicloudsdkdc.v3.model.list_virtual_interfaces_request import ListVirtualInterfacesRequest from huaweicloudsdkdc.v3.model.list_virtual_interfaces_response import ListVirtualInterfacesResponse -from huaweicloudsdkdc.v3.model.locale import Locale from huaweicloudsdkdc.v3.model.locales_body import LocalesBody from huaweicloudsdkdc.v3.model.match import Match from huaweicloudsdkdc.v3.model.page_info import PageInfo +from huaweicloudsdkdc.v3.model.peer_link_entry import PeerLinkEntry +from huaweicloudsdkdc.v3.model.peer_link_status import PeerLinkStatus +from huaweicloudsdkdc.v3.model.peer_site import PeerSite from huaweicloudsdkdc.v3.model.peer_site_external import PeerSiteExternal +from huaweicloudsdkdc.v3.model.provider_response_body import ProviderResponseBody +from huaweicloudsdkdc.v3.model.provider_value_body import ProviderValueBody from huaweicloudsdkdc.v3.model.resource import Resource -from huaweicloudsdkdc.v3.model.rms_list_global_dc_gateways import RmsListGlobalDcGateways -from huaweicloudsdkdc.v3.model.rms_show_global_dc_gateway import RmsShowGlobalDcGateway +from huaweicloudsdkdc.v3.model.route_description import RouteDescription +from huaweicloudsdkdc.v3.model.route_destination import RouteDestination +from huaweicloudsdkdc.v3.model.route_next_hop import RouteNextHop +from huaweicloudsdkdc.v3.model.route_type_of_gdgw import RouteTypeOfGdgw from huaweicloudsdkdc.v3.model.show_connect_gateway_request import ShowConnectGatewayRequest from huaweicloudsdkdc.v3.model.show_connect_gateway_response import ShowConnectGatewayResponse +from huaweicloudsdkdc.v3.model.show_direct_connect_location_request import ShowDirectConnectLocationRequest +from huaweicloudsdkdc.v3.model.show_direct_connect_location_response import ShowDirectConnectLocationResponse from huaweicloudsdkdc.v3.model.show_direct_connect_request import ShowDirectConnectRequest from huaweicloudsdkdc.v3.model.show_direct_connect_response import ShowDirectConnectResponse from huaweicloudsdkdc.v3.model.show_gdgw_routetable import ShowGdgwRoutetable @@ -129,8 +143,6 @@ from huaweicloudsdkdc.v3.model.show_quotas_response_body_quotas import ShowQuotasResponseBodyQuotas from huaweicloudsdkdc.v3.model.show_resource_tag_request import ShowResourceTagRequest from huaweicloudsdkdc.v3.model.show_resource_tag_response import ShowResourceTagResponse -from huaweicloudsdkdc.v3.model.show_rms_global_dc_gateway_request import ShowRmsGlobalDcGatewayRequest -from huaweicloudsdkdc.v3.model.show_rms_global_dc_gateway_response import ShowRmsGlobalDcGatewayResponse from huaweicloudsdkdc.v3.model.show_virtual_gateway_request import ShowVirtualGatewayRequest from huaweicloudsdkdc.v3.model.show_virtual_gateway_response import ShowVirtualGatewayResponse from huaweicloudsdkdc.v3.model.show_virtual_interface_request import ShowVirtualInterfaceRequest @@ -152,25 +164,22 @@ from huaweicloudsdkdc.v3.model.update_direct_connect_request import UpdateDirectConnectRequest from huaweicloudsdkdc.v3.model.update_direct_connect_request_body import UpdateDirectConnectRequestBody from huaweicloudsdkdc.v3.model.update_direct_connect_response import UpdateDirectConnectResponse +from huaweicloudsdkdc.v3.model.update_external_peer_link_request_body import UpdateExternalPeerLinkRequestBody +from huaweicloudsdkdc.v3.model.update_external_peer_link_request_body_peer_link import UpdateExternalPeerLinkRequestBodyPeerLink from huaweicloudsdkdc.v3.model.update_gdgw_route_table_request import UpdateGdgwRouteTableRequest from huaweicloudsdkdc.v3.model.update_gdgw_route_table_response import UpdateGdgwRouteTableResponse from huaweicloudsdkdc.v3.model.update_gdgw_routetable_request_body import UpdateGdgwRoutetableRequestBody -from huaweicloudsdkdc.v3.model.update_gdgw_routetable_request_body_gdgw_routetable import UpdateGdgwRoutetableRequestBodyGdgwRoutetable -from huaweicloudsdkdc.v3.model.update_gdgw_routetable_request_body_gdgw_routetable_add_routes import UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes -from huaweicloudsdkdc.v3.model.update_gdgw_routetable_request_body_gdgw_routetable_del_routes import UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes -from huaweicloudsdkdc.v3.model.update_gdgw_routetable_request_body_gdgw_routetable_update_routes import UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes +from huaweicloudsdkdc.v3.model.update_global_dc_gateway import UpdateGlobalDcGateway from huaweicloudsdkdc.v3.model.update_global_dc_gateway_request import UpdateGlobalDcGatewayRequest from huaweicloudsdkdc.v3.model.update_global_dc_gateway_request_body import UpdateGlobalDcGatewayRequestBody -from huaweicloudsdkdc.v3.model.update_global_dc_gateway_request_body_global_dc_gateway import UpdateGlobalDcGatewayRequestBodyGlobalDcGateway from huaweicloudsdkdc.v3.model.update_global_dc_gateway_response import UpdateGlobalDcGatewayResponse from huaweicloudsdkdc.v3.model.update_hosted_direct_connect import UpdateHostedDirectConnect from huaweicloudsdkdc.v3.model.update_hosted_direct_connect_request import UpdateHostedDirectConnectRequest from huaweicloudsdkdc.v3.model.update_hosted_direct_connect_request_body import UpdateHostedDirectConnectRequestBody from huaweicloudsdkdc.v3.model.update_hosted_direct_connect_response import UpdateHostedDirectConnectResponse from huaweicloudsdkdc.v3.model.update_peer_link_request import UpdatePeerLinkRequest -from huaweicloudsdkdc.v3.model.update_peer_link_request_body import UpdatePeerLinkRequestBody -from huaweicloudsdkdc.v3.model.update_peer_link_request_body_peer_link import UpdatePeerLinkRequestBodyPeerLink from huaweicloudsdkdc.v3.model.update_peer_link_response import UpdatePeerLinkResponse +from huaweicloudsdkdc.v3.model.update_route_action import UpdateRouteAction from huaweicloudsdkdc.v3.model.update_vif_peer import UpdateVifPeer from huaweicloudsdkdc.v3.model.update_vif_peer_request import UpdateVifPeerRequest from huaweicloudsdkdc.v3.model.update_vif_peer_request_body import UpdateVifPeerRequestBody diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_gdgw_routetable_request_body_gdgw_routetable_add_routes.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/add_gdgw_route_action.py similarity index 60% rename from huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_gdgw_routetable_request_body_gdgw_routetable_add_routes.py rename to huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/add_gdgw_route_action.py index 5c6145305f..7d89b41e76 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_gdgw_routetable_request_body_gdgw_routetable_add_routes.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/add_gdgw_route_action.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes: +class AddGdgwRouteAction: """ Attributes: @@ -19,133 +19,130 @@ class UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes: openapi_types = { 'destination': 'str', 'nexthop': 'str', - 'type': 'str', - 'description': 'str' + 'description': 'str', + 'type': 'RouteTypeOfGdgw' } attribute_map = { 'destination': 'destination', 'nexthop': 'nexthop', - 'type': 'type', - 'description': 'description' + 'description': 'description', + 'type': 'type' } - def __init__(self, destination=None, nexthop=None, type=None, description=None): - """UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes + def __init__(self, destination=None, nexthop=None, description=None, type=None): + """AddGdgwRouteAction The model defined in huaweicloud sdk - :param destination: 目的地址 + :param destination: 路由子网 :type destination: str - :param nexthop: 下一跳 + :param nexthop: 下一跳id :type nexthop: str - :param type: 类型 - :type type: str - :param description: 说明信息 + :param description: 路由描述 :type description: str + :param type: + :type type: :class:`huaweicloudsdkdc.v3.RouteTypeOfGdgw` """ self._destination = None self._nexthop = None - self._type = None self._description = None + self._type = None self.discriminator = None self.destination = destination self.nexthop = nexthop - self.type = type if description is not None: self.description = description + if type is not None: + self.type = type @property def destination(self): - """Gets the destination of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes. + """Gets the destination of this AddGdgwRouteAction. - 目的地址 + 路由子网 - :return: The destination of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes. + :return: The destination of this AddGdgwRouteAction. :rtype: str """ return self._destination @destination.setter def destination(self, destination): - """Sets the destination of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes. + """Sets the destination of this AddGdgwRouteAction. - 目的地址 + 路由子网 - :param destination: The destination of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes. + :param destination: The destination of this AddGdgwRouteAction. :type destination: str """ self._destination = destination @property def nexthop(self): - """Gets the nexthop of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes. + """Gets the nexthop of this AddGdgwRouteAction. - 下一跳 + 下一跳id - :return: The nexthop of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes. + :return: The nexthop of this AddGdgwRouteAction. :rtype: str """ return self._nexthop @nexthop.setter def nexthop(self, nexthop): - """Sets the nexthop of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes. + """Sets the nexthop of this AddGdgwRouteAction. - 下一跳 + 下一跳id - :param nexthop: The nexthop of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes. + :param nexthop: The nexthop of this AddGdgwRouteAction. :type nexthop: str """ self._nexthop = nexthop @property - def type(self): - """Gets the type of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes. + def description(self): + """Gets the description of this AddGdgwRouteAction. - 类型 + 路由描述 - :return: The type of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes. + :return: The description of this AddGdgwRouteAction. :rtype: str """ - return self._type + return self._description - @type.setter - def type(self, type): - """Sets the type of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes. + @description.setter + def description(self, description): + """Sets the description of this AddGdgwRouteAction. - 类型 + 路由描述 - :param type: The type of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes. - :type type: str + :param description: The description of this AddGdgwRouteAction. + :type description: str """ - self._type = type + self._description = description @property - def description(self): - """Gets the description of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes. - - 说明信息 + def type(self): + """Gets the type of this AddGdgwRouteAction. - :return: The description of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes. - :rtype: str + :return: The type of this AddGdgwRouteAction. + :rtype: :class:`huaweicloudsdkdc.v3.RouteTypeOfGdgw` """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes. + return self._type - 说明信息 + @type.setter + def type(self, type): + """Sets the type of this AddGdgwRouteAction. - :param description: The description of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes. - :type description: str + :param type: The type of this AddGdgwRouteAction. + :type type: :class:`huaweicloudsdkdc.v3.RouteTypeOfGdgw` """ - self._description = description + self._type = type def to_dict(self): """Returns the model properties as a dict""" @@ -189,7 +186,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes): + if not isinstance(other, AddGdgwRouteAction): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/locale.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/address_body.py similarity index 82% rename from huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/locale.py rename to huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/address_body.py index 01fa72ce38..20beb4f717 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/locale.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/address_body.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class Locale: +class AddressBody: """ Attributes: @@ -27,13 +27,13 @@ class Locale: } def __init__(self, en_us=None, zh_cn=None): - """Locale + """AddressBody The model defined in huaweicloud sdk - :param en_us: English name + :param en_us: 英文名称。 :type en_us: str - :param zh_cn: Chinese name + :param zh_cn: 中文信息。 :type zh_cn: str """ @@ -50,44 +50,44 @@ def __init__(self, en_us=None, zh_cn=None): @property def en_us(self): - """Gets the en_us of this Locale. + """Gets the en_us of this AddressBody. - English name + 英文名称。 - :return: The en_us of this Locale. + :return: The en_us of this AddressBody. :rtype: str """ return self._en_us @en_us.setter def en_us(self, en_us): - """Sets the en_us of this Locale. + """Sets the en_us of this AddressBody. - English name + 英文名称。 - :param en_us: The en_us of this Locale. + :param en_us: The en_us of this AddressBody. :type en_us: str """ self._en_us = en_us @property def zh_cn(self): - """Gets the zh_cn of this Locale. + """Gets the zh_cn of this AddressBody. - Chinese name + 中文信息。 - :return: The zh_cn of this Locale. + :return: The zh_cn of this AddressBody. :rtype: str """ return self._zh_cn @zh_cn.setter def zh_cn(self, zh_cn): - """Sets the zh_cn of this Locale. + """Sets the zh_cn of this AddressBody. - Chinese name + 中文信息。 - :param zh_cn: The zh_cn of this Locale. + :param zh_cn: The zh_cn of this AddressBody. :type zh_cn: str """ self._zh_cn = zh_cn @@ -134,7 +134,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, Locale): + if not isinstance(other, AddressBody): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/address_family.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/address_family.py new file mode 100644 index 0000000000..8ba0d69020 --- /dev/null +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/address_family.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AddressFamily: + """ + allowed enum values + """ + IPV4 = "ipv4" + IPV6 = "ipv6" + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """AddressFamily + + The model defined in huaweicloud sdk + + """ + + + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AddressFamily): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/band_width_info.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/band_width_info.py new file mode 100644 index 0000000000..d7ca3bcdd1 --- /dev/null +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/band_width_info.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BandWidthInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'bandwidth_size': 'int', + 'gcb_id': 'str' + } + + attribute_map = { + 'bandwidth_size': 'bandwidth_size', + 'gcb_id': 'gcb_id' + } + + def __init__(self, bandwidth_size=None, gcb_id=None): + """BandWidthInfo + + The model defined in huaweicloud sdk + + :param bandwidth_size: 带宽值 + :type bandwidth_size: int + :param gcb_id: 购买全域互连带宽包ID + :type gcb_id: str + """ + + + + self._bandwidth_size = None + self._gcb_id = None + self.discriminator = None + + if bandwidth_size is not None: + self.bandwidth_size = bandwidth_size + if gcb_id is not None: + self.gcb_id = gcb_id + + @property + def bandwidth_size(self): + """Gets the bandwidth_size of this BandWidthInfo. + + 带宽值 + + :return: The bandwidth_size of this BandWidthInfo. + :rtype: int + """ + return self._bandwidth_size + + @bandwidth_size.setter + def bandwidth_size(self, bandwidth_size): + """Sets the bandwidth_size of this BandWidthInfo. + + 带宽值 + + :param bandwidth_size: The bandwidth_size of this BandWidthInfo. + :type bandwidth_size: int + """ + self._bandwidth_size = bandwidth_size + + @property + def gcb_id(self): + """Gets the gcb_id of this BandWidthInfo. + + 购买全域互连带宽包ID + + :return: The gcb_id of this BandWidthInfo. + :rtype: str + """ + return self._gcb_id + + @gcb_id.setter + def gcb_id(self, gcb_id): + """Sets the gcb_id of this BandWidthInfo. + + 购买全域互连带宽包ID + + :param gcb_id: The gcb_id of this BandWidthInfo. + :type gcb_id: str + """ + self._gcb_id = gcb_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BandWidthInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/bandwidth_info_external.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/bandwidth_info_external.py index 7690095d91..9152fb0057 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/bandwidth_info_external.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/bandwidth_info_external.py @@ -18,17 +18,15 @@ class BandwidthInfoExternal: openapi_types = { 'bandwidth_size': 'int', - 'gcb_id': 'str', - 'freeze_status': 'str' + 'gcb_id': 'str' } attribute_map = { 'bandwidth_size': 'bandwidth_size', - 'gcb_id': 'gcb_id', - 'freeze_status': 'freeze_status' + 'gcb_id': 'gcb_id' } - def __init__(self, bandwidth_size=None, gcb_id=None, freeze_status=None): + def __init__(self, bandwidth_size=None, gcb_id=None): """BandwidthInfoExternal The model defined in huaweicloud sdk @@ -37,23 +35,18 @@ def __init__(self, bandwidth_size=None, gcb_id=None, freeze_status=None): :type bandwidth_size: int :param gcb_id: 带宽包ID :type gcb_id: str - :param freeze_status: 冻结状态 - :type freeze_status: str """ self._bandwidth_size = None self._gcb_id = None - self._freeze_status = None self.discriminator = None if bandwidth_size is not None: self.bandwidth_size = bandwidth_size if gcb_id is not None: self.gcb_id = gcb_id - if freeze_status is not None: - self.freeze_status = freeze_status @property def bandwidth_size(self): @@ -99,28 +92,6 @@ def gcb_id(self, gcb_id): """ self._gcb_id = gcb_id - @property - def freeze_status(self): - """Gets the freeze_status of this BandwidthInfoExternal. - - 冻结状态 - - :return: The freeze_status of this BandwidthInfoExternal. - :rtype: str - """ - return self._freeze_status - - @freeze_status.setter - def freeze_status(self, freeze_status): - """Sets the freeze_status of this BandwidthInfoExternal. - - 冻结状态 - - :param freeze_status: The freeze_status of this BandwidthInfoExternal. - :type freeze_status: str - """ - self._freeze_status = freeze_status - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_gdgw_routetable_request_body_gdgw_routetable_update_routes.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/base_add_route_action.py similarity index 67% rename from huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_gdgw_routetable_request_body_gdgw_routetable_update_routes.py rename to huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/base_add_route_action.py index c2c30813ab..202614b21e 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_gdgw_routetable_request_body_gdgw_routetable_update_routes.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/base_add_route_action.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes: +class BaseAddRouteAction: """ Attributes: @@ -29,15 +29,15 @@ class UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes: } def __init__(self, destination=None, nexthop=None, description=None): - """UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes + """BaseAddRouteAction The model defined in huaweicloud sdk - :param destination: 目的地址 + :param destination: 路由子网 :type destination: str - :param nexthop: 下一跳 + :param nexthop: 下一跳id :type nexthop: str - :param description: 描述信息 + :param description: 路由描述 :type description: str """ @@ -55,66 +55,66 @@ def __init__(self, destination=None, nexthop=None, description=None): @property def destination(self): - """Gets the destination of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes. + """Gets the destination of this BaseAddRouteAction. - 目的地址 + 路由子网 - :return: The destination of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes. + :return: The destination of this BaseAddRouteAction. :rtype: str """ return self._destination @destination.setter def destination(self, destination): - """Sets the destination of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes. + """Sets the destination of this BaseAddRouteAction. - 目的地址 + 路由子网 - :param destination: The destination of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes. + :param destination: The destination of this BaseAddRouteAction. :type destination: str """ self._destination = destination @property def nexthop(self): - """Gets the nexthop of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes. + """Gets the nexthop of this BaseAddRouteAction. - 下一跳 + 下一跳id - :return: The nexthop of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes. + :return: The nexthop of this BaseAddRouteAction. :rtype: str """ return self._nexthop @nexthop.setter def nexthop(self, nexthop): - """Sets the nexthop of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes. + """Sets the nexthop of this BaseAddRouteAction. - 下一跳 + 下一跳id - :param nexthop: The nexthop of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes. + :param nexthop: The nexthop of this BaseAddRouteAction. :type nexthop: str """ self._nexthop = nexthop @property def description(self): - """Gets the description of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes. + """Gets the description of this BaseAddRouteAction. - 描述信息 + 路由描述 - :return: The description of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes. + :return: The description of this BaseAddRouteAction. :rtype: str """ return self._description @description.setter def description(self, description): - """Sets the description of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes. + """Sets the description of this BaseAddRouteAction. - 描述信息 + 路由描述 - :param description: The description of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes. + :param description: The description of this BaseAddRouteAction. :type description: str """ self._description = description @@ -161,7 +161,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes): + if not isinstance(other, BaseAddRouteAction): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_global_dc_gateway_request_body_global_dc_gateway_tags.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/base_delete_route_action.py similarity index 58% rename from huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_global_dc_gateway_request_body_global_dc_gateway_tags.py rename to huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/base_delete_route_action.py index 038c543c46..09fe83e887 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_global_dc_gateway_request_body_global_dc_gateway_tags.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/base_delete_route_action.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags: +class BaseDeleteRouteAction: """ Attributes: @@ -17,79 +17,78 @@ class CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags: sensitive_list = [] openapi_types = { - 'key': 'str', - 'value': 'str' + 'destination': 'str', + 'nexthop': 'str' } attribute_map = { - 'key': 'key', - 'value': 'value' + 'destination': 'destination', + 'nexthop': 'nexthop' } - def __init__(self, key=None, value=None): - """CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags + def __init__(self, destination=None, nexthop=None): + """BaseDeleteRouteAction The model defined in huaweicloud sdk - :param key: 键 - :type key: str - :param value: 值 - :type value: str + :param destination: 路由子网 + :type destination: str + :param nexthop: 下一跳id + :type nexthop: str """ - self._key = None - self._value = None + self._destination = None + self._nexthop = None self.discriminator = None - self.key = key - if value is not None: - self.value = value + self.destination = destination + self.nexthop = nexthop @property - def key(self): - """Gets the key of this CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags. + def destination(self): + """Gets the destination of this BaseDeleteRouteAction. - 键 + 路由子网 - :return: The key of this CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags. + :return: The destination of this BaseDeleteRouteAction. :rtype: str """ - return self._key + return self._destination - @key.setter - def key(self, key): - """Sets the key of this CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags. + @destination.setter + def destination(self, destination): + """Sets the destination of this BaseDeleteRouteAction. - 键 + 路由子网 - :param key: The key of this CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags. - :type key: str + :param destination: The destination of this BaseDeleteRouteAction. + :type destination: str """ - self._key = key + self._destination = destination @property - def value(self): - """Gets the value of this CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags. + def nexthop(self): + """Gets the nexthop of this BaseDeleteRouteAction. - 值 + 下一跳id - :return: The value of this CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags. + :return: The nexthop of this BaseDeleteRouteAction. :rtype: str """ - return self._value + return self._nexthop - @value.setter - def value(self, value): - """Sets the value of this CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags. + @nexthop.setter + def nexthop(self, nexthop): + """Sets the nexthop of this BaseDeleteRouteAction. - 值 + 下一跳id - :param value: The value of this CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags. - :type value: str + :param nexthop: The nexthop of this BaseDeleteRouteAction. + :type nexthop: str """ - self._value = value + self._nexthop = nexthop def to_dict(self): """Returns the model properties as a dict""" @@ -133,7 +132,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags): + if not isinstance(other, BaseDeleteRouteAction): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/bind_global_eips_response.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/bind_global_eips_response.py index 126f7f39ef..5022015b40 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/bind_global_eips_response.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/bind_global_eips_response.py @@ -19,17 +19,15 @@ class BindGlobalEipsResponse(SdkResponse): openapi_types = { 'request_id': 'str', - 'global_eips': 'ListBindingGeip', - 'x_request_id': 'str' + 'global_eips': 'ListBindingGeip' } attribute_map = { 'request_id': 'request_id', - 'global_eips': 'global_eips', - 'x_request_id': 'X-Request-Id' + 'global_eips': 'global_eips' } - def __init__(self, request_id=None, global_eips=None, x_request_id=None): + def __init__(self, request_id=None, global_eips=None): """BindGlobalEipsResponse The model defined in huaweicloud sdk @@ -38,23 +36,18 @@ def __init__(self, request_id=None, global_eips=None, x_request_id=None): :type request_id: str :param global_eips: :type global_eips: :class:`huaweicloudsdkdc.v3.ListBindingGeip` - :param x_request_id: - :type x_request_id: str """ super(BindGlobalEipsResponse, self).__init__() self._request_id = None self._global_eips = None - self._x_request_id = None self.discriminator = None if request_id is not None: self.request_id = request_id if global_eips is not None: self.global_eips = global_eips - if x_request_id is not None: - self.x_request_id = x_request_id @property def request_id(self): @@ -96,24 +89,6 @@ def global_eips(self, global_eips): """ self._global_eips = global_eips - @property - def x_request_id(self): - """Gets the x_request_id of this BindGlobalEipsResponse. - - :return: The x_request_id of this BindGlobalEipsResponse. - :rtype: str - """ - return self._x_request_id - - @x_request_id.setter - def x_request_id(self, x_request_id): - """Sets the x_request_id of this BindGlobalEipsResponse. - - :param x_request_id: The x_request_id of this BindGlobalEipsResponse. - :type x_request_id: str - """ - self._x_request_id = x_request_id - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/common_routetable.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/common_routetable.py new file mode 100644 index 0000000000..d80138ab64 --- /dev/null +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/common_routetable.py @@ -0,0 +1,336 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CommonRoutetable: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'tenant_id': 'str', + 'gateway_id': 'str', + 'destination': 'str', + 'nexthop': 'str', + 'obtain_mode': 'str', + 'status': 'str', + 'address_family': 'AddressFamily', + 'description': 'str' + } + + attribute_map = { + 'id': 'id', + 'tenant_id': 'tenant_id', + 'gateway_id': 'gateway_id', + 'destination': 'destination', + 'nexthop': 'nexthop', + 'obtain_mode': 'obtain_mode', + 'status': 'status', + 'address_family': 'address_family', + 'description': 'description' + } + + def __init__(self, id=None, tenant_id=None, gateway_id=None, destination=None, nexthop=None, obtain_mode=None, status=None, address_family=None, description=None): + """CommonRoutetable + + The model defined in huaweicloud sdk + + :param id: 路由id + :type id: str + :param tenant_id: 租户id + :type tenant_id: str + :param gateway_id: 网关id + :type gateway_id: str + :param destination: 路由子网 + :type destination: str + :param nexthop: 下一跳id + :type nexthop: str + :param obtain_mode: 路由类型: - customized: 默认路由 - specific: 自定义路由 - bgp: 动态路由 + :type obtain_mode: str + :param status: 路由状态: - ACTIVE: 下发正常 - ERROR: 下发失败 - PENDING_CREATE: 待下发 + :type status: str + :param address_family: + :type address_family: :class:`huaweicloudsdkdc.v3.AddressFamily` + :param description: 路由描述 + :type description: str + """ + + + + self._id = None + self._tenant_id = None + self._gateway_id = None + self._destination = None + self._nexthop = None + self._obtain_mode = None + self._status = None + self._address_family = None + self._description = None + self.discriminator = None + + self.id = id + self.tenant_id = tenant_id + if gateway_id is not None: + self.gateway_id = gateway_id + self.destination = destination + self.nexthop = nexthop + self.obtain_mode = obtain_mode + self.status = status + self.address_family = address_family + if description is not None: + self.description = description + + @property + def id(self): + """Gets the id of this CommonRoutetable. + + 路由id + + :return: The id of this CommonRoutetable. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CommonRoutetable. + + 路由id + + :param id: The id of this CommonRoutetable. + :type id: str + """ + self._id = id + + @property + def tenant_id(self): + """Gets the tenant_id of this CommonRoutetable. + + 租户id + + :return: The tenant_id of this CommonRoutetable. + :rtype: str + """ + return self._tenant_id + + @tenant_id.setter + def tenant_id(self, tenant_id): + """Sets the tenant_id of this CommonRoutetable. + + 租户id + + :param tenant_id: The tenant_id of this CommonRoutetable. + :type tenant_id: str + """ + self._tenant_id = tenant_id + + @property + def gateway_id(self): + """Gets the gateway_id of this CommonRoutetable. + + 网关id + + :return: The gateway_id of this CommonRoutetable. + :rtype: str + """ + return self._gateway_id + + @gateway_id.setter + def gateway_id(self, gateway_id): + """Sets the gateway_id of this CommonRoutetable. + + 网关id + + :param gateway_id: The gateway_id of this CommonRoutetable. + :type gateway_id: str + """ + self._gateway_id = gateway_id + + @property + def destination(self): + """Gets the destination of this CommonRoutetable. + + 路由子网 + + :return: The destination of this CommonRoutetable. + :rtype: str + """ + return self._destination + + @destination.setter + def destination(self, destination): + """Sets the destination of this CommonRoutetable. + + 路由子网 + + :param destination: The destination of this CommonRoutetable. + :type destination: str + """ + self._destination = destination + + @property + def nexthop(self): + """Gets the nexthop of this CommonRoutetable. + + 下一跳id + + :return: The nexthop of this CommonRoutetable. + :rtype: str + """ + return self._nexthop + + @nexthop.setter + def nexthop(self, nexthop): + """Sets the nexthop of this CommonRoutetable. + + 下一跳id + + :param nexthop: The nexthop of this CommonRoutetable. + :type nexthop: str + """ + self._nexthop = nexthop + + @property + def obtain_mode(self): + """Gets the obtain_mode of this CommonRoutetable. + + 路由类型: - customized: 默认路由 - specific: 自定义路由 - bgp: 动态路由 + + :return: The obtain_mode of this CommonRoutetable. + :rtype: str + """ + return self._obtain_mode + + @obtain_mode.setter + def obtain_mode(self, obtain_mode): + """Sets the obtain_mode of this CommonRoutetable. + + 路由类型: - customized: 默认路由 - specific: 自定义路由 - bgp: 动态路由 + + :param obtain_mode: The obtain_mode of this CommonRoutetable. + :type obtain_mode: str + """ + self._obtain_mode = obtain_mode + + @property + def status(self): + """Gets the status of this CommonRoutetable. + + 路由状态: - ACTIVE: 下发正常 - ERROR: 下发失败 - PENDING_CREATE: 待下发 + + :return: The status of this CommonRoutetable. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this CommonRoutetable. + + 路由状态: - ACTIVE: 下发正常 - ERROR: 下发失败 - PENDING_CREATE: 待下发 + + :param status: The status of this CommonRoutetable. + :type status: str + """ + self._status = status + + @property + def address_family(self): + """Gets the address_family of this CommonRoutetable. + + :return: The address_family of this CommonRoutetable. + :rtype: :class:`huaweicloudsdkdc.v3.AddressFamily` + """ + return self._address_family + + @address_family.setter + def address_family(self, address_family): + """Sets the address_family of this CommonRoutetable. + + :param address_family: The address_family of this CommonRoutetable. + :type address_family: :class:`huaweicloudsdkdc.v3.AddressFamily` + """ + self._address_family = address_family + + @property + def description(self): + """Gets the description of this CommonRoutetable. + + 路由描述 + + :return: The description of this CommonRoutetable. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CommonRoutetable. + + 路由描述 + + :param description: The description of this CommonRoutetable. + :type description: str + """ + self._description = description + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CommonRoutetable): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_peer_link_request_body.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_external_peer_link_request_body.py similarity index 59% rename from huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_peer_link_request_body.py rename to huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_external_peer_link_request_body.py index 6fe16b6a6a..3c89d62ba2 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_peer_link_request_body.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_external_peer_link_request_body.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class UpdatePeerLinkRequestBody: +class CreateExternalPeerLinkRequestBody: """ Attributes: @@ -17,74 +17,44 @@ class UpdatePeerLinkRequestBody: sensitive_list = [] openapi_types = { - 'dry_run': 'bool', - 'peer_link': 'UpdatePeerLinkRequestBodyPeerLink' + 'peer_link': 'CreateExternalPeerLinkRequestBodyPeerLink' } attribute_map = { - 'dry_run': 'dry_run', 'peer_link': 'peer_link' } - def __init__(self, dry_run=None, peer_link=None): - """UpdatePeerLinkRequestBody + def __init__(self, peer_link=None): + """CreateExternalPeerLinkRequestBody The model defined in huaweicloud sdk - :param dry_run: 空运行 - true 是 - false 否 - :type dry_run: bool :param peer_link: - :type peer_link: :class:`huaweicloudsdkdc.v3.UpdatePeerLinkRequestBodyPeerLink` + :type peer_link: :class:`huaweicloudsdkdc.v3.CreateExternalPeerLinkRequestBodyPeerLink` """ - self._dry_run = None self._peer_link = None self.discriminator = None - if dry_run is not None: - self.dry_run = dry_run - if peer_link is not None: - self.peer_link = peer_link - - @property - def dry_run(self): - """Gets the dry_run of this UpdatePeerLinkRequestBody. - - 空运行 - true 是 - false 否 - - :return: The dry_run of this UpdatePeerLinkRequestBody. - :rtype: bool - """ - return self._dry_run - - @dry_run.setter - def dry_run(self, dry_run): - """Sets the dry_run of this UpdatePeerLinkRequestBody. - - 空运行 - true 是 - false 否 - - :param dry_run: The dry_run of this UpdatePeerLinkRequestBody. - :type dry_run: bool - """ - self._dry_run = dry_run + self.peer_link = peer_link @property def peer_link(self): - """Gets the peer_link of this UpdatePeerLinkRequestBody. + """Gets the peer_link of this CreateExternalPeerLinkRequestBody. - :return: The peer_link of this UpdatePeerLinkRequestBody. - :rtype: :class:`huaweicloudsdkdc.v3.UpdatePeerLinkRequestBodyPeerLink` + :return: The peer_link of this CreateExternalPeerLinkRequestBody. + :rtype: :class:`huaweicloudsdkdc.v3.CreateExternalPeerLinkRequestBodyPeerLink` """ return self._peer_link @peer_link.setter def peer_link(self, peer_link): - """Sets the peer_link of this UpdatePeerLinkRequestBody. + """Sets the peer_link of this CreateExternalPeerLinkRequestBody. - :param peer_link: The peer_link of this UpdatePeerLinkRequestBody. - :type peer_link: :class:`huaweicloudsdkdc.v3.UpdatePeerLinkRequestBodyPeerLink` + :param peer_link: The peer_link of this CreateExternalPeerLinkRequestBody. + :type peer_link: :class:`huaweicloudsdkdc.v3.CreateExternalPeerLinkRequestBodyPeerLink` """ self._peer_link = peer_link @@ -130,7 +100,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, UpdatePeerLinkRequestBody): + if not isinstance(other, CreateExternalPeerLinkRequestBody): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_peer_link_request_body_peer_link.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_external_peer_link_request_body_peer_link.py similarity index 66% rename from huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_peer_link_request_body_peer_link.py rename to huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_external_peer_link_request_body_peer_link.py index e19fc706f8..09a7ec6c71 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_peer_link_request_body_peer_link.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_external_peer_link_request_body_peer_link.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class CreatePeerLinkRequestBodyPeerLink: +class CreateExternalPeerLinkRequestBodyPeerLink: """ Attributes: @@ -19,7 +19,7 @@ class CreatePeerLinkRequestBodyPeerLink: openapi_types = { 'name': 'str', 'description': 'str', - 'peer_site': 'CreatePeerLinkRequestBodyPeerLinkPeerSite' + 'peer_site': 'CreateExternalPeerLinkRequestBodyPeerLinkPeerSite' } attribute_map = { @@ -29,16 +29,16 @@ class CreatePeerLinkRequestBodyPeerLink: } def __init__(self, name=None, description=None, peer_site=None): - """CreatePeerLinkRequestBodyPeerLink + """CreateExternalPeerLinkRequestBodyPeerLink The model defined in huaweicloud sdk - :param name: + :param name: 关联连接的名字 :type name: str - :param description: + :param description: 描述信息 :type description: str :param peer_site: - :type peer_site: :class:`huaweicloudsdkdc.v3.CreatePeerLinkRequestBodyPeerLinkPeerSite` + :type peer_site: :class:`huaweicloudsdkdc.v3.CreateExternalPeerLinkRequestBodyPeerLinkPeerSite` """ @@ -55,55 +55,63 @@ def __init__(self, name=None, description=None, peer_site=None): @property def name(self): - """Gets the name of this CreatePeerLinkRequestBodyPeerLink. + """Gets the name of this CreateExternalPeerLinkRequestBodyPeerLink. - :return: The name of this CreatePeerLinkRequestBodyPeerLink. + 关联连接的名字 + + :return: The name of this CreateExternalPeerLinkRequestBodyPeerLink. :rtype: str """ return self._name @name.setter def name(self, name): - """Sets the name of this CreatePeerLinkRequestBodyPeerLink. + """Sets the name of this CreateExternalPeerLinkRequestBodyPeerLink. + + 关联连接的名字 - :param name: The name of this CreatePeerLinkRequestBodyPeerLink. + :param name: The name of this CreateExternalPeerLinkRequestBodyPeerLink. :type name: str """ self._name = name @property def description(self): - """Gets the description of this CreatePeerLinkRequestBodyPeerLink. + """Gets the description of this CreateExternalPeerLinkRequestBodyPeerLink. - :return: The description of this CreatePeerLinkRequestBodyPeerLink. + 描述信息 + + :return: The description of this CreateExternalPeerLinkRequestBodyPeerLink. :rtype: str """ return self._description @description.setter def description(self, description): - """Sets the description of this CreatePeerLinkRequestBodyPeerLink. + """Sets the description of this CreateExternalPeerLinkRequestBodyPeerLink. + + 描述信息 - :param description: The description of this CreatePeerLinkRequestBodyPeerLink. + :param description: The description of this CreateExternalPeerLinkRequestBodyPeerLink. :type description: str """ self._description = description @property def peer_site(self): - """Gets the peer_site of this CreatePeerLinkRequestBodyPeerLink. + """Gets the peer_site of this CreateExternalPeerLinkRequestBodyPeerLink. - :return: The peer_site of this CreatePeerLinkRequestBodyPeerLink. - :rtype: :class:`huaweicloudsdkdc.v3.CreatePeerLinkRequestBodyPeerLinkPeerSite` + :return: The peer_site of this CreateExternalPeerLinkRequestBodyPeerLink. + :rtype: :class:`huaweicloudsdkdc.v3.CreateExternalPeerLinkRequestBodyPeerLinkPeerSite` """ return self._peer_site @peer_site.setter def peer_site(self, peer_site): - """Sets the peer_site of this CreatePeerLinkRequestBodyPeerLink. + """Sets the peer_site of this CreateExternalPeerLinkRequestBodyPeerLink. - :param peer_site: The peer_site of this CreatePeerLinkRequestBodyPeerLink. - :type peer_site: :class:`huaweicloudsdkdc.v3.CreatePeerLinkRequestBodyPeerLinkPeerSite` + :param peer_site: The peer_site of this CreateExternalPeerLinkRequestBodyPeerLink. + :type peer_site: :class:`huaweicloudsdkdc.v3.CreateExternalPeerLinkRequestBodyPeerLinkPeerSite` """ self._peer_site = peer_site @@ -149,7 +157,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, CreatePeerLinkRequestBodyPeerLink): + if not isinstance(other, CreateExternalPeerLinkRequestBodyPeerLink): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_peer_link_request_body_peer_link_peer_site.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_external_peer_link_request_body_peer_link_peer_site.py similarity index 62% rename from huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_peer_link_request_body_peer_link_peer_site.py rename to huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_external_peer_link_request_body_peer_link_peer_site.py index 560f011427..8467ec2a67 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_peer_link_request_body_peer_link_peer_site.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_external_peer_link_request_body_peer_link_peer_site.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class CreatePeerLinkRequestBodyPeerLinkPeerSite: +class CreateExternalPeerLinkRequestBodyPeerLinkPeerSite: """ Attributes: @@ -17,116 +17,103 @@ class CreatePeerLinkRequestBodyPeerLinkPeerSite: sensitive_list = [] openapi_types = { - 'type': 'str', 'gateway_id': 'str', 'project_id': 'str', 'region_id': 'str' } attribute_map = { - 'type': 'type', 'gateway_id': 'gateway_id', 'project_id': 'project_id', 'region_id': 'region_id' } - def __init__(self, type=None, gateway_id=None, project_id=None, region_id=None): - """CreatePeerLinkRequestBodyPeerLinkPeerSite + def __init__(self, gateway_id=None, project_id=None, region_id=None): + """CreateExternalPeerLinkRequestBodyPeerLinkPeerSite The model defined in huaweicloud sdk - :param type: - :type type: str - :param gateway_id: + :param gateway_id: 接入网关连接对端的实例(当前ER实例)ID :type gateway_id: str - :param project_id: + :param project_id: 对端实例(ER实例)归属的项目ID :type project_id: str - :param region_id: + :param region_id: 归属的区域ID :type region_id: str """ - self._type = None self._gateway_id = None self._project_id = None self._region_id = None self.discriminator = None - if type is not None: - self.type = type self.gateway_id = gateway_id self.project_id = project_id self.region_id = region_id - @property - def type(self): - """Gets the type of this CreatePeerLinkRequestBodyPeerLinkPeerSite. - - :return: The type of this CreatePeerLinkRequestBodyPeerLinkPeerSite. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this CreatePeerLinkRequestBodyPeerLinkPeerSite. - - :param type: The type of this CreatePeerLinkRequestBodyPeerLinkPeerSite. - :type type: str - """ - self._type = type - @property def gateway_id(self): - """Gets the gateway_id of this CreatePeerLinkRequestBodyPeerLinkPeerSite. + """Gets the gateway_id of this CreateExternalPeerLinkRequestBodyPeerLinkPeerSite. + + 接入网关连接对端的实例(当前ER实例)ID - :return: The gateway_id of this CreatePeerLinkRequestBodyPeerLinkPeerSite. + :return: The gateway_id of this CreateExternalPeerLinkRequestBodyPeerLinkPeerSite. :rtype: str """ return self._gateway_id @gateway_id.setter def gateway_id(self, gateway_id): - """Sets the gateway_id of this CreatePeerLinkRequestBodyPeerLinkPeerSite. + """Sets the gateway_id of this CreateExternalPeerLinkRequestBodyPeerLinkPeerSite. - :param gateway_id: The gateway_id of this CreatePeerLinkRequestBodyPeerLinkPeerSite. + 接入网关连接对端的实例(当前ER实例)ID + + :param gateway_id: The gateway_id of this CreateExternalPeerLinkRequestBodyPeerLinkPeerSite. :type gateway_id: str """ self._gateway_id = gateway_id @property def project_id(self): - """Gets the project_id of this CreatePeerLinkRequestBodyPeerLinkPeerSite. + """Gets the project_id of this CreateExternalPeerLinkRequestBodyPeerLinkPeerSite. + + 对端实例(ER实例)归属的项目ID - :return: The project_id of this CreatePeerLinkRequestBodyPeerLinkPeerSite. + :return: The project_id of this CreateExternalPeerLinkRequestBodyPeerLinkPeerSite. :rtype: str """ return self._project_id @project_id.setter def project_id(self, project_id): - """Sets the project_id of this CreatePeerLinkRequestBodyPeerLinkPeerSite. + """Sets the project_id of this CreateExternalPeerLinkRequestBodyPeerLinkPeerSite. - :param project_id: The project_id of this CreatePeerLinkRequestBodyPeerLinkPeerSite. + 对端实例(ER实例)归属的项目ID + + :param project_id: The project_id of this CreateExternalPeerLinkRequestBodyPeerLinkPeerSite. :type project_id: str """ self._project_id = project_id @property def region_id(self): - """Gets the region_id of this CreatePeerLinkRequestBodyPeerLinkPeerSite. + """Gets the region_id of this CreateExternalPeerLinkRequestBodyPeerLinkPeerSite. + + 归属的区域ID - :return: The region_id of this CreatePeerLinkRequestBodyPeerLinkPeerSite. + :return: The region_id of this CreateExternalPeerLinkRequestBodyPeerLinkPeerSite. :rtype: str """ return self._region_id @region_id.setter def region_id(self, region_id): - """Sets the region_id of this CreatePeerLinkRequestBodyPeerLinkPeerSite. + """Sets the region_id of this CreateExternalPeerLinkRequestBodyPeerLinkPeerSite. + + 归属的区域ID - :param region_id: The region_id of this CreatePeerLinkRequestBodyPeerLinkPeerSite. + :param region_id: The region_id of this CreateExternalPeerLinkRequestBodyPeerLinkPeerSite. :type region_id: str """ self._region_id = region_id @@ -173,7 +160,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, CreatePeerLinkRequestBodyPeerLinkPeerSite): + if not isinstance(other, CreateExternalPeerLinkRequestBodyPeerLinkPeerSite): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_global_dc_gateway_request_body_global_dc_gateway.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_global_dc_gateway.py similarity index 66% rename from huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_global_dc_gateway_request_body_global_dc_gateway.py rename to huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_global_dc_gateway.py index ce3e9c3cd8..6af6b8a350 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_global_dc_gateway_request_body_global_dc_gateway.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_global_dc_gateway.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class CreateGlobalDcGatewayRequestBodyGlobalDcGateway: +class CreateGlobalDcGateway: """ Attributes: @@ -23,7 +23,7 @@ class CreateGlobalDcGatewayRequestBodyGlobalDcGateway: 'bgp_asn': 'int', 'enterprise_project_id': 'str', 'address_family': 'str', - 'tags': 'list[CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags]' + 'tags': 'list[Tag]' } attribute_map = { @@ -37,24 +37,24 @@ class CreateGlobalDcGatewayRequestBodyGlobalDcGateway: } def __init__(self, tenant_id=None, name=None, description=None, bgp_asn=None, enterprise_project_id=None, address_family=None, tags=None): - """CreateGlobalDcGatewayRequestBodyGlobalDcGateway + """CreateGlobalDcGateway The model defined in huaweicloud sdk - :param tenant_id: 租户ID + :param tenant_id: 项目ID。 :type tenant_id: str - :param name: 全球接入网关名称 + :param name: global-dc-gateway名字。 :type name: str - :param description: 描述信息 + :param description: 描述信息。 :type description: str - :param bgp_asn: BGP模式的AS号 + :param bgp_asn: global-dc-gateway对应的ASN号 :type bgp_asn: int - :param enterprise_project_id: 企业项目ID + :param enterprise_project_id: global-dc-gateway所属的企业项目ID。 :type enterprise_project_id: str - :param address_family: 地址簇类型 + :param address_family: 网关的地址簇,IPv4或者ipv6和IPv4双栈 - ipv4 - dual :type address_family: str - :param tags: 标签 - :type tags: list[:class:`huaweicloudsdkdc.v3.CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags`] + :param tags: global-dc-gateway关联TAG。 + :type tags: list[:class:`huaweicloudsdkdc.v3.Tag`] """ @@ -84,155 +84,155 @@ def __init__(self, tenant_id=None, name=None, description=None, bgp_asn=None, en @property def tenant_id(self): - """Gets the tenant_id of this CreateGlobalDcGatewayRequestBodyGlobalDcGateway. + """Gets the tenant_id of this CreateGlobalDcGateway. - 租户ID + 项目ID。 - :return: The tenant_id of this CreateGlobalDcGatewayRequestBodyGlobalDcGateway. + :return: The tenant_id of this CreateGlobalDcGateway. :rtype: str """ return self._tenant_id @tenant_id.setter def tenant_id(self, tenant_id): - """Sets the tenant_id of this CreateGlobalDcGatewayRequestBodyGlobalDcGateway. + """Sets the tenant_id of this CreateGlobalDcGateway. - 租户ID + 项目ID。 - :param tenant_id: The tenant_id of this CreateGlobalDcGatewayRequestBodyGlobalDcGateway. + :param tenant_id: The tenant_id of this CreateGlobalDcGateway. :type tenant_id: str """ self._tenant_id = tenant_id @property def name(self): - """Gets the name of this CreateGlobalDcGatewayRequestBodyGlobalDcGateway. + """Gets the name of this CreateGlobalDcGateway. - 全球接入网关名称 + global-dc-gateway名字。 - :return: The name of this CreateGlobalDcGatewayRequestBodyGlobalDcGateway. + :return: The name of this CreateGlobalDcGateway. :rtype: str """ return self._name @name.setter def name(self, name): - """Sets the name of this CreateGlobalDcGatewayRequestBodyGlobalDcGateway. + """Sets the name of this CreateGlobalDcGateway. - 全球接入网关名称 + global-dc-gateway名字。 - :param name: The name of this CreateGlobalDcGatewayRequestBodyGlobalDcGateway. + :param name: The name of this CreateGlobalDcGateway. :type name: str """ self._name = name @property def description(self): - """Gets the description of this CreateGlobalDcGatewayRequestBodyGlobalDcGateway. + """Gets the description of this CreateGlobalDcGateway. - 描述信息 + 描述信息。 - :return: The description of this CreateGlobalDcGatewayRequestBodyGlobalDcGateway. + :return: The description of this CreateGlobalDcGateway. :rtype: str """ return self._description @description.setter def description(self, description): - """Sets the description of this CreateGlobalDcGatewayRequestBodyGlobalDcGateway. + """Sets the description of this CreateGlobalDcGateway. - 描述信息 + 描述信息。 - :param description: The description of this CreateGlobalDcGatewayRequestBodyGlobalDcGateway. + :param description: The description of this CreateGlobalDcGateway. :type description: str """ self._description = description @property def bgp_asn(self): - """Gets the bgp_asn of this CreateGlobalDcGatewayRequestBodyGlobalDcGateway. + """Gets the bgp_asn of this CreateGlobalDcGateway. - BGP模式的AS号 + global-dc-gateway对应的ASN号 - :return: The bgp_asn of this CreateGlobalDcGatewayRequestBodyGlobalDcGateway. + :return: The bgp_asn of this CreateGlobalDcGateway. :rtype: int """ return self._bgp_asn @bgp_asn.setter def bgp_asn(self, bgp_asn): - """Sets the bgp_asn of this CreateGlobalDcGatewayRequestBodyGlobalDcGateway. + """Sets the bgp_asn of this CreateGlobalDcGateway. - BGP模式的AS号 + global-dc-gateway对应的ASN号 - :param bgp_asn: The bgp_asn of this CreateGlobalDcGatewayRequestBodyGlobalDcGateway. + :param bgp_asn: The bgp_asn of this CreateGlobalDcGateway. :type bgp_asn: int """ self._bgp_asn = bgp_asn @property def enterprise_project_id(self): - """Gets the enterprise_project_id of this CreateGlobalDcGatewayRequestBodyGlobalDcGateway. + """Gets the enterprise_project_id of this CreateGlobalDcGateway. - 企业项目ID + global-dc-gateway所属的企业项目ID。 - :return: The enterprise_project_id of this CreateGlobalDcGatewayRequestBodyGlobalDcGateway. + :return: The enterprise_project_id of this CreateGlobalDcGateway. :rtype: str """ return self._enterprise_project_id @enterprise_project_id.setter def enterprise_project_id(self, enterprise_project_id): - """Sets the enterprise_project_id of this CreateGlobalDcGatewayRequestBodyGlobalDcGateway. + """Sets the enterprise_project_id of this CreateGlobalDcGateway. - 企业项目ID + global-dc-gateway所属的企业项目ID。 - :param enterprise_project_id: The enterprise_project_id of this CreateGlobalDcGatewayRequestBodyGlobalDcGateway. + :param enterprise_project_id: The enterprise_project_id of this CreateGlobalDcGateway. :type enterprise_project_id: str """ self._enterprise_project_id = enterprise_project_id @property def address_family(self): - """Gets the address_family of this CreateGlobalDcGatewayRequestBodyGlobalDcGateway. + """Gets the address_family of this CreateGlobalDcGateway. - 地址簇类型 + 网关的地址簇,IPv4或者ipv6和IPv4双栈 - ipv4 - dual - :return: The address_family of this CreateGlobalDcGatewayRequestBodyGlobalDcGateway. + :return: The address_family of this CreateGlobalDcGateway. :rtype: str """ return self._address_family @address_family.setter def address_family(self, address_family): - """Sets the address_family of this CreateGlobalDcGatewayRequestBodyGlobalDcGateway. + """Sets the address_family of this CreateGlobalDcGateway. - 地址簇类型 + 网关的地址簇,IPv4或者ipv6和IPv4双栈 - ipv4 - dual - :param address_family: The address_family of this CreateGlobalDcGatewayRequestBodyGlobalDcGateway. + :param address_family: The address_family of this CreateGlobalDcGateway. :type address_family: str """ self._address_family = address_family @property def tags(self): - """Gets the tags of this CreateGlobalDcGatewayRequestBodyGlobalDcGateway. + """Gets the tags of this CreateGlobalDcGateway. - 标签 + global-dc-gateway关联TAG。 - :return: The tags of this CreateGlobalDcGatewayRequestBodyGlobalDcGateway. - :rtype: list[:class:`huaweicloudsdkdc.v3.CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags`] + :return: The tags of this CreateGlobalDcGateway. + :rtype: list[:class:`huaweicloudsdkdc.v3.Tag`] """ return self._tags @tags.setter def tags(self, tags): - """Sets the tags of this CreateGlobalDcGatewayRequestBodyGlobalDcGateway. + """Sets the tags of this CreateGlobalDcGateway. - 标签 + global-dc-gateway关联TAG。 - :param tags: The tags of this CreateGlobalDcGatewayRequestBodyGlobalDcGateway. - :type tags: list[:class:`huaweicloudsdkdc.v3.CreateGlobalDcGatewayRequestBodyGlobalDcGatewayTags`] + :param tags: The tags of this CreateGlobalDcGateway. + :type tags: list[:class:`huaweicloudsdkdc.v3.Tag`] """ self._tags = tags @@ -278,7 +278,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, CreateGlobalDcGatewayRequestBodyGlobalDcGateway): + if not isinstance(other, CreateGlobalDcGateway): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/external_update_global_dc_gateway.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_global_dc_gateway_entry.py similarity index 51% rename from huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/external_update_global_dc_gateway.py rename to huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_global_dc_gateway_entry.py index 94eafb24a7..51e1078311 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/external_update_global_dc_gateway.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_global_dc_gateway_entry.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class ExternalUpdateGlobalDcGateway: +class CreateGlobalDcGatewayEntry: """ Attributes: @@ -23,17 +23,16 @@ class ExternalUpdateGlobalDcGateway: 'description': 'str', 'enterprise_project_id': 'str', 'global_center_network_id': 'str', - 'site_network_id': 'str', - 'cloud_connection_id': 'str', 'bgp_asn': 'int', 'region_id': 'str', 'location_name': 'str', - 'current_peer_link_count': 'int', - 'available_peer_link_count': 'int', + 'current_peer_link_count': 'str', + 'available_peer_link_count': 'str', + 'tags': 'list[Tag]', 'admin_state_up': 'bool', - 'status': 'str', + 'status': 'GlobalDcGatewayStatus', 'created_time': 'datetime', - 'updated_time': 'datetime' + 'address_family': 'str' } attribute_map = { @@ -43,58 +42,55 @@ class ExternalUpdateGlobalDcGateway: 'description': 'description', 'enterprise_project_id': 'enterprise_project_id', 'global_center_network_id': 'global_center_network_id', - 'site_network_id': 'site_network_id', - 'cloud_connection_id': 'cloud_connection_id', 'bgp_asn': 'bgp_asn', 'region_id': 'region_id', 'location_name': 'location_name', 'current_peer_link_count': 'current_peer_link_count', 'available_peer_link_count': 'available_peer_link_count', + 'tags': 'tags', 'admin_state_up': 'admin_state_up', 'status': 'status', 'created_time': 'created_time', - 'updated_time': 'updated_time' + 'address_family': 'address_family' } - def __init__(self, id=None, tenant_id=None, name=None, description=None, enterprise_project_id=None, global_center_network_id=None, site_network_id=None, cloud_connection_id=None, bgp_asn=None, region_id=None, location_name=None, current_peer_link_count=None, available_peer_link_count=None, admin_state_up=None, status=None, created_time=None, updated_time=None): - """ExternalUpdateGlobalDcGateway + def __init__(self, id=None, tenant_id=None, name=None, description=None, enterprise_project_id=None, global_center_network_id=None, bgp_asn=None, region_id=None, location_name=None, current_peer_link_count=None, available_peer_link_count=None, tags=None, admin_state_up=None, status=None, created_time=None, address_family=None): + """CreateGlobalDcGatewayEntry The model defined in huaweicloud sdk - :param id: 唯一ID + :param id: 专线全域接入网关(global-dc-gateway)ID :type id: str - :param tenant_id: 租户ID + :param tenant_id: 项目ID。 :type tenant_id: str - :param name: 名称 + :param name: global-dc-gateway名字。 :type name: str :param description: 描述信息 :type description: str - :param enterprise_project_id: 企业项目ID + :param enterprise_project_id: global-dc-gateway所属的企业项目ID。 :type enterprise_project_id: str - :param global_center_network_id: 全球中心网络ID + :param global_center_network_id: DGW加载的全球中心网络实例的ID :type global_center_network_id: str - :param site_network_id: 站点网络ID - :type site_network_id: str - :param cloud_connection_id: 云连接ID - :type cloud_connection_id: str - :param bgp_asn: BGP模式的AS号 + :param bgp_asn: DGW对应BGP的ASN编号 :type bgp_asn: int - :param region_id: 租户ID + :param region_id: DGW所属Region :type region_id: str - :param location_name: 位置名称 + :param location_name: DGW创建网关设备归属的位置 :type location_name: str - :param current_peer_link_count: 当前对等体数量 - :type current_peer_link_count: int - :param available_peer_link_count: 有效对等体数量 - :type available_peer_link_count: int - :param admin_state_up: 是否冻结:true-是,false-否 + :param current_peer_link_count: 全域接入网关(GDGW)上关联连接的数量,表示DGW挂载ER的数量 + :type current_peer_link_count: str + :param available_peer_link_count: 该全域接入网关上GDGW允许创建关联连接(PeerLink)的数量 + :type available_peer_link_count: str + :param tags: global-dc-gateway关联TAG。 + :type tags: list[:class:`huaweicloudsdkdc.v3.Tag`] + :param admin_state_up: 该GDGW的管理状态,true为激活状态、false为冻结状态 :type admin_state_up: bool - :param status: 状态: ACTIVE-正常,ERROR-异常 - :type status: str - :param created_time: 创建时间 + :param status: + :type status: :class:`huaweicloudsdkdc.v3.GlobalDcGatewayStatus` + :param created_time: 创建时间。 :type created_time: datetime - :param updated_time: 修改时间 - :type updated_time: datetime + :param address_family: 网关的地址簇,IPv4或者ipv6和IPv4双栈 - ipv4 - dual + :type address_family: str """ @@ -105,17 +101,16 @@ def __init__(self, id=None, tenant_id=None, name=None, description=None, enterpr self._description = None self._enterprise_project_id = None self._global_center_network_id = None - self._site_network_id = None - self._cloud_connection_id = None self._bgp_asn = None self._region_id = None self._location_name = None self._current_peer_link_count = None self._available_peer_link_count = None + self._tags = None self._admin_state_up = None self._status = None self._created_time = None - self._updated_time = None + self._address_family = None self.discriminator = None if id is not None: @@ -130,10 +125,6 @@ def __init__(self, id=None, tenant_id=None, name=None, description=None, enterpr self.enterprise_project_id = enterprise_project_id if global_center_network_id is not None: self.global_center_network_id = global_center_network_id - if site_network_id is not None: - self.site_network_id = site_network_id - if cloud_connection_id is not None: - self.cloud_connection_id = cloud_connection_id if bgp_asn is not None: self.bgp_asn = bgp_asn if region_id is not None: @@ -144,388 +135,364 @@ def __init__(self, id=None, tenant_id=None, name=None, description=None, enterpr self.current_peer_link_count = current_peer_link_count if available_peer_link_count is not None: self.available_peer_link_count = available_peer_link_count + if tags is not None: + self.tags = tags if admin_state_up is not None: self.admin_state_up = admin_state_up if status is not None: self.status = status if created_time is not None: self.created_time = created_time - if updated_time is not None: - self.updated_time = updated_time + if address_family is not None: + self.address_family = address_family @property def id(self): - """Gets the id of this ExternalUpdateGlobalDcGateway. + """Gets the id of this CreateGlobalDcGatewayEntry. - 唯一ID + 专线全域接入网关(global-dc-gateway)ID - :return: The id of this ExternalUpdateGlobalDcGateway. + :return: The id of this CreateGlobalDcGatewayEntry. :rtype: str """ return self._id @id.setter def id(self, id): - """Sets the id of this ExternalUpdateGlobalDcGateway. + """Sets the id of this CreateGlobalDcGatewayEntry. - 唯一ID + 专线全域接入网关(global-dc-gateway)ID - :param id: The id of this ExternalUpdateGlobalDcGateway. + :param id: The id of this CreateGlobalDcGatewayEntry. :type id: str """ self._id = id @property def tenant_id(self): - """Gets the tenant_id of this ExternalUpdateGlobalDcGateway. + """Gets the tenant_id of this CreateGlobalDcGatewayEntry. - 租户ID + 项目ID。 - :return: The tenant_id of this ExternalUpdateGlobalDcGateway. + :return: The tenant_id of this CreateGlobalDcGatewayEntry. :rtype: str """ return self._tenant_id @tenant_id.setter def tenant_id(self, tenant_id): - """Sets the tenant_id of this ExternalUpdateGlobalDcGateway. + """Sets the tenant_id of this CreateGlobalDcGatewayEntry. - 租户ID + 项目ID。 - :param tenant_id: The tenant_id of this ExternalUpdateGlobalDcGateway. + :param tenant_id: The tenant_id of this CreateGlobalDcGatewayEntry. :type tenant_id: str """ self._tenant_id = tenant_id @property def name(self): - """Gets the name of this ExternalUpdateGlobalDcGateway. + """Gets the name of this CreateGlobalDcGatewayEntry. - 名称 + global-dc-gateway名字。 - :return: The name of this ExternalUpdateGlobalDcGateway. + :return: The name of this CreateGlobalDcGatewayEntry. :rtype: str """ return self._name @name.setter def name(self, name): - """Sets the name of this ExternalUpdateGlobalDcGateway. + """Sets the name of this CreateGlobalDcGatewayEntry. - 名称 + global-dc-gateway名字。 - :param name: The name of this ExternalUpdateGlobalDcGateway. + :param name: The name of this CreateGlobalDcGatewayEntry. :type name: str """ self._name = name @property def description(self): - """Gets the description of this ExternalUpdateGlobalDcGateway. + """Gets the description of this CreateGlobalDcGatewayEntry. 描述信息 - :return: The description of this ExternalUpdateGlobalDcGateway. + :return: The description of this CreateGlobalDcGatewayEntry. :rtype: str """ return self._description @description.setter def description(self, description): - """Sets the description of this ExternalUpdateGlobalDcGateway. + """Sets the description of this CreateGlobalDcGatewayEntry. 描述信息 - :param description: The description of this ExternalUpdateGlobalDcGateway. + :param description: The description of this CreateGlobalDcGatewayEntry. :type description: str """ self._description = description @property def enterprise_project_id(self): - """Gets the enterprise_project_id of this ExternalUpdateGlobalDcGateway. + """Gets the enterprise_project_id of this CreateGlobalDcGatewayEntry. - 企业项目ID + global-dc-gateway所属的企业项目ID。 - :return: The enterprise_project_id of this ExternalUpdateGlobalDcGateway. + :return: The enterprise_project_id of this CreateGlobalDcGatewayEntry. :rtype: str """ return self._enterprise_project_id @enterprise_project_id.setter def enterprise_project_id(self, enterprise_project_id): - """Sets the enterprise_project_id of this ExternalUpdateGlobalDcGateway. + """Sets the enterprise_project_id of this CreateGlobalDcGatewayEntry. - 企业项目ID + global-dc-gateway所属的企业项目ID。 - :param enterprise_project_id: The enterprise_project_id of this ExternalUpdateGlobalDcGateway. + :param enterprise_project_id: The enterprise_project_id of this CreateGlobalDcGatewayEntry. :type enterprise_project_id: str """ self._enterprise_project_id = enterprise_project_id @property def global_center_network_id(self): - """Gets the global_center_network_id of this ExternalUpdateGlobalDcGateway. + """Gets the global_center_network_id of this CreateGlobalDcGatewayEntry. - 全球中心网络ID + DGW加载的全球中心网络实例的ID - :return: The global_center_network_id of this ExternalUpdateGlobalDcGateway. + :return: The global_center_network_id of this CreateGlobalDcGatewayEntry. :rtype: str """ return self._global_center_network_id @global_center_network_id.setter def global_center_network_id(self, global_center_network_id): - """Sets the global_center_network_id of this ExternalUpdateGlobalDcGateway. + """Sets the global_center_network_id of this CreateGlobalDcGatewayEntry. - 全球中心网络ID + DGW加载的全球中心网络实例的ID - :param global_center_network_id: The global_center_network_id of this ExternalUpdateGlobalDcGateway. + :param global_center_network_id: The global_center_network_id of this CreateGlobalDcGatewayEntry. :type global_center_network_id: str """ self._global_center_network_id = global_center_network_id - @property - def site_network_id(self): - """Gets the site_network_id of this ExternalUpdateGlobalDcGateway. - - 站点网络ID - - :return: The site_network_id of this ExternalUpdateGlobalDcGateway. - :rtype: str - """ - return self._site_network_id - - @site_network_id.setter - def site_network_id(self, site_network_id): - """Sets the site_network_id of this ExternalUpdateGlobalDcGateway. - - 站点网络ID - - :param site_network_id: The site_network_id of this ExternalUpdateGlobalDcGateway. - :type site_network_id: str - """ - self._site_network_id = site_network_id - - @property - def cloud_connection_id(self): - """Gets the cloud_connection_id of this ExternalUpdateGlobalDcGateway. - - 云连接ID - - :return: The cloud_connection_id of this ExternalUpdateGlobalDcGateway. - :rtype: str - """ - return self._cloud_connection_id - - @cloud_connection_id.setter - def cloud_connection_id(self, cloud_connection_id): - """Sets the cloud_connection_id of this ExternalUpdateGlobalDcGateway. - - 云连接ID - - :param cloud_connection_id: The cloud_connection_id of this ExternalUpdateGlobalDcGateway. - :type cloud_connection_id: str - """ - self._cloud_connection_id = cloud_connection_id - @property def bgp_asn(self): - """Gets the bgp_asn of this ExternalUpdateGlobalDcGateway. + """Gets the bgp_asn of this CreateGlobalDcGatewayEntry. - BGP模式的AS号 + DGW对应BGP的ASN编号 - :return: The bgp_asn of this ExternalUpdateGlobalDcGateway. + :return: The bgp_asn of this CreateGlobalDcGatewayEntry. :rtype: int """ return self._bgp_asn @bgp_asn.setter def bgp_asn(self, bgp_asn): - """Sets the bgp_asn of this ExternalUpdateGlobalDcGateway. + """Sets the bgp_asn of this CreateGlobalDcGatewayEntry. - BGP模式的AS号 + DGW对应BGP的ASN编号 - :param bgp_asn: The bgp_asn of this ExternalUpdateGlobalDcGateway. + :param bgp_asn: The bgp_asn of this CreateGlobalDcGatewayEntry. :type bgp_asn: int """ self._bgp_asn = bgp_asn @property def region_id(self): - """Gets the region_id of this ExternalUpdateGlobalDcGateway. + """Gets the region_id of this CreateGlobalDcGatewayEntry. - 租户ID + DGW所属Region - :return: The region_id of this ExternalUpdateGlobalDcGateway. + :return: The region_id of this CreateGlobalDcGatewayEntry. :rtype: str """ return self._region_id @region_id.setter def region_id(self, region_id): - """Sets the region_id of this ExternalUpdateGlobalDcGateway. + """Sets the region_id of this CreateGlobalDcGatewayEntry. - 租户ID + DGW所属Region - :param region_id: The region_id of this ExternalUpdateGlobalDcGateway. + :param region_id: The region_id of this CreateGlobalDcGatewayEntry. :type region_id: str """ self._region_id = region_id @property def location_name(self): - """Gets the location_name of this ExternalUpdateGlobalDcGateway. + """Gets the location_name of this CreateGlobalDcGatewayEntry. - 位置名称 + DGW创建网关设备归属的位置 - :return: The location_name of this ExternalUpdateGlobalDcGateway. + :return: The location_name of this CreateGlobalDcGatewayEntry. :rtype: str """ return self._location_name @location_name.setter def location_name(self, location_name): - """Sets the location_name of this ExternalUpdateGlobalDcGateway. + """Sets the location_name of this CreateGlobalDcGatewayEntry. - 位置名称 + DGW创建网关设备归属的位置 - :param location_name: The location_name of this ExternalUpdateGlobalDcGateway. + :param location_name: The location_name of this CreateGlobalDcGatewayEntry. :type location_name: str """ self._location_name = location_name @property def current_peer_link_count(self): - """Gets the current_peer_link_count of this ExternalUpdateGlobalDcGateway. + """Gets the current_peer_link_count of this CreateGlobalDcGatewayEntry. - 当前对等体数量 + 全域接入网关(GDGW)上关联连接的数量,表示DGW挂载ER的数量 - :return: The current_peer_link_count of this ExternalUpdateGlobalDcGateway. - :rtype: int + :return: The current_peer_link_count of this CreateGlobalDcGatewayEntry. + :rtype: str """ return self._current_peer_link_count @current_peer_link_count.setter def current_peer_link_count(self, current_peer_link_count): - """Sets the current_peer_link_count of this ExternalUpdateGlobalDcGateway. + """Sets the current_peer_link_count of this CreateGlobalDcGatewayEntry. - 当前对等体数量 + 全域接入网关(GDGW)上关联连接的数量,表示DGW挂载ER的数量 - :param current_peer_link_count: The current_peer_link_count of this ExternalUpdateGlobalDcGateway. - :type current_peer_link_count: int + :param current_peer_link_count: The current_peer_link_count of this CreateGlobalDcGatewayEntry. + :type current_peer_link_count: str """ self._current_peer_link_count = current_peer_link_count @property def available_peer_link_count(self): - """Gets the available_peer_link_count of this ExternalUpdateGlobalDcGateway. + """Gets the available_peer_link_count of this CreateGlobalDcGatewayEntry. - 有效对等体数量 + 该全域接入网关上GDGW允许创建关联连接(PeerLink)的数量 - :return: The available_peer_link_count of this ExternalUpdateGlobalDcGateway. - :rtype: int + :return: The available_peer_link_count of this CreateGlobalDcGatewayEntry. + :rtype: str """ return self._available_peer_link_count @available_peer_link_count.setter def available_peer_link_count(self, available_peer_link_count): - """Sets the available_peer_link_count of this ExternalUpdateGlobalDcGateway. + """Sets the available_peer_link_count of this CreateGlobalDcGatewayEntry. - 有效对等体数量 + 该全域接入网关上GDGW允许创建关联连接(PeerLink)的数量 - :param available_peer_link_count: The available_peer_link_count of this ExternalUpdateGlobalDcGateway. - :type available_peer_link_count: int + :param available_peer_link_count: The available_peer_link_count of this CreateGlobalDcGatewayEntry. + :type available_peer_link_count: str """ self._available_peer_link_count = available_peer_link_count + @property + def tags(self): + """Gets the tags of this CreateGlobalDcGatewayEntry. + + global-dc-gateway关联TAG。 + + :return: The tags of this CreateGlobalDcGatewayEntry. + :rtype: list[:class:`huaweicloudsdkdc.v3.Tag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this CreateGlobalDcGatewayEntry. + + global-dc-gateway关联TAG。 + + :param tags: The tags of this CreateGlobalDcGatewayEntry. + :type tags: list[:class:`huaweicloudsdkdc.v3.Tag`] + """ + self._tags = tags + @property def admin_state_up(self): - """Gets the admin_state_up of this ExternalUpdateGlobalDcGateway. + """Gets the admin_state_up of this CreateGlobalDcGatewayEntry. - 是否冻结:true-是,false-否 + 该GDGW的管理状态,true为激活状态、false为冻结状态 - :return: The admin_state_up of this ExternalUpdateGlobalDcGateway. + :return: The admin_state_up of this CreateGlobalDcGatewayEntry. :rtype: bool """ return self._admin_state_up @admin_state_up.setter def admin_state_up(self, admin_state_up): - """Sets the admin_state_up of this ExternalUpdateGlobalDcGateway. + """Sets the admin_state_up of this CreateGlobalDcGatewayEntry. - 是否冻结:true-是,false-否 + 该GDGW的管理状态,true为激活状态、false为冻结状态 - :param admin_state_up: The admin_state_up of this ExternalUpdateGlobalDcGateway. + :param admin_state_up: The admin_state_up of this CreateGlobalDcGatewayEntry. :type admin_state_up: bool """ self._admin_state_up = admin_state_up @property def status(self): - """Gets the status of this ExternalUpdateGlobalDcGateway. - - 状态: ACTIVE-正常,ERROR-异常 + """Gets the status of this CreateGlobalDcGatewayEntry. - :return: The status of this ExternalUpdateGlobalDcGateway. - :rtype: str + :return: The status of this CreateGlobalDcGatewayEntry. + :rtype: :class:`huaweicloudsdkdc.v3.GlobalDcGatewayStatus` """ return self._status @status.setter def status(self, status): - """Sets the status of this ExternalUpdateGlobalDcGateway. - - 状态: ACTIVE-正常,ERROR-异常 + """Sets the status of this CreateGlobalDcGatewayEntry. - :param status: The status of this ExternalUpdateGlobalDcGateway. - :type status: str + :param status: The status of this CreateGlobalDcGatewayEntry. + :type status: :class:`huaweicloudsdkdc.v3.GlobalDcGatewayStatus` """ self._status = status @property def created_time(self): - """Gets the created_time of this ExternalUpdateGlobalDcGateway. + """Gets the created_time of this CreateGlobalDcGatewayEntry. - 创建时间 + 创建时间。 - :return: The created_time of this ExternalUpdateGlobalDcGateway. + :return: The created_time of this CreateGlobalDcGatewayEntry. :rtype: datetime """ return self._created_time @created_time.setter def created_time(self, created_time): - """Sets the created_time of this ExternalUpdateGlobalDcGateway. + """Sets the created_time of this CreateGlobalDcGatewayEntry. - 创建时间 + 创建时间。 - :param created_time: The created_time of this ExternalUpdateGlobalDcGateway. + :param created_time: The created_time of this CreateGlobalDcGatewayEntry. :type created_time: datetime """ self._created_time = created_time @property - def updated_time(self): - """Gets the updated_time of this ExternalUpdateGlobalDcGateway. + def address_family(self): + """Gets the address_family of this CreateGlobalDcGatewayEntry. - 修改时间 + 网关的地址簇,IPv4或者ipv6和IPv4双栈 - ipv4 - dual - :return: The updated_time of this ExternalUpdateGlobalDcGateway. - :rtype: datetime + :return: The address_family of this CreateGlobalDcGatewayEntry. + :rtype: str """ - return self._updated_time + return self._address_family - @updated_time.setter - def updated_time(self, updated_time): - """Sets the updated_time of this ExternalUpdateGlobalDcGateway. + @address_family.setter + def address_family(self, address_family): + """Sets the address_family of this CreateGlobalDcGatewayEntry. - 修改时间 + 网关的地址簇,IPv4或者ipv6和IPv4双栈 - ipv4 - dual - :param updated_time: The updated_time of this ExternalUpdateGlobalDcGateway. - :type updated_time: datetime + :param address_family: The address_family of this CreateGlobalDcGatewayEntry. + :type address_family: str """ - self._updated_time = updated_time + self._address_family = address_family def to_dict(self): """Returns the model properties as a dict""" @@ -569,7 +536,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ExternalUpdateGlobalDcGateway): + if not isinstance(other, CreateGlobalDcGatewayEntry): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_global_dc_gateway_request_body.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_global_dc_gateway_request_body.py index e596f3ff14..0a39c9f1f8 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_global_dc_gateway_request_body.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_global_dc_gateway_request_body.py @@ -17,65 +17,35 @@ class CreateGlobalDcGatewayRequestBody: sensitive_list = [] openapi_types = { - 'dry_run': 'bool', - 'global_dc_gateway': 'CreateGlobalDcGatewayRequestBodyGlobalDcGateway' + 'global_dc_gateway': 'CreateGlobalDcGateway' } attribute_map = { - 'dry_run': 'dry_run', 'global_dc_gateway': 'global_dc_gateway' } - def __init__(self, dry_run=None, global_dc_gateway=None): + def __init__(self, global_dc_gateway=None): """CreateGlobalDcGatewayRequestBody The model defined in huaweicloud sdk - :param dry_run: 空运行 - true 是 - false 否 - :type dry_run: bool :param global_dc_gateway: - :type global_dc_gateway: :class:`huaweicloudsdkdc.v3.CreateGlobalDcGatewayRequestBodyGlobalDcGateway` + :type global_dc_gateway: :class:`huaweicloudsdkdc.v3.CreateGlobalDcGateway` """ - self._dry_run = None self._global_dc_gateway = None self.discriminator = None - if dry_run is not None: - self.dry_run = dry_run - if global_dc_gateway is not None: - self.global_dc_gateway = global_dc_gateway - - @property - def dry_run(self): - """Gets the dry_run of this CreateGlobalDcGatewayRequestBody. - - 空运行 - true 是 - false 否 - - :return: The dry_run of this CreateGlobalDcGatewayRequestBody. - :rtype: bool - """ - return self._dry_run - - @dry_run.setter - def dry_run(self, dry_run): - """Sets the dry_run of this CreateGlobalDcGatewayRequestBody. - - 空运行 - true 是 - false 否 - - :param dry_run: The dry_run of this CreateGlobalDcGatewayRequestBody. - :type dry_run: bool - """ - self._dry_run = dry_run + self.global_dc_gateway = global_dc_gateway @property def global_dc_gateway(self): """Gets the global_dc_gateway of this CreateGlobalDcGatewayRequestBody. :return: The global_dc_gateway of this CreateGlobalDcGatewayRequestBody. - :rtype: :class:`huaweicloudsdkdc.v3.CreateGlobalDcGatewayRequestBodyGlobalDcGateway` + :rtype: :class:`huaweicloudsdkdc.v3.CreateGlobalDcGateway` """ return self._global_dc_gateway @@ -84,7 +54,7 @@ def global_dc_gateway(self, global_dc_gateway): """Sets the global_dc_gateway of this CreateGlobalDcGatewayRequestBody. :param global_dc_gateway: The global_dc_gateway of this CreateGlobalDcGatewayRequestBody. - :type global_dc_gateway: :class:`huaweicloudsdkdc.v3.CreateGlobalDcGatewayRequestBodyGlobalDcGateway` + :type global_dc_gateway: :class:`huaweicloudsdkdc.v3.CreateGlobalDcGateway` """ self._global_dc_gateway = global_dc_gateway diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_global_dc_gateway_response.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_global_dc_gateway_response.py index af8dd5499f..b9e0b6af8e 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_global_dc_gateway_response.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_global_dc_gateway_response.py @@ -18,72 +18,43 @@ class CreateGlobalDcGatewayResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'request_id': 'str', - 'global_dc_gateway': 'ExternalCreateGlobalDcGateway', - 'x_request_id': 'str' + 'global_dc_gateway': 'CreateGlobalDcGatewayEntry', + 'request_id': 'str' } attribute_map = { - 'request_id': 'request_id', 'global_dc_gateway': 'global_dc_gateway', - 'x_request_id': 'X-Request-Id' + 'request_id': 'request_id' } - def __init__(self, request_id=None, global_dc_gateway=None, x_request_id=None): + def __init__(self, global_dc_gateway=None, request_id=None): """CreateGlobalDcGatewayResponse The model defined in huaweicloud sdk - :param request_id: 请求ID - :type request_id: str :param global_dc_gateway: - :type global_dc_gateway: :class:`huaweicloudsdkdc.v3.ExternalCreateGlobalDcGateway` - :param x_request_id: - :type x_request_id: str + :type global_dc_gateway: :class:`huaweicloudsdkdc.v3.CreateGlobalDcGatewayEntry` + :param request_id: 请求ID。 + :type request_id: str """ super(CreateGlobalDcGatewayResponse, self).__init__() - self._request_id = None self._global_dc_gateway = None - self._x_request_id = None + self._request_id = None self.discriminator = None - if request_id is not None: - self.request_id = request_id if global_dc_gateway is not None: self.global_dc_gateway = global_dc_gateway - if x_request_id is not None: - self.x_request_id = x_request_id - - @property - def request_id(self): - """Gets the request_id of this CreateGlobalDcGatewayResponse. - - 请求ID - - :return: The request_id of this CreateGlobalDcGatewayResponse. - :rtype: str - """ - return self._request_id - - @request_id.setter - def request_id(self, request_id): - """Sets the request_id of this CreateGlobalDcGatewayResponse. - - 请求ID - - :param request_id: The request_id of this CreateGlobalDcGatewayResponse. - :type request_id: str - """ - self._request_id = request_id + if request_id is not None: + self.request_id = request_id @property def global_dc_gateway(self): """Gets the global_dc_gateway of this CreateGlobalDcGatewayResponse. :return: The global_dc_gateway of this CreateGlobalDcGatewayResponse. - :rtype: :class:`huaweicloudsdkdc.v3.ExternalCreateGlobalDcGateway` + :rtype: :class:`huaweicloudsdkdc.v3.CreateGlobalDcGatewayEntry` """ return self._global_dc_gateway @@ -92,27 +63,31 @@ def global_dc_gateway(self, global_dc_gateway): """Sets the global_dc_gateway of this CreateGlobalDcGatewayResponse. :param global_dc_gateway: The global_dc_gateway of this CreateGlobalDcGatewayResponse. - :type global_dc_gateway: :class:`huaweicloudsdkdc.v3.ExternalCreateGlobalDcGateway` + :type global_dc_gateway: :class:`huaweicloudsdkdc.v3.CreateGlobalDcGatewayEntry` """ self._global_dc_gateway = global_dc_gateway @property - def x_request_id(self): - """Gets the x_request_id of this CreateGlobalDcGatewayResponse. + def request_id(self): + """Gets the request_id of this CreateGlobalDcGatewayResponse. - :return: The x_request_id of this CreateGlobalDcGatewayResponse. + 请求ID。 + + :return: The request_id of this CreateGlobalDcGatewayResponse. :rtype: str """ - return self._x_request_id + return self._request_id + + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this CreateGlobalDcGatewayResponse. - @x_request_id.setter - def x_request_id(self, x_request_id): - """Sets the x_request_id of this CreateGlobalDcGatewayResponse. + 请求ID。 - :param x_request_id: The x_request_id of this CreateGlobalDcGatewayResponse. - :type x_request_id: str + :param request_id: The request_id of this CreateGlobalDcGatewayResponse. + :type request_id: str """ - self._x_request_id = x_request_id + self._request_id = request_id def to_dict(self): """Returns the model properties as a dict""" diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_peer_link_request.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_peer_link_request.py index ffc88ff1d6..7af63ade93 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_peer_link_request.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_peer_link_request.py @@ -18,7 +18,7 @@ class CreatePeerLinkRequest: openapi_types = { 'global_dc_gateway_id': 'str', - 'body': 'CreatePeerLinkRequestBody' + 'body': 'CreateExternalPeerLinkRequestBody' } attribute_map = { @@ -31,10 +31,10 @@ def __init__(self, global_dc_gateway_id=None, body=None): The model defined in huaweicloud sdk - :param global_dc_gateway_id: 全球接入网关ID + :param global_dc_gateway_id: 全域接入网关ID :type global_dc_gateway_id: str :param body: Body of the CreatePeerLinkRequest - :type body: :class:`huaweicloudsdkdc.v3.CreatePeerLinkRequestBody` + :type body: :class:`huaweicloudsdkdc.v3.CreateExternalPeerLinkRequestBody` """ @@ -51,7 +51,7 @@ def __init__(self, global_dc_gateway_id=None, body=None): def global_dc_gateway_id(self): """Gets the global_dc_gateway_id of this CreatePeerLinkRequest. - 全球接入网关ID + 全域接入网关ID :return: The global_dc_gateway_id of this CreatePeerLinkRequest. :rtype: str @@ -62,7 +62,7 @@ def global_dc_gateway_id(self): def global_dc_gateway_id(self, global_dc_gateway_id): """Sets the global_dc_gateway_id of this CreatePeerLinkRequest. - 全球接入网关ID + 全域接入网关ID :param global_dc_gateway_id: The global_dc_gateway_id of this CreatePeerLinkRequest. :type global_dc_gateway_id: str @@ -74,7 +74,7 @@ def body(self): """Gets the body of this CreatePeerLinkRequest. :return: The body of this CreatePeerLinkRequest. - :rtype: :class:`huaweicloudsdkdc.v3.CreatePeerLinkRequestBody` + :rtype: :class:`huaweicloudsdkdc.v3.CreateExternalPeerLinkRequestBody` """ return self._body @@ -83,7 +83,7 @@ def body(self, body): """Sets the body of this CreatePeerLinkRequest. :param body: The body of this CreatePeerLinkRequest. - :type body: :class:`huaweicloudsdkdc.v3.CreatePeerLinkRequestBody` + :type body: :class:`huaweicloudsdkdc.v3.CreateExternalPeerLinkRequestBody` """ self._body = body diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_peer_link_response.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_peer_link_response.py index 21051f7aae..13e676eb71 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_peer_link_response.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_peer_link_response.py @@ -19,47 +19,42 @@ class CreatePeerLinkResponse(SdkResponse): openapi_types = { 'request_id': 'str', - 'peer_link': 'ExternalCreatePeerLink', - 'x_request_id': 'str' + 'peer_link': 'ExternalCreatePeerLink' } attribute_map = { 'request_id': 'request_id', - 'peer_link': 'peer_link', - 'x_request_id': 'X-Request-Id' + 'peer_link': 'peer_link' } - def __init__(self, request_id=None, peer_link=None, x_request_id=None): + def __init__(self, request_id=None, peer_link=None): """CreatePeerLinkResponse The model defined in huaweicloud sdk - :param request_id: + :param request_id: 请求ID :type request_id: str :param peer_link: :type peer_link: :class:`huaweicloudsdkdc.v3.ExternalCreatePeerLink` - :param x_request_id: - :type x_request_id: str """ super(CreatePeerLinkResponse, self).__init__() self._request_id = None self._peer_link = None - self._x_request_id = None self.discriminator = None if request_id is not None: self.request_id = request_id if peer_link is not None: self.peer_link = peer_link - if x_request_id is not None: - self.x_request_id = x_request_id @property def request_id(self): """Gets the request_id of this CreatePeerLinkResponse. + 请求ID + :return: The request_id of this CreatePeerLinkResponse. :rtype: str """ @@ -69,6 +64,8 @@ def request_id(self): def request_id(self, request_id): """Sets the request_id of this CreatePeerLinkResponse. + 请求ID + :param request_id: The request_id of this CreatePeerLinkResponse. :type request_id: str """ @@ -92,24 +89,6 @@ def peer_link(self, peer_link): """ self._peer_link = peer_link - @property - def x_request_id(self): - """Gets the x_request_id of this CreatePeerLinkResponse. - - :return: The x_request_id of this CreatePeerLinkResponse. - :rtype: str - """ - return self._x_request_id - - @x_request_id.setter - def x_request_id(self, x_request_id): - """Sets the x_request_id of this CreatePeerLinkResponse. - - :param x_request_id: The x_request_id of this CreatePeerLinkResponse. - :type x_request_id: str - """ - self._x_request_id = x_request_id - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_vif_peer.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_vif_peer.py index e74ff201dc..27f14fef52 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_vif_peer.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_vif_peer.py @@ -83,12 +83,16 @@ def __init__(self, name=None, description=None, address_family=None, local_gatew self._vif_id = None self.discriminator = None - self.name = name + if name is not None: + self.name = name if description is not None: self.description = description - self.address_family = address_family - self.local_gateway_ip = local_gateway_ip - self.remote_gateway_ip = remote_gateway_ip + if address_family is not None: + self.address_family = address_family + if local_gateway_ip is not None: + self.local_gateway_ip = local_gateway_ip + if remote_gateway_ip is not None: + self.remote_gateway_ip = remote_gateway_ip if route_mode is not None: self.route_mode = route_mode if bgp_asn is not None: @@ -97,7 +101,8 @@ def __init__(self, name=None, description=None, address_family=None, local_gatew self.bgp_md5 = bgp_md5 if remote_ep_group is not None: self.remote_ep_group = remote_ep_group - self.vif_id = vif_id + if vif_id is not None: + self.vif_id = vif_id @property def name(self): diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_vif_peer_response.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_vif_peer_response.py index 7cae01b903..c51d029742 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_vif_peer_response.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_vif_peer_response.py @@ -18,59 +18,30 @@ class CreateVifPeerResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'request_id': 'str', 'vif_peer': 'VifPeer' } attribute_map = { - 'request_id': 'request_id', 'vif_peer': 'vif_peer' } - def __init__(self, request_id=None, vif_peer=None): + def __init__(self, vif_peer=None): """CreateVifPeerResponse The model defined in huaweicloud sdk - :param request_id: 请求ID - :type request_id: str :param vif_peer: :type vif_peer: :class:`huaweicloudsdkdc.v3.VifPeer` """ super(CreateVifPeerResponse, self).__init__() - self._request_id = None self._vif_peer = None self.discriminator = None - if request_id is not None: - self.request_id = request_id if vif_peer is not None: self.vif_peer = vif_peer - @property - def request_id(self): - """Gets the request_id of this CreateVifPeerResponse. - - 请求ID - - :return: The request_id of this CreateVifPeerResponse. - :rtype: str - """ - return self._request_id - - @request_id.setter - def request_id(self, request_id): - """Sets the request_id of this CreateVifPeerResponse. - - 请求ID - - :param request_id: The request_id of this CreateVifPeerResponse. - :type request_id: str - """ - self._request_id = request_id - @property def vif_peer(self): """Gets the vif_peer of this CreateVifPeerResponse. diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_virtual_gateway.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_virtual_gateway.py index f7e92fbee7..c80c8d8af4 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_virtual_gateway.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_virtual_gateway.py @@ -18,6 +18,7 @@ class CreateVirtualGateway: openapi_types = { 'vpc_id': 'str', + 'enterprise_router_id': 'str', 'name': 'str', 'description': 'str', 'local_ep_group': 'list[str]', @@ -29,6 +30,7 @@ class CreateVirtualGateway: attribute_map = { 'vpc_id': 'vpc_id', + 'enterprise_router_id': 'enterprise_router_id', 'name': 'name', 'description': 'description', 'local_ep_group': 'local_ep_group', @@ -38,22 +40,24 @@ class CreateVirtualGateway: 'tags': 'tags' } - def __init__(self, vpc_id=None, name=None, description=None, local_ep_group=None, local_ep_group_ipv6=None, bgp_asn=None, enterprise_project_id=None, tags=None): + def __init__(self, vpc_id=None, enterprise_router_id=None, name=None, description=None, local_ep_group=None, local_ep_group_ipv6=None, bgp_asn=None, enterprise_project_id=None, tags=None): """CreateVirtualGateway The model defined in huaweicloud sdk - :param vpc_id: 虚拟网关接入的VPC的ID + :param vpc_id: 虚拟网关接入的VPC的ID[,当选择创建接入VPC的虚拟网关时必选。](tag:dt) :type vpc_id: str + :param enterprise_router_id: 虚拟网关接入的ER的ID,当选择创建接入ER的虚拟网关时必选。 + :type enterprise_router_id: str :param name: 虚拟网关名字 :type name: str :param description: 虚拟网关的描述信息 :type description: str - :param local_ep_group: 虚拟网关到访问云上服务IPv4子网列表,通常是vpc的cidrs + :param local_ep_group: 虚拟网关到访问云上服务IPv4子网列表,通常是vpc的cidrs[,当选择创建接入VPC的虚拟网关时必选。](tag:dt) :type local_ep_group: list[str] :param local_ep_group_ipv6: 预留字段用于虚拟网关到访问云上服务IPv6子网列表,通常是vpc的cidrs :type local_ep_group_ipv6: list[str] - :param bgp_asn: 虚拟网关本地的BGP自冶域号(asn) + :param bgp_asn: 虚拟网关本地的BGP自治域号(asn) :type bgp_asn: int :param enterprise_project_id: 实例所属企业项目ID :type enterprise_project_id: str @@ -64,6 +68,7 @@ def __init__(self, vpc_id=None, name=None, description=None, local_ep_group=None self._vpc_id = None + self._enterprise_router_id = None self._name = None self._description = None self._local_ep_group = None @@ -74,6 +79,8 @@ def __init__(self, vpc_id=None, name=None, description=None, local_ep_group=None self.discriminator = None self.vpc_id = vpc_id + if enterprise_router_id is not None: + self.enterprise_router_id = enterprise_router_id if name is not None: self.name = name if description is not None: @@ -92,7 +99,7 @@ def __init__(self, vpc_id=None, name=None, description=None, local_ep_group=None def vpc_id(self): """Gets the vpc_id of this CreateVirtualGateway. - 虚拟网关接入的VPC的ID + 虚拟网关接入的VPC的ID[,当选择创建接入VPC的虚拟网关时必选。](tag:dt) :return: The vpc_id of this CreateVirtualGateway. :rtype: str @@ -103,13 +110,35 @@ def vpc_id(self): def vpc_id(self, vpc_id): """Sets the vpc_id of this CreateVirtualGateway. - 虚拟网关接入的VPC的ID + 虚拟网关接入的VPC的ID[,当选择创建接入VPC的虚拟网关时必选。](tag:dt) :param vpc_id: The vpc_id of this CreateVirtualGateway. :type vpc_id: str """ self._vpc_id = vpc_id + @property + def enterprise_router_id(self): + """Gets the enterprise_router_id of this CreateVirtualGateway. + + 虚拟网关接入的ER的ID,当选择创建接入ER的虚拟网关时必选。 + + :return: The enterprise_router_id of this CreateVirtualGateway. + :rtype: str + """ + return self._enterprise_router_id + + @enterprise_router_id.setter + def enterprise_router_id(self, enterprise_router_id): + """Sets the enterprise_router_id of this CreateVirtualGateway. + + 虚拟网关接入的ER的ID,当选择创建接入ER的虚拟网关时必选。 + + :param enterprise_router_id: The enterprise_router_id of this CreateVirtualGateway. + :type enterprise_router_id: str + """ + self._enterprise_router_id = enterprise_router_id + @property def name(self): """Gets the name of this CreateVirtualGateway. @@ -158,7 +187,7 @@ def description(self, description): def local_ep_group(self): """Gets the local_ep_group of this CreateVirtualGateway. - 虚拟网关到访问云上服务IPv4子网列表,通常是vpc的cidrs + 虚拟网关到访问云上服务IPv4子网列表,通常是vpc的cidrs[,当选择创建接入VPC的虚拟网关时必选。](tag:dt) :return: The local_ep_group of this CreateVirtualGateway. :rtype: list[str] @@ -169,7 +198,7 @@ def local_ep_group(self): def local_ep_group(self, local_ep_group): """Sets the local_ep_group of this CreateVirtualGateway. - 虚拟网关到访问云上服务IPv4子网列表,通常是vpc的cidrs + 虚拟网关到访问云上服务IPv4子网列表,通常是vpc的cidrs[,当选择创建接入VPC的虚拟网关时必选。](tag:dt) :param local_ep_group: The local_ep_group of this CreateVirtualGateway. :type local_ep_group: list[str] @@ -202,7 +231,7 @@ def local_ep_group_ipv6(self, local_ep_group_ipv6): def bgp_asn(self): """Gets the bgp_asn of this CreateVirtualGateway. - 虚拟网关本地的BGP自冶域号(asn) + 虚拟网关本地的BGP自治域号(asn) :return: The bgp_asn of this CreateVirtualGateway. :rtype: int @@ -213,7 +242,7 @@ def bgp_asn(self): def bgp_asn(self, bgp_asn): """Sets the bgp_asn of this CreateVirtualGateway. - 虚拟网关本地的BGP自冶域号(asn) + 虚拟网关本地的BGP自治域号(asn) :param bgp_asn: The bgp_asn of this CreateVirtualGateway. :type bgp_asn: int diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_virtual_interface.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_virtual_interface.py index aa2e6b7e3e..a5a0768404 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_virtual_interface.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_virtual_interface.py @@ -79,13 +79,13 @@ def __init__(self, name=None, description=None, direct_connect_id=None, type=Non :type name: str :param description: 虚拟接口描述信息 :type description: str - :param direct_connect_id: 虚拟接口关联的物理专线ID + :param direct_connect_id: 虚拟接口关联的物理专线ID。在创建虚拟接口时,需要关联direct_connect_id或lag_id,当LAG功能在当前局点不支持时,该参数为必选。 :type direct_connect_id: str :param type: 虚拟接口的类型,private :type type: str :param service_type: 接入网关类型:VGW/GDGW/LGW :type service_type: str - :param vlan: 对接客户侧vlan + :param vlan: 对接客户侧vlan。当关联物理连接选择托管专线时,vlan需要和托管专线保持一致。 :type vlan: int :param bandwidth: 虚拟接口接入带宽 :type bandwidth: int @@ -99,7 +99,7 @@ def __init__(self, name=None, description=None, direct_connect_id=None, type=Non :type local_gateway_v6_ip: str :param remote_gateway_v6_ip: 客户侧网关IPv6接口地址,如果address_family是IPv6,是必选参数 :type remote_gateway_v6_ip: str - :param vgw_id: 虚拟风关连接的虚拟网关的ID + :param vgw_id: 虚拟接口连接的虚拟网关的ID :type vgw_id: str :param route_mode: 路由模式:static/bgp :type route_mode: str @@ -111,9 +111,9 @@ def __init__(self, name=None, description=None, direct_connect_id=None, type=Non :type remote_ep_group: list[str] :param service_ep_group: 访问公网服务的子网列表 :type service_ep_group: list[str] - :param enable_bfd: 是否使能bfd功能:true或false + :param enable_bfd: 是否使能bfd功能:true或false。[(预留字段暂不支持)](tag:dt) :type enable_bfd: bool - :param enable_nqa: 是否使能nqa功能:true或false + :param enable_nqa: 是否使能nqa功能:true或false。[(预留字段暂不支持)](tag:dt) :type enable_nqa: bool :param lag_id: 虚拟接口关联的链路聚合组ID :type lag_id: str @@ -244,7 +244,7 @@ def description(self, description): def direct_connect_id(self): """Gets the direct_connect_id of this CreateVirtualInterface. - 虚拟接口关联的物理专线ID + 虚拟接口关联的物理专线ID。在创建虚拟接口时,需要关联direct_connect_id或lag_id,当LAG功能在当前局点不支持时,该参数为必选。 :return: The direct_connect_id of this CreateVirtualInterface. :rtype: str @@ -255,7 +255,7 @@ def direct_connect_id(self): def direct_connect_id(self, direct_connect_id): """Sets the direct_connect_id of this CreateVirtualInterface. - 虚拟接口关联的物理专线ID + 虚拟接口关联的物理专线ID。在创建虚拟接口时,需要关联direct_connect_id或lag_id,当LAG功能在当前局点不支持时,该参数为必选。 :param direct_connect_id: The direct_connect_id of this CreateVirtualInterface. :type direct_connect_id: str @@ -310,7 +310,7 @@ def service_type(self, service_type): def vlan(self): """Gets the vlan of this CreateVirtualInterface. - 对接客户侧vlan + 对接客户侧vlan。当关联物理连接选择托管专线时,vlan需要和托管专线保持一致。 :return: The vlan of this CreateVirtualInterface. :rtype: int @@ -321,7 +321,7 @@ def vlan(self): def vlan(self, vlan): """Sets the vlan of this CreateVirtualInterface. - 对接客户侧vlan + 对接客户侧vlan。当关联物理连接选择托管专线时,vlan需要和托管专线保持一致。 :param vlan: The vlan of this CreateVirtualInterface. :type vlan: int @@ -464,7 +464,7 @@ def remote_gateway_v6_ip(self, remote_gateway_v6_ip): def vgw_id(self): """Gets the vgw_id of this CreateVirtualInterface. - 虚拟风关连接的虚拟网关的ID + 虚拟接口连接的虚拟网关的ID :return: The vgw_id of this CreateVirtualInterface. :rtype: str @@ -475,7 +475,7 @@ def vgw_id(self): def vgw_id(self, vgw_id): """Sets the vgw_id of this CreateVirtualInterface. - 虚拟风关连接的虚拟网关的ID + 虚拟接口连接的虚拟网关的ID :param vgw_id: The vgw_id of this CreateVirtualInterface. :type vgw_id: str @@ -596,7 +596,7 @@ def service_ep_group(self, service_ep_group): def enable_bfd(self): """Gets the enable_bfd of this CreateVirtualInterface. - 是否使能bfd功能:true或false + 是否使能bfd功能:true或false。[(预留字段暂不支持)](tag:dt) :return: The enable_bfd of this CreateVirtualInterface. :rtype: bool @@ -607,7 +607,7 @@ def enable_bfd(self): def enable_bfd(self, enable_bfd): """Sets the enable_bfd of this CreateVirtualInterface. - 是否使能bfd功能:true或false + 是否使能bfd功能:true或false。[(预留字段暂不支持)](tag:dt) :param enable_bfd: The enable_bfd of this CreateVirtualInterface. :type enable_bfd: bool @@ -618,7 +618,7 @@ def enable_bfd(self, enable_bfd): def enable_nqa(self): """Gets the enable_nqa of this CreateVirtualInterface. - 是否使能nqa功能:true或false + 是否使能nqa功能:true或false。[(预留字段暂不支持)](tag:dt) :return: The enable_nqa of this CreateVirtualInterface. :rtype: bool @@ -629,7 +629,7 @@ def enable_nqa(self): def enable_nqa(self, enable_nqa): """Sets the enable_nqa of this CreateVirtualInterface. - 是否使能nqa功能:true或false + 是否使能nqa功能:true或false。[(预留字段暂不支持)](tag:dt) :param enable_nqa: The enable_nqa of this CreateVirtualInterface. :type enable_nqa: bool diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_gdgw_routetable_request_body_gdgw_routetable_del_routes.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/delete_gdgw_route_action.py similarity index 65% rename from huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_gdgw_routetable_request_body_gdgw_routetable_del_routes.py rename to huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/delete_gdgw_route_action.py index 413c9a312a..8b44066f47 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_gdgw_routetable_request_body_gdgw_routetable_del_routes.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/delete_gdgw_route_action.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes: +class DeleteGdgwRouteAction: """ Attributes: @@ -19,7 +19,7 @@ class UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes: openapi_types = { 'destination': 'str', 'nexthop': 'str', - 'type': 'str' + 'type': 'RouteTypeOfGdgw' } attribute_map = { @@ -29,16 +29,16 @@ class UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes: } def __init__(self, destination=None, nexthop=None, type=None): - """UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes + """DeleteGdgwRouteAction The model defined in huaweicloud sdk - :param destination: 目的地址 + :param destination: 路由子网 :type destination: str - :param nexthop: 下一跳 + :param nexthop: 下一跳id :type nexthop: str - :param type: 类型 - :type type: str + :param type: + :type type: :class:`huaweicloudsdkdc.v3.RouteTypeOfGdgw` """ @@ -50,71 +50,68 @@ def __init__(self, destination=None, nexthop=None, type=None): self.destination = destination self.nexthop = nexthop - self.type = type + if type is not None: + self.type = type @property def destination(self): - """Gets the destination of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes. + """Gets the destination of this DeleteGdgwRouteAction. - 目的地址 + 路由子网 - :return: The destination of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes. + :return: The destination of this DeleteGdgwRouteAction. :rtype: str """ return self._destination @destination.setter def destination(self, destination): - """Sets the destination of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes. + """Sets the destination of this DeleteGdgwRouteAction. - 目的地址 + 路由子网 - :param destination: The destination of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes. + :param destination: The destination of this DeleteGdgwRouteAction. :type destination: str """ self._destination = destination @property def nexthop(self): - """Gets the nexthop of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes. + """Gets the nexthop of this DeleteGdgwRouteAction. - 下一跳 + 下一跳id - :return: The nexthop of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes. + :return: The nexthop of this DeleteGdgwRouteAction. :rtype: str """ return self._nexthop @nexthop.setter def nexthop(self, nexthop): - """Sets the nexthop of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes. + """Sets the nexthop of this DeleteGdgwRouteAction. - 下一跳 + 下一跳id - :param nexthop: The nexthop of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes. + :param nexthop: The nexthop of this DeleteGdgwRouteAction. :type nexthop: str """ self._nexthop = nexthop @property def type(self): - """Gets the type of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes. + """Gets the type of this DeleteGdgwRouteAction. - 类型 - - :return: The type of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes. - :rtype: str + :return: The type of this DeleteGdgwRouteAction. + :rtype: :class:`huaweicloudsdkdc.v3.RouteTypeOfGdgw` """ return self._type @type.setter def type(self, type): - """Sets the type of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes. - - 类型 + """Sets the type of this DeleteGdgwRouteAction. - :param type: The type of this UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes. - :type type: str + :param type: The type of this DeleteGdgwRouteAction. + :type type: :class:`huaweicloudsdkdc.v3.RouteTypeOfGdgw` """ self._type = type @@ -160,7 +157,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes): + if not isinstance(other, DeleteGdgwRouteAction): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/delete_global_dc_gateway_request.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/delete_global_dc_gateway_request.py index e24fc835cc..78b2528374 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/delete_global_dc_gateway_request.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/delete_global_dc_gateway_request.py @@ -29,7 +29,7 @@ def __init__(self, global_dc_gateway_id=None): The model defined in huaweicloud sdk - :param global_dc_gateway_id: 全球接入网关ID + :param global_dc_gateway_id: 全域接入网关ID :type global_dc_gateway_id: str """ @@ -44,7 +44,7 @@ def __init__(self, global_dc_gateway_id=None): def global_dc_gateway_id(self): """Gets the global_dc_gateway_id of this DeleteGlobalDcGatewayRequest. - 全球接入网关ID + 全域接入网关ID :return: The global_dc_gateway_id of this DeleteGlobalDcGatewayRequest. :rtype: str @@ -55,7 +55,7 @@ def global_dc_gateway_id(self): def global_dc_gateway_id(self, global_dc_gateway_id): """Sets the global_dc_gateway_id of this DeleteGlobalDcGatewayRequest. - 全球接入网关ID + 全域接入网关ID :param global_dc_gateway_id: The global_dc_gateway_id of this DeleteGlobalDcGatewayRequest. :type global_dc_gateway_id: str diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/delete_global_dc_gateway_response.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/delete_global_dc_gateway_response.py index 013b28004d..dbf90a4e0b 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/delete_global_dc_gateway_response.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/delete_global_dc_gateway_response.py @@ -18,48 +18,21 @@ class DeleteGlobalDcGatewayResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'x_request_id': 'str' } attribute_map = { - 'x_request_id': 'X-Request-Id' } - def __init__(self, x_request_id=None): + def __init__(self): """DeleteGlobalDcGatewayResponse The model defined in huaweicloud sdk - :param x_request_id: - :type x_request_id: str """ super(DeleteGlobalDcGatewayResponse, self).__init__() - - self._x_request_id = None self.discriminator = None - if x_request_id is not None: - self.x_request_id = x_request_id - - @property - def x_request_id(self): - """Gets the x_request_id of this DeleteGlobalDcGatewayResponse. - - :return: The x_request_id of this DeleteGlobalDcGatewayResponse. - :rtype: str - """ - return self._x_request_id - - @x_request_id.setter - def x_request_id(self, x_request_id): - """Sets the x_request_id of this DeleteGlobalDcGatewayResponse. - - :param x_request_id: The x_request_id of this DeleteGlobalDcGatewayResponse. - :type x_request_id: str - """ - self._x_request_id = x_request_id - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/delete_peer_link_request.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/delete_peer_link_request.py index 495761f09f..4f3740f23f 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/delete_peer_link_request.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/delete_peer_link_request.py @@ -31,9 +31,9 @@ def __init__(self, global_dc_gateway_id=None, peer_link_id=None): The model defined in huaweicloud sdk - :param global_dc_gateway_id: 全球接入网关ID + :param global_dc_gateway_id: 全域接入网关ID :type global_dc_gateway_id: str - :param peer_link_id: 全球接入网关对等体 + :param peer_link_id: 全域接入网关对等体 :type peer_link_id: str """ @@ -50,7 +50,7 @@ def __init__(self, global_dc_gateway_id=None, peer_link_id=None): def global_dc_gateway_id(self): """Gets the global_dc_gateway_id of this DeletePeerLinkRequest. - 全球接入网关ID + 全域接入网关ID :return: The global_dc_gateway_id of this DeletePeerLinkRequest. :rtype: str @@ -61,7 +61,7 @@ def global_dc_gateway_id(self): def global_dc_gateway_id(self, global_dc_gateway_id): """Sets the global_dc_gateway_id of this DeletePeerLinkRequest. - 全球接入网关ID + 全域接入网关ID :param global_dc_gateway_id: The global_dc_gateway_id of this DeletePeerLinkRequest. :type global_dc_gateway_id: str @@ -72,7 +72,7 @@ def global_dc_gateway_id(self, global_dc_gateway_id): def peer_link_id(self): """Gets the peer_link_id of this DeletePeerLinkRequest. - 全球接入网关对等体 + 全域接入网关对等体 :return: The peer_link_id of this DeletePeerLinkRequest. :rtype: str @@ -83,7 +83,7 @@ def peer_link_id(self): def peer_link_id(self, peer_link_id): """Sets the peer_link_id of this DeletePeerLinkRequest. - 全球接入网关对等体 + 全域接入网关对等体 :param peer_link_id: The peer_link_id of this DeletePeerLinkRequest. :type peer_link_id: str diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/delete_peer_link_response.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/delete_peer_link_response.py index 192aa57d8c..780f30534b 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/delete_peer_link_response.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/delete_peer_link_response.py @@ -18,48 +18,21 @@ class DeletePeerLinkResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'x_request_id': 'str' } attribute_map = { - 'x_request_id': 'X-Request-Id' } - def __init__(self, x_request_id=None): + def __init__(self): """DeletePeerLinkResponse The model defined in huaweicloud sdk - :param x_request_id: - :type x_request_id: str """ super(DeletePeerLinkResponse, self).__init__() - - self._x_request_id = None self.discriminator = None - if x_request_id is not None: - self.x_request_id = x_request_id - - @property - def x_request_id(self): - """Gets the x_request_id of this DeletePeerLinkResponse. - - :return: The x_request_id of this DeletePeerLinkResponse. - :rtype: str - """ - return self._x_request_id - - @x_request_id.setter - def x_request_id(self, x_request_id): - """Sets the x_request_id of this DeletePeerLinkResponse. - - :param x_request_id: The x_request_id of this DeletePeerLinkResponse. - :type x_request_id: str - """ - self._x_request_id = x_request_id - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/direct_connect.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/direct_connect.py index 114c038552..3cd536e326 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/direct_connect.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/direct_connect.py @@ -151,11 +151,11 @@ def __init__(self, id=None, tenant_id=None, name=None, description=None, port_ty :type admin_state_up: bool :param vlan: 为托管hosted物理专线分配的vlan。 :type vlan: int - :param status: 资源状态,合法值是: ACTIVE:专线已经开通完成且线路处于正常状态 DOWN:专线对应的端口处于down的状态,可能存在线路故障等异常。 BUILD:申请专线正在施工建设中 ERROR:专线配置异常,请联系客服解决相关问题。 PENDING_DELETE:正在删除 DELETED:已删除 APPLY:申请开通 DENY:客户需求无法满足,拒绝工勘。 PENDING_PAY:待支付 PAID:已支付 PENDING_SURVEY:待工勘 + :param status: 资源状态,合法值是: ACTIVE:专线已经开通完成且线路处于正常状态 DOWN:专线对应的端口处于down的状态,可能存在线路故障等异常。 BUILD:申请专线正在施工建设中 ERROR:专线配置异常,请联系客服解决相关问题。 PENDING_DELETE:正在删除 DELETED:已删除 APPLY:申请开通 DENY:客户需求无法满足,拒绝工勘。 PENDING_PAY:待支付 PAID:已支付 PENDING_SURVEY:待工勘 LEASED_LINE_DELIVERY:运营商施工 :type status: str - :param apply_time: 物理专线的申请时间 + :param apply_time: 物理专线的申请时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ :type apply_time: datetime - :param create_time: 物理专线的创建时间 + :param create_time: 物理专线的创建时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ :type create_time: datetime :param provider_status: 物理专线的运营商操作状态,合法值是:ACTIVE, DOWN :type provider_status: str @@ -175,11 +175,11 @@ def __init__(self, id=None, tenant_id=None, name=None, description=None, port_ty :type period_num: int :param vgw_type: 专线要求的网关类型 :type vgw_type: str - :param lag_id: 物理专线归属的链路聚合组(lag)的ID + :param lag_id: 物理专线归属的链路聚合组(lag)的ID :type lag_id: str - :param signed_agreement_status: 专线协议的签暑状态 + :param signed_agreement_status: 专线协议的签署状态 :type signed_agreement_status: str - :param signed_agreement_time: 专线协议的签暑时间 + :param signed_agreement_time: 专线协议的签署时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ :type signed_agreement_time: datetime :param enterprise_project_id: 实例所属企业项目ID :type enterprise_project_id: str @@ -189,7 +189,7 @@ def __init__(self, id=None, tenant_id=None, name=None, description=None, port_ty :type locales: :class:`huaweicloudsdkdc.v3.LocalesBody` :param support_feature: 用户专线可支持的特性列表[(功能暂不支持)](tag:dt) :type support_feature: list[str] - :param ies_id: 归属的IES站点的ID[(功能暂不支持)](tag:dt) + :param ies_id: 归属的CloudPond站点的ID[(功能暂不支持)](tag:dt) :type ies_id: str :param reason: 如果专线资源的状态是Error的情况下,该参数会显示相关错误信息。[(功能暂不支持)](tag:dt) :type reason: str @@ -697,7 +697,7 @@ def vlan(self, vlan): def status(self): """Gets the status of this DirectConnect. - 资源状态,合法值是: ACTIVE:专线已经开通完成且线路处于正常状态 DOWN:专线对应的端口处于down的状态,可能存在线路故障等异常。 BUILD:申请专线正在施工建设中 ERROR:专线配置异常,请联系客服解决相关问题。 PENDING_DELETE:正在删除 DELETED:已删除 APPLY:申请开通 DENY:客户需求无法满足,拒绝工勘。 PENDING_PAY:待支付 PAID:已支付 PENDING_SURVEY:待工勘 + 资源状态,合法值是: ACTIVE:专线已经开通完成且线路处于正常状态 DOWN:专线对应的端口处于down的状态,可能存在线路故障等异常。 BUILD:申请专线正在施工建设中 ERROR:专线配置异常,请联系客服解决相关问题。 PENDING_DELETE:正在删除 DELETED:已删除 APPLY:申请开通 DENY:客户需求无法满足,拒绝工勘。 PENDING_PAY:待支付 PAID:已支付 PENDING_SURVEY:待工勘 LEASED_LINE_DELIVERY:运营商施工 :return: The status of this DirectConnect. :rtype: str @@ -708,7 +708,7 @@ def status(self): def status(self, status): """Sets the status of this DirectConnect. - 资源状态,合法值是: ACTIVE:专线已经开通完成且线路处于正常状态 DOWN:专线对应的端口处于down的状态,可能存在线路故障等异常。 BUILD:申请专线正在施工建设中 ERROR:专线配置异常,请联系客服解决相关问题。 PENDING_DELETE:正在删除 DELETED:已删除 APPLY:申请开通 DENY:客户需求无法满足,拒绝工勘。 PENDING_PAY:待支付 PAID:已支付 PENDING_SURVEY:待工勘 + 资源状态,合法值是: ACTIVE:专线已经开通完成且线路处于正常状态 DOWN:专线对应的端口处于down的状态,可能存在线路故障等异常。 BUILD:申请专线正在施工建设中 ERROR:专线配置异常,请联系客服解决相关问题。 PENDING_DELETE:正在删除 DELETED:已删除 APPLY:申请开通 DENY:客户需求无法满足,拒绝工勘。 PENDING_PAY:待支付 PAID:已支付 PENDING_SURVEY:待工勘 LEASED_LINE_DELIVERY:运营商施工 :param status: The status of this DirectConnect. :type status: str @@ -719,7 +719,7 @@ def status(self, status): def apply_time(self): """Gets the apply_time of this DirectConnect. - 物理专线的申请时间 + 物理专线的申请时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ :return: The apply_time of this DirectConnect. :rtype: datetime @@ -730,7 +730,7 @@ def apply_time(self): def apply_time(self, apply_time): """Sets the apply_time of this DirectConnect. - 物理专线的申请时间 + 物理专线的申请时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ :param apply_time: The apply_time of this DirectConnect. :type apply_time: datetime @@ -741,7 +741,7 @@ def apply_time(self, apply_time): def create_time(self): """Gets the create_time of this DirectConnect. - 物理专线的创建时间 + 物理专线的创建时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ :return: The create_time of this DirectConnect. :rtype: datetime @@ -752,7 +752,7 @@ def create_time(self): def create_time(self, create_time): """Sets the create_time of this DirectConnect. - 物理专线的创建时间 + 物理专线的创建时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ :param create_time: The create_time of this DirectConnect. :type create_time: datetime @@ -961,7 +961,7 @@ def vgw_type(self, vgw_type): def lag_id(self): """Gets the lag_id of this DirectConnect. - 物理专线归属的链路聚合组(lag)的ID + 物理专线归属的链路聚合组(lag)的ID :return: The lag_id of this DirectConnect. :rtype: str @@ -972,7 +972,7 @@ def lag_id(self): def lag_id(self, lag_id): """Sets the lag_id of this DirectConnect. - 物理专线归属的链路聚合组(lag)的ID + 物理专线归属的链路聚合组(lag)的ID :param lag_id: The lag_id of this DirectConnect. :type lag_id: str @@ -983,7 +983,7 @@ def lag_id(self, lag_id): def signed_agreement_status(self): """Gets the signed_agreement_status of this DirectConnect. - 专线协议的签暑状态 + 专线协议的签署状态 :return: The signed_agreement_status of this DirectConnect. :rtype: str @@ -994,7 +994,7 @@ def signed_agreement_status(self): def signed_agreement_status(self, signed_agreement_status): """Sets the signed_agreement_status of this DirectConnect. - 专线协议的签暑状态 + 专线协议的签署状态 :param signed_agreement_status: The signed_agreement_status of this DirectConnect. :type signed_agreement_status: str @@ -1005,7 +1005,7 @@ def signed_agreement_status(self, signed_agreement_status): def signed_agreement_time(self): """Gets the signed_agreement_time of this DirectConnect. - 专线协议的签暑时间 + 专线协议的签署时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ :return: The signed_agreement_time of this DirectConnect. :rtype: datetime @@ -1016,7 +1016,7 @@ def signed_agreement_time(self): def signed_agreement_time(self, signed_agreement_time): """Sets the signed_agreement_time of this DirectConnect. - 专线协议的签暑时间 + 专线协议的签署时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ :param signed_agreement_time: The signed_agreement_time of this DirectConnect. :type signed_agreement_time: datetime @@ -1111,7 +1111,7 @@ def support_feature(self, support_feature): def ies_id(self): """Gets the ies_id of this DirectConnect. - 归属的IES站点的ID[(功能暂不支持)](tag:dt) + 归属的CloudPond站点的ID[(功能暂不支持)](tag:dt) :return: The ies_id of this DirectConnect. :rtype: str @@ -1122,7 +1122,7 @@ def ies_id(self): def ies_id(self, ies_id): """Sets the ies_id of this DirectConnect. - 归属的IES站点的ID[(功能暂不支持)](tag:dt) + 归属的CloudPond站点的ID[(功能暂不支持)](tag:dt) :param ies_id: The ies_id of this DirectConnect. :type ies_id: str diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/direct_connect_location_entry.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/direct_connect_location_entry.py new file mode 100644 index 0000000000..d91f976805 --- /dev/null +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/direct_connect_location_entry.py @@ -0,0 +1,484 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DirectConnectLocationEntry: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'name': 'str', + 'region_id': 'str', + 'site_code': 'str', + 'address': 'AddressBody', + 'locales': 'LocalesBody', + 'provider_list': 'list[ProviderResponseBody]', + 'public_border_group': 'str', + 'latitude': 'str', + 'longitude': 'str', + 'description': 'str', + 'created_time': 'datetime', + 'updated_time': 'datetime', + 'available_port_speeds': 'list[str]' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'region_id': 'region_id', + 'site_code': 'site_code', + 'address': 'address', + 'locales': 'locales', + 'provider_list': 'provider_list', + 'public_border_group': 'public_border_group', + 'latitude': 'latitude', + 'longitude': 'longitude', + 'description': 'description', + 'created_time': 'created_time', + 'updated_time': 'updated_time', + 'available_port_speeds': 'available_port_speeds' + } + + def __init__(self, id=None, name=None, region_id=None, site_code=None, address=None, locales=None, provider_list=None, public_border_group=None, latitude=None, longitude=None, description=None, created_time=None, updated_time=None, available_port_speeds=None): + """DirectConnectLocationEntry + + The model defined in huaweicloud sdk + + :param id: 专线接入站点资源的ID + :type id: str + :param name: 专线接入点的名称 + :type name: str + :param region_id: Location所属Region + :type region_id: str + :param site_code: 专线接入点对应的站点编码 + :type site_code: str + :param address: + :type address: :class:`huaweicloudsdkdc.v3.AddressBody` + :param locales: + :type locales: :class:`huaweicloudsdkdc.v3.LocalesBody` + :param provider_list: 可支持的运营商列表。 + :type provider_list: list[:class:`huaweicloudsdkdc.v3.ProviderResponseBody`] + :param public_border_group: 专线接入点所属public_border_group + :type public_border_group: str + :param latitude: 地理位置纬度 + :type latitude: str + :param longitude: 地理位置经度 + :type longitude: str + :param description: 描述信息。 + :type description: str + :param created_time: 创建时间。 + :type created_time: datetime + :param updated_time: 更新时间。 + :type updated_time: datetime + :param available_port_speeds: 接入点内设备可选的端口类型 + :type available_port_speeds: list[str] + """ + + + + self._id = None + self._name = None + self._region_id = None + self._site_code = None + self._address = None + self._locales = None + self._provider_list = None + self._public_border_group = None + self._latitude = None + self._longitude = None + self._description = None + self._created_time = None + self._updated_time = None + self._available_port_speeds = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if region_id is not None: + self.region_id = region_id + if site_code is not None: + self.site_code = site_code + if address is not None: + self.address = address + if locales is not None: + self.locales = locales + if provider_list is not None: + self.provider_list = provider_list + if public_border_group is not None: + self.public_border_group = public_border_group + if latitude is not None: + self.latitude = latitude + if longitude is not None: + self.longitude = longitude + if description is not None: + self.description = description + if created_time is not None: + self.created_time = created_time + if updated_time is not None: + self.updated_time = updated_time + if available_port_speeds is not None: + self.available_port_speeds = available_port_speeds + + @property + def id(self): + """Gets the id of this DirectConnectLocationEntry. + + 专线接入站点资源的ID + + :return: The id of this DirectConnectLocationEntry. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this DirectConnectLocationEntry. + + 专线接入站点资源的ID + + :param id: The id of this DirectConnectLocationEntry. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this DirectConnectLocationEntry. + + 专线接入点的名称 + + :return: The name of this DirectConnectLocationEntry. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this DirectConnectLocationEntry. + + 专线接入点的名称 + + :param name: The name of this DirectConnectLocationEntry. + :type name: str + """ + self._name = name + + @property + def region_id(self): + """Gets the region_id of this DirectConnectLocationEntry. + + Location所属Region + + :return: The region_id of this DirectConnectLocationEntry. + :rtype: str + """ + return self._region_id + + @region_id.setter + def region_id(self, region_id): + """Sets the region_id of this DirectConnectLocationEntry. + + Location所属Region + + :param region_id: The region_id of this DirectConnectLocationEntry. + :type region_id: str + """ + self._region_id = region_id + + @property + def site_code(self): + """Gets the site_code of this DirectConnectLocationEntry. + + 专线接入点对应的站点编码 + + :return: The site_code of this DirectConnectLocationEntry. + :rtype: str + """ + return self._site_code + + @site_code.setter + def site_code(self, site_code): + """Sets the site_code of this DirectConnectLocationEntry. + + 专线接入点对应的站点编码 + + :param site_code: The site_code of this DirectConnectLocationEntry. + :type site_code: str + """ + self._site_code = site_code + + @property + def address(self): + """Gets the address of this DirectConnectLocationEntry. + + :return: The address of this DirectConnectLocationEntry. + :rtype: :class:`huaweicloudsdkdc.v3.AddressBody` + """ + return self._address + + @address.setter + def address(self, address): + """Sets the address of this DirectConnectLocationEntry. + + :param address: The address of this DirectConnectLocationEntry. + :type address: :class:`huaweicloudsdkdc.v3.AddressBody` + """ + self._address = address + + @property + def locales(self): + """Gets the locales of this DirectConnectLocationEntry. + + :return: The locales of this DirectConnectLocationEntry. + :rtype: :class:`huaweicloudsdkdc.v3.LocalesBody` + """ + return self._locales + + @locales.setter + def locales(self, locales): + """Sets the locales of this DirectConnectLocationEntry. + + :param locales: The locales of this DirectConnectLocationEntry. + :type locales: :class:`huaweicloudsdkdc.v3.LocalesBody` + """ + self._locales = locales + + @property + def provider_list(self): + """Gets the provider_list of this DirectConnectLocationEntry. + + 可支持的运营商列表。 + + :return: The provider_list of this DirectConnectLocationEntry. + :rtype: list[:class:`huaweicloudsdkdc.v3.ProviderResponseBody`] + """ + return self._provider_list + + @provider_list.setter + def provider_list(self, provider_list): + """Sets the provider_list of this DirectConnectLocationEntry. + + 可支持的运营商列表。 + + :param provider_list: The provider_list of this DirectConnectLocationEntry. + :type provider_list: list[:class:`huaweicloudsdkdc.v3.ProviderResponseBody`] + """ + self._provider_list = provider_list + + @property + def public_border_group(self): + """Gets the public_border_group of this DirectConnectLocationEntry. + + 专线接入点所属public_border_group + + :return: The public_border_group of this DirectConnectLocationEntry. + :rtype: str + """ + return self._public_border_group + + @public_border_group.setter + def public_border_group(self, public_border_group): + """Sets the public_border_group of this DirectConnectLocationEntry. + + 专线接入点所属public_border_group + + :param public_border_group: The public_border_group of this DirectConnectLocationEntry. + :type public_border_group: str + """ + self._public_border_group = public_border_group + + @property + def latitude(self): + """Gets the latitude of this DirectConnectLocationEntry. + + 地理位置纬度 + + :return: The latitude of this DirectConnectLocationEntry. + :rtype: str + """ + return self._latitude + + @latitude.setter + def latitude(self, latitude): + """Sets the latitude of this DirectConnectLocationEntry. + + 地理位置纬度 + + :param latitude: The latitude of this DirectConnectLocationEntry. + :type latitude: str + """ + self._latitude = latitude + + @property + def longitude(self): + """Gets the longitude of this DirectConnectLocationEntry. + + 地理位置经度 + + :return: The longitude of this DirectConnectLocationEntry. + :rtype: str + """ + return self._longitude + + @longitude.setter + def longitude(self, longitude): + """Sets the longitude of this DirectConnectLocationEntry. + + 地理位置经度 + + :param longitude: The longitude of this DirectConnectLocationEntry. + :type longitude: str + """ + self._longitude = longitude + + @property + def description(self): + """Gets the description of this DirectConnectLocationEntry. + + 描述信息。 + + :return: The description of this DirectConnectLocationEntry. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this DirectConnectLocationEntry. + + 描述信息。 + + :param description: The description of this DirectConnectLocationEntry. + :type description: str + """ + self._description = description + + @property + def created_time(self): + """Gets the created_time of this DirectConnectLocationEntry. + + 创建时间。 + + :return: The created_time of this DirectConnectLocationEntry. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this DirectConnectLocationEntry. + + 创建时间。 + + :param created_time: The created_time of this DirectConnectLocationEntry. + :type created_time: datetime + """ + self._created_time = created_time + + @property + def updated_time(self): + """Gets the updated_time of this DirectConnectLocationEntry. + + 更新时间。 + + :return: The updated_time of this DirectConnectLocationEntry. + :rtype: datetime + """ + return self._updated_time + + @updated_time.setter + def updated_time(self, updated_time): + """Sets the updated_time of this DirectConnectLocationEntry. + + 更新时间。 + + :param updated_time: The updated_time of this DirectConnectLocationEntry. + :type updated_time: datetime + """ + self._updated_time = updated_time + + @property + def available_port_speeds(self): + """Gets the available_port_speeds of this DirectConnectLocationEntry. + + 接入点内设备可选的端口类型 + + :return: The available_port_speeds of this DirectConnectLocationEntry. + :rtype: list[str] + """ + return self._available_port_speeds + + @available_port_speeds.setter + def available_port_speeds(self, available_port_speeds): + """Sets the available_port_speeds of this DirectConnectLocationEntry. + + 接入点内设备可选的端口类型 + + :param available_port_speeds: The available_port_speeds of this DirectConnectLocationEntry. + :type available_port_speeds: list[str] + """ + self._available_port_speeds = available_port_speeds + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DirectConnectLocationEntry): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/external_create_global_dc_gateway.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/external_create_global_dc_gateway.py deleted file mode 100644 index b463b24f80..0000000000 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/external_create_global_dc_gateway.py +++ /dev/null @@ -1,607 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class ExternalCreateGlobalDcGateway: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'id': 'str', - 'tenant_id': 'str', - 'name': 'str', - 'description': 'str', - 'enterprise_project_id': 'str', - 'address_family': 'str', - 'global_center_network_id': 'str', - 'site_network_id': 'str', - 'cloud_connection_id': 'str', - 'bgp_asn': 'int', - 'region_id': 'str', - 'location_name': 'str', - 'current_peer_link_count': 'int', - 'available_peer_link_count': 'int', - 'admin_state_up': 'bool', - 'status': 'str', - 'created_time': 'datetime', - 'updated_time': 'datetime' - } - - attribute_map = { - 'id': 'id', - 'tenant_id': 'tenant_id', - 'name': 'name', - 'description': 'description', - 'enterprise_project_id': 'enterprise_project_id', - 'address_family': 'address_family', - 'global_center_network_id': 'global_center_network_id', - 'site_network_id': 'site_network_id', - 'cloud_connection_id': 'cloud_connection_id', - 'bgp_asn': 'bgp_asn', - 'region_id': 'region_id', - 'location_name': 'location_name', - 'current_peer_link_count': 'current_peer_link_count', - 'available_peer_link_count': 'available_peer_link_count', - 'admin_state_up': 'admin_state_up', - 'status': 'status', - 'created_time': 'created_time', - 'updated_time': 'updated_time' - } - - def __init__(self, id=None, tenant_id=None, name=None, description=None, enterprise_project_id=None, address_family=None, global_center_network_id=None, site_network_id=None, cloud_connection_id=None, bgp_asn=None, region_id=None, location_name=None, current_peer_link_count=None, available_peer_link_count=None, admin_state_up=None, status=None, created_time=None, updated_time=None): - """ExternalCreateGlobalDcGateway - - The model defined in huaweicloud sdk - - :param id: 唯一ID - :type id: str - :param tenant_id: 租户ID - :type tenant_id: str - :param name: 全球接入网关ID - :type name: str - :param description: 描述信息 - :type description: str - :param enterprise_project_id: 企业项目ID - :type enterprise_project_id: str - :param address_family: 地址簇 - :type address_family: str - :param global_center_network_id: 全球中心网络ID - :type global_center_network_id: str - :param site_network_id: 站点网络ID - :type site_network_id: str - :param cloud_connection_id: 云连接ID - :type cloud_connection_id: str - :param bgp_asn: BGP的AS号 - :type bgp_asn: int - :param region_id: 局点ID - :type region_id: str - :param location_name: 位置名称 - :type location_name: str - :param current_peer_link_count: 当前对等体数量 - :type current_peer_link_count: int - :param available_peer_link_count: 有效对等体数量 - :type available_peer_link_count: int - :param admin_state_up: 是否冻结 - true 是 - false 否 - :type admin_state_up: bool - :param status: 状态值 - ACTIVE 正常 - ERROR 异常 - :type status: str - :param created_time: 创建时间 - :type created_time: datetime - :param updated_time: 修改时间 - :type updated_time: datetime - """ - - - - self._id = None - self._tenant_id = None - self._name = None - self._description = None - self._enterprise_project_id = None - self._address_family = None - self._global_center_network_id = None - self._site_network_id = None - self._cloud_connection_id = None - self._bgp_asn = None - self._region_id = None - self._location_name = None - self._current_peer_link_count = None - self._available_peer_link_count = None - self._admin_state_up = None - self._status = None - self._created_time = None - self._updated_time = None - self.discriminator = None - - if id is not None: - self.id = id - if tenant_id is not None: - self.tenant_id = tenant_id - self.name = name - if description is not None: - self.description = description - if enterprise_project_id is not None: - self.enterprise_project_id = enterprise_project_id - if address_family is not None: - self.address_family = address_family - if global_center_network_id is not None: - self.global_center_network_id = global_center_network_id - if site_network_id is not None: - self.site_network_id = site_network_id - if cloud_connection_id is not None: - self.cloud_connection_id = cloud_connection_id - if bgp_asn is not None: - self.bgp_asn = bgp_asn - if region_id is not None: - self.region_id = region_id - if location_name is not None: - self.location_name = location_name - if current_peer_link_count is not None: - self.current_peer_link_count = current_peer_link_count - if available_peer_link_count is not None: - self.available_peer_link_count = available_peer_link_count - if admin_state_up is not None: - self.admin_state_up = admin_state_up - if status is not None: - self.status = status - if created_time is not None: - self.created_time = created_time - if updated_time is not None: - self.updated_time = updated_time - - @property - def id(self): - """Gets the id of this ExternalCreateGlobalDcGateway. - - 唯一ID - - :return: The id of this ExternalCreateGlobalDcGateway. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ExternalCreateGlobalDcGateway. - - 唯一ID - - :param id: The id of this ExternalCreateGlobalDcGateway. - :type id: str - """ - self._id = id - - @property - def tenant_id(self): - """Gets the tenant_id of this ExternalCreateGlobalDcGateway. - - 租户ID - - :return: The tenant_id of this ExternalCreateGlobalDcGateway. - :rtype: str - """ - return self._tenant_id - - @tenant_id.setter - def tenant_id(self, tenant_id): - """Sets the tenant_id of this ExternalCreateGlobalDcGateway. - - 租户ID - - :param tenant_id: The tenant_id of this ExternalCreateGlobalDcGateway. - :type tenant_id: str - """ - self._tenant_id = tenant_id - - @property - def name(self): - """Gets the name of this ExternalCreateGlobalDcGateway. - - 全球接入网关ID - - :return: The name of this ExternalCreateGlobalDcGateway. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ExternalCreateGlobalDcGateway. - - 全球接入网关ID - - :param name: The name of this ExternalCreateGlobalDcGateway. - :type name: str - """ - self._name = name - - @property - def description(self): - """Gets the description of this ExternalCreateGlobalDcGateway. - - 描述信息 - - :return: The description of this ExternalCreateGlobalDcGateway. - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this ExternalCreateGlobalDcGateway. - - 描述信息 - - :param description: The description of this ExternalCreateGlobalDcGateway. - :type description: str - """ - self._description = description - - @property - def enterprise_project_id(self): - """Gets the enterprise_project_id of this ExternalCreateGlobalDcGateway. - - 企业项目ID - - :return: The enterprise_project_id of this ExternalCreateGlobalDcGateway. - :rtype: str - """ - return self._enterprise_project_id - - @enterprise_project_id.setter - def enterprise_project_id(self, enterprise_project_id): - """Sets the enterprise_project_id of this ExternalCreateGlobalDcGateway. - - 企业项目ID - - :param enterprise_project_id: The enterprise_project_id of this ExternalCreateGlobalDcGateway. - :type enterprise_project_id: str - """ - self._enterprise_project_id = enterprise_project_id - - @property - def address_family(self): - """Gets the address_family of this ExternalCreateGlobalDcGateway. - - 地址簇 - - :return: The address_family of this ExternalCreateGlobalDcGateway. - :rtype: str - """ - return self._address_family - - @address_family.setter - def address_family(self, address_family): - """Sets the address_family of this ExternalCreateGlobalDcGateway. - - 地址簇 - - :param address_family: The address_family of this ExternalCreateGlobalDcGateway. - :type address_family: str - """ - self._address_family = address_family - - @property - def global_center_network_id(self): - """Gets the global_center_network_id of this ExternalCreateGlobalDcGateway. - - 全球中心网络ID - - :return: The global_center_network_id of this ExternalCreateGlobalDcGateway. - :rtype: str - """ - return self._global_center_network_id - - @global_center_network_id.setter - def global_center_network_id(self, global_center_network_id): - """Sets the global_center_network_id of this ExternalCreateGlobalDcGateway. - - 全球中心网络ID - - :param global_center_network_id: The global_center_network_id of this ExternalCreateGlobalDcGateway. - :type global_center_network_id: str - """ - self._global_center_network_id = global_center_network_id - - @property - def site_network_id(self): - """Gets the site_network_id of this ExternalCreateGlobalDcGateway. - - 站点网络ID - - :return: The site_network_id of this ExternalCreateGlobalDcGateway. - :rtype: str - """ - return self._site_network_id - - @site_network_id.setter - def site_network_id(self, site_network_id): - """Sets the site_network_id of this ExternalCreateGlobalDcGateway. - - 站点网络ID - - :param site_network_id: The site_network_id of this ExternalCreateGlobalDcGateway. - :type site_network_id: str - """ - self._site_network_id = site_network_id - - @property - def cloud_connection_id(self): - """Gets the cloud_connection_id of this ExternalCreateGlobalDcGateway. - - 云连接ID - - :return: The cloud_connection_id of this ExternalCreateGlobalDcGateway. - :rtype: str - """ - return self._cloud_connection_id - - @cloud_connection_id.setter - def cloud_connection_id(self, cloud_connection_id): - """Sets the cloud_connection_id of this ExternalCreateGlobalDcGateway. - - 云连接ID - - :param cloud_connection_id: The cloud_connection_id of this ExternalCreateGlobalDcGateway. - :type cloud_connection_id: str - """ - self._cloud_connection_id = cloud_connection_id - - @property - def bgp_asn(self): - """Gets the bgp_asn of this ExternalCreateGlobalDcGateway. - - BGP的AS号 - - :return: The bgp_asn of this ExternalCreateGlobalDcGateway. - :rtype: int - """ - return self._bgp_asn - - @bgp_asn.setter - def bgp_asn(self, bgp_asn): - """Sets the bgp_asn of this ExternalCreateGlobalDcGateway. - - BGP的AS号 - - :param bgp_asn: The bgp_asn of this ExternalCreateGlobalDcGateway. - :type bgp_asn: int - """ - self._bgp_asn = bgp_asn - - @property - def region_id(self): - """Gets the region_id of this ExternalCreateGlobalDcGateway. - - 局点ID - - :return: The region_id of this ExternalCreateGlobalDcGateway. - :rtype: str - """ - return self._region_id - - @region_id.setter - def region_id(self, region_id): - """Sets the region_id of this ExternalCreateGlobalDcGateway. - - 局点ID - - :param region_id: The region_id of this ExternalCreateGlobalDcGateway. - :type region_id: str - """ - self._region_id = region_id - - @property - def location_name(self): - """Gets the location_name of this ExternalCreateGlobalDcGateway. - - 位置名称 - - :return: The location_name of this ExternalCreateGlobalDcGateway. - :rtype: str - """ - return self._location_name - - @location_name.setter - def location_name(self, location_name): - """Sets the location_name of this ExternalCreateGlobalDcGateway. - - 位置名称 - - :param location_name: The location_name of this ExternalCreateGlobalDcGateway. - :type location_name: str - """ - self._location_name = location_name - - @property - def current_peer_link_count(self): - """Gets the current_peer_link_count of this ExternalCreateGlobalDcGateway. - - 当前对等体数量 - - :return: The current_peer_link_count of this ExternalCreateGlobalDcGateway. - :rtype: int - """ - return self._current_peer_link_count - - @current_peer_link_count.setter - def current_peer_link_count(self, current_peer_link_count): - """Sets the current_peer_link_count of this ExternalCreateGlobalDcGateway. - - 当前对等体数量 - - :param current_peer_link_count: The current_peer_link_count of this ExternalCreateGlobalDcGateway. - :type current_peer_link_count: int - """ - self._current_peer_link_count = current_peer_link_count - - @property - def available_peer_link_count(self): - """Gets the available_peer_link_count of this ExternalCreateGlobalDcGateway. - - 有效对等体数量 - - :return: The available_peer_link_count of this ExternalCreateGlobalDcGateway. - :rtype: int - """ - return self._available_peer_link_count - - @available_peer_link_count.setter - def available_peer_link_count(self, available_peer_link_count): - """Sets the available_peer_link_count of this ExternalCreateGlobalDcGateway. - - 有效对等体数量 - - :param available_peer_link_count: The available_peer_link_count of this ExternalCreateGlobalDcGateway. - :type available_peer_link_count: int - """ - self._available_peer_link_count = available_peer_link_count - - @property - def admin_state_up(self): - """Gets the admin_state_up of this ExternalCreateGlobalDcGateway. - - 是否冻结 - true 是 - false 否 - - :return: The admin_state_up of this ExternalCreateGlobalDcGateway. - :rtype: bool - """ - return self._admin_state_up - - @admin_state_up.setter - def admin_state_up(self, admin_state_up): - """Sets the admin_state_up of this ExternalCreateGlobalDcGateway. - - 是否冻结 - true 是 - false 否 - - :param admin_state_up: The admin_state_up of this ExternalCreateGlobalDcGateway. - :type admin_state_up: bool - """ - self._admin_state_up = admin_state_up - - @property - def status(self): - """Gets the status of this ExternalCreateGlobalDcGateway. - - 状态值 - ACTIVE 正常 - ERROR 异常 - - :return: The status of this ExternalCreateGlobalDcGateway. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this ExternalCreateGlobalDcGateway. - - 状态值 - ACTIVE 正常 - ERROR 异常 - - :param status: The status of this ExternalCreateGlobalDcGateway. - :type status: str - """ - self._status = status - - @property - def created_time(self): - """Gets the created_time of this ExternalCreateGlobalDcGateway. - - 创建时间 - - :return: The created_time of this ExternalCreateGlobalDcGateway. - :rtype: datetime - """ - return self._created_time - - @created_time.setter - def created_time(self, created_time): - """Sets the created_time of this ExternalCreateGlobalDcGateway. - - 创建时间 - - :param created_time: The created_time of this ExternalCreateGlobalDcGateway. - :type created_time: datetime - """ - self._created_time = created_time - - @property - def updated_time(self): - """Gets the updated_time of this ExternalCreateGlobalDcGateway. - - 修改时间 - - :return: The updated_time of this ExternalCreateGlobalDcGateway. - :rtype: datetime - """ - return self._updated_time - - @updated_time.setter - def updated_time(self, updated_time): - """Sets the updated_time of this ExternalCreateGlobalDcGateway. - - 修改时间 - - :param updated_time: The updated_time of this ExternalCreateGlobalDcGateway. - :type updated_time: datetime - """ - self._updated_time = updated_time - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ExternalCreateGlobalDcGateway): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/external_create_peer_link.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/external_create_peer_link.py index 9136e2096a..1f2b1342c7 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/external_create_peer_link.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/external_create_peer_link.py @@ -22,7 +22,6 @@ class ExternalCreatePeerLink: 'name': 'str', 'description': 'str', 'global_dc_gateway_id': 'str', - 'instance_id': 'str', 'bandwidth_info': 'BandwidthInfoExternal', 'peer_site': 'PeerSiteExternal', 'status': 'str', @@ -37,7 +36,6 @@ class ExternalCreatePeerLink: 'name': 'name', 'description': 'description', 'global_dc_gateway_id': 'global_dc_gateway_id', - 'instance_id': 'instance_id', 'bandwidth_info': 'bandwidth_info', 'peer_site': 'peer_site', 'status': 'status', @@ -46,34 +44,32 @@ class ExternalCreatePeerLink: 'updated_time': 'updated_time' } - def __init__(self, id=None, tenant_id=None, name=None, description=None, global_dc_gateway_id=None, instance_id=None, bandwidth_info=None, peer_site=None, status=None, reason=None, created_time=None, updated_time=None): + def __init__(self, id=None, tenant_id=None, name=None, description=None, global_dc_gateway_id=None, bandwidth_info=None, peer_site=None, status=None, reason=None, created_time=None, updated_time=None): """ExternalCreatePeerLink The model defined in huaweicloud sdk - :param id: 唯一ID + :param id: 专线对等连接 :type id: str :param tenant_id: 租户ID :type tenant_id: str :param name: 名称 :type name: str - :param description: 描述 + :param description: 描述信息 :type description: str - :param global_dc_gateway_id: 全球接入网关ID + :param global_dc_gateway_id: 全域接入网关ID :type global_dc_gateway_id: str - :param instance_id: 实例ID - :type instance_id: str :param bandwidth_info: :type bandwidth_info: :class:`huaweicloudsdkdc.v3.BandwidthInfoExternal` :param peer_site: :type peer_site: :class:`huaweicloudsdkdc.v3.PeerSiteExternal` - :param status: 状态: ACTIVE-正常 + :param status: '状态信息' - ACTIVE 正常 - ERROR 异常 :type status: str - :param reason: 原因 + :param reason: 失败原因 :type reason: str :param created_time: 创建时间 :type created_time: datetime - :param updated_time: 修改时间 + :param updated_time: 更新时间 :type updated_time: datetime """ @@ -84,7 +80,6 @@ def __init__(self, id=None, tenant_id=None, name=None, description=None, global_ self._name = None self._description = None self._global_dc_gateway_id = None - self._instance_id = None self._bandwidth_info = None self._peer_site = None self._status = None @@ -102,8 +97,6 @@ def __init__(self, id=None, tenant_id=None, name=None, description=None, global_ self.description = description if global_dc_gateway_id is not None: self.global_dc_gateway_id = global_dc_gateway_id - if instance_id is not None: - self.instance_id = instance_id if bandwidth_info is not None: self.bandwidth_info = bandwidth_info self.peer_site = peer_site @@ -120,7 +113,7 @@ def __init__(self, id=None, tenant_id=None, name=None, description=None, global_ def id(self): """Gets the id of this ExternalCreatePeerLink. - 唯一ID + 专线对等连接 :return: The id of this ExternalCreatePeerLink. :rtype: str @@ -131,7 +124,7 @@ def id(self): def id(self, id): """Sets the id of this ExternalCreatePeerLink. - 唯一ID + 专线对等连接 :param id: The id of this ExternalCreatePeerLink. :type id: str @@ -186,7 +179,7 @@ def name(self, name): def description(self): """Gets the description of this ExternalCreatePeerLink. - 描述 + 描述信息 :return: The description of this ExternalCreatePeerLink. :rtype: str @@ -197,7 +190,7 @@ def description(self): def description(self, description): """Sets the description of this ExternalCreatePeerLink. - 描述 + 描述信息 :param description: The description of this ExternalCreatePeerLink. :type description: str @@ -208,7 +201,7 @@ def description(self, description): def global_dc_gateway_id(self): """Gets the global_dc_gateway_id of this ExternalCreatePeerLink. - 全球接入网关ID + 全域接入网关ID :return: The global_dc_gateway_id of this ExternalCreatePeerLink. :rtype: str @@ -219,35 +212,13 @@ def global_dc_gateway_id(self): def global_dc_gateway_id(self, global_dc_gateway_id): """Sets the global_dc_gateway_id of this ExternalCreatePeerLink. - 全球接入网关ID + 全域接入网关ID :param global_dc_gateway_id: The global_dc_gateway_id of this ExternalCreatePeerLink. :type global_dc_gateway_id: str """ self._global_dc_gateway_id = global_dc_gateway_id - @property - def instance_id(self): - """Gets the instance_id of this ExternalCreatePeerLink. - - 实例ID - - :return: The instance_id of this ExternalCreatePeerLink. - :rtype: str - """ - return self._instance_id - - @instance_id.setter - def instance_id(self, instance_id): - """Sets the instance_id of this ExternalCreatePeerLink. - - 实例ID - - :param instance_id: The instance_id of this ExternalCreatePeerLink. - :type instance_id: str - """ - self._instance_id = instance_id - @property def bandwidth_info(self): """Gets the bandwidth_info of this ExternalCreatePeerLink. @@ -288,7 +259,7 @@ def peer_site(self, peer_site): def status(self): """Gets the status of this ExternalCreatePeerLink. - 状态: ACTIVE-正常 + '状态信息' - ACTIVE 正常 - ERROR 异常 :return: The status of this ExternalCreatePeerLink. :rtype: str @@ -299,7 +270,7 @@ def status(self): def status(self, status): """Sets the status of this ExternalCreatePeerLink. - 状态: ACTIVE-正常 + '状态信息' - ACTIVE 正常 - ERROR 异常 :param status: The status of this ExternalCreatePeerLink. :type status: str @@ -310,7 +281,7 @@ def status(self, status): def reason(self): """Gets the reason of this ExternalCreatePeerLink. - 原因 + 失败原因 :return: The reason of this ExternalCreatePeerLink. :rtype: str @@ -321,7 +292,7 @@ def reason(self): def reason(self, reason): """Sets the reason of this ExternalCreatePeerLink. - 原因 + 失败原因 :param reason: The reason of this ExternalCreatePeerLink. :type reason: str @@ -354,7 +325,7 @@ def created_time(self, created_time): def updated_time(self): """Gets the updated_time of this ExternalCreatePeerLink. - 修改时间 + 更新时间 :return: The updated_time of this ExternalCreatePeerLink. :rtype: datetime @@ -365,7 +336,7 @@ def updated_time(self): def updated_time(self, updated_time): """Sets the updated_time of this ExternalCreatePeerLink. - 修改时间 + 更新时间 :param updated_time: The updated_time of this ExternalCreatePeerLink. :type updated_time: datetime diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/external_list_global_dc_gateways.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/external_list_global_dc_gateways.py deleted file mode 100644 index f34b510728..0000000000 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/external_list_global_dc_gateways.py +++ /dev/null @@ -1,691 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class ExternalListGlobalDcGateways: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'id': 'str', - 'tenant_id': 'str', - 'name': 'str', - 'description': 'str', - 'enterprise_project_id': 'str', - 'global_center_network_id': 'str', - 'site_network_id': 'str', - 'cloud_connection_id': 'str', - 'bgp_asn': 'int', - 'region_id': 'str', - 'location_name': 'str', - 'address_family': 'str', - 'locales': 'Locale', - 'current_peer_link_count': 'int', - 'available_peer_link_count': 'int', - 'admin_state_up': 'bool', - 'status': 'str', - 'reason': 'str', - 'created_time': 'datetime', - 'updated_time': 'datetime', - 'tags': 'list[Tag]' - } - - attribute_map = { - 'id': 'id', - 'tenant_id': 'tenant_id', - 'name': 'name', - 'description': 'description', - 'enterprise_project_id': 'enterprise_project_id', - 'global_center_network_id': 'global_center_network_id', - 'site_network_id': 'site_network_id', - 'cloud_connection_id': 'cloud_connection_id', - 'bgp_asn': 'bgp_asn', - 'region_id': 'region_id', - 'location_name': 'location_name', - 'address_family': 'address_family', - 'locales': 'locales', - 'current_peer_link_count': 'current_peer_link_count', - 'available_peer_link_count': 'available_peer_link_count', - 'admin_state_up': 'admin_state_up', - 'status': 'status', - 'reason': 'reason', - 'created_time': 'created_time', - 'updated_time': 'updated_time', - 'tags': 'tags' - } - - def __init__(self, id=None, tenant_id=None, name=None, description=None, enterprise_project_id=None, global_center_network_id=None, site_network_id=None, cloud_connection_id=None, bgp_asn=None, region_id=None, location_name=None, address_family=None, locales=None, current_peer_link_count=None, available_peer_link_count=None, admin_state_up=None, status=None, reason=None, created_time=None, updated_time=None, tags=None): - """ExternalListGlobalDcGateways - - The model defined in huaweicloud sdk - - :param id: 唯一ID - :type id: str - :param tenant_id: 租户ID - :type tenant_id: str - :param name: 名称 - :type name: str - :param description: 描述信息 - :type description: str - :param enterprise_project_id: 企业项目ID - :type enterprise_project_id: str - :param global_center_network_id: 全球中心网络ID - :type global_center_network_id: str - :param site_network_id: 站点网络ID - :type site_network_id: str - :param cloud_connection_id: 云连接ID - :type cloud_connection_id: str - :param bgp_asn: BGP模式的AS号 - :type bgp_asn: int - :param region_id: 局点ID - :type region_id: str - :param location_name: 位置名称 - :type location_name: str - :param address_family: 地址簇 - :type address_family: str - :param locales: - :type locales: :class:`huaweicloudsdkdc.v3.Locale` - :param current_peer_link_count: 当前对等体数量 - :type current_peer_link_count: int - :param available_peer_link_count: 有效对等体数量 - :type available_peer_link_count: int - :param admin_state_up: 是否冻结: true-是,false-否 - :type admin_state_up: bool - :param status: 状态: ACTIVE-正常,ERROR-异常 - :type status: str - :param reason: 失败原因 - :type reason: str - :param created_time: 创建时间 - :type created_time: datetime - :param updated_time: 修改时间 - :type updated_time: datetime - :param tags: 标签 - :type tags: list[:class:`huaweicloudsdkdc.v3.Tag`] - """ - - - - self._id = None - self._tenant_id = None - self._name = None - self._description = None - self._enterprise_project_id = None - self._global_center_network_id = None - self._site_network_id = None - self._cloud_connection_id = None - self._bgp_asn = None - self._region_id = None - self._location_name = None - self._address_family = None - self._locales = None - self._current_peer_link_count = None - self._available_peer_link_count = None - self._admin_state_up = None - self._status = None - self._reason = None - self._created_time = None - self._updated_time = None - self._tags = None - self.discriminator = None - - if id is not None: - self.id = id - if tenant_id is not None: - self.tenant_id = tenant_id - if name is not None: - self.name = name - if description is not None: - self.description = description - if enterprise_project_id is not None: - self.enterprise_project_id = enterprise_project_id - if global_center_network_id is not None: - self.global_center_network_id = global_center_network_id - if site_network_id is not None: - self.site_network_id = site_network_id - if cloud_connection_id is not None: - self.cloud_connection_id = cloud_connection_id - if bgp_asn is not None: - self.bgp_asn = bgp_asn - if region_id is not None: - self.region_id = region_id - if location_name is not None: - self.location_name = location_name - if address_family is not None: - self.address_family = address_family - if locales is not None: - self.locales = locales - if current_peer_link_count is not None: - self.current_peer_link_count = current_peer_link_count - if available_peer_link_count is not None: - self.available_peer_link_count = available_peer_link_count - if admin_state_up is not None: - self.admin_state_up = admin_state_up - if status is not None: - self.status = status - if reason is not None: - self.reason = reason - if created_time is not None: - self.created_time = created_time - if updated_time is not None: - self.updated_time = updated_time - if tags is not None: - self.tags = tags - - @property - def id(self): - """Gets the id of this ExternalListGlobalDcGateways. - - 唯一ID - - :return: The id of this ExternalListGlobalDcGateways. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ExternalListGlobalDcGateways. - - 唯一ID - - :param id: The id of this ExternalListGlobalDcGateways. - :type id: str - """ - self._id = id - - @property - def tenant_id(self): - """Gets the tenant_id of this ExternalListGlobalDcGateways. - - 租户ID - - :return: The tenant_id of this ExternalListGlobalDcGateways. - :rtype: str - """ - return self._tenant_id - - @tenant_id.setter - def tenant_id(self, tenant_id): - """Sets the tenant_id of this ExternalListGlobalDcGateways. - - 租户ID - - :param tenant_id: The tenant_id of this ExternalListGlobalDcGateways. - :type tenant_id: str - """ - self._tenant_id = tenant_id - - @property - def name(self): - """Gets the name of this ExternalListGlobalDcGateways. - - 名称 - - :return: The name of this ExternalListGlobalDcGateways. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ExternalListGlobalDcGateways. - - 名称 - - :param name: The name of this ExternalListGlobalDcGateways. - :type name: str - """ - self._name = name - - @property - def description(self): - """Gets the description of this ExternalListGlobalDcGateways. - - 描述信息 - - :return: The description of this ExternalListGlobalDcGateways. - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this ExternalListGlobalDcGateways. - - 描述信息 - - :param description: The description of this ExternalListGlobalDcGateways. - :type description: str - """ - self._description = description - - @property - def enterprise_project_id(self): - """Gets the enterprise_project_id of this ExternalListGlobalDcGateways. - - 企业项目ID - - :return: The enterprise_project_id of this ExternalListGlobalDcGateways. - :rtype: str - """ - return self._enterprise_project_id - - @enterprise_project_id.setter - def enterprise_project_id(self, enterprise_project_id): - """Sets the enterprise_project_id of this ExternalListGlobalDcGateways. - - 企业项目ID - - :param enterprise_project_id: The enterprise_project_id of this ExternalListGlobalDcGateways. - :type enterprise_project_id: str - """ - self._enterprise_project_id = enterprise_project_id - - @property - def global_center_network_id(self): - """Gets the global_center_network_id of this ExternalListGlobalDcGateways. - - 全球中心网络ID - - :return: The global_center_network_id of this ExternalListGlobalDcGateways. - :rtype: str - """ - return self._global_center_network_id - - @global_center_network_id.setter - def global_center_network_id(self, global_center_network_id): - """Sets the global_center_network_id of this ExternalListGlobalDcGateways. - - 全球中心网络ID - - :param global_center_network_id: The global_center_network_id of this ExternalListGlobalDcGateways. - :type global_center_network_id: str - """ - self._global_center_network_id = global_center_network_id - - @property - def site_network_id(self): - """Gets the site_network_id of this ExternalListGlobalDcGateways. - - 站点网络ID - - :return: The site_network_id of this ExternalListGlobalDcGateways. - :rtype: str - """ - return self._site_network_id - - @site_network_id.setter - def site_network_id(self, site_network_id): - """Sets the site_network_id of this ExternalListGlobalDcGateways. - - 站点网络ID - - :param site_network_id: The site_network_id of this ExternalListGlobalDcGateways. - :type site_network_id: str - """ - self._site_network_id = site_network_id - - @property - def cloud_connection_id(self): - """Gets the cloud_connection_id of this ExternalListGlobalDcGateways. - - 云连接ID - - :return: The cloud_connection_id of this ExternalListGlobalDcGateways. - :rtype: str - """ - return self._cloud_connection_id - - @cloud_connection_id.setter - def cloud_connection_id(self, cloud_connection_id): - """Sets the cloud_connection_id of this ExternalListGlobalDcGateways. - - 云连接ID - - :param cloud_connection_id: The cloud_connection_id of this ExternalListGlobalDcGateways. - :type cloud_connection_id: str - """ - self._cloud_connection_id = cloud_connection_id - - @property - def bgp_asn(self): - """Gets the bgp_asn of this ExternalListGlobalDcGateways. - - BGP模式的AS号 - - :return: The bgp_asn of this ExternalListGlobalDcGateways. - :rtype: int - """ - return self._bgp_asn - - @bgp_asn.setter - def bgp_asn(self, bgp_asn): - """Sets the bgp_asn of this ExternalListGlobalDcGateways. - - BGP模式的AS号 - - :param bgp_asn: The bgp_asn of this ExternalListGlobalDcGateways. - :type bgp_asn: int - """ - self._bgp_asn = bgp_asn - - @property - def region_id(self): - """Gets the region_id of this ExternalListGlobalDcGateways. - - 局点ID - - :return: The region_id of this ExternalListGlobalDcGateways. - :rtype: str - """ - return self._region_id - - @region_id.setter - def region_id(self, region_id): - """Sets the region_id of this ExternalListGlobalDcGateways. - - 局点ID - - :param region_id: The region_id of this ExternalListGlobalDcGateways. - :type region_id: str - """ - self._region_id = region_id - - @property - def location_name(self): - """Gets the location_name of this ExternalListGlobalDcGateways. - - 位置名称 - - :return: The location_name of this ExternalListGlobalDcGateways. - :rtype: str - """ - return self._location_name - - @location_name.setter - def location_name(self, location_name): - """Sets the location_name of this ExternalListGlobalDcGateways. - - 位置名称 - - :param location_name: The location_name of this ExternalListGlobalDcGateways. - :type location_name: str - """ - self._location_name = location_name - - @property - def address_family(self): - """Gets the address_family of this ExternalListGlobalDcGateways. - - 地址簇 - - :return: The address_family of this ExternalListGlobalDcGateways. - :rtype: str - """ - return self._address_family - - @address_family.setter - def address_family(self, address_family): - """Sets the address_family of this ExternalListGlobalDcGateways. - - 地址簇 - - :param address_family: The address_family of this ExternalListGlobalDcGateways. - :type address_family: str - """ - self._address_family = address_family - - @property - def locales(self): - """Gets the locales of this ExternalListGlobalDcGateways. - - :return: The locales of this ExternalListGlobalDcGateways. - :rtype: :class:`huaweicloudsdkdc.v3.Locale` - """ - return self._locales - - @locales.setter - def locales(self, locales): - """Sets the locales of this ExternalListGlobalDcGateways. - - :param locales: The locales of this ExternalListGlobalDcGateways. - :type locales: :class:`huaweicloudsdkdc.v3.Locale` - """ - self._locales = locales - - @property - def current_peer_link_count(self): - """Gets the current_peer_link_count of this ExternalListGlobalDcGateways. - - 当前对等体数量 - - :return: The current_peer_link_count of this ExternalListGlobalDcGateways. - :rtype: int - """ - return self._current_peer_link_count - - @current_peer_link_count.setter - def current_peer_link_count(self, current_peer_link_count): - """Sets the current_peer_link_count of this ExternalListGlobalDcGateways. - - 当前对等体数量 - - :param current_peer_link_count: The current_peer_link_count of this ExternalListGlobalDcGateways. - :type current_peer_link_count: int - """ - self._current_peer_link_count = current_peer_link_count - - @property - def available_peer_link_count(self): - """Gets the available_peer_link_count of this ExternalListGlobalDcGateways. - - 有效对等体数量 - - :return: The available_peer_link_count of this ExternalListGlobalDcGateways. - :rtype: int - """ - return self._available_peer_link_count - - @available_peer_link_count.setter - def available_peer_link_count(self, available_peer_link_count): - """Sets the available_peer_link_count of this ExternalListGlobalDcGateways. - - 有效对等体数量 - - :param available_peer_link_count: The available_peer_link_count of this ExternalListGlobalDcGateways. - :type available_peer_link_count: int - """ - self._available_peer_link_count = available_peer_link_count - - @property - def admin_state_up(self): - """Gets the admin_state_up of this ExternalListGlobalDcGateways. - - 是否冻结: true-是,false-否 - - :return: The admin_state_up of this ExternalListGlobalDcGateways. - :rtype: bool - """ - return self._admin_state_up - - @admin_state_up.setter - def admin_state_up(self, admin_state_up): - """Sets the admin_state_up of this ExternalListGlobalDcGateways. - - 是否冻结: true-是,false-否 - - :param admin_state_up: The admin_state_up of this ExternalListGlobalDcGateways. - :type admin_state_up: bool - """ - self._admin_state_up = admin_state_up - - @property - def status(self): - """Gets the status of this ExternalListGlobalDcGateways. - - 状态: ACTIVE-正常,ERROR-异常 - - :return: The status of this ExternalListGlobalDcGateways. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this ExternalListGlobalDcGateways. - - 状态: ACTIVE-正常,ERROR-异常 - - :param status: The status of this ExternalListGlobalDcGateways. - :type status: str - """ - self._status = status - - @property - def reason(self): - """Gets the reason of this ExternalListGlobalDcGateways. - - 失败原因 - - :return: The reason of this ExternalListGlobalDcGateways. - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """Sets the reason of this ExternalListGlobalDcGateways. - - 失败原因 - - :param reason: The reason of this ExternalListGlobalDcGateways. - :type reason: str - """ - self._reason = reason - - @property - def created_time(self): - """Gets the created_time of this ExternalListGlobalDcGateways. - - 创建时间 - - :return: The created_time of this ExternalListGlobalDcGateways. - :rtype: datetime - """ - return self._created_time - - @created_time.setter - def created_time(self, created_time): - """Sets the created_time of this ExternalListGlobalDcGateways. - - 创建时间 - - :param created_time: The created_time of this ExternalListGlobalDcGateways. - :type created_time: datetime - """ - self._created_time = created_time - - @property - def updated_time(self): - """Gets the updated_time of this ExternalListGlobalDcGateways. - - 修改时间 - - :return: The updated_time of this ExternalListGlobalDcGateways. - :rtype: datetime - """ - return self._updated_time - - @updated_time.setter - def updated_time(self, updated_time): - """Sets the updated_time of this ExternalListGlobalDcGateways. - - 修改时间 - - :param updated_time: The updated_time of this ExternalListGlobalDcGateways. - :type updated_time: datetime - """ - self._updated_time = updated_time - - @property - def tags(self): - """Gets the tags of this ExternalListGlobalDcGateways. - - 标签 - - :return: The tags of this ExternalListGlobalDcGateways. - :rtype: list[:class:`huaweicloudsdkdc.v3.Tag`] - """ - return self._tags - - @tags.setter - def tags(self, tags): - """Sets the tags of this ExternalListGlobalDcGateways. - - 标签 - - :param tags: The tags of this ExternalListGlobalDcGateways. - :type tags: list[:class:`huaweicloudsdkdc.v3.Tag`] - """ - self._tags = tags - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ExternalListGlobalDcGateways): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/external_show_global_dc_gateway.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/external_show_global_dc_gateway.py deleted file mode 100644 index 2936094757..0000000000 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/external_show_global_dc_gateway.py +++ /dev/null @@ -1,633 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class ExternalShowGlobalDcGateway: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'id': 'str', - 'tenant_id': 'str', - 'name': 'str', - 'description': 'str', - 'enterprise_project_id': 'str', - 'global_center_network_id': 'str', - 'site_network_id': 'str', - 'cloud_connection_id': 'str', - 'bgp_asn': 'int', - 'region_id': 'str', - 'location_name': 'str', - 'locales': 'Locale', - 'current_peer_link_count': 'int', - 'available_peer_link_count': 'int', - 'admin_state_up': 'bool', - 'status': 'str', - 'created_time': 'datetime', - 'updated_time': 'datetime', - 'tags': 'dict(str, str)' - } - - attribute_map = { - 'id': 'id', - 'tenant_id': 'tenant_id', - 'name': 'name', - 'description': 'description', - 'enterprise_project_id': 'enterprise_project_id', - 'global_center_network_id': 'global_center_network_id', - 'site_network_id': 'site_network_id', - 'cloud_connection_id': 'cloud_connection_id', - 'bgp_asn': 'bgp_asn', - 'region_id': 'region_id', - 'location_name': 'location_name', - 'locales': 'locales', - 'current_peer_link_count': 'current_peer_link_count', - 'available_peer_link_count': 'available_peer_link_count', - 'admin_state_up': 'admin_state_up', - 'status': 'status', - 'created_time': 'created_time', - 'updated_time': 'updated_time', - 'tags': 'tags' - } - - def __init__(self, id=None, tenant_id=None, name=None, description=None, enterprise_project_id=None, global_center_network_id=None, site_network_id=None, cloud_connection_id=None, bgp_asn=None, region_id=None, location_name=None, locales=None, current_peer_link_count=None, available_peer_link_count=None, admin_state_up=None, status=None, created_time=None, updated_time=None, tags=None): - """ExternalShowGlobalDcGateway - - The model defined in huaweicloud sdk - - :param id: 唯一ID - :type id: str - :param tenant_id: 租户ID - :type tenant_id: str - :param name: 名称 - :type name: str - :param description: 描述信息 - :type description: str - :param enterprise_project_id: 企业项目ID - :type enterprise_project_id: str - :param global_center_network_id: 全球中心网路ID - :type global_center_network_id: str - :param site_network_id: 站点网络ID - :type site_network_id: str - :param cloud_connection_id: 云连接ID - :type cloud_connection_id: str - :param bgp_asn: BGP模式AS号 - :type bgp_asn: int - :param region_id: 局点ID - :type region_id: str - :param location_name: 位置名称 - :type location_name: str - :param locales: - :type locales: :class:`huaweicloudsdkdc.v3.Locale` - :param current_peer_link_count: 当前对等体数量 - :type current_peer_link_count: int - :param available_peer_link_count: 有效对等体数量 - :type available_peer_link_count: int - :param admin_state_up: 是否冻结:true-是,false-否 - :type admin_state_up: bool - :param status: 状态:ACTIVE-正常,ERROR-异常 - :type status: str - :param created_time: 创建时间 - :type created_time: datetime - :param updated_time: 更新时间 - :type updated_time: datetime - :param tags: 返回给RMS的资源标签 - :type tags: dict(str, str) - """ - - - - self._id = None - self._tenant_id = None - self._name = None - self._description = None - self._enterprise_project_id = None - self._global_center_network_id = None - self._site_network_id = None - self._cloud_connection_id = None - self._bgp_asn = None - self._region_id = None - self._location_name = None - self._locales = None - self._current_peer_link_count = None - self._available_peer_link_count = None - self._admin_state_up = None - self._status = None - self._created_time = None - self._updated_time = None - self._tags = None - self.discriminator = None - - if id is not None: - self.id = id - if tenant_id is not None: - self.tenant_id = tenant_id - if name is not None: - self.name = name - if description is not None: - self.description = description - if enterprise_project_id is not None: - self.enterprise_project_id = enterprise_project_id - if global_center_network_id is not None: - self.global_center_network_id = global_center_network_id - if site_network_id is not None: - self.site_network_id = site_network_id - if cloud_connection_id is not None: - self.cloud_connection_id = cloud_connection_id - if bgp_asn is not None: - self.bgp_asn = bgp_asn - if region_id is not None: - self.region_id = region_id - if location_name is not None: - self.location_name = location_name - if locales is not None: - self.locales = locales - if current_peer_link_count is not None: - self.current_peer_link_count = current_peer_link_count - if available_peer_link_count is not None: - self.available_peer_link_count = available_peer_link_count - if admin_state_up is not None: - self.admin_state_up = admin_state_up - if status is not None: - self.status = status - if created_time is not None: - self.created_time = created_time - if updated_time is not None: - self.updated_time = updated_time - if tags is not None: - self.tags = tags - - @property - def id(self): - """Gets the id of this ExternalShowGlobalDcGateway. - - 唯一ID - - :return: The id of this ExternalShowGlobalDcGateway. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ExternalShowGlobalDcGateway. - - 唯一ID - - :param id: The id of this ExternalShowGlobalDcGateway. - :type id: str - """ - self._id = id - - @property - def tenant_id(self): - """Gets the tenant_id of this ExternalShowGlobalDcGateway. - - 租户ID - - :return: The tenant_id of this ExternalShowGlobalDcGateway. - :rtype: str - """ - return self._tenant_id - - @tenant_id.setter - def tenant_id(self, tenant_id): - """Sets the tenant_id of this ExternalShowGlobalDcGateway. - - 租户ID - - :param tenant_id: The tenant_id of this ExternalShowGlobalDcGateway. - :type tenant_id: str - """ - self._tenant_id = tenant_id - - @property - def name(self): - """Gets the name of this ExternalShowGlobalDcGateway. - - 名称 - - :return: The name of this ExternalShowGlobalDcGateway. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ExternalShowGlobalDcGateway. - - 名称 - - :param name: The name of this ExternalShowGlobalDcGateway. - :type name: str - """ - self._name = name - - @property - def description(self): - """Gets the description of this ExternalShowGlobalDcGateway. - - 描述信息 - - :return: The description of this ExternalShowGlobalDcGateway. - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this ExternalShowGlobalDcGateway. - - 描述信息 - - :param description: The description of this ExternalShowGlobalDcGateway. - :type description: str - """ - self._description = description - - @property - def enterprise_project_id(self): - """Gets the enterprise_project_id of this ExternalShowGlobalDcGateway. - - 企业项目ID - - :return: The enterprise_project_id of this ExternalShowGlobalDcGateway. - :rtype: str - """ - return self._enterprise_project_id - - @enterprise_project_id.setter - def enterprise_project_id(self, enterprise_project_id): - """Sets the enterprise_project_id of this ExternalShowGlobalDcGateway. - - 企业项目ID - - :param enterprise_project_id: The enterprise_project_id of this ExternalShowGlobalDcGateway. - :type enterprise_project_id: str - """ - self._enterprise_project_id = enterprise_project_id - - @property - def global_center_network_id(self): - """Gets the global_center_network_id of this ExternalShowGlobalDcGateway. - - 全球中心网路ID - - :return: The global_center_network_id of this ExternalShowGlobalDcGateway. - :rtype: str - """ - return self._global_center_network_id - - @global_center_network_id.setter - def global_center_network_id(self, global_center_network_id): - """Sets the global_center_network_id of this ExternalShowGlobalDcGateway. - - 全球中心网路ID - - :param global_center_network_id: The global_center_network_id of this ExternalShowGlobalDcGateway. - :type global_center_network_id: str - """ - self._global_center_network_id = global_center_network_id - - @property - def site_network_id(self): - """Gets the site_network_id of this ExternalShowGlobalDcGateway. - - 站点网络ID - - :return: The site_network_id of this ExternalShowGlobalDcGateway. - :rtype: str - """ - return self._site_network_id - - @site_network_id.setter - def site_network_id(self, site_network_id): - """Sets the site_network_id of this ExternalShowGlobalDcGateway. - - 站点网络ID - - :param site_network_id: The site_network_id of this ExternalShowGlobalDcGateway. - :type site_network_id: str - """ - self._site_network_id = site_network_id - - @property - def cloud_connection_id(self): - """Gets the cloud_connection_id of this ExternalShowGlobalDcGateway. - - 云连接ID - - :return: The cloud_connection_id of this ExternalShowGlobalDcGateway. - :rtype: str - """ - return self._cloud_connection_id - - @cloud_connection_id.setter - def cloud_connection_id(self, cloud_connection_id): - """Sets the cloud_connection_id of this ExternalShowGlobalDcGateway. - - 云连接ID - - :param cloud_connection_id: The cloud_connection_id of this ExternalShowGlobalDcGateway. - :type cloud_connection_id: str - """ - self._cloud_connection_id = cloud_connection_id - - @property - def bgp_asn(self): - """Gets the bgp_asn of this ExternalShowGlobalDcGateway. - - BGP模式AS号 - - :return: The bgp_asn of this ExternalShowGlobalDcGateway. - :rtype: int - """ - return self._bgp_asn - - @bgp_asn.setter - def bgp_asn(self, bgp_asn): - """Sets the bgp_asn of this ExternalShowGlobalDcGateway. - - BGP模式AS号 - - :param bgp_asn: The bgp_asn of this ExternalShowGlobalDcGateway. - :type bgp_asn: int - """ - self._bgp_asn = bgp_asn - - @property - def region_id(self): - """Gets the region_id of this ExternalShowGlobalDcGateway. - - 局点ID - - :return: The region_id of this ExternalShowGlobalDcGateway. - :rtype: str - """ - return self._region_id - - @region_id.setter - def region_id(self, region_id): - """Sets the region_id of this ExternalShowGlobalDcGateway. - - 局点ID - - :param region_id: The region_id of this ExternalShowGlobalDcGateway. - :type region_id: str - """ - self._region_id = region_id - - @property - def location_name(self): - """Gets the location_name of this ExternalShowGlobalDcGateway. - - 位置名称 - - :return: The location_name of this ExternalShowGlobalDcGateway. - :rtype: str - """ - return self._location_name - - @location_name.setter - def location_name(self, location_name): - """Sets the location_name of this ExternalShowGlobalDcGateway. - - 位置名称 - - :param location_name: The location_name of this ExternalShowGlobalDcGateway. - :type location_name: str - """ - self._location_name = location_name - - @property - def locales(self): - """Gets the locales of this ExternalShowGlobalDcGateway. - - :return: The locales of this ExternalShowGlobalDcGateway. - :rtype: :class:`huaweicloudsdkdc.v3.Locale` - """ - return self._locales - - @locales.setter - def locales(self, locales): - """Sets the locales of this ExternalShowGlobalDcGateway. - - :param locales: The locales of this ExternalShowGlobalDcGateway. - :type locales: :class:`huaweicloudsdkdc.v3.Locale` - """ - self._locales = locales - - @property - def current_peer_link_count(self): - """Gets the current_peer_link_count of this ExternalShowGlobalDcGateway. - - 当前对等体数量 - - :return: The current_peer_link_count of this ExternalShowGlobalDcGateway. - :rtype: int - """ - return self._current_peer_link_count - - @current_peer_link_count.setter - def current_peer_link_count(self, current_peer_link_count): - """Sets the current_peer_link_count of this ExternalShowGlobalDcGateway. - - 当前对等体数量 - - :param current_peer_link_count: The current_peer_link_count of this ExternalShowGlobalDcGateway. - :type current_peer_link_count: int - """ - self._current_peer_link_count = current_peer_link_count - - @property - def available_peer_link_count(self): - """Gets the available_peer_link_count of this ExternalShowGlobalDcGateway. - - 有效对等体数量 - - :return: The available_peer_link_count of this ExternalShowGlobalDcGateway. - :rtype: int - """ - return self._available_peer_link_count - - @available_peer_link_count.setter - def available_peer_link_count(self, available_peer_link_count): - """Sets the available_peer_link_count of this ExternalShowGlobalDcGateway. - - 有效对等体数量 - - :param available_peer_link_count: The available_peer_link_count of this ExternalShowGlobalDcGateway. - :type available_peer_link_count: int - """ - self._available_peer_link_count = available_peer_link_count - - @property - def admin_state_up(self): - """Gets the admin_state_up of this ExternalShowGlobalDcGateway. - - 是否冻结:true-是,false-否 - - :return: The admin_state_up of this ExternalShowGlobalDcGateway. - :rtype: bool - """ - return self._admin_state_up - - @admin_state_up.setter - def admin_state_up(self, admin_state_up): - """Sets the admin_state_up of this ExternalShowGlobalDcGateway. - - 是否冻结:true-是,false-否 - - :param admin_state_up: The admin_state_up of this ExternalShowGlobalDcGateway. - :type admin_state_up: bool - """ - self._admin_state_up = admin_state_up - - @property - def status(self): - """Gets the status of this ExternalShowGlobalDcGateway. - - 状态:ACTIVE-正常,ERROR-异常 - - :return: The status of this ExternalShowGlobalDcGateway. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this ExternalShowGlobalDcGateway. - - 状态:ACTIVE-正常,ERROR-异常 - - :param status: The status of this ExternalShowGlobalDcGateway. - :type status: str - """ - self._status = status - - @property - def created_time(self): - """Gets the created_time of this ExternalShowGlobalDcGateway. - - 创建时间 - - :return: The created_time of this ExternalShowGlobalDcGateway. - :rtype: datetime - """ - return self._created_time - - @created_time.setter - def created_time(self, created_time): - """Sets the created_time of this ExternalShowGlobalDcGateway. - - 创建时间 - - :param created_time: The created_time of this ExternalShowGlobalDcGateway. - :type created_time: datetime - """ - self._created_time = created_time - - @property - def updated_time(self): - """Gets the updated_time of this ExternalShowGlobalDcGateway. - - 更新时间 - - :return: The updated_time of this ExternalShowGlobalDcGateway. - :rtype: datetime - """ - return self._updated_time - - @updated_time.setter - def updated_time(self, updated_time): - """Sets the updated_time of this ExternalShowGlobalDcGateway. - - 更新时间 - - :param updated_time: The updated_time of this ExternalShowGlobalDcGateway. - :type updated_time: datetime - """ - self._updated_time = updated_time - - @property - def tags(self): - """Gets the tags of this ExternalShowGlobalDcGateway. - - 返回给RMS的资源标签 - - :return: The tags of this ExternalShowGlobalDcGateway. - :rtype: dict(str, str) - """ - return self._tags - - @tags.setter - def tags(self, tags): - """Sets the tags of this ExternalShowGlobalDcGateway. - - 返回给RMS的资源标签 - - :param tags: The tags of this ExternalShowGlobalDcGateway. - :type tags: dict(str, str) - """ - self._tags = tags - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ExternalShowGlobalDcGateway): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/external_show_peer_link.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/external_show_peer_link.py deleted file mode 100644 index 9ae530cc0e..0000000000 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/external_show_peer_link.py +++ /dev/null @@ -1,455 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class ExternalShowPeerLink: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'id': 'str', - 'tenant_id': 'str', - 'name': 'str', - 'description': 'str', - 'instance_id': 'str', - 'global_dc_gateway_id': 'str', - 'create_owner': 'str', - 'bandwidth_info': 'BandwidthInfoExternal', - 'peer_site': 'PeerSiteExternal', - 'status': 'str', - 'reason': 'str', - 'created_time': 'datetime', - 'updated_time': 'datetime' - } - - attribute_map = { - 'id': 'id', - 'tenant_id': 'tenant_id', - 'name': 'name', - 'description': 'description', - 'instance_id': 'instance_id', - 'global_dc_gateway_id': 'global_dc_gateway_id', - 'create_owner': 'create_owner', - 'bandwidth_info': 'bandwidth_info', - 'peer_site': 'peer_site', - 'status': 'status', - 'reason': 'reason', - 'created_time': 'created_time', - 'updated_time': 'updated_time' - } - - def __init__(self, id=None, tenant_id=None, name=None, description=None, instance_id=None, global_dc_gateway_id=None, create_owner=None, bandwidth_info=None, peer_site=None, status=None, reason=None, created_time=None, updated_time=None): - """ExternalShowPeerLink - - The model defined in huaweicloud sdk - - :param id: 唯一ID - :type id: str - :param tenant_id: 租户ID - :type tenant_id: str - :param name: 名称 - :type name: str - :param description: 描述信息 - :type description: str - :param instance_id: 实例ID - :type instance_id: str - :param global_dc_gateway_id: 全球接入网关ID - :type global_dc_gateway_id: str - :param create_owner: 创建者 - :type create_owner: str - :param bandwidth_info: - :type bandwidth_info: :class:`huaweicloudsdkdc.v3.BandwidthInfoExternal` - :param peer_site: - :type peer_site: :class:`huaweicloudsdkdc.v3.PeerSiteExternal` - :param status: 状态:ACTIVE-正常,ERROR-异常 - :type status: str - :param reason: 原因 - :type reason: str - :param created_time: 创建时间 - :type created_time: datetime - :param updated_time: 修改时间 - :type updated_time: datetime - """ - - - - self._id = None - self._tenant_id = None - self._name = None - self._description = None - self._instance_id = None - self._global_dc_gateway_id = None - self._create_owner = None - self._bandwidth_info = None - self._peer_site = None - self._status = None - self._reason = None - self._created_time = None - self._updated_time = None - self.discriminator = None - - if id is not None: - self.id = id - if tenant_id is not None: - self.tenant_id = tenant_id - if name is not None: - self.name = name - if description is not None: - self.description = description - if instance_id is not None: - self.instance_id = instance_id - if global_dc_gateway_id is not None: - self.global_dc_gateway_id = global_dc_gateway_id - if create_owner is not None: - self.create_owner = create_owner - if bandwidth_info is not None: - self.bandwidth_info = bandwidth_info - if peer_site is not None: - self.peer_site = peer_site - if status is not None: - self.status = status - if reason is not None: - self.reason = reason - if created_time is not None: - self.created_time = created_time - if updated_time is not None: - self.updated_time = updated_time - - @property - def id(self): - """Gets the id of this ExternalShowPeerLink. - - 唯一ID - - :return: The id of this ExternalShowPeerLink. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ExternalShowPeerLink. - - 唯一ID - - :param id: The id of this ExternalShowPeerLink. - :type id: str - """ - self._id = id - - @property - def tenant_id(self): - """Gets the tenant_id of this ExternalShowPeerLink. - - 租户ID - - :return: The tenant_id of this ExternalShowPeerLink. - :rtype: str - """ - return self._tenant_id - - @tenant_id.setter - def tenant_id(self, tenant_id): - """Sets the tenant_id of this ExternalShowPeerLink. - - 租户ID - - :param tenant_id: The tenant_id of this ExternalShowPeerLink. - :type tenant_id: str - """ - self._tenant_id = tenant_id - - @property - def name(self): - """Gets the name of this ExternalShowPeerLink. - - 名称 - - :return: The name of this ExternalShowPeerLink. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ExternalShowPeerLink. - - 名称 - - :param name: The name of this ExternalShowPeerLink. - :type name: str - """ - self._name = name - - @property - def description(self): - """Gets the description of this ExternalShowPeerLink. - - 描述信息 - - :return: The description of this ExternalShowPeerLink. - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this ExternalShowPeerLink. - - 描述信息 - - :param description: The description of this ExternalShowPeerLink. - :type description: str - """ - self._description = description - - @property - def instance_id(self): - """Gets the instance_id of this ExternalShowPeerLink. - - 实例ID - - :return: The instance_id of this ExternalShowPeerLink. - :rtype: str - """ - return self._instance_id - - @instance_id.setter - def instance_id(self, instance_id): - """Sets the instance_id of this ExternalShowPeerLink. - - 实例ID - - :param instance_id: The instance_id of this ExternalShowPeerLink. - :type instance_id: str - """ - self._instance_id = instance_id - - @property - def global_dc_gateway_id(self): - """Gets the global_dc_gateway_id of this ExternalShowPeerLink. - - 全球接入网关ID - - :return: The global_dc_gateway_id of this ExternalShowPeerLink. - :rtype: str - """ - return self._global_dc_gateway_id - - @global_dc_gateway_id.setter - def global_dc_gateway_id(self, global_dc_gateway_id): - """Sets the global_dc_gateway_id of this ExternalShowPeerLink. - - 全球接入网关ID - - :param global_dc_gateway_id: The global_dc_gateway_id of this ExternalShowPeerLink. - :type global_dc_gateway_id: str - """ - self._global_dc_gateway_id = global_dc_gateway_id - - @property - def create_owner(self): - """Gets the create_owner of this ExternalShowPeerLink. - - 创建者 - - :return: The create_owner of this ExternalShowPeerLink. - :rtype: str - """ - return self._create_owner - - @create_owner.setter - def create_owner(self, create_owner): - """Sets the create_owner of this ExternalShowPeerLink. - - 创建者 - - :param create_owner: The create_owner of this ExternalShowPeerLink. - :type create_owner: str - """ - self._create_owner = create_owner - - @property - def bandwidth_info(self): - """Gets the bandwidth_info of this ExternalShowPeerLink. - - :return: The bandwidth_info of this ExternalShowPeerLink. - :rtype: :class:`huaweicloudsdkdc.v3.BandwidthInfoExternal` - """ - return self._bandwidth_info - - @bandwidth_info.setter - def bandwidth_info(self, bandwidth_info): - """Sets the bandwidth_info of this ExternalShowPeerLink. - - :param bandwidth_info: The bandwidth_info of this ExternalShowPeerLink. - :type bandwidth_info: :class:`huaweicloudsdkdc.v3.BandwidthInfoExternal` - """ - self._bandwidth_info = bandwidth_info - - @property - def peer_site(self): - """Gets the peer_site of this ExternalShowPeerLink. - - :return: The peer_site of this ExternalShowPeerLink. - :rtype: :class:`huaweicloudsdkdc.v3.PeerSiteExternal` - """ - return self._peer_site - - @peer_site.setter - def peer_site(self, peer_site): - """Sets the peer_site of this ExternalShowPeerLink. - - :param peer_site: The peer_site of this ExternalShowPeerLink. - :type peer_site: :class:`huaweicloudsdkdc.v3.PeerSiteExternal` - """ - self._peer_site = peer_site - - @property - def status(self): - """Gets the status of this ExternalShowPeerLink. - - 状态:ACTIVE-正常,ERROR-异常 - - :return: The status of this ExternalShowPeerLink. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this ExternalShowPeerLink. - - 状态:ACTIVE-正常,ERROR-异常 - - :param status: The status of this ExternalShowPeerLink. - :type status: str - """ - self._status = status - - @property - def reason(self): - """Gets the reason of this ExternalShowPeerLink. - - 原因 - - :return: The reason of this ExternalShowPeerLink. - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """Sets the reason of this ExternalShowPeerLink. - - 原因 - - :param reason: The reason of this ExternalShowPeerLink. - :type reason: str - """ - self._reason = reason - - @property - def created_time(self): - """Gets the created_time of this ExternalShowPeerLink. - - 创建时间 - - :return: The created_time of this ExternalShowPeerLink. - :rtype: datetime - """ - return self._created_time - - @created_time.setter - def created_time(self, created_time): - """Sets the created_time of this ExternalShowPeerLink. - - 创建时间 - - :param created_time: The created_time of this ExternalShowPeerLink. - :type created_time: datetime - """ - self._created_time = created_time - - @property - def updated_time(self): - """Gets the updated_time of this ExternalShowPeerLink. - - 修改时间 - - :return: The updated_time of this ExternalShowPeerLink. - :rtype: datetime - """ - return self._updated_time - - @updated_time.setter - def updated_time(self, updated_time): - """Sets the updated_time of this ExternalShowPeerLink. - - 修改时间 - - :param updated_time: The updated_time of this ExternalShowPeerLink. - :type updated_time: datetime - """ - self._updated_time = updated_time - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ExternalShowPeerLink): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/external_update_peer_link.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/external_update_peer_link.py index 0c0bbab32a..8862c66670 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/external_update_peer_link.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/external_update_peer_link.py @@ -49,27 +49,27 @@ def __init__(self, id=None, tenant_id=None, name=None, description=None, global_ The model defined in huaweicloud sdk - :param id: + :param id: 关联连接的ID :type id: str - :param tenant_id: + :param tenant_id: 关联连接归属的租户ID :type tenant_id: str - :param name: + :param name: 关联连接的名字 :type name: str - :param description: + :param description: 关联连接的描述信息 :type description: str - :param global_dc_gateway_id: + :param global_dc_gateway_id: 关联连接归属的接入网关ID :type global_dc_gateway_id: str :param bandwidth_info: :type bandwidth_info: :class:`huaweicloudsdkdc.v3.BandwidthInfoExternal` :param peer_site: :type peer_site: :class:`huaweicloudsdkdc.v3.PeerSiteExternal` - :param status: + :param status: 关联连接的状态 :type status: str - :param reason: + :param reason: 失败原因 :type reason: str - :param created_time: + :param created_time: 创建时间 :type created_time: datetime - :param updated_time: + :param updated_time: 更新时间 :type updated_time: datetime """ @@ -115,6 +115,8 @@ def __init__(self, id=None, tenant_id=None, name=None, description=None, global_ def id(self): """Gets the id of this ExternalUpdatePeerLink. + 关联连接的ID + :return: The id of this ExternalUpdatePeerLink. :rtype: str """ @@ -124,6 +126,8 @@ def id(self): def id(self, id): """Sets the id of this ExternalUpdatePeerLink. + 关联连接的ID + :param id: The id of this ExternalUpdatePeerLink. :type id: str """ @@ -133,6 +137,8 @@ def id(self, id): def tenant_id(self): """Gets the tenant_id of this ExternalUpdatePeerLink. + 关联连接归属的租户ID + :return: The tenant_id of this ExternalUpdatePeerLink. :rtype: str """ @@ -142,6 +148,8 @@ def tenant_id(self): def tenant_id(self, tenant_id): """Sets the tenant_id of this ExternalUpdatePeerLink. + 关联连接归属的租户ID + :param tenant_id: The tenant_id of this ExternalUpdatePeerLink. :type tenant_id: str """ @@ -151,6 +159,8 @@ def tenant_id(self, tenant_id): def name(self): """Gets the name of this ExternalUpdatePeerLink. + 关联连接的名字 + :return: The name of this ExternalUpdatePeerLink. :rtype: str """ @@ -160,6 +170,8 @@ def name(self): def name(self, name): """Sets the name of this ExternalUpdatePeerLink. + 关联连接的名字 + :param name: The name of this ExternalUpdatePeerLink. :type name: str """ @@ -169,6 +181,8 @@ def name(self, name): def description(self): """Gets the description of this ExternalUpdatePeerLink. + 关联连接的描述信息 + :return: The description of this ExternalUpdatePeerLink. :rtype: str """ @@ -178,6 +192,8 @@ def description(self): def description(self, description): """Sets the description of this ExternalUpdatePeerLink. + 关联连接的描述信息 + :param description: The description of this ExternalUpdatePeerLink. :type description: str """ @@ -187,6 +203,8 @@ def description(self, description): def global_dc_gateway_id(self): """Gets the global_dc_gateway_id of this ExternalUpdatePeerLink. + 关联连接归属的接入网关ID + :return: The global_dc_gateway_id of this ExternalUpdatePeerLink. :rtype: str """ @@ -196,6 +214,8 @@ def global_dc_gateway_id(self): def global_dc_gateway_id(self, global_dc_gateway_id): """Sets the global_dc_gateway_id of this ExternalUpdatePeerLink. + 关联连接归属的接入网关ID + :param global_dc_gateway_id: The global_dc_gateway_id of this ExternalUpdatePeerLink. :type global_dc_gateway_id: str """ @@ -241,6 +261,8 @@ def peer_site(self, peer_site): def status(self): """Gets the status of this ExternalUpdatePeerLink. + 关联连接的状态 + :return: The status of this ExternalUpdatePeerLink. :rtype: str """ @@ -250,6 +272,8 @@ def status(self): def status(self, status): """Sets the status of this ExternalUpdatePeerLink. + 关联连接的状态 + :param status: The status of this ExternalUpdatePeerLink. :type status: str """ @@ -259,6 +283,8 @@ def status(self, status): def reason(self): """Gets the reason of this ExternalUpdatePeerLink. + 失败原因 + :return: The reason of this ExternalUpdatePeerLink. :rtype: str """ @@ -268,6 +294,8 @@ def reason(self): def reason(self, reason): """Sets the reason of this ExternalUpdatePeerLink. + 失败原因 + :param reason: The reason of this ExternalUpdatePeerLink. :type reason: str """ @@ -277,6 +305,8 @@ def reason(self, reason): def created_time(self): """Gets the created_time of this ExternalUpdatePeerLink. + 创建时间 + :return: The created_time of this ExternalUpdatePeerLink. :rtype: datetime """ @@ -286,6 +316,8 @@ def created_time(self): def created_time(self, created_time): """Sets the created_time of this ExternalUpdatePeerLink. + 创建时间 + :param created_time: The created_time of this ExternalUpdatePeerLink. :type created_time: datetime """ @@ -295,6 +327,8 @@ def created_time(self, created_time): def updated_time(self): """Gets the updated_time of this ExternalUpdatePeerLink. + 更新时间 + :return: The updated_time of this ExternalUpdatePeerLink. :rtype: datetime """ @@ -304,6 +338,8 @@ def updated_time(self): def updated_time(self, updated_time): """Sets the updated_time of this ExternalUpdatePeerLink. + 更新时间 + :param updated_time: The updated_time of this ExternalUpdatePeerLink. :type updated_time: datetime """ diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_gdgw_routetable_request_body_gdgw_routetable.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/gdgw_route_table_request.py similarity index 53% rename from huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_gdgw_routetable_request_body_gdgw_routetable.py rename to huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/gdgw_route_table_request.py index ff621600cf..a029b63be0 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_gdgw_routetable_request_body_gdgw_routetable.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/gdgw_route_table_request.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class UpdateGdgwRoutetableRequestBodyGdgwRoutetable: +class GdgwRouteTableRequest: """ Attributes: @@ -17,9 +17,9 @@ class UpdateGdgwRoutetableRequestBodyGdgwRoutetable: sensitive_list = [] openapi_types = { - 'add_routes': 'list[UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes]', - 'del_routes': 'list[UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes]', - 'update_routes': 'list[UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes]' + 'add_routes': 'list[AddGdgwRouteAction]', + 'del_routes': 'list[DeleteGdgwRouteAction]', + 'update_routes': 'list[UpdateRouteAction]' } attribute_map = { @@ -29,16 +29,16 @@ class UpdateGdgwRoutetableRequestBodyGdgwRoutetable: } def __init__(self, add_routes=None, del_routes=None, update_routes=None): - """UpdateGdgwRoutetableRequestBodyGdgwRoutetable + """GdgwRouteTableRequest The model defined in huaweicloud sdk - :param add_routes: - :type add_routes: list[:class:`huaweicloudsdkdc.v3.UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes`] - :param del_routes: 删除的路由 - :type del_routes: list[:class:`huaweicloudsdkdc.v3.UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes`] - :param update_routes: 仅更新该条路由的附加信息,不执行交换机的路由更新操作。当前支持更新:路由描述-description信息 - :type update_routes: list[:class:`huaweicloudsdkdc.v3.UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes`] + :param add_routes: 需要添加的路由 + :type add_routes: list[:class:`huaweicloudsdkdc.v3.AddGdgwRouteAction`] + :param del_routes: 需要删除的路由 + :type del_routes: list[:class:`huaweicloudsdkdc.v3.DeleteGdgwRouteAction`] + :param update_routes: 需要更新的路 **仅更新该条路由的附加信息,不执行交换机的路由更新操作。当前支持更新:路由描述-description信息** + :type update_routes: list[:class:`huaweicloudsdkdc.v3.UpdateRouteAction`] """ @@ -57,63 +57,67 @@ def __init__(self, add_routes=None, del_routes=None, update_routes=None): @property def add_routes(self): - """Gets the add_routes of this UpdateGdgwRoutetableRequestBodyGdgwRoutetable. + """Gets the add_routes of this GdgwRouteTableRequest. - :return: The add_routes of this UpdateGdgwRoutetableRequestBodyGdgwRoutetable. - :rtype: list[:class:`huaweicloudsdkdc.v3.UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes`] + 需要添加的路由 + + :return: The add_routes of this GdgwRouteTableRequest. + :rtype: list[:class:`huaweicloudsdkdc.v3.AddGdgwRouteAction`] """ return self._add_routes @add_routes.setter def add_routes(self, add_routes): - """Sets the add_routes of this UpdateGdgwRoutetableRequestBodyGdgwRoutetable. + """Sets the add_routes of this GdgwRouteTableRequest. + + 需要添加的路由 - :param add_routes: The add_routes of this UpdateGdgwRoutetableRequestBodyGdgwRoutetable. - :type add_routes: list[:class:`huaweicloudsdkdc.v3.UpdateGdgwRoutetableRequestBodyGdgwRoutetableAddRoutes`] + :param add_routes: The add_routes of this GdgwRouteTableRequest. + :type add_routes: list[:class:`huaweicloudsdkdc.v3.AddGdgwRouteAction`] """ self._add_routes = add_routes @property def del_routes(self): - """Gets the del_routes of this UpdateGdgwRoutetableRequestBodyGdgwRoutetable. + """Gets the del_routes of this GdgwRouteTableRequest. - 删除的路由 + 需要删除的路由 - :return: The del_routes of this UpdateGdgwRoutetableRequestBodyGdgwRoutetable. - :rtype: list[:class:`huaweicloudsdkdc.v3.UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes`] + :return: The del_routes of this GdgwRouteTableRequest. + :rtype: list[:class:`huaweicloudsdkdc.v3.DeleteGdgwRouteAction`] """ return self._del_routes @del_routes.setter def del_routes(self, del_routes): - """Sets the del_routes of this UpdateGdgwRoutetableRequestBodyGdgwRoutetable. + """Sets the del_routes of this GdgwRouteTableRequest. - 删除的路由 + 需要删除的路由 - :param del_routes: The del_routes of this UpdateGdgwRoutetableRequestBodyGdgwRoutetable. - :type del_routes: list[:class:`huaweicloudsdkdc.v3.UpdateGdgwRoutetableRequestBodyGdgwRoutetableDelRoutes`] + :param del_routes: The del_routes of this GdgwRouteTableRequest. + :type del_routes: list[:class:`huaweicloudsdkdc.v3.DeleteGdgwRouteAction`] """ self._del_routes = del_routes @property def update_routes(self): - """Gets the update_routes of this UpdateGdgwRoutetableRequestBodyGdgwRoutetable. + """Gets the update_routes of this GdgwRouteTableRequest. - 仅更新该条路由的附加信息,不执行交换机的路由更新操作。当前支持更新:路由描述-description信息 + 需要更新的路 **仅更新该条路由的附加信息,不执行交换机的路由更新操作。当前支持更新:路由描述-description信息** - :return: The update_routes of this UpdateGdgwRoutetableRequestBodyGdgwRoutetable. - :rtype: list[:class:`huaweicloudsdkdc.v3.UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes`] + :return: The update_routes of this GdgwRouteTableRequest. + :rtype: list[:class:`huaweicloudsdkdc.v3.UpdateRouteAction`] """ return self._update_routes @update_routes.setter def update_routes(self, update_routes): - """Sets the update_routes of this UpdateGdgwRoutetableRequestBodyGdgwRoutetable. + """Sets the update_routes of this GdgwRouteTableRequest. - 仅更新该条路由的附加信息,不执行交换机的路由更新操作。当前支持更新:路由描述-description信息 + 需要更新的路 **仅更新该条路由的附加信息,不执行交换机的路由更新操作。当前支持更新:路由描述-description信息** - :param update_routes: The update_routes of this UpdateGdgwRoutetableRequestBodyGdgwRoutetable. - :type update_routes: list[:class:`huaweicloudsdkdc.v3.UpdateGdgwRoutetableRequestBodyGdgwRoutetableUpdateRoutes`] + :param update_routes: The update_routes of this GdgwRouteTableRequest. + :type update_routes: list[:class:`huaweicloudsdkdc.v3.UpdateRouteAction`] """ self._update_routes = update_routes @@ -159,7 +163,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, UpdateGdgwRoutetableRequestBodyGdgwRoutetable): + if not isinstance(other, GdgwRouteTableRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/rms_show_global_dc_gateway.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/global_dc_gateway_entry.py similarity index 54% rename from huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/rms_show_global_dc_gateway.py rename to huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/global_dc_gateway_entry.py index 6b95f19fda..ebffdb548d 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/rms_show_global_dc_gateway.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/global_dc_gateway_entry.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RmsShowGlobalDcGateway: +class GlobalDcGatewayEntry: """ Attributes: @@ -23,19 +23,18 @@ class RmsShowGlobalDcGateway: 'description': 'str', 'enterprise_project_id': 'str', 'global_center_network_id': 'str', - 'site_network_id': 'str', - 'cloud_connection_id': 'str', 'bgp_asn': 'int', 'region_id': 'str', 'location_name': 'str', - 'locales': 'Locale', - 'current_peer_link_count': 'int', - 'available_peer_link_count': 'int', + 'locales': 'LocalesBody', + 'current_peer_link_count': 'str', + 'available_peer_link_count': 'str', + 'tags': 'list[Tag]', 'admin_state_up': 'bool', - 'status': 'str', + 'status': 'GlobalDcGatewayStatus', 'created_time': 'datetime', 'updated_time': 'datetime', - 'tags': 'dict(str, str)' + 'address_family': 'str' } attribute_map = { @@ -45,64 +44,61 @@ class RmsShowGlobalDcGateway: 'description': 'description', 'enterprise_project_id': 'enterprise_project_id', 'global_center_network_id': 'global_center_network_id', - 'site_network_id': 'site_network_id', - 'cloud_connection_id': 'cloud_connection_id', 'bgp_asn': 'bgp_asn', 'region_id': 'region_id', 'location_name': 'location_name', 'locales': 'locales', 'current_peer_link_count': 'current_peer_link_count', 'available_peer_link_count': 'available_peer_link_count', + 'tags': 'tags', 'admin_state_up': 'admin_state_up', 'status': 'status', 'created_time': 'created_time', 'updated_time': 'updated_time', - 'tags': 'tags' + 'address_family': 'address_family' } - def __init__(self, id=None, tenant_id=None, name=None, description=None, enterprise_project_id=None, global_center_network_id=None, site_network_id=None, cloud_connection_id=None, bgp_asn=None, region_id=None, location_name=None, locales=None, current_peer_link_count=None, available_peer_link_count=None, admin_state_up=None, status=None, created_time=None, updated_time=None, tags=None): - """RmsShowGlobalDcGateway + def __init__(self, id=None, tenant_id=None, name=None, description=None, enterprise_project_id=None, global_center_network_id=None, bgp_asn=None, region_id=None, location_name=None, locales=None, current_peer_link_count=None, available_peer_link_count=None, tags=None, admin_state_up=None, status=None, created_time=None, updated_time=None, address_family=None): + """GlobalDcGatewayEntry The model defined in huaweicloud sdk - :param id: 唯一ID + :param id: 专线全域接入网关(global-dc-gateway)ID :type id: str - :param tenant_id: 租户ID + :param tenant_id: 项目ID。 :type tenant_id: str - :param name: 名称 + :param name: global-dc-gateway名字。 :type name: str :param description: 描述信息 :type description: str - :param enterprise_project_id: 企业项目ID + :param enterprise_project_id: global-dc-gateway所属的企业项目ID。 :type enterprise_project_id: str - :param global_center_network_id: 全球中心网路ID + :param global_center_network_id: DGW加载的全球中心网络实例的ID :type global_center_network_id: str - :param site_network_id: 站点网络ID - :type site_network_id: str - :param cloud_connection_id: 云连接ID - :type cloud_connection_id: str - :param bgp_asn: BGP模式AS号 + :param bgp_asn: DGW对应BGP的ASN编号 :type bgp_asn: int - :param region_id: 局点ID + :param region_id: DGW所属Region :type region_id: str - :param location_name: 位置名称 + :param location_name: DGW创建网关设备归属的位置 :type location_name: str :param locales: - :type locales: :class:`huaweicloudsdkdc.v3.Locale` - :param current_peer_link_count: 当前对等体数量 - :type current_peer_link_count: int - :param available_peer_link_count: 有效对等体数量 - :type available_peer_link_count: int - :param admin_state_up: 是否冻结:true-是,false-否 + :type locales: :class:`huaweicloudsdkdc.v3.LocalesBody` + :param current_peer_link_count: 全域接入网关(GDGW)上关联连接的数量,表示DGW挂载ER的数量 + :type current_peer_link_count: str + :param available_peer_link_count: 该全域接入网关上GDGW允许创建关联连接(PeerLink)的数量 + :type available_peer_link_count: str + :param tags: global-dc-gateway关联TAG。 + :type tags: list[:class:`huaweicloudsdkdc.v3.Tag`] + :param admin_state_up: 该GDGW的管理状态,true为激活状态、false为冻结状态 :type admin_state_up: bool - :param status: 状态:ACTIVE-正常,ERROR-异常 - :type status: str - :param created_time: 创建时间 + :param status: + :type status: :class:`huaweicloudsdkdc.v3.GlobalDcGatewayStatus` + :param created_time: 创建时间。 :type created_time: datetime - :param updated_time: 更新时间 + :param updated_time: 更新时间。 :type updated_time: datetime - :param tags: 返回给RMS的资源标签 - :type tags: dict(str, str) + :param address_family: 网关的地址簇,IPv4或者ipv6和IPv4双栈 - ipv4 - dual + :type address_family: str """ @@ -113,19 +109,18 @@ def __init__(self, id=None, tenant_id=None, name=None, description=None, enterpr self._description = None self._enterprise_project_id = None self._global_center_network_id = None - self._site_network_id = None - self._cloud_connection_id = None self._bgp_asn = None self._region_id = None self._location_name = None self._locales = None self._current_peer_link_count = None self._available_peer_link_count = None + self._tags = None self._admin_state_up = None self._status = None self._created_time = None self._updated_time = None - self._tags = None + self._address_family = None self.discriminator = None if id is not None: @@ -140,10 +135,6 @@ def __init__(self, id=None, tenant_id=None, name=None, description=None, enterpr self.enterprise_project_id = enterprise_project_id if global_center_network_id is not None: self.global_center_network_id = global_center_network_id - if site_network_id is not None: - self.site_network_id = site_network_id - if cloud_connection_id is not None: - self.cloud_connection_id = cloud_connection_id if bgp_asn is not None: self.bgp_asn = bgp_asn if region_id is not None: @@ -156,6 +147,8 @@ def __init__(self, id=None, tenant_id=None, name=None, description=None, enterpr self.current_peer_link_count = current_peer_link_count if available_peer_link_count is not None: self.available_peer_link_count = available_peer_link_count + if tags is not None: + self.tags = tags if admin_state_up is not None: self.admin_state_up = admin_state_up if status is not None: @@ -164,422 +157,396 @@ def __init__(self, id=None, tenant_id=None, name=None, description=None, enterpr self.created_time = created_time if updated_time is not None: self.updated_time = updated_time - if tags is not None: - self.tags = tags + if address_family is not None: + self.address_family = address_family @property def id(self): - """Gets the id of this RmsShowGlobalDcGateway. + """Gets the id of this GlobalDcGatewayEntry. - 唯一ID + 专线全域接入网关(global-dc-gateway)ID - :return: The id of this RmsShowGlobalDcGateway. + :return: The id of this GlobalDcGatewayEntry. :rtype: str """ return self._id @id.setter def id(self, id): - """Sets the id of this RmsShowGlobalDcGateway. + """Sets the id of this GlobalDcGatewayEntry. - 唯一ID + 专线全域接入网关(global-dc-gateway)ID - :param id: The id of this RmsShowGlobalDcGateway. + :param id: The id of this GlobalDcGatewayEntry. :type id: str """ self._id = id @property def tenant_id(self): - """Gets the tenant_id of this RmsShowGlobalDcGateway. + """Gets the tenant_id of this GlobalDcGatewayEntry. - 租户ID + 项目ID。 - :return: The tenant_id of this RmsShowGlobalDcGateway. + :return: The tenant_id of this GlobalDcGatewayEntry. :rtype: str """ return self._tenant_id @tenant_id.setter def tenant_id(self, tenant_id): - """Sets the tenant_id of this RmsShowGlobalDcGateway. + """Sets the tenant_id of this GlobalDcGatewayEntry. - 租户ID + 项目ID。 - :param tenant_id: The tenant_id of this RmsShowGlobalDcGateway. + :param tenant_id: The tenant_id of this GlobalDcGatewayEntry. :type tenant_id: str """ self._tenant_id = tenant_id @property def name(self): - """Gets the name of this RmsShowGlobalDcGateway. + """Gets the name of this GlobalDcGatewayEntry. - 名称 + global-dc-gateway名字。 - :return: The name of this RmsShowGlobalDcGateway. + :return: The name of this GlobalDcGatewayEntry. :rtype: str """ return self._name @name.setter def name(self, name): - """Sets the name of this RmsShowGlobalDcGateway. + """Sets the name of this GlobalDcGatewayEntry. - 名称 + global-dc-gateway名字。 - :param name: The name of this RmsShowGlobalDcGateway. + :param name: The name of this GlobalDcGatewayEntry. :type name: str """ self._name = name @property def description(self): - """Gets the description of this RmsShowGlobalDcGateway. + """Gets the description of this GlobalDcGatewayEntry. 描述信息 - :return: The description of this RmsShowGlobalDcGateway. + :return: The description of this GlobalDcGatewayEntry. :rtype: str """ return self._description @description.setter def description(self, description): - """Sets the description of this RmsShowGlobalDcGateway. + """Sets the description of this GlobalDcGatewayEntry. 描述信息 - :param description: The description of this RmsShowGlobalDcGateway. + :param description: The description of this GlobalDcGatewayEntry. :type description: str """ self._description = description @property def enterprise_project_id(self): - """Gets the enterprise_project_id of this RmsShowGlobalDcGateway. + """Gets the enterprise_project_id of this GlobalDcGatewayEntry. - 企业项目ID + global-dc-gateway所属的企业项目ID。 - :return: The enterprise_project_id of this RmsShowGlobalDcGateway. + :return: The enterprise_project_id of this GlobalDcGatewayEntry. :rtype: str """ return self._enterprise_project_id @enterprise_project_id.setter def enterprise_project_id(self, enterprise_project_id): - """Sets the enterprise_project_id of this RmsShowGlobalDcGateway. + """Sets the enterprise_project_id of this GlobalDcGatewayEntry. - 企业项目ID + global-dc-gateway所属的企业项目ID。 - :param enterprise_project_id: The enterprise_project_id of this RmsShowGlobalDcGateway. + :param enterprise_project_id: The enterprise_project_id of this GlobalDcGatewayEntry. :type enterprise_project_id: str """ self._enterprise_project_id = enterprise_project_id @property def global_center_network_id(self): - """Gets the global_center_network_id of this RmsShowGlobalDcGateway. + """Gets the global_center_network_id of this GlobalDcGatewayEntry. - 全球中心网路ID + DGW加载的全球中心网络实例的ID - :return: The global_center_network_id of this RmsShowGlobalDcGateway. + :return: The global_center_network_id of this GlobalDcGatewayEntry. :rtype: str """ return self._global_center_network_id @global_center_network_id.setter def global_center_network_id(self, global_center_network_id): - """Sets the global_center_network_id of this RmsShowGlobalDcGateway. + """Sets the global_center_network_id of this GlobalDcGatewayEntry. - 全球中心网路ID + DGW加载的全球中心网络实例的ID - :param global_center_network_id: The global_center_network_id of this RmsShowGlobalDcGateway. + :param global_center_network_id: The global_center_network_id of this GlobalDcGatewayEntry. :type global_center_network_id: str """ self._global_center_network_id = global_center_network_id - @property - def site_network_id(self): - """Gets the site_network_id of this RmsShowGlobalDcGateway. - - 站点网络ID - - :return: The site_network_id of this RmsShowGlobalDcGateway. - :rtype: str - """ - return self._site_network_id - - @site_network_id.setter - def site_network_id(self, site_network_id): - """Sets the site_network_id of this RmsShowGlobalDcGateway. - - 站点网络ID - - :param site_network_id: The site_network_id of this RmsShowGlobalDcGateway. - :type site_network_id: str - """ - self._site_network_id = site_network_id - - @property - def cloud_connection_id(self): - """Gets the cloud_connection_id of this RmsShowGlobalDcGateway. - - 云连接ID - - :return: The cloud_connection_id of this RmsShowGlobalDcGateway. - :rtype: str - """ - return self._cloud_connection_id - - @cloud_connection_id.setter - def cloud_connection_id(self, cloud_connection_id): - """Sets the cloud_connection_id of this RmsShowGlobalDcGateway. - - 云连接ID - - :param cloud_connection_id: The cloud_connection_id of this RmsShowGlobalDcGateway. - :type cloud_connection_id: str - """ - self._cloud_connection_id = cloud_connection_id - @property def bgp_asn(self): - """Gets the bgp_asn of this RmsShowGlobalDcGateway. + """Gets the bgp_asn of this GlobalDcGatewayEntry. - BGP模式AS号 + DGW对应BGP的ASN编号 - :return: The bgp_asn of this RmsShowGlobalDcGateway. + :return: The bgp_asn of this GlobalDcGatewayEntry. :rtype: int """ return self._bgp_asn @bgp_asn.setter def bgp_asn(self, bgp_asn): - """Sets the bgp_asn of this RmsShowGlobalDcGateway. + """Sets the bgp_asn of this GlobalDcGatewayEntry. - BGP模式AS号 + DGW对应BGP的ASN编号 - :param bgp_asn: The bgp_asn of this RmsShowGlobalDcGateway. + :param bgp_asn: The bgp_asn of this GlobalDcGatewayEntry. :type bgp_asn: int """ self._bgp_asn = bgp_asn @property def region_id(self): - """Gets the region_id of this RmsShowGlobalDcGateway. + """Gets the region_id of this GlobalDcGatewayEntry. - 局点ID + DGW所属Region - :return: The region_id of this RmsShowGlobalDcGateway. + :return: The region_id of this GlobalDcGatewayEntry. :rtype: str """ return self._region_id @region_id.setter def region_id(self, region_id): - """Sets the region_id of this RmsShowGlobalDcGateway. + """Sets the region_id of this GlobalDcGatewayEntry. - 局点ID + DGW所属Region - :param region_id: The region_id of this RmsShowGlobalDcGateway. + :param region_id: The region_id of this GlobalDcGatewayEntry. :type region_id: str """ self._region_id = region_id @property def location_name(self): - """Gets the location_name of this RmsShowGlobalDcGateway. + """Gets the location_name of this GlobalDcGatewayEntry. - 位置名称 + DGW创建网关设备归属的位置 - :return: The location_name of this RmsShowGlobalDcGateway. + :return: The location_name of this GlobalDcGatewayEntry. :rtype: str """ return self._location_name @location_name.setter def location_name(self, location_name): - """Sets the location_name of this RmsShowGlobalDcGateway. + """Sets the location_name of this GlobalDcGatewayEntry. - 位置名称 + DGW创建网关设备归属的位置 - :param location_name: The location_name of this RmsShowGlobalDcGateway. + :param location_name: The location_name of this GlobalDcGatewayEntry. :type location_name: str """ self._location_name = location_name @property def locales(self): - """Gets the locales of this RmsShowGlobalDcGateway. + """Gets the locales of this GlobalDcGatewayEntry. - :return: The locales of this RmsShowGlobalDcGateway. - :rtype: :class:`huaweicloudsdkdc.v3.Locale` + :return: The locales of this GlobalDcGatewayEntry. + :rtype: :class:`huaweicloudsdkdc.v3.LocalesBody` """ return self._locales @locales.setter def locales(self, locales): - """Sets the locales of this RmsShowGlobalDcGateway. + """Sets the locales of this GlobalDcGatewayEntry. - :param locales: The locales of this RmsShowGlobalDcGateway. - :type locales: :class:`huaweicloudsdkdc.v3.Locale` + :param locales: The locales of this GlobalDcGatewayEntry. + :type locales: :class:`huaweicloudsdkdc.v3.LocalesBody` """ self._locales = locales @property def current_peer_link_count(self): - """Gets the current_peer_link_count of this RmsShowGlobalDcGateway. + """Gets the current_peer_link_count of this GlobalDcGatewayEntry. - 当前对等体数量 + 全域接入网关(GDGW)上关联连接的数量,表示DGW挂载ER的数量 - :return: The current_peer_link_count of this RmsShowGlobalDcGateway. - :rtype: int + :return: The current_peer_link_count of this GlobalDcGatewayEntry. + :rtype: str """ return self._current_peer_link_count @current_peer_link_count.setter def current_peer_link_count(self, current_peer_link_count): - """Sets the current_peer_link_count of this RmsShowGlobalDcGateway. + """Sets the current_peer_link_count of this GlobalDcGatewayEntry. - 当前对等体数量 + 全域接入网关(GDGW)上关联连接的数量,表示DGW挂载ER的数量 - :param current_peer_link_count: The current_peer_link_count of this RmsShowGlobalDcGateway. - :type current_peer_link_count: int + :param current_peer_link_count: The current_peer_link_count of this GlobalDcGatewayEntry. + :type current_peer_link_count: str """ self._current_peer_link_count = current_peer_link_count @property def available_peer_link_count(self): - """Gets the available_peer_link_count of this RmsShowGlobalDcGateway. + """Gets the available_peer_link_count of this GlobalDcGatewayEntry. - 有效对等体数量 + 该全域接入网关上GDGW允许创建关联连接(PeerLink)的数量 - :return: The available_peer_link_count of this RmsShowGlobalDcGateway. - :rtype: int + :return: The available_peer_link_count of this GlobalDcGatewayEntry. + :rtype: str """ return self._available_peer_link_count @available_peer_link_count.setter def available_peer_link_count(self, available_peer_link_count): - """Sets the available_peer_link_count of this RmsShowGlobalDcGateway. + """Sets the available_peer_link_count of this GlobalDcGatewayEntry. - 有效对等体数量 + 该全域接入网关上GDGW允许创建关联连接(PeerLink)的数量 - :param available_peer_link_count: The available_peer_link_count of this RmsShowGlobalDcGateway. - :type available_peer_link_count: int + :param available_peer_link_count: The available_peer_link_count of this GlobalDcGatewayEntry. + :type available_peer_link_count: str """ self._available_peer_link_count = available_peer_link_count + @property + def tags(self): + """Gets the tags of this GlobalDcGatewayEntry. + + global-dc-gateway关联TAG。 + + :return: The tags of this GlobalDcGatewayEntry. + :rtype: list[:class:`huaweicloudsdkdc.v3.Tag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this GlobalDcGatewayEntry. + + global-dc-gateway关联TAG。 + + :param tags: The tags of this GlobalDcGatewayEntry. + :type tags: list[:class:`huaweicloudsdkdc.v3.Tag`] + """ + self._tags = tags + @property def admin_state_up(self): - """Gets the admin_state_up of this RmsShowGlobalDcGateway. + """Gets the admin_state_up of this GlobalDcGatewayEntry. - 是否冻结:true-是,false-否 + 该GDGW的管理状态,true为激活状态、false为冻结状态 - :return: The admin_state_up of this RmsShowGlobalDcGateway. + :return: The admin_state_up of this GlobalDcGatewayEntry. :rtype: bool """ return self._admin_state_up @admin_state_up.setter def admin_state_up(self, admin_state_up): - """Sets the admin_state_up of this RmsShowGlobalDcGateway. + """Sets the admin_state_up of this GlobalDcGatewayEntry. - 是否冻结:true-是,false-否 + 该GDGW的管理状态,true为激活状态、false为冻结状态 - :param admin_state_up: The admin_state_up of this RmsShowGlobalDcGateway. + :param admin_state_up: The admin_state_up of this GlobalDcGatewayEntry. :type admin_state_up: bool """ self._admin_state_up = admin_state_up @property def status(self): - """Gets the status of this RmsShowGlobalDcGateway. + """Gets the status of this GlobalDcGatewayEntry. - 状态:ACTIVE-正常,ERROR-异常 - - :return: The status of this RmsShowGlobalDcGateway. - :rtype: str + :return: The status of this GlobalDcGatewayEntry. + :rtype: :class:`huaweicloudsdkdc.v3.GlobalDcGatewayStatus` """ return self._status @status.setter def status(self, status): - """Sets the status of this RmsShowGlobalDcGateway. - - 状态:ACTIVE-正常,ERROR-异常 + """Sets the status of this GlobalDcGatewayEntry. - :param status: The status of this RmsShowGlobalDcGateway. - :type status: str + :param status: The status of this GlobalDcGatewayEntry. + :type status: :class:`huaweicloudsdkdc.v3.GlobalDcGatewayStatus` """ self._status = status @property def created_time(self): - """Gets the created_time of this RmsShowGlobalDcGateway. + """Gets the created_time of this GlobalDcGatewayEntry. - 创建时间 + 创建时间。 - :return: The created_time of this RmsShowGlobalDcGateway. + :return: The created_time of this GlobalDcGatewayEntry. :rtype: datetime """ return self._created_time @created_time.setter def created_time(self, created_time): - """Sets the created_time of this RmsShowGlobalDcGateway. + """Sets the created_time of this GlobalDcGatewayEntry. - 创建时间 + 创建时间。 - :param created_time: The created_time of this RmsShowGlobalDcGateway. + :param created_time: The created_time of this GlobalDcGatewayEntry. :type created_time: datetime """ self._created_time = created_time @property def updated_time(self): - """Gets the updated_time of this RmsShowGlobalDcGateway. + """Gets the updated_time of this GlobalDcGatewayEntry. - 更新时间 + 更新时间。 - :return: The updated_time of this RmsShowGlobalDcGateway. + :return: The updated_time of this GlobalDcGatewayEntry. :rtype: datetime """ return self._updated_time @updated_time.setter def updated_time(self, updated_time): - """Sets the updated_time of this RmsShowGlobalDcGateway. + """Sets the updated_time of this GlobalDcGatewayEntry. - 更新时间 + 更新时间。 - :param updated_time: The updated_time of this RmsShowGlobalDcGateway. + :param updated_time: The updated_time of this GlobalDcGatewayEntry. :type updated_time: datetime """ self._updated_time = updated_time @property - def tags(self): - """Gets the tags of this RmsShowGlobalDcGateway. + def address_family(self): + """Gets the address_family of this GlobalDcGatewayEntry. - 返回给RMS的资源标签 + 网关的地址簇,IPv4或者ipv6和IPv4双栈 - ipv4 - dual - :return: The tags of this RmsShowGlobalDcGateway. - :rtype: dict(str, str) + :return: The address_family of this GlobalDcGatewayEntry. + :rtype: str """ - return self._tags + return self._address_family - @tags.setter - def tags(self, tags): - """Sets the tags of this RmsShowGlobalDcGateway. + @address_family.setter + def address_family(self, address_family): + """Sets the address_family of this GlobalDcGatewayEntry. - 返回给RMS的资源标签 + 网关的地址簇,IPv4或者ipv6和IPv4双栈 - ipv4 - dual - :param tags: The tags of this RmsShowGlobalDcGateway. - :type tags: dict(str, str) + :param address_family: The address_family of this GlobalDcGatewayEntry. + :type address_family: str """ - self._tags = tags + self._address_family = address_family def to_dict(self): """Returns the model properties as a dict""" @@ -623,7 +590,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RmsShowGlobalDcGateway): + if not isinstance(other, GlobalDcGatewayEntry): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/global_dc_gateway_status.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/global_dc_gateway_status.py new file mode 100644 index 0000000000..90b4e5147f --- /dev/null +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/global_dc_gateway_status.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class GlobalDcGatewayStatus: + """ + allowed enum values + """ + DOWN = "DOWN" + PENDING_UPDATE = "PENDING_UPDATE" + ACTIVE = "ACTIVE" + ERROR = "ERROR" + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """GlobalDcGatewayStatus + + The model defined in huaweicloud sdk + + """ + + + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GlobalDcGatewayStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/hosted_direct_connect.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/hosted_direct_connect.py index 818f0f9577..37300e973e 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/hosted_direct_connect.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/hosted_direct_connect.py @@ -29,8 +29,8 @@ class HostedDirectConnect: 'admin_state_up': 'bool', 'vlan': 'int', 'status': 'str', - 'apply_time': 'str', - 'create_time': 'str', + 'apply_time': 'datetime', + 'create_time': 'datetime', 'provider_status': 'str', 'port_type': 'str', 'type': 'str' @@ -65,15 +65,15 @@ def __init__(self, id=None, tenant_id=None, name=None, description=None, bandwid :type id: str :param tenant_id: 实例所属项目ID。 :type tenant_id: str - :param name: 物理专线名字 + :param name: 托管专线名字 :type name: str - :param description: 物理专线的描述信息 + :param description: 托管专线的描述信息 :type description: str - :param bandwidth: 物理专线接入带宽,单位Mbps。 + :param bandwidth: 托管专线接入带宽,单位Mbps。 :type bandwidth: int :param location: 专线的接入位置信息 :type location: str - :param peer_location: 物理专线对端所在的物理位置,省/市/街道或IDC名字。 + :param peer_location: 托管专线对端所在的物理位置,省/市/街道或IDC名字。 :type peer_location: str :param hosting_id: hosted物理专线对应的hosting物理专线的ID :type hosting_id: str @@ -83,17 +83,17 @@ def __init__(self, id=None, tenant_id=None, name=None, description=None, bandwid :type admin_state_up: bool :param vlan: hosted物理专线预分配的vlan。 :type vlan: int - :param status: 操作状态,合法值是: BUILD:已开通 ACTIVE:虚拟网关正常 DOWN:专线对应的端口处于down的状态,可能存在线路故障等异常。 ERROR:虚拟网关异常 PENDING_DELETE:删除中 PENDING_UPDATE:更新中 PENDING_CREATE:创建中 + :param status: 操作状态,合法值是: BUILD:已开通 ACTIVE:托管专线正常 DOWN:专线对应的端口处于down的状态,可能存在线路故障等异常。 ERROR:托管专线异常 PENDING_DELETE:删除中 PENDING_UPDATE:更新中 PENDING_CREATE:创建中 :type status: str - :param apply_time: 物理专线申请时间 - :type apply_time: str - :param create_time: 物理专线创建时间 - :type create_time: str - :param provider_status: 物理专线的运营商操作状态,合法值是:ACTIVE, DOWN + :param apply_time: 托管专线申请时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ + :type apply_time: datetime + :param create_time: 托管专线创建时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ + :type create_time: datetime + :param provider_status: 托管专线的运营商操作状态,合法值是:ACTIVE, DOWN :type provider_status: str - :param port_type: 物理专线接入接口的类型,支持1G 10G 40G 100G + :param port_type: 托管专线接入接口的类型,支持1G 10G 40G 100G :type port_type: str - :param type: 物理专线的类型,类型包括标准(standard),运营专线(hosting),托管专线(hosted)[,一站式标准(onestop_standard),一站式托管(onestop_hosted)](tag:hws)。 + :param type: 托管专线的类型,类型包括标准(standard),运营专线(hosting),托管专线(hosted)[,一站式标准(onestop_standard),一站式托管(onestop_hosted)](tag:hws)。 :type type: str """ @@ -201,7 +201,7 @@ def tenant_id(self, tenant_id): def name(self): """Gets the name of this HostedDirectConnect. - 物理专线名字 + 托管专线名字 :return: The name of this HostedDirectConnect. :rtype: str @@ -212,7 +212,7 @@ def name(self): def name(self, name): """Sets the name of this HostedDirectConnect. - 物理专线名字 + 托管专线名字 :param name: The name of this HostedDirectConnect. :type name: str @@ -223,7 +223,7 @@ def name(self, name): def description(self): """Gets the description of this HostedDirectConnect. - 物理专线的描述信息 + 托管专线的描述信息 :return: The description of this HostedDirectConnect. :rtype: str @@ -234,7 +234,7 @@ def description(self): def description(self, description): """Sets the description of this HostedDirectConnect. - 物理专线的描述信息 + 托管专线的描述信息 :param description: The description of this HostedDirectConnect. :type description: str @@ -245,7 +245,7 @@ def description(self, description): def bandwidth(self): """Gets the bandwidth of this HostedDirectConnect. - 物理专线接入带宽,单位Mbps。 + 托管专线接入带宽,单位Mbps。 :return: The bandwidth of this HostedDirectConnect. :rtype: int @@ -256,7 +256,7 @@ def bandwidth(self): def bandwidth(self, bandwidth): """Sets the bandwidth of this HostedDirectConnect. - 物理专线接入带宽,单位Mbps。 + 托管专线接入带宽,单位Mbps。 :param bandwidth: The bandwidth of this HostedDirectConnect. :type bandwidth: int @@ -289,7 +289,7 @@ def location(self, location): def peer_location(self): """Gets the peer_location of this HostedDirectConnect. - 物理专线对端所在的物理位置,省/市/街道或IDC名字。 + 托管专线对端所在的物理位置,省/市/街道或IDC名字。 :return: The peer_location of this HostedDirectConnect. :rtype: str @@ -300,7 +300,7 @@ def peer_location(self): def peer_location(self, peer_location): """Sets the peer_location of this HostedDirectConnect. - 物理专线对端所在的物理位置,省/市/街道或IDC名字。 + 托管专线对端所在的物理位置,省/市/街道或IDC名字。 :param peer_location: The peer_location of this HostedDirectConnect. :type peer_location: str @@ -399,7 +399,7 @@ def vlan(self, vlan): def status(self): """Gets the status of this HostedDirectConnect. - 操作状态,合法值是: BUILD:已开通 ACTIVE:虚拟网关正常 DOWN:专线对应的端口处于down的状态,可能存在线路故障等异常。 ERROR:虚拟网关异常 PENDING_DELETE:删除中 PENDING_UPDATE:更新中 PENDING_CREATE:创建中 + 操作状态,合法值是: BUILD:已开通 ACTIVE:托管专线正常 DOWN:专线对应的端口处于down的状态,可能存在线路故障等异常。 ERROR:托管专线异常 PENDING_DELETE:删除中 PENDING_UPDATE:更新中 PENDING_CREATE:创建中 :return: The status of this HostedDirectConnect. :rtype: str @@ -410,7 +410,7 @@ def status(self): def status(self, status): """Sets the status of this HostedDirectConnect. - 操作状态,合法值是: BUILD:已开通 ACTIVE:虚拟网关正常 DOWN:专线对应的端口处于down的状态,可能存在线路故障等异常。 ERROR:虚拟网关异常 PENDING_DELETE:删除中 PENDING_UPDATE:更新中 PENDING_CREATE:创建中 + 操作状态,合法值是: BUILD:已开通 ACTIVE:托管专线正常 DOWN:专线对应的端口处于down的状态,可能存在线路故障等异常。 ERROR:托管专线异常 PENDING_DELETE:删除中 PENDING_UPDATE:更新中 PENDING_CREATE:创建中 :param status: The status of this HostedDirectConnect. :type status: str @@ -421,10 +421,10 @@ def status(self, status): def apply_time(self): """Gets the apply_time of this HostedDirectConnect. - 物理专线申请时间 + 托管专线申请时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ :return: The apply_time of this HostedDirectConnect. - :rtype: str + :rtype: datetime """ return self._apply_time @@ -432,10 +432,10 @@ def apply_time(self): def apply_time(self, apply_time): """Sets the apply_time of this HostedDirectConnect. - 物理专线申请时间 + 托管专线申请时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ :param apply_time: The apply_time of this HostedDirectConnect. - :type apply_time: str + :type apply_time: datetime """ self._apply_time = apply_time @@ -443,10 +443,10 @@ def apply_time(self, apply_time): def create_time(self): """Gets the create_time of this HostedDirectConnect. - 物理专线创建时间 + 托管专线创建时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ :return: The create_time of this HostedDirectConnect. - :rtype: str + :rtype: datetime """ return self._create_time @@ -454,10 +454,10 @@ def create_time(self): def create_time(self, create_time): """Sets the create_time of this HostedDirectConnect. - 物理专线创建时间 + 托管专线创建时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ :param create_time: The create_time of this HostedDirectConnect. - :type create_time: str + :type create_time: datetime """ self._create_time = create_time @@ -465,7 +465,7 @@ def create_time(self, create_time): def provider_status(self): """Gets the provider_status of this HostedDirectConnect. - 物理专线的运营商操作状态,合法值是:ACTIVE, DOWN + 托管专线的运营商操作状态,合法值是:ACTIVE, DOWN :return: The provider_status of this HostedDirectConnect. :rtype: str @@ -476,7 +476,7 @@ def provider_status(self): def provider_status(self, provider_status): """Sets the provider_status of this HostedDirectConnect. - 物理专线的运营商操作状态,合法值是:ACTIVE, DOWN + 托管专线的运营商操作状态,合法值是:ACTIVE, DOWN :param provider_status: The provider_status of this HostedDirectConnect. :type provider_status: str @@ -487,7 +487,7 @@ def provider_status(self, provider_status): def port_type(self): """Gets the port_type of this HostedDirectConnect. - 物理专线接入接口的类型,支持1G 10G 40G 100G + 托管专线接入接口的类型,支持1G 10G 40G 100G :return: The port_type of this HostedDirectConnect. :rtype: str @@ -498,7 +498,7 @@ def port_type(self): def port_type(self, port_type): """Sets the port_type of this HostedDirectConnect. - 物理专线接入接口的类型,支持1G 10G 40G 100G + 托管专线接入接口的类型,支持1G 10G 40G 100G :param port_type: The port_type of this HostedDirectConnect. :type port_type: str @@ -509,7 +509,7 @@ def port_type(self, port_type): def type(self): """Gets the type of this HostedDirectConnect. - 物理专线的类型,类型包括标准(standard),运营专线(hosting),托管专线(hosted)[,一站式标准(onestop_standard),一站式托管(onestop_hosted)](tag:hws)。 + 托管专线的类型,类型包括标准(standard),运营专线(hosting),托管专线(hosted)[,一站式标准(onestop_standard),一站式托管(onestop_hosted)](tag:hws)。 :return: The type of this HostedDirectConnect. :rtype: str @@ -520,7 +520,7 @@ def type(self): def type(self, type): """Sets the type of this HostedDirectConnect. - 物理专线的类型,类型包括标准(standard),运营专线(hosting),托管专线(hosted)[,一站式标准(onestop_standard),一站式托管(onestop_hosted)](tag:hws)。 + 托管专线的类型,类型包括标准(standard),运营专线(hosting),托管专线(hosted)[,一站式标准(onestop_standard),一站式托管(onestop_hosted)](tag:hws)。 :param type: The type of this HostedDirectConnect. :type type: str diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_binding_geip.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_binding_geip.py index d80fcdbb5a..5d80ed810a 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_binding_geip.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_binding_geip.py @@ -61,7 +61,7 @@ def __init__(self, global_eip_id=None, global_eip_segment_id=None, status=None, :type cidr: str :param address_family: geip的地址簇 :type address_family: str - :param ie_vtep_ip: IES的集群vtepIp + :param ie_vtep_ip: CloudPond的集群vtepIp :type ie_vtep_ip: str :param created_time: geip绑定时间 :type created_time: str @@ -262,7 +262,7 @@ def address_family(self, address_family): def ie_vtep_ip(self): """Gets the ie_vtep_ip of this ListBindingGeip. - IES的集群vtepIp + CloudPond的集群vtepIp :return: The ie_vtep_ip of this ListBindingGeip. :rtype: str @@ -273,7 +273,7 @@ def ie_vtep_ip(self): def ie_vtep_ip(self, ie_vtep_ip): """Sets the ie_vtep_ip of this ListBindingGeip. - IES的集群vtepIp + CloudPond的集群vtepIp :param ie_vtep_ip: The ie_vtep_ip of this ListBindingGeip. :type ie_vtep_ip: str diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_connect_gateways_request.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_connect_gateways_request.py index 3e758674cc..3904072bd5 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_connect_gateways_request.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_connect_gateways_request.py @@ -51,11 +51,11 @@ def __init__(self, limit=None, offset=None, marker=None, page_reverse=None, fiel :param limit: 每页返回的个数。 取值范围:1~2000。 :type limit: int - :param offset: + :param offset: 分页偏移量 :type offset: int :param marker: 上一页最后一条资源记录的ID,为空时为查询第一页。 使用说明:必须与limit一起使用。 :type marker: str - :param page_reverse: + :param page_reverse: 分页参数 :type page_reverse: bool :param fields: 显示字段列表 :type fields: list[str] @@ -137,6 +137,8 @@ def limit(self, limit): def offset(self): """Gets the offset of this ListConnectGatewaysRequest. + 分页偏移量 + :return: The offset of this ListConnectGatewaysRequest. :rtype: int """ @@ -146,6 +148,8 @@ def offset(self): def offset(self, offset): """Sets the offset of this ListConnectGatewaysRequest. + 分页偏移量 + :param offset: The offset of this ListConnectGatewaysRequest. :type offset: int """ @@ -177,6 +181,8 @@ def marker(self, marker): def page_reverse(self): """Gets the page_reverse of this ListConnectGatewaysRequest. + 分页参数 + :return: The page_reverse of this ListConnectGatewaysRequest. :rtype: bool """ @@ -186,6 +192,8 @@ def page_reverse(self): def page_reverse(self, page_reverse): """Sets the page_reverse of this ListConnectGatewaysRequest. + 分页参数 + :param page_reverse: The page_reverse of this ListConnectGatewaysRequest. :type page_reverse: bool """ diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_direct_connect_locations_request.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_direct_connect_locations_request.py new file mode 100644 index 0000000000..98bebcc956 --- /dev/null +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_direct_connect_locations_request.py @@ -0,0 +1,289 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDirectConnectLocationsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'limit': 'int', + 'marker': 'str', + 'sort_key': 'str', + 'sort_dir': 'list[str]', + 'id': 'list[str]', + 'name': 'list[str]', + 'status': 'list[str]' + } + + attribute_map = { + 'limit': 'limit', + 'marker': 'marker', + 'sort_key': 'sort_key', + 'sort_dir': 'sort_dir', + 'id': 'id', + 'name': 'name', + 'status': 'status' + } + + def __init__(self, limit=None, marker=None, sort_key=None, sort_dir=None, id=None, name=None, status=None): + """ListDirectConnectLocationsRequest + + The model defined in huaweicloud sdk + + :param limit: 每页返回的个数。 取值范围:1~2000。 + :type limit: int + :param marker: 上一页最后一条资源记录的ID,为空时为查询第一页。 使用说明:必须与limit一起使用。 + :type marker: str + :param sort_key: 排序字段。 + :type sort_key: str + :param sort_dir: 返回结果按照升序(asc)或降序(desc)排列,默认为asc + :type sort_dir: list[str] + :param id: 根据资源ID过滤实例 + :type id: list[str] + :param name: 根据名字过滤查询,可查询多个名字。 + :type name: list[str] + :param status: 根椐资源状态过淲实例 + :type status: list[str] + """ + + + + self._limit = None + self._marker = None + self._sort_key = None + self._sort_dir = None + self._id = None + self._name = None + self._status = None + self.discriminator = None + + if limit is not None: + self.limit = limit + if marker is not None: + self.marker = marker + if sort_key is not None: + self.sort_key = sort_key + if sort_dir is not None: + self.sort_dir = sort_dir + if id is not None: + self.id = id + if name is not None: + self.name = name + if status is not None: + self.status = status + + @property + def limit(self): + """Gets the limit of this ListDirectConnectLocationsRequest. + + 每页返回的个数。 取值范围:1~2000。 + + :return: The limit of this ListDirectConnectLocationsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListDirectConnectLocationsRequest. + + 每页返回的个数。 取值范围:1~2000。 + + :param limit: The limit of this ListDirectConnectLocationsRequest. + :type limit: int + """ + self._limit = limit + + @property + def marker(self): + """Gets the marker of this ListDirectConnectLocationsRequest. + + 上一页最后一条资源记录的ID,为空时为查询第一页。 使用说明:必须与limit一起使用。 + + :return: The marker of this ListDirectConnectLocationsRequest. + :rtype: str + """ + return self._marker + + @marker.setter + def marker(self, marker): + """Sets the marker of this ListDirectConnectLocationsRequest. + + 上一页最后一条资源记录的ID,为空时为查询第一页。 使用说明:必须与limit一起使用。 + + :param marker: The marker of this ListDirectConnectLocationsRequest. + :type marker: str + """ + self._marker = marker + + @property + def sort_key(self): + """Gets the sort_key of this ListDirectConnectLocationsRequest. + + 排序字段。 + + :return: The sort_key of this ListDirectConnectLocationsRequest. + :rtype: str + """ + return self._sort_key + + @sort_key.setter + def sort_key(self, sort_key): + """Sets the sort_key of this ListDirectConnectLocationsRequest. + + 排序字段。 + + :param sort_key: The sort_key of this ListDirectConnectLocationsRequest. + :type sort_key: str + """ + self._sort_key = sort_key + + @property + def sort_dir(self): + """Gets the sort_dir of this ListDirectConnectLocationsRequest. + + 返回结果按照升序(asc)或降序(desc)排列,默认为asc + + :return: The sort_dir of this ListDirectConnectLocationsRequest. + :rtype: list[str] + """ + return self._sort_dir + + @sort_dir.setter + def sort_dir(self, sort_dir): + """Sets the sort_dir of this ListDirectConnectLocationsRequest. + + 返回结果按照升序(asc)或降序(desc)排列,默认为asc + + :param sort_dir: The sort_dir of this ListDirectConnectLocationsRequest. + :type sort_dir: list[str] + """ + self._sort_dir = sort_dir + + @property + def id(self): + """Gets the id of this ListDirectConnectLocationsRequest. + + 根据资源ID过滤实例 + + :return: The id of this ListDirectConnectLocationsRequest. + :rtype: list[str] + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ListDirectConnectLocationsRequest. + + 根据资源ID过滤实例 + + :param id: The id of this ListDirectConnectLocationsRequest. + :type id: list[str] + """ + self._id = id + + @property + def name(self): + """Gets the name of this ListDirectConnectLocationsRequest. + + 根据名字过滤查询,可查询多个名字。 + + :return: The name of this ListDirectConnectLocationsRequest. + :rtype: list[str] + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ListDirectConnectLocationsRequest. + + 根据名字过滤查询,可查询多个名字。 + + :param name: The name of this ListDirectConnectLocationsRequest. + :type name: list[str] + """ + self._name = name + + @property + def status(self): + """Gets the status of this ListDirectConnectLocationsRequest. + + 根椐资源状态过淲实例 + + :return: The status of this ListDirectConnectLocationsRequest. + :rtype: list[str] + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ListDirectConnectLocationsRequest. + + 根椐资源状态过淲实例 + + :param status: The status of this ListDirectConnectLocationsRequest. + :type status: list[str] + """ + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListDirectConnectLocationsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_rms_global_dc_gateway_response.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_direct_connect_locations_response.py similarity index 51% rename from huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_rms_global_dc_gateway_response.py rename to huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_direct_connect_locations_response.py index e5514836ac..81d18db2c9 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_rms_global_dc_gateway_response.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_direct_connect_locations_response.py @@ -6,7 +6,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class ListRmsGlobalDcGatewayResponse(SdkResponse): +class ListDirectConnectLocationsResponse(SdkResponse): """ Attributes: @@ -18,130 +18,105 @@ class ListRmsGlobalDcGatewayResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'request_id': 'str', - 'global_dc_gateways': 'list[RmsListGlobalDcGateways]', + 'direct_connect_locations': 'list[DirectConnectLocationEntry]', 'page_info': 'PageInfo', - 'x_request_id': 'str' + 'request_id': 'str' } attribute_map = { - 'request_id': 'request_id', - 'global_dc_gateways': 'global_dc_gateways', + 'direct_connect_locations': 'direct_connect_locations', 'page_info': 'page_info', - 'x_request_id': 'X-Request-Id' + 'request_id': 'request_id' } - def __init__(self, request_id=None, global_dc_gateways=None, page_info=None, x_request_id=None): - """ListRmsGlobalDcGatewayResponse + def __init__(self, direct_connect_locations=None, page_info=None, request_id=None): + """ListDirectConnectLocationsResponse The model defined in huaweicloud sdk - :param request_id: 请求ID - :type request_id: str - :param global_dc_gateways: 全球接入网关 - :type global_dc_gateways: list[:class:`huaweicloudsdkdc.v3.RmsListGlobalDcGateways`] + :param direct_connect_locations: 专线接入点列表 + :type direct_connect_locations: list[:class:`huaweicloudsdkdc.v3.DirectConnectLocationEntry`] :param page_info: :type page_info: :class:`huaweicloudsdkdc.v3.PageInfo` - :param x_request_id: - :type x_request_id: str + :param request_id: 请求ID。 + :type request_id: str """ - super(ListRmsGlobalDcGatewayResponse, self).__init__() + super(ListDirectConnectLocationsResponse, self).__init__() - self._request_id = None - self._global_dc_gateways = None + self._direct_connect_locations = None self._page_info = None - self._x_request_id = None + self._request_id = None self.discriminator = None - if request_id is not None: - self.request_id = request_id - if global_dc_gateways is not None: - self.global_dc_gateways = global_dc_gateways + if direct_connect_locations is not None: + self.direct_connect_locations = direct_connect_locations if page_info is not None: self.page_info = page_info - if x_request_id is not None: - self.x_request_id = x_request_id - - @property - def request_id(self): - """Gets the request_id of this ListRmsGlobalDcGatewayResponse. - - 请求ID - - :return: The request_id of this ListRmsGlobalDcGatewayResponse. - :rtype: str - """ - return self._request_id - - @request_id.setter - def request_id(self, request_id): - """Sets the request_id of this ListRmsGlobalDcGatewayResponse. - - 请求ID - - :param request_id: The request_id of this ListRmsGlobalDcGatewayResponse. - :type request_id: str - """ - self._request_id = request_id + if request_id is not None: + self.request_id = request_id @property - def global_dc_gateways(self): - """Gets the global_dc_gateways of this ListRmsGlobalDcGatewayResponse. + def direct_connect_locations(self): + """Gets the direct_connect_locations of this ListDirectConnectLocationsResponse. - 全球接入网关 + 专线接入点列表 - :return: The global_dc_gateways of this ListRmsGlobalDcGatewayResponse. - :rtype: list[:class:`huaweicloudsdkdc.v3.RmsListGlobalDcGateways`] + :return: The direct_connect_locations of this ListDirectConnectLocationsResponse. + :rtype: list[:class:`huaweicloudsdkdc.v3.DirectConnectLocationEntry`] """ - return self._global_dc_gateways + return self._direct_connect_locations - @global_dc_gateways.setter - def global_dc_gateways(self, global_dc_gateways): - """Sets the global_dc_gateways of this ListRmsGlobalDcGatewayResponse. + @direct_connect_locations.setter + def direct_connect_locations(self, direct_connect_locations): + """Sets the direct_connect_locations of this ListDirectConnectLocationsResponse. - 全球接入网关 + 专线接入点列表 - :param global_dc_gateways: The global_dc_gateways of this ListRmsGlobalDcGatewayResponse. - :type global_dc_gateways: list[:class:`huaweicloudsdkdc.v3.RmsListGlobalDcGateways`] + :param direct_connect_locations: The direct_connect_locations of this ListDirectConnectLocationsResponse. + :type direct_connect_locations: list[:class:`huaweicloudsdkdc.v3.DirectConnectLocationEntry`] """ - self._global_dc_gateways = global_dc_gateways + self._direct_connect_locations = direct_connect_locations @property def page_info(self): - """Gets the page_info of this ListRmsGlobalDcGatewayResponse. + """Gets the page_info of this ListDirectConnectLocationsResponse. - :return: The page_info of this ListRmsGlobalDcGatewayResponse. + :return: The page_info of this ListDirectConnectLocationsResponse. :rtype: :class:`huaweicloudsdkdc.v3.PageInfo` """ return self._page_info @page_info.setter def page_info(self, page_info): - """Sets the page_info of this ListRmsGlobalDcGatewayResponse. + """Sets the page_info of this ListDirectConnectLocationsResponse. - :param page_info: The page_info of this ListRmsGlobalDcGatewayResponse. + :param page_info: The page_info of this ListDirectConnectLocationsResponse. :type page_info: :class:`huaweicloudsdkdc.v3.PageInfo` """ self._page_info = page_info @property - def x_request_id(self): - """Gets the x_request_id of this ListRmsGlobalDcGatewayResponse. + def request_id(self): + """Gets the request_id of this ListDirectConnectLocationsResponse. + + 请求ID。 - :return: The x_request_id of this ListRmsGlobalDcGatewayResponse. + :return: The request_id of this ListDirectConnectLocationsResponse. :rtype: str """ - return self._x_request_id + return self._request_id + + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this ListDirectConnectLocationsResponse. - @x_request_id.setter - def x_request_id(self, x_request_id): - """Sets the x_request_id of this ListRmsGlobalDcGatewayResponse. + 请求ID。 - :param x_request_id: The x_request_id of this ListRmsGlobalDcGatewayResponse. - :type x_request_id: str + :param request_id: The request_id of this ListDirectConnectLocationsResponse. + :type request_id: str """ - self._x_request_id = x_request_id + self._request_id = request_id def to_dict(self): """Returns the model properties as a dict""" @@ -185,7 +160,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ListRmsGlobalDcGatewayResponse): + if not isinstance(other, ListDirectConnectLocationsResponse): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_gdgw_route_tables_request.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_gdgw_route_tables_request.py index bc443187c4..7f47cb7436 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_gdgw_route_tables_request.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_gdgw_route_tables_request.py @@ -18,68 +18,54 @@ class ListGdgwRouteTablesRequest: openapi_types = { 'gdgw_id': 'str', - 'fields': 'list[str]', - 'ext_fields': 'list[str]', + 'address_family': 'list[str]', 'nexthop': 'list[str]', - 'destination': 'list[str]', - 'address_family': 'list[str]' + 'destination': 'list[str]' } attribute_map = { 'gdgw_id': 'gdgw_id', - 'fields': 'fields', - 'ext_fields': 'ext_fields', + 'address_family': 'address_family', 'nexthop': 'nexthop', - 'destination': 'destination', - 'address_family': 'address_family' + 'destination': 'destination' } - def __init__(self, gdgw_id=None, fields=None, ext_fields=None, nexthop=None, destination=None, address_family=None): + def __init__(self, gdgw_id=None, address_family=None, nexthop=None, destination=None): """ListGdgwRouteTablesRequest The model defined in huaweicloud sdk - :param gdgw_id: 全球接入网关ID + :param gdgw_id: 全域接入网关ID :type gdgw_id: str - :param fields: 显示字段列表 - :type fields: list[str] - :param ext_fields: show response ext-fields - :type ext_fields: list[str] - :param nexthop: 下一条ID + :param address_family: 地址簇 + :type address_family: list[str] + :param nexthop: 下一跳ID :type nexthop: list[str] :param destination: 目的地址 :type destination: list[str] - :param address_family: 地址簇 - :type address_family: list[str] """ self._gdgw_id = None - self._fields = None - self._ext_fields = None + self._address_family = None self._nexthop = None self._destination = None - self._address_family = None self.discriminator = None self.gdgw_id = gdgw_id - if fields is not None: - self.fields = fields - if ext_fields is not None: - self.ext_fields = ext_fields + if address_family is not None: + self.address_family = address_family if nexthop is not None: self.nexthop = nexthop if destination is not None: self.destination = destination - if address_family is not None: - self.address_family = address_family @property def gdgw_id(self): """Gets the gdgw_id of this ListGdgwRouteTablesRequest. - 全球接入网关ID + 全域接入网关ID :return: The gdgw_id of this ListGdgwRouteTablesRequest. :rtype: str @@ -90,7 +76,7 @@ def gdgw_id(self): def gdgw_id(self, gdgw_id): """Sets the gdgw_id of this ListGdgwRouteTablesRequest. - 全球接入网关ID + 全域接入网关ID :param gdgw_id: The gdgw_id of this ListGdgwRouteTablesRequest. :type gdgw_id: str @@ -98,54 +84,32 @@ def gdgw_id(self, gdgw_id): self._gdgw_id = gdgw_id @property - def fields(self): - """Gets the fields of this ListGdgwRouteTablesRequest. - - 显示字段列表 - - :return: The fields of this ListGdgwRouteTablesRequest. - :rtype: list[str] - """ - return self._fields - - @fields.setter - def fields(self, fields): - """Sets the fields of this ListGdgwRouteTablesRequest. - - 显示字段列表 - - :param fields: The fields of this ListGdgwRouteTablesRequest. - :type fields: list[str] - """ - self._fields = fields - - @property - def ext_fields(self): - """Gets the ext_fields of this ListGdgwRouteTablesRequest. + def address_family(self): + """Gets the address_family of this ListGdgwRouteTablesRequest. - show response ext-fields + 地址簇 - :return: The ext_fields of this ListGdgwRouteTablesRequest. + :return: The address_family of this ListGdgwRouteTablesRequest. :rtype: list[str] """ - return self._ext_fields + return self._address_family - @ext_fields.setter - def ext_fields(self, ext_fields): - """Sets the ext_fields of this ListGdgwRouteTablesRequest. + @address_family.setter + def address_family(self, address_family): + """Sets the address_family of this ListGdgwRouteTablesRequest. - show response ext-fields + 地址簇 - :param ext_fields: The ext_fields of this ListGdgwRouteTablesRequest. - :type ext_fields: list[str] + :param address_family: The address_family of this ListGdgwRouteTablesRequest. + :type address_family: list[str] """ - self._ext_fields = ext_fields + self._address_family = address_family @property def nexthop(self): """Gets the nexthop of this ListGdgwRouteTablesRequest. - 下一条ID + 下一跳ID :return: The nexthop of this ListGdgwRouteTablesRequest. :rtype: list[str] @@ -156,7 +120,7 @@ def nexthop(self): def nexthop(self, nexthop): """Sets the nexthop of this ListGdgwRouteTablesRequest. - 下一条ID + 下一跳ID :param nexthop: The nexthop of this ListGdgwRouteTablesRequest. :type nexthop: list[str] @@ -185,28 +149,6 @@ def destination(self, destination): """ self._destination = destination - @property - def address_family(self): - """Gets the address_family of this ListGdgwRouteTablesRequest. - - 地址簇 - - :return: The address_family of this ListGdgwRouteTablesRequest. - :rtype: list[str] - """ - return self._address_family - - @address_family.setter - def address_family(self, address_family): - """Sets the address_family of this ListGdgwRouteTablesRequest. - - 地址簇 - - :param address_family: The address_family of this ListGdgwRouteTablesRequest. - :type address_family: list[str] - """ - self._address_family = address_family - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_gdgw_route_tables_response.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_gdgw_route_tables_response.py index 12c3f2e24c..b2aed50853 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_gdgw_route_tables_response.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_gdgw_route_tables_response.py @@ -19,48 +19,41 @@ class ListGdgwRouteTablesResponse(SdkResponse): openapi_types = { 'request_id': 'str', - 'gdgw_routetable': 'list[ShowGdgwRoutetable]', - 'x_request_id': 'str' + 'gdgw_routetable': 'list[ShowGdgwRoutetable]' } attribute_map = { 'request_id': 'request_id', - 'gdgw_routetable': 'gdgw_routetable', - 'x_request_id': 'X-Request-Id' + 'gdgw_routetable': 'gdgw_routetable' } - def __init__(self, request_id=None, gdgw_routetable=None, x_request_id=None): + def __init__(self, request_id=None, gdgw_routetable=None): """ListGdgwRouteTablesResponse The model defined in huaweicloud sdk - :param request_id: 请求ID + :param request_id: 请求id :type request_id: str - :param gdgw_routetable: 路由表详细对象 + :param gdgw_routetable: 全域接入网关路由表 :type gdgw_routetable: list[:class:`huaweicloudsdkdc.v3.ShowGdgwRoutetable`] - :param x_request_id: - :type x_request_id: str """ super(ListGdgwRouteTablesResponse, self).__init__() self._request_id = None self._gdgw_routetable = None - self._x_request_id = None self.discriminator = None if request_id is not None: self.request_id = request_id if gdgw_routetable is not None: self.gdgw_routetable = gdgw_routetable - if x_request_id is not None: - self.x_request_id = x_request_id @property def request_id(self): """Gets the request_id of this ListGdgwRouteTablesResponse. - 请求ID + 请求id :return: The request_id of this ListGdgwRouteTablesResponse. :rtype: str @@ -71,7 +64,7 @@ def request_id(self): def request_id(self, request_id): """Sets the request_id of this ListGdgwRouteTablesResponse. - 请求ID + 请求id :param request_id: The request_id of this ListGdgwRouteTablesResponse. :type request_id: str @@ -82,7 +75,7 @@ def request_id(self, request_id): def gdgw_routetable(self): """Gets the gdgw_routetable of this ListGdgwRouteTablesResponse. - 路由表详细对象 + 全域接入网关路由表 :return: The gdgw_routetable of this ListGdgwRouteTablesResponse. :rtype: list[:class:`huaweicloudsdkdc.v3.ShowGdgwRoutetable`] @@ -93,31 +86,13 @@ def gdgw_routetable(self): def gdgw_routetable(self, gdgw_routetable): """Sets the gdgw_routetable of this ListGdgwRouteTablesResponse. - 路由表详细对象 + 全域接入网关路由表 :param gdgw_routetable: The gdgw_routetable of this ListGdgwRouteTablesResponse. :type gdgw_routetable: list[:class:`huaweicloudsdkdc.v3.ShowGdgwRoutetable`] """ self._gdgw_routetable = gdgw_routetable - @property - def x_request_id(self): - """Gets the x_request_id of this ListGdgwRouteTablesResponse. - - :return: The x_request_id of this ListGdgwRouteTablesResponse. - :rtype: str - """ - return self._x_request_id - - @x_request_id.setter - def x_request_id(self, x_request_id): - """Sets the x_request_id of this ListGdgwRouteTablesResponse. - - :param x_request_id: The x_request_id of this ListGdgwRouteTablesResponse. - :type x_request_id: str - """ - self._x_request_id = x_request_id - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_global_dc_gateway_request.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_global_dc_gateways_request.py similarity index 74% rename from huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_global_dc_gateway_request.py rename to huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_global_dc_gateways_request.py index 17f31a85d1..44d20fbfa9 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_global_dc_gateway_request.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_global_dc_gateways_request.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class ListGlobalDcGatewayRequest: +class ListGlobalDcGatewaysRequest: """ Attributes: @@ -18,370 +18,370 @@ class ListGlobalDcGatewayRequest: openapi_types = { 'limit': 'int', - 'marker': 'str', 'fields': 'list[str]', + 'marker': 'str', 'sort_key': 'str', 'sort_dir': 'list[str]', - 'hosting_id': 'list[str]', - 'enterprise_project_id': 'list[str]', 'id': 'list[str]', 'name': 'list[str]', - 'global_center_network_id': 'list[str]', + 'enterprise_project_id': 'list[str]', 'site_network_id': 'list[str]', - 'cloud_connection_id': 'list[str]' + 'cloud_connection_id': 'list[str]', + 'status': 'list[str]', + 'global_center_network_id': 'list[str]' } attribute_map = { 'limit': 'limit', - 'marker': 'marker', 'fields': 'fields', + 'marker': 'marker', 'sort_key': 'sort_key', 'sort_dir': 'sort_dir', - 'hosting_id': 'hosting_id', - 'enterprise_project_id': 'enterprise_project_id', 'id': 'id', 'name': 'name', - 'global_center_network_id': 'global_center_network_id', + 'enterprise_project_id': 'enterprise_project_id', 'site_network_id': 'site_network_id', - 'cloud_connection_id': 'cloud_connection_id' + 'cloud_connection_id': 'cloud_connection_id', + 'status': 'status', + 'global_center_network_id': 'global_center_network_id' } - def __init__(self, limit=None, marker=None, fields=None, sort_key=None, sort_dir=None, hosting_id=None, enterprise_project_id=None, id=None, name=None, global_center_network_id=None, site_network_id=None, cloud_connection_id=None): - """ListGlobalDcGatewayRequest + def __init__(self, limit=None, fields=None, marker=None, sort_key=None, sort_dir=None, id=None, name=None, enterprise_project_id=None, site_network_id=None, cloud_connection_id=None, status=None, global_center_network_id=None): + """ListGlobalDcGatewaysRequest The model defined in huaweicloud sdk :param limit: 每页返回的个数。 取值范围:1~2000。 :type limit: int - :param marker: 上一页最后一条资源记录的ID,为空时为查询第一页。 使用说明:必须与limit一起使用。 - :type marker: str :param fields: 显示字段列表 :type fields: list[str] + :param marker: 上一页最后一条资源记录的ID,为空时为查询第一页。 使用说明:必须与limit一起使用。 + :type marker: str :param sort_key: 排序字段。 :type sort_key: str :param sort_dir: 返回结果按照升序(asc)或降序(desc)排列,默认为asc :type sort_dir: list[str] - :param hosting_id: 根椐运营专线ID过滤托管专线列表 - :type hosting_id: list[str] - :param enterprise_project_id: 根据企业项目ID过滤资源实例 - :type enterprise_project_id: list[str] :param id: 根据资源ID过滤实例 :type id: list[str] :param name: 根据名字过滤查询,可查询多个名字。 :type name: list[str] - :param global_center_network_id: 全球中心网络ID - :type global_center_network_id: list[str] + :param enterprise_project_id: 根据企业项目ID过滤资源实例 + :type enterprise_project_id: list[str] :param site_network_id: 站点网络ID :type site_network_id: list[str] :param cloud_connection_id: 云连接ID :type cloud_connection_id: list[str] + :param status: 根椐资源状态过淲实例 + :type status: list[str] + :param global_center_network_id: 全球中心网络ID + :type global_center_network_id: list[str] """ self._limit = None - self._marker = None self._fields = None + self._marker = None self._sort_key = None self._sort_dir = None - self._hosting_id = None - self._enterprise_project_id = None self._id = None self._name = None - self._global_center_network_id = None + self._enterprise_project_id = None self._site_network_id = None self._cloud_connection_id = None + self._status = None + self._global_center_network_id = None self.discriminator = None if limit is not None: self.limit = limit - if marker is not None: - self.marker = marker if fields is not None: self.fields = fields + if marker is not None: + self.marker = marker if sort_key is not None: self.sort_key = sort_key if sort_dir is not None: self.sort_dir = sort_dir - if hosting_id is not None: - self.hosting_id = hosting_id - if enterprise_project_id is not None: - self.enterprise_project_id = enterprise_project_id if id is not None: self.id = id if name is not None: self.name = name - if global_center_network_id is not None: - self.global_center_network_id = global_center_network_id + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id if site_network_id is not None: self.site_network_id = site_network_id if cloud_connection_id is not None: self.cloud_connection_id = cloud_connection_id + if status is not None: + self.status = status + if global_center_network_id is not None: + self.global_center_network_id = global_center_network_id @property def limit(self): - """Gets the limit of this ListGlobalDcGatewayRequest. + """Gets the limit of this ListGlobalDcGatewaysRequest. 每页返回的个数。 取值范围:1~2000。 - :return: The limit of this ListGlobalDcGatewayRequest. + :return: The limit of this ListGlobalDcGatewaysRequest. :rtype: int """ return self._limit @limit.setter def limit(self, limit): - """Sets the limit of this ListGlobalDcGatewayRequest. + """Sets the limit of this ListGlobalDcGatewaysRequest. 每页返回的个数。 取值范围:1~2000。 - :param limit: The limit of this ListGlobalDcGatewayRequest. + :param limit: The limit of this ListGlobalDcGatewaysRequest. :type limit: int """ self._limit = limit - @property - def marker(self): - """Gets the marker of this ListGlobalDcGatewayRequest. - - 上一页最后一条资源记录的ID,为空时为查询第一页。 使用说明:必须与limit一起使用。 - - :return: The marker of this ListGlobalDcGatewayRequest. - :rtype: str - """ - return self._marker - - @marker.setter - def marker(self, marker): - """Sets the marker of this ListGlobalDcGatewayRequest. - - 上一页最后一条资源记录的ID,为空时为查询第一页。 使用说明:必须与limit一起使用。 - - :param marker: The marker of this ListGlobalDcGatewayRequest. - :type marker: str - """ - self._marker = marker - @property def fields(self): - """Gets the fields of this ListGlobalDcGatewayRequest. + """Gets the fields of this ListGlobalDcGatewaysRequest. 显示字段列表 - :return: The fields of this ListGlobalDcGatewayRequest. + :return: The fields of this ListGlobalDcGatewaysRequest. :rtype: list[str] """ return self._fields @fields.setter def fields(self, fields): - """Sets the fields of this ListGlobalDcGatewayRequest. + """Sets the fields of this ListGlobalDcGatewaysRequest. 显示字段列表 - :param fields: The fields of this ListGlobalDcGatewayRequest. + :param fields: The fields of this ListGlobalDcGatewaysRequest. :type fields: list[str] """ self._fields = fields + @property + def marker(self): + """Gets the marker of this ListGlobalDcGatewaysRequest. + + 上一页最后一条资源记录的ID,为空时为查询第一页。 使用说明:必须与limit一起使用。 + + :return: The marker of this ListGlobalDcGatewaysRequest. + :rtype: str + """ + return self._marker + + @marker.setter + def marker(self, marker): + """Sets the marker of this ListGlobalDcGatewaysRequest. + + 上一页最后一条资源记录的ID,为空时为查询第一页。 使用说明:必须与limit一起使用。 + + :param marker: The marker of this ListGlobalDcGatewaysRequest. + :type marker: str + """ + self._marker = marker + @property def sort_key(self): - """Gets the sort_key of this ListGlobalDcGatewayRequest. + """Gets the sort_key of this ListGlobalDcGatewaysRequest. 排序字段。 - :return: The sort_key of this ListGlobalDcGatewayRequest. + :return: The sort_key of this ListGlobalDcGatewaysRequest. :rtype: str """ return self._sort_key @sort_key.setter def sort_key(self, sort_key): - """Sets the sort_key of this ListGlobalDcGatewayRequest. + """Sets the sort_key of this ListGlobalDcGatewaysRequest. 排序字段。 - :param sort_key: The sort_key of this ListGlobalDcGatewayRequest. + :param sort_key: The sort_key of this ListGlobalDcGatewaysRequest. :type sort_key: str """ self._sort_key = sort_key @property def sort_dir(self): - """Gets the sort_dir of this ListGlobalDcGatewayRequest. + """Gets the sort_dir of this ListGlobalDcGatewaysRequest. 返回结果按照升序(asc)或降序(desc)排列,默认为asc - :return: The sort_dir of this ListGlobalDcGatewayRequest. + :return: The sort_dir of this ListGlobalDcGatewaysRequest. :rtype: list[str] """ return self._sort_dir @sort_dir.setter def sort_dir(self, sort_dir): - """Sets the sort_dir of this ListGlobalDcGatewayRequest. + """Sets the sort_dir of this ListGlobalDcGatewaysRequest. 返回结果按照升序(asc)或降序(desc)排列,默认为asc - :param sort_dir: The sort_dir of this ListGlobalDcGatewayRequest. + :param sort_dir: The sort_dir of this ListGlobalDcGatewaysRequest. :type sort_dir: list[str] """ self._sort_dir = sort_dir - @property - def hosting_id(self): - """Gets the hosting_id of this ListGlobalDcGatewayRequest. - - 根椐运营专线ID过滤托管专线列表 - - :return: The hosting_id of this ListGlobalDcGatewayRequest. - :rtype: list[str] - """ - return self._hosting_id - - @hosting_id.setter - def hosting_id(self, hosting_id): - """Sets the hosting_id of this ListGlobalDcGatewayRequest. - - 根椐运营专线ID过滤托管专线列表 - - :param hosting_id: The hosting_id of this ListGlobalDcGatewayRequest. - :type hosting_id: list[str] - """ - self._hosting_id = hosting_id - - @property - def enterprise_project_id(self): - """Gets the enterprise_project_id of this ListGlobalDcGatewayRequest. - - 根据企业项目ID过滤资源实例 - - :return: The enterprise_project_id of this ListGlobalDcGatewayRequest. - :rtype: list[str] - """ - return self._enterprise_project_id - - @enterprise_project_id.setter - def enterprise_project_id(self, enterprise_project_id): - """Sets the enterprise_project_id of this ListGlobalDcGatewayRequest. - - 根据企业项目ID过滤资源实例 - - :param enterprise_project_id: The enterprise_project_id of this ListGlobalDcGatewayRequest. - :type enterprise_project_id: list[str] - """ - self._enterprise_project_id = enterprise_project_id - @property def id(self): - """Gets the id of this ListGlobalDcGatewayRequest. + """Gets the id of this ListGlobalDcGatewaysRequest. 根据资源ID过滤实例 - :return: The id of this ListGlobalDcGatewayRequest. + :return: The id of this ListGlobalDcGatewaysRequest. :rtype: list[str] """ return self._id @id.setter def id(self, id): - """Sets the id of this ListGlobalDcGatewayRequest. + """Sets the id of this ListGlobalDcGatewaysRequest. 根据资源ID过滤实例 - :param id: The id of this ListGlobalDcGatewayRequest. + :param id: The id of this ListGlobalDcGatewaysRequest. :type id: list[str] """ self._id = id @property def name(self): - """Gets the name of this ListGlobalDcGatewayRequest. + """Gets the name of this ListGlobalDcGatewaysRequest. 根据名字过滤查询,可查询多个名字。 - :return: The name of this ListGlobalDcGatewayRequest. + :return: The name of this ListGlobalDcGatewaysRequest. :rtype: list[str] """ return self._name @name.setter def name(self, name): - """Sets the name of this ListGlobalDcGatewayRequest. + """Sets the name of this ListGlobalDcGatewaysRequest. 根据名字过滤查询,可查询多个名字。 - :param name: The name of this ListGlobalDcGatewayRequest. + :param name: The name of this ListGlobalDcGatewaysRequest. :type name: list[str] """ self._name = name @property - def global_center_network_id(self): - """Gets the global_center_network_id of this ListGlobalDcGatewayRequest. + def enterprise_project_id(self): + """Gets the enterprise_project_id of this ListGlobalDcGatewaysRequest. - 全球中心网络ID + 根据企业项目ID过滤资源实例 - :return: The global_center_network_id of this ListGlobalDcGatewayRequest. + :return: The enterprise_project_id of this ListGlobalDcGatewaysRequest. :rtype: list[str] """ - return self._global_center_network_id + return self._enterprise_project_id - @global_center_network_id.setter - def global_center_network_id(self, global_center_network_id): - """Sets the global_center_network_id of this ListGlobalDcGatewayRequest. + @enterprise_project_id.setter + def enterprise_project_id(self, enterprise_project_id): + """Sets the enterprise_project_id of this ListGlobalDcGatewaysRequest. - 全球中心网络ID + 根据企业项目ID过滤资源实例 - :param global_center_network_id: The global_center_network_id of this ListGlobalDcGatewayRequest. - :type global_center_network_id: list[str] + :param enterprise_project_id: The enterprise_project_id of this ListGlobalDcGatewaysRequest. + :type enterprise_project_id: list[str] """ - self._global_center_network_id = global_center_network_id + self._enterprise_project_id = enterprise_project_id @property def site_network_id(self): - """Gets the site_network_id of this ListGlobalDcGatewayRequest. + """Gets the site_network_id of this ListGlobalDcGatewaysRequest. 站点网络ID - :return: The site_network_id of this ListGlobalDcGatewayRequest. + :return: The site_network_id of this ListGlobalDcGatewaysRequest. :rtype: list[str] """ return self._site_network_id @site_network_id.setter def site_network_id(self, site_network_id): - """Sets the site_network_id of this ListGlobalDcGatewayRequest. + """Sets the site_network_id of this ListGlobalDcGatewaysRequest. 站点网络ID - :param site_network_id: The site_network_id of this ListGlobalDcGatewayRequest. + :param site_network_id: The site_network_id of this ListGlobalDcGatewaysRequest. :type site_network_id: list[str] """ self._site_network_id = site_network_id @property def cloud_connection_id(self): - """Gets the cloud_connection_id of this ListGlobalDcGatewayRequest. + """Gets the cloud_connection_id of this ListGlobalDcGatewaysRequest. 云连接ID - :return: The cloud_connection_id of this ListGlobalDcGatewayRequest. + :return: The cloud_connection_id of this ListGlobalDcGatewaysRequest. :rtype: list[str] """ return self._cloud_connection_id @cloud_connection_id.setter def cloud_connection_id(self, cloud_connection_id): - """Sets the cloud_connection_id of this ListGlobalDcGatewayRequest. + """Sets the cloud_connection_id of this ListGlobalDcGatewaysRequest. 云连接ID - :param cloud_connection_id: The cloud_connection_id of this ListGlobalDcGatewayRequest. + :param cloud_connection_id: The cloud_connection_id of this ListGlobalDcGatewaysRequest. :type cloud_connection_id: list[str] """ self._cloud_connection_id = cloud_connection_id + @property + def status(self): + """Gets the status of this ListGlobalDcGatewaysRequest. + + 根椐资源状态过淲实例 + + :return: The status of this ListGlobalDcGatewaysRequest. + :rtype: list[str] + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ListGlobalDcGatewaysRequest. + + 根椐资源状态过淲实例 + + :param status: The status of this ListGlobalDcGatewaysRequest. + :type status: list[str] + """ + self._status = status + + @property + def global_center_network_id(self): + """Gets the global_center_network_id of this ListGlobalDcGatewaysRequest. + + 全球中心网络ID + + :return: The global_center_network_id of this ListGlobalDcGatewaysRequest. + :rtype: list[str] + """ + return self._global_center_network_id + + @global_center_network_id.setter + def global_center_network_id(self, global_center_network_id): + """Sets the global_center_network_id of this ListGlobalDcGatewaysRequest. + + 全球中心网络ID + + :param global_center_network_id: The global_center_network_id of this ListGlobalDcGatewaysRequest. + :type global_center_network_id: list[str] + """ + self._global_center_network_id = global_center_network_id + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -424,7 +424,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ListGlobalDcGatewayRequest): + if not isinstance(other, ListGlobalDcGatewaysRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_global_dc_gateway_response.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_global_dc_gateways_response.py similarity index 67% rename from huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_global_dc_gateway_response.py rename to huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_global_dc_gateways_response.py index 8eff6dfa1e..edcd75ecf9 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_global_dc_gateway_response.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_global_dc_gateways_response.py @@ -6,7 +6,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class ListGlobalDcGatewayResponse(SdkResponse): +class ListGlobalDcGatewaysResponse(SdkResponse): """ Attributes: @@ -18,126 +18,105 @@ class ListGlobalDcGatewayResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'request_id': 'str', - 'global_dc_gateways': 'list[ExternalListGlobalDcGateways]', + 'global_dc_gateways': 'list[GlobalDcGatewayEntry]', 'page_info': 'PageInfo', - 'x_request_id': 'str' + 'request_id': 'str' } attribute_map = { - 'request_id': 'request_id', 'global_dc_gateways': 'global_dc_gateways', 'page_info': 'page_info', - 'x_request_id': 'X-Request-Id' + 'request_id': 'request_id' } - def __init__(self, request_id=None, global_dc_gateways=None, page_info=None, x_request_id=None): - """ListGlobalDcGatewayResponse + def __init__(self, global_dc_gateways=None, page_info=None, request_id=None): + """ListGlobalDcGatewaysResponse The model defined in huaweicloud sdk - :param request_id: 请求ID - :type request_id: str - :param global_dc_gateways: - :type global_dc_gateways: list[:class:`huaweicloudsdkdc.v3.ExternalListGlobalDcGateways`] + :param global_dc_gateways: 全域接入网关列表。 + :type global_dc_gateways: list[:class:`huaweicloudsdkdc.v3.GlobalDcGatewayEntry`] :param page_info: :type page_info: :class:`huaweicloudsdkdc.v3.PageInfo` - :param x_request_id: - :type x_request_id: str + :param request_id: 请求ID。 + :type request_id: str """ - super(ListGlobalDcGatewayResponse, self).__init__() + super(ListGlobalDcGatewaysResponse, self).__init__() - self._request_id = None self._global_dc_gateways = None self._page_info = None - self._x_request_id = None + self._request_id = None self.discriminator = None - if request_id is not None: - self.request_id = request_id if global_dc_gateways is not None: self.global_dc_gateways = global_dc_gateways if page_info is not None: self.page_info = page_info - if x_request_id is not None: - self.x_request_id = x_request_id - - @property - def request_id(self): - """Gets the request_id of this ListGlobalDcGatewayResponse. - - 请求ID - - :return: The request_id of this ListGlobalDcGatewayResponse. - :rtype: str - """ - return self._request_id - - @request_id.setter - def request_id(self, request_id): - """Sets the request_id of this ListGlobalDcGatewayResponse. - - 请求ID - - :param request_id: The request_id of this ListGlobalDcGatewayResponse. - :type request_id: str - """ - self._request_id = request_id + if request_id is not None: + self.request_id = request_id @property def global_dc_gateways(self): - """Gets the global_dc_gateways of this ListGlobalDcGatewayResponse. + """Gets the global_dc_gateways of this ListGlobalDcGatewaysResponse. - :return: The global_dc_gateways of this ListGlobalDcGatewayResponse. - :rtype: list[:class:`huaweicloudsdkdc.v3.ExternalListGlobalDcGateways`] + 全域接入网关列表。 + + :return: The global_dc_gateways of this ListGlobalDcGatewaysResponse. + :rtype: list[:class:`huaweicloudsdkdc.v3.GlobalDcGatewayEntry`] """ return self._global_dc_gateways @global_dc_gateways.setter def global_dc_gateways(self, global_dc_gateways): - """Sets the global_dc_gateways of this ListGlobalDcGatewayResponse. + """Sets the global_dc_gateways of this ListGlobalDcGatewaysResponse. + + 全域接入网关列表。 - :param global_dc_gateways: The global_dc_gateways of this ListGlobalDcGatewayResponse. - :type global_dc_gateways: list[:class:`huaweicloudsdkdc.v3.ExternalListGlobalDcGateways`] + :param global_dc_gateways: The global_dc_gateways of this ListGlobalDcGatewaysResponse. + :type global_dc_gateways: list[:class:`huaweicloudsdkdc.v3.GlobalDcGatewayEntry`] """ self._global_dc_gateways = global_dc_gateways @property def page_info(self): - """Gets the page_info of this ListGlobalDcGatewayResponse. + """Gets the page_info of this ListGlobalDcGatewaysResponse. - :return: The page_info of this ListGlobalDcGatewayResponse. + :return: The page_info of this ListGlobalDcGatewaysResponse. :rtype: :class:`huaweicloudsdkdc.v3.PageInfo` """ return self._page_info @page_info.setter def page_info(self, page_info): - """Sets the page_info of this ListGlobalDcGatewayResponse. + """Sets the page_info of this ListGlobalDcGatewaysResponse. - :param page_info: The page_info of this ListGlobalDcGatewayResponse. + :param page_info: The page_info of this ListGlobalDcGatewaysResponse. :type page_info: :class:`huaweicloudsdkdc.v3.PageInfo` """ self._page_info = page_info @property - def x_request_id(self): - """Gets the x_request_id of this ListGlobalDcGatewayResponse. + def request_id(self): + """Gets the request_id of this ListGlobalDcGatewaysResponse. + + 请求ID。 - :return: The x_request_id of this ListGlobalDcGatewayResponse. + :return: The request_id of this ListGlobalDcGatewaysResponse. :rtype: str """ - return self._x_request_id + return self._request_id + + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this ListGlobalDcGatewaysResponse. - @x_request_id.setter - def x_request_id(self, x_request_id): - """Sets the x_request_id of this ListGlobalDcGatewayResponse. + 请求ID。 - :param x_request_id: The x_request_id of this ListGlobalDcGatewayResponse. - :type x_request_id: str + :param request_id: The request_id of this ListGlobalDcGatewaysResponse. + :type request_id: str """ - self._x_request_id = x_request_id + self._request_id = request_id def to_dict(self): """Returns the model properties as a dict""" @@ -181,7 +160,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ListGlobalDcGatewayResponse): + if not isinstance(other, ListGlobalDcGatewaysResponse): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_global_eips_request.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_global_eips_request.py index 36454283b6..c9d8ca5495 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_global_eips_request.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_global_eips_request.py @@ -53,11 +53,11 @@ def __init__(self, limit=None, offset=None, marker=None, page_reverse=None, fiel :param limit: 每页返回的个数。 取值范围:1~2000。 :type limit: int - :param offset: + :param offset: 分页偏移量 :type offset: int :param marker: 上一页最后一条资源记录的ID,为空时为查询第一页。 使用说明:必须与limit一起使用。 :type marker: str - :param page_reverse: + :param page_reverse: 分页参数 :type page_reverse: bool :param fields: 显示字段列表 :type fields: list[str] @@ -143,6 +143,8 @@ def limit(self, limit): def offset(self): """Gets the offset of this ListGlobalEipsRequest. + 分页偏移量 + :return: The offset of this ListGlobalEipsRequest. :rtype: int """ @@ -152,6 +154,8 @@ def offset(self): def offset(self, offset): """Sets the offset of this ListGlobalEipsRequest. + 分页偏移量 + :param offset: The offset of this ListGlobalEipsRequest. :type offset: int """ @@ -183,6 +187,8 @@ def marker(self, marker): def page_reverse(self): """Gets the page_reverse of this ListGlobalEipsRequest. + 分页参数 + :return: The page_reverse of this ListGlobalEipsRequest. :rtype: bool """ @@ -192,6 +198,8 @@ def page_reverse(self): def page_reverse(self, page_reverse): """Sets the page_reverse of this ListGlobalEipsRequest. + 分页参数 + :param page_reverse: The page_reverse of this ListGlobalEipsRequest. :type page_reverse: bool """ diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_global_eips_response.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_global_eips_response.py index 3e8672c259..4fe02f147b 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_global_eips_response.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_global_eips_response.py @@ -19,17 +19,15 @@ class ListGlobalEipsResponse(SdkResponse): openapi_types = { 'request_id': 'str', - 'global_eips': 'list[ListBindingGeip]', - 'x_request_id': 'str' + 'global_eips': 'list[ListBindingGeip]' } attribute_map = { 'request_id': 'request_id', - 'global_eips': 'global_eips', - 'x_request_id': 'X-Request-Id' + 'global_eips': 'global_eips' } - def __init__(self, request_id=None, global_eips=None, x_request_id=None): + def __init__(self, request_id=None, global_eips=None): """ListGlobalEipsResponse The model defined in huaweicloud sdk @@ -38,23 +36,18 @@ def __init__(self, request_id=None, global_eips=None, x_request_id=None): :type request_id: str :param global_eips: 全局弹性公网IP :type global_eips: list[:class:`huaweicloudsdkdc.v3.ListBindingGeip`] - :param x_request_id: - :type x_request_id: str """ super(ListGlobalEipsResponse, self).__init__() self._request_id = None self._global_eips = None - self._x_request_id = None self.discriminator = None if request_id is not None: self.request_id = request_id if global_eips is not None: self.global_eips = global_eips - if x_request_id is not None: - self.x_request_id = x_request_id @property def request_id(self): @@ -100,24 +93,6 @@ def global_eips(self, global_eips): """ self._global_eips = global_eips - @property - def x_request_id(self): - """Gets the x_request_id of this ListGlobalEipsResponse. - - :return: The x_request_id of this ListGlobalEipsResponse. - :rtype: str - """ - return self._x_request_id - - @x_request_id.setter - def x_request_id(self, x_request_id): - """Sets the x_request_id of this ListGlobalEipsResponse. - - :param x_request_id: The x_request_id of this ListGlobalEipsResponse. - :type x_request_id: str - """ - self._x_request_id = x_request_id - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_peer_links_request.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_peer_links_request.py index 154b8f8d3f..e05631dce6 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_peer_links_request.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_peer_links_request.py @@ -17,6 +17,7 @@ class ListPeerLinksRequest: sensitive_list = [] openapi_types = { + 'global_dc_gateway_id': 'str', 'limit': 'int', 'offset': 'int', 'marker': 'str', @@ -25,12 +26,12 @@ class ListPeerLinksRequest: 'ext_fields': 'list[str]', 'sort_key': 'str', 'sort_dir': 'list[str]', - 'global_dc_gateway_id': 'str', 'id': 'list[str]', 'name': 'list[str]' } attribute_map = { + 'global_dc_gateway_id': 'global_dc_gateway_id', 'limit': 'limit', 'offset': 'offset', 'marker': 'marker', @@ -39,23 +40,24 @@ class ListPeerLinksRequest: 'ext_fields': 'ext_fields', 'sort_key': 'sort_key', 'sort_dir': 'sort_dir', - 'global_dc_gateway_id': 'global_dc_gateway_id', 'id': 'id', 'name': 'name' } - def __init__(self, limit=None, offset=None, marker=None, page_reverse=None, fields=None, ext_fields=None, sort_key=None, sort_dir=None, global_dc_gateway_id=None, id=None, name=None): + def __init__(self, global_dc_gateway_id=None, limit=None, offset=None, marker=None, page_reverse=None, fields=None, ext_fields=None, sort_key=None, sort_dir=None, id=None, name=None): """ListPeerLinksRequest The model defined in huaweicloud sdk + :param global_dc_gateway_id: 全域接入网关ID + :type global_dc_gateway_id: str :param limit: 每页返回的个数。 取值范围:1~2000。 :type limit: int - :param offset: + :param offset: 分页偏移量 :type offset: int :param marker: 上一页最后一条资源记录的ID,为空时为查询第一页。 使用说明:必须与limit一起使用。 :type marker: str - :param page_reverse: + :param page_reverse: 分页参数 :type page_reverse: bool :param fields: 显示字段列表 :type fields: list[str] @@ -65,8 +67,6 @@ def __init__(self, limit=None, offset=None, marker=None, page_reverse=None, fiel :type sort_key: str :param sort_dir: 返回结果按照升序(asc)或降序(desc)排列,默认为asc :type sort_dir: list[str] - :param global_dc_gateway_id: 全球接入网关ID - :type global_dc_gateway_id: str :param id: 根据资源ID过滤实例 :type id: list[str] :param name: 根据名字过滤查询,可查询多个名字。 @@ -75,6 +75,7 @@ def __init__(self, limit=None, offset=None, marker=None, page_reverse=None, fiel + self._global_dc_gateway_id = None self._limit = None self._offset = None self._marker = None @@ -83,11 +84,11 @@ def __init__(self, limit=None, offset=None, marker=None, page_reverse=None, fiel self._ext_fields = None self._sort_key = None self._sort_dir = None - self._global_dc_gateway_id = None self._id = None self._name = None self.discriminator = None + self.global_dc_gateway_id = global_dc_gateway_id if limit is not None: self.limit = limit if offset is not None: @@ -104,12 +105,33 @@ def __init__(self, limit=None, offset=None, marker=None, page_reverse=None, fiel self.sort_key = sort_key if sort_dir is not None: self.sort_dir = sort_dir - self.global_dc_gateway_id = global_dc_gateway_id if id is not None: self.id = id if name is not None: self.name = name + @property + def global_dc_gateway_id(self): + """Gets the global_dc_gateway_id of this ListPeerLinksRequest. + + 全域接入网关ID + + :return: The global_dc_gateway_id of this ListPeerLinksRequest. + :rtype: str + """ + return self._global_dc_gateway_id + + @global_dc_gateway_id.setter + def global_dc_gateway_id(self, global_dc_gateway_id): + """Sets the global_dc_gateway_id of this ListPeerLinksRequest. + + 全域接入网关ID + + :param global_dc_gateway_id: The global_dc_gateway_id of this ListPeerLinksRequest. + :type global_dc_gateway_id: str + """ + self._global_dc_gateway_id = global_dc_gateway_id + @property def limit(self): """Gets the limit of this ListPeerLinksRequest. @@ -136,6 +158,8 @@ def limit(self, limit): def offset(self): """Gets the offset of this ListPeerLinksRequest. + 分页偏移量 + :return: The offset of this ListPeerLinksRequest. :rtype: int """ @@ -145,6 +169,8 @@ def offset(self): def offset(self, offset): """Sets the offset of this ListPeerLinksRequest. + 分页偏移量 + :param offset: The offset of this ListPeerLinksRequest. :type offset: int """ @@ -176,6 +202,8 @@ def marker(self, marker): def page_reverse(self): """Gets the page_reverse of this ListPeerLinksRequest. + 分页参数 + :return: The page_reverse of this ListPeerLinksRequest. :rtype: bool """ @@ -185,6 +213,8 @@ def page_reverse(self): def page_reverse(self, page_reverse): """Sets the page_reverse of this ListPeerLinksRequest. + 分页参数 + :param page_reverse: The page_reverse of this ListPeerLinksRequest. :type page_reverse: bool """ @@ -278,28 +308,6 @@ def sort_dir(self, sort_dir): """ self._sort_dir = sort_dir - @property - def global_dc_gateway_id(self): - """Gets the global_dc_gateway_id of this ListPeerLinksRequest. - - 全球接入网关ID - - :return: The global_dc_gateway_id of this ListPeerLinksRequest. - :rtype: str - """ - return self._global_dc_gateway_id - - @global_dc_gateway_id.setter - def global_dc_gateway_id(self, global_dc_gateway_id): - """Sets the global_dc_gateway_id of this ListPeerLinksRequest. - - 全球接入网关ID - - :param global_dc_gateway_id: The global_dc_gateway_id of this ListPeerLinksRequest. - :type global_dc_gateway_id: str - """ - self._global_dc_gateway_id = global_dc_gateway_id - @property def id(self): """Gets the id of this ListPeerLinksRequest. diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_peer_links_response.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_peer_links_response.py index b24d54e86f..d1450a2893 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_peer_links_response.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_peer_links_response.py @@ -18,75 +18,52 @@ class ListPeerLinksResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'request_id': 'str', - 'peer_links': 'list[ExternalListPeerLinks]', + 'peer_links': 'list[PeerLinkEntry]', 'page_info': 'PageInfo', - 'x_request_id': 'str' + 'request_id': 'str' } attribute_map = { - 'request_id': 'request_id', 'peer_links': 'peer_links', 'page_info': 'page_info', - 'x_request_id': 'X-Request-Id' + 'request_id': 'request_id' } - def __init__(self, request_id=None, peer_links=None, page_info=None, x_request_id=None): + def __init__(self, peer_links=None, page_info=None, request_id=None): """ListPeerLinksResponse The model defined in huaweicloud sdk - :param request_id: - :type request_id: str - :param peer_links: - :type peer_links: list[:class:`huaweicloudsdkdc.v3.ExternalListPeerLinks`] + :param peer_links: 专线关联连接列表。 + :type peer_links: list[:class:`huaweicloudsdkdc.v3.PeerLinkEntry`] :param page_info: :type page_info: :class:`huaweicloudsdkdc.v3.PageInfo` - :param x_request_id: - :type x_request_id: str + :param request_id: 请求ID。 + :type request_id: str """ super(ListPeerLinksResponse, self).__init__() - self._request_id = None self._peer_links = None self._page_info = None - self._x_request_id = None + self._request_id = None self.discriminator = None - if request_id is not None: - self.request_id = request_id if peer_links is not None: self.peer_links = peer_links if page_info is not None: self.page_info = page_info - if x_request_id is not None: - self.x_request_id = x_request_id - - @property - def request_id(self): - """Gets the request_id of this ListPeerLinksResponse. - - :return: The request_id of this ListPeerLinksResponse. - :rtype: str - """ - return self._request_id - - @request_id.setter - def request_id(self, request_id): - """Sets the request_id of this ListPeerLinksResponse. - - :param request_id: The request_id of this ListPeerLinksResponse. - :type request_id: str - """ - self._request_id = request_id + if request_id is not None: + self.request_id = request_id @property def peer_links(self): """Gets the peer_links of this ListPeerLinksResponse. + 专线关联连接列表。 + :return: The peer_links of this ListPeerLinksResponse. - :rtype: list[:class:`huaweicloudsdkdc.v3.ExternalListPeerLinks`] + :rtype: list[:class:`huaweicloudsdkdc.v3.PeerLinkEntry`] """ return self._peer_links @@ -94,8 +71,10 @@ def peer_links(self): def peer_links(self, peer_links): """Sets the peer_links of this ListPeerLinksResponse. + 专线关联连接列表。 + :param peer_links: The peer_links of this ListPeerLinksResponse. - :type peer_links: list[:class:`huaweicloudsdkdc.v3.ExternalListPeerLinks`] + :type peer_links: list[:class:`huaweicloudsdkdc.v3.PeerLinkEntry`] """ self._peer_links = peer_links @@ -118,22 +97,26 @@ def page_info(self, page_info): self._page_info = page_info @property - def x_request_id(self): - """Gets the x_request_id of this ListPeerLinksResponse. + def request_id(self): + """Gets the request_id of this ListPeerLinksResponse. - :return: The x_request_id of this ListPeerLinksResponse. + 请求ID。 + + :return: The request_id of this ListPeerLinksResponse. :rtype: str """ - return self._x_request_id + return self._request_id + + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this ListPeerLinksResponse. - @x_request_id.setter - def x_request_id(self, x_request_id): - """Sets the x_request_id of this ListPeerLinksResponse. + 请求ID。 - :param x_request_id: The x_request_id of this ListPeerLinksResponse. - :type x_request_id: str + :param request_id: The request_id of this ListPeerLinksResponse. + :type request_id: str """ - self._x_request_id = x_request_id + self._request_id = request_id def to_dict(self): """Returns the model properties as a dict""" diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_rms_global_dc_gateway_request.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_rms_global_dc_gateway_request.py deleted file mode 100644 index 4012d64e09..0000000000 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_rms_global_dc_gateway_request.py +++ /dev/null @@ -1,625 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class ListRmsGlobalDcGatewayRequest: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'limit': 'int', - 'offset': 'int', - 'marker': 'str', - 'page_reverse': 'bool', - 'rp_name': 'str', - 'domain_id': 'str', - 'region_id': 'str', - 'resource_type': 'str', - 'fields': 'list[str]', - 'ext_fields': 'list[str]', - 'sort_key': 'str', - 'sort_dir': 'list[str]', - 'id': 'list[str]', - 'name': 'list[str]', - 'status': 'list[str]', - 'enterprise_project_id': 'list[str]', - 'global_center_network_id': 'list[str]', - 'site_network_id': 'list[str]', - 'cloud_connection_id': 'list[str]' - } - - attribute_map = { - 'limit': 'limit', - 'offset': 'offset', - 'marker': 'marker', - 'page_reverse': 'page_reverse', - 'rp_name': 'rp_name', - 'domain_id': 'domain_id', - 'region_id': 'region_id', - 'resource_type': 'resource_type', - 'fields': 'fields', - 'ext_fields': 'ext_fields', - 'sort_key': 'sort_key', - 'sort_dir': 'sort_dir', - 'id': 'id', - 'name': 'name', - 'status': 'status', - 'enterprise_project_id': 'enterprise_project_id', - 'global_center_network_id': 'global_center_network_id', - 'site_network_id': 'site_network_id', - 'cloud_connection_id': 'cloud_connection_id' - } - - def __init__(self, limit=None, offset=None, marker=None, page_reverse=None, rp_name=None, domain_id=None, region_id=None, resource_type=None, fields=None, ext_fields=None, sort_key=None, sort_dir=None, id=None, name=None, status=None, enterprise_project_id=None, global_center_network_id=None, site_network_id=None, cloud_connection_id=None): - """ListRmsGlobalDcGatewayRequest - - The model defined in huaweicloud sdk - - :param limit: 每页返回的个数。 取值范围:1~2000。 - :type limit: int - :param offset: - :type offset: int - :param marker: 上一页最后一条资源记录的ID,为空时为查询第一页。 使用说明:必须与limit一起使用。 - :type marker: str - :param page_reverse: - :type page_reverse: bool - :param rp_name: 通过rp_name过滤记录 - :type rp_name: str - :param domain_id: domain_id - :type domain_id: str - :param region_id: region_id - :type region_id: str - :param resource_type: resource_type - :type resource_type: str - :param fields: 显示字段列表 - :type fields: list[str] - :param ext_fields: show response ext-fields - :type ext_fields: list[str] - :param sort_key: 排序字段。 - :type sort_key: str - :param sort_dir: 返回结果按照升序(asc)或降序(desc)排列,默认为asc - :type sort_dir: list[str] - :param id: 根据资源ID过滤实例 - :type id: list[str] - :param name: 根据名字过滤查询,可查询多个名字。 - :type name: list[str] - :param status: 根椐资源状态过淲实例 - :type status: list[str] - :param enterprise_project_id: 根据企业项目ID过滤资源实例 - :type enterprise_project_id: list[str] - :param global_center_network_id: 全球中心网络ID - :type global_center_network_id: list[str] - :param site_network_id: 站点网络ID - :type site_network_id: list[str] - :param cloud_connection_id: 云连接ID - :type cloud_connection_id: list[str] - """ - - - - self._limit = None - self._offset = None - self._marker = None - self._page_reverse = None - self._rp_name = None - self._domain_id = None - self._region_id = None - self._resource_type = None - self._fields = None - self._ext_fields = None - self._sort_key = None - self._sort_dir = None - self._id = None - self._name = None - self._status = None - self._enterprise_project_id = None - self._global_center_network_id = None - self._site_network_id = None - self._cloud_connection_id = None - self.discriminator = None - - if limit is not None: - self.limit = limit - if offset is not None: - self.offset = offset - if marker is not None: - self.marker = marker - if page_reverse is not None: - self.page_reverse = page_reverse - self.rp_name = rp_name - self.domain_id = domain_id - self.region_id = region_id - self.resource_type = resource_type - if fields is not None: - self.fields = fields - if ext_fields is not None: - self.ext_fields = ext_fields - if sort_key is not None: - self.sort_key = sort_key - if sort_dir is not None: - self.sort_dir = sort_dir - if id is not None: - self.id = id - if name is not None: - self.name = name - if status is not None: - self.status = status - if enterprise_project_id is not None: - self.enterprise_project_id = enterprise_project_id - if global_center_network_id is not None: - self.global_center_network_id = global_center_network_id - if site_network_id is not None: - self.site_network_id = site_network_id - if cloud_connection_id is not None: - self.cloud_connection_id = cloud_connection_id - - @property - def limit(self): - """Gets the limit of this ListRmsGlobalDcGatewayRequest. - - 每页返回的个数。 取值范围:1~2000。 - - :return: The limit of this ListRmsGlobalDcGatewayRequest. - :rtype: int - """ - return self._limit - - @limit.setter - def limit(self, limit): - """Sets the limit of this ListRmsGlobalDcGatewayRequest. - - 每页返回的个数。 取值范围:1~2000。 - - :param limit: The limit of this ListRmsGlobalDcGatewayRequest. - :type limit: int - """ - self._limit = limit - - @property - def offset(self): - """Gets the offset of this ListRmsGlobalDcGatewayRequest. - - :return: The offset of this ListRmsGlobalDcGatewayRequest. - :rtype: int - """ - return self._offset - - @offset.setter - def offset(self, offset): - """Sets the offset of this ListRmsGlobalDcGatewayRequest. - - :param offset: The offset of this ListRmsGlobalDcGatewayRequest. - :type offset: int - """ - self._offset = offset - - @property - def marker(self): - """Gets the marker of this ListRmsGlobalDcGatewayRequest. - - 上一页最后一条资源记录的ID,为空时为查询第一页。 使用说明:必须与limit一起使用。 - - :return: The marker of this ListRmsGlobalDcGatewayRequest. - :rtype: str - """ - return self._marker - - @marker.setter - def marker(self, marker): - """Sets the marker of this ListRmsGlobalDcGatewayRequest. - - 上一页最后一条资源记录的ID,为空时为查询第一页。 使用说明:必须与limit一起使用。 - - :param marker: The marker of this ListRmsGlobalDcGatewayRequest. - :type marker: str - """ - self._marker = marker - - @property - def page_reverse(self): - """Gets the page_reverse of this ListRmsGlobalDcGatewayRequest. - - :return: The page_reverse of this ListRmsGlobalDcGatewayRequest. - :rtype: bool - """ - return self._page_reverse - - @page_reverse.setter - def page_reverse(self, page_reverse): - """Sets the page_reverse of this ListRmsGlobalDcGatewayRequest. - - :param page_reverse: The page_reverse of this ListRmsGlobalDcGatewayRequest. - :type page_reverse: bool - """ - self._page_reverse = page_reverse - - @property - def rp_name(self): - """Gets the rp_name of this ListRmsGlobalDcGatewayRequest. - - 通过rp_name过滤记录 - - :return: The rp_name of this ListRmsGlobalDcGatewayRequest. - :rtype: str - """ - return self._rp_name - - @rp_name.setter - def rp_name(self, rp_name): - """Sets the rp_name of this ListRmsGlobalDcGatewayRequest. - - 通过rp_name过滤记录 - - :param rp_name: The rp_name of this ListRmsGlobalDcGatewayRequest. - :type rp_name: str - """ - self._rp_name = rp_name - - @property - def domain_id(self): - """Gets the domain_id of this ListRmsGlobalDcGatewayRequest. - - domain_id - - :return: The domain_id of this ListRmsGlobalDcGatewayRequest. - :rtype: str - """ - return self._domain_id - - @domain_id.setter - def domain_id(self, domain_id): - """Sets the domain_id of this ListRmsGlobalDcGatewayRequest. - - domain_id - - :param domain_id: The domain_id of this ListRmsGlobalDcGatewayRequest. - :type domain_id: str - """ - self._domain_id = domain_id - - @property - def region_id(self): - """Gets the region_id of this ListRmsGlobalDcGatewayRequest. - - region_id - - :return: The region_id of this ListRmsGlobalDcGatewayRequest. - :rtype: str - """ - return self._region_id - - @region_id.setter - def region_id(self, region_id): - """Sets the region_id of this ListRmsGlobalDcGatewayRequest. - - region_id - - :param region_id: The region_id of this ListRmsGlobalDcGatewayRequest. - :type region_id: str - """ - self._region_id = region_id - - @property - def resource_type(self): - """Gets the resource_type of this ListRmsGlobalDcGatewayRequest. - - resource_type - - :return: The resource_type of this ListRmsGlobalDcGatewayRequest. - :rtype: str - """ - return self._resource_type - - @resource_type.setter - def resource_type(self, resource_type): - """Sets the resource_type of this ListRmsGlobalDcGatewayRequest. - - resource_type - - :param resource_type: The resource_type of this ListRmsGlobalDcGatewayRequest. - :type resource_type: str - """ - self._resource_type = resource_type - - @property - def fields(self): - """Gets the fields of this ListRmsGlobalDcGatewayRequest. - - 显示字段列表 - - :return: The fields of this ListRmsGlobalDcGatewayRequest. - :rtype: list[str] - """ - return self._fields - - @fields.setter - def fields(self, fields): - """Sets the fields of this ListRmsGlobalDcGatewayRequest. - - 显示字段列表 - - :param fields: The fields of this ListRmsGlobalDcGatewayRequest. - :type fields: list[str] - """ - self._fields = fields - - @property - def ext_fields(self): - """Gets the ext_fields of this ListRmsGlobalDcGatewayRequest. - - show response ext-fields - - :return: The ext_fields of this ListRmsGlobalDcGatewayRequest. - :rtype: list[str] - """ - return self._ext_fields - - @ext_fields.setter - def ext_fields(self, ext_fields): - """Sets the ext_fields of this ListRmsGlobalDcGatewayRequest. - - show response ext-fields - - :param ext_fields: The ext_fields of this ListRmsGlobalDcGatewayRequest. - :type ext_fields: list[str] - """ - self._ext_fields = ext_fields - - @property - def sort_key(self): - """Gets the sort_key of this ListRmsGlobalDcGatewayRequest. - - 排序字段。 - - :return: The sort_key of this ListRmsGlobalDcGatewayRequest. - :rtype: str - """ - return self._sort_key - - @sort_key.setter - def sort_key(self, sort_key): - """Sets the sort_key of this ListRmsGlobalDcGatewayRequest. - - 排序字段。 - - :param sort_key: The sort_key of this ListRmsGlobalDcGatewayRequest. - :type sort_key: str - """ - self._sort_key = sort_key - - @property - def sort_dir(self): - """Gets the sort_dir of this ListRmsGlobalDcGatewayRequest. - - 返回结果按照升序(asc)或降序(desc)排列,默认为asc - - :return: The sort_dir of this ListRmsGlobalDcGatewayRequest. - :rtype: list[str] - """ - return self._sort_dir - - @sort_dir.setter - def sort_dir(self, sort_dir): - """Sets the sort_dir of this ListRmsGlobalDcGatewayRequest. - - 返回结果按照升序(asc)或降序(desc)排列,默认为asc - - :param sort_dir: The sort_dir of this ListRmsGlobalDcGatewayRequest. - :type sort_dir: list[str] - """ - self._sort_dir = sort_dir - - @property - def id(self): - """Gets the id of this ListRmsGlobalDcGatewayRequest. - - 根据资源ID过滤实例 - - :return: The id of this ListRmsGlobalDcGatewayRequest. - :rtype: list[str] - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ListRmsGlobalDcGatewayRequest. - - 根据资源ID过滤实例 - - :param id: The id of this ListRmsGlobalDcGatewayRequest. - :type id: list[str] - """ - self._id = id - - @property - def name(self): - """Gets the name of this ListRmsGlobalDcGatewayRequest. - - 根据名字过滤查询,可查询多个名字。 - - :return: The name of this ListRmsGlobalDcGatewayRequest. - :rtype: list[str] - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ListRmsGlobalDcGatewayRequest. - - 根据名字过滤查询,可查询多个名字。 - - :param name: The name of this ListRmsGlobalDcGatewayRequest. - :type name: list[str] - """ - self._name = name - - @property - def status(self): - """Gets the status of this ListRmsGlobalDcGatewayRequest. - - 根椐资源状态过淲实例 - - :return: The status of this ListRmsGlobalDcGatewayRequest. - :rtype: list[str] - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this ListRmsGlobalDcGatewayRequest. - - 根椐资源状态过淲实例 - - :param status: The status of this ListRmsGlobalDcGatewayRequest. - :type status: list[str] - """ - self._status = status - - @property - def enterprise_project_id(self): - """Gets the enterprise_project_id of this ListRmsGlobalDcGatewayRequest. - - 根据企业项目ID过滤资源实例 - - :return: The enterprise_project_id of this ListRmsGlobalDcGatewayRequest. - :rtype: list[str] - """ - return self._enterprise_project_id - - @enterprise_project_id.setter - def enterprise_project_id(self, enterprise_project_id): - """Sets the enterprise_project_id of this ListRmsGlobalDcGatewayRequest. - - 根据企业项目ID过滤资源实例 - - :param enterprise_project_id: The enterprise_project_id of this ListRmsGlobalDcGatewayRequest. - :type enterprise_project_id: list[str] - """ - self._enterprise_project_id = enterprise_project_id - - @property - def global_center_network_id(self): - """Gets the global_center_network_id of this ListRmsGlobalDcGatewayRequest. - - 全球中心网络ID - - :return: The global_center_network_id of this ListRmsGlobalDcGatewayRequest. - :rtype: list[str] - """ - return self._global_center_network_id - - @global_center_network_id.setter - def global_center_network_id(self, global_center_network_id): - """Sets the global_center_network_id of this ListRmsGlobalDcGatewayRequest. - - 全球中心网络ID - - :param global_center_network_id: The global_center_network_id of this ListRmsGlobalDcGatewayRequest. - :type global_center_network_id: list[str] - """ - self._global_center_network_id = global_center_network_id - - @property - def site_network_id(self): - """Gets the site_network_id of this ListRmsGlobalDcGatewayRequest. - - 站点网络ID - - :return: The site_network_id of this ListRmsGlobalDcGatewayRequest. - :rtype: list[str] - """ - return self._site_network_id - - @site_network_id.setter - def site_network_id(self, site_network_id): - """Sets the site_network_id of this ListRmsGlobalDcGatewayRequest. - - 站点网络ID - - :param site_network_id: The site_network_id of this ListRmsGlobalDcGatewayRequest. - :type site_network_id: list[str] - """ - self._site_network_id = site_network_id - - @property - def cloud_connection_id(self): - """Gets the cloud_connection_id of this ListRmsGlobalDcGatewayRequest. - - 云连接ID - - :return: The cloud_connection_id of this ListRmsGlobalDcGatewayRequest. - :rtype: list[str] - """ - return self._cloud_connection_id - - @cloud_connection_id.setter - def cloud_connection_id(self, cloud_connection_id): - """Sets the cloud_connection_id of this ListRmsGlobalDcGatewayRequest. - - 云连接ID - - :param cloud_connection_id: The cloud_connection_id of this ListRmsGlobalDcGatewayRequest. - :type cloud_connection_id: list[str] - """ - self._cloud_connection_id = cloud_connection_id - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ListRmsGlobalDcGatewayRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_virtual_gateways_request.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_virtual_gateways_request.py index c5083be8a4..595917a1f2 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_virtual_gateways_request.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_virtual_gateways_request.py @@ -57,7 +57,7 @@ def __init__(self, limit=None, marker=None, fields=None, sort_dir=None, sort_key :type id: list[str] :param enterprise_project_id: 根据企业项目ID过滤资源实例 :type enterprise_project_id: list[str] - :param vpc_id: 通过VPC-ID过虑虚拟网关实例 + :param vpc_id: 通过VPC-ID过滤虚拟网关实例 :type vpc_id: list[str] """ @@ -248,7 +248,7 @@ def enterprise_project_id(self, enterprise_project_id): def vpc_id(self): """Gets the vpc_id of this ListVirtualGatewaysRequest. - 通过VPC-ID过虑虚拟网关实例 + 通过VPC-ID过滤虚拟网关实例 :return: The vpc_id of this ListVirtualGatewaysRequest. :rtype: list[str] @@ -259,7 +259,7 @@ def vpc_id(self): def vpc_id(self, vpc_id): """Sets the vpc_id of this ListVirtualGatewaysRequest. - 通过VPC-ID过虑虚拟网关实例 + 通过VPC-ID过滤虚拟网关实例 :param vpc_id: The vpc_id of this ListVirtualGatewaysRequest. :type vpc_id: list[str] diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/external_list_peer_links.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/peer_link_entry.py similarity index 58% rename from huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/external_list_peer_links.py rename to huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/peer_link_entry.py index 77ea59335b..11e8db1723 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/external_list_peer_links.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/peer_link_entry.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class ExternalListPeerLinks: +class PeerLinkEntry: """ Attributes: @@ -22,14 +22,13 @@ class ExternalListPeerLinks: 'name': 'str', 'description': 'str', 'global_dc_gateway_id': 'str', - 'instance_id': 'str', - 'create_owner': 'str', - 'bandwidth_info': 'BandwidthInfoExternal', - 'peer_site': 'PeerSiteExternal', - 'status': 'str', - 'reason': 'str', + 'bandwidth_info': 'BandWidthInfo', + 'peer_site': 'PeerSite', + 'status': 'PeerLinkStatus', 'created_time': 'datetime', - 'updated_time': 'datetime' + 'updated_time': 'datetime', + 'create_owner': 'datetime', + 'instance_id': 'str' } attribute_map = { @@ -38,47 +37,44 @@ class ExternalListPeerLinks: 'name': 'name', 'description': 'description', 'global_dc_gateway_id': 'global_dc_gateway_id', - 'instance_id': 'instance_id', - 'create_owner': 'create_owner', 'bandwidth_info': 'bandwidth_info', 'peer_site': 'peer_site', 'status': 'status', - 'reason': 'reason', 'created_time': 'created_time', - 'updated_time': 'updated_time' + 'updated_time': 'updated_time', + 'create_owner': 'create_owner', + 'instance_id': 'instance_id' } - def __init__(self, id=None, tenant_id=None, name=None, description=None, global_dc_gateway_id=None, instance_id=None, create_owner=None, bandwidth_info=None, peer_site=None, status=None, reason=None, created_time=None, updated_time=None): - """ExternalListPeerLinks + def __init__(self, id=None, tenant_id=None, name=None, description=None, global_dc_gateway_id=None, bandwidth_info=None, peer_site=None, status=None, created_time=None, updated_time=None, create_owner=None, instance_id=None): + """PeerLinkEntry The model defined in huaweicloud sdk - :param id: + :param id: peer link ID。 :type id: str - :param tenant_id: + :param tenant_id: 租户项目ID :type tenant_id: str - :param name: + :param name: 专线内部连接(peer link)名字 :type name: str - :param description: + :param description: 描述信息 :type description: str - :param global_dc_gateway_id: + :param global_dc_gateway_id: 对应的专线全域接入网关ID :type global_dc_gateway_id: str - :param instance_id: - :type instance_id: str - :param create_owner: - :type create_owner: str :param bandwidth_info: - :type bandwidth_info: :class:`huaweicloudsdkdc.v3.BandwidthInfoExternal` + :type bandwidth_info: :class:`huaweicloudsdkdc.v3.BandWidthInfo` :param peer_site: - :type peer_site: :class:`huaweicloudsdkdc.v3.PeerSiteExternal` + :type peer_site: :class:`huaweicloudsdkdc.v3.PeerSite` :param status: - :type status: str - :param reason: - :type reason: str - :param created_time: + :type status: :class:`huaweicloudsdkdc.v3.PeerLinkStatus` + :param created_time: 创建时间。 :type created_time: datetime - :param updated_time: + :param updated_time: 更新时间。 :type updated_time: datetime + :param create_owner: 创建归属服务名 - cc 云连接 - dc 云专线 + :type create_owner: datetime + :param instance_id: 实例ID + :type instance_id: str """ @@ -88,14 +84,13 @@ def __init__(self, id=None, tenant_id=None, name=None, description=None, global_ self._name = None self._description = None self._global_dc_gateway_id = None - self._instance_id = None - self._create_owner = None self._bandwidth_info = None self._peer_site = None self._status = None - self._reason = None self._created_time = None self._updated_time = None + self._create_owner = None + self._instance_id = None self.discriminator = None if id is not None: @@ -108,257 +103,273 @@ def __init__(self, id=None, tenant_id=None, name=None, description=None, global_ self.description = description if global_dc_gateway_id is not None: self.global_dc_gateway_id = global_dc_gateway_id - if instance_id is not None: - self.instance_id = instance_id - if create_owner is not None: - self.create_owner = create_owner if bandwidth_info is not None: self.bandwidth_info = bandwidth_info if peer_site is not None: self.peer_site = peer_site if status is not None: self.status = status - if reason is not None: - self.reason = reason if created_time is not None: self.created_time = created_time if updated_time is not None: self.updated_time = updated_time + if create_owner is not None: + self.create_owner = create_owner + if instance_id is not None: + self.instance_id = instance_id @property def id(self): - """Gets the id of this ExternalListPeerLinks. + """Gets the id of this PeerLinkEntry. - :return: The id of this ExternalListPeerLinks. + peer link ID。 + + :return: The id of this PeerLinkEntry. :rtype: str """ return self._id @id.setter def id(self, id): - """Sets the id of this ExternalListPeerLinks. + """Sets the id of this PeerLinkEntry. + + peer link ID。 - :param id: The id of this ExternalListPeerLinks. + :param id: The id of this PeerLinkEntry. :type id: str """ self._id = id @property def tenant_id(self): - """Gets the tenant_id of this ExternalListPeerLinks. + """Gets the tenant_id of this PeerLinkEntry. + + 租户项目ID - :return: The tenant_id of this ExternalListPeerLinks. + :return: The tenant_id of this PeerLinkEntry. :rtype: str """ return self._tenant_id @tenant_id.setter def tenant_id(self, tenant_id): - """Sets the tenant_id of this ExternalListPeerLinks. + """Sets the tenant_id of this PeerLinkEntry. - :param tenant_id: The tenant_id of this ExternalListPeerLinks. + 租户项目ID + + :param tenant_id: The tenant_id of this PeerLinkEntry. :type tenant_id: str """ self._tenant_id = tenant_id @property def name(self): - """Gets the name of this ExternalListPeerLinks. + """Gets the name of this PeerLinkEntry. + + 专线内部连接(peer link)名字 - :return: The name of this ExternalListPeerLinks. + :return: The name of this PeerLinkEntry. :rtype: str """ return self._name @name.setter def name(self, name): - """Sets the name of this ExternalListPeerLinks. + """Sets the name of this PeerLinkEntry. + + 专线内部连接(peer link)名字 - :param name: The name of this ExternalListPeerLinks. + :param name: The name of this PeerLinkEntry. :type name: str """ self._name = name @property def description(self): - """Gets the description of this ExternalListPeerLinks. + """Gets the description of this PeerLinkEntry. - :return: The description of this ExternalListPeerLinks. + 描述信息 + + :return: The description of this PeerLinkEntry. :rtype: str """ return self._description @description.setter def description(self, description): - """Sets the description of this ExternalListPeerLinks. + """Sets the description of this PeerLinkEntry. + + 描述信息 - :param description: The description of this ExternalListPeerLinks. + :param description: The description of this PeerLinkEntry. :type description: str """ self._description = description @property def global_dc_gateway_id(self): - """Gets the global_dc_gateway_id of this ExternalListPeerLinks. + """Gets the global_dc_gateway_id of this PeerLinkEntry. + + 对应的专线全域接入网关ID - :return: The global_dc_gateway_id of this ExternalListPeerLinks. + :return: The global_dc_gateway_id of this PeerLinkEntry. :rtype: str """ return self._global_dc_gateway_id @global_dc_gateway_id.setter def global_dc_gateway_id(self, global_dc_gateway_id): - """Sets the global_dc_gateway_id of this ExternalListPeerLinks. + """Sets the global_dc_gateway_id of this PeerLinkEntry. - :param global_dc_gateway_id: The global_dc_gateway_id of this ExternalListPeerLinks. + 对应的专线全域接入网关ID + + :param global_dc_gateway_id: The global_dc_gateway_id of this PeerLinkEntry. :type global_dc_gateway_id: str """ self._global_dc_gateway_id = global_dc_gateway_id - @property - def instance_id(self): - """Gets the instance_id of this ExternalListPeerLinks. - - :return: The instance_id of this ExternalListPeerLinks. - :rtype: str - """ - return self._instance_id - - @instance_id.setter - def instance_id(self, instance_id): - """Sets the instance_id of this ExternalListPeerLinks. - - :param instance_id: The instance_id of this ExternalListPeerLinks. - :type instance_id: str - """ - self._instance_id = instance_id - - @property - def create_owner(self): - """Gets the create_owner of this ExternalListPeerLinks. - - :return: The create_owner of this ExternalListPeerLinks. - :rtype: str - """ - return self._create_owner - - @create_owner.setter - def create_owner(self, create_owner): - """Sets the create_owner of this ExternalListPeerLinks. - - :param create_owner: The create_owner of this ExternalListPeerLinks. - :type create_owner: str - """ - self._create_owner = create_owner - @property def bandwidth_info(self): - """Gets the bandwidth_info of this ExternalListPeerLinks. + """Gets the bandwidth_info of this PeerLinkEntry. - :return: The bandwidth_info of this ExternalListPeerLinks. - :rtype: :class:`huaweicloudsdkdc.v3.BandwidthInfoExternal` + :return: The bandwidth_info of this PeerLinkEntry. + :rtype: :class:`huaweicloudsdkdc.v3.BandWidthInfo` """ return self._bandwidth_info @bandwidth_info.setter def bandwidth_info(self, bandwidth_info): - """Sets the bandwidth_info of this ExternalListPeerLinks. + """Sets the bandwidth_info of this PeerLinkEntry. - :param bandwidth_info: The bandwidth_info of this ExternalListPeerLinks. - :type bandwidth_info: :class:`huaweicloudsdkdc.v3.BandwidthInfoExternal` + :param bandwidth_info: The bandwidth_info of this PeerLinkEntry. + :type bandwidth_info: :class:`huaweicloudsdkdc.v3.BandWidthInfo` """ self._bandwidth_info = bandwidth_info @property def peer_site(self): - """Gets the peer_site of this ExternalListPeerLinks. + """Gets the peer_site of this PeerLinkEntry. - :return: The peer_site of this ExternalListPeerLinks. - :rtype: :class:`huaweicloudsdkdc.v3.PeerSiteExternal` + :return: The peer_site of this PeerLinkEntry. + :rtype: :class:`huaweicloudsdkdc.v3.PeerSite` """ return self._peer_site @peer_site.setter def peer_site(self, peer_site): - """Sets the peer_site of this ExternalListPeerLinks. + """Sets the peer_site of this PeerLinkEntry. - :param peer_site: The peer_site of this ExternalListPeerLinks. - :type peer_site: :class:`huaweicloudsdkdc.v3.PeerSiteExternal` + :param peer_site: The peer_site of this PeerLinkEntry. + :type peer_site: :class:`huaweicloudsdkdc.v3.PeerSite` """ self._peer_site = peer_site @property def status(self): - """Gets the status of this ExternalListPeerLinks. + """Gets the status of this PeerLinkEntry. - :return: The status of this ExternalListPeerLinks. - :rtype: str + :return: The status of this PeerLinkEntry. + :rtype: :class:`huaweicloudsdkdc.v3.PeerLinkStatus` """ return self._status @status.setter def status(self, status): - """Sets the status of this ExternalListPeerLinks. + """Sets the status of this PeerLinkEntry. - :param status: The status of this ExternalListPeerLinks. - :type status: str + :param status: The status of this PeerLinkEntry. + :type status: :class:`huaweicloudsdkdc.v3.PeerLinkStatus` """ self._status = status - @property - def reason(self): - """Gets the reason of this ExternalListPeerLinks. - - :return: The reason of this ExternalListPeerLinks. - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """Sets the reason of this ExternalListPeerLinks. - - :param reason: The reason of this ExternalListPeerLinks. - :type reason: str - """ - self._reason = reason - @property def created_time(self): - """Gets the created_time of this ExternalListPeerLinks. + """Gets the created_time of this PeerLinkEntry. + + 创建时间。 - :return: The created_time of this ExternalListPeerLinks. + :return: The created_time of this PeerLinkEntry. :rtype: datetime """ return self._created_time @created_time.setter def created_time(self, created_time): - """Sets the created_time of this ExternalListPeerLinks. + """Sets the created_time of this PeerLinkEntry. + + 创建时间。 - :param created_time: The created_time of this ExternalListPeerLinks. + :param created_time: The created_time of this PeerLinkEntry. :type created_time: datetime """ self._created_time = created_time @property def updated_time(self): - """Gets the updated_time of this ExternalListPeerLinks. + """Gets the updated_time of this PeerLinkEntry. - :return: The updated_time of this ExternalListPeerLinks. + 更新时间。 + + :return: The updated_time of this PeerLinkEntry. :rtype: datetime """ return self._updated_time @updated_time.setter def updated_time(self, updated_time): - """Sets the updated_time of this ExternalListPeerLinks. + """Sets the updated_time of this PeerLinkEntry. + + 更新时间。 - :param updated_time: The updated_time of this ExternalListPeerLinks. + :param updated_time: The updated_time of this PeerLinkEntry. :type updated_time: datetime """ self._updated_time = updated_time + @property + def create_owner(self): + """Gets the create_owner of this PeerLinkEntry. + + 创建归属服务名 - cc 云连接 - dc 云专线 + + :return: The create_owner of this PeerLinkEntry. + :rtype: datetime + """ + return self._create_owner + + @create_owner.setter + def create_owner(self, create_owner): + """Sets the create_owner of this PeerLinkEntry. + + 创建归属服务名 - cc 云连接 - dc 云专线 + + :param create_owner: The create_owner of this PeerLinkEntry. + :type create_owner: datetime + """ + self._create_owner = create_owner + + @property + def instance_id(self): + """Gets the instance_id of this PeerLinkEntry. + + 实例ID + + :return: The instance_id of this PeerLinkEntry. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this PeerLinkEntry. + + 实例ID + + :param instance_id: The instance_id of this PeerLinkEntry. + :type instance_id: str + """ + self._instance_id = instance_id + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -401,7 +412,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ExternalListPeerLinks): + if not isinstance(other, PeerLinkEntry): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/peer_link_status.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/peer_link_status.py new file mode 100644 index 0000000000..75be5b8d02 --- /dev/null +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/peer_link_status.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PeerLinkStatus: + """ + allowed enum values + """ + PENDING_CREATE = "PENDING_CREATE" + PENDING_UPDATE = "PENDING_UPDATE" + ACTIVE = "ACTIVE" + ERROR = "ERROR" + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """PeerLinkStatus + + The model defined in huaweicloud sdk + + """ + + + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PeerLinkStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/peer_site.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/peer_site.py new file mode 100644 index 0000000000..46bcaacac0 --- /dev/null +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/peer_site.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PeerSite: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'gateway_id': 'str', + 'link_id': 'str', + 'region_id': 'str', + 'site_code': 'str', + 'project_id': 'str', + 'type': 'str' + } + + attribute_map = { + 'gateway_id': 'gateway_id', + 'link_id': 'link_id', + 'region_id': 'region_id', + 'site_code': 'site_code', + 'project_id': 'project_id', + 'type': 'type' + } + + def __init__(self, gateway_id=None, link_id=None, region_id=None, site_code=None, project_id=None, type=None): + """PeerSite + + The model defined in huaweicloud sdk + + :param gateway_id: 对端网关的ID + :type gateway_id: str + :param link_id: 对端网关连接的ID(如:对端为ER时为attachment ID,对端为GDGW时为对端的PeerLink Id) + :type link_id: str + :param region_id: 对端网关所在的Region + :type region_id: str + :param site_code: 专线全域接入网关对应的站点位置 + :type site_code: str + :param project_id: 对等体站点的项目ID + :type project_id: str + :param type: 对等体的类型 - ER 企业路由器 - GDGW 全域接入网关 + :type type: str + """ + + + + self._gateway_id = None + self._link_id = None + self._region_id = None + self._site_code = None + self._project_id = None + self._type = None + self.discriminator = None + + if gateway_id is not None: + self.gateway_id = gateway_id + if link_id is not None: + self.link_id = link_id + if region_id is not None: + self.region_id = region_id + if site_code is not None: + self.site_code = site_code + if project_id is not None: + self.project_id = project_id + if type is not None: + self.type = type + + @property + def gateway_id(self): + """Gets the gateway_id of this PeerSite. + + 对端网关的ID + + :return: The gateway_id of this PeerSite. + :rtype: str + """ + return self._gateway_id + + @gateway_id.setter + def gateway_id(self, gateway_id): + """Sets the gateway_id of this PeerSite. + + 对端网关的ID + + :param gateway_id: The gateway_id of this PeerSite. + :type gateway_id: str + """ + self._gateway_id = gateway_id + + @property + def link_id(self): + """Gets the link_id of this PeerSite. + + 对端网关连接的ID(如:对端为ER时为attachment ID,对端为GDGW时为对端的PeerLink Id) + + :return: The link_id of this PeerSite. + :rtype: str + """ + return self._link_id + + @link_id.setter + def link_id(self, link_id): + """Sets the link_id of this PeerSite. + + 对端网关连接的ID(如:对端为ER时为attachment ID,对端为GDGW时为对端的PeerLink Id) + + :param link_id: The link_id of this PeerSite. + :type link_id: str + """ + self._link_id = link_id + + @property + def region_id(self): + """Gets the region_id of this PeerSite. + + 对端网关所在的Region + + :return: The region_id of this PeerSite. + :rtype: str + """ + return self._region_id + + @region_id.setter + def region_id(self, region_id): + """Sets the region_id of this PeerSite. + + 对端网关所在的Region + + :param region_id: The region_id of this PeerSite. + :type region_id: str + """ + self._region_id = region_id + + @property + def site_code(self): + """Gets the site_code of this PeerSite. + + 专线全域接入网关对应的站点位置 + + :return: The site_code of this PeerSite. + :rtype: str + """ + return self._site_code + + @site_code.setter + def site_code(self, site_code): + """Sets the site_code of this PeerSite. + + 专线全域接入网关对应的站点位置 + + :param site_code: The site_code of this PeerSite. + :type site_code: str + """ + self._site_code = site_code + + @property + def project_id(self): + """Gets the project_id of this PeerSite. + + 对等体站点的项目ID + + :return: The project_id of this PeerSite. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this PeerSite. + + 对等体站点的项目ID + + :param project_id: The project_id of this PeerSite. + :type project_id: str + """ + self._project_id = project_id + + @property + def type(self): + """Gets the type of this PeerSite. + + 对等体的类型 - ER 企业路由器 - GDGW 全域接入网关 + + :return: The type of this PeerSite. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this PeerSite. + + 对等体的类型 - ER 企业路由器 - GDGW 全域接入网关 + + :param type: The type of this PeerSite. + :type type: str + """ + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PeerSite): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/peer_site_external.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/peer_site_external.py index d2fae7abc9..f94699c0ac 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/peer_site_external.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/peer_site_external.py @@ -17,7 +17,6 @@ class PeerSiteExternal: sensitive_list = [] openapi_types = { - 'type': 'str', 'gateway_id': 'str', 'link_id': 'str', 'region_id': 'str', @@ -26,7 +25,6 @@ class PeerSiteExternal: } attribute_map = { - 'type': 'type', 'gateway_id': 'gateway_id', 'link_id': 'link_id', 'region_id': 'region_id', @@ -34,14 +32,12 @@ class PeerSiteExternal: 'site_code': 'site_code' } - def __init__(self, type=None, gateway_id=None, link_id=None, region_id=None, project_id=None, site_code=None): + def __init__(self, gateway_id=None, link_id=None, region_id=None, project_id=None, site_code=None): """PeerSiteExternal The model defined in huaweicloud sdk - :param type: 类型 - :type type: str - :param gateway_id: 网关ID + :param gateway_id: 全域接入网关ID :type gateway_id: str :param link_id: 连接ID :type link_id: str @@ -49,13 +45,12 @@ def __init__(self, type=None, gateway_id=None, link_id=None, region_id=None, pro :type region_id: str :param project_id: 项目ID :type project_id: str - :param site_code: 站点编码 + :param site_code: 网点编码 :type site_code: str """ - self._type = None self._gateway_id = None self._link_id = None self._region_id = None @@ -63,8 +58,6 @@ def __init__(self, type=None, gateway_id=None, link_id=None, region_id=None, pro self._site_code = None self.discriminator = None - if type is not None: - self.type = type if gateway_id is not None: self.gateway_id = gateway_id if link_id is not None: @@ -76,33 +69,11 @@ def __init__(self, type=None, gateway_id=None, link_id=None, region_id=None, pro if site_code is not None: self.site_code = site_code - @property - def type(self): - """Gets the type of this PeerSiteExternal. - - 类型 - - :return: The type of this PeerSiteExternal. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this PeerSiteExternal. - - 类型 - - :param type: The type of this PeerSiteExternal. - :type type: str - """ - self._type = type - @property def gateway_id(self): """Gets the gateway_id of this PeerSiteExternal. - 网关ID + 全域接入网关ID :return: The gateway_id of this PeerSiteExternal. :rtype: str @@ -113,7 +84,7 @@ def gateway_id(self): def gateway_id(self, gateway_id): """Sets the gateway_id of this PeerSiteExternal. - 网关ID + 全域接入网关ID :param gateway_id: The gateway_id of this PeerSiteExternal. :type gateway_id: str @@ -190,7 +161,7 @@ def project_id(self, project_id): def site_code(self): """Gets the site_code of this PeerSiteExternal. - 站点编码 + 网点编码 :return: The site_code of this PeerSiteExternal. :rtype: str @@ -201,7 +172,7 @@ def site_code(self): def site_code(self, site_code): """Sets the site_code of this PeerSiteExternal. - 站点编码 + 网点编码 :param site_code: The site_code of this PeerSiteExternal. :type site_code: str diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/provider_response_body.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/provider_response_body.py new file mode 100644 index 0000000000..11978948db --- /dev/null +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/provider_response_body.py @@ -0,0 +1,227 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ProviderResponseBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'short_name': 'str', + 'type': 'str', + 'provider_value': 'ProviderValueBody', + 'description': 'str' + } + + attribute_map = { + 'id': 'id', + 'short_name': 'short_name', + 'type': 'type', + 'provider_value': 'provider_value', + 'description': 'description' + } + + def __init__(self, id=None, short_name=None, type=None, provider_value=None, description=None): + """ProviderResponseBody + + The model defined in huaweicloud sdk + + :param id: 运营商id + :type id: str + :param short_name: 运营商简写 + :type short_name: str + :param type: 运营商类型 + :type type: str + :param provider_value: + :type provider_value: :class:`huaweicloudsdkdc.v3.ProviderValueBody` + :param description: 运营商描述信息 + :type description: str + """ + + + + self._id = None + self._short_name = None + self._type = None + self._provider_value = None + self._description = None + self.discriminator = None + + if id is not None: + self.id = id + if short_name is not None: + self.short_name = short_name + if type is not None: + self.type = type + if provider_value is not None: + self.provider_value = provider_value + if description is not None: + self.description = description + + @property + def id(self): + """Gets the id of this ProviderResponseBody. + + 运营商id + + :return: The id of this ProviderResponseBody. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ProviderResponseBody. + + 运营商id + + :param id: The id of this ProviderResponseBody. + :type id: str + """ + self._id = id + + @property + def short_name(self): + """Gets the short_name of this ProviderResponseBody. + + 运营商简写 + + :return: The short_name of this ProviderResponseBody. + :rtype: str + """ + return self._short_name + + @short_name.setter + def short_name(self, short_name): + """Sets the short_name of this ProviderResponseBody. + + 运营商简写 + + :param short_name: The short_name of this ProviderResponseBody. + :type short_name: str + """ + self._short_name = short_name + + @property + def type(self): + """Gets the type of this ProviderResponseBody. + + 运营商类型 + + :return: The type of this ProviderResponseBody. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ProviderResponseBody. + + 运营商类型 + + :param type: The type of this ProviderResponseBody. + :type type: str + """ + self._type = type + + @property + def provider_value(self): + """Gets the provider_value of this ProviderResponseBody. + + :return: The provider_value of this ProviderResponseBody. + :rtype: :class:`huaweicloudsdkdc.v3.ProviderValueBody` + """ + return self._provider_value + + @provider_value.setter + def provider_value(self, provider_value): + """Sets the provider_value of this ProviderResponseBody. + + :param provider_value: The provider_value of this ProviderResponseBody. + :type provider_value: :class:`huaweicloudsdkdc.v3.ProviderValueBody` + """ + self._provider_value = provider_value + + @property + def description(self): + """Gets the description of this ProviderResponseBody. + + 运营商描述信息 + + :return: The description of this ProviderResponseBody. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ProviderResponseBody. + + 运营商描述信息 + + :param description: The description of this ProviderResponseBody. + :type description: str + """ + self._description = description + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ProviderResponseBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/provider_value_body.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/provider_value_body.py new file mode 100644 index 0000000000..70c155f562 --- /dev/null +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/provider_value_body.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ProviderValueBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'en_us': 'str', + 'zh_cn': 'str' + } + + attribute_map = { + 'en_us': 'en_us', + 'zh_cn': 'zh_cn' + } + + def __init__(self, en_us=None, zh_cn=None): + """ProviderValueBody + + The model defined in huaweicloud sdk + + :param en_us: 英文名称。 + :type en_us: str + :param zh_cn: 中文信息。 + :type zh_cn: str + """ + + + + self._en_us = None + self._zh_cn = None + self.discriminator = None + + if en_us is not None: + self.en_us = en_us + if zh_cn is not None: + self.zh_cn = zh_cn + + @property + def en_us(self): + """Gets the en_us of this ProviderValueBody. + + 英文名称。 + + :return: The en_us of this ProviderValueBody. + :rtype: str + """ + return self._en_us + + @en_us.setter + def en_us(self, en_us): + """Sets the en_us of this ProviderValueBody. + + 英文名称。 + + :param en_us: The en_us of this ProviderValueBody. + :type en_us: str + """ + self._en_us = en_us + + @property + def zh_cn(self): + """Gets the zh_cn of this ProviderValueBody. + + 中文信息。 + + :return: The zh_cn of this ProviderValueBody. + :rtype: str + """ + return self._zh_cn + + @zh_cn.setter + def zh_cn(self, zh_cn): + """Sets the zh_cn of this ProviderValueBody. + + 中文信息。 + + :param zh_cn: The zh_cn of this ProviderValueBody. + :type zh_cn: str + """ + self._zh_cn = zh_cn + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ProviderValueBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/rms_list_global_dc_gateways.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/rms_list_global_dc_gateways.py deleted file mode 100644 index dd1783d5aa..0000000000 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/rms_list_global_dc_gateways.py +++ /dev/null @@ -1,633 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class RmsListGlobalDcGateways: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'id': 'str', - 'tenant_id': 'str', - 'name': 'str', - 'description': 'str', - 'enterprise_project_id': 'str', - 'global_center_network_id': 'str', - 'site_network_id': 'str', - 'cloud_connection_id': 'str', - 'bgp_asn': 'int', - 'region_id': 'str', - 'location_name': 'str', - 'locales': 'Locale', - 'current_peer_link_count': 'int', - 'available_peer_link_count': 'int', - 'admin_state_up': 'bool', - 'status': 'str', - 'created_time': 'datetime', - 'updated_time': 'datetime', - 'tags': 'dict(str, str)' - } - - attribute_map = { - 'id': 'id', - 'tenant_id': 'tenant_id', - 'name': 'name', - 'description': 'description', - 'enterprise_project_id': 'enterprise_project_id', - 'global_center_network_id': 'global_center_network_id', - 'site_network_id': 'site_network_id', - 'cloud_connection_id': 'cloud_connection_id', - 'bgp_asn': 'bgp_asn', - 'region_id': 'region_id', - 'location_name': 'location_name', - 'locales': 'locales', - 'current_peer_link_count': 'current_peer_link_count', - 'available_peer_link_count': 'available_peer_link_count', - 'admin_state_up': 'admin_state_up', - 'status': 'status', - 'created_time': 'created_time', - 'updated_time': 'updated_time', - 'tags': 'tags' - } - - def __init__(self, id=None, tenant_id=None, name=None, description=None, enterprise_project_id=None, global_center_network_id=None, site_network_id=None, cloud_connection_id=None, bgp_asn=None, region_id=None, location_name=None, locales=None, current_peer_link_count=None, available_peer_link_count=None, admin_state_up=None, status=None, created_time=None, updated_time=None, tags=None): - """RmsListGlobalDcGateways - - The model defined in huaweicloud sdk - - :param id: 唯一ID - :type id: str - :param tenant_id: 租户ID - :type tenant_id: str - :param name: 名称 - :type name: str - :param description: 描述信息 - :type description: str - :param enterprise_project_id: 企业项目ID - :type enterprise_project_id: str - :param global_center_network_id: 全球中心网路ID - :type global_center_network_id: str - :param site_network_id: 站点网络ID - :type site_network_id: str - :param cloud_connection_id: 云连接ID - :type cloud_connection_id: str - :param bgp_asn: BGP模式AS号 - :type bgp_asn: int - :param region_id: 局点ID - :type region_id: str - :param location_name: 位置名称 - :type location_name: str - :param locales: - :type locales: :class:`huaweicloudsdkdc.v3.Locale` - :param current_peer_link_count: 当前对等体数量 - :type current_peer_link_count: int - :param available_peer_link_count: 有效对等体数量 - :type available_peer_link_count: int - :param admin_state_up: 是否冻结:true-是,false-否 - :type admin_state_up: bool - :param status: 状态:ACTIVE-正常,ERROR-异常 - :type status: str - :param created_time: 创建时间 - :type created_time: datetime - :param updated_time: 更新时间 - :type updated_time: datetime - :param tags: 返回给RMS的资源标签 - :type tags: dict(str, str) - """ - - - - self._id = None - self._tenant_id = None - self._name = None - self._description = None - self._enterprise_project_id = None - self._global_center_network_id = None - self._site_network_id = None - self._cloud_connection_id = None - self._bgp_asn = None - self._region_id = None - self._location_name = None - self._locales = None - self._current_peer_link_count = None - self._available_peer_link_count = None - self._admin_state_up = None - self._status = None - self._created_time = None - self._updated_time = None - self._tags = None - self.discriminator = None - - if id is not None: - self.id = id - if tenant_id is not None: - self.tenant_id = tenant_id - if name is not None: - self.name = name - if description is not None: - self.description = description - if enterprise_project_id is not None: - self.enterprise_project_id = enterprise_project_id - if global_center_network_id is not None: - self.global_center_network_id = global_center_network_id - if site_network_id is not None: - self.site_network_id = site_network_id - if cloud_connection_id is not None: - self.cloud_connection_id = cloud_connection_id - if bgp_asn is not None: - self.bgp_asn = bgp_asn - if region_id is not None: - self.region_id = region_id - if location_name is not None: - self.location_name = location_name - if locales is not None: - self.locales = locales - if current_peer_link_count is not None: - self.current_peer_link_count = current_peer_link_count - if available_peer_link_count is not None: - self.available_peer_link_count = available_peer_link_count - if admin_state_up is not None: - self.admin_state_up = admin_state_up - if status is not None: - self.status = status - if created_time is not None: - self.created_time = created_time - if updated_time is not None: - self.updated_time = updated_time - if tags is not None: - self.tags = tags - - @property - def id(self): - """Gets the id of this RmsListGlobalDcGateways. - - 唯一ID - - :return: The id of this RmsListGlobalDcGateways. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this RmsListGlobalDcGateways. - - 唯一ID - - :param id: The id of this RmsListGlobalDcGateways. - :type id: str - """ - self._id = id - - @property - def tenant_id(self): - """Gets the tenant_id of this RmsListGlobalDcGateways. - - 租户ID - - :return: The tenant_id of this RmsListGlobalDcGateways. - :rtype: str - """ - return self._tenant_id - - @tenant_id.setter - def tenant_id(self, tenant_id): - """Sets the tenant_id of this RmsListGlobalDcGateways. - - 租户ID - - :param tenant_id: The tenant_id of this RmsListGlobalDcGateways. - :type tenant_id: str - """ - self._tenant_id = tenant_id - - @property - def name(self): - """Gets the name of this RmsListGlobalDcGateways. - - 名称 - - :return: The name of this RmsListGlobalDcGateways. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this RmsListGlobalDcGateways. - - 名称 - - :param name: The name of this RmsListGlobalDcGateways. - :type name: str - """ - self._name = name - - @property - def description(self): - """Gets the description of this RmsListGlobalDcGateways. - - 描述信息 - - :return: The description of this RmsListGlobalDcGateways. - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this RmsListGlobalDcGateways. - - 描述信息 - - :param description: The description of this RmsListGlobalDcGateways. - :type description: str - """ - self._description = description - - @property - def enterprise_project_id(self): - """Gets the enterprise_project_id of this RmsListGlobalDcGateways. - - 企业项目ID - - :return: The enterprise_project_id of this RmsListGlobalDcGateways. - :rtype: str - """ - return self._enterprise_project_id - - @enterprise_project_id.setter - def enterprise_project_id(self, enterprise_project_id): - """Sets the enterprise_project_id of this RmsListGlobalDcGateways. - - 企业项目ID - - :param enterprise_project_id: The enterprise_project_id of this RmsListGlobalDcGateways. - :type enterprise_project_id: str - """ - self._enterprise_project_id = enterprise_project_id - - @property - def global_center_network_id(self): - """Gets the global_center_network_id of this RmsListGlobalDcGateways. - - 全球中心网路ID - - :return: The global_center_network_id of this RmsListGlobalDcGateways. - :rtype: str - """ - return self._global_center_network_id - - @global_center_network_id.setter - def global_center_network_id(self, global_center_network_id): - """Sets the global_center_network_id of this RmsListGlobalDcGateways. - - 全球中心网路ID - - :param global_center_network_id: The global_center_network_id of this RmsListGlobalDcGateways. - :type global_center_network_id: str - """ - self._global_center_network_id = global_center_network_id - - @property - def site_network_id(self): - """Gets the site_network_id of this RmsListGlobalDcGateways. - - 站点网络ID - - :return: The site_network_id of this RmsListGlobalDcGateways. - :rtype: str - """ - return self._site_network_id - - @site_network_id.setter - def site_network_id(self, site_network_id): - """Sets the site_network_id of this RmsListGlobalDcGateways. - - 站点网络ID - - :param site_network_id: The site_network_id of this RmsListGlobalDcGateways. - :type site_network_id: str - """ - self._site_network_id = site_network_id - - @property - def cloud_connection_id(self): - """Gets the cloud_connection_id of this RmsListGlobalDcGateways. - - 云连接ID - - :return: The cloud_connection_id of this RmsListGlobalDcGateways. - :rtype: str - """ - return self._cloud_connection_id - - @cloud_connection_id.setter - def cloud_connection_id(self, cloud_connection_id): - """Sets the cloud_connection_id of this RmsListGlobalDcGateways. - - 云连接ID - - :param cloud_connection_id: The cloud_connection_id of this RmsListGlobalDcGateways. - :type cloud_connection_id: str - """ - self._cloud_connection_id = cloud_connection_id - - @property - def bgp_asn(self): - """Gets the bgp_asn of this RmsListGlobalDcGateways. - - BGP模式AS号 - - :return: The bgp_asn of this RmsListGlobalDcGateways. - :rtype: int - """ - return self._bgp_asn - - @bgp_asn.setter - def bgp_asn(self, bgp_asn): - """Sets the bgp_asn of this RmsListGlobalDcGateways. - - BGP模式AS号 - - :param bgp_asn: The bgp_asn of this RmsListGlobalDcGateways. - :type bgp_asn: int - """ - self._bgp_asn = bgp_asn - - @property - def region_id(self): - """Gets the region_id of this RmsListGlobalDcGateways. - - 局点ID - - :return: The region_id of this RmsListGlobalDcGateways. - :rtype: str - """ - return self._region_id - - @region_id.setter - def region_id(self, region_id): - """Sets the region_id of this RmsListGlobalDcGateways. - - 局点ID - - :param region_id: The region_id of this RmsListGlobalDcGateways. - :type region_id: str - """ - self._region_id = region_id - - @property - def location_name(self): - """Gets the location_name of this RmsListGlobalDcGateways. - - 位置名称 - - :return: The location_name of this RmsListGlobalDcGateways. - :rtype: str - """ - return self._location_name - - @location_name.setter - def location_name(self, location_name): - """Sets the location_name of this RmsListGlobalDcGateways. - - 位置名称 - - :param location_name: The location_name of this RmsListGlobalDcGateways. - :type location_name: str - """ - self._location_name = location_name - - @property - def locales(self): - """Gets the locales of this RmsListGlobalDcGateways. - - :return: The locales of this RmsListGlobalDcGateways. - :rtype: :class:`huaweicloudsdkdc.v3.Locale` - """ - return self._locales - - @locales.setter - def locales(self, locales): - """Sets the locales of this RmsListGlobalDcGateways. - - :param locales: The locales of this RmsListGlobalDcGateways. - :type locales: :class:`huaweicloudsdkdc.v3.Locale` - """ - self._locales = locales - - @property - def current_peer_link_count(self): - """Gets the current_peer_link_count of this RmsListGlobalDcGateways. - - 当前对等体数量 - - :return: The current_peer_link_count of this RmsListGlobalDcGateways. - :rtype: int - """ - return self._current_peer_link_count - - @current_peer_link_count.setter - def current_peer_link_count(self, current_peer_link_count): - """Sets the current_peer_link_count of this RmsListGlobalDcGateways. - - 当前对等体数量 - - :param current_peer_link_count: The current_peer_link_count of this RmsListGlobalDcGateways. - :type current_peer_link_count: int - """ - self._current_peer_link_count = current_peer_link_count - - @property - def available_peer_link_count(self): - """Gets the available_peer_link_count of this RmsListGlobalDcGateways. - - 有效对等体数量 - - :return: The available_peer_link_count of this RmsListGlobalDcGateways. - :rtype: int - """ - return self._available_peer_link_count - - @available_peer_link_count.setter - def available_peer_link_count(self, available_peer_link_count): - """Sets the available_peer_link_count of this RmsListGlobalDcGateways. - - 有效对等体数量 - - :param available_peer_link_count: The available_peer_link_count of this RmsListGlobalDcGateways. - :type available_peer_link_count: int - """ - self._available_peer_link_count = available_peer_link_count - - @property - def admin_state_up(self): - """Gets the admin_state_up of this RmsListGlobalDcGateways. - - 是否冻结:true-是,false-否 - - :return: The admin_state_up of this RmsListGlobalDcGateways. - :rtype: bool - """ - return self._admin_state_up - - @admin_state_up.setter - def admin_state_up(self, admin_state_up): - """Sets the admin_state_up of this RmsListGlobalDcGateways. - - 是否冻结:true-是,false-否 - - :param admin_state_up: The admin_state_up of this RmsListGlobalDcGateways. - :type admin_state_up: bool - """ - self._admin_state_up = admin_state_up - - @property - def status(self): - """Gets the status of this RmsListGlobalDcGateways. - - 状态:ACTIVE-正常,ERROR-异常 - - :return: The status of this RmsListGlobalDcGateways. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this RmsListGlobalDcGateways. - - 状态:ACTIVE-正常,ERROR-异常 - - :param status: The status of this RmsListGlobalDcGateways. - :type status: str - """ - self._status = status - - @property - def created_time(self): - """Gets the created_time of this RmsListGlobalDcGateways. - - 创建时间 - - :return: The created_time of this RmsListGlobalDcGateways. - :rtype: datetime - """ - return self._created_time - - @created_time.setter - def created_time(self, created_time): - """Sets the created_time of this RmsListGlobalDcGateways. - - 创建时间 - - :param created_time: The created_time of this RmsListGlobalDcGateways. - :type created_time: datetime - """ - self._created_time = created_time - - @property - def updated_time(self): - """Gets the updated_time of this RmsListGlobalDcGateways. - - 更新时间 - - :return: The updated_time of this RmsListGlobalDcGateways. - :rtype: datetime - """ - return self._updated_time - - @updated_time.setter - def updated_time(self, updated_time): - """Sets the updated_time of this RmsListGlobalDcGateways. - - 更新时间 - - :param updated_time: The updated_time of this RmsListGlobalDcGateways. - :type updated_time: datetime - """ - self._updated_time = updated_time - - @property - def tags(self): - """Gets the tags of this RmsListGlobalDcGateways. - - 返回给RMS的资源标签 - - :return: The tags of this RmsListGlobalDcGateways. - :rtype: dict(str, str) - """ - return self._tags - - @tags.setter - def tags(self, tags): - """Sets the tags of this RmsListGlobalDcGateways. - - 返回给RMS的资源标签 - - :param tags: The tags of this RmsListGlobalDcGateways. - :type tags: dict(str, str) - """ - self._tags = tags - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, RmsListGlobalDcGateways): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/route_description.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/route_description.py new file mode 100644 index 0000000000..e7a3be45f4 --- /dev/null +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/route_description.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RouteDescription: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """RouteDescription + + The model defined in huaweicloud sdk + + """ + + + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RouteDescription): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/route_destination.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/route_destination.py new file mode 100644 index 0000000000..f9e119c87e --- /dev/null +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/route_destination.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RouteDestination: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """RouteDestination + + The model defined in huaweicloud sdk + + """ + + + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RouteDestination): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/route_next_hop.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/route_next_hop.py new file mode 100644 index 0000000000..bcb37552ff --- /dev/null +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/route_next_hop.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RouteNextHop: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """RouteNextHop + + The model defined in huaweicloud sdk + + """ + + + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RouteNextHop): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/route_type_of_gdgw.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/route_type_of_gdgw.py new file mode 100644 index 0000000000..737759c01f --- /dev/null +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/route_type_of_gdgw.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RouteTypeOfGdgw: + """ + allowed enum values + """ + VIF_PEER = "vif_peer" + GDGW = "gdgw" + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """RouteTypeOfGdgw + + The model defined in huaweicloud sdk + + """ + + + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RouteTypeOfGdgw): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_direct_connect_location_request.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_direct_connect_location_request.py new file mode 100644 index 0000000000..54da327edf --- /dev/null +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_direct_connect_location_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowDirectConnectLocationRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'direct_connect_location_id': 'str' + } + + attribute_map = { + 'direct_connect_location_id': 'direct_connect_location_id' + } + + def __init__(self, direct_connect_location_id=None): + """ShowDirectConnectLocationRequest + + The model defined in huaweicloud sdk + + :param direct_connect_location_id: direct-connect-locationID。 + :type direct_connect_location_id: str + """ + + + + self._direct_connect_location_id = None + self.discriminator = None + + self.direct_connect_location_id = direct_connect_location_id + + @property + def direct_connect_location_id(self): + """Gets the direct_connect_location_id of this ShowDirectConnectLocationRequest. + + direct-connect-locationID。 + + :return: The direct_connect_location_id of this ShowDirectConnectLocationRequest. + :rtype: str + """ + return self._direct_connect_location_id + + @direct_connect_location_id.setter + def direct_connect_location_id(self, direct_connect_location_id): + """Sets the direct_connect_location_id of this ShowDirectConnectLocationRequest. + + direct-connect-locationID。 + + :param direct_connect_location_id: The direct_connect_location_id of this ShowDirectConnectLocationRequest. + :type direct_connect_location_id: str + """ + self._direct_connect_location_id = direct_connect_location_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowDirectConnectLocationRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_rms_global_dc_gateway_response.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_direct_connect_location_response.py similarity index 50% rename from huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_rms_global_dc_gateway_response.py rename to huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_direct_connect_location_response.py index 6dffb294a1..c47fc6a428 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_rms_global_dc_gateway_response.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_direct_connect_location_response.py @@ -6,7 +6,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class ShowRmsGlobalDcGatewayResponse(SdkResponse): +class ShowDirectConnectLocationResponse(SdkResponse): """ Attributes: @@ -18,101 +18,76 @@ class ShowRmsGlobalDcGatewayResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'request_id': 'str', - 'global_dc_gateway': 'RmsShowGlobalDcGateway', - 'x_request_id': 'str' + 'direct_connect_location': 'DirectConnectLocationEntry', + 'request_id': 'str' } attribute_map = { - 'request_id': 'request_id', - 'global_dc_gateway': 'global_dc_gateway', - 'x_request_id': 'X-Request-Id' + 'direct_connect_location': 'direct_connect_location', + 'request_id': 'request_id' } - def __init__(self, request_id=None, global_dc_gateway=None, x_request_id=None): - """ShowRmsGlobalDcGatewayResponse + def __init__(self, direct_connect_location=None, request_id=None): + """ShowDirectConnectLocationResponse The model defined in huaweicloud sdk - :param request_id: 请求ID + :param direct_connect_location: + :type direct_connect_location: :class:`huaweicloudsdkdc.v3.DirectConnectLocationEntry` + :param request_id: 请求ID。 :type request_id: str - :param global_dc_gateway: - :type global_dc_gateway: :class:`huaweicloudsdkdc.v3.RmsShowGlobalDcGateway` - :param x_request_id: - :type x_request_id: str """ - super(ShowRmsGlobalDcGatewayResponse, self).__init__() + super(ShowDirectConnectLocationResponse, self).__init__() + self._direct_connect_location = None self._request_id = None - self._global_dc_gateway = None - self._x_request_id = None self.discriminator = None + if direct_connect_location is not None: + self.direct_connect_location = direct_connect_location if request_id is not None: self.request_id = request_id - if global_dc_gateway is not None: - self.global_dc_gateway = global_dc_gateway - if x_request_id is not None: - self.x_request_id = x_request_id @property - def request_id(self): - """Gets the request_id of this ShowRmsGlobalDcGatewayResponse. - - 请求ID + def direct_connect_location(self): + """Gets the direct_connect_location of this ShowDirectConnectLocationResponse. - :return: The request_id of this ShowRmsGlobalDcGatewayResponse. - :rtype: str + :return: The direct_connect_location of this ShowDirectConnectLocationResponse. + :rtype: :class:`huaweicloudsdkdc.v3.DirectConnectLocationEntry` """ - return self._request_id + return self._direct_connect_location - @request_id.setter - def request_id(self, request_id): - """Sets the request_id of this ShowRmsGlobalDcGatewayResponse. + @direct_connect_location.setter + def direct_connect_location(self, direct_connect_location): + """Sets the direct_connect_location of this ShowDirectConnectLocationResponse. - 请求ID - - :param request_id: The request_id of this ShowRmsGlobalDcGatewayResponse. - :type request_id: str + :param direct_connect_location: The direct_connect_location of this ShowDirectConnectLocationResponse. + :type direct_connect_location: :class:`huaweicloudsdkdc.v3.DirectConnectLocationEntry` """ - self._request_id = request_id + self._direct_connect_location = direct_connect_location @property - def global_dc_gateway(self): - """Gets the global_dc_gateway of this ShowRmsGlobalDcGatewayResponse. - - :return: The global_dc_gateway of this ShowRmsGlobalDcGatewayResponse. - :rtype: :class:`huaweicloudsdkdc.v3.RmsShowGlobalDcGateway` - """ - return self._global_dc_gateway - - @global_dc_gateway.setter - def global_dc_gateway(self, global_dc_gateway): - """Sets the global_dc_gateway of this ShowRmsGlobalDcGatewayResponse. - - :param global_dc_gateway: The global_dc_gateway of this ShowRmsGlobalDcGatewayResponse. - :type global_dc_gateway: :class:`huaweicloudsdkdc.v3.RmsShowGlobalDcGateway` - """ - self._global_dc_gateway = global_dc_gateway + def request_id(self): + """Gets the request_id of this ShowDirectConnectLocationResponse. - @property - def x_request_id(self): - """Gets the x_request_id of this ShowRmsGlobalDcGatewayResponse. + 请求ID。 - :return: The x_request_id of this ShowRmsGlobalDcGatewayResponse. + :return: The request_id of this ShowDirectConnectLocationResponse. :rtype: str """ - return self._x_request_id + return self._request_id - @x_request_id.setter - def x_request_id(self, x_request_id): - """Sets the x_request_id of this ShowRmsGlobalDcGatewayResponse. + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this ShowDirectConnectLocationResponse. + + 请求ID。 - :param x_request_id: The x_request_id of this ShowRmsGlobalDcGatewayResponse. - :type x_request_id: str + :param request_id: The request_id of this ShowDirectConnectLocationResponse. + :type request_id: str """ - self._x_request_id = x_request_id + self._request_id = request_id def to_dict(self): """Returns the model properties as a dict""" @@ -156,7 +131,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ShowRmsGlobalDcGatewayResponse): + if not isinstance(other, ShowDirectConnectLocationResponse): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_gdgw_routetable.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_gdgw_routetable.py index 5ba1c89e31..b5e29ac125 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_gdgw_routetable.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_gdgw_routetable.py @@ -22,11 +22,11 @@ class ShowGdgwRoutetable: 'gateway_id': 'str', 'destination': 'str', 'nexthop': 'str', - 'type': 'str', 'obtain_mode': 'str', 'status': 'str', - 'address_family': 'str', - 'description': 'str' + 'address_family': 'AddressFamily', + 'description': 'str', + 'type': 'RouteTypeOfGdgw' } attribute_map = { @@ -35,38 +35,38 @@ class ShowGdgwRoutetable: 'gateway_id': 'gateway_id', 'destination': 'destination', 'nexthop': 'nexthop', - 'type': 'type', 'obtain_mode': 'obtain_mode', 'status': 'status', 'address_family': 'address_family', - 'description': 'description' + 'description': 'description', + 'type': 'type' } - def __init__(self, id=None, tenant_id=None, gateway_id=None, destination=None, nexthop=None, type=None, obtain_mode=None, status=None, address_family=None, description=None): + def __init__(self, id=None, tenant_id=None, gateway_id=None, destination=None, nexthop=None, obtain_mode=None, status=None, address_family=None, description=None, type=None): """ShowGdgwRoutetable The model defined in huaweicloud sdk - :param id: 唯一ID + :param id: 路由id :type id: str - :param tenant_id: 租户ID + :param tenant_id: 租户id :type tenant_id: str - :param gateway_id: 网关ID + :param gateway_id: 网关id :type gateway_id: str - :param destination: 描述信息 + :param destination: 路由子网 :type destination: str - :param nexthop: 下一跳ID + :param nexthop: 下一跳id :type nexthop: str - :param type: 类型 - :type type: str - :param obtain_mode: 获得模式 + :param obtain_mode: 路由类型: - customized: 默认路由 - specific: 自定义路由 - bgp: 动态路由 :type obtain_mode: str - :param status: 状态:ACTIVE-正常,ERROR-异常 + :param status: 路由状态: - ACTIVE: 下发正常 - ERROR: 下发失败 - PENDING_CREATE: 待下发 :type status: str - :param address_family: 地址簇:ipv4 | ipv6 - :type address_family: str - :param description: 描述信息 + :param address_family: + :type address_family: :class:`huaweicloudsdkdc.v3.AddressFamily` + :param description: 路由描述 :type description: str + :param type: + :type type: :class:`huaweicloudsdkdc.v3.RouteTypeOfGdgw` """ @@ -76,39 +76,31 @@ def __init__(self, id=None, tenant_id=None, gateway_id=None, destination=None, n self._gateway_id = None self._destination = None self._nexthop = None - self._type = None self._obtain_mode = None self._status = None self._address_family = None self._description = None + self._type = None self.discriminator = None - if id is not None: - self.id = id - if tenant_id is not None: - self.tenant_id = tenant_id + self.id = id + self.tenant_id = tenant_id if gateway_id is not None: self.gateway_id = gateway_id - if destination is not None: - self.destination = destination - if nexthop is not None: - self.nexthop = nexthop - if type is not None: - self.type = type - if obtain_mode is not None: - self.obtain_mode = obtain_mode - if status is not None: - self.status = status - if address_family is not None: - self.address_family = address_family + self.destination = destination + self.nexthop = nexthop + self.obtain_mode = obtain_mode + self.status = status + self.address_family = address_family if description is not None: self.description = description + self.type = type @property def id(self): """Gets the id of this ShowGdgwRoutetable. - 唯一ID + 路由id :return: The id of this ShowGdgwRoutetable. :rtype: str @@ -119,7 +111,7 @@ def id(self): def id(self, id): """Sets the id of this ShowGdgwRoutetable. - 唯一ID + 路由id :param id: The id of this ShowGdgwRoutetable. :type id: str @@ -130,7 +122,7 @@ def id(self, id): def tenant_id(self): """Gets the tenant_id of this ShowGdgwRoutetable. - 租户ID + 租户id :return: The tenant_id of this ShowGdgwRoutetable. :rtype: str @@ -141,7 +133,7 @@ def tenant_id(self): def tenant_id(self, tenant_id): """Sets the tenant_id of this ShowGdgwRoutetable. - 租户ID + 租户id :param tenant_id: The tenant_id of this ShowGdgwRoutetable. :type tenant_id: str @@ -152,7 +144,7 @@ def tenant_id(self, tenant_id): def gateway_id(self): """Gets the gateway_id of this ShowGdgwRoutetable. - 网关ID + 网关id :return: The gateway_id of this ShowGdgwRoutetable. :rtype: str @@ -163,7 +155,7 @@ def gateway_id(self): def gateway_id(self, gateway_id): """Sets the gateway_id of this ShowGdgwRoutetable. - 网关ID + 网关id :param gateway_id: The gateway_id of this ShowGdgwRoutetable. :type gateway_id: str @@ -174,7 +166,7 @@ def gateway_id(self, gateway_id): def destination(self): """Gets the destination of this ShowGdgwRoutetable. - 描述信息 + 路由子网 :return: The destination of this ShowGdgwRoutetable. :rtype: str @@ -185,7 +177,7 @@ def destination(self): def destination(self, destination): """Sets the destination of this ShowGdgwRoutetable. - 描述信息 + 路由子网 :param destination: The destination of this ShowGdgwRoutetable. :type destination: str @@ -196,7 +188,7 @@ def destination(self, destination): def nexthop(self): """Gets the nexthop of this ShowGdgwRoutetable. - 下一跳ID + 下一跳id :return: The nexthop of this ShowGdgwRoutetable. :rtype: str @@ -207,40 +199,18 @@ def nexthop(self): def nexthop(self, nexthop): """Sets the nexthop of this ShowGdgwRoutetable. - 下一跳ID + 下一跳id :param nexthop: The nexthop of this ShowGdgwRoutetable. :type nexthop: str """ self._nexthop = nexthop - @property - def type(self): - """Gets the type of this ShowGdgwRoutetable. - - 类型 - - :return: The type of this ShowGdgwRoutetable. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this ShowGdgwRoutetable. - - 类型 - - :param type: The type of this ShowGdgwRoutetable. - :type type: str - """ - self._type = type - @property def obtain_mode(self): """Gets the obtain_mode of this ShowGdgwRoutetable. - 获得模式 + 路由类型: - customized: 默认路由 - specific: 自定义路由 - bgp: 动态路由 :return: The obtain_mode of this ShowGdgwRoutetable. :rtype: str @@ -251,7 +221,7 @@ def obtain_mode(self): def obtain_mode(self, obtain_mode): """Sets the obtain_mode of this ShowGdgwRoutetable. - 获得模式 + 路由类型: - customized: 默认路由 - specific: 自定义路由 - bgp: 动态路由 :param obtain_mode: The obtain_mode of this ShowGdgwRoutetable. :type obtain_mode: str @@ -262,7 +232,7 @@ def obtain_mode(self, obtain_mode): def status(self): """Gets the status of this ShowGdgwRoutetable. - 状态:ACTIVE-正常,ERROR-异常 + 路由状态: - ACTIVE: 下发正常 - ERROR: 下发失败 - PENDING_CREATE: 待下发 :return: The status of this ShowGdgwRoutetable. :rtype: str @@ -273,7 +243,7 @@ def status(self): def status(self, status): """Sets the status of this ShowGdgwRoutetable. - 状态:ACTIVE-正常,ERROR-异常 + 路由状态: - ACTIVE: 下发正常 - ERROR: 下发失败 - PENDING_CREATE: 待下发 :param status: The status of this ShowGdgwRoutetable. :type status: str @@ -284,10 +254,8 @@ def status(self, status): def address_family(self): """Gets the address_family of this ShowGdgwRoutetable. - 地址簇:ipv4 | ipv6 - :return: The address_family of this ShowGdgwRoutetable. - :rtype: str + :rtype: :class:`huaweicloudsdkdc.v3.AddressFamily` """ return self._address_family @@ -295,10 +263,8 @@ def address_family(self): def address_family(self, address_family): """Sets the address_family of this ShowGdgwRoutetable. - 地址簇:ipv4 | ipv6 - :param address_family: The address_family of this ShowGdgwRoutetable. - :type address_family: str + :type address_family: :class:`huaweicloudsdkdc.v3.AddressFamily` """ self._address_family = address_family @@ -306,7 +272,7 @@ def address_family(self, address_family): def description(self): """Gets the description of this ShowGdgwRoutetable. - 描述信息 + 路由描述 :return: The description of this ShowGdgwRoutetable. :rtype: str @@ -317,13 +283,31 @@ def description(self): def description(self, description): """Sets the description of this ShowGdgwRoutetable. - 描述信息 + 路由描述 :param description: The description of this ShowGdgwRoutetable. :type description: str """ self._description = description + @property + def type(self): + """Gets the type of this ShowGdgwRoutetable. + + :return: The type of this ShowGdgwRoutetable. + :rtype: :class:`huaweicloudsdkdc.v3.RouteTypeOfGdgw` + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ShowGdgwRoutetable. + + :param type: The type of this ShowGdgwRoutetable. + :type type: :class:`huaweicloudsdkdc.v3.RouteTypeOfGdgw` + """ + self._type = type + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_global_dc_gateway_request.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_global_dc_gateway_request.py index 2363917bc2..f542d7c68f 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_global_dc_gateway_request.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_global_dc_gateway_request.py @@ -17,64 +17,78 @@ class ShowGlobalDcGatewayRequest: sensitive_list = [] openapi_types = { - 'global_dc_gateway_id': 'str', + 'limit': 'int', 'fields': 'list[str]', - 'ext_fields': 'list[str]' + 'ext_fields': 'list[str]', + 'enterprise_project_id': 'list[str]', + 'global_dc_gateway_id': 'str' } attribute_map = { - 'global_dc_gateway_id': 'global_dc_gateway_id', + 'limit': 'limit', 'fields': 'fields', - 'ext_fields': 'ext_fields' + 'ext_fields': 'ext_fields', + 'enterprise_project_id': 'enterprise_project_id', + 'global_dc_gateway_id': 'global_dc_gateway_id' } - def __init__(self, global_dc_gateway_id=None, fields=None, ext_fields=None): + def __init__(self, limit=None, fields=None, ext_fields=None, enterprise_project_id=None, global_dc_gateway_id=None): """ShowGlobalDcGatewayRequest The model defined in huaweicloud sdk - :param global_dc_gateway_id: 全球接入网关ID - :type global_dc_gateway_id: str + :param limit: 每页返回的个数。 取值范围:1~2000。 + :type limit: int :param fields: 显示字段列表 :type fields: list[str] :param ext_fields: show response ext-fields :type ext_fields: list[str] + :param enterprise_project_id: 根据企业项目ID过滤资源实例 + :type enterprise_project_id: list[str] + :param global_dc_gateway_id: 全域接入网关ID + :type global_dc_gateway_id: str """ - self._global_dc_gateway_id = None + self._limit = None self._fields = None self._ext_fields = None + self._enterprise_project_id = None + self._global_dc_gateway_id = None self.discriminator = None - self.global_dc_gateway_id = global_dc_gateway_id + if limit is not None: + self.limit = limit if fields is not None: self.fields = fields if ext_fields is not None: self.ext_fields = ext_fields + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + self.global_dc_gateway_id = global_dc_gateway_id @property - def global_dc_gateway_id(self): - """Gets the global_dc_gateway_id of this ShowGlobalDcGatewayRequest. + def limit(self): + """Gets the limit of this ShowGlobalDcGatewayRequest. - 全球接入网关ID + 每页返回的个数。 取值范围:1~2000。 - :return: The global_dc_gateway_id of this ShowGlobalDcGatewayRequest. - :rtype: str + :return: The limit of this ShowGlobalDcGatewayRequest. + :rtype: int """ - return self._global_dc_gateway_id + return self._limit - @global_dc_gateway_id.setter - def global_dc_gateway_id(self, global_dc_gateway_id): - """Sets the global_dc_gateway_id of this ShowGlobalDcGatewayRequest. + @limit.setter + def limit(self, limit): + """Sets the limit of this ShowGlobalDcGatewayRequest. - 全球接入网关ID + 每页返回的个数。 取值范围:1~2000。 - :param global_dc_gateway_id: The global_dc_gateway_id of this ShowGlobalDcGatewayRequest. - :type global_dc_gateway_id: str + :param limit: The limit of this ShowGlobalDcGatewayRequest. + :type limit: int """ - self._global_dc_gateway_id = global_dc_gateway_id + self._limit = limit @property def fields(self): @@ -120,6 +134,50 @@ def ext_fields(self, ext_fields): """ self._ext_fields = ext_fields + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this ShowGlobalDcGatewayRequest. + + 根据企业项目ID过滤资源实例 + + :return: The enterprise_project_id of this ShowGlobalDcGatewayRequest. + :rtype: list[str] + """ + return self._enterprise_project_id + + @enterprise_project_id.setter + def enterprise_project_id(self, enterprise_project_id): + """Sets the enterprise_project_id of this ShowGlobalDcGatewayRequest. + + 根据企业项目ID过滤资源实例 + + :param enterprise_project_id: The enterprise_project_id of this ShowGlobalDcGatewayRequest. + :type enterprise_project_id: list[str] + """ + self._enterprise_project_id = enterprise_project_id + + @property + def global_dc_gateway_id(self): + """Gets the global_dc_gateway_id of this ShowGlobalDcGatewayRequest. + + 全域接入网关ID + + :return: The global_dc_gateway_id of this ShowGlobalDcGatewayRequest. + :rtype: str + """ + return self._global_dc_gateway_id + + @global_dc_gateway_id.setter + def global_dc_gateway_id(self, global_dc_gateway_id): + """Sets the global_dc_gateway_id of this ShowGlobalDcGatewayRequest. + + 全域接入网关ID + + :param global_dc_gateway_id: The global_dc_gateway_id of this ShowGlobalDcGatewayRequest. + :type global_dc_gateway_id: str + """ + self._global_dc_gateway_id = global_dc_gateway_id + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_global_dc_gateway_response.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_global_dc_gateway_response.py index c6e4743705..e49582263e 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_global_dc_gateway_response.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_global_dc_gateway_response.py @@ -18,68 +18,43 @@ class ShowGlobalDcGatewayResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'request_id': 'str', - 'global_dc_gateway': 'ExternalShowGlobalDcGateway', - 'x_request_id': 'str' + 'global_dc_gateway': 'GlobalDcGatewayEntry', + 'request_id': 'str' } attribute_map = { - 'request_id': 'request_id', 'global_dc_gateway': 'global_dc_gateway', - 'x_request_id': 'X-Request-Id' + 'request_id': 'request_id' } - def __init__(self, request_id=None, global_dc_gateway=None, x_request_id=None): + def __init__(self, global_dc_gateway=None, request_id=None): """ShowGlobalDcGatewayResponse The model defined in huaweicloud sdk - :param request_id: - :type request_id: str :param global_dc_gateway: - :type global_dc_gateway: :class:`huaweicloudsdkdc.v3.ExternalShowGlobalDcGateway` - :param x_request_id: - :type x_request_id: str + :type global_dc_gateway: :class:`huaweicloudsdkdc.v3.GlobalDcGatewayEntry` + :param request_id: 请求ID。 + :type request_id: str """ super(ShowGlobalDcGatewayResponse, self).__init__() - self._request_id = None self._global_dc_gateway = None - self._x_request_id = None + self._request_id = None self.discriminator = None - if request_id is not None: - self.request_id = request_id if global_dc_gateway is not None: self.global_dc_gateway = global_dc_gateway - if x_request_id is not None: - self.x_request_id = x_request_id - - @property - def request_id(self): - """Gets the request_id of this ShowGlobalDcGatewayResponse. - - :return: The request_id of this ShowGlobalDcGatewayResponse. - :rtype: str - """ - return self._request_id - - @request_id.setter - def request_id(self, request_id): - """Sets the request_id of this ShowGlobalDcGatewayResponse. - - :param request_id: The request_id of this ShowGlobalDcGatewayResponse. - :type request_id: str - """ - self._request_id = request_id + if request_id is not None: + self.request_id = request_id @property def global_dc_gateway(self): """Gets the global_dc_gateway of this ShowGlobalDcGatewayResponse. :return: The global_dc_gateway of this ShowGlobalDcGatewayResponse. - :rtype: :class:`huaweicloudsdkdc.v3.ExternalShowGlobalDcGateway` + :rtype: :class:`huaweicloudsdkdc.v3.GlobalDcGatewayEntry` """ return self._global_dc_gateway @@ -88,27 +63,31 @@ def global_dc_gateway(self, global_dc_gateway): """Sets the global_dc_gateway of this ShowGlobalDcGatewayResponse. :param global_dc_gateway: The global_dc_gateway of this ShowGlobalDcGatewayResponse. - :type global_dc_gateway: :class:`huaweicloudsdkdc.v3.ExternalShowGlobalDcGateway` + :type global_dc_gateway: :class:`huaweicloudsdkdc.v3.GlobalDcGatewayEntry` """ self._global_dc_gateway = global_dc_gateway @property - def x_request_id(self): - """Gets the x_request_id of this ShowGlobalDcGatewayResponse. + def request_id(self): + """Gets the request_id of this ShowGlobalDcGatewayResponse. + + 请求ID。 - :return: The x_request_id of this ShowGlobalDcGatewayResponse. + :return: The request_id of this ShowGlobalDcGatewayResponse. :rtype: str """ - return self._x_request_id + return self._request_id - @x_request_id.setter - def x_request_id(self, x_request_id): - """Sets the x_request_id of this ShowGlobalDcGatewayResponse. + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this ShowGlobalDcGatewayResponse. - :param x_request_id: The x_request_id of this ShowGlobalDcGatewayResponse. - :type x_request_id: str + 请求ID。 + + :param request_id: The request_id of this ShowGlobalDcGatewayResponse. + :type request_id: str """ - self._x_request_id = x_request_id + self._request_id = request_id def to_dict(self): """Returns the model properties as a dict""" diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_peer_link_request.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_peer_link_request.py index 74988f118f..c252ef4549 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_peer_link_request.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_peer_link_request.py @@ -17,92 +17,48 @@ class ShowPeerLinkRequest: sensitive_list = [] openapi_types = { - 'global_dc_gateway_id': 'str', - 'peer_link_id': 'str', 'fields': 'list[str]', - 'ext_fields': 'list[str]' + 'ext_fields': 'list[str]', + 'global_dc_gateway_id': 'str', + 'peer_link_id': 'str' } attribute_map = { - 'global_dc_gateway_id': 'global_dc_gateway_id', - 'peer_link_id': 'peer_link_id', 'fields': 'fields', - 'ext_fields': 'ext_fields' + 'ext_fields': 'ext_fields', + 'global_dc_gateway_id': 'global_dc_gateway_id', + 'peer_link_id': 'peer_link_id' } - def __init__(self, global_dc_gateway_id=None, peer_link_id=None, fields=None, ext_fields=None): + def __init__(self, fields=None, ext_fields=None, global_dc_gateway_id=None, peer_link_id=None): """ShowPeerLinkRequest The model defined in huaweicloud sdk - :param global_dc_gateway_id: 全球接入网关ID - :type global_dc_gateway_id: str - :param peer_link_id: 全球接入网关对等体 - :type peer_link_id: str :param fields: 显示字段列表 :type fields: list[str] :param ext_fields: show response ext-fields :type ext_fields: list[str] + :param global_dc_gateway_id: 全域接入网关ID + :type global_dc_gateway_id: str + :param peer_link_id: 全域接入网关对等体 + :type peer_link_id: str """ - self._global_dc_gateway_id = None - self._peer_link_id = None self._fields = None self._ext_fields = None + self._global_dc_gateway_id = None + self._peer_link_id = None self.discriminator = None - self.global_dc_gateway_id = global_dc_gateway_id - self.peer_link_id = peer_link_id if fields is not None: self.fields = fields if ext_fields is not None: self.ext_fields = ext_fields - - @property - def global_dc_gateway_id(self): - """Gets the global_dc_gateway_id of this ShowPeerLinkRequest. - - 全球接入网关ID - - :return: The global_dc_gateway_id of this ShowPeerLinkRequest. - :rtype: str - """ - return self._global_dc_gateway_id - - @global_dc_gateway_id.setter - def global_dc_gateway_id(self, global_dc_gateway_id): - """Sets the global_dc_gateway_id of this ShowPeerLinkRequest. - - 全球接入网关ID - - :param global_dc_gateway_id: The global_dc_gateway_id of this ShowPeerLinkRequest. - :type global_dc_gateway_id: str - """ - self._global_dc_gateway_id = global_dc_gateway_id - - @property - def peer_link_id(self): - """Gets the peer_link_id of this ShowPeerLinkRequest. - - 全球接入网关对等体 - - :return: The peer_link_id of this ShowPeerLinkRequest. - :rtype: str - """ - return self._peer_link_id - - @peer_link_id.setter - def peer_link_id(self, peer_link_id): - """Sets the peer_link_id of this ShowPeerLinkRequest. - - 全球接入网关对等体 - - :param peer_link_id: The peer_link_id of this ShowPeerLinkRequest. - :type peer_link_id: str - """ - self._peer_link_id = peer_link_id + self.global_dc_gateway_id = global_dc_gateway_id + self.peer_link_id = peer_link_id @property def fields(self): @@ -148,6 +104,50 @@ def ext_fields(self, ext_fields): """ self._ext_fields = ext_fields + @property + def global_dc_gateway_id(self): + """Gets the global_dc_gateway_id of this ShowPeerLinkRequest. + + 全域接入网关ID + + :return: The global_dc_gateway_id of this ShowPeerLinkRequest. + :rtype: str + """ + return self._global_dc_gateway_id + + @global_dc_gateway_id.setter + def global_dc_gateway_id(self, global_dc_gateway_id): + """Sets the global_dc_gateway_id of this ShowPeerLinkRequest. + + 全域接入网关ID + + :param global_dc_gateway_id: The global_dc_gateway_id of this ShowPeerLinkRequest. + :type global_dc_gateway_id: str + """ + self._global_dc_gateway_id = global_dc_gateway_id + + @property + def peer_link_id(self): + """Gets the peer_link_id of this ShowPeerLinkRequest. + + 全域接入网关对等体 + + :return: The peer_link_id of this ShowPeerLinkRequest. + :rtype: str + """ + return self._peer_link_id + + @peer_link_id.setter + def peer_link_id(self, peer_link_id): + """Sets the peer_link_id of this ShowPeerLinkRequest. + + 全域接入网关对等体 + + :param peer_link_id: The peer_link_id of this ShowPeerLinkRequest. + :type peer_link_id: str + """ + self._peer_link_id = peer_link_id + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_peer_link_response.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_peer_link_response.py index f7ed6a6b7b..f4d9e4dc8e 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_peer_link_response.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_peer_link_response.py @@ -18,72 +18,43 @@ class ShowPeerLinkResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'request_id': 'str', - 'peer_link': 'ExternalShowPeerLink', - 'x_request_id': 'str' + 'peer_link': 'PeerLinkEntry', + 'request_id': 'str' } attribute_map = { - 'request_id': 'request_id', 'peer_link': 'peer_link', - 'x_request_id': 'X-Request-Id' + 'request_id': 'request_id' } - def __init__(self, request_id=None, peer_link=None, x_request_id=None): + def __init__(self, peer_link=None, request_id=None): """ShowPeerLinkResponse The model defined in huaweicloud sdk - :param request_id: 请求ID - :type request_id: str :param peer_link: - :type peer_link: :class:`huaweicloudsdkdc.v3.ExternalShowPeerLink` - :param x_request_id: - :type x_request_id: str + :type peer_link: :class:`huaweicloudsdkdc.v3.PeerLinkEntry` + :param request_id: 请求ID。 + :type request_id: str """ super(ShowPeerLinkResponse, self).__init__() - self._request_id = None self._peer_link = None - self._x_request_id = None + self._request_id = None self.discriminator = None - if request_id is not None: - self.request_id = request_id if peer_link is not None: self.peer_link = peer_link - if x_request_id is not None: - self.x_request_id = x_request_id - - @property - def request_id(self): - """Gets the request_id of this ShowPeerLinkResponse. - - 请求ID - - :return: The request_id of this ShowPeerLinkResponse. - :rtype: str - """ - return self._request_id - - @request_id.setter - def request_id(self, request_id): - """Sets the request_id of this ShowPeerLinkResponse. - - 请求ID - - :param request_id: The request_id of this ShowPeerLinkResponse. - :type request_id: str - """ - self._request_id = request_id + if request_id is not None: + self.request_id = request_id @property def peer_link(self): """Gets the peer_link of this ShowPeerLinkResponse. :return: The peer_link of this ShowPeerLinkResponse. - :rtype: :class:`huaweicloudsdkdc.v3.ExternalShowPeerLink` + :rtype: :class:`huaweicloudsdkdc.v3.PeerLinkEntry` """ return self._peer_link @@ -92,27 +63,31 @@ def peer_link(self, peer_link): """Sets the peer_link of this ShowPeerLinkResponse. :param peer_link: The peer_link of this ShowPeerLinkResponse. - :type peer_link: :class:`huaweicloudsdkdc.v3.ExternalShowPeerLink` + :type peer_link: :class:`huaweicloudsdkdc.v3.PeerLinkEntry` """ self._peer_link = peer_link @property - def x_request_id(self): - """Gets the x_request_id of this ShowPeerLinkResponse. + def request_id(self): + """Gets the request_id of this ShowPeerLinkResponse. - :return: The x_request_id of this ShowPeerLinkResponse. + 请求ID。 + + :return: The request_id of this ShowPeerLinkResponse. :rtype: str """ - return self._x_request_id + return self._request_id + + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this ShowPeerLinkResponse. - @x_request_id.setter - def x_request_id(self, x_request_id): - """Sets the x_request_id of this ShowPeerLinkResponse. + 请求ID。 - :param x_request_id: The x_request_id of this ShowPeerLinkResponse. - :type x_request_id: str + :param request_id: The request_id of this ShowPeerLinkResponse. + :type request_id: str """ - self._x_request_id = x_request_id + self._request_id = request_id def to_dict(self): """Returns the model properties as a dict""" diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_quotas_request.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_quotas_request.py index 76b3dda06d..9234a67cac 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_quotas_request.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_quotas_request.py @@ -29,7 +29,7 @@ def __init__(self, type=None): The model defined in huaweicloud sdk - :param type: 支持过滤的配额类型: - [physicalConnect: 物理连接direct_connect实例的配额和使用量] - [virtualInterface: 虚拟接口virtual-interface的配额和使用量] - [connectGateway: 连接网关(用于关联GEIP)的配额和使用量](tag:hws) - [geip: 每租户可以关联GEIP的配额和使用量](tag:hws) - [globalDcGateway 专线全球接入网关的配额和使用量] - [peerLinkPerGdgw: 接入网关的关联连接的配额和使用量] + :param type: 支持过滤的配额类型: - physicalConnect: 物理连接direct_connect实例的配额和使用量 - virtualInterface: 虚拟接口virtual-interface的配额和使用量 - [connectGateway: 连接网关(用于关联GEIP)的配额和使用量](tag:hws) - [geip: 每租户可以关联GEIP的配额和使用量](tag:hws) - [globalDcGateway 专线全域接入网关的配额和使用量](tag:hws,hws_hk) - [peerLinkPerGdgw: 接入网关的关联连接的配额和使用量](tag:hws,hws_hk) :type type: list[str] """ @@ -45,7 +45,7 @@ def __init__(self, type=None): def type(self): """Gets the type of this ShowQuotasRequest. - 支持过滤的配额类型: - [physicalConnect: 物理连接direct_connect实例的配额和使用量] - [virtualInterface: 虚拟接口virtual-interface的配额和使用量] - [connectGateway: 连接网关(用于关联GEIP)的配额和使用量](tag:hws) - [geip: 每租户可以关联GEIP的配额和使用量](tag:hws) - [globalDcGateway 专线全球接入网关的配额和使用量] - [peerLinkPerGdgw: 接入网关的关联连接的配额和使用量] + 支持过滤的配额类型: - physicalConnect: 物理连接direct_connect实例的配额和使用量 - virtualInterface: 虚拟接口virtual-interface的配额和使用量 - [connectGateway: 连接网关(用于关联GEIP)的配额和使用量](tag:hws) - [geip: 每租户可以关联GEIP的配额和使用量](tag:hws) - [globalDcGateway 专线全域接入网关的配额和使用量](tag:hws,hws_hk) - [peerLinkPerGdgw: 接入网关的关联连接的配额和使用量](tag:hws,hws_hk) :return: The type of this ShowQuotasRequest. :rtype: list[str] @@ -56,7 +56,7 @@ def type(self): def type(self, type): """Sets the type of this ShowQuotasRequest. - 支持过滤的配额类型: - [physicalConnect: 物理连接direct_connect实例的配额和使用量] - [virtualInterface: 虚拟接口virtual-interface的配额和使用量] - [connectGateway: 连接网关(用于关联GEIP)的配额和使用量](tag:hws) - [geip: 每租户可以关联GEIP的配额和使用量](tag:hws) - [globalDcGateway 专线全球接入网关的配额和使用量] - [peerLinkPerGdgw: 接入网关的关联连接的配额和使用量] + 支持过滤的配额类型: - physicalConnect: 物理连接direct_connect实例的配额和使用量 - virtualInterface: 虚拟接口virtual-interface的配额和使用量 - [connectGateway: 连接网关(用于关联GEIP)的配额和使用量](tag:hws) - [geip: 每租户可以关联GEIP的配额和使用量](tag:hws) - [globalDcGateway 专线全域接入网关的配额和使用量](tag:hws,hws_hk) - [peerLinkPerGdgw: 接入网关的关联连接的配额和使用量](tag:hws,hws_hk) :param type: The type of this ShowQuotasRequest. :type type: list[str] diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_quotas_response_body_quotas.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_quotas_response_body_quotas.py index 2a9266d4a2..e015e69722 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_quotas_response_body_quotas.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_quotas_response_body_quotas.py @@ -29,7 +29,7 @@ def __init__(self, resources=None): The model defined in huaweicloud sdk - :param resources: + :param resources: 不同资源配额使用详情列表 :type resources: list[:class:`huaweicloudsdkdc.v3.Info`] """ @@ -45,6 +45,8 @@ def __init__(self, resources=None): def resources(self): """Gets the resources of this ShowQuotasResponseBodyQuotas. + 不同资源配额使用详情列表 + :return: The resources of this ShowQuotasResponseBodyQuotas. :rtype: list[:class:`huaweicloudsdkdc.v3.Info`] """ @@ -54,6 +56,8 @@ def resources(self): def resources(self, resources): """Sets the resources of this ShowQuotasResponseBodyQuotas. + 不同资源配额使用详情列表 + :param resources: The resources of this ShowQuotasResponseBodyQuotas. :type resources: list[:class:`huaweicloudsdkdc.v3.Info`] """ diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_rms_global_dc_gateway_request.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_rms_global_dc_gateway_request.py deleted file mode 100644 index d93e325030..0000000000 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/show_rms_global_dc_gateway_request.py +++ /dev/null @@ -1,284 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class ShowRmsGlobalDcGatewayRequest: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'rp_name': 'str', - 'domain_id': 'str', - 'region_id': 'str', - 'resource_type': 'str', - 'global_dc_gateway_id': 'str', - 'fields': 'list[str]', - 'ext_fields': 'list[str]' - } - - attribute_map = { - 'rp_name': 'rp_name', - 'domain_id': 'domain_id', - 'region_id': 'region_id', - 'resource_type': 'resource_type', - 'global_dc_gateway_id': 'global_dc_gateway_id', - 'fields': 'fields', - 'ext_fields': 'ext_fields' - } - - def __init__(self, rp_name=None, domain_id=None, region_id=None, resource_type=None, global_dc_gateway_id=None, fields=None, ext_fields=None): - """ShowRmsGlobalDcGatewayRequest - - The model defined in huaweicloud sdk - - :param rp_name: 通过rp_name过滤记录 - :type rp_name: str - :param domain_id: domain_id - :type domain_id: str - :param region_id: region_id - :type region_id: str - :param resource_type: resource_type - :type resource_type: str - :param global_dc_gateway_id: 全球接入网关ID - :type global_dc_gateway_id: str - :param fields: 显示字段列表 - :type fields: list[str] - :param ext_fields: show response ext-fields - :type ext_fields: list[str] - """ - - - - self._rp_name = None - self._domain_id = None - self._region_id = None - self._resource_type = None - self._global_dc_gateway_id = None - self._fields = None - self._ext_fields = None - self.discriminator = None - - self.rp_name = rp_name - self.domain_id = domain_id - self.region_id = region_id - self.resource_type = resource_type - self.global_dc_gateway_id = global_dc_gateway_id - if fields is not None: - self.fields = fields - if ext_fields is not None: - self.ext_fields = ext_fields - - @property - def rp_name(self): - """Gets the rp_name of this ShowRmsGlobalDcGatewayRequest. - - 通过rp_name过滤记录 - - :return: The rp_name of this ShowRmsGlobalDcGatewayRequest. - :rtype: str - """ - return self._rp_name - - @rp_name.setter - def rp_name(self, rp_name): - """Sets the rp_name of this ShowRmsGlobalDcGatewayRequest. - - 通过rp_name过滤记录 - - :param rp_name: The rp_name of this ShowRmsGlobalDcGatewayRequest. - :type rp_name: str - """ - self._rp_name = rp_name - - @property - def domain_id(self): - """Gets the domain_id of this ShowRmsGlobalDcGatewayRequest. - - domain_id - - :return: The domain_id of this ShowRmsGlobalDcGatewayRequest. - :rtype: str - """ - return self._domain_id - - @domain_id.setter - def domain_id(self, domain_id): - """Sets the domain_id of this ShowRmsGlobalDcGatewayRequest. - - domain_id - - :param domain_id: The domain_id of this ShowRmsGlobalDcGatewayRequest. - :type domain_id: str - """ - self._domain_id = domain_id - - @property - def region_id(self): - """Gets the region_id of this ShowRmsGlobalDcGatewayRequest. - - region_id - - :return: The region_id of this ShowRmsGlobalDcGatewayRequest. - :rtype: str - """ - return self._region_id - - @region_id.setter - def region_id(self, region_id): - """Sets the region_id of this ShowRmsGlobalDcGatewayRequest. - - region_id - - :param region_id: The region_id of this ShowRmsGlobalDcGatewayRequest. - :type region_id: str - """ - self._region_id = region_id - - @property - def resource_type(self): - """Gets the resource_type of this ShowRmsGlobalDcGatewayRequest. - - resource_type - - :return: The resource_type of this ShowRmsGlobalDcGatewayRequest. - :rtype: str - """ - return self._resource_type - - @resource_type.setter - def resource_type(self, resource_type): - """Sets the resource_type of this ShowRmsGlobalDcGatewayRequest. - - resource_type - - :param resource_type: The resource_type of this ShowRmsGlobalDcGatewayRequest. - :type resource_type: str - """ - self._resource_type = resource_type - - @property - def global_dc_gateway_id(self): - """Gets the global_dc_gateway_id of this ShowRmsGlobalDcGatewayRequest. - - 全球接入网关ID - - :return: The global_dc_gateway_id of this ShowRmsGlobalDcGatewayRequest. - :rtype: str - """ - return self._global_dc_gateway_id - - @global_dc_gateway_id.setter - def global_dc_gateway_id(self, global_dc_gateway_id): - """Sets the global_dc_gateway_id of this ShowRmsGlobalDcGatewayRequest. - - 全球接入网关ID - - :param global_dc_gateway_id: The global_dc_gateway_id of this ShowRmsGlobalDcGatewayRequest. - :type global_dc_gateway_id: str - """ - self._global_dc_gateway_id = global_dc_gateway_id - - @property - def fields(self): - """Gets the fields of this ShowRmsGlobalDcGatewayRequest. - - 显示字段列表 - - :return: The fields of this ShowRmsGlobalDcGatewayRequest. - :rtype: list[str] - """ - return self._fields - - @fields.setter - def fields(self, fields): - """Sets the fields of this ShowRmsGlobalDcGatewayRequest. - - 显示字段列表 - - :param fields: The fields of this ShowRmsGlobalDcGatewayRequest. - :type fields: list[str] - """ - self._fields = fields - - @property - def ext_fields(self): - """Gets the ext_fields of this ShowRmsGlobalDcGatewayRequest. - - show response ext-fields - - :return: The ext_fields of this ShowRmsGlobalDcGatewayRequest. - :rtype: list[str] - """ - return self._ext_fields - - @ext_fields.setter - def ext_fields(self, ext_fields): - """Sets the ext_fields of this ShowRmsGlobalDcGatewayRequest. - - show response ext-fields - - :param ext_fields: The ext_fields of this ShowRmsGlobalDcGatewayRequest. - :type ext_fields: list[str] - """ - self._ext_fields = ext_fields - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ShowRmsGlobalDcGatewayRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/switchover_test_record.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/switchover_test_record.py index 3b6478e647..659d13cd3a 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/switchover_test_record.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/switchover_test_record.py @@ -53,9 +53,9 @@ def __init__(self, id=None, tenant_id=None, resource_id=None, resource_type=None :type resource_type: str :param operation: shutdown, undo_shutdown表示倒换测试操作类型 :type operation: str - :param start_time: 倒换测试操作的开始时间 + :param start_time: 倒换测试操作的开始时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ :type start_time: datetime - :param end_time: 倒换测试操作的结束时间 + :param end_time: 倒换测试操作的结束时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ :type end_time: datetime :param operate_status: 倒换测试状态记录 STARTING: 初始状态 INPROGRESS: 配置下发中 COMPLETE: 配置下发完成 ERROR: 配置下发失败 :type operate_status: str @@ -204,7 +204,7 @@ def operation(self, operation): def start_time(self): """Gets the start_time of this SwitchoverTestRecord. - 倒换测试操作的开始时间 + 倒换测试操作的开始时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ :return: The start_time of this SwitchoverTestRecord. :rtype: datetime @@ -215,7 +215,7 @@ def start_time(self): def start_time(self, start_time): """Sets the start_time of this SwitchoverTestRecord. - 倒换测试操作的开始时间 + 倒换测试操作的开始时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ :param start_time: The start_time of this SwitchoverTestRecord. :type start_time: datetime @@ -226,7 +226,7 @@ def start_time(self, start_time): def end_time(self): """Gets the end_time of this SwitchoverTestRecord. - 倒换测试操作的结束时间 + 倒换测试操作的结束时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ :return: The end_time of this SwitchoverTestRecord. :rtype: datetime @@ -237,7 +237,7 @@ def end_time(self): def end_time(self, end_time): """Sets the end_time of this SwitchoverTestRecord. - 倒换测试操作的结束时间 + 倒换测试操作的结束时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ :param end_time: The end_time of this SwitchoverTestRecord. :type end_time: datetime diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/unbind_global_eips_response.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/unbind_global_eips_response.py index e4a643561f..9f2a9bf1f4 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/unbind_global_eips_response.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/unbind_global_eips_response.py @@ -19,17 +19,15 @@ class UnbindGlobalEipsResponse(SdkResponse): openapi_types = { 'request_id': 'str', - 'global_eips': 'ListBindingGeip', - 'x_request_id': 'str' + 'global_eips': 'ListBindingGeip' } attribute_map = { 'request_id': 'request_id', - 'global_eips': 'global_eips', - 'x_request_id': 'X-Request-Id' + 'global_eips': 'global_eips' } - def __init__(self, request_id=None, global_eips=None, x_request_id=None): + def __init__(self, request_id=None, global_eips=None): """UnbindGlobalEipsResponse The model defined in huaweicloud sdk @@ -38,23 +36,18 @@ def __init__(self, request_id=None, global_eips=None, x_request_id=None): :type request_id: str :param global_eips: :type global_eips: :class:`huaweicloudsdkdc.v3.ListBindingGeip` - :param x_request_id: - :type x_request_id: str """ super(UnbindGlobalEipsResponse, self).__init__() self._request_id = None self._global_eips = None - self._x_request_id = None self.discriminator = None if request_id is not None: self.request_id = request_id if global_eips is not None: self.global_eips = global_eips - if x_request_id is not None: - self.x_request_id = x_request_id @property def request_id(self): @@ -96,24 +89,6 @@ def global_eips(self, global_eips): """ self._global_eips = global_eips - @property - def x_request_id(self): - """Gets the x_request_id of this UnbindGlobalEipsResponse. - - :return: The x_request_id of this UnbindGlobalEipsResponse. - :rtype: str - """ - return self._x_request_id - - @x_request_id.setter - def x_request_id(self, x_request_id): - """Sets the x_request_id of this UnbindGlobalEipsResponse. - - :param x_request_id: The x_request_id of this UnbindGlobalEipsResponse. - :type x_request_id: str - """ - self._x_request_id = x_request_id - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_connect_gateway_response.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_connect_gateway_response.py index dcc0a2dc0b..19ba03e587 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_connect_gateway_response.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_connect_gateway_response.py @@ -18,21 +18,77 @@ class UpdateConnectGatewayResponse(SdkResponse): sensitive_list = [] openapi_types = { + 'request_id': 'str', + 'connect_gateway': 'ConnectGatewayResponse' } attribute_map = { + 'request_id': 'request_id', + 'connect_gateway': 'connect_gateway' } - def __init__(self): + def __init__(self, request_id=None, connect_gateway=None): """UpdateConnectGatewayResponse The model defined in huaweicloud sdk + :param request_id: 请求ID + :type request_id: str + :param connect_gateway: + :type connect_gateway: :class:`huaweicloudsdkdc.v3.ConnectGatewayResponse` """ super(UpdateConnectGatewayResponse, self).__init__() + + self._request_id = None + self._connect_gateway = None self.discriminator = None + if request_id is not None: + self.request_id = request_id + if connect_gateway is not None: + self.connect_gateway = connect_gateway + + @property + def request_id(self): + """Gets the request_id of this UpdateConnectGatewayResponse. + + 请求ID + + :return: The request_id of this UpdateConnectGatewayResponse. + :rtype: str + """ + return self._request_id + + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this UpdateConnectGatewayResponse. + + 请求ID + + :param request_id: The request_id of this UpdateConnectGatewayResponse. + :type request_id: str + """ + self._request_id = request_id + + @property + def connect_gateway(self): + """Gets the connect_gateway of this UpdateConnectGatewayResponse. + + :return: The connect_gateway of this UpdateConnectGatewayResponse. + :rtype: :class:`huaweicloudsdkdc.v3.ConnectGatewayResponse` + """ + return self._connect_gateway + + @connect_gateway.setter + def connect_gateway(self, connect_gateway): + """Sets the connect_gateway of this UpdateConnectGatewayResponse. + + :param connect_gateway: The connect_gateway of this UpdateConnectGatewayResponse. + :type connect_gateway: :class:`huaweicloudsdkdc.v3.ConnectGatewayResponse` + """ + self._connect_gateway = connect_gateway + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_direct_connect.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_direct_connect.py index 2f62a4b984..b00f8c9de2 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_direct_connect.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_direct_connect.py @@ -43,11 +43,11 @@ def __init__(self, name=None, description=None, bandwidth=None, peer_location=No :type name: str :param description: 物理专线的描述信息 :type description: str - :param bandwidth: 指定托管专线接入带宽,单位Mbps + :param bandwidth: 指定托管专线接入带宽,单位Mbps。[注:标准或运营专线的带宽不能降低!](tag:dt) :type bandwidth: int :param peer_location: 物理专线对端所在的物理位置,省/市/街道或IDC名字 :type peer_location: str - :param status: 更新资源状态,合法值是:PENDING_PAY + :param status: 更新资源状态,合法值是:PENDING_PAY,APPLY :type status: str :param provider_status: 更新运营商状态,合法值是:ACTIVE,DOWN :type provider_status: str @@ -124,7 +124,7 @@ def description(self, description): def bandwidth(self): """Gets the bandwidth of this UpdateDirectConnect. - 指定托管专线接入带宽,单位Mbps + 指定托管专线接入带宽,单位Mbps。[注:标准或运营专线的带宽不能降低!](tag:dt) :return: The bandwidth of this UpdateDirectConnect. :rtype: int @@ -135,7 +135,7 @@ def bandwidth(self): def bandwidth(self, bandwidth): """Sets the bandwidth of this UpdateDirectConnect. - 指定托管专线接入带宽,单位Mbps + 指定托管专线接入带宽,单位Mbps。[注:标准或运营专线的带宽不能降低!](tag:dt) :param bandwidth: The bandwidth of this UpdateDirectConnect. :type bandwidth: int @@ -168,7 +168,7 @@ def peer_location(self, peer_location): def status(self): """Gets the status of this UpdateDirectConnect. - 更新资源状态,合法值是:PENDING_PAY + 更新资源状态,合法值是:PENDING_PAY,APPLY :return: The status of this UpdateDirectConnect. :rtype: str @@ -179,7 +179,7 @@ def status(self): def status(self, status): """Sets the status of this UpdateDirectConnect. - 更新资源状态,合法值是:PENDING_PAY + 更新资源状态,合法值是:PENDING_PAY,APPLY :param status: The status of this UpdateDirectConnect. :type status: str diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_peer_link_request_body.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_external_peer_link_request_body.py similarity index 61% rename from huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_peer_link_request_body.py rename to huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_external_peer_link_request_body.py index 08ad0cbc77..eeb4fc2dbe 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/create_peer_link_request_body.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_external_peer_link_request_body.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class CreatePeerLinkRequestBody: +class UpdateExternalPeerLinkRequestBody: """ Attributes: @@ -17,74 +17,45 @@ class CreatePeerLinkRequestBody: sensitive_list = [] openapi_types = { - 'dry_run': 'bool', - 'peer_link': 'CreatePeerLinkRequestBodyPeerLink' + 'peer_link': 'UpdateExternalPeerLinkRequestBodyPeerLink' } attribute_map = { - 'dry_run': 'dry_run', 'peer_link': 'peer_link' } - def __init__(self, dry_run=None, peer_link=None): - """CreatePeerLinkRequestBody + def __init__(self, peer_link=None): + """UpdateExternalPeerLinkRequestBody The model defined in huaweicloud sdk - :param dry_run: 空运行 - true 是 - false 否 - :type dry_run: bool :param peer_link: - :type peer_link: :class:`huaweicloudsdkdc.v3.CreatePeerLinkRequestBodyPeerLink` + :type peer_link: :class:`huaweicloudsdkdc.v3.UpdateExternalPeerLinkRequestBodyPeerLink` """ - self._dry_run = None self._peer_link = None self.discriminator = None - if dry_run is not None: - self.dry_run = dry_run if peer_link is not None: self.peer_link = peer_link - @property - def dry_run(self): - """Gets the dry_run of this CreatePeerLinkRequestBody. - - 空运行 - true 是 - false 否 - - :return: The dry_run of this CreatePeerLinkRequestBody. - :rtype: bool - """ - return self._dry_run - - @dry_run.setter - def dry_run(self, dry_run): - """Sets the dry_run of this CreatePeerLinkRequestBody. - - 空运行 - true 是 - false 否 - - :param dry_run: The dry_run of this CreatePeerLinkRequestBody. - :type dry_run: bool - """ - self._dry_run = dry_run - @property def peer_link(self): - """Gets the peer_link of this CreatePeerLinkRequestBody. + """Gets the peer_link of this UpdateExternalPeerLinkRequestBody. - :return: The peer_link of this CreatePeerLinkRequestBody. - :rtype: :class:`huaweicloudsdkdc.v3.CreatePeerLinkRequestBodyPeerLink` + :return: The peer_link of this UpdateExternalPeerLinkRequestBody. + :rtype: :class:`huaweicloudsdkdc.v3.UpdateExternalPeerLinkRequestBodyPeerLink` """ return self._peer_link @peer_link.setter def peer_link(self, peer_link): - """Sets the peer_link of this CreatePeerLinkRequestBody. + """Sets the peer_link of this UpdateExternalPeerLinkRequestBody. - :param peer_link: The peer_link of this CreatePeerLinkRequestBody. - :type peer_link: :class:`huaweicloudsdkdc.v3.CreatePeerLinkRequestBodyPeerLink` + :param peer_link: The peer_link of this UpdateExternalPeerLinkRequestBody. + :type peer_link: :class:`huaweicloudsdkdc.v3.UpdateExternalPeerLinkRequestBodyPeerLink` """ self._peer_link = peer_link @@ -130,7 +101,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, CreatePeerLinkRequestBody): + if not isinstance(other, UpdateExternalPeerLinkRequestBody): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_peer_link_request_body_peer_link.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_external_peer_link_request_body_peer_link.py similarity index 74% rename from huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_peer_link_request_body_peer_link.py rename to huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_external_peer_link_request_body_peer_link.py index 99b550966a..8eaf38690f 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_peer_link_request_body_peer_link.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_external_peer_link_request_body_peer_link.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class UpdatePeerLinkRequestBodyPeerLink: +class UpdateExternalPeerLinkRequestBodyPeerLink: """ Attributes: @@ -27,13 +27,13 @@ class UpdatePeerLinkRequestBodyPeerLink: } def __init__(self, name=None, description=None): - """UpdatePeerLinkRequestBodyPeerLink + """UpdateExternalPeerLinkRequestBodyPeerLink The model defined in huaweicloud sdk - :param name: 名称 + :param name: 接入网关关联连接的名字 :type name: str - :param description: 描述 + :param description: 描述信息 :type description: str """ @@ -50,44 +50,44 @@ def __init__(self, name=None, description=None): @property def name(self): - """Gets the name of this UpdatePeerLinkRequestBodyPeerLink. + """Gets the name of this UpdateExternalPeerLinkRequestBodyPeerLink. - 名称 + 接入网关关联连接的名字 - :return: The name of this UpdatePeerLinkRequestBodyPeerLink. + :return: The name of this UpdateExternalPeerLinkRequestBodyPeerLink. :rtype: str """ return self._name @name.setter def name(self, name): - """Sets the name of this UpdatePeerLinkRequestBodyPeerLink. + """Sets the name of this UpdateExternalPeerLinkRequestBodyPeerLink. - 名称 + 接入网关关联连接的名字 - :param name: The name of this UpdatePeerLinkRequestBodyPeerLink. + :param name: The name of this UpdateExternalPeerLinkRequestBodyPeerLink. :type name: str """ self._name = name @property def description(self): - """Gets the description of this UpdatePeerLinkRequestBodyPeerLink. + """Gets the description of this UpdateExternalPeerLinkRequestBodyPeerLink. - 描述 + 描述信息 - :return: The description of this UpdatePeerLinkRequestBodyPeerLink. + :return: The description of this UpdateExternalPeerLinkRequestBodyPeerLink. :rtype: str """ return self._description @description.setter def description(self, description): - """Sets the description of this UpdatePeerLinkRequestBodyPeerLink. + """Sets the description of this UpdateExternalPeerLinkRequestBodyPeerLink. - 描述 + 描述信息 - :param description: The description of this UpdatePeerLinkRequestBodyPeerLink. + :param description: The description of this UpdateExternalPeerLinkRequestBodyPeerLink. :type description: str """ self._description = description @@ -134,7 +134,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, UpdatePeerLinkRequestBodyPeerLink): + if not isinstance(other, UpdateExternalPeerLinkRequestBodyPeerLink): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_gdgw_route_table_request.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_gdgw_route_table_request.py index 121d0ae557..29681534dd 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_gdgw_route_table_request.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_gdgw_route_table_request.py @@ -31,7 +31,7 @@ def __init__(self, gdgw_id=None, body=None): The model defined in huaweicloud sdk - :param gdgw_id: 全球接入网关ID + :param gdgw_id: 全域接入网关ID :type gdgw_id: str :param body: Body of the UpdateGdgwRouteTableRequest :type body: :class:`huaweicloudsdkdc.v3.UpdateGdgwRoutetableRequestBody` @@ -51,7 +51,7 @@ def __init__(self, gdgw_id=None, body=None): def gdgw_id(self): """Gets the gdgw_id of this UpdateGdgwRouteTableRequest. - 全球接入网关ID + 全域接入网关ID :return: The gdgw_id of this UpdateGdgwRouteTableRequest. :rtype: str @@ -62,7 +62,7 @@ def gdgw_id(self): def gdgw_id(self, gdgw_id): """Sets the gdgw_id of this UpdateGdgwRouteTableRequest. - 全球接入网关ID + 全域接入网关ID :param gdgw_id: The gdgw_id of this UpdateGdgwRouteTableRequest. :type gdgw_id: str diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_gdgw_route_table_response.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_gdgw_route_table_response.py index 680791b999..dd7fb1eb28 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_gdgw_route_table_response.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_gdgw_route_table_response.py @@ -19,48 +19,41 @@ class UpdateGdgwRouteTableResponse(SdkResponse): openapi_types = { 'request_id': 'str', - 'gdgw_routetable': 'list[ShowGdgwRoutetable]', - 'x_request_id': 'str' + 'gdgw_routetable': 'list[ShowGdgwRoutetable]' } attribute_map = { 'request_id': 'request_id', - 'gdgw_routetable': 'gdgw_routetable', - 'x_request_id': 'X-Request-Id' + 'gdgw_routetable': 'gdgw_routetable' } - def __init__(self, request_id=None, gdgw_routetable=None, x_request_id=None): + def __init__(self, request_id=None, gdgw_routetable=None): """UpdateGdgwRouteTableResponse The model defined in huaweicloud sdk - :param request_id: 请求ID + :param request_id: 请求id :type request_id: str - :param gdgw_routetable: 路由表详细对象 + :param gdgw_routetable: 全域接入网关路由表 :type gdgw_routetable: list[:class:`huaweicloudsdkdc.v3.ShowGdgwRoutetable`] - :param x_request_id: - :type x_request_id: str """ super(UpdateGdgwRouteTableResponse, self).__init__() self._request_id = None self._gdgw_routetable = None - self._x_request_id = None self.discriminator = None if request_id is not None: self.request_id = request_id if gdgw_routetable is not None: self.gdgw_routetable = gdgw_routetable - if x_request_id is not None: - self.x_request_id = x_request_id @property def request_id(self): """Gets the request_id of this UpdateGdgwRouteTableResponse. - 请求ID + 请求id :return: The request_id of this UpdateGdgwRouteTableResponse. :rtype: str @@ -71,7 +64,7 @@ def request_id(self): def request_id(self, request_id): """Sets the request_id of this UpdateGdgwRouteTableResponse. - 请求ID + 请求id :param request_id: The request_id of this UpdateGdgwRouteTableResponse. :type request_id: str @@ -82,7 +75,7 @@ def request_id(self, request_id): def gdgw_routetable(self): """Gets the gdgw_routetable of this UpdateGdgwRouteTableResponse. - 路由表详细对象 + 全域接入网关路由表 :return: The gdgw_routetable of this UpdateGdgwRouteTableResponse. :rtype: list[:class:`huaweicloudsdkdc.v3.ShowGdgwRoutetable`] @@ -93,31 +86,13 @@ def gdgw_routetable(self): def gdgw_routetable(self, gdgw_routetable): """Sets the gdgw_routetable of this UpdateGdgwRouteTableResponse. - 路由表详细对象 + 全域接入网关路由表 :param gdgw_routetable: The gdgw_routetable of this UpdateGdgwRouteTableResponse. :type gdgw_routetable: list[:class:`huaweicloudsdkdc.v3.ShowGdgwRoutetable`] """ self._gdgw_routetable = gdgw_routetable - @property - def x_request_id(self): - """Gets the x_request_id of this UpdateGdgwRouteTableResponse. - - :return: The x_request_id of this UpdateGdgwRouteTableResponse. - :rtype: str - """ - return self._x_request_id - - @x_request_id.setter - def x_request_id(self, x_request_id): - """Sets the x_request_id of this UpdateGdgwRouteTableResponse. - - :param x_request_id: The x_request_id of this UpdateGdgwRouteTableResponse. - :type x_request_id: str - """ - self._x_request_id = x_request_id - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_gdgw_routetable_request_body.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_gdgw_routetable_request_body.py index 5cf0652a6b..66d6023535 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_gdgw_routetable_request_body.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_gdgw_routetable_request_body.py @@ -18,7 +18,7 @@ class UpdateGdgwRoutetableRequestBody: openapi_types = { 'dry_run': 'bool', - 'gdgw_routetable': 'UpdateGdgwRoutetableRequestBodyGdgwRoutetable' + 'gdgw_routetable': 'GdgwRouteTableRequest' } attribute_map = { @@ -31,10 +31,10 @@ def __init__(self, dry_run=None, gdgw_routetable=None): The model defined in huaweicloud sdk - :param dry_run: 空运行:true-是,false-否 + :param dry_run: 是否dry run模式执行 :type dry_run: bool :param gdgw_routetable: - :type gdgw_routetable: :class:`huaweicloudsdkdc.v3.UpdateGdgwRoutetableRequestBodyGdgwRoutetable` + :type gdgw_routetable: :class:`huaweicloudsdkdc.v3.GdgwRouteTableRequest` """ @@ -52,7 +52,7 @@ def __init__(self, dry_run=None, gdgw_routetable=None): def dry_run(self): """Gets the dry_run of this UpdateGdgwRoutetableRequestBody. - 空运行:true-是,false-否 + 是否dry run模式执行 :return: The dry_run of this UpdateGdgwRoutetableRequestBody. :rtype: bool @@ -63,7 +63,7 @@ def dry_run(self): def dry_run(self, dry_run): """Sets the dry_run of this UpdateGdgwRoutetableRequestBody. - 空运行:true-是,false-否 + 是否dry run模式执行 :param dry_run: The dry_run of this UpdateGdgwRoutetableRequestBody. :type dry_run: bool @@ -75,7 +75,7 @@ def gdgw_routetable(self): """Gets the gdgw_routetable of this UpdateGdgwRoutetableRequestBody. :return: The gdgw_routetable of this UpdateGdgwRoutetableRequestBody. - :rtype: :class:`huaweicloudsdkdc.v3.UpdateGdgwRoutetableRequestBodyGdgwRoutetable` + :rtype: :class:`huaweicloudsdkdc.v3.GdgwRouteTableRequest` """ return self._gdgw_routetable @@ -84,7 +84,7 @@ def gdgw_routetable(self, gdgw_routetable): """Sets the gdgw_routetable of this UpdateGdgwRoutetableRequestBody. :param gdgw_routetable: The gdgw_routetable of this UpdateGdgwRoutetableRequestBody. - :type gdgw_routetable: :class:`huaweicloudsdkdc.v3.UpdateGdgwRoutetableRequestBodyGdgwRoutetable` + :type gdgw_routetable: :class:`huaweicloudsdkdc.v3.GdgwRouteTableRequest` """ self._gdgw_routetable = gdgw_routetable diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_global_dc_gateway_request_body_global_dc_gateway.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_global_dc_gateway.py similarity index 76% rename from huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_global_dc_gateway_request_body_global_dc_gateway.py rename to huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_global_dc_gateway.py index e9ed7fff07..fd13ac3c05 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_global_dc_gateway_request_body_global_dc_gateway.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_global_dc_gateway.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class UpdateGlobalDcGatewayRequestBodyGlobalDcGateway: +class UpdateGlobalDcGateway: """ Attributes: @@ -29,15 +29,15 @@ class UpdateGlobalDcGatewayRequestBodyGlobalDcGateway: } def __init__(self, name=None, description=None, address_family=None): - """UpdateGlobalDcGatewayRequestBodyGlobalDcGateway + """UpdateGlobalDcGateway The model defined in huaweicloud sdk - :param name: 名称 + :param name: global-dc-gateway名字。 :type name: str - :param description: 描述信息 + :param description: 描述信息。 :type description: str - :param address_family: 地址簇类型 + :param address_family: global-dc-gateway的地址族 :type address_family: str """ @@ -57,66 +57,66 @@ def __init__(self, name=None, description=None, address_family=None): @property def name(self): - """Gets the name of this UpdateGlobalDcGatewayRequestBodyGlobalDcGateway. + """Gets the name of this UpdateGlobalDcGateway. - 名称 + global-dc-gateway名字。 - :return: The name of this UpdateGlobalDcGatewayRequestBodyGlobalDcGateway. + :return: The name of this UpdateGlobalDcGateway. :rtype: str """ return self._name @name.setter def name(self, name): - """Sets the name of this UpdateGlobalDcGatewayRequestBodyGlobalDcGateway. + """Sets the name of this UpdateGlobalDcGateway. - 名称 + global-dc-gateway名字。 - :param name: The name of this UpdateGlobalDcGatewayRequestBodyGlobalDcGateway. + :param name: The name of this UpdateGlobalDcGateway. :type name: str """ self._name = name @property def description(self): - """Gets the description of this UpdateGlobalDcGatewayRequestBodyGlobalDcGateway. + """Gets the description of this UpdateGlobalDcGateway. - 描述信息 + 描述信息。 - :return: The description of this UpdateGlobalDcGatewayRequestBodyGlobalDcGateway. + :return: The description of this UpdateGlobalDcGateway. :rtype: str """ return self._description @description.setter def description(self, description): - """Sets the description of this UpdateGlobalDcGatewayRequestBodyGlobalDcGateway. + """Sets the description of this UpdateGlobalDcGateway. - 描述信息 + 描述信息。 - :param description: The description of this UpdateGlobalDcGatewayRequestBodyGlobalDcGateway. + :param description: The description of this UpdateGlobalDcGateway. :type description: str """ self._description = description @property def address_family(self): - """Gets the address_family of this UpdateGlobalDcGatewayRequestBodyGlobalDcGateway. + """Gets the address_family of this UpdateGlobalDcGateway. - 地址簇类型 + global-dc-gateway的地址族 - :return: The address_family of this UpdateGlobalDcGatewayRequestBodyGlobalDcGateway. + :return: The address_family of this UpdateGlobalDcGateway. :rtype: str """ return self._address_family @address_family.setter def address_family(self, address_family): - """Sets the address_family of this UpdateGlobalDcGatewayRequestBodyGlobalDcGateway. + """Sets the address_family of this UpdateGlobalDcGateway. - 地址簇类型 + global-dc-gateway的地址族 - :param address_family: The address_family of this UpdateGlobalDcGatewayRequestBodyGlobalDcGateway. + :param address_family: The address_family of this UpdateGlobalDcGateway. :type address_family: str """ self._address_family = address_family @@ -163,7 +163,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, UpdateGlobalDcGatewayRequestBodyGlobalDcGateway): + if not isinstance(other, UpdateGlobalDcGateway): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_global_dc_gateway_request.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_global_dc_gateway_request.py index 31b03e95e2..d9d3ec1d48 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_global_dc_gateway_request.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_global_dc_gateway_request.py @@ -31,7 +31,7 @@ def __init__(self, global_dc_gateway_id=None, body=None): The model defined in huaweicloud sdk - :param global_dc_gateway_id: 全球接入网关ID + :param global_dc_gateway_id: 全域接入网关ID :type global_dc_gateway_id: str :param body: Body of the UpdateGlobalDcGatewayRequest :type body: :class:`huaweicloudsdkdc.v3.UpdateGlobalDcGatewayRequestBody` @@ -51,7 +51,7 @@ def __init__(self, global_dc_gateway_id=None, body=None): def global_dc_gateway_id(self): """Gets the global_dc_gateway_id of this UpdateGlobalDcGatewayRequest. - 全球接入网关ID + 全域接入网关ID :return: The global_dc_gateway_id of this UpdateGlobalDcGatewayRequest. :rtype: str @@ -62,7 +62,7 @@ def global_dc_gateway_id(self): def global_dc_gateway_id(self, global_dc_gateway_id): """Sets the global_dc_gateway_id of this UpdateGlobalDcGatewayRequest. - 全球接入网关ID + 全域接入网关ID :param global_dc_gateway_id: The global_dc_gateway_id of this UpdateGlobalDcGatewayRequest. :type global_dc_gateway_id: str diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_global_dc_gateway_request_body.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_global_dc_gateway_request_body.py index 68f851fa74..ebadebfd40 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_global_dc_gateway_request_body.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_global_dc_gateway_request_body.py @@ -17,65 +17,35 @@ class UpdateGlobalDcGatewayRequestBody: sensitive_list = [] openapi_types = { - 'dry_run': 'bool', - 'global_dc_gateway': 'UpdateGlobalDcGatewayRequestBodyGlobalDcGateway' + 'global_dc_gateway': 'UpdateGlobalDcGateway' } attribute_map = { - 'dry_run': 'dry_run', 'global_dc_gateway': 'global_dc_gateway' } - def __init__(self, dry_run=None, global_dc_gateway=None): + def __init__(self, global_dc_gateway=None): """UpdateGlobalDcGatewayRequestBody The model defined in huaweicloud sdk - :param dry_run: 空运行? true-是,false-否 - :type dry_run: bool :param global_dc_gateway: - :type global_dc_gateway: :class:`huaweicloudsdkdc.v3.UpdateGlobalDcGatewayRequestBodyGlobalDcGateway` + :type global_dc_gateway: :class:`huaweicloudsdkdc.v3.UpdateGlobalDcGateway` """ - self._dry_run = None self._global_dc_gateway = None self.discriminator = None - if dry_run is not None: - self.dry_run = dry_run - if global_dc_gateway is not None: - self.global_dc_gateway = global_dc_gateway - - @property - def dry_run(self): - """Gets the dry_run of this UpdateGlobalDcGatewayRequestBody. - - 空运行? true-是,false-否 - - :return: The dry_run of this UpdateGlobalDcGatewayRequestBody. - :rtype: bool - """ - return self._dry_run - - @dry_run.setter - def dry_run(self, dry_run): - """Sets the dry_run of this UpdateGlobalDcGatewayRequestBody. - - 空运行? true-是,false-否 - - :param dry_run: The dry_run of this UpdateGlobalDcGatewayRequestBody. - :type dry_run: bool - """ - self._dry_run = dry_run + self.global_dc_gateway = global_dc_gateway @property def global_dc_gateway(self): """Gets the global_dc_gateway of this UpdateGlobalDcGatewayRequestBody. :return: The global_dc_gateway of this UpdateGlobalDcGatewayRequestBody. - :rtype: :class:`huaweicloudsdkdc.v3.UpdateGlobalDcGatewayRequestBodyGlobalDcGateway` + :rtype: :class:`huaweicloudsdkdc.v3.UpdateGlobalDcGateway` """ return self._global_dc_gateway @@ -84,7 +54,7 @@ def global_dc_gateway(self, global_dc_gateway): """Sets the global_dc_gateway of this UpdateGlobalDcGatewayRequestBody. :param global_dc_gateway: The global_dc_gateway of this UpdateGlobalDcGatewayRequestBody. - :type global_dc_gateway: :class:`huaweicloudsdkdc.v3.UpdateGlobalDcGatewayRequestBodyGlobalDcGateway` + :type global_dc_gateway: :class:`huaweicloudsdkdc.v3.UpdateGlobalDcGateway` """ self._global_dc_gateway = global_dc_gateway diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_global_dc_gateway_response.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_global_dc_gateway_response.py index 77634cc6d0..2a1b433ddc 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_global_dc_gateway_response.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_global_dc_gateway_response.py @@ -18,72 +18,43 @@ class UpdateGlobalDcGatewayResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'request_id': 'str', - 'global_dc_gateway': 'ExternalUpdateGlobalDcGateway', - 'x_request_id': 'str' + 'global_dc_gateway': 'GlobalDcGatewayEntry', + 'request_id': 'str' } attribute_map = { - 'request_id': 'request_id', 'global_dc_gateway': 'global_dc_gateway', - 'x_request_id': 'X-Request-Id' + 'request_id': 'request_id' } - def __init__(self, request_id=None, global_dc_gateway=None, x_request_id=None): + def __init__(self, global_dc_gateway=None, request_id=None): """UpdateGlobalDcGatewayResponse The model defined in huaweicloud sdk - :param request_id: 请求ID - :type request_id: str :param global_dc_gateway: - :type global_dc_gateway: :class:`huaweicloudsdkdc.v3.ExternalUpdateGlobalDcGateway` - :param x_request_id: - :type x_request_id: str + :type global_dc_gateway: :class:`huaweicloudsdkdc.v3.GlobalDcGatewayEntry` + :param request_id: 请求ID。 + :type request_id: str """ super(UpdateGlobalDcGatewayResponse, self).__init__() - self._request_id = None self._global_dc_gateway = None - self._x_request_id = None + self._request_id = None self.discriminator = None - if request_id is not None: - self.request_id = request_id if global_dc_gateway is not None: self.global_dc_gateway = global_dc_gateway - if x_request_id is not None: - self.x_request_id = x_request_id - - @property - def request_id(self): - """Gets the request_id of this UpdateGlobalDcGatewayResponse. - - 请求ID - - :return: The request_id of this UpdateGlobalDcGatewayResponse. - :rtype: str - """ - return self._request_id - - @request_id.setter - def request_id(self, request_id): - """Sets the request_id of this UpdateGlobalDcGatewayResponse. - - 请求ID - - :param request_id: The request_id of this UpdateGlobalDcGatewayResponse. - :type request_id: str - """ - self._request_id = request_id + if request_id is not None: + self.request_id = request_id @property def global_dc_gateway(self): """Gets the global_dc_gateway of this UpdateGlobalDcGatewayResponse. :return: The global_dc_gateway of this UpdateGlobalDcGatewayResponse. - :rtype: :class:`huaweicloudsdkdc.v3.ExternalUpdateGlobalDcGateway` + :rtype: :class:`huaweicloudsdkdc.v3.GlobalDcGatewayEntry` """ return self._global_dc_gateway @@ -92,27 +63,31 @@ def global_dc_gateway(self, global_dc_gateway): """Sets the global_dc_gateway of this UpdateGlobalDcGatewayResponse. :param global_dc_gateway: The global_dc_gateway of this UpdateGlobalDcGatewayResponse. - :type global_dc_gateway: :class:`huaweicloudsdkdc.v3.ExternalUpdateGlobalDcGateway` + :type global_dc_gateway: :class:`huaweicloudsdkdc.v3.GlobalDcGatewayEntry` """ self._global_dc_gateway = global_dc_gateway @property - def x_request_id(self): - """Gets the x_request_id of this UpdateGlobalDcGatewayResponse. + def request_id(self): + """Gets the request_id of this UpdateGlobalDcGatewayResponse. - :return: The x_request_id of this UpdateGlobalDcGatewayResponse. + 请求ID。 + + :return: The request_id of this UpdateGlobalDcGatewayResponse. :rtype: str """ - return self._x_request_id + return self._request_id + + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this UpdateGlobalDcGatewayResponse. - @x_request_id.setter - def x_request_id(self, x_request_id): - """Sets the x_request_id of this UpdateGlobalDcGatewayResponse. + 请求ID。 - :param x_request_id: The x_request_id of this UpdateGlobalDcGatewayResponse. - :type x_request_id: str + :param request_id: The request_id of this UpdateGlobalDcGatewayResponse. + :type request_id: str """ - self._x_request_id = x_request_id + self._request_id = request_id def to_dict(self): """Returns the model properties as a dict""" diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_peer_link_request.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_peer_link_request.py index 91a31f4602..feb28a0b77 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_peer_link_request.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_peer_link_request.py @@ -19,7 +19,7 @@ class UpdatePeerLinkRequest: openapi_types = { 'global_dc_gateway_id': 'str', 'peer_link_id': 'str', - 'body': 'UpdatePeerLinkRequestBody' + 'body': 'UpdateExternalPeerLinkRequestBody' } attribute_map = { @@ -33,12 +33,12 @@ def __init__(self, global_dc_gateway_id=None, peer_link_id=None, body=None): The model defined in huaweicloud sdk - :param global_dc_gateway_id: 全球接入网关ID + :param global_dc_gateway_id: 全域接入网关ID :type global_dc_gateway_id: str - :param peer_link_id: 全球接入网关对等体 + :param peer_link_id: 全域接入网关对等体 :type peer_link_id: str :param body: Body of the UpdatePeerLinkRequest - :type body: :class:`huaweicloudsdkdc.v3.UpdatePeerLinkRequestBody` + :type body: :class:`huaweicloudsdkdc.v3.UpdateExternalPeerLinkRequestBody` """ @@ -57,7 +57,7 @@ def __init__(self, global_dc_gateway_id=None, peer_link_id=None, body=None): def global_dc_gateway_id(self): """Gets the global_dc_gateway_id of this UpdatePeerLinkRequest. - 全球接入网关ID + 全域接入网关ID :return: The global_dc_gateway_id of this UpdatePeerLinkRequest. :rtype: str @@ -68,7 +68,7 @@ def global_dc_gateway_id(self): def global_dc_gateway_id(self, global_dc_gateway_id): """Sets the global_dc_gateway_id of this UpdatePeerLinkRequest. - 全球接入网关ID + 全域接入网关ID :param global_dc_gateway_id: The global_dc_gateway_id of this UpdatePeerLinkRequest. :type global_dc_gateway_id: str @@ -79,7 +79,7 @@ def global_dc_gateway_id(self, global_dc_gateway_id): def peer_link_id(self): """Gets the peer_link_id of this UpdatePeerLinkRequest. - 全球接入网关对等体 + 全域接入网关对等体 :return: The peer_link_id of this UpdatePeerLinkRequest. :rtype: str @@ -90,7 +90,7 @@ def peer_link_id(self): def peer_link_id(self, peer_link_id): """Sets the peer_link_id of this UpdatePeerLinkRequest. - 全球接入网关对等体 + 全域接入网关对等体 :param peer_link_id: The peer_link_id of this UpdatePeerLinkRequest. :type peer_link_id: str @@ -102,7 +102,7 @@ def body(self): """Gets the body of this UpdatePeerLinkRequest. :return: The body of this UpdatePeerLinkRequest. - :rtype: :class:`huaweicloudsdkdc.v3.UpdatePeerLinkRequestBody` + :rtype: :class:`huaweicloudsdkdc.v3.UpdateExternalPeerLinkRequestBody` """ return self._body @@ -111,7 +111,7 @@ def body(self, body): """Sets the body of this UpdatePeerLinkRequest. :param body: The body of this UpdatePeerLinkRequest. - :type body: :class:`huaweicloudsdkdc.v3.UpdatePeerLinkRequestBody` + :type body: :class:`huaweicloudsdkdc.v3.UpdateExternalPeerLinkRequestBody` """ self._body = body diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_peer_link_response.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_peer_link_response.py index 1fae9cb15f..3979d40e14 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_peer_link_response.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_peer_link_response.py @@ -19,17 +19,15 @@ class UpdatePeerLinkResponse(SdkResponse): openapi_types = { 'request_id': 'str', - 'peer_link': 'ExternalUpdatePeerLink', - 'x_request_id': 'str' + 'peer_link': 'ExternalUpdatePeerLink' } attribute_map = { 'request_id': 'request_id', - 'peer_link': 'peer_link', - 'x_request_id': 'X-Request-Id' + 'peer_link': 'peer_link' } - def __init__(self, request_id=None, peer_link=None, x_request_id=None): + def __init__(self, request_id=None, peer_link=None): """UpdatePeerLinkResponse The model defined in huaweicloud sdk @@ -38,23 +36,18 @@ def __init__(self, request_id=None, peer_link=None, x_request_id=None): :type request_id: str :param peer_link: :type peer_link: :class:`huaweicloudsdkdc.v3.ExternalUpdatePeerLink` - :param x_request_id: - :type x_request_id: str """ super(UpdatePeerLinkResponse, self).__init__() self._request_id = None self._peer_link = None - self._x_request_id = None self.discriminator = None if request_id is not None: self.request_id = request_id if peer_link is not None: self.peer_link = peer_link - if x_request_id is not None: - self.x_request_id = x_request_id @property def request_id(self): @@ -96,24 +89,6 @@ def peer_link(self, peer_link): """ self._peer_link = peer_link - @property - def x_request_id(self): - """Gets the x_request_id of this UpdatePeerLinkResponse. - - :return: The x_request_id of this UpdatePeerLinkResponse. - :rtype: str - """ - return self._x_request_id - - @x_request_id.setter - def x_request_id(self, x_request_id): - """Sets the x_request_id of this UpdatePeerLinkResponse. - - :param x_request_id: The x_request_id of this UpdatePeerLinkResponse. - :type x_request_id: str - """ - self._x_request_id = x_request_id - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_route_action.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_route_action.py new file mode 100644 index 0000000000..5b4a8a9abe --- /dev/null +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_route_action.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateRouteAction: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'destination': 'str', + 'nexthop': 'str', + 'description': 'str' + } + + attribute_map = { + 'destination': 'destination', + 'nexthop': 'nexthop', + 'description': 'description' + } + + def __init__(self, destination=None, nexthop=None, description=None): + """UpdateRouteAction + + The model defined in huaweicloud sdk + + :param destination: 路由子网 + :type destination: str + :param nexthop: 下一跳id + :type nexthop: str + :param description: 路由描述 + :type description: str + """ + + + + self._destination = None + self._nexthop = None + self._description = None + self.discriminator = None + + self.destination = destination + self.nexthop = nexthop + if description is not None: + self.description = description + + @property + def destination(self): + """Gets the destination of this UpdateRouteAction. + + 路由子网 + + :return: The destination of this UpdateRouteAction. + :rtype: str + """ + return self._destination + + @destination.setter + def destination(self, destination): + """Sets the destination of this UpdateRouteAction. + + 路由子网 + + :param destination: The destination of this UpdateRouteAction. + :type destination: str + """ + self._destination = destination + + @property + def nexthop(self): + """Gets the nexthop of this UpdateRouteAction. + + 下一跳id + + :return: The nexthop of this UpdateRouteAction. + :rtype: str + """ + return self._nexthop + + @nexthop.setter + def nexthop(self, nexthop): + """Sets the nexthop of this UpdateRouteAction. + + 下一跳id + + :param nexthop: The nexthop of this UpdateRouteAction. + :type nexthop: str + """ + self._nexthop = nexthop + + @property + def description(self): + """Gets the description of this UpdateRouteAction. + + 路由描述 + + :return: The description of this UpdateRouteAction. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UpdateRouteAction. + + 路由描述 + + :param description: The description of this UpdateRouteAction. + :type description: str + """ + self._description = description + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateRouteAction): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_vif_peer.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_vif_peer.py index 94ce10edcf..063e2f81a4 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_vif_peer.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_vif_peer.py @@ -48,10 +48,12 @@ def __init__(self, name=None, description=None, remote_ep_group=None): self._remote_ep_group = None self.discriminator = None - self.name = name + if name is not None: + self.name = name if description is not None: self.description = description - self.remote_ep_group = remote_ep_group + if remote_ep_group is not None: + self.remote_ep_group = remote_ep_group @property def name(self): diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_vif_peer_response.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_vif_peer_response.py index f7b2f5a5ea..a960bad4d6 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_vif_peer_response.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_vif_peer_response.py @@ -18,59 +18,30 @@ class UpdateVifPeerResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'request_id': 'str', 'vif_peer': 'VifPeer' } attribute_map = { - 'request_id': 'request_id', 'vif_peer': 'vif_peer' } - def __init__(self, request_id=None, vif_peer=None): + def __init__(self, vif_peer=None): """UpdateVifPeerResponse The model defined in huaweicloud sdk - :param request_id: 请求ID - :type request_id: str :param vif_peer: :type vif_peer: :class:`huaweicloudsdkdc.v3.VifPeer` """ super(UpdateVifPeerResponse, self).__init__() - self._request_id = None self._vif_peer = None self.discriminator = None - if request_id is not None: - self.request_id = request_id if vif_peer is not None: self.vif_peer = vif_peer - @property - def request_id(self): - """Gets the request_id of this UpdateVifPeerResponse. - - 请求ID - - :return: The request_id of this UpdateVifPeerResponse. - :rtype: str - """ - return self._request_id - - @request_id.setter - def request_id(self, request_id): - """Sets the request_id of this UpdateVifPeerResponse. - - 请求ID - - :param request_id: The request_id of this UpdateVifPeerResponse. - :type request_id: str - """ - self._request_id = request_id - @property def vif_peer(self): """Gets the vif_peer of this UpdateVifPeerResponse. diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_virtual_gateway.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_virtual_gateway.py index 0419b53f4e..b3cb03c741 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_virtual_gateway.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_virtual_gateway.py @@ -39,9 +39,9 @@ def __init__(self, name=None, description=None, local_ep_group=None, local_ep_gr :type name: str :param description: 虚拟网关的描述信息 :type description: str - :param local_ep_group: 虚拟网关到访问云上服务IPv4子网列表,通常是vpc的cidrs + :param local_ep_group: 虚拟网关到访问云上服务IPv4子网列表,通常是vpc的cidrs[,当虚拟网关接入VPC时该列表才允许更新。](tag:dt) :type local_ep_group: list[str] - :param local_ep_group_ipv6: 虚拟网关到访问云上服务IPv6子网列表,通常是vpc的cidrs + :param local_ep_group_ipv6: 虚拟网关到访问云上服务IPv6子网列表,通常是vpc的cidrs。[(预留字段,暂不支持)](tag:dt) :type local_ep_group_ipv6: list[str] """ @@ -110,7 +110,7 @@ def description(self, description): def local_ep_group(self): """Gets the local_ep_group of this UpdateVirtualGateway. - 虚拟网关到访问云上服务IPv4子网列表,通常是vpc的cidrs + 虚拟网关到访问云上服务IPv4子网列表,通常是vpc的cidrs[,当虚拟网关接入VPC时该列表才允许更新。](tag:dt) :return: The local_ep_group of this UpdateVirtualGateway. :rtype: list[str] @@ -121,7 +121,7 @@ def local_ep_group(self): def local_ep_group(self, local_ep_group): """Sets the local_ep_group of this UpdateVirtualGateway. - 虚拟网关到访问云上服务IPv4子网列表,通常是vpc的cidrs + 虚拟网关到访问云上服务IPv4子网列表,通常是vpc的cidrs[,当虚拟网关接入VPC时该列表才允许更新。](tag:dt) :param local_ep_group: The local_ep_group of this UpdateVirtualGateway. :type local_ep_group: list[str] @@ -132,7 +132,7 @@ def local_ep_group(self, local_ep_group): def local_ep_group_ipv6(self): """Gets the local_ep_group_ipv6 of this UpdateVirtualGateway. - 虚拟网关到访问云上服务IPv6子网列表,通常是vpc的cidrs + 虚拟网关到访问云上服务IPv6子网列表,通常是vpc的cidrs。[(预留字段,暂不支持)](tag:dt) :return: The local_ep_group_ipv6 of this UpdateVirtualGateway. :rtype: list[str] @@ -143,7 +143,7 @@ def local_ep_group_ipv6(self): def local_ep_group_ipv6(self, local_ep_group_ipv6): """Sets the local_ep_group_ipv6 of this UpdateVirtualGateway. - 虚拟网关到访问云上服务IPv6子网列表,通常是vpc的cidrs + 虚拟网关到访问云上服务IPv6子网列表,通常是vpc的cidrs。[(预留字段,暂不支持)](tag:dt) :param local_ep_group_ipv6: The local_ep_group_ipv6 of this UpdateVirtualGateway. :type local_ep_group_ipv6: list[str] diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_virtual_interface.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_virtual_interface.py index d01fec288f..0ab3a96a6c 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_virtual_interface.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/update_virtual_interface.py @@ -51,11 +51,11 @@ def __init__(self, name=None, description=None, bandwidth=None, remote_ep_group= :type bandwidth: int :param remote_ep_group: 远端子网列表,记录租户侧的cidrs :type remote_ep_group: list[str] - :param service_ep_group: 用于公网专线,用户访问公网服务地址列表 + :param service_ep_group: 用于公网专线,用户访问公网服务地址列表。[(预留字段,暂不支持)](tag:dt) :type service_ep_group: list[str] - :param enable_bfd: 是否使能bfd功能:true或false + :param enable_bfd: 是否使能bfd功能:true或false。[(预留字段,暂不支持)](tag:dt) :type enable_bfd: bool - :param enable_nqa: 是否使能nqa功能:true或false + :param enable_nqa: 是否使能nqa功能:true或false。[(预留字段,暂不支持)](tag:dt) :type enable_nqa: bool :param status: 对其他租户创建的虚拟接口进行确认,可以是ACCEPTED和REJECTED :type status: str @@ -182,7 +182,7 @@ def remote_ep_group(self, remote_ep_group): def service_ep_group(self): """Gets the service_ep_group of this UpdateVirtualInterface. - 用于公网专线,用户访问公网服务地址列表 + 用于公网专线,用户访问公网服务地址列表。[(预留字段,暂不支持)](tag:dt) :return: The service_ep_group of this UpdateVirtualInterface. :rtype: list[str] @@ -193,7 +193,7 @@ def service_ep_group(self): def service_ep_group(self, service_ep_group): """Sets the service_ep_group of this UpdateVirtualInterface. - 用于公网专线,用户访问公网服务地址列表 + 用于公网专线,用户访问公网服务地址列表。[(预留字段,暂不支持)](tag:dt) :param service_ep_group: The service_ep_group of this UpdateVirtualInterface. :type service_ep_group: list[str] @@ -204,7 +204,7 @@ def service_ep_group(self, service_ep_group): def enable_bfd(self): """Gets the enable_bfd of this UpdateVirtualInterface. - 是否使能bfd功能:true或false + 是否使能bfd功能:true或false。[(预留字段,暂不支持)](tag:dt) :return: The enable_bfd of this UpdateVirtualInterface. :rtype: bool @@ -215,7 +215,7 @@ def enable_bfd(self): def enable_bfd(self, enable_bfd): """Sets the enable_bfd of this UpdateVirtualInterface. - 是否使能bfd功能:true或false + 是否使能bfd功能:true或false。[(预留字段,暂不支持)](tag:dt) :param enable_bfd: The enable_bfd of this UpdateVirtualInterface. :type enable_bfd: bool @@ -226,7 +226,7 @@ def enable_bfd(self, enable_bfd): def enable_nqa(self): """Gets the enable_nqa of this UpdateVirtualInterface. - 是否使能nqa功能:true或false + 是否使能nqa功能:true或false。[(预留字段,暂不支持)](tag:dt) :return: The enable_nqa of this UpdateVirtualInterface. :rtype: bool @@ -237,7 +237,7 @@ def enable_nqa(self): def enable_nqa(self, enable_nqa): """Sets the enable_nqa of this UpdateVirtualInterface. - 是否使能nqa功能:true或false + 是否使能nqa功能:true或false。[(预留字段,暂不支持)](tag:dt) :param enable_nqa: The enable_nqa of this UpdateVirtualInterface. :type enable_nqa: bool diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/vif_peer.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/vif_peer.py index 6efece0dab..80f17791c8 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/vif_peer.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/vif_peer.py @@ -101,7 +101,7 @@ def __init__(self, id=None, tenant_id=None, name=None, description=None, address :type status: str :param vif_id: vif对等体对应的虚拟接口ID :type vif_id: str - :param receive_route_num: 路由模式为bgp:receive_route_num值为接收搭配BGP的路由数目; 路由模式为static:该字段无意义,值为-1; 注:若早期接入华为云的部分用户无法获取该字段信息,如需要请联系客服迁移专线端口。 + :param receive_route_num: 路由模式为bgp:receive_route_num值为接收搭配BGP的路由数目; 路由模式为static:该字段无意义,值为-1; 注:若早期接入云的部分用户无法获取该字段信息,如需要请联系客服迁移专线端口。 :type receive_route_num: int :param enable_nqa: 是否使能nqa功能:true或false :type enable_nqa: bool @@ -552,7 +552,7 @@ def vif_id(self, vif_id): def receive_route_num(self): """Gets the receive_route_num of this VifPeer. - 路由模式为bgp:receive_route_num值为接收搭配BGP的路由数目; 路由模式为static:该字段无意义,值为-1; 注:若早期接入华为云的部分用户无法获取该字段信息,如需要请联系客服迁移专线端口。 + 路由模式为bgp:receive_route_num值为接收搭配BGP的路由数目; 路由模式为static:该字段无意义,值为-1; 注:若早期接入云的部分用户无法获取该字段信息,如需要请联系客服迁移专线端口。 :return: The receive_route_num of this VifPeer. :rtype: int @@ -563,7 +563,7 @@ def receive_route_num(self): def receive_route_num(self, receive_route_num): """Sets the receive_route_num of this VifPeer. - 路由模式为bgp:receive_route_num值为接收搭配BGP的路由数目; 路由模式为static:该字段无意义,值为-1; 注:若早期接入华为云的部分用户无法获取该字段信息,如需要请联系客服迁移专线端口。 + 路由模式为bgp:receive_route_num值为接收搭配BGP的路由数目; 路由模式为static:该字段无意义,值为-1; 注:若早期接入云的部分用户无法获取该字段信息,如需要请联系客服迁移专线端口。 :param receive_route_num: The receive_route_num of this VifPeer. :type receive_route_num: int diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/virtual_gateway.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/virtual_gateway.py index 99d9ec4eb9..cc6b3565aa 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/virtual_gateway.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/virtual_gateway.py @@ -19,6 +19,7 @@ class VirtualGateway: openapi_types = { 'id': 'str', 'vpc_id': 'str', + 'enterprise_router_id': 'str', 'tenant_id': 'str', 'name': 'str', 'description': 'str', @@ -38,6 +39,7 @@ class VirtualGateway: attribute_map = { 'id': 'id', 'vpc_id': 'vpc_id', + 'enterprise_router_id': 'enterprise_router_id', 'tenant_id': 'tenant_id', 'name': 'name', 'description': 'description', @@ -54,7 +56,7 @@ class VirtualGateway: 'tags': 'tags' } - def __init__(self, id=None, vpc_id=None, tenant_id=None, name=None, description=None, type=None, local_ep_group=None, local_ep_group_ipv6=None, admin_state_up=None, status=None, bgp_asn=None, enterprise_project_id=None, device_id=None, redundant_device_id=None, public_border_group=None, tags=None): + def __init__(self, id=None, vpc_id=None, enterprise_router_id=None, tenant_id=None, name=None, description=None, type=None, local_ep_group=None, local_ep_group_ipv6=None, admin_state_up=None, status=None, bgp_asn=None, enterprise_project_id=None, device_id=None, redundant_device_id=None, public_border_group=None, tags=None): """VirtualGateway The model defined in huaweicloud sdk @@ -63,6 +65,8 @@ def __init__(self, id=None, vpc_id=None, tenant_id=None, name=None, description= :type id: str :param vpc_id: 虚拟网关接入的VPC的ID :type vpc_id: str + :param enterprise_router_id: 虚拟网关接入的ER的ID + :type enterprise_router_id: str :param tenant_id: 实例所属项目ID。 :type tenant_id: str :param name: 虚拟网关的名字 @@ -97,6 +101,7 @@ def __init__(self, id=None, vpc_id=None, tenant_id=None, name=None, description= self._id = None self._vpc_id = None + self._enterprise_router_id = None self._tenant_id = None self._name = None self._description = None @@ -117,6 +122,8 @@ def __init__(self, id=None, vpc_id=None, tenant_id=None, name=None, description= self.id = id if vpc_id is not None: self.vpc_id = vpc_id + if enterprise_router_id is not None: + self.enterprise_router_id = enterprise_router_id if tenant_id is not None: self.tenant_id = tenant_id if name is not None: @@ -190,6 +197,28 @@ def vpc_id(self, vpc_id): """ self._vpc_id = vpc_id + @property + def enterprise_router_id(self): + """Gets the enterprise_router_id of this VirtualGateway. + + 虚拟网关接入的ER的ID + + :return: The enterprise_router_id of this VirtualGateway. + :rtype: str + """ + return self._enterprise_router_id + + @enterprise_router_id.setter + def enterprise_router_id(self, enterprise_router_id): + """Sets the enterprise_router_id of this VirtualGateway. + + 虚拟网关接入的ER的ID + + :param enterprise_router_id: The enterprise_router_id of this VirtualGateway. + :type enterprise_router_id: str + """ + self._enterprise_router_id = enterprise_router_id + @property def tenant_id(self): """Gets the tenant_id of this VirtualGateway. diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/virtual_interface.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/virtual_interface.py index 4e792a0dc9..7c709044c4 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/virtual_interface.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/virtual_interface.py @@ -22,6 +22,7 @@ class VirtualInterface: 'admin_state_up': 'bool', 'bandwidth': 'int', 'create_time': 'datetime', + 'update_time': 'datetime', 'description': 'str', 'direct_connect_id': 'str', 'service_type': 'str', @@ -61,6 +62,7 @@ class VirtualInterface: 'admin_state_up': 'admin_state_up', 'bandwidth': 'bandwidth', 'create_time': 'create_time', + 'update_time': 'update_time', 'description': 'description', 'direct_connect_id': 'direct_connect_id', 'service_type': 'service_type', @@ -94,7 +96,7 @@ class VirtualInterface: 'extend_attribute': 'extend_attribute' } - def __init__(self, id=None, name=None, admin_state_up=None, bandwidth=None, create_time=None, description=None, direct_connect_id=None, service_type=None, status=None, tenant_id=None, type=None, vgw_id=None, vlan=None, route_limit=None, enable_nqa=None, enable_bfd=None, lag_id=None, device_id=None, enterprise_project_id=None, tags=None, local_gateway_v4_ip=None, remote_gateway_v4_ip=None, ies_id=None, reason=None, rate_limit=None, address_family=None, local_gateway_v6_ip=None, remote_gateway_v6_ip=None, lgw_id=None, gateway_id=None, remote_ep_group=None, service_ep_group=None, bgp_route_limit=None, priority=None, vif_peers=None, extend_attribute=None): + def __init__(self, id=None, name=None, admin_state_up=None, bandwidth=None, create_time=None, update_time=None, description=None, direct_connect_id=None, service_type=None, status=None, tenant_id=None, type=None, vgw_id=None, vlan=None, route_limit=None, enable_nqa=None, enable_bfd=None, lag_id=None, device_id=None, enterprise_project_id=None, tags=None, local_gateway_v4_ip=None, remote_gateway_v4_ip=None, ies_id=None, reason=None, rate_limit=None, address_family=None, local_gateway_v6_ip=None, remote_gateway_v6_ip=None, lgw_id=None, gateway_id=None, remote_ep_group=None, service_ep_group=None, bgp_route_limit=None, priority=None, vif_peers=None, extend_attribute=None): """VirtualInterface The model defined in huaweicloud sdk @@ -107,8 +109,10 @@ def __init__(self, id=None, name=None, admin_state_up=None, bandwidth=None, crea :type admin_state_up: bool :param bandwidth: 虚拟接口接入带宽 :type bandwidth: int - :param create_time: 虚拟接口创建时间 + :param create_time: 虚拟接口创建时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ :type create_time: datetime + :param update_time: 虚拟接口修改时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ + :type update_time: datetime :param description: 虚拟接口的描述 :type description: str :param direct_connect_id: 物理专线的ID @@ -129,7 +133,7 @@ def __init__(self, id=None, name=None, admin_state_up=None, bandwidth=None, crea :type route_limit: int :param enable_nqa: 是否使能nqa功能:true或false :type enable_nqa: bool - :param enable_bfd: 是否使能nqa功能:true或false + :param enable_bfd: 是否使能bfd功能:true或false :type enable_bfd: bool :param lag_id: VIF关联的链路聚合组ID :type lag_id: str @@ -143,7 +147,7 @@ def __init__(self, id=None, name=None, admin_state_up=None, bandwidth=None, crea :type local_gateway_v4_ip: str :param remote_gateway_v4_ip: 客户侧网关IPv4接口地址,该字段现已经移到vifpeer参数列表中,未来将会废弃。 :type remote_gateway_v4_ip: str - :param ies_id: 归属的IES站点的ID[(功能暂不支持)](tag:dt) + :param ies_id: 归属的CloudPond站点的ID[(功能暂不支持)](tag:dt) :type ies_id: str :param reason: 如果资源的状态是Error的情况下,该参数会显示相关错误信息。 :type reason: str @@ -155,7 +159,7 @@ def __init__(self, id=None, name=None, admin_state_up=None, bandwidth=None, crea :type local_gateway_v6_ip: str :param remote_gateway_v6_ip: 客户侧网关IPv6接口地址,该字段现已迁移到vifpeer参数列表中,未来将会废弃。 :type remote_gateway_v6_ip: str - :param lgw_id: 本地网关的ID,用于IES场景。[(功能暂不支持)](tag:dt) + :param lgw_id: 本地网关的ID,用于CloudPond场景。[(功能暂不支持)](tag:dt) :type lgw_id: str :param gateway_id: 虚拟接口关联的网关的ID :type gateway_id: str @@ -167,7 +171,7 @@ def __init__(self, id=None, name=None, admin_state_up=None, bandwidth=None, crea :type bgp_route_limit: int :param priority: 虚拟接口的优先级,支持两种优先级状态normal和low。 接口优先级相同时表示负载关系,接口优先级不同时表示主备关系,出云流量优先转到优先级更高的normal接口。 目前仅BGP模式接口支持。 :type priority: str - :param vif_peers: vif的Peer的相关信息 + :param vif_peers: vif的Peer的相关信息[(预留字段,暂不支持)](tag:dt) :type vif_peers: list[:class:`huaweicloudsdkdc.v3.VifPeer`] :param extend_attribute: :type extend_attribute: :class:`huaweicloudsdkdc.v3.VifExtendAttribute` @@ -180,6 +184,7 @@ def __init__(self, id=None, name=None, admin_state_up=None, bandwidth=None, crea self._admin_state_up = None self._bandwidth = None self._create_time = None + self._update_time = None self._description = None self._direct_connect_id = None self._service_type = None @@ -223,6 +228,8 @@ def __init__(self, id=None, name=None, admin_state_up=None, bandwidth=None, crea self.bandwidth = bandwidth if create_time is not None: self.create_time = create_time + if update_time is not None: + self.update_time = update_time if description is not None: self.description = description if direct_connect_id is not None: @@ -378,7 +385,7 @@ def bandwidth(self, bandwidth): def create_time(self): """Gets the create_time of this VirtualInterface. - 虚拟接口创建时间 + 虚拟接口创建时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ :return: The create_time of this VirtualInterface. :rtype: datetime @@ -389,13 +396,35 @@ def create_time(self): def create_time(self, create_time): """Sets the create_time of this VirtualInterface. - 虚拟接口创建时间 + 虚拟接口创建时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ :param create_time: The create_time of this VirtualInterface. :type create_time: datetime """ self._create_time = create_time + @property + def update_time(self): + """Gets the update_time of this VirtualInterface. + + 虚拟接口修改时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ + + :return: The update_time of this VirtualInterface. + :rtype: datetime + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this VirtualInterface. + + 虚拟接口修改时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ + + :param update_time: The update_time of this VirtualInterface. + :type update_time: datetime + """ + self._update_time = update_time + @property def description(self): """Gets the description of this VirtualInterface. @@ -620,7 +649,7 @@ def enable_nqa(self, enable_nqa): def enable_bfd(self): """Gets the enable_bfd of this VirtualInterface. - 是否使能nqa功能:true或false + 是否使能bfd功能:true或false :return: The enable_bfd of this VirtualInterface. :rtype: bool @@ -631,7 +660,7 @@ def enable_bfd(self): def enable_bfd(self, enable_bfd): """Sets the enable_bfd of this VirtualInterface. - 是否使能nqa功能:true或false + 是否使能bfd功能:true或false :param enable_bfd: The enable_bfd of this VirtualInterface. :type enable_bfd: bool @@ -774,7 +803,7 @@ def remote_gateway_v4_ip(self, remote_gateway_v4_ip): def ies_id(self): """Gets the ies_id of this VirtualInterface. - 归属的IES站点的ID[(功能暂不支持)](tag:dt) + 归属的CloudPond站点的ID[(功能暂不支持)](tag:dt) :return: The ies_id of this VirtualInterface. :rtype: str @@ -785,7 +814,7 @@ def ies_id(self): def ies_id(self, ies_id): """Sets the ies_id of this VirtualInterface. - 归属的IES站点的ID[(功能暂不支持)](tag:dt) + 归属的CloudPond站点的ID[(功能暂不支持)](tag:dt) :param ies_id: The ies_id of this VirtualInterface. :type ies_id: str @@ -906,7 +935,7 @@ def remote_gateway_v6_ip(self, remote_gateway_v6_ip): def lgw_id(self): """Gets the lgw_id of this VirtualInterface. - 本地网关的ID,用于IES场景。[(功能暂不支持)](tag:dt) + 本地网关的ID,用于CloudPond场景。[(功能暂不支持)](tag:dt) :return: The lgw_id of this VirtualInterface. :rtype: str @@ -917,7 +946,7 @@ def lgw_id(self): def lgw_id(self, lgw_id): """Sets the lgw_id of this VirtualInterface. - 本地网关的ID,用于IES场景。[(功能暂不支持)](tag:dt) + 本地网关的ID,用于CloudPond场景。[(功能暂不支持)](tag:dt) :param lgw_id: The lgw_id of this VirtualInterface. :type lgw_id: str @@ -1038,7 +1067,7 @@ def priority(self, priority): def vif_peers(self): """Gets the vif_peers of this VirtualInterface. - vif的Peer的相关信息 + vif的Peer的相关信息[(预留字段,暂不支持)](tag:dt) :return: The vif_peers of this VirtualInterface. :rtype: list[:class:`huaweicloudsdkdc.v3.VifPeer`] @@ -1049,7 +1078,7 @@ def vif_peers(self): def vif_peers(self, vif_peers): """Sets the vif_peers of this VirtualInterface. - vif的Peer的相关信息 + vif的Peer的相关信息[(预留字段,暂不支持)](tag:dt) :param vif_peers: The vif_peers of this VirtualInterface. :type vif_peers: list[:class:`huaweicloudsdkdc.v3.VifPeer`] diff --git a/huaweicloud-sdk-dc/requirements.txt b/huaweicloud-sdk-dc/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-dc/requirements.txt +++ b/huaweicloud-sdk-dc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-dc/setup.py b/huaweicloud-sdk-dc/setup.py index 0cdbddc50a..767b0bbcfc 100644 --- a/huaweicloud-sdk-dc/setup.py +++ b/huaweicloud-sdk-dc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdc" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/__init__.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/__init__.py index d1145a396f..63d2a4690f 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/__init__.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/__init__.py @@ -17,6 +17,7 @@ from huaweicloudsdkdcs.v2.model.backup_plan import BackupPlan from huaweicloudsdkdcs.v2.model.backup_policy import BackupPolicy from huaweicloudsdkdcs.v2.model.backup_record_response import BackupRecordResponse +from huaweicloudsdkdcs.v2.model.bandwidth_auto_scaling_policy import BandwidthAutoScalingPolicy from huaweicloudsdkdcs.v2.model.bandwidth_info import BandwidthInfo from huaweicloudsdkdcs.v2.model.batch_create_or_delete_tags_request import BatchCreateOrDeleteTagsRequest from huaweicloudsdkdcs.v2.model.batch_create_or_delete_tags_response import BatchCreateOrDeleteTagsResponse @@ -41,6 +42,10 @@ from huaweicloudsdkdcs.v2.model.change_master_standby_async_response import ChangeMasterStandbyAsyncResponse from huaweicloudsdkdcs.v2.model.change_master_standby_request import ChangeMasterStandbyRequest from huaweicloudsdkdcs.v2.model.change_master_standby_response import ChangeMasterStandbyResponse +from huaweicloudsdkdcs.v2.model.change_nodes_start_stop_status_body import ChangeNodesStartStopStatusBody +from huaweicloudsdkdcs.v2.model.change_nodes_start_stop_status_request import ChangeNodesStartStopStatusRequest +from huaweicloudsdkdcs.v2.model.change_nodes_start_stop_status_resp import ChangeNodesStartStopStatusResp +from huaweicloudsdkdcs.v2.model.change_nodes_start_stop_status_response import ChangeNodesStartStopStatusResponse from huaweicloudsdkdcs.v2.model.client_info import ClientInfo from huaweicloudsdkdcs.v2.model.cluster_redis_node_monitored_object import ClusterRedisNodeMonitoredObject from huaweicloudsdkdcs.v2.model.command_time_taken import CommandTimeTaken @@ -100,11 +105,16 @@ from huaweicloudsdkdcs.v2.model.delete_diagnosis_task_response import DeleteDiagnosisTaskResponse from huaweicloudsdkdcs.v2.model.delete_hotkey_scan_task_request import DeleteHotkeyScanTaskRequest from huaweicloudsdkdcs.v2.model.delete_hotkey_scan_task_response import DeleteHotkeyScanTaskResponse +from huaweicloudsdkdcs.v2.model.delete_instance_bandwidth_auto_scaling_policy_request import DeleteInstanceBandwidthAutoScalingPolicyRequest +from huaweicloudsdkdcs.v2.model.delete_instance_bandwidth_auto_scaling_policy_resp import DeleteInstanceBandwidthAutoScalingPolicyResp +from huaweicloudsdkdcs.v2.model.delete_instance_bandwidth_auto_scaling_policy_response import DeleteInstanceBandwidthAutoScalingPolicyResponse from huaweicloudsdkdcs.v2.model.delete_ip_from_domain_name_request import DeleteIpFromDomainNameRequest from huaweicloudsdkdcs.v2.model.delete_ip_from_domain_name_response import DeleteIpFromDomainNameResponse from huaweicloudsdkdcs.v2.model.delete_migrate_task_request import DeleteMigrateTaskRequest from huaweicloudsdkdcs.v2.model.delete_migration_task_request import DeleteMigrationTaskRequest from huaweicloudsdkdcs.v2.model.delete_migration_task_response import DeleteMigrationTaskResponse +from huaweicloudsdkdcs.v2.model.delete_public_ip_request import DeletePublicIpRequest +from huaweicloudsdkdcs.v2.model.delete_public_ip_response import DeletePublicIpResponse from huaweicloudsdkdcs.v2.model.delete_single_instance_request import DeleteSingleInstanceRequest from huaweicloudsdkdcs.v2.model.delete_single_instance_response import DeleteSingleInstanceResponse from huaweicloudsdkdcs.v2.model.details_body import DetailsBody @@ -134,6 +144,7 @@ from huaweicloudsdkdcs.v2.model.files import Files from huaweicloudsdkdcs.v2.model.flavor_az_object import FlavorAzObject from huaweicloudsdkdcs.v2.model.flavors_items import FlavorsItems +from huaweicloudsdkdcs.v2.model.group_bandwidth_info import GroupBandwidthInfo from huaweicloudsdkdcs.v2.model.hang_up_clients_request import HangUpClientsRequest from huaweicloudsdkdcs.v2.model.hang_up_clients_request_body import HangUpClientsRequestBody from huaweicloudsdkdcs.v2.model.hang_up_clients_response import HangUpClientsResponse @@ -263,6 +274,8 @@ from huaweicloudsdkdcs.v2.model.set_online_migration_task_response import SetOnlineMigrationTaskResponse from huaweicloudsdkdcs.v2.model.show_background_task_progress_request import ShowBackgroundTaskProgressRequest from huaweicloudsdkdcs.v2.model.show_background_task_progress_response import ShowBackgroundTaskProgressResponse +from huaweicloudsdkdcs.v2.model.show_bandwidths_request import ShowBandwidthsRequest +from huaweicloudsdkdcs.v2.model.show_bandwidths_response import ShowBandwidthsResponse from huaweicloudsdkdcs.v2.model.show_bigkey_autoscan_config_request import ShowBigkeyAutoscanConfigRequest from huaweicloudsdkdcs.v2.model.show_bigkey_autoscan_config_response import ShowBigkeyAutoscanConfigResponse from huaweicloudsdkdcs.v2.model.show_bigkey_scan_task_details_request import ShowBigkeyScanTaskDetailsRequest @@ -281,10 +294,14 @@ from huaweicloudsdkdcs.v2.model.show_hotkey_autoscan_config_response import ShowHotkeyAutoscanConfigResponse from huaweicloudsdkdcs.v2.model.show_hotkey_task_details_request import ShowHotkeyTaskDetailsRequest from huaweicloudsdkdcs.v2.model.show_hotkey_task_details_response import ShowHotkeyTaskDetailsResponse +from huaweicloudsdkdcs.v2.model.show_instance_bandwidth_auto_scaling_policy_request import ShowInstanceBandwidthAutoScalingPolicyRequest +from huaweicloudsdkdcs.v2.model.show_instance_bandwidth_auto_scaling_policy_response import ShowInstanceBandwidthAutoScalingPolicyResponse from huaweicloudsdkdcs.v2.model.show_instance_request import ShowInstanceRequest from huaweicloudsdkdcs.v2.model.show_instance_response import ShowInstanceResponse from huaweicloudsdkdcs.v2.model.show_instance_ssl_detail_request import ShowInstanceSslDetailRequest from huaweicloudsdkdcs.v2.model.show_instance_ssl_detail_response import ShowInstanceSslDetailResponse +from huaweicloudsdkdcs.v2.model.show_instance_version_request import ShowInstanceVersionRequest +from huaweicloudsdkdcs.v2.model.show_instance_version_response import ShowInstanceVersionResponse from huaweicloudsdkdcs.v2.model.show_ip_whitelist_request import ShowIpWhitelistRequest from huaweicloudsdkdcs.v2.model.show_ip_whitelist_response import ShowIpWhitelistResponse from huaweicloudsdkdcs.v2.model.show_job_info_request import ShowJobInfoRequest @@ -326,6 +343,10 @@ from huaweicloudsdkdcs.v2.model.update_acl_account_request import UpdateAclAccountRequest from huaweicloudsdkdcs.v2.model.update_acl_account_response import UpdateAclAccountResponse from huaweicloudsdkdcs.v2.model.update_auto_scan_config_request_body import UpdateAutoScanConfigRequestBody +from huaweicloudsdkdcs.v2.model.update_bandwidth_info_request import UpdateBandwidthInfoRequest +from huaweicloudsdkdcs.v2.model.update_bandwidth_request import UpdateBandwidthRequest +from huaweicloudsdkdcs.v2.model.update_bandwidth_resp import UpdateBandwidthResp +from huaweicloudsdkdcs.v2.model.update_bandwidth_response import UpdateBandwidthResponse from huaweicloudsdkdcs.v2.model.update_bigkey_autoscan_config_request import UpdateBigkeyAutoscanConfigRequest from huaweicloudsdkdcs.v2.model.update_bigkey_autoscan_config_response import UpdateBigkeyAutoscanConfigResponse from huaweicloudsdkdcs.v2.model.update_client_ip_transparent_transmission_request import UpdateClientIpTransparentTransmissionRequest @@ -338,8 +359,12 @@ from huaweicloudsdkdcs.v2.model.update_custom_template_body import UpdateCustomTemplateBody from huaweicloudsdkdcs.v2.model.update_expire_auto_scan_config_request import UpdateExpireAutoScanConfigRequest from huaweicloudsdkdcs.v2.model.update_expire_auto_scan_config_response import UpdateExpireAutoScanConfigResponse +from huaweicloudsdkdcs.v2.model.update_group_bandwidth_info_request import UpdateGroupBandwidthInfoRequest from huaweicloudsdkdcs.v2.model.update_hotkey_auto_scan_config_request import UpdateHotkeyAutoScanConfigRequest from huaweicloudsdkdcs.v2.model.update_hotkey_auto_scan_config_response import UpdateHotkeyAutoScanConfigResponse +from huaweicloudsdkdcs.v2.model.update_instance_bandwidth_auto_scaling_policy_request import UpdateInstanceBandwidthAutoScalingPolicyRequest +from huaweicloudsdkdcs.v2.model.update_instance_bandwidth_auto_scaling_policy_request_body import UpdateInstanceBandwidthAutoScalingPolicyRequestBody +from huaweicloudsdkdcs.v2.model.update_instance_bandwidth_auto_scaling_policy_response import UpdateInstanceBandwidthAutoScalingPolicyResponse from huaweicloudsdkdcs.v2.model.update_instance_bandwidth_request import UpdateInstanceBandwidthRequest from huaweicloudsdkdcs.v2.model.update_instance_bandwidth_response import UpdateInstanceBandwidthResponse from huaweicloudsdkdcs.v2.model.update_instance_config_request import UpdateInstanceConfigRequest @@ -352,11 +377,17 @@ from huaweicloudsdkdcs.v2.model.update_migration_task_response import UpdateMigrationTaskResponse from huaweicloudsdkdcs.v2.model.update_password_request import UpdatePasswordRequest from huaweicloudsdkdcs.v2.model.update_password_response import UpdatePasswordResponse +from huaweicloudsdkdcs.v2.model.update_public_ip_request import UpdatePublicIpRequest +from huaweicloudsdkdcs.v2.model.update_public_ip_request_body import UpdatePublicIpRequestBody +from huaweicloudsdkdcs.v2.model.update_public_ip_response import UpdatePublicIpResponse from huaweicloudsdkdcs.v2.model.update_ssl_switch_request_body import UpdateSSLSwitchRequestBody from huaweicloudsdkdcs.v2.model.update_slave_priority_request import UpdateSlavePriorityRequest from huaweicloudsdkdcs.v2.model.update_slave_priority_response import UpdateSlavePriorityResponse from huaweicloudsdkdcs.v2.model.update_ssl_switch_request import UpdateSslSwitchRequest from huaweicloudsdkdcs.v2.model.update_ssl_switch_response import UpdateSslSwitchResponse +from huaweicloudsdkdcs.v2.model.upgrade_instance_minor_version_request import UpgradeInstanceMinorVersionRequest +from huaweicloudsdkdcs.v2.model.upgrade_instance_minor_version_response import UpgradeInstanceMinorVersionResponse +from huaweicloudsdkdcs.v2.model.upgrade_minor_version_request_body import UpgradeMinorVersionRequestBody from huaweicloudsdkdcs.v2.model.validate_deletable_replica_request import ValidateDeletableReplicaRequest from huaweicloudsdkdcs.v2.model.validate_deletable_replica_response import ValidateDeletableReplicaResponse from huaweicloudsdkdcs.v2.model.whitelist import Whitelist diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_async_client.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_async_client.py index 1c11ceaab4..4b7bd0b322 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_async_client.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_async_client.py @@ -495,6 +495,73 @@ def _change_master_standby_async_http_info(self, request): return http_info + def change_nodes_start_stop_status_async(self, request): + """指定实例节点启停开关 + + 实例节点启停。执行节点关机操作前的24小时内,需要对实例(单机实例除外)进行数据备份。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ChangeNodesStartStopStatus + :type request: :class:`huaweicloudsdkdcs.v2.ChangeNodesStartStopStatusRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.ChangeNodesStartStopStatusResponse` + """ + http_info = self._change_nodes_start_stop_status_http_info(request) + return self._call_api(**http_info) + + def change_nodes_start_stop_status_async_invoker(self, request): + http_info = self._change_nodes_start_stop_status_http_info(request) + return AsyncInvoker(self, http_info) + + def _change_nodes_start_stop_status_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v2/{project_id}/instances/{instance_id}/nodes/status", + "request_type": request.__class__.__name__, + "response_type": "ChangeNodesStartStopStatusResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def copy_instance_async(self, request): """备份指定实例 @@ -1897,6 +1964,71 @@ def _delete_hotkey_scan_task_http_info(self, request): return http_info + def delete_instance_bandwidth_auto_scaling_policy_async(self, request): + """删除实例带宽弹性伸缩策略 + + 删除实例带宽弹性伸缩策略。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteInstanceBandwidthAutoScalingPolicy + :type request: :class:`huaweicloudsdkdcs.v2.DeleteInstanceBandwidthAutoScalingPolicyRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.DeleteInstanceBandwidthAutoScalingPolicyResponse` + """ + http_info = self._delete_instance_bandwidth_auto_scaling_policy_http_info(request) + return self._call_api(**http_info) + + def delete_instance_bandwidth_auto_scaling_policy_async_invoker(self, request): + http_info = self._delete_instance_bandwidth_auto_scaling_policy_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_instance_bandwidth_auto_scaling_policy_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v2/{project_id}/instances/{instance_id}/autoscaling-policy/bandwidth", + "request_type": request.__class__.__name__, + "response_type": "DeleteInstanceBandwidthAutoScalingPolicyResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def delete_ip_from_domain_name_async(self, request): """域名摘除IP @@ -2031,6 +2163,71 @@ def _delete_migration_task_http_info(self, request): return http_info + def delete_public_ip_async(self, request): + """关闭实例公网访问 + + 关闭实例公网访问。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeletePublicIp + :type request: :class:`huaweicloudsdkdcs.v2.DeletePublicIpRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.DeletePublicIpResponse` + """ + http_info = self._delete_public_ip_http_info(request) + return self._call_api(**http_info) + + def delete_public_ip_async_invoker(self, request): + http_info = self._delete_public_ip_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_public_ip_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v2/{project_id}/instances/{instance_id}/public-ip", + "request_type": request.__class__.__name__, + "response_type": "DeletePublicIpResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def delete_single_instance_async(self, request): """删除实例 @@ -5330,6 +5527,71 @@ def _show_background_task_progress_http_info(self, request): return http_info + def show_bandwidths_async(self, request): + """获取实例分片带宽 + + 获取实例各个分片带宽。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowBandwidths + :type request: :class:`huaweicloudsdkdcs.v2.ShowBandwidthsRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.ShowBandwidthsResponse` + """ + http_info = self._show_bandwidths_http_info(request) + return self._call_api(**http_info) + + def show_bandwidths_async_invoker(self, request): + http_info = self._show_bandwidths_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_bandwidths_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/instances/{instance_id}/bandwidths", + "request_type": request.__class__.__name__, + "response_type": "ShowBandwidthsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_bigkey_autoscan_config_async(self, request): """查询大key自动分析配置 @@ -5994,31 +6256,31 @@ def _show_instance_http_info(self, request): return http_info - def show_instance_ssl_detail_async(self, request): - """查询实例SSL信息 + def show_instance_bandwidth_auto_scaling_policy_async(self, request): + """查询实例带宽弹性伸缩策略 - 查询实例SSL信息。该接口目前仅针对Redis 6.0[基础版](tag:hws,hws_hk)版本实例。 + 查询实例带宽弹性伸缩策略。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowInstanceSslDetail - :type request: :class:`huaweicloudsdkdcs.v2.ShowInstanceSslDetailRequest` - :rtype: :class:`huaweicloudsdkdcs.v2.ShowInstanceSslDetailResponse` + :param request: Request instance for ShowInstanceBandwidthAutoScalingPolicy + :type request: :class:`huaweicloudsdkdcs.v2.ShowInstanceBandwidthAutoScalingPolicyRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.ShowInstanceBandwidthAutoScalingPolicyResponse` """ - http_info = self._show_instance_ssl_detail_http_info(request) + http_info = self._show_instance_bandwidth_auto_scaling_policy_http_info(request) return self._call_api(**http_info) - def show_instance_ssl_detail_async_invoker(self, request): - http_info = self._show_instance_ssl_detail_http_info(request) + def show_instance_bandwidth_auto_scaling_policy_async_invoker(self, request): + http_info = self._show_instance_bandwidth_auto_scaling_policy_http_info(request) return AsyncInvoker(self, http_info) - def _show_instance_ssl_detail_http_info(self, request): + def _show_instance_bandwidth_auto_scaling_policy_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v2/{project_id}/instances/{instance_id}/ssl", + "resource_path": "/v2/{project_id}/instances/{instance_id}/autoscaling-policy/bandwidth", "request_type": request.__class__.__name__, - "response_type": "ShowInstanceSslDetailResponse" + "response_type": "ShowInstanceBandwidthAutoScalingPolicyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6059,31 +6321,31 @@ def _show_instance_ssl_detail_http_info(self, request): return http_info - def show_job_info_async(self, request): - """查询租户Job执行结果 + def show_instance_ssl_detail_async(self, request): + """查询实例SSL信息 - 查询租户Job执行结果 + 查询实例SSL信息。该接口目前仅针对Redis 6.0[基础版](tag:hws,hws_hk)版本实例。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowJobInfo - :type request: :class:`huaweicloudsdkdcs.v2.ShowJobInfoRequest` - :rtype: :class:`huaweicloudsdkdcs.v2.ShowJobInfoResponse` + :param request: Request instance for ShowInstanceSslDetail + :type request: :class:`huaweicloudsdkdcs.v2.ShowInstanceSslDetailRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.ShowInstanceSslDetailResponse` """ - http_info = self._show_job_info_http_info(request) + http_info = self._show_instance_ssl_detail_http_info(request) return self._call_api(**http_info) - def show_job_info_async_invoker(self, request): - http_info = self._show_job_info_http_info(request) + def show_instance_ssl_detail_async_invoker(self, request): + http_info = self._show_instance_ssl_detail_http_info(request) return AsyncInvoker(self, http_info) - def _show_job_info_http_info(self, request): + def _show_instance_ssl_detail_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v2/{project_id}/jobs/{job_id}", + "resource_path": "/v2/{project_id}/instances/{instance_id}/ssl", "request_type": request.__class__.__name__, - "response_type": "ShowJobInfoResponse" + "response_type": "ShowInstanceSslDetailResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6093,8 +6355,8 @@ def _show_job_info_http_info(self, request): collection_formats = {} path_params = {} - if 'job_id' in local_var_params: - path_params['job_id'] = local_var_params['job_id'] + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] query_params = [] @@ -6124,8 +6386,138 @@ def _show_job_info_http_info(self, request): return http_info - def show_migration_task_async(self, request): - """查询迁移任务详情 + def show_instance_version_async(self, request): + """根据实例ID获取实例内核版本信息 + + 获取对应实例内核版本号。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowInstanceVersion + :type request: :class:`huaweicloudsdkdcs.v2.ShowInstanceVersionRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.ShowInstanceVersionResponse` + """ + http_info = self._show_instance_version_http_info(request) + return self._call_api(**http_info) + + def show_instance_version_async_invoker(self, request): + http_info = self._show_instance_version_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_instance_version_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/instances/{instance_id}/version", + "request_type": request.__class__.__name__, + "response_type": "ShowInstanceVersionResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_job_info_async(self, request): + """查询租户Job执行结果 + + 查询租户Job执行结果 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowJobInfo + :type request: :class:`huaweicloudsdkdcs.v2.ShowJobInfoRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.ShowJobInfoResponse` + """ + http_info = self._show_job_info_http_info(request) + return self._call_api(**http_info) + + def show_job_info_async_invoker(self, request): + http_info = self._show_job_info_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_job_info_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/jobs/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowJobInfoResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_migration_task_async(self, request): + """查询迁移任务详情 查询迁移任务详情。 @@ -6920,6 +7312,73 @@ def _update_acl_account_remark_http_info(self, request): return http_info + def update_bandwidth_async(self, request): + """修改实例分片带宽 + + 修改实例分片带宽。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateBandwidth + :type request: :class:`huaweicloudsdkdcs.v2.UpdateBandwidthRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.UpdateBandwidthResponse` + """ + http_info = self._update_bandwidth_http_info(request) + return self._call_api(**http_info) + + def update_bandwidth_async_invoker(self, request): + http_info = self._update_bandwidth_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_bandwidth_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v2/{project_id}/instances/{instance_id}/bandwidths", + "request_type": request.__class__.__name__, + "response_type": "UpdateBandwidthResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def update_bigkey_autoscan_config_async(self, request): """设置大key自动分析配置 @@ -7454,6 +7913,73 @@ def _update_instance_bandwidth_http_info(self, request): return http_info + def update_instance_bandwidth_auto_scaling_policy_async(self, request): + """更新实例带宽弹性伸缩策略 + + 更新实例带宽弹性伸缩策略。暂不支持实例带宽自动回缩。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateInstanceBandwidthAutoScalingPolicy + :type request: :class:`huaweicloudsdkdcs.v2.UpdateInstanceBandwidthAutoScalingPolicyRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.UpdateInstanceBandwidthAutoScalingPolicyResponse` + """ + http_info = self._update_instance_bandwidth_auto_scaling_policy_http_info(request) + return self._call_api(**http_info) + + def update_instance_bandwidth_auto_scaling_policy_async_invoker(self, request): + http_info = self._update_instance_bandwidth_auto_scaling_policy_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_instance_bandwidth_auto_scaling_policy_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v2/{project_id}/instances/{instance_id}/autoscaling-policy/bandwidth", + "request_type": request.__class__.__name__, + "response_type": "UpdateInstanceBandwidthAutoScalingPolicyResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def update_instance_config_async(self, request): """异步修改实例配置参数 @@ -7655,6 +8181,73 @@ def _update_password_http_info(self, request): return http_info + def update_public_ip_async(self, request): + """开启/修改实例公网访问 + + 开启/修改实例公网访问。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdatePublicIp + :type request: :class:`huaweicloudsdkdcs.v2.UpdatePublicIpRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.UpdatePublicIpResponse` + """ + http_info = self._update_public_ip_http_info(request) + return self._call_api(**http_info) + + def update_public_ip_async_invoker(self, request): + http_info = self._update_public_ip_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_public_ip_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/instances/{instance_id}/public-ip", + "request_type": request.__class__.__name__, + "response_type": "UpdatePublicIpResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def update_slave_priority_async(self, request): """设置备节点优先级 @@ -7793,6 +8386,73 @@ def _update_ssl_switch_http_info(self, request): return http_info + def upgrade_instance_minor_version_async(self, request): + """升级实例小版本 + + 升级实例小版本。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpgradeInstanceMinorVersion + :type request: :class:`huaweicloudsdkdcs.v2.UpgradeInstanceMinorVersionRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.UpgradeInstanceMinorVersionResponse` + """ + http_info = self._upgrade_instance_minor_version_http_info(request) + return self._call_api(**http_info) + + def upgrade_instance_minor_version_async_invoker(self, request): + http_info = self._upgrade_instance_minor_version_http_info(request) + return AsyncInvoker(self, http_info) + + def _upgrade_instance_minor_version_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/instances/{instance_id}/minor-version/upgrade", + "request_type": request.__class__.__name__, + "response_type": "UpgradeInstanceMinorVersionResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def validate_deletable_replica_async(self, request): """校验集群副本是否支持删除 diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_client.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_client.py index 507ef6c53f..c8b18d0933 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_client.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_client.py @@ -495,6 +495,73 @@ def _change_master_standby_async_http_info(cls, request): return http_info + def change_nodes_start_stop_status(self, request): + """指定实例节点启停开关 + + 实例节点启停。执行节点关机操作前的24小时内,需要对实例(单机实例除外)进行数据备份。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ChangeNodesStartStopStatus + :type request: :class:`huaweicloudsdkdcs.v2.ChangeNodesStartStopStatusRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.ChangeNodesStartStopStatusResponse` + """ + http_info = self._change_nodes_start_stop_status_http_info(request) + return self._call_api(**http_info) + + def change_nodes_start_stop_status_invoker(self, request): + http_info = self._change_nodes_start_stop_status_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _change_nodes_start_stop_status_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v2/{project_id}/instances/{instance_id}/nodes/status", + "request_type": request.__class__.__name__, + "response_type": "ChangeNodesStartStopStatusResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def copy_instance(self, request): """备份指定实例 @@ -1897,6 +1964,71 @@ def _delete_hotkey_scan_task_http_info(cls, request): return http_info + def delete_instance_bandwidth_auto_scaling_policy(self, request): + """删除实例带宽弹性伸缩策略 + + 删除实例带宽弹性伸缩策略。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteInstanceBandwidthAutoScalingPolicy + :type request: :class:`huaweicloudsdkdcs.v2.DeleteInstanceBandwidthAutoScalingPolicyRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.DeleteInstanceBandwidthAutoScalingPolicyResponse` + """ + http_info = self._delete_instance_bandwidth_auto_scaling_policy_http_info(request) + return self._call_api(**http_info) + + def delete_instance_bandwidth_auto_scaling_policy_invoker(self, request): + http_info = self._delete_instance_bandwidth_auto_scaling_policy_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_instance_bandwidth_auto_scaling_policy_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v2/{project_id}/instances/{instance_id}/autoscaling-policy/bandwidth", + "request_type": request.__class__.__name__, + "response_type": "DeleteInstanceBandwidthAutoScalingPolicyResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def delete_ip_from_domain_name(self, request): """域名摘除IP @@ -2031,6 +2163,71 @@ def _delete_migration_task_http_info(cls, request): return http_info + def delete_public_ip(self, request): + """关闭实例公网访问 + + 关闭实例公网访问。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeletePublicIp + :type request: :class:`huaweicloudsdkdcs.v2.DeletePublicIpRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.DeletePublicIpResponse` + """ + http_info = self._delete_public_ip_http_info(request) + return self._call_api(**http_info) + + def delete_public_ip_invoker(self, request): + http_info = self._delete_public_ip_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_public_ip_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v2/{project_id}/instances/{instance_id}/public-ip", + "request_type": request.__class__.__name__, + "response_type": "DeletePublicIpResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def delete_single_instance(self, request): """删除实例 @@ -5330,6 +5527,71 @@ def _show_background_task_progress_http_info(cls, request): return http_info + def show_bandwidths(self, request): + """获取实例分片带宽 + + 获取实例各个分片带宽。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowBandwidths + :type request: :class:`huaweicloudsdkdcs.v2.ShowBandwidthsRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.ShowBandwidthsResponse` + """ + http_info = self._show_bandwidths_http_info(request) + return self._call_api(**http_info) + + def show_bandwidths_invoker(self, request): + http_info = self._show_bandwidths_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_bandwidths_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/instances/{instance_id}/bandwidths", + "request_type": request.__class__.__name__, + "response_type": "ShowBandwidthsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_bigkey_autoscan_config(self, request): """查询大key自动分析配置 @@ -5994,31 +6256,31 @@ def _show_instance_http_info(cls, request): return http_info - def show_instance_ssl_detail(self, request): - """查询实例SSL信息 + def show_instance_bandwidth_auto_scaling_policy(self, request): + """查询实例带宽弹性伸缩策略 - 查询实例SSL信息。该接口目前仅针对Redis 6.0[基础版](tag:hws,hws_hk)版本实例。 + 查询实例带宽弹性伸缩策略。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowInstanceSslDetail - :type request: :class:`huaweicloudsdkdcs.v2.ShowInstanceSslDetailRequest` - :rtype: :class:`huaweicloudsdkdcs.v2.ShowInstanceSslDetailResponse` + :param request: Request instance for ShowInstanceBandwidthAutoScalingPolicy + :type request: :class:`huaweicloudsdkdcs.v2.ShowInstanceBandwidthAutoScalingPolicyRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.ShowInstanceBandwidthAutoScalingPolicyResponse` """ - http_info = self._show_instance_ssl_detail_http_info(request) + http_info = self._show_instance_bandwidth_auto_scaling_policy_http_info(request) return self._call_api(**http_info) - def show_instance_ssl_detail_invoker(self, request): - http_info = self._show_instance_ssl_detail_http_info(request) + def show_instance_bandwidth_auto_scaling_policy_invoker(self, request): + http_info = self._show_instance_bandwidth_auto_scaling_policy_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_instance_ssl_detail_http_info(cls, request): + def _show_instance_bandwidth_auto_scaling_policy_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v2/{project_id}/instances/{instance_id}/ssl", + "resource_path": "/v2/{project_id}/instances/{instance_id}/autoscaling-policy/bandwidth", "request_type": request.__class__.__name__, - "response_type": "ShowInstanceSslDetailResponse" + "response_type": "ShowInstanceBandwidthAutoScalingPolicyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6059,31 +6321,31 @@ def _show_instance_ssl_detail_http_info(cls, request): return http_info - def show_job_info(self, request): - """查询租户Job执行结果 + def show_instance_ssl_detail(self, request): + """查询实例SSL信息 - 查询租户Job执行结果 + 查询实例SSL信息。该接口目前仅针对Redis 6.0[基础版](tag:hws,hws_hk)版本实例。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowJobInfo - :type request: :class:`huaweicloudsdkdcs.v2.ShowJobInfoRequest` - :rtype: :class:`huaweicloudsdkdcs.v2.ShowJobInfoResponse` + :param request: Request instance for ShowInstanceSslDetail + :type request: :class:`huaweicloudsdkdcs.v2.ShowInstanceSslDetailRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.ShowInstanceSslDetailResponse` """ - http_info = self._show_job_info_http_info(request) + http_info = self._show_instance_ssl_detail_http_info(request) return self._call_api(**http_info) - def show_job_info_invoker(self, request): - http_info = self._show_job_info_http_info(request) + def show_instance_ssl_detail_invoker(self, request): + http_info = self._show_instance_ssl_detail_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_job_info_http_info(cls, request): + def _show_instance_ssl_detail_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v2/{project_id}/jobs/{job_id}", + "resource_path": "/v2/{project_id}/instances/{instance_id}/ssl", "request_type": request.__class__.__name__, - "response_type": "ShowJobInfoResponse" + "response_type": "ShowInstanceSslDetailResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6093,8 +6355,8 @@ def _show_job_info_http_info(cls, request): collection_formats = {} path_params = {} - if 'job_id' in local_var_params: - path_params['job_id'] = local_var_params['job_id'] + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] query_params = [] @@ -6124,8 +6386,138 @@ def _show_job_info_http_info(cls, request): return http_info - def show_migration_task(self, request): - """查询迁移任务详情 + def show_instance_version(self, request): + """根据实例ID获取实例内核版本信息 + + 获取对应实例内核版本号。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowInstanceVersion + :type request: :class:`huaweicloudsdkdcs.v2.ShowInstanceVersionRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.ShowInstanceVersionResponse` + """ + http_info = self._show_instance_version_http_info(request) + return self._call_api(**http_info) + + def show_instance_version_invoker(self, request): + http_info = self._show_instance_version_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_instance_version_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/instances/{instance_id}/version", + "request_type": request.__class__.__name__, + "response_type": "ShowInstanceVersionResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_job_info(self, request): + """查询租户Job执行结果 + + 查询租户Job执行结果 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowJobInfo + :type request: :class:`huaweicloudsdkdcs.v2.ShowJobInfoRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.ShowJobInfoResponse` + """ + http_info = self._show_job_info_http_info(request) + return self._call_api(**http_info) + + def show_job_info_invoker(self, request): + http_info = self._show_job_info_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_job_info_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/jobs/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowJobInfoResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_migration_task(self, request): + """查询迁移任务详情 查询迁移任务详情。 @@ -6920,6 +7312,73 @@ def _update_acl_account_remark_http_info(cls, request): return http_info + def update_bandwidth(self, request): + """修改实例分片带宽 + + 修改实例分片带宽。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateBandwidth + :type request: :class:`huaweicloudsdkdcs.v2.UpdateBandwidthRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.UpdateBandwidthResponse` + """ + http_info = self._update_bandwidth_http_info(request) + return self._call_api(**http_info) + + def update_bandwidth_invoker(self, request): + http_info = self._update_bandwidth_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_bandwidth_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v2/{project_id}/instances/{instance_id}/bandwidths", + "request_type": request.__class__.__name__, + "response_type": "UpdateBandwidthResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def update_bigkey_autoscan_config(self, request): """设置大key自动分析配置 @@ -7454,6 +7913,73 @@ def _update_instance_bandwidth_http_info(cls, request): return http_info + def update_instance_bandwidth_auto_scaling_policy(self, request): + """更新实例带宽弹性伸缩策略 + + 更新实例带宽弹性伸缩策略。暂不支持实例带宽自动回缩。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateInstanceBandwidthAutoScalingPolicy + :type request: :class:`huaweicloudsdkdcs.v2.UpdateInstanceBandwidthAutoScalingPolicyRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.UpdateInstanceBandwidthAutoScalingPolicyResponse` + """ + http_info = self._update_instance_bandwidth_auto_scaling_policy_http_info(request) + return self._call_api(**http_info) + + def update_instance_bandwidth_auto_scaling_policy_invoker(self, request): + http_info = self._update_instance_bandwidth_auto_scaling_policy_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_instance_bandwidth_auto_scaling_policy_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v2/{project_id}/instances/{instance_id}/autoscaling-policy/bandwidth", + "request_type": request.__class__.__name__, + "response_type": "UpdateInstanceBandwidthAutoScalingPolicyResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def update_instance_config(self, request): """异步修改实例配置参数 @@ -7655,6 +8181,73 @@ def _update_password_http_info(cls, request): return http_info + def update_public_ip(self, request): + """开启/修改实例公网访问 + + 开启/修改实例公网访问。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdatePublicIp + :type request: :class:`huaweicloudsdkdcs.v2.UpdatePublicIpRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.UpdatePublicIpResponse` + """ + http_info = self._update_public_ip_http_info(request) + return self._call_api(**http_info) + + def update_public_ip_invoker(self, request): + http_info = self._update_public_ip_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_public_ip_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/instances/{instance_id}/public-ip", + "request_type": request.__class__.__name__, + "response_type": "UpdatePublicIpResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def update_slave_priority(self, request): """设置备节点优先级 @@ -7793,6 +8386,73 @@ def _update_ssl_switch_http_info(cls, request): return http_info + def upgrade_instance_minor_version(self, request): + """升级实例小版本 + + 升级实例小版本。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpgradeInstanceMinorVersion + :type request: :class:`huaweicloudsdkdcs.v2.UpgradeInstanceMinorVersionRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.UpgradeInstanceMinorVersionResponse` + """ + http_info = self._upgrade_instance_minor_version_http_info(request) + return self._call_api(**http_info) + + def upgrade_instance_minor_version_invoker(self, request): + http_info = self._upgrade_instance_minor_version_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _upgrade_instance_minor_version_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/instances/{instance_id}/minor-version/upgrade", + "request_type": request.__class__.__name__, + "response_type": "UpgradeInstanceMinorVersionResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def validate_deletable_replica(self, request): """校验集群副本是否支持删除 diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/__init__.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/__init__.py index afffa5f10c..cb9670631b 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/__init__.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/__init__.py @@ -15,6 +15,7 @@ from huaweicloudsdkdcs.v2.model.backup_plan import BackupPlan from huaweicloudsdkdcs.v2.model.backup_policy import BackupPolicy from huaweicloudsdkdcs.v2.model.backup_record_response import BackupRecordResponse +from huaweicloudsdkdcs.v2.model.bandwidth_auto_scaling_policy import BandwidthAutoScalingPolicy from huaweicloudsdkdcs.v2.model.bandwidth_info import BandwidthInfo from huaweicloudsdkdcs.v2.model.batch_create_or_delete_tags_request import BatchCreateOrDeleteTagsRequest from huaweicloudsdkdcs.v2.model.batch_create_or_delete_tags_response import BatchCreateOrDeleteTagsResponse @@ -39,6 +40,10 @@ from huaweicloudsdkdcs.v2.model.change_master_standby_async_response import ChangeMasterStandbyAsyncResponse from huaweicloudsdkdcs.v2.model.change_master_standby_request import ChangeMasterStandbyRequest from huaweicloudsdkdcs.v2.model.change_master_standby_response import ChangeMasterStandbyResponse +from huaweicloudsdkdcs.v2.model.change_nodes_start_stop_status_body import ChangeNodesStartStopStatusBody +from huaweicloudsdkdcs.v2.model.change_nodes_start_stop_status_request import ChangeNodesStartStopStatusRequest +from huaweicloudsdkdcs.v2.model.change_nodes_start_stop_status_resp import ChangeNodesStartStopStatusResp +from huaweicloudsdkdcs.v2.model.change_nodes_start_stop_status_response import ChangeNodesStartStopStatusResponse from huaweicloudsdkdcs.v2.model.client_info import ClientInfo from huaweicloudsdkdcs.v2.model.cluster_redis_node_monitored_object import ClusterRedisNodeMonitoredObject from huaweicloudsdkdcs.v2.model.command_time_taken import CommandTimeTaken @@ -98,11 +103,16 @@ from huaweicloudsdkdcs.v2.model.delete_diagnosis_task_response import DeleteDiagnosisTaskResponse from huaweicloudsdkdcs.v2.model.delete_hotkey_scan_task_request import DeleteHotkeyScanTaskRequest from huaweicloudsdkdcs.v2.model.delete_hotkey_scan_task_response import DeleteHotkeyScanTaskResponse +from huaweicloudsdkdcs.v2.model.delete_instance_bandwidth_auto_scaling_policy_request import DeleteInstanceBandwidthAutoScalingPolicyRequest +from huaweicloudsdkdcs.v2.model.delete_instance_bandwidth_auto_scaling_policy_resp import DeleteInstanceBandwidthAutoScalingPolicyResp +from huaweicloudsdkdcs.v2.model.delete_instance_bandwidth_auto_scaling_policy_response import DeleteInstanceBandwidthAutoScalingPolicyResponse from huaweicloudsdkdcs.v2.model.delete_ip_from_domain_name_request import DeleteIpFromDomainNameRequest from huaweicloudsdkdcs.v2.model.delete_ip_from_domain_name_response import DeleteIpFromDomainNameResponse from huaweicloudsdkdcs.v2.model.delete_migrate_task_request import DeleteMigrateTaskRequest from huaweicloudsdkdcs.v2.model.delete_migration_task_request import DeleteMigrationTaskRequest from huaweicloudsdkdcs.v2.model.delete_migration_task_response import DeleteMigrationTaskResponse +from huaweicloudsdkdcs.v2.model.delete_public_ip_request import DeletePublicIpRequest +from huaweicloudsdkdcs.v2.model.delete_public_ip_response import DeletePublicIpResponse from huaweicloudsdkdcs.v2.model.delete_single_instance_request import DeleteSingleInstanceRequest from huaweicloudsdkdcs.v2.model.delete_single_instance_response import DeleteSingleInstanceResponse from huaweicloudsdkdcs.v2.model.details_body import DetailsBody @@ -132,6 +142,7 @@ from huaweicloudsdkdcs.v2.model.files import Files from huaweicloudsdkdcs.v2.model.flavor_az_object import FlavorAzObject from huaweicloudsdkdcs.v2.model.flavors_items import FlavorsItems +from huaweicloudsdkdcs.v2.model.group_bandwidth_info import GroupBandwidthInfo from huaweicloudsdkdcs.v2.model.hang_up_clients_request import HangUpClientsRequest from huaweicloudsdkdcs.v2.model.hang_up_clients_request_body import HangUpClientsRequestBody from huaweicloudsdkdcs.v2.model.hang_up_clients_response import HangUpClientsResponse @@ -261,6 +272,8 @@ from huaweicloudsdkdcs.v2.model.set_online_migration_task_response import SetOnlineMigrationTaskResponse from huaweicloudsdkdcs.v2.model.show_background_task_progress_request import ShowBackgroundTaskProgressRequest from huaweicloudsdkdcs.v2.model.show_background_task_progress_response import ShowBackgroundTaskProgressResponse +from huaweicloudsdkdcs.v2.model.show_bandwidths_request import ShowBandwidthsRequest +from huaweicloudsdkdcs.v2.model.show_bandwidths_response import ShowBandwidthsResponse from huaweicloudsdkdcs.v2.model.show_bigkey_autoscan_config_request import ShowBigkeyAutoscanConfigRequest from huaweicloudsdkdcs.v2.model.show_bigkey_autoscan_config_response import ShowBigkeyAutoscanConfigResponse from huaweicloudsdkdcs.v2.model.show_bigkey_scan_task_details_request import ShowBigkeyScanTaskDetailsRequest @@ -279,10 +292,14 @@ from huaweicloudsdkdcs.v2.model.show_hotkey_autoscan_config_response import ShowHotkeyAutoscanConfigResponse from huaweicloudsdkdcs.v2.model.show_hotkey_task_details_request import ShowHotkeyTaskDetailsRequest from huaweicloudsdkdcs.v2.model.show_hotkey_task_details_response import ShowHotkeyTaskDetailsResponse +from huaweicloudsdkdcs.v2.model.show_instance_bandwidth_auto_scaling_policy_request import ShowInstanceBandwidthAutoScalingPolicyRequest +from huaweicloudsdkdcs.v2.model.show_instance_bandwidth_auto_scaling_policy_response import ShowInstanceBandwidthAutoScalingPolicyResponse from huaweicloudsdkdcs.v2.model.show_instance_request import ShowInstanceRequest from huaweicloudsdkdcs.v2.model.show_instance_response import ShowInstanceResponse from huaweicloudsdkdcs.v2.model.show_instance_ssl_detail_request import ShowInstanceSslDetailRequest from huaweicloudsdkdcs.v2.model.show_instance_ssl_detail_response import ShowInstanceSslDetailResponse +from huaweicloudsdkdcs.v2.model.show_instance_version_request import ShowInstanceVersionRequest +from huaweicloudsdkdcs.v2.model.show_instance_version_response import ShowInstanceVersionResponse from huaweicloudsdkdcs.v2.model.show_ip_whitelist_request import ShowIpWhitelistRequest from huaweicloudsdkdcs.v2.model.show_ip_whitelist_response import ShowIpWhitelistResponse from huaweicloudsdkdcs.v2.model.show_job_info_request import ShowJobInfoRequest @@ -324,6 +341,10 @@ from huaweicloudsdkdcs.v2.model.update_acl_account_request import UpdateAclAccountRequest from huaweicloudsdkdcs.v2.model.update_acl_account_response import UpdateAclAccountResponse from huaweicloudsdkdcs.v2.model.update_auto_scan_config_request_body import UpdateAutoScanConfigRequestBody +from huaweicloudsdkdcs.v2.model.update_bandwidth_info_request import UpdateBandwidthInfoRequest +from huaweicloudsdkdcs.v2.model.update_bandwidth_request import UpdateBandwidthRequest +from huaweicloudsdkdcs.v2.model.update_bandwidth_resp import UpdateBandwidthResp +from huaweicloudsdkdcs.v2.model.update_bandwidth_response import UpdateBandwidthResponse from huaweicloudsdkdcs.v2.model.update_bigkey_autoscan_config_request import UpdateBigkeyAutoscanConfigRequest from huaweicloudsdkdcs.v2.model.update_bigkey_autoscan_config_response import UpdateBigkeyAutoscanConfigResponse from huaweicloudsdkdcs.v2.model.update_client_ip_transparent_transmission_request import UpdateClientIpTransparentTransmissionRequest @@ -336,8 +357,12 @@ from huaweicloudsdkdcs.v2.model.update_custom_template_body import UpdateCustomTemplateBody from huaweicloudsdkdcs.v2.model.update_expire_auto_scan_config_request import UpdateExpireAutoScanConfigRequest from huaweicloudsdkdcs.v2.model.update_expire_auto_scan_config_response import UpdateExpireAutoScanConfigResponse +from huaweicloudsdkdcs.v2.model.update_group_bandwidth_info_request import UpdateGroupBandwidthInfoRequest from huaweicloudsdkdcs.v2.model.update_hotkey_auto_scan_config_request import UpdateHotkeyAutoScanConfigRequest from huaweicloudsdkdcs.v2.model.update_hotkey_auto_scan_config_response import UpdateHotkeyAutoScanConfigResponse +from huaweicloudsdkdcs.v2.model.update_instance_bandwidth_auto_scaling_policy_request import UpdateInstanceBandwidthAutoScalingPolicyRequest +from huaweicloudsdkdcs.v2.model.update_instance_bandwidth_auto_scaling_policy_request_body import UpdateInstanceBandwidthAutoScalingPolicyRequestBody +from huaweicloudsdkdcs.v2.model.update_instance_bandwidth_auto_scaling_policy_response import UpdateInstanceBandwidthAutoScalingPolicyResponse from huaweicloudsdkdcs.v2.model.update_instance_bandwidth_request import UpdateInstanceBandwidthRequest from huaweicloudsdkdcs.v2.model.update_instance_bandwidth_response import UpdateInstanceBandwidthResponse from huaweicloudsdkdcs.v2.model.update_instance_config_request import UpdateInstanceConfigRequest @@ -350,11 +375,17 @@ from huaweicloudsdkdcs.v2.model.update_migration_task_response import UpdateMigrationTaskResponse from huaweicloudsdkdcs.v2.model.update_password_request import UpdatePasswordRequest from huaweicloudsdkdcs.v2.model.update_password_response import UpdatePasswordResponse +from huaweicloudsdkdcs.v2.model.update_public_ip_request import UpdatePublicIpRequest +from huaweicloudsdkdcs.v2.model.update_public_ip_request_body import UpdatePublicIpRequestBody +from huaweicloudsdkdcs.v2.model.update_public_ip_response import UpdatePublicIpResponse from huaweicloudsdkdcs.v2.model.update_ssl_switch_request_body import UpdateSSLSwitchRequestBody from huaweicloudsdkdcs.v2.model.update_slave_priority_request import UpdateSlavePriorityRequest from huaweicloudsdkdcs.v2.model.update_slave_priority_response import UpdateSlavePriorityResponse from huaweicloudsdkdcs.v2.model.update_ssl_switch_request import UpdateSslSwitchRequest from huaweicloudsdkdcs.v2.model.update_ssl_switch_response import UpdateSslSwitchResponse +from huaweicloudsdkdcs.v2.model.upgrade_instance_minor_version_request import UpgradeInstanceMinorVersionRequest +from huaweicloudsdkdcs.v2.model.upgrade_instance_minor_version_response import UpgradeInstanceMinorVersionResponse +from huaweicloudsdkdcs.v2.model.upgrade_minor_version_request_body import UpgradeMinorVersionRequestBody from huaweicloudsdkdcs.v2.model.validate_deletable_replica_request import ValidateDeletableReplicaRequest from huaweicloudsdkdcs.v2.model.validate_deletable_replica_response import ValidateDeletableReplicaResponse from huaweicloudsdkdcs.v2.model.whitelist import Whitelist diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/bandwidth_auto_scaling_policy.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/bandwidth_auto_scaling_policy.py new file mode 100644 index 0000000000..10f70c8d82 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/bandwidth_auto_scaling_policy.py @@ -0,0 +1,258 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BandwidthAutoScalingPolicy: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'window_size': 'int', + 'bandwidth_usage_upper_threshold': 'int', + 'scale_out_cooldown': 'int', + 'scale_in_enabled': 'bool', + 'bandwidth_usage_lower_threshold': 'int', + 'scale_in_cooldown': 'int' + } + + attribute_map = { + 'window_size': 'window_size', + 'bandwidth_usage_upper_threshold': 'bandwidth_usage_upper_threshold', + 'scale_out_cooldown': 'scale_out_cooldown', + 'scale_in_enabled': 'scale_in_enabled', + 'bandwidth_usage_lower_threshold': 'bandwidth_usage_lower_threshold', + 'scale_in_cooldown': 'scale_in_cooldown' + } + + def __init__(self, window_size=None, bandwidth_usage_upper_threshold=None, scale_out_cooldown=None, scale_in_enabled=None, bandwidth_usage_lower_threshold=None, scale_in_cooldown=None): + """BandwidthAutoScalingPolicy + + The model defined in huaweicloud sdk + + :param window_size: 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。 + :type window_size: int + :param bandwidth_usage_upper_threshold: 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。 + :type bandwidth_usage_upper_threshold: int + :param scale_out_cooldown: 带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。 + :type scale_out_cooldown: int + :param scale_in_enabled: 是否启用带宽自动回缩。默认值:false。该参数暂未启用。 + :type scale_in_enabled: bool + :param bandwidth_usage_lower_threshold: 触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。 + :type bandwidth_usage_lower_threshold: int + :param scale_in_cooldown: 带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。 + :type scale_in_cooldown: int + """ + + + + self._window_size = None + self._bandwidth_usage_upper_threshold = None + self._scale_out_cooldown = None + self._scale_in_enabled = None + self._bandwidth_usage_lower_threshold = None + self._scale_in_cooldown = None + self.discriminator = None + + self.window_size = window_size + self.bandwidth_usage_upper_threshold = bandwidth_usage_upper_threshold + if scale_out_cooldown is not None: + self.scale_out_cooldown = scale_out_cooldown + if scale_in_enabled is not None: + self.scale_in_enabled = scale_in_enabled + if bandwidth_usage_lower_threshold is not None: + self.bandwidth_usage_lower_threshold = bandwidth_usage_lower_threshold + if scale_in_cooldown is not None: + self.scale_in_cooldown = scale_in_cooldown + + @property + def window_size(self): + """Gets the window_size of this BandwidthAutoScalingPolicy. + + 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。 + + :return: The window_size of this BandwidthAutoScalingPolicy. + :rtype: int + """ + return self._window_size + + @window_size.setter + def window_size(self, window_size): + """Sets the window_size of this BandwidthAutoScalingPolicy. + + 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。 + + :param window_size: The window_size of this BandwidthAutoScalingPolicy. + :type window_size: int + """ + self._window_size = window_size + + @property + def bandwidth_usage_upper_threshold(self): + """Gets the bandwidth_usage_upper_threshold of this BandwidthAutoScalingPolicy. + + 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。 + + :return: The bandwidth_usage_upper_threshold of this BandwidthAutoScalingPolicy. + :rtype: int + """ + return self._bandwidth_usage_upper_threshold + + @bandwidth_usage_upper_threshold.setter + def bandwidth_usage_upper_threshold(self, bandwidth_usage_upper_threshold): + """Sets the bandwidth_usage_upper_threshold of this BandwidthAutoScalingPolicy. + + 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。 + + :param bandwidth_usage_upper_threshold: The bandwidth_usage_upper_threshold of this BandwidthAutoScalingPolicy. + :type bandwidth_usage_upper_threshold: int + """ + self._bandwidth_usage_upper_threshold = bandwidth_usage_upper_threshold + + @property + def scale_out_cooldown(self): + """Gets the scale_out_cooldown of this BandwidthAutoScalingPolicy. + + 带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。 + + :return: The scale_out_cooldown of this BandwidthAutoScalingPolicy. + :rtype: int + """ + return self._scale_out_cooldown + + @scale_out_cooldown.setter + def scale_out_cooldown(self, scale_out_cooldown): + """Sets the scale_out_cooldown of this BandwidthAutoScalingPolicy. + + 带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。 + + :param scale_out_cooldown: The scale_out_cooldown of this BandwidthAutoScalingPolicy. + :type scale_out_cooldown: int + """ + self._scale_out_cooldown = scale_out_cooldown + + @property + def scale_in_enabled(self): + """Gets the scale_in_enabled of this BandwidthAutoScalingPolicy. + + 是否启用带宽自动回缩。默认值:false。该参数暂未启用。 + + :return: The scale_in_enabled of this BandwidthAutoScalingPolicy. + :rtype: bool + """ + return self._scale_in_enabled + + @scale_in_enabled.setter + def scale_in_enabled(self, scale_in_enabled): + """Sets the scale_in_enabled of this BandwidthAutoScalingPolicy. + + 是否启用带宽自动回缩。默认值:false。该参数暂未启用。 + + :param scale_in_enabled: The scale_in_enabled of this BandwidthAutoScalingPolicy. + :type scale_in_enabled: bool + """ + self._scale_in_enabled = scale_in_enabled + + @property + def bandwidth_usage_lower_threshold(self): + """Gets the bandwidth_usage_lower_threshold of this BandwidthAutoScalingPolicy. + + 触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。 + + :return: The bandwidth_usage_lower_threshold of this BandwidthAutoScalingPolicy. + :rtype: int + """ + return self._bandwidth_usage_lower_threshold + + @bandwidth_usage_lower_threshold.setter + def bandwidth_usage_lower_threshold(self, bandwidth_usage_lower_threshold): + """Sets the bandwidth_usage_lower_threshold of this BandwidthAutoScalingPolicy. + + 触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。 + + :param bandwidth_usage_lower_threshold: The bandwidth_usage_lower_threshold of this BandwidthAutoScalingPolicy. + :type bandwidth_usage_lower_threshold: int + """ + self._bandwidth_usage_lower_threshold = bandwidth_usage_lower_threshold + + @property + def scale_in_cooldown(self): + """Gets the scale_in_cooldown of this BandwidthAutoScalingPolicy. + + 带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。 + + :return: The scale_in_cooldown of this BandwidthAutoScalingPolicy. + :rtype: int + """ + return self._scale_in_cooldown + + @scale_in_cooldown.setter + def scale_in_cooldown(self, scale_in_cooldown): + """Sets the scale_in_cooldown of this BandwidthAutoScalingPolicy. + + 带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。 + + :param scale_in_cooldown: The scale_in_cooldown of this BandwidthAutoScalingPolicy. + :type scale_in_cooldown: int + """ + self._scale_in_cooldown = scale_in_cooldown + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BandwidthAutoScalingPolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_body.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_body.py new file mode 100644 index 0000000000..e93c2e53d1 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_body.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChangeNodesStartStopStatusBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'node_ids': 'list[str]', + 'action': 'str' + } + + attribute_map = { + 'node_ids': 'node_ids', + 'action': 'action' + } + + def __init__(self, node_ids=None, action=None): + """ChangeNodesStartStopStatusBody + + The model defined in huaweicloud sdk + + :param node_ids: 实例需要启停的节点ID列表。未配置该参数时,默认启停实例全部节点。 + :type node_ids: list[str] + :param action: 对实例节点的操作: start:开启节点 stop:关闭节点 + :type action: str + """ + + + + self._node_ids = None + self._action = None + self.discriminator = None + + if node_ids is not None: + self.node_ids = node_ids + if action is not None: + self.action = action + + @property + def node_ids(self): + """Gets the node_ids of this ChangeNodesStartStopStatusBody. + + 实例需要启停的节点ID列表。未配置该参数时,默认启停实例全部节点。 + + :return: The node_ids of this ChangeNodesStartStopStatusBody. + :rtype: list[str] + """ + return self._node_ids + + @node_ids.setter + def node_ids(self, node_ids): + """Sets the node_ids of this ChangeNodesStartStopStatusBody. + + 实例需要启停的节点ID列表。未配置该参数时,默认启停实例全部节点。 + + :param node_ids: The node_ids of this ChangeNodesStartStopStatusBody. + :type node_ids: list[str] + """ + self._node_ids = node_ids + + @property + def action(self): + """Gets the action of this ChangeNodesStartStopStatusBody. + + 对实例节点的操作: start:开启节点 stop:关闭节点 + + :return: The action of this ChangeNodesStartStopStatusBody. + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this ChangeNodesStartStopStatusBody. + + 对实例节点的操作: start:开启节点 stop:关闭节点 + + :param action: The action of this ChangeNodesStartStopStatusBody. + :type action: str + """ + self._action = action + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ChangeNodesStartStopStatusBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_request.py new file mode 100644 index 0000000000..876ae33e20 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChangeNodesStartStopStatusRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'body': 'ChangeNodesStartStopStatusBody' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """ChangeNodesStartStopStatusRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID。 + :type instance_id: str + :param body: Body of the ChangeNodesStartStopStatusRequest + :type body: :class:`huaweicloudsdkdcs.v2.ChangeNodesStartStopStatusBody` + """ + + + + self._instance_id = None + self._body = None + self.discriminator = None + + self.instance_id = instance_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this ChangeNodesStartStopStatusRequest. + + 实例ID。 + + :return: The instance_id of this ChangeNodesStartStopStatusRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ChangeNodesStartStopStatusRequest. + + 实例ID。 + + :param instance_id: The instance_id of this ChangeNodesStartStopStatusRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this ChangeNodesStartStopStatusRequest. + + :return: The body of this ChangeNodesStartStopStatusRequest. + :rtype: :class:`huaweicloudsdkdcs.v2.ChangeNodesStartStopStatusBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ChangeNodesStartStopStatusRequest. + + :param body: The body of this ChangeNodesStartStopStatusRequest. + :type body: :class:`huaweicloudsdkdcs.v2.ChangeNodesStartStopStatusBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ChangeNodesStartStopStatusRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_resp.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_resp.py new file mode 100644 index 0000000000..1bfd02c3a6 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_resp.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChangeNodesStartStopStatusResp: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """ChangeNodesStartStopStatusResp + + The model defined in huaweicloud sdk + + """ + + + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ChangeNodesStartStopStatusResp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_response.py new file mode 100644 index 0000000000..b1dbc97779 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChangeNodesStartStopStatusResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'str' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """ChangeNodesStartStopStatusResponse + + The model defined in huaweicloud sdk + + :param body: + :type body: str + """ + + super(ChangeNodesStartStopStatusResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this ChangeNodesStartStopStatusResponse. + + :return: The body of this ChangeNodesStartStopStatusResponse. + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ChangeNodesStartStopStatusResponse. + + :param body: The body of this ChangeNodesStartStopStatusResponse. + :type body: str + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ChangeNodesStartStopStatusResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_request.py new file mode 100644 index 0000000000..91468eccf4 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteInstanceBandwidthAutoScalingPolicyRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """DeleteInstanceBandwidthAutoScalingPolicyRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID。 + :type instance_id: str + """ + + + + self._instance_id = None + self.discriminator = None + + self.instance_id = instance_id + + @property + def instance_id(self): + """Gets the instance_id of this DeleteInstanceBandwidthAutoScalingPolicyRequest. + + 实例ID。 + + :return: The instance_id of this DeleteInstanceBandwidthAutoScalingPolicyRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this DeleteInstanceBandwidthAutoScalingPolicyRequest. + + 实例ID。 + + :param instance_id: The instance_id of this DeleteInstanceBandwidthAutoScalingPolicyRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteInstanceBandwidthAutoScalingPolicyRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_resp.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_resp.py new file mode 100644 index 0000000000..487038ab78 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_resp.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteInstanceBandwidthAutoScalingPolicyResp: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """DeleteInstanceBandwidthAutoScalingPolicyResp + + The model defined in huaweicloud sdk + + """ + + + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteInstanceBandwidthAutoScalingPolicyResp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_response.py new file mode 100644 index 0000000000..1fdd372f65 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteInstanceBandwidthAutoScalingPolicyResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'str' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """DeleteInstanceBandwidthAutoScalingPolicyResponse + + The model defined in huaweicloud sdk + + :param body: + :type body: str + """ + + super(DeleteInstanceBandwidthAutoScalingPolicyResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this DeleteInstanceBandwidthAutoScalingPolicyResponse. + + :return: The body of this DeleteInstanceBandwidthAutoScalingPolicyResponse. + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteInstanceBandwidthAutoScalingPolicyResponse. + + :param body: The body of this DeleteInstanceBandwidthAutoScalingPolicyResponse. + :type body: str + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteInstanceBandwidthAutoScalingPolicyResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/delete_public_ip_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/delete_public_ip_request.py new file mode 100644 index 0000000000..44d165c656 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/delete_public_ip_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeletePublicIpRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """DeletePublicIpRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID。 + :type instance_id: str + """ + + + + self._instance_id = None + self.discriminator = None + + self.instance_id = instance_id + + @property + def instance_id(self): + """Gets the instance_id of this DeletePublicIpRequest. + + 实例ID。 + + :return: The instance_id of this DeletePublicIpRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this DeletePublicIpRequest. + + 实例ID。 + + :param instance_id: The instance_id of this DeletePublicIpRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeletePublicIpRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/delete_public_ip_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/delete_public_ip_response.py new file mode 100644 index 0000000000..a9313c7522 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/delete_public_ip_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeletePublicIpResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'job_id': 'str' + } + + attribute_map = { + 'job_id': 'job_id' + } + + def __init__(self, job_id=None): + """DeletePublicIpResponse + + The model defined in huaweicloud sdk + + :param job_id: 请求提交任务ID。 + :type job_id: str + """ + + super(DeletePublicIpResponse, self).__init__() + + self._job_id = None + self.discriminator = None + + if job_id is not None: + self.job_id = job_id + + @property + def job_id(self): + """Gets the job_id of this DeletePublicIpResponse. + + 请求提交任务ID。 + + :return: The job_id of this DeletePublicIpResponse. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this DeletePublicIpResponse. + + 请求提交任务ID。 + + :param job_id: The job_id of this DeletePublicIpResponse. + :type job_id: str + """ + self._job_id = job_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeletePublicIpResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/group_bandwidth_info.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/group_bandwidth_info.py new file mode 100644 index 0000000000..41e08597fd --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/group_bandwidth_info.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class GroupBandwidthInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'group_id': 'str', + 'updated_at': 'str', + 'bandwidth': 'int', + 'max_bandwidth': 'int', + 'assured_bandwidth': 'int' + } + + attribute_map = { + 'group_id': 'group_id', + 'updated_at': 'updated_at', + 'bandwidth': 'bandwidth', + 'max_bandwidth': 'max_bandwidth', + 'assured_bandwidth': 'assured_bandwidth' + } + + def __init__(self, group_id=None, updated_at=None, bandwidth=None, max_bandwidth=None, assured_bandwidth=None): + """GroupBandwidthInfo + + The model defined in huaweicloud sdk + + :param group_id: 分片ID。 + :type group_id: str + :param updated_at: 更新时间,UTC时间。 + :type updated_at: str + :param bandwidth: 当前带宽(Mbit/s)。 + :type bandwidth: int + :param max_bandwidth: 最大带宽(Mbit/s)。 + :type max_bandwidth: int + :param assured_bandwidth: 基准带宽(Mbit/s)。 + :type assured_bandwidth: int + """ + + + + self._group_id = None + self._updated_at = None + self._bandwidth = None + self._max_bandwidth = None + self._assured_bandwidth = None + self.discriminator = None + + if group_id is not None: + self.group_id = group_id + if updated_at is not None: + self.updated_at = updated_at + if bandwidth is not None: + self.bandwidth = bandwidth + if max_bandwidth is not None: + self.max_bandwidth = max_bandwidth + if assured_bandwidth is not None: + self.assured_bandwidth = assured_bandwidth + + @property + def group_id(self): + """Gets the group_id of this GroupBandwidthInfo. + + 分片ID。 + + :return: The group_id of this GroupBandwidthInfo. + :rtype: str + """ + return self._group_id + + @group_id.setter + def group_id(self, group_id): + """Sets the group_id of this GroupBandwidthInfo. + + 分片ID。 + + :param group_id: The group_id of this GroupBandwidthInfo. + :type group_id: str + """ + self._group_id = group_id + + @property + def updated_at(self): + """Gets the updated_at of this GroupBandwidthInfo. + + 更新时间,UTC时间。 + + :return: The updated_at of this GroupBandwidthInfo. + :rtype: str + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this GroupBandwidthInfo. + + 更新时间,UTC时间。 + + :param updated_at: The updated_at of this GroupBandwidthInfo. + :type updated_at: str + """ + self._updated_at = updated_at + + @property + def bandwidth(self): + """Gets the bandwidth of this GroupBandwidthInfo. + + 当前带宽(Mbit/s)。 + + :return: The bandwidth of this GroupBandwidthInfo. + :rtype: int + """ + return self._bandwidth + + @bandwidth.setter + def bandwidth(self, bandwidth): + """Sets the bandwidth of this GroupBandwidthInfo. + + 当前带宽(Mbit/s)。 + + :param bandwidth: The bandwidth of this GroupBandwidthInfo. + :type bandwidth: int + """ + self._bandwidth = bandwidth + + @property + def max_bandwidth(self): + """Gets the max_bandwidth of this GroupBandwidthInfo. + + 最大带宽(Mbit/s)。 + + :return: The max_bandwidth of this GroupBandwidthInfo. + :rtype: int + """ + return self._max_bandwidth + + @max_bandwidth.setter + def max_bandwidth(self, max_bandwidth): + """Sets the max_bandwidth of this GroupBandwidthInfo. + + 最大带宽(Mbit/s)。 + + :param max_bandwidth: The max_bandwidth of this GroupBandwidthInfo. + :type max_bandwidth: int + """ + self._max_bandwidth = max_bandwidth + + @property + def assured_bandwidth(self): + """Gets the assured_bandwidth of this GroupBandwidthInfo. + + 基准带宽(Mbit/s)。 + + :return: The assured_bandwidth of this GroupBandwidthInfo. + :rtype: int + """ + return self._assured_bandwidth + + @assured_bandwidth.setter + def assured_bandwidth(self, assured_bandwidth): + """Sets the assured_bandwidth of this GroupBandwidthInfo. + + 基准带宽(Mbit/s)。 + + :param assured_bandwidth: The assured_bandwidth of this GroupBandwidthInfo. + :type assured_bandwidth: int + """ + self._assured_bandwidth = assured_bandwidth + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GroupBandwidthInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_bandwidths_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_bandwidths_request.py new file mode 100644 index 0000000000..7022db24e1 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_bandwidths_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowBandwidthsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """ShowBandwidthsRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID。 + :type instance_id: str + """ + + + + self._instance_id = None + self.discriminator = None + + self.instance_id = instance_id + + @property + def instance_id(self): + """Gets the instance_id of this ShowBandwidthsRequest. + + 实例ID。 + + :return: The instance_id of this ShowBandwidthsRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowBandwidthsRequest. + + 实例ID。 + + :param instance_id: The instance_id of this ShowBandwidthsRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowBandwidthsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_bandwidths_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_bandwidths_response.py new file mode 100644 index 0000000000..16ca898b3b --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_bandwidths_response.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowBandwidthsResponse(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 = { + 'bandwidth': 'int', + 'max_bandwidth': 'int', + 'allow_modify': 'bool', + 'group_bandwidths': 'list[GroupBandwidthInfo]' + } + + attribute_map = { + 'bandwidth': 'bandwidth', + 'max_bandwidth': 'max_bandwidth', + 'allow_modify': 'allow_modify', + 'group_bandwidths': 'group_bandwidths' + } + + def __init__(self, bandwidth=None, max_bandwidth=None, allow_modify=None, group_bandwidths=None): + """ShowBandwidthsResponse + + The model defined in huaweicloud sdk + + :param bandwidth: 实例当前带宽(Mbit/s)。 + :type bandwidth: int + :param max_bandwidth: 实例最大带宽(Mbit/s)。 + :type max_bandwidth: int + :param allow_modify: 是否支持调带宽。 + :type allow_modify: bool + :param group_bandwidths: 分片带宽列表。 + :type group_bandwidths: list[:class:`huaweicloudsdkdcs.v2.GroupBandwidthInfo`] + """ + + super(ShowBandwidthsResponse, self).__init__() + + self._bandwidth = None + self._max_bandwidth = None + self._allow_modify = None + self._group_bandwidths = None + self.discriminator = None + + if bandwidth is not None: + self.bandwidth = bandwidth + if max_bandwidth is not None: + self.max_bandwidth = max_bandwidth + if allow_modify is not None: + self.allow_modify = allow_modify + if group_bandwidths is not None: + self.group_bandwidths = group_bandwidths + + @property + def bandwidth(self): + """Gets the bandwidth of this ShowBandwidthsResponse. + + 实例当前带宽(Mbit/s)。 + + :return: The bandwidth of this ShowBandwidthsResponse. + :rtype: int + """ + return self._bandwidth + + @bandwidth.setter + def bandwidth(self, bandwidth): + """Sets the bandwidth of this ShowBandwidthsResponse. + + 实例当前带宽(Mbit/s)。 + + :param bandwidth: The bandwidth of this ShowBandwidthsResponse. + :type bandwidth: int + """ + self._bandwidth = bandwidth + + @property + def max_bandwidth(self): + """Gets the max_bandwidth of this ShowBandwidthsResponse. + + 实例最大带宽(Mbit/s)。 + + :return: The max_bandwidth of this ShowBandwidthsResponse. + :rtype: int + """ + return self._max_bandwidth + + @max_bandwidth.setter + def max_bandwidth(self, max_bandwidth): + """Sets the max_bandwidth of this ShowBandwidthsResponse. + + 实例最大带宽(Mbit/s)。 + + :param max_bandwidth: The max_bandwidth of this ShowBandwidthsResponse. + :type max_bandwidth: int + """ + self._max_bandwidth = max_bandwidth + + @property + def allow_modify(self): + """Gets the allow_modify of this ShowBandwidthsResponse. + + 是否支持调带宽。 + + :return: The allow_modify of this ShowBandwidthsResponse. + :rtype: bool + """ + return self._allow_modify + + @allow_modify.setter + def allow_modify(self, allow_modify): + """Sets the allow_modify of this ShowBandwidthsResponse. + + 是否支持调带宽。 + + :param allow_modify: The allow_modify of this ShowBandwidthsResponse. + :type allow_modify: bool + """ + self._allow_modify = allow_modify + + @property + def group_bandwidths(self): + """Gets the group_bandwidths of this ShowBandwidthsResponse. + + 分片带宽列表。 + + :return: The group_bandwidths of this ShowBandwidthsResponse. + :rtype: list[:class:`huaweicloudsdkdcs.v2.GroupBandwidthInfo`] + """ + return self._group_bandwidths + + @group_bandwidths.setter + def group_bandwidths(self, group_bandwidths): + """Sets the group_bandwidths of this ShowBandwidthsResponse. + + 分片带宽列表。 + + :param group_bandwidths: The group_bandwidths of this ShowBandwidthsResponse. + :type group_bandwidths: list[:class:`huaweicloudsdkdcs.v2.GroupBandwidthInfo`] + """ + self._group_bandwidths = group_bandwidths + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowBandwidthsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_instance_bandwidth_auto_scaling_policy_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_instance_bandwidth_auto_scaling_policy_request.py new file mode 100644 index 0000000000..df04b4b6c5 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_instance_bandwidth_auto_scaling_policy_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowInstanceBandwidthAutoScalingPolicyRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """ShowInstanceBandwidthAutoScalingPolicyRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID。 + :type instance_id: str + """ + + + + self._instance_id = None + self.discriminator = None + + self.instance_id = instance_id + + @property + def instance_id(self): + """Gets the instance_id of this ShowInstanceBandwidthAutoScalingPolicyRequest. + + 实例ID。 + + :return: The instance_id of this ShowInstanceBandwidthAutoScalingPolicyRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowInstanceBandwidthAutoScalingPolicyRequest. + + 实例ID。 + + :param instance_id: The instance_id of this ShowInstanceBandwidthAutoScalingPolicyRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowInstanceBandwidthAutoScalingPolicyRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_instance_bandwidth_auto_scaling_policy_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_instance_bandwidth_auto_scaling_policy_response.py new file mode 100644 index 0000000000..d87b5ea1dd --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_instance_bandwidth_auto_scaling_policy_response.py @@ -0,0 +1,259 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowInstanceBandwidthAutoScalingPolicyResponse(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 = { + 'window_size': 'int', + 'bandwidth_usage_upper_threshold': 'int', + 'scale_out_cooldown': 'int', + 'scale_in_enabled': 'bool', + 'bandwidth_usage_lower_threshold': 'int', + 'scale_in_cooldown': 'int' + } + + attribute_map = { + 'window_size': 'window_size', + 'bandwidth_usage_upper_threshold': 'bandwidth_usage_upper_threshold', + 'scale_out_cooldown': 'scale_out_cooldown', + 'scale_in_enabled': 'scale_in_enabled', + 'bandwidth_usage_lower_threshold': 'bandwidth_usage_lower_threshold', + 'scale_in_cooldown': 'scale_in_cooldown' + } + + def __init__(self, window_size=None, bandwidth_usage_upper_threshold=None, scale_out_cooldown=None, scale_in_enabled=None, bandwidth_usage_lower_threshold=None, scale_in_cooldown=None): + """ShowInstanceBandwidthAutoScalingPolicyResponse + + The model defined in huaweicloud sdk + + :param window_size: 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。 + :type window_size: int + :param bandwidth_usage_upper_threshold: 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。 + :type bandwidth_usage_upper_threshold: int + :param scale_out_cooldown: 带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。 + :type scale_out_cooldown: int + :param scale_in_enabled: 是否启用带宽自动回缩。默认值:false。该参数暂未启用。 + :type scale_in_enabled: bool + :param bandwidth_usage_lower_threshold: 触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。 + :type bandwidth_usage_lower_threshold: int + :param scale_in_cooldown: 带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。 + :type scale_in_cooldown: int + """ + + super(ShowInstanceBandwidthAutoScalingPolicyResponse, self).__init__() + + self._window_size = None + self._bandwidth_usage_upper_threshold = None + self._scale_out_cooldown = None + self._scale_in_enabled = None + self._bandwidth_usage_lower_threshold = None + self._scale_in_cooldown = None + self.discriminator = None + + self.window_size = window_size + self.bandwidth_usage_upper_threshold = bandwidth_usage_upper_threshold + if scale_out_cooldown is not None: + self.scale_out_cooldown = scale_out_cooldown + if scale_in_enabled is not None: + self.scale_in_enabled = scale_in_enabled + if bandwidth_usage_lower_threshold is not None: + self.bandwidth_usage_lower_threshold = bandwidth_usage_lower_threshold + if scale_in_cooldown is not None: + self.scale_in_cooldown = scale_in_cooldown + + @property + def window_size(self): + """Gets the window_size of this ShowInstanceBandwidthAutoScalingPolicyResponse. + + 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。 + + :return: The window_size of this ShowInstanceBandwidthAutoScalingPolicyResponse. + :rtype: int + """ + return self._window_size + + @window_size.setter + def window_size(self, window_size): + """Sets the window_size of this ShowInstanceBandwidthAutoScalingPolicyResponse. + + 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。 + + :param window_size: The window_size of this ShowInstanceBandwidthAutoScalingPolicyResponse. + :type window_size: int + """ + self._window_size = window_size + + @property + def bandwidth_usage_upper_threshold(self): + """Gets the bandwidth_usage_upper_threshold of this ShowInstanceBandwidthAutoScalingPolicyResponse. + + 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。 + + :return: The bandwidth_usage_upper_threshold of this ShowInstanceBandwidthAutoScalingPolicyResponse. + :rtype: int + """ + return self._bandwidth_usage_upper_threshold + + @bandwidth_usage_upper_threshold.setter + def bandwidth_usage_upper_threshold(self, bandwidth_usage_upper_threshold): + """Sets the bandwidth_usage_upper_threshold of this ShowInstanceBandwidthAutoScalingPolicyResponse. + + 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。 + + :param bandwidth_usage_upper_threshold: The bandwidth_usage_upper_threshold of this ShowInstanceBandwidthAutoScalingPolicyResponse. + :type bandwidth_usage_upper_threshold: int + """ + self._bandwidth_usage_upper_threshold = bandwidth_usage_upper_threshold + + @property + def scale_out_cooldown(self): + """Gets the scale_out_cooldown of this ShowInstanceBandwidthAutoScalingPolicyResponse. + + 带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。 + + :return: The scale_out_cooldown of this ShowInstanceBandwidthAutoScalingPolicyResponse. + :rtype: int + """ + return self._scale_out_cooldown + + @scale_out_cooldown.setter + def scale_out_cooldown(self, scale_out_cooldown): + """Sets the scale_out_cooldown of this ShowInstanceBandwidthAutoScalingPolicyResponse. + + 带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。 + + :param scale_out_cooldown: The scale_out_cooldown of this ShowInstanceBandwidthAutoScalingPolicyResponse. + :type scale_out_cooldown: int + """ + self._scale_out_cooldown = scale_out_cooldown + + @property + def scale_in_enabled(self): + """Gets the scale_in_enabled of this ShowInstanceBandwidthAutoScalingPolicyResponse. + + 是否启用带宽自动回缩。默认值:false。该参数暂未启用。 + + :return: The scale_in_enabled of this ShowInstanceBandwidthAutoScalingPolicyResponse. + :rtype: bool + """ + return self._scale_in_enabled + + @scale_in_enabled.setter + def scale_in_enabled(self, scale_in_enabled): + """Sets the scale_in_enabled of this ShowInstanceBandwidthAutoScalingPolicyResponse. + + 是否启用带宽自动回缩。默认值:false。该参数暂未启用。 + + :param scale_in_enabled: The scale_in_enabled of this ShowInstanceBandwidthAutoScalingPolicyResponse. + :type scale_in_enabled: bool + """ + self._scale_in_enabled = scale_in_enabled + + @property + def bandwidth_usage_lower_threshold(self): + """Gets the bandwidth_usage_lower_threshold of this ShowInstanceBandwidthAutoScalingPolicyResponse. + + 触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。 + + :return: The bandwidth_usage_lower_threshold of this ShowInstanceBandwidthAutoScalingPolicyResponse. + :rtype: int + """ + return self._bandwidth_usage_lower_threshold + + @bandwidth_usage_lower_threshold.setter + def bandwidth_usage_lower_threshold(self, bandwidth_usage_lower_threshold): + """Sets the bandwidth_usage_lower_threshold of this ShowInstanceBandwidthAutoScalingPolicyResponse. + + 触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。 + + :param bandwidth_usage_lower_threshold: The bandwidth_usage_lower_threshold of this ShowInstanceBandwidthAutoScalingPolicyResponse. + :type bandwidth_usage_lower_threshold: int + """ + self._bandwidth_usage_lower_threshold = bandwidth_usage_lower_threshold + + @property + def scale_in_cooldown(self): + """Gets the scale_in_cooldown of this ShowInstanceBandwidthAutoScalingPolicyResponse. + + 带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。 + + :return: The scale_in_cooldown of this ShowInstanceBandwidthAutoScalingPolicyResponse. + :rtype: int + """ + return self._scale_in_cooldown + + @scale_in_cooldown.setter + def scale_in_cooldown(self, scale_in_cooldown): + """Sets the scale_in_cooldown of this ShowInstanceBandwidthAutoScalingPolicyResponse. + + 带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。 + + :param scale_in_cooldown: The scale_in_cooldown of this ShowInstanceBandwidthAutoScalingPolicyResponse. + :type scale_in_cooldown: int + """ + self._scale_in_cooldown = scale_in_cooldown + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowInstanceBandwidthAutoScalingPolicyResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_instance_version_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_instance_version_request.py new file mode 100644 index 0000000000..e8f61c0980 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_instance_version_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowInstanceVersionRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """ShowInstanceVersionRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID。 + :type instance_id: str + """ + + + + self._instance_id = None + self.discriminator = None + + self.instance_id = instance_id + + @property + def instance_id(self): + """Gets the instance_id of this ShowInstanceVersionRequest. + + 实例ID。 + + :return: The instance_id of this ShowInstanceVersionRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowInstanceVersionRequest. + + 实例ID。 + + :param instance_id: The instance_id of this ShowInstanceVersionRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowInstanceVersionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_instance_version_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_instance_version_response.py new file mode 100644 index 0000000000..fc7373043d --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_instance_version_response.py @@ -0,0 +1,261 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowInstanceVersionResponse(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 = { + 'engine_minor_version': 'str', + 'latest_engine_minor_version': 'str', + 'proxy_minor_version': 'str', + 'latest_proxy_minor_version': 'str', + 'engine_minor_version_upgradable': 'bool', + 'proxy_minor_version_upgradable': 'bool' + } + + attribute_map = { + 'engine_minor_version': 'engine_minor_version', + 'latest_engine_minor_version': 'latest_engine_minor_version', + 'proxy_minor_version': 'proxy_minor_version', + 'latest_proxy_minor_version': 'latest_proxy_minor_version', + 'engine_minor_version_upgradable': 'engine_minor_version_upgradable', + 'proxy_minor_version_upgradable': 'proxy_minor_version_upgradable' + } + + def __init__(self, engine_minor_version=None, latest_engine_minor_version=None, proxy_minor_version=None, latest_proxy_minor_version=None, engine_minor_version_upgradable=None, proxy_minor_version_upgradable=None): + """ShowInstanceVersionResponse + + The model defined in huaweicloud sdk + + :param engine_minor_version: 当前实例内核小版本信息。 + :type engine_minor_version: str + :param latest_engine_minor_version: DCS实例最新的内核小版本信息。 + :type latest_engine_minor_version: str + :param proxy_minor_version: 当前实例proxy代理节点版本信息。 + :type proxy_minor_version: str + :param latest_proxy_minor_version: DCS实例最新的proxy代理节点版本信息。 + :type latest_proxy_minor_version: str + :param engine_minor_version_upgradable: 当前实例内核是否可以升级。 + :type engine_minor_version_upgradable: bool + :param proxy_minor_version_upgradable: 当前实例proxy代理节点是否可以升级。 + :type proxy_minor_version_upgradable: bool + """ + + super(ShowInstanceVersionResponse, self).__init__() + + self._engine_minor_version = None + self._latest_engine_minor_version = None + self._proxy_minor_version = None + self._latest_proxy_minor_version = None + self._engine_minor_version_upgradable = None + self._proxy_minor_version_upgradable = None + self.discriminator = None + + if engine_minor_version is not None: + self.engine_minor_version = engine_minor_version + if latest_engine_minor_version is not None: + self.latest_engine_minor_version = latest_engine_minor_version + if proxy_minor_version is not None: + self.proxy_minor_version = proxy_minor_version + if latest_proxy_minor_version is not None: + self.latest_proxy_minor_version = latest_proxy_minor_version + if engine_minor_version_upgradable is not None: + self.engine_minor_version_upgradable = engine_minor_version_upgradable + if proxy_minor_version_upgradable is not None: + self.proxy_minor_version_upgradable = proxy_minor_version_upgradable + + @property + def engine_minor_version(self): + """Gets the engine_minor_version of this ShowInstanceVersionResponse. + + 当前实例内核小版本信息。 + + :return: The engine_minor_version of this ShowInstanceVersionResponse. + :rtype: str + """ + return self._engine_minor_version + + @engine_minor_version.setter + def engine_minor_version(self, engine_minor_version): + """Sets the engine_minor_version of this ShowInstanceVersionResponse. + + 当前实例内核小版本信息。 + + :param engine_minor_version: The engine_minor_version of this ShowInstanceVersionResponse. + :type engine_minor_version: str + """ + self._engine_minor_version = engine_minor_version + + @property + def latest_engine_minor_version(self): + """Gets the latest_engine_minor_version of this ShowInstanceVersionResponse. + + DCS实例最新的内核小版本信息。 + + :return: The latest_engine_minor_version of this ShowInstanceVersionResponse. + :rtype: str + """ + return self._latest_engine_minor_version + + @latest_engine_minor_version.setter + def latest_engine_minor_version(self, latest_engine_minor_version): + """Sets the latest_engine_minor_version of this ShowInstanceVersionResponse. + + DCS实例最新的内核小版本信息。 + + :param latest_engine_minor_version: The latest_engine_minor_version of this ShowInstanceVersionResponse. + :type latest_engine_minor_version: str + """ + self._latest_engine_minor_version = latest_engine_minor_version + + @property + def proxy_minor_version(self): + """Gets the proxy_minor_version of this ShowInstanceVersionResponse. + + 当前实例proxy代理节点版本信息。 + + :return: The proxy_minor_version of this ShowInstanceVersionResponse. + :rtype: str + """ + return self._proxy_minor_version + + @proxy_minor_version.setter + def proxy_minor_version(self, proxy_minor_version): + """Sets the proxy_minor_version of this ShowInstanceVersionResponse. + + 当前实例proxy代理节点版本信息。 + + :param proxy_minor_version: The proxy_minor_version of this ShowInstanceVersionResponse. + :type proxy_minor_version: str + """ + self._proxy_minor_version = proxy_minor_version + + @property + def latest_proxy_minor_version(self): + """Gets the latest_proxy_minor_version of this ShowInstanceVersionResponse. + + DCS实例最新的proxy代理节点版本信息。 + + :return: The latest_proxy_minor_version of this ShowInstanceVersionResponse. + :rtype: str + """ + return self._latest_proxy_minor_version + + @latest_proxy_minor_version.setter + def latest_proxy_minor_version(self, latest_proxy_minor_version): + """Sets the latest_proxy_minor_version of this ShowInstanceVersionResponse. + + DCS实例最新的proxy代理节点版本信息。 + + :param latest_proxy_minor_version: The latest_proxy_minor_version of this ShowInstanceVersionResponse. + :type latest_proxy_minor_version: str + """ + self._latest_proxy_minor_version = latest_proxy_minor_version + + @property + def engine_minor_version_upgradable(self): + """Gets the engine_minor_version_upgradable of this ShowInstanceVersionResponse. + + 当前实例内核是否可以升级。 + + :return: The engine_minor_version_upgradable of this ShowInstanceVersionResponse. + :rtype: bool + """ + return self._engine_minor_version_upgradable + + @engine_minor_version_upgradable.setter + def engine_minor_version_upgradable(self, engine_minor_version_upgradable): + """Sets the engine_minor_version_upgradable of this ShowInstanceVersionResponse. + + 当前实例内核是否可以升级。 + + :param engine_minor_version_upgradable: The engine_minor_version_upgradable of this ShowInstanceVersionResponse. + :type engine_minor_version_upgradable: bool + """ + self._engine_minor_version_upgradable = engine_minor_version_upgradable + + @property + def proxy_minor_version_upgradable(self): + """Gets the proxy_minor_version_upgradable of this ShowInstanceVersionResponse. + + 当前实例proxy代理节点是否可以升级。 + + :return: The proxy_minor_version_upgradable of this ShowInstanceVersionResponse. + :rtype: bool + """ + return self._proxy_minor_version_upgradable + + @proxy_minor_version_upgradable.setter + def proxy_minor_version_upgradable(self, proxy_minor_version_upgradable): + """Sets the proxy_minor_version_upgradable of this ShowInstanceVersionResponse. + + 当前实例proxy代理节点是否可以升级。 + + :param proxy_minor_version_upgradable: The proxy_minor_version_upgradable of this ShowInstanceVersionResponse. + :type proxy_minor_version_upgradable: bool + """ + self._proxy_minor_version_upgradable = proxy_minor_version_upgradable + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowInstanceVersionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_bandwidth_info_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_bandwidth_info_request.py new file mode 100644 index 0000000000..dc90372fe8 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_bandwidth_info_request.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateBandwidthInfoRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'group_bandwidths': 'list[UpdateGroupBandwidthInfoRequest]' + } + + attribute_map = { + 'group_bandwidths': 'group_bandwidths' + } + + def __init__(self, group_bandwidths=None): + """UpdateBandwidthInfoRequest + + The model defined in huaweicloud sdk + + :param group_bandwidths: 分片带宽列表。 + :type group_bandwidths: list[:class:`huaweicloudsdkdcs.v2.UpdateGroupBandwidthInfoRequest`] + """ + + + + self._group_bandwidths = None + self.discriminator = None + + if group_bandwidths is not None: + self.group_bandwidths = group_bandwidths + + @property + def group_bandwidths(self): + """Gets the group_bandwidths of this UpdateBandwidthInfoRequest. + + 分片带宽列表。 + + :return: The group_bandwidths of this UpdateBandwidthInfoRequest. + :rtype: list[:class:`huaweicloudsdkdcs.v2.UpdateGroupBandwidthInfoRequest`] + """ + return self._group_bandwidths + + @group_bandwidths.setter + def group_bandwidths(self, group_bandwidths): + """Sets the group_bandwidths of this UpdateBandwidthInfoRequest. + + 分片带宽列表。 + + :param group_bandwidths: The group_bandwidths of this UpdateBandwidthInfoRequest. + :type group_bandwidths: list[:class:`huaweicloudsdkdcs.v2.UpdateGroupBandwidthInfoRequest`] + """ + self._group_bandwidths = group_bandwidths + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateBandwidthInfoRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_bandwidth_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_bandwidth_request.py new file mode 100644 index 0000000000..02c4dbaf1c --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_bandwidth_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateBandwidthRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'body': 'UpdateBandwidthInfoRequest' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """UpdateBandwidthRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID。 + :type instance_id: str + :param body: Body of the UpdateBandwidthRequest + :type body: :class:`huaweicloudsdkdcs.v2.UpdateBandwidthInfoRequest` + """ + + + + self._instance_id = None + self._body = None + self.discriminator = None + + self.instance_id = instance_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this UpdateBandwidthRequest. + + 实例ID。 + + :return: The instance_id of this UpdateBandwidthRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UpdateBandwidthRequest. + + 实例ID。 + + :param instance_id: The instance_id of this UpdateBandwidthRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this UpdateBandwidthRequest. + + :return: The body of this UpdateBandwidthRequest. + :rtype: :class:`huaweicloudsdkdcs.v2.UpdateBandwidthInfoRequest` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateBandwidthRequest. + + :param body: The body of this UpdateBandwidthRequest. + :type body: :class:`huaweicloudsdkdcs.v2.UpdateBandwidthInfoRequest` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateBandwidthRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_bandwidth_resp.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_bandwidth_resp.py new file mode 100644 index 0000000000..ca4c98429c --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_bandwidth_resp.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateBandwidthResp: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """UpdateBandwidthResp + + The model defined in huaweicloud sdk + + """ + + + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateBandwidthResp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_bandwidth_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_bandwidth_response.py new file mode 100644 index 0000000000..c0aed59bce --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_bandwidth_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateBandwidthResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'str' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """UpdateBandwidthResponse + + The model defined in huaweicloud sdk + + :param body: + :type body: str + """ + + super(UpdateBandwidthResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this UpdateBandwidthResponse. + + :return: The body of this UpdateBandwidthResponse. + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateBandwidthResponse. + + :param body: The body of this UpdateBandwidthResponse. + :type body: str + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateBandwidthResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_group_bandwidth_info_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_group_bandwidth_info_request.py new file mode 100644 index 0000000000..27d6a6b5a0 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_group_bandwidth_info_request.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateGroupBandwidthInfoRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'group_id': 'str', + 'target_bandwidth': 'int' + } + + attribute_map = { + 'group_id': 'group_id', + 'target_bandwidth': 'target_bandwidth' + } + + def __init__(self, group_id=None, target_bandwidth=None): + """UpdateGroupBandwidthInfoRequest + + The model defined in huaweicloud sdk + + :param group_id: 分片ID。 + :type group_id: str + :param target_bandwidth: 目标带宽(Mbit/s)。 + :type target_bandwidth: int + """ + + + + self._group_id = None + self._target_bandwidth = None + self.discriminator = None + + self.group_id = group_id + self.target_bandwidth = target_bandwidth + + @property + def group_id(self): + """Gets the group_id of this UpdateGroupBandwidthInfoRequest. + + 分片ID。 + + :return: The group_id of this UpdateGroupBandwidthInfoRequest. + :rtype: str + """ + return self._group_id + + @group_id.setter + def group_id(self, group_id): + """Sets the group_id of this UpdateGroupBandwidthInfoRequest. + + 分片ID。 + + :param group_id: The group_id of this UpdateGroupBandwidthInfoRequest. + :type group_id: str + """ + self._group_id = group_id + + @property + def target_bandwidth(self): + """Gets the target_bandwidth of this UpdateGroupBandwidthInfoRequest. + + 目标带宽(Mbit/s)。 + + :return: The target_bandwidth of this UpdateGroupBandwidthInfoRequest. + :rtype: int + """ + return self._target_bandwidth + + @target_bandwidth.setter + def target_bandwidth(self, target_bandwidth): + """Sets the target_bandwidth of this UpdateGroupBandwidthInfoRequest. + + 目标带宽(Mbit/s)。 + + :param target_bandwidth: The target_bandwidth of this UpdateGroupBandwidthInfoRequest. + :type target_bandwidth: int + """ + self._target_bandwidth = target_bandwidth + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateGroupBandwidthInfoRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_request.py new file mode 100644 index 0000000000..d16b6b9295 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateInstanceBandwidthAutoScalingPolicyRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'body': 'UpdateInstanceBandwidthAutoScalingPolicyRequestBody' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """UpdateInstanceBandwidthAutoScalingPolicyRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID。 + :type instance_id: str + :param body: Body of the UpdateInstanceBandwidthAutoScalingPolicyRequest + :type body: :class:`huaweicloudsdkdcs.v2.UpdateInstanceBandwidthAutoScalingPolicyRequestBody` + """ + + + + self._instance_id = None + self._body = None + self.discriminator = None + + self.instance_id = instance_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this UpdateInstanceBandwidthAutoScalingPolicyRequest. + + 实例ID。 + + :return: The instance_id of this UpdateInstanceBandwidthAutoScalingPolicyRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UpdateInstanceBandwidthAutoScalingPolicyRequest. + + 实例ID。 + + :param instance_id: The instance_id of this UpdateInstanceBandwidthAutoScalingPolicyRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this UpdateInstanceBandwidthAutoScalingPolicyRequest. + + :return: The body of this UpdateInstanceBandwidthAutoScalingPolicyRequest. + :rtype: :class:`huaweicloudsdkdcs.v2.UpdateInstanceBandwidthAutoScalingPolicyRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateInstanceBandwidthAutoScalingPolicyRequest. + + :param body: The body of this UpdateInstanceBandwidthAutoScalingPolicyRequest. + :type body: :class:`huaweicloudsdkdcs.v2.UpdateInstanceBandwidthAutoScalingPolicyRequestBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateInstanceBandwidthAutoScalingPolicyRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_request_body.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_request_body.py new file mode 100644 index 0000000000..2c3ae110c6 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_request_body.py @@ -0,0 +1,258 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateInstanceBandwidthAutoScalingPolicyRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'window_size': 'int', + 'bandwidth_usage_upper_threshold': 'int', + 'scale_out_cooldown': 'int', + 'scale_in_enabled': 'bool', + 'bandwidth_usage_lower_threshold': 'int', + 'scale_in_cooldown': 'int' + } + + attribute_map = { + 'window_size': 'window_size', + 'bandwidth_usage_upper_threshold': 'bandwidth_usage_upper_threshold', + 'scale_out_cooldown': 'scale_out_cooldown', + 'scale_in_enabled': 'scale_in_enabled', + 'bandwidth_usage_lower_threshold': 'bandwidth_usage_lower_threshold', + 'scale_in_cooldown': 'scale_in_cooldown' + } + + def __init__(self, window_size=None, bandwidth_usage_upper_threshold=None, scale_out_cooldown=None, scale_in_enabled=None, bandwidth_usage_lower_threshold=None, scale_in_cooldown=None): + """UpdateInstanceBandwidthAutoScalingPolicyRequestBody + + The model defined in huaweicloud sdk + + :param window_size: 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。 + :type window_size: int + :param bandwidth_usage_upper_threshold: 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。 + :type bandwidth_usage_upper_threshold: int + :param scale_out_cooldown: 带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。 + :type scale_out_cooldown: int + :param scale_in_enabled: 是否启用带宽自动回缩。默认值:false。该参数暂未启用。 + :type scale_in_enabled: bool + :param bandwidth_usage_lower_threshold: 触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。 + :type bandwidth_usage_lower_threshold: int + :param scale_in_cooldown: 带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。 + :type scale_in_cooldown: int + """ + + + + self._window_size = None + self._bandwidth_usage_upper_threshold = None + self._scale_out_cooldown = None + self._scale_in_enabled = None + self._bandwidth_usage_lower_threshold = None + self._scale_in_cooldown = None + self.discriminator = None + + self.window_size = window_size + self.bandwidth_usage_upper_threshold = bandwidth_usage_upper_threshold + if scale_out_cooldown is not None: + self.scale_out_cooldown = scale_out_cooldown + if scale_in_enabled is not None: + self.scale_in_enabled = scale_in_enabled + if bandwidth_usage_lower_threshold is not None: + self.bandwidth_usage_lower_threshold = bandwidth_usage_lower_threshold + if scale_in_cooldown is not None: + self.scale_in_cooldown = scale_in_cooldown + + @property + def window_size(self): + """Gets the window_size of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody. + + 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。 + + :return: The window_size of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody. + :rtype: int + """ + return self._window_size + + @window_size.setter + def window_size(self, window_size): + """Sets the window_size of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody. + + 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。 + + :param window_size: The window_size of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody. + :type window_size: int + """ + self._window_size = window_size + + @property + def bandwidth_usage_upper_threshold(self): + """Gets the bandwidth_usage_upper_threshold of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody. + + 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。 + + :return: The bandwidth_usage_upper_threshold of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody. + :rtype: int + """ + return self._bandwidth_usage_upper_threshold + + @bandwidth_usage_upper_threshold.setter + def bandwidth_usage_upper_threshold(self, bandwidth_usage_upper_threshold): + """Sets the bandwidth_usage_upper_threshold of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody. + + 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。 + + :param bandwidth_usage_upper_threshold: The bandwidth_usage_upper_threshold of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody. + :type bandwidth_usage_upper_threshold: int + """ + self._bandwidth_usage_upper_threshold = bandwidth_usage_upper_threshold + + @property + def scale_out_cooldown(self): + """Gets the scale_out_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody. + + 带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。 + + :return: The scale_out_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody. + :rtype: int + """ + return self._scale_out_cooldown + + @scale_out_cooldown.setter + def scale_out_cooldown(self, scale_out_cooldown): + """Sets the scale_out_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody. + + 带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。 + + :param scale_out_cooldown: The scale_out_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody. + :type scale_out_cooldown: int + """ + self._scale_out_cooldown = scale_out_cooldown + + @property + def scale_in_enabled(self): + """Gets the scale_in_enabled of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody. + + 是否启用带宽自动回缩。默认值:false。该参数暂未启用。 + + :return: The scale_in_enabled of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody. + :rtype: bool + """ + return self._scale_in_enabled + + @scale_in_enabled.setter + def scale_in_enabled(self, scale_in_enabled): + """Sets the scale_in_enabled of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody. + + 是否启用带宽自动回缩。默认值:false。该参数暂未启用。 + + :param scale_in_enabled: The scale_in_enabled of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody. + :type scale_in_enabled: bool + """ + self._scale_in_enabled = scale_in_enabled + + @property + def bandwidth_usage_lower_threshold(self): + """Gets the bandwidth_usage_lower_threshold of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody. + + 触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。 + + :return: The bandwidth_usage_lower_threshold of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody. + :rtype: int + """ + return self._bandwidth_usage_lower_threshold + + @bandwidth_usage_lower_threshold.setter + def bandwidth_usage_lower_threshold(self, bandwidth_usage_lower_threshold): + """Sets the bandwidth_usage_lower_threshold of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody. + + 触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。 + + :param bandwidth_usage_lower_threshold: The bandwidth_usage_lower_threshold of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody. + :type bandwidth_usage_lower_threshold: int + """ + self._bandwidth_usage_lower_threshold = bandwidth_usage_lower_threshold + + @property + def scale_in_cooldown(self): + """Gets the scale_in_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody. + + 带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。 + + :return: The scale_in_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody. + :rtype: int + """ + return self._scale_in_cooldown + + @scale_in_cooldown.setter + def scale_in_cooldown(self, scale_in_cooldown): + """Sets the scale_in_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody. + + 带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。 + + :param scale_in_cooldown: The scale_in_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody. + :type scale_in_cooldown: int + """ + self._scale_in_cooldown = scale_in_cooldown + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateInstanceBandwidthAutoScalingPolicyRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_response.py new file mode 100644 index 0000000000..0134763ebd --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_response.py @@ -0,0 +1,259 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateInstanceBandwidthAutoScalingPolicyResponse(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 = { + 'window_size': 'int', + 'bandwidth_usage_upper_threshold': 'int', + 'scale_out_cooldown': 'int', + 'scale_in_enabled': 'bool', + 'bandwidth_usage_lower_threshold': 'int', + 'scale_in_cooldown': 'int' + } + + attribute_map = { + 'window_size': 'window_size', + 'bandwidth_usage_upper_threshold': 'bandwidth_usage_upper_threshold', + 'scale_out_cooldown': 'scale_out_cooldown', + 'scale_in_enabled': 'scale_in_enabled', + 'bandwidth_usage_lower_threshold': 'bandwidth_usage_lower_threshold', + 'scale_in_cooldown': 'scale_in_cooldown' + } + + def __init__(self, window_size=None, bandwidth_usage_upper_threshold=None, scale_out_cooldown=None, scale_in_enabled=None, bandwidth_usage_lower_threshold=None, scale_in_cooldown=None): + """UpdateInstanceBandwidthAutoScalingPolicyResponse + + The model defined in huaweicloud sdk + + :param window_size: 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。 + :type window_size: int + :param bandwidth_usage_upper_threshold: 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。 + :type bandwidth_usage_upper_threshold: int + :param scale_out_cooldown: 带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。 + :type scale_out_cooldown: int + :param scale_in_enabled: 是否启用带宽自动回缩。默认值:false。该参数暂未启用。 + :type scale_in_enabled: bool + :param bandwidth_usage_lower_threshold: 触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。 + :type bandwidth_usage_lower_threshold: int + :param scale_in_cooldown: 带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。 + :type scale_in_cooldown: int + """ + + super(UpdateInstanceBandwidthAutoScalingPolicyResponse, self).__init__() + + self._window_size = None + self._bandwidth_usage_upper_threshold = None + self._scale_out_cooldown = None + self._scale_in_enabled = None + self._bandwidth_usage_lower_threshold = None + self._scale_in_cooldown = None + self.discriminator = None + + self.window_size = window_size + self.bandwidth_usage_upper_threshold = bandwidth_usage_upper_threshold + if scale_out_cooldown is not None: + self.scale_out_cooldown = scale_out_cooldown + if scale_in_enabled is not None: + self.scale_in_enabled = scale_in_enabled + if bandwidth_usage_lower_threshold is not None: + self.bandwidth_usage_lower_threshold = bandwidth_usage_lower_threshold + if scale_in_cooldown is not None: + self.scale_in_cooldown = scale_in_cooldown + + @property + def window_size(self): + """Gets the window_size of this UpdateInstanceBandwidthAutoScalingPolicyResponse. + + 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。 + + :return: The window_size of this UpdateInstanceBandwidthAutoScalingPolicyResponse. + :rtype: int + """ + return self._window_size + + @window_size.setter + def window_size(self, window_size): + """Sets the window_size of this UpdateInstanceBandwidthAutoScalingPolicyResponse. + + 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。 + + :param window_size: The window_size of this UpdateInstanceBandwidthAutoScalingPolicyResponse. + :type window_size: int + """ + self._window_size = window_size + + @property + def bandwidth_usage_upper_threshold(self): + """Gets the bandwidth_usage_upper_threshold of this UpdateInstanceBandwidthAutoScalingPolicyResponse. + + 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。 + + :return: The bandwidth_usage_upper_threshold of this UpdateInstanceBandwidthAutoScalingPolicyResponse. + :rtype: int + """ + return self._bandwidth_usage_upper_threshold + + @bandwidth_usage_upper_threshold.setter + def bandwidth_usage_upper_threshold(self, bandwidth_usage_upper_threshold): + """Sets the bandwidth_usage_upper_threshold of this UpdateInstanceBandwidthAutoScalingPolicyResponse. + + 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。 + + :param bandwidth_usage_upper_threshold: The bandwidth_usage_upper_threshold of this UpdateInstanceBandwidthAutoScalingPolicyResponse. + :type bandwidth_usage_upper_threshold: int + """ + self._bandwidth_usage_upper_threshold = bandwidth_usage_upper_threshold + + @property + def scale_out_cooldown(self): + """Gets the scale_out_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyResponse. + + 带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。 + + :return: The scale_out_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyResponse. + :rtype: int + """ + return self._scale_out_cooldown + + @scale_out_cooldown.setter + def scale_out_cooldown(self, scale_out_cooldown): + """Sets the scale_out_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyResponse. + + 带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。 + + :param scale_out_cooldown: The scale_out_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyResponse. + :type scale_out_cooldown: int + """ + self._scale_out_cooldown = scale_out_cooldown + + @property + def scale_in_enabled(self): + """Gets the scale_in_enabled of this UpdateInstanceBandwidthAutoScalingPolicyResponse. + + 是否启用带宽自动回缩。默认值:false。该参数暂未启用。 + + :return: The scale_in_enabled of this UpdateInstanceBandwidthAutoScalingPolicyResponse. + :rtype: bool + """ + return self._scale_in_enabled + + @scale_in_enabled.setter + def scale_in_enabled(self, scale_in_enabled): + """Sets the scale_in_enabled of this UpdateInstanceBandwidthAutoScalingPolicyResponse. + + 是否启用带宽自动回缩。默认值:false。该参数暂未启用。 + + :param scale_in_enabled: The scale_in_enabled of this UpdateInstanceBandwidthAutoScalingPolicyResponse. + :type scale_in_enabled: bool + """ + self._scale_in_enabled = scale_in_enabled + + @property + def bandwidth_usage_lower_threshold(self): + """Gets the bandwidth_usage_lower_threshold of this UpdateInstanceBandwidthAutoScalingPolicyResponse. + + 触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。 + + :return: The bandwidth_usage_lower_threshold of this UpdateInstanceBandwidthAutoScalingPolicyResponse. + :rtype: int + """ + return self._bandwidth_usage_lower_threshold + + @bandwidth_usage_lower_threshold.setter + def bandwidth_usage_lower_threshold(self, bandwidth_usage_lower_threshold): + """Sets the bandwidth_usage_lower_threshold of this UpdateInstanceBandwidthAutoScalingPolicyResponse. + + 触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。 + + :param bandwidth_usage_lower_threshold: The bandwidth_usage_lower_threshold of this UpdateInstanceBandwidthAutoScalingPolicyResponse. + :type bandwidth_usage_lower_threshold: int + """ + self._bandwidth_usage_lower_threshold = bandwidth_usage_lower_threshold + + @property + def scale_in_cooldown(self): + """Gets the scale_in_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyResponse. + + 带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。 + + :return: The scale_in_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyResponse. + :rtype: int + """ + return self._scale_in_cooldown + + @scale_in_cooldown.setter + def scale_in_cooldown(self, scale_in_cooldown): + """Sets the scale_in_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyResponse. + + 带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。 + + :param scale_in_cooldown: The scale_in_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyResponse. + :type scale_in_cooldown: int + """ + self._scale_in_cooldown = scale_in_cooldown + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateInstanceBandwidthAutoScalingPolicyResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_public_ip_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_public_ip_request.py new file mode 100644 index 0000000000..edcbb2ae9a --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_public_ip_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePublicIpRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'body': 'UpdatePublicIpRequestBody' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """UpdatePublicIpRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID。 + :type instance_id: str + :param body: Body of the UpdatePublicIpRequest + :type body: :class:`huaweicloudsdkdcs.v2.UpdatePublicIpRequestBody` + """ + + + + self._instance_id = None + self._body = None + self.discriminator = None + + self.instance_id = instance_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this UpdatePublicIpRequest. + + 实例ID。 + + :return: The instance_id of this UpdatePublicIpRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UpdatePublicIpRequest. + + 实例ID。 + + :param instance_id: The instance_id of this UpdatePublicIpRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this UpdatePublicIpRequest. + + :return: The body of this UpdatePublicIpRequest. + :rtype: :class:`huaweicloudsdkdcs.v2.UpdatePublicIpRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdatePublicIpRequest. + + :param body: The body of this UpdatePublicIpRequest. + :type body: :class:`huaweicloudsdkdcs.v2.UpdatePublicIpRequestBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePublicIpRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_public_ip_request_body.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_public_ip_request_body.py new file mode 100644 index 0000000000..2a10de88ef --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_public_ip_request_body.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePublicIpRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'publicip_id': 'str', + 'enable_ssl': 'bool', + 'elb_id': 'str' + } + + attribute_map = { + 'publicip_id': 'publicip_id', + 'enable_ssl': 'enable_ssl', + 'elb_id': 'elb_id' + } + + def __init__(self, publicip_id=None, enable_ssl=None, elb_id=None): + """UpdatePublicIpRequestBody + + The model defined in huaweicloud sdk + + :param publicip_id: 公网访问绑定的ELB的EIP的ID,当Redis版本为3.0时,该参数为必填参数。 + :type publicip_id: str + :param enable_ssl: 是否开启SSL,仅在开启SSL时有值,当Redis版本为3.0时,该参数为必填参数。 + :type enable_ssl: bool + :param elb_id: 公网访问绑定的ELB ID,当Redis版本为4.0,5.0,6.0和企业版时,该参数为必填参数。 + :type elb_id: str + """ + + + + self._publicip_id = None + self._enable_ssl = None + self._elb_id = None + self.discriminator = None + + if publicip_id is not None: + self.publicip_id = publicip_id + if enable_ssl is not None: + self.enable_ssl = enable_ssl + if elb_id is not None: + self.elb_id = elb_id + + @property + def publicip_id(self): + """Gets the publicip_id of this UpdatePublicIpRequestBody. + + 公网访问绑定的ELB的EIP的ID,当Redis版本为3.0时,该参数为必填参数。 + + :return: The publicip_id of this UpdatePublicIpRequestBody. + :rtype: str + """ + return self._publicip_id + + @publicip_id.setter + def publicip_id(self, publicip_id): + """Sets the publicip_id of this UpdatePublicIpRequestBody. + + 公网访问绑定的ELB的EIP的ID,当Redis版本为3.0时,该参数为必填参数。 + + :param publicip_id: The publicip_id of this UpdatePublicIpRequestBody. + :type publicip_id: str + """ + self._publicip_id = publicip_id + + @property + def enable_ssl(self): + """Gets the enable_ssl of this UpdatePublicIpRequestBody. + + 是否开启SSL,仅在开启SSL时有值,当Redis版本为3.0时,该参数为必填参数。 + + :return: The enable_ssl of this UpdatePublicIpRequestBody. + :rtype: bool + """ + return self._enable_ssl + + @enable_ssl.setter + def enable_ssl(self, enable_ssl): + """Sets the enable_ssl of this UpdatePublicIpRequestBody. + + 是否开启SSL,仅在开启SSL时有值,当Redis版本为3.0时,该参数为必填参数。 + + :param enable_ssl: The enable_ssl of this UpdatePublicIpRequestBody. + :type enable_ssl: bool + """ + self._enable_ssl = enable_ssl + + @property + def elb_id(self): + """Gets the elb_id of this UpdatePublicIpRequestBody. + + 公网访问绑定的ELB ID,当Redis版本为4.0,5.0,6.0和企业版时,该参数为必填参数。 + + :return: The elb_id of this UpdatePublicIpRequestBody. + :rtype: str + """ + return self._elb_id + + @elb_id.setter + def elb_id(self, elb_id): + """Sets the elb_id of this UpdatePublicIpRequestBody. + + 公网访问绑定的ELB ID,当Redis版本为4.0,5.0,6.0和企业版时,该参数为必填参数。 + + :param elb_id: The elb_id of this UpdatePublicIpRequestBody. + :type elb_id: str + """ + self._elb_id = elb_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePublicIpRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_public_ip_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_public_ip_response.py new file mode 100644 index 0000000000..a9d933c5c0 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_public_ip_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePublicIpResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'job_id': 'str' + } + + attribute_map = { + 'job_id': 'job_id' + } + + def __init__(self, job_id=None): + """UpdatePublicIpResponse + + The model defined in huaweicloud sdk + + :param job_id: 请求提交任务ID。 + :type job_id: str + """ + + super(UpdatePublicIpResponse, self).__init__() + + self._job_id = None + self.discriminator = None + + if job_id is not None: + self.job_id = job_id + + @property + def job_id(self): + """Gets the job_id of this UpdatePublicIpResponse. + + 请求提交任务ID。 + + :return: The job_id of this UpdatePublicIpResponse. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this UpdatePublicIpResponse. + + 请求提交任务ID。 + + :param job_id: The job_id of this UpdatePublicIpResponse. + :type job_id: str + """ + self._job_id = job_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePublicIpResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/upgrade_instance_minor_version_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/upgrade_instance_minor_version_request.py new file mode 100644 index 0000000000..3a5dbb4c61 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/upgrade_instance_minor_version_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpgradeInstanceMinorVersionRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'body': 'UpgradeMinorVersionRequestBody' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """UpgradeInstanceMinorVersionRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID。 + :type instance_id: str + :param body: Body of the UpgradeInstanceMinorVersionRequest + :type body: :class:`huaweicloudsdkdcs.v2.UpgradeMinorVersionRequestBody` + """ + + + + self._instance_id = None + self._body = None + self.discriminator = None + + self.instance_id = instance_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this UpgradeInstanceMinorVersionRequest. + + 实例ID。 + + :return: The instance_id of this UpgradeInstanceMinorVersionRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UpgradeInstanceMinorVersionRequest. + + 实例ID。 + + :param instance_id: The instance_id of this UpgradeInstanceMinorVersionRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this UpgradeInstanceMinorVersionRequest. + + :return: The body of this UpgradeInstanceMinorVersionRequest. + :rtype: :class:`huaweicloudsdkdcs.v2.UpgradeMinorVersionRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpgradeInstanceMinorVersionRequest. + + :param body: The body of this UpgradeInstanceMinorVersionRequest. + :type body: :class:`huaweicloudsdkdcs.v2.UpgradeMinorVersionRequestBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpgradeInstanceMinorVersionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/upgrade_instance_minor_version_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/upgrade_instance_minor_version_response.py new file mode 100644 index 0000000000..d60be55b3e --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/upgrade_instance_minor_version_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpgradeInstanceMinorVersionResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'task_id': 'str' + } + + attribute_map = { + 'task_id': 'task_id' + } + + def __init__(self, task_id=None): + """UpgradeInstanceMinorVersionResponse + + The model defined in huaweicloud sdk + + :param task_id: 后台任务ID。 + :type task_id: str + """ + + super(UpgradeInstanceMinorVersionResponse, self).__init__() + + self._task_id = None + self.discriminator = None + + if task_id is not None: + self.task_id = task_id + + @property + def task_id(self): + """Gets the task_id of this UpgradeInstanceMinorVersionResponse. + + 后台任务ID。 + + :return: The task_id of this UpgradeInstanceMinorVersionResponse. + :rtype: str + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this UpgradeInstanceMinorVersionResponse. + + 后台任务ID。 + + :param task_id: The task_id of this UpgradeInstanceMinorVersionResponse. + :type task_id: str + """ + self._task_id = task_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpgradeInstanceMinorVersionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/upgrade_minor_version_request_body.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/upgrade_minor_version_request_body.py new file mode 100644 index 0000000000..b67b22a457 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/upgrade_minor_version_request_body.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpgradeMinorVersionRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'proxy_minor_version': 'str', + 'engine_minor_version': 'str' + } + + attribute_map = { + 'proxy_minor_version': 'proxy_minor_version', + 'engine_minor_version': 'engine_minor_version' + } + + def __init__(self, proxy_minor_version=None, engine_minor_version=None): + """UpgradeMinorVersionRequestBody + + The model defined in huaweicloud sdk + + :param proxy_minor_version: Proxy代理节点目标版本号,设置为latest时,即升级到最新版本。 + :type proxy_minor_version: str + :param engine_minor_version: 引擎目标小版本号,设置为latest时,即升级到最新版本。 + :type engine_minor_version: str + """ + + + + self._proxy_minor_version = None + self._engine_minor_version = None + self.discriminator = None + + if proxy_minor_version is not None: + self.proxy_minor_version = proxy_minor_version + if engine_minor_version is not None: + self.engine_minor_version = engine_minor_version + + @property + def proxy_minor_version(self): + """Gets the proxy_minor_version of this UpgradeMinorVersionRequestBody. + + Proxy代理节点目标版本号,设置为latest时,即升级到最新版本。 + + :return: The proxy_minor_version of this UpgradeMinorVersionRequestBody. + :rtype: str + """ + return self._proxy_minor_version + + @proxy_minor_version.setter + def proxy_minor_version(self, proxy_minor_version): + """Sets the proxy_minor_version of this UpgradeMinorVersionRequestBody. + + Proxy代理节点目标版本号,设置为latest时,即升级到最新版本。 + + :param proxy_minor_version: The proxy_minor_version of this UpgradeMinorVersionRequestBody. + :type proxy_minor_version: str + """ + self._proxy_minor_version = proxy_minor_version + + @property + def engine_minor_version(self): + """Gets the engine_minor_version of this UpgradeMinorVersionRequestBody. + + 引擎目标小版本号,设置为latest时,即升级到最新版本。 + + :return: The engine_minor_version of this UpgradeMinorVersionRequestBody. + :rtype: str + """ + return self._engine_minor_version + + @engine_minor_version.setter + def engine_minor_version(self, engine_minor_version): + """Sets the engine_minor_version of this UpgradeMinorVersionRequestBody. + + 引擎目标小版本号,设置为latest时,即升级到最新版本。 + + :param engine_minor_version: The engine_minor_version of this UpgradeMinorVersionRequestBody. + :type engine_minor_version: str + """ + self._engine_minor_version = engine_minor_version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpgradeMinorVersionRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/requirements.txt b/huaweicloud-sdk-dcs/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-dcs/requirements.txt +++ b/huaweicloud-sdk-dcs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-dcs/setup.py b/huaweicloud-sdk-dcs/setup.py index c40f735ba1..9d9edb8baa 100644 --- a/huaweicloud-sdk-dcs/setup.py +++ b/huaweicloud-sdk-dcs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdcs" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ddm/requirements.txt b/huaweicloud-sdk-ddm/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-ddm/requirements.txt +++ b/huaweicloud-sdk-ddm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-ddm/setup.py b/huaweicloud-sdk-ddm/setup.py index ae58b342f3..affecb853e 100644 --- a/huaweicloud-sdk-ddm/setup.py +++ b/huaweicloud-sdk-ddm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkddm" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dds/requirements.txt b/huaweicloud-sdk-dds/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-dds/requirements.txt +++ b/huaweicloud-sdk-dds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-dds/setup.py b/huaweicloud-sdk-dds/setup.py index 21e43a2db2..7f6c192ea8 100644 --- a/huaweicloud-sdk-dds/setup.py +++ b/huaweicloud-sdk-dds/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdds" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-deh/requirements.txt b/huaweicloud-sdk-deh/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-deh/requirements.txt +++ b/huaweicloud-sdk-deh/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-deh/setup.py b/huaweicloud-sdk-deh/setup.py index c5d420fc72..317cbf0109 100644 --- a/huaweicloud-sdk-deh/setup.py +++ b/huaweicloud-sdk-deh/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdeh" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-devstar/requirements.txt b/huaweicloud-sdk-devstar/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-devstar/requirements.txt +++ b/huaweicloud-sdk-devstar/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-devstar/setup.py b/huaweicloud-sdk-devstar/setup.py index efa53fc6ee..a142ef8e30 100644 --- a/huaweicloud-sdk-devstar/setup.py +++ b/huaweicloud-sdk-devstar/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdevstar" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dgc/requirements.txt b/huaweicloud-sdk-dgc/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-dgc/requirements.txt +++ b/huaweicloud-sdk-dgc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-dgc/setup.py b/huaweicloud-sdk-dgc/setup.py index a219948621..08ec5bbdf3 100644 --- a/huaweicloud-sdk-dgc/setup.py +++ b/huaweicloud-sdk-dgc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdgc" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dis/requirements.txt b/huaweicloud-sdk-dis/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-dis/requirements.txt +++ b/huaweicloud-sdk-dis/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-dis/setup.py b/huaweicloud-sdk-dis/setup.py index e4357ea87d..8b11b41715 100644 --- a/huaweicloud-sdk-dis/setup.py +++ b/huaweicloud-sdk-dis/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdis" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dlf/requirements.txt b/huaweicloud-sdk-dlf/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-dlf/requirements.txt +++ b/huaweicloud-sdk-dlf/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-dlf/setup.py b/huaweicloud-sdk-dlf/setup.py index bf9fca0b7e..4633338690 100644 --- a/huaweicloud-sdk-dlf/setup.py +++ b/huaweicloud-sdk-dlf/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdlf" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dli/requirements.txt b/huaweicloud-sdk-dli/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-dli/requirements.txt +++ b/huaweicloud-sdk-dli/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-dli/setup.py b/huaweicloud-sdk-dli/setup.py index b68fe3c0a0..0f24957fac 100644 --- a/huaweicloud-sdk-dli/setup.py +++ b/huaweicloud-sdk-dli/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdli" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dns/requirements.txt b/huaweicloud-sdk-dns/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-dns/requirements.txt +++ b/huaweicloud-sdk-dns/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-dns/setup.py b/huaweicloud-sdk-dns/setup.py index a997ab019a..804ef94019 100644 --- a/huaweicloud-sdk-dns/setup.py +++ b/huaweicloud-sdk-dns/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdns" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dris/requirements.txt b/huaweicloud-sdk-dris/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-dris/requirements.txt +++ b/huaweicloud-sdk-dris/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-dris/setup.py b/huaweicloud-sdk-dris/setup.py index 376ab86705..4ffda07291 100644 --- a/huaweicloud-sdk-dris/setup.py +++ b/huaweicloud-sdk-dris/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdris" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-drs/requirements.txt b/huaweicloud-sdk-drs/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-drs/requirements.txt +++ b/huaweicloud-sdk-drs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-drs/setup.py b/huaweicloud-sdk-drs/setup.py index 777575230d..267b757b42 100644 --- a/huaweicloud-sdk-drs/setup.py +++ b/huaweicloud-sdk-drs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdrs" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dsc/requirements.txt b/huaweicloud-sdk-dsc/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-dsc/requirements.txt +++ b/huaweicloud-sdk-dsc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-dsc/setup.py b/huaweicloud-sdk-dsc/setup.py index e1a57d009f..2e19caec80 100644 --- a/huaweicloud-sdk-dsc/setup.py +++ b/huaweicloud-sdk-dsc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdsc" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dwr/requirements.txt b/huaweicloud-sdk-dwr/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-dwr/requirements.txt +++ b/huaweicloud-sdk-dwr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-dwr/setup.py b/huaweicloud-sdk-dwr/setup.py index ef3552abb5..d3f80aa711 100644 --- a/huaweicloud-sdk-dwr/setup.py +++ b/huaweicloud-sdk-dwr/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdwr" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/__init__.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/__init__.py index 2acf0e82ea..ae60d990cf 100644 --- a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/__init__.py +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/__init__.py @@ -27,8 +27,8 @@ from huaweicloudsdkdws.v2.model.associate_elb_response import AssociateElbResponse from huaweicloudsdkdws.v2.model.audit_dump_record import AuditDumpRecord from huaweicloudsdkdws.v2.model.availability_zone import AvailabilityZone -from huaweicloudsdkdws.v2.model.backup_policy import BackupPolicy from huaweicloudsdkdws.v2.model.backup_strategy_detail import BackupStrategyDetail +from huaweicloudsdkdws.v2.model.backup_strategy_request import BackupStrategyRequest from huaweicloudsdkdws.v2.model.batch_create_cluster_cn_request import BatchCreateClusterCnRequest from huaweicloudsdkdws.v2.model.batch_create_cluster_cn_response import BatchCreateClusterCnResponse from huaweicloudsdkdws.v2.model.batch_create_cn import BatchCreateCn @@ -115,6 +115,7 @@ from huaweicloudsdkdws.v2.model.create_logical_cluster_request_body import CreateLogicalClusterRequestBody from huaweicloudsdkdws.v2.model.create_logical_cluster_response import CreateLogicalClusterResponse from huaweicloudsdkdws.v2.model.create_snapshot_policy_request import CreateSnapshotPolicyRequest +from huaweicloudsdkdws.v2.model.create_snapshot_policy_request_body import CreateSnapshotPolicyRequestBody from huaweicloudsdkdws.v2.model.create_snapshot_policy_response import CreateSnapshotPolicyResponse from huaweicloudsdkdws.v2.model.create_snapshot_request import CreateSnapshotRequest from huaweicloudsdkdws.v2.model.create_snapshot_request_body import CreateSnapshotRequestBody diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/__init__.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/__init__.py index 9e0b18f154..0f322e45e2 100644 --- a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/__init__.py +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/__init__.py @@ -25,8 +25,8 @@ from huaweicloudsdkdws.v2.model.associate_elb_response import AssociateElbResponse from huaweicloudsdkdws.v2.model.audit_dump_record import AuditDumpRecord from huaweicloudsdkdws.v2.model.availability_zone import AvailabilityZone -from huaweicloudsdkdws.v2.model.backup_policy import BackupPolicy from huaweicloudsdkdws.v2.model.backup_strategy_detail import BackupStrategyDetail +from huaweicloudsdkdws.v2.model.backup_strategy_request import BackupStrategyRequest from huaweicloudsdkdws.v2.model.batch_create_cluster_cn_request import BatchCreateClusterCnRequest from huaweicloudsdkdws.v2.model.batch_create_cluster_cn_response import BatchCreateClusterCnResponse from huaweicloudsdkdws.v2.model.batch_create_cn import BatchCreateCn @@ -113,6 +113,7 @@ from huaweicloudsdkdws.v2.model.create_logical_cluster_request_body import CreateLogicalClusterRequestBody from huaweicloudsdkdws.v2.model.create_logical_cluster_response import CreateLogicalClusterResponse from huaweicloudsdkdws.v2.model.create_snapshot_policy_request import CreateSnapshotPolicyRequest +from huaweicloudsdkdws.v2.model.create_snapshot_policy_request_body import CreateSnapshotPolicyRequestBody from huaweicloudsdkdws.v2.model.create_snapshot_policy_response import CreateSnapshotPolicyResponse from huaweicloudsdkdws.v2.model.create_snapshot_request import CreateSnapshotRequest from huaweicloudsdkdws.v2.model.create_snapshot_request_body import CreateSnapshotRequestBody diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/backup_strategy_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/backup_strategy_request.py new file mode 100644 index 0000000000..ddb48d52e0 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/backup_strategy_request.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BackupStrategyRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'policy_id': 'str', + 'policy_name': 'str', + 'backup_strategy': 'str', + 'backup_type': 'str', + 'backup_level': 'str' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'policy_name': 'policy_name', + 'backup_strategy': 'backup_strategy', + 'backup_type': 'backup_type', + 'backup_level': 'backup_level' + } + + def __init__(self, policy_id=None, policy_name=None, backup_strategy=None, backup_type=None, backup_level=None): + """BackupStrategyRequest + + The model defined in huaweicloud sdk + + :param policy_id: 策略ID。 + :type policy_id: str + :param policy_name: 策略名称。添加备份策略时为必选字段。策略名称在4位到92位之间,必须以字母开头,不区分大小写,可以包含字母、数字、中划线或者下划线,不能包含其他特殊字符,并且名称唯一。 + :type policy_name: str + :param backup_strategy: 执行策略。添加备份策略时为必选字段。符合Cron表达式格式。 + :type backup_strategy: str + :param backup_type: 备份类型: - full:全量。 - increment:增量。 + :type backup_type: str + :param backup_level: 备份级别: - cluster:集群级。 + :type backup_level: str + """ + + + + self._policy_id = None + self._policy_name = None + self._backup_strategy = None + self._backup_type = None + self._backup_level = None + self.discriminator = None + + if policy_id is not None: + self.policy_id = policy_id + if policy_name is not None: + self.policy_name = policy_name + if backup_strategy is not None: + self.backup_strategy = backup_strategy + if backup_type is not None: + self.backup_type = backup_type + if backup_level is not None: + self.backup_level = backup_level + + @property + def policy_id(self): + """Gets the policy_id of this BackupStrategyRequest. + + 策略ID。 + + :return: The policy_id of this BackupStrategyRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this BackupStrategyRequest. + + 策略ID。 + + :param policy_id: The policy_id of this BackupStrategyRequest. + :type policy_id: str + """ + self._policy_id = policy_id + + @property + def policy_name(self): + """Gets the policy_name of this BackupStrategyRequest. + + 策略名称。添加备份策略时为必选字段。策略名称在4位到92位之间,必须以字母开头,不区分大小写,可以包含字母、数字、中划线或者下划线,不能包含其他特殊字符,并且名称唯一。 + + :return: The policy_name of this BackupStrategyRequest. + :rtype: str + """ + return self._policy_name + + @policy_name.setter + def policy_name(self, policy_name): + """Sets the policy_name of this BackupStrategyRequest. + + 策略名称。添加备份策略时为必选字段。策略名称在4位到92位之间,必须以字母开头,不区分大小写,可以包含字母、数字、中划线或者下划线,不能包含其他特殊字符,并且名称唯一。 + + :param policy_name: The policy_name of this BackupStrategyRequest. + :type policy_name: str + """ + self._policy_name = policy_name + + @property + def backup_strategy(self): + """Gets the backup_strategy of this BackupStrategyRequest. + + 执行策略。添加备份策略时为必选字段。符合Cron表达式格式。 + + :return: The backup_strategy of this BackupStrategyRequest. + :rtype: str + """ + return self._backup_strategy + + @backup_strategy.setter + def backup_strategy(self, backup_strategy): + """Sets the backup_strategy of this BackupStrategyRequest. + + 执行策略。添加备份策略时为必选字段。符合Cron表达式格式。 + + :param backup_strategy: The backup_strategy of this BackupStrategyRequest. + :type backup_strategy: str + """ + self._backup_strategy = backup_strategy + + @property + def backup_type(self): + """Gets the backup_type of this BackupStrategyRequest. + + 备份类型: - full:全量。 - increment:增量。 + + :return: The backup_type of this BackupStrategyRequest. + :rtype: str + """ + return self._backup_type + + @backup_type.setter + def backup_type(self, backup_type): + """Sets the backup_type of this BackupStrategyRequest. + + 备份类型: - full:全量。 - increment:增量。 + + :param backup_type: The backup_type of this BackupStrategyRequest. + :type backup_type: str + """ + self._backup_type = backup_type + + @property + def backup_level(self): + """Gets the backup_level of this BackupStrategyRequest. + + 备份级别: - cluster:集群级。 + + :return: The backup_level of this BackupStrategyRequest. + :rtype: str + """ + return self._backup_level + + @backup_level.setter + def backup_level(self, backup_level): + """Sets the backup_level of this BackupStrategyRequest. + + 备份级别: - cluster:集群级。 + + :param backup_level: The backup_level of this BackupStrategyRequest. + :type backup_level: str + """ + self._backup_level = backup_level + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BackupStrategyRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/create_snapshot_policy_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/create_snapshot_policy_request.py index a822adec50..5e57ac01a5 100644 --- a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/create_snapshot_policy_request.py +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/create_snapshot_policy_request.py @@ -18,7 +18,7 @@ class CreateSnapshotPolicyRequest: openapi_types = { 'cluster_id': 'str', - 'body': 'BackupPolicy' + 'body': 'CreateSnapshotPolicyRequestBody' } attribute_map = { @@ -34,7 +34,7 @@ def __init__(self, cluster_id=None, body=None): :param cluster_id: 集群ID :type cluster_id: str :param body: Body of the CreateSnapshotPolicyRequest - :type body: :class:`huaweicloudsdkdws.v2.BackupPolicy` + :type body: :class:`huaweicloudsdkdws.v2.CreateSnapshotPolicyRequestBody` """ @@ -74,7 +74,7 @@ def body(self): """Gets the body of this CreateSnapshotPolicyRequest. :return: The body of this CreateSnapshotPolicyRequest. - :rtype: :class:`huaweicloudsdkdws.v2.BackupPolicy` + :rtype: :class:`huaweicloudsdkdws.v2.CreateSnapshotPolicyRequestBody` """ return self._body @@ -83,7 +83,7 @@ def body(self, body): """Sets the body of this CreateSnapshotPolicyRequest. :param body: The body of this CreateSnapshotPolicyRequest. - :type body: :class:`huaweicloudsdkdws.v2.BackupPolicy` + :type body: :class:`huaweicloudsdkdws.v2.CreateSnapshotPolicyRequestBody` """ self._body = body diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/backup_policy.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/create_snapshot_policy_request_body.py similarity index 57% rename from huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/backup_policy.py rename to huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/create_snapshot_policy_request_body.py index 88427152cd..430a98ad2d 100644 --- a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/backup_policy.py +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/create_snapshot_policy_request_body.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class BackupPolicy: +class CreateSnapshotPolicyRequestBody: """ Attributes: @@ -18,7 +18,7 @@ class BackupPolicy: openapi_types = { 'keep_day': 'int', - 'backup_strategies': 'BackupStrategyDetail', + 'backup_strategies': 'list[BackupStrategyRequest]', 'device_name': 'str', 'server_port': 'str', 'backup_param': 'str', @@ -35,21 +35,21 @@ class BackupPolicy: } def __init__(self, keep_day=None, backup_strategies=None, device_name=None, server_port=None, backup_param=None, server_ips=None): - """BackupPolicy + """CreateSnapshotPolicyRequestBody The model defined in huaweicloud sdk - :param keep_day: 保留天数。 + :param keep_day: 保留天数。输入值必须在1-31之间。 :type keep_day: int - :param backup_strategies: - :type backup_strategies: :class:`huaweicloudsdkdws.v2.BackupStrategyDetail` - :param device_name: 备份设备。 + :param backup_strategies: 策略列表信息。当需要添加策略时该参数为必选。 + :type backup_strategies: list[:class:`huaweicloudsdkdws.v2.BackupStrategyRequest`] + :param device_name: 备份设备。支持OBS、NBU和NFS。 :type device_name: str - :param server_port: 端口。 + :param server_port: NBU备份介质端口。备份介质为NBU时该字段必填。 :type server_port: str - :param backup_param: 参数。 + :param backup_param: NBU备份参数。备份介质为NBU时该字段必选。 :type backup_param: str - :param server_ips: 备份介质服务IP。 + :param server_ips: 备份介质服务IP。备份介质为NBU和NFS时该字段必填。备份介质为NBU时表示NBU服务器地址,备份介质为NFS时表示NFS服务器地址。 :type server_ips: list[str] """ @@ -78,128 +78,132 @@ def __init__(self, keep_day=None, backup_strategies=None, device_name=None, serv @property def keep_day(self): - """Gets the keep_day of this BackupPolicy. + """Gets the keep_day of this CreateSnapshotPolicyRequestBody. - 保留天数。 + 保留天数。输入值必须在1-31之间。 - :return: The keep_day of this BackupPolicy. + :return: The keep_day of this CreateSnapshotPolicyRequestBody. :rtype: int """ return self._keep_day @keep_day.setter def keep_day(self, keep_day): - """Sets the keep_day of this BackupPolicy. + """Sets the keep_day of this CreateSnapshotPolicyRequestBody. - 保留天数。 + 保留天数。输入值必须在1-31之间。 - :param keep_day: The keep_day of this BackupPolicy. + :param keep_day: The keep_day of this CreateSnapshotPolicyRequestBody. :type keep_day: int """ self._keep_day = keep_day @property def backup_strategies(self): - """Gets the backup_strategies of this BackupPolicy. + """Gets the backup_strategies of this CreateSnapshotPolicyRequestBody. - :return: The backup_strategies of this BackupPolicy. - :rtype: :class:`huaweicloudsdkdws.v2.BackupStrategyDetail` + 策略列表信息。当需要添加策略时该参数为必选。 + + :return: The backup_strategies of this CreateSnapshotPolicyRequestBody. + :rtype: list[:class:`huaweicloudsdkdws.v2.BackupStrategyRequest`] """ return self._backup_strategies @backup_strategies.setter def backup_strategies(self, backup_strategies): - """Sets the backup_strategies of this BackupPolicy. + """Sets the backup_strategies of this CreateSnapshotPolicyRequestBody. + + 策略列表信息。当需要添加策略时该参数为必选。 - :param backup_strategies: The backup_strategies of this BackupPolicy. - :type backup_strategies: :class:`huaweicloudsdkdws.v2.BackupStrategyDetail` + :param backup_strategies: The backup_strategies of this CreateSnapshotPolicyRequestBody. + :type backup_strategies: list[:class:`huaweicloudsdkdws.v2.BackupStrategyRequest`] """ self._backup_strategies = backup_strategies @property def device_name(self): - """Gets the device_name of this BackupPolicy. + """Gets the device_name of this CreateSnapshotPolicyRequestBody. - 备份设备。 + 备份设备。支持OBS、NBU和NFS。 - :return: The device_name of this BackupPolicy. + :return: The device_name of this CreateSnapshotPolicyRequestBody. :rtype: str """ return self._device_name @device_name.setter def device_name(self, device_name): - """Sets the device_name of this BackupPolicy. + """Sets the device_name of this CreateSnapshotPolicyRequestBody. - 备份设备。 + 备份设备。支持OBS、NBU和NFS。 - :param device_name: The device_name of this BackupPolicy. + :param device_name: The device_name of this CreateSnapshotPolicyRequestBody. :type device_name: str """ self._device_name = device_name @property def server_port(self): - """Gets the server_port of this BackupPolicy. + """Gets the server_port of this CreateSnapshotPolicyRequestBody. - 端口。 + NBU备份介质端口。备份介质为NBU时该字段必填。 - :return: The server_port of this BackupPolicy. + :return: The server_port of this CreateSnapshotPolicyRequestBody. :rtype: str """ return self._server_port @server_port.setter def server_port(self, server_port): - """Sets the server_port of this BackupPolicy. + """Sets the server_port of this CreateSnapshotPolicyRequestBody. - 端口。 + NBU备份介质端口。备份介质为NBU时该字段必填。 - :param server_port: The server_port of this BackupPolicy. + :param server_port: The server_port of this CreateSnapshotPolicyRequestBody. :type server_port: str """ self._server_port = server_port @property def backup_param(self): - """Gets the backup_param of this BackupPolicy. + """Gets the backup_param of this CreateSnapshotPolicyRequestBody. - 参数。 + NBU备份参数。备份介质为NBU时该字段必选。 - :return: The backup_param of this BackupPolicy. + :return: The backup_param of this CreateSnapshotPolicyRequestBody. :rtype: str """ return self._backup_param @backup_param.setter def backup_param(self, backup_param): - """Sets the backup_param of this BackupPolicy. + """Sets the backup_param of this CreateSnapshotPolicyRequestBody. - 参数。 + NBU备份参数。备份介质为NBU时该字段必选。 - :param backup_param: The backup_param of this BackupPolicy. + :param backup_param: The backup_param of this CreateSnapshotPolicyRequestBody. :type backup_param: str """ self._backup_param = backup_param @property def server_ips(self): - """Gets the server_ips of this BackupPolicy. + """Gets the server_ips of this CreateSnapshotPolicyRequestBody. - 备份介质服务IP。 + 备份介质服务IP。备份介质为NBU和NFS时该字段必填。备份介质为NBU时表示NBU服务器地址,备份介质为NFS时表示NFS服务器地址。 - :return: The server_ips of this BackupPolicy. + :return: The server_ips of this CreateSnapshotPolicyRequestBody. :rtype: list[str] """ return self._server_ips @server_ips.setter def server_ips(self, server_ips): - """Sets the server_ips of this BackupPolicy. + """Sets the server_ips of this CreateSnapshotPolicyRequestBody. - 备份介质服务IP。 + 备份介质服务IP。备份介质为NBU和NFS时该字段必填。备份介质为NBU时表示NBU服务器地址,备份介质为NFS时表示NFS服务器地址。 - :param server_ips: The server_ips of this BackupPolicy. + :param server_ips: The server_ips of this CreateSnapshotPolicyRequestBody. :type server_ips: list[str] """ self._server_ips = server_ips @@ -246,7 +250,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, BackupPolicy): + if not isinstance(other, CreateSnapshotPolicyRequestBody): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/scale_out.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/scale_out.py index 40c30c74e0..890252ccf2 100644 --- a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/scale_out.py +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/scale_out.py @@ -17,28 +17,35 @@ class ScaleOut: sensitive_list = [] openapi_types = { - 'count': 'int' + 'count': 'int', + 'subnet_id': 'str' } attribute_map = { - 'count': 'count' + 'count': 'count', + 'subnet_id': 'subnet_id' } - def __init__(self, count=None): + def __init__(self, count=None, subnet_id=None): """ScaleOut The model defined in huaweicloud sdk :param count: 扩容节点数。 :type count: int + :param subnet_id: 指定子网ID。 + :type subnet_id: str """ self._count = None + self._subnet_id = None self.discriminator = None self.count = count + if subnet_id is not None: + self.subnet_id = subnet_id @property def count(self): @@ -62,6 +69,28 @@ def count(self, count): """ self._count = count + @property + def subnet_id(self): + """Gets the subnet_id of this ScaleOut. + + 指定子网ID。 + + :return: The subnet_id of this ScaleOut. + :rtype: str + """ + return self._subnet_id + + @subnet_id.setter + def subnet_id(self, subnet_id): + """Sets the subnet_id of this ScaleOut. + + 指定子网ID。 + + :param subnet_id: The subnet_id of this ScaleOut. + :type subnet_id: str + """ + self._subnet_id = subnet_id + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-dws/requirements.txt b/huaweicloud-sdk-dws/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-dws/requirements.txt +++ b/huaweicloud-sdk-dws/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-dws/setup.py b/huaweicloud-sdk-dws/setup.py index cbaf35d471..845826c4bc 100644 --- a/huaweicloud-sdk-dws/setup.py +++ b/huaweicloud-sdk-dws/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdws" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ec/requirements.txt b/huaweicloud-sdk-ec/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-ec/requirements.txt +++ b/huaweicloud-sdk-ec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-ec/setup.py b/huaweicloud-sdk-ec/setup.py index 234d186d92..cb588acbf6 100644 --- a/huaweicloud-sdk-ec/setup.py +++ b/huaweicloud-sdk-ec/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkec" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ecs/requirements.txt b/huaweicloud-sdk-ecs/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-ecs/requirements.txt +++ b/huaweicloud-sdk-ecs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-ecs/setup.py b/huaweicloud-sdk-ecs/setup.py index 4bd25b3a3d..c7e47879aa 100644 --- a/huaweicloud-sdk-ecs/setup.py +++ b/huaweicloud-sdk-ecs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkecs" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-edgesec/requirements.txt b/huaweicloud-sdk-edgesec/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-edgesec/requirements.txt +++ b/huaweicloud-sdk-edgesec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-edgesec/setup.py b/huaweicloud-sdk-edgesec/setup.py index fefb99688f..97bc6703c5 100644 --- a/huaweicloud-sdk-edgesec/setup.py +++ b/huaweicloud-sdk-edgesec/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkedgesec" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eg/requirements.txt b/huaweicloud-sdk-eg/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-eg/requirements.txt +++ b/huaweicloud-sdk-eg/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-eg/setup.py b/huaweicloud-sdk-eg/setup.py index 159206bd33..29a2fa1ae7 100644 --- a/huaweicloud-sdk-eg/setup.py +++ b/huaweicloud-sdk-eg/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkeg" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eihealth/requirements.txt b/huaweicloud-sdk-eihealth/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-eihealth/requirements.txt +++ b/huaweicloud-sdk-eihealth/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-eihealth/setup.py b/huaweicloud-sdk-eihealth/setup.py index f550b16d24..fa01beb1b2 100644 --- a/huaweicloud-sdk-eihealth/setup.py +++ b/huaweicloud-sdk-eihealth/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkeihealth" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eip/requirements.txt b/huaweicloud-sdk-eip/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-eip/requirements.txt +++ b/huaweicloud-sdk-eip/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-eip/setup.py b/huaweicloud-sdk-eip/setup.py index cc18188a22..f1e48c4b71 100644 --- a/huaweicloud-sdk-eip/setup.py +++ b/huaweicloud-sdk-eip/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkeip" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-elb/requirements.txt b/huaweicloud-sdk-elb/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-elb/requirements.txt +++ b/huaweicloud-sdk-elb/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-elb/setup.py b/huaweicloud-sdk-elb/setup.py index 426f5e75d4..22200b1308 100644 --- a/huaweicloud-sdk-elb/setup.py +++ b/huaweicloud-sdk-elb/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkelb" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eps/requirements.txt b/huaweicloud-sdk-eps/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-eps/requirements.txt +++ b/huaweicloud-sdk-eps/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-eps/setup.py b/huaweicloud-sdk-eps/setup.py index 6bba400974..c1ffd5f0d8 100644 --- a/huaweicloud-sdk-eps/setup.py +++ b/huaweicloud-sdk-eps/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkeps" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-er/requirements.txt b/huaweicloud-sdk-er/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-er/requirements.txt +++ b/huaweicloud-sdk-er/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-er/setup.py b/huaweicloud-sdk-er/setup.py index 56aa283e50..b5b54d023d 100644 --- a/huaweicloud-sdk-er/setup.py +++ b/huaweicloud-sdk-er/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdker" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/__init__.py b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/__init__.py index a64cad4bee..285a8d63ab 100644 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/__init__.py +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/__init__.py @@ -76,17 +76,20 @@ from huaweicloudsdkevs.v2.model.quota_detail_backup_gigabytes import QuotaDetailBackupGigabytes from huaweicloudsdkevs.v2.model.quota_detail_backups import QuotaDetailBackups from huaweicloudsdkevs.v2.model.quota_detail_gigabytes import QuotaDetailGigabytes +from huaweicloudsdkevs.v2.model.quota_detail_gigabytes_essd import QuotaDetailGigabytesESSD from huaweicloudsdkevs.v2.model.quota_detail_gigabytes_gpssd import QuotaDetailGigabytesGPSSD from huaweicloudsdkevs.v2.model.quota_detail_gigabytes_sas import QuotaDetailGigabytesSAS from huaweicloudsdkevs.v2.model.quota_detail_gigabytes_sata import QuotaDetailGigabytesSATA from huaweicloudsdkevs.v2.model.quota_detail_gigabytes_ssd import QuotaDetailGigabytesSSD from huaweicloudsdkevs.v2.model.quota_detail_per_volume_gigabytes import QuotaDetailPerVolumeGigabytes from huaweicloudsdkevs.v2.model.quota_detail_snapshots import QuotaDetailSnapshots +from huaweicloudsdkevs.v2.model.quota_detail_snapshots_essd import QuotaDetailSnapshotsESSD from huaweicloudsdkevs.v2.model.quota_detail_snapshots_gpssd import QuotaDetailSnapshotsGPSSD from huaweicloudsdkevs.v2.model.quota_detail_snapshots_sas import QuotaDetailSnapshotsSAS from huaweicloudsdkevs.v2.model.quota_detail_snapshots_sata import QuotaDetailSnapshotsSATA from huaweicloudsdkevs.v2.model.quota_detail_snapshots_ssd import QuotaDetailSnapshotsSSD from huaweicloudsdkevs.v2.model.quota_detail_volumes import QuotaDetailVolumes +from huaweicloudsdkevs.v2.model.quota_detail_volumes_essd import QuotaDetailVolumesESSD from huaweicloudsdkevs.v2.model.quota_detail_volumes_gpssd import QuotaDetailVolumesGPSSD from huaweicloudsdkevs.v2.model.quota_detail_volumes_sas import QuotaDetailVolumesSAS from huaweicloudsdkevs.v2.model.quota_detail_volumes_sata import QuotaDetailVolumesSATA @@ -122,6 +125,11 @@ from huaweicloudsdkevs.v2.model.tag import Tag from huaweicloudsdkevs.v2.model.tags_for_list_volumes import TagsForListVolumes from huaweicloudsdkevs.v2.model.throughput import Throughput +from huaweicloudsdkevs.v2.model.unsubscribe_postpaid_volume_request import UnsubscribePostpaidVolumeRequest +from huaweicloudsdkevs.v2.model.unsubscribe_postpaid_volume_response import UnsubscribePostpaidVolumeResponse +from huaweicloudsdkevs.v2.model.unsubscribe_volume import UnsubscribeVolume +from huaweicloudsdkevs.v2.model.unsubscribe_volume_request_body import UnsubscribeVolumeRequestBody +from huaweicloudsdkevs.v2.model.unsubscribe_volume_response_body import UnsubscribeVolumeResponseBody from huaweicloudsdkevs.v2.model.update_snapshot_option import UpdateSnapshotOption from huaweicloudsdkevs.v2.model.update_snapshot_request import UpdateSnapshotRequest from huaweicloudsdkevs.v2.model.update_snapshot_request_body import UpdateSnapshotRequestBody diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/evs_async_client.py b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/evs_async_client.py index 1f3c2dd499..e55c745686 100644 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/evs_async_client.py +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/evs_async_client.py @@ -1810,6 +1810,73 @@ def _show_volume_tags_http_info(self, request): return http_info + def unsubscribe_postpaid_volume_async(self, request): + """退订包周期计费模式的云硬盘 + + 退订包周期计费模式的云硬盘,有如下约束: + - 系统盘、启动盘不可使用当前接口退订,必须和弹性云服务器一起退订 + - 接口的请求body体最多可以传60个云硬盘id + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UnsubscribePostpaidVolume + :type request: :class:`huaweicloudsdkevs.v2.UnsubscribePostpaidVolumeRequest` + :rtype: :class:`huaweicloudsdkevs.v2.UnsubscribePostpaidVolumeResponse` + """ + http_info = self._unsubscribe_postpaid_volume_http_info(request) + return self._call_api(**http_info) + + def unsubscribe_postpaid_volume_async_invoker(self, request): + http_info = self._unsubscribe_postpaid_volume_http_info(request) + return AsyncInvoker(self, http_info) + + def _unsubscribe_postpaid_volume_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/cloudvolumes/unsubscribe", + "request_type": request.__class__.__name__, + "response_type": "UnsubscribePostpaidVolumeResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def update_snapshot_async(self, request): """更新云硬盘快照 diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/evs_client.py b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/evs_client.py index d1157ccfa4..c9f38a7eaa 100644 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/evs_client.py +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/evs_client.py @@ -1810,6 +1810,73 @@ def _show_volume_tags_http_info(cls, request): return http_info + def unsubscribe_postpaid_volume(self, request): + """退订包周期计费模式的云硬盘 + + 退订包周期计费模式的云硬盘,有如下约束: + - 系统盘、启动盘不可使用当前接口退订,必须和弹性云服务器一起退订 + - 接口的请求body体最多可以传60个云硬盘id + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UnsubscribePostpaidVolume + :type request: :class:`huaweicloudsdkevs.v2.UnsubscribePostpaidVolumeRequest` + :rtype: :class:`huaweicloudsdkevs.v2.UnsubscribePostpaidVolumeResponse` + """ + http_info = self._unsubscribe_postpaid_volume_http_info(request) + return self._call_api(**http_info) + + def unsubscribe_postpaid_volume_invoker(self, request): + http_info = self._unsubscribe_postpaid_volume_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _unsubscribe_postpaid_volume_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/cloudvolumes/unsubscribe", + "request_type": request.__class__.__name__, + "response_type": "UnsubscribePostpaidVolumeResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def update_snapshot(self, request): """更新云硬盘快照 diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/__init__.py b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/__init__.py index 1bea305167..3f75dcf41a 100644 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/__init__.py +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/__init__.py @@ -74,17 +74,20 @@ from huaweicloudsdkevs.v2.model.quota_detail_backup_gigabytes import QuotaDetailBackupGigabytes from huaweicloudsdkevs.v2.model.quota_detail_backups import QuotaDetailBackups from huaweicloudsdkevs.v2.model.quota_detail_gigabytes import QuotaDetailGigabytes +from huaweicloudsdkevs.v2.model.quota_detail_gigabytes_essd import QuotaDetailGigabytesESSD from huaweicloudsdkevs.v2.model.quota_detail_gigabytes_gpssd import QuotaDetailGigabytesGPSSD from huaweicloudsdkevs.v2.model.quota_detail_gigabytes_sas import QuotaDetailGigabytesSAS from huaweicloudsdkevs.v2.model.quota_detail_gigabytes_sata import QuotaDetailGigabytesSATA from huaweicloudsdkevs.v2.model.quota_detail_gigabytes_ssd import QuotaDetailGigabytesSSD from huaweicloudsdkevs.v2.model.quota_detail_per_volume_gigabytes import QuotaDetailPerVolumeGigabytes from huaweicloudsdkevs.v2.model.quota_detail_snapshots import QuotaDetailSnapshots +from huaweicloudsdkevs.v2.model.quota_detail_snapshots_essd import QuotaDetailSnapshotsESSD from huaweicloudsdkevs.v2.model.quota_detail_snapshots_gpssd import QuotaDetailSnapshotsGPSSD from huaweicloudsdkevs.v2.model.quota_detail_snapshots_sas import QuotaDetailSnapshotsSAS from huaweicloudsdkevs.v2.model.quota_detail_snapshots_sata import QuotaDetailSnapshotsSATA from huaweicloudsdkevs.v2.model.quota_detail_snapshots_ssd import QuotaDetailSnapshotsSSD from huaweicloudsdkevs.v2.model.quota_detail_volumes import QuotaDetailVolumes +from huaweicloudsdkevs.v2.model.quota_detail_volumes_essd import QuotaDetailVolumesESSD from huaweicloudsdkevs.v2.model.quota_detail_volumes_gpssd import QuotaDetailVolumesGPSSD from huaweicloudsdkevs.v2.model.quota_detail_volumes_sas import QuotaDetailVolumesSAS from huaweicloudsdkevs.v2.model.quota_detail_volumes_sata import QuotaDetailVolumesSATA @@ -120,6 +123,11 @@ from huaweicloudsdkevs.v2.model.tag import Tag from huaweicloudsdkevs.v2.model.tags_for_list_volumes import TagsForListVolumes from huaweicloudsdkevs.v2.model.throughput import Throughput +from huaweicloudsdkevs.v2.model.unsubscribe_postpaid_volume_request import UnsubscribePostpaidVolumeRequest +from huaweicloudsdkevs.v2.model.unsubscribe_postpaid_volume_response import UnsubscribePostpaidVolumeResponse +from huaweicloudsdkevs.v2.model.unsubscribe_volume import UnsubscribeVolume +from huaweicloudsdkevs.v2.model.unsubscribe_volume_request_body import UnsubscribeVolumeRequestBody +from huaweicloudsdkevs.v2.model.unsubscribe_volume_response_body import UnsubscribeVolumeResponseBody from huaweicloudsdkevs.v2.model.update_snapshot_option import UpdateSnapshotOption from huaweicloudsdkevs.v2.model.update_snapshot_request import UpdateSnapshotRequest from huaweicloudsdkevs.v2.model.update_snapshot_request_body import UpdateSnapshotRequestBody diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/quota_detail_gigabytes_essd.py b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/quota_detail_gigabytes_essd.py new file mode 100644 index 0000000000..ade0f98fa4 --- /dev/null +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/quota_detail_gigabytes_essd.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class QuotaDetailGigabytesESSD: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'in_use': 'int', + 'limit': 'int', + 'reserved': 'int' + } + + attribute_map = { + 'in_use': 'in_use', + 'limit': 'limit', + 'reserved': 'reserved' + } + + def __init__(self, in_use=None, limit=None, reserved=None): + """QuotaDetailGigabytesESSD + + The model defined in huaweicloud sdk + + :param in_use: 已使用的数量。 + :type in_use: int + :param limit: 最大的数量。 + :type limit: int + :param reserved: 预留属性。 + :type reserved: int + """ + + + + self._in_use = None + self._limit = None + self._reserved = None + self.discriminator = None + + self.in_use = in_use + self.limit = limit + self.reserved = reserved + + @property + def in_use(self): + """Gets the in_use of this QuotaDetailGigabytesESSD. + + 已使用的数量。 + + :return: The in_use of this QuotaDetailGigabytesESSD. + :rtype: int + """ + return self._in_use + + @in_use.setter + def in_use(self, in_use): + """Sets the in_use of this QuotaDetailGigabytesESSD. + + 已使用的数量。 + + :param in_use: The in_use of this QuotaDetailGigabytesESSD. + :type in_use: int + """ + self._in_use = in_use + + @property + def limit(self): + """Gets the limit of this QuotaDetailGigabytesESSD. + + 最大的数量。 + + :return: The limit of this QuotaDetailGigabytesESSD. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this QuotaDetailGigabytesESSD. + + 最大的数量。 + + :param limit: The limit of this QuotaDetailGigabytesESSD. + :type limit: int + """ + self._limit = limit + + @property + def reserved(self): + """Gets the reserved of this QuotaDetailGigabytesESSD. + + 预留属性。 + + :return: The reserved of this QuotaDetailGigabytesESSD. + :rtype: int + """ + return self._reserved + + @reserved.setter + def reserved(self, reserved): + """Sets the reserved of this QuotaDetailGigabytesESSD. + + 预留属性。 + + :param reserved: The reserved of this QuotaDetailGigabytesESSD. + :type reserved: int + """ + self._reserved = reserved + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, QuotaDetailGigabytesESSD): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/quota_detail_snapshots_essd.py b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/quota_detail_snapshots_essd.py new file mode 100644 index 0000000000..b1a11f5231 --- /dev/null +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/quota_detail_snapshots_essd.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class QuotaDetailSnapshotsESSD: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'in_use': 'int', + 'limit': 'int', + 'reserved': 'int' + } + + attribute_map = { + 'in_use': 'in_use', + 'limit': 'limit', + 'reserved': 'reserved' + } + + def __init__(self, in_use=None, limit=None, reserved=None): + """QuotaDetailSnapshotsESSD + + The model defined in huaweicloud sdk + + :param in_use: 已使用的数量。 + :type in_use: int + :param limit: 最大的数量。 + :type limit: int + :param reserved: 预留属性。 + :type reserved: int + """ + + + + self._in_use = None + self._limit = None + self._reserved = None + self.discriminator = None + + self.in_use = in_use + self.limit = limit + self.reserved = reserved + + @property + def in_use(self): + """Gets the in_use of this QuotaDetailSnapshotsESSD. + + 已使用的数量。 + + :return: The in_use of this QuotaDetailSnapshotsESSD. + :rtype: int + """ + return self._in_use + + @in_use.setter + def in_use(self, in_use): + """Sets the in_use of this QuotaDetailSnapshotsESSD. + + 已使用的数量。 + + :param in_use: The in_use of this QuotaDetailSnapshotsESSD. + :type in_use: int + """ + self._in_use = in_use + + @property + def limit(self): + """Gets the limit of this QuotaDetailSnapshotsESSD. + + 最大的数量。 + + :return: The limit of this QuotaDetailSnapshotsESSD. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this QuotaDetailSnapshotsESSD. + + 最大的数量。 + + :param limit: The limit of this QuotaDetailSnapshotsESSD. + :type limit: int + """ + self._limit = limit + + @property + def reserved(self): + """Gets the reserved of this QuotaDetailSnapshotsESSD. + + 预留属性。 + + :return: The reserved of this QuotaDetailSnapshotsESSD. + :rtype: int + """ + return self._reserved + + @reserved.setter + def reserved(self, reserved): + """Sets the reserved of this QuotaDetailSnapshotsESSD. + + 预留属性。 + + :param reserved: The reserved of this QuotaDetailSnapshotsESSD. + :type reserved: int + """ + self._reserved = reserved + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, QuotaDetailSnapshotsESSD): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/quota_detail_volumes_essd.py b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/quota_detail_volumes_essd.py new file mode 100644 index 0000000000..2bbb41c397 --- /dev/null +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/quota_detail_volumes_essd.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class QuotaDetailVolumesESSD: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'in_use': 'int', + 'limit': 'int', + 'reserved': 'int' + } + + attribute_map = { + 'in_use': 'in_use', + 'limit': 'limit', + 'reserved': 'reserved' + } + + def __init__(self, in_use=None, limit=None, reserved=None): + """QuotaDetailVolumesESSD + + The model defined in huaweicloud sdk + + :param in_use: 已使用的数量。 + :type in_use: int + :param limit: 最大的数量。 + :type limit: int + :param reserved: 预留属性。 + :type reserved: int + """ + + + + self._in_use = None + self._limit = None + self._reserved = None + self.discriminator = None + + self.in_use = in_use + self.limit = limit + self.reserved = reserved + + @property + def in_use(self): + """Gets the in_use of this QuotaDetailVolumesESSD. + + 已使用的数量。 + + :return: The in_use of this QuotaDetailVolumesESSD. + :rtype: int + """ + return self._in_use + + @in_use.setter + def in_use(self, in_use): + """Sets the in_use of this QuotaDetailVolumesESSD. + + 已使用的数量。 + + :param in_use: The in_use of this QuotaDetailVolumesESSD. + :type in_use: int + """ + self._in_use = in_use + + @property + def limit(self): + """Gets the limit of this QuotaDetailVolumesESSD. + + 最大的数量。 + + :return: The limit of this QuotaDetailVolumesESSD. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this QuotaDetailVolumesESSD. + + 最大的数量。 + + :param limit: The limit of this QuotaDetailVolumesESSD. + :type limit: int + """ + self._limit = limit + + @property + def reserved(self): + """Gets the reserved of this QuotaDetailVolumesESSD. + + 预留属性。 + + :return: The reserved of this QuotaDetailVolumesESSD. + :rtype: int + """ + return self._reserved + + @reserved.setter + def reserved(self, reserved): + """Sets the reserved of this QuotaDetailVolumesESSD. + + 预留属性。 + + :param reserved: The reserved of this QuotaDetailVolumesESSD. + :type reserved: int + """ + self._reserved = reserved + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, QuotaDetailVolumesESSD): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/quota_list.py b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/quota_list.py index 2e7c0e17f2..c47de6f477 100644 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/quota_list.py +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/quota_list.py @@ -32,6 +32,9 @@ class QuotaList: 'gigabytes_ssd': 'QuotaDetailGigabytesSSD', 'snapshots_ssd': 'QuotaDetailSnapshotsSSD', 'volumes_ssd': 'QuotaDetailVolumesSSD', + 'gigabytes_essd': 'QuotaDetailGigabytesESSD', + 'snapshots_essd': 'QuotaDetailSnapshotsESSD', + 'volumes_essd': 'QuotaDetailVolumesESSD', 'gigabytes_gpssd': 'QuotaDetailGigabytesGPSSD', 'snapshots_gpssd': 'QuotaDetailSnapshotsGPSSD', 'volumes_gpssd': 'QuotaDetailVolumesGPSSD', @@ -54,13 +57,16 @@ class QuotaList: 'gigabytes_ssd': 'gigabytes_SSD', 'snapshots_ssd': 'snapshots_SSD', 'volumes_ssd': 'volumes_SSD', + 'gigabytes_essd': 'gigabytes_ESSD', + 'snapshots_essd': 'snapshots_ESSD', + 'volumes_essd': 'volumes_ESSD', 'gigabytes_gpssd': 'gigabytes_GPSSD', 'snapshots_gpssd': 'snapshots_GPSSD', 'volumes_gpssd': 'volumes_GPSSD', 'per_volume_gigabytes': 'per_volume_gigabytes' } - def __init__(self, backup_gigabytes=None, backups=None, gigabytes=None, id=None, snapshots=None, volumes=None, gigabytes_sata=None, snapshots_sata=None, volumes_sata=None, gigabytes_sas=None, snapshots_sas=None, volumes_sas=None, gigabytes_ssd=None, snapshots_ssd=None, volumes_ssd=None, gigabytes_gpssd=None, snapshots_gpssd=None, volumes_gpssd=None, per_volume_gigabytes=None): + def __init__(self, backup_gigabytes=None, backups=None, gigabytes=None, id=None, snapshots=None, volumes=None, gigabytes_sata=None, snapshots_sata=None, volumes_sata=None, gigabytes_sas=None, snapshots_sas=None, volumes_sas=None, gigabytes_ssd=None, snapshots_ssd=None, volumes_ssd=None, gigabytes_essd=None, snapshots_essd=None, volumes_essd=None, gigabytes_gpssd=None, snapshots_gpssd=None, volumes_gpssd=None, per_volume_gigabytes=None): """QuotaList The model defined in huaweicloud sdk @@ -95,6 +101,12 @@ def __init__(self, backup_gigabytes=None, backups=None, gigabytes=None, id=None, :type snapshots_ssd: :class:`huaweicloudsdkevs.v2.QuotaDetailSnapshotsSSD` :param volumes_ssd: :type volumes_ssd: :class:`huaweicloudsdkevs.v2.QuotaDetailVolumesSSD` + :param gigabytes_essd: + :type gigabytes_essd: :class:`huaweicloudsdkevs.v2.QuotaDetailGigabytesESSD` + :param snapshots_essd: + :type snapshots_essd: :class:`huaweicloudsdkevs.v2.QuotaDetailSnapshotsESSD` + :param volumes_essd: + :type volumes_essd: :class:`huaweicloudsdkevs.v2.QuotaDetailVolumesESSD` :param gigabytes_gpssd: :type gigabytes_gpssd: :class:`huaweicloudsdkevs.v2.QuotaDetailGigabytesGPSSD` :param snapshots_gpssd: @@ -122,6 +134,9 @@ def __init__(self, backup_gigabytes=None, backups=None, gigabytes=None, id=None, self._gigabytes_ssd = None self._snapshots_ssd = None self._volumes_ssd = None + self._gigabytes_essd = None + self._snapshots_essd = None + self._volumes_essd = None self._gigabytes_gpssd = None self._snapshots_gpssd = None self._volumes_gpssd = None @@ -152,6 +167,12 @@ def __init__(self, backup_gigabytes=None, backups=None, gigabytes=None, id=None, self.snapshots_ssd = snapshots_ssd if volumes_ssd is not None: self.volumes_ssd = volumes_ssd + if gigabytes_essd is not None: + self.gigabytes_essd = gigabytes_essd + if snapshots_essd is not None: + self.snapshots_essd = snapshots_essd + if volumes_essd is not None: + self.volumes_essd = volumes_essd if gigabytes_gpssd is not None: self.gigabytes_gpssd = gigabytes_gpssd if snapshots_gpssd is not None: @@ -435,6 +456,60 @@ def volumes_ssd(self, volumes_ssd): """ self._volumes_ssd = volumes_ssd + @property + def gigabytes_essd(self): + """Gets the gigabytes_essd of this QuotaList. + + :return: The gigabytes_essd of this QuotaList. + :rtype: :class:`huaweicloudsdkevs.v2.QuotaDetailGigabytesESSD` + """ + return self._gigabytes_essd + + @gigabytes_essd.setter + def gigabytes_essd(self, gigabytes_essd): + """Sets the gigabytes_essd of this QuotaList. + + :param gigabytes_essd: The gigabytes_essd of this QuotaList. + :type gigabytes_essd: :class:`huaweicloudsdkevs.v2.QuotaDetailGigabytesESSD` + """ + self._gigabytes_essd = gigabytes_essd + + @property + def snapshots_essd(self): + """Gets the snapshots_essd of this QuotaList. + + :return: The snapshots_essd of this QuotaList. + :rtype: :class:`huaweicloudsdkevs.v2.QuotaDetailSnapshotsESSD` + """ + return self._snapshots_essd + + @snapshots_essd.setter + def snapshots_essd(self, snapshots_essd): + """Sets the snapshots_essd of this QuotaList. + + :param snapshots_essd: The snapshots_essd of this QuotaList. + :type snapshots_essd: :class:`huaweicloudsdkevs.v2.QuotaDetailSnapshotsESSD` + """ + self._snapshots_essd = snapshots_essd + + @property + def volumes_essd(self): + """Gets the volumes_essd of this QuotaList. + + :return: The volumes_essd of this QuotaList. + :rtype: :class:`huaweicloudsdkevs.v2.QuotaDetailVolumesESSD` + """ + return self._volumes_essd + + @volumes_essd.setter + def volumes_essd(self, volumes_essd): + """Sets the volumes_essd of this QuotaList. + + :param volumes_essd: The volumes_essd of this QuotaList. + :type volumes_essd: :class:`huaweicloudsdkevs.v2.QuotaDetailVolumesESSD` + """ + self._volumes_essd = volumes_essd + @property def gigabytes_gpssd(self): """Gets the gigabytes_gpssd of this QuotaList. diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/unsubscribe_postpaid_volume_request.py b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/unsubscribe_postpaid_volume_request.py new file mode 100644 index 0000000000..a0aace2c01 --- /dev/null +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/unsubscribe_postpaid_volume_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UnsubscribePostpaidVolumeRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'UnsubscribeVolumeRequestBody' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """UnsubscribePostpaidVolumeRequest + + The model defined in huaweicloud sdk + + :param body: Body of the UnsubscribePostpaidVolumeRequest + :type body: :class:`huaweicloudsdkevs.v2.UnsubscribeVolumeRequestBody` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this UnsubscribePostpaidVolumeRequest. + + :return: The body of this UnsubscribePostpaidVolumeRequest. + :rtype: :class:`huaweicloudsdkevs.v2.UnsubscribeVolumeRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UnsubscribePostpaidVolumeRequest. + + :param body: The body of this UnsubscribePostpaidVolumeRequest. + :type body: :class:`huaweicloudsdkevs.v2.UnsubscribeVolumeRequestBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UnsubscribePostpaidVolumeRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/unsubscribe_postpaid_volume_response.py b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/unsubscribe_postpaid_volume_response.py new file mode 100644 index 0000000000..45c6acd213 --- /dev/null +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/unsubscribe_postpaid_volume_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UnsubscribePostpaidVolumeResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'list[UnsubscribeVolumeResponseBody]' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """UnsubscribePostpaidVolumeResponse + + The model defined in huaweicloud sdk + + :param body: + :type body: list[:class:`huaweicloudsdkevs.v2.UnsubscribeVolumeResponseBody`] + """ + + super(UnsubscribePostpaidVolumeResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this UnsubscribePostpaidVolumeResponse. + + :return: The body of this UnsubscribePostpaidVolumeResponse. + :rtype: list[:class:`huaweicloudsdkevs.v2.UnsubscribeVolumeResponseBody`] + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UnsubscribePostpaidVolumeResponse. + + :param body: The body of this UnsubscribePostpaidVolumeResponse. + :type body: list[:class:`huaweicloudsdkevs.v2.UnsubscribeVolumeResponseBody`] + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UnsubscribePostpaidVolumeResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/unsubscribe_volume.py b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/unsubscribe_volume.py new file mode 100644 index 0000000000..f11d6b7a96 --- /dev/null +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/unsubscribe_volume.py @@ -0,0 +1,200 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UnsubscribeVolume: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'volume_id': 'str', + 'order_id': 'str', + 'result': 'str', + 'fail_reason': 'str' + } + + attribute_map = { + 'volume_id': 'volume_id', + 'order_id': 'order_id', + 'result': 'result', + 'fail_reason': 'fail_reason' + } + + def __init__(self, volume_id=None, order_id=None, result=None, fail_reason=None): + """UnsubscribeVolume + + The model defined in huaweicloud sdk + + :param volume_id: 卷id对应的结果 + :type volume_id: str + :param order_id: 卷id对应的退订订单id,如果是已到期的云硬盘退订,则不显示此字段。 + :type order_id: str + :param result: volume_id对应的退订结果,只有SUCCESS 和 FAIL两种结果。 + :type result: str + :param fail_reason: 当result为FAIL时,此字段显示具体的失败原因。 result为SUCCESS时,不显示此字段。 + :type fail_reason: str + """ + + + + self._volume_id = None + self._order_id = None + self._result = None + self._fail_reason = None + self.discriminator = None + + self.volume_id = volume_id + if order_id is not None: + self.order_id = order_id + self.result = result + if fail_reason is not None: + self.fail_reason = fail_reason + + @property + def volume_id(self): + """Gets the volume_id of this UnsubscribeVolume. + + 卷id对应的结果 + + :return: The volume_id of this UnsubscribeVolume. + :rtype: str + """ + return self._volume_id + + @volume_id.setter + def volume_id(self, volume_id): + """Sets the volume_id of this UnsubscribeVolume. + + 卷id对应的结果 + + :param volume_id: The volume_id of this UnsubscribeVolume. + :type volume_id: str + """ + self._volume_id = volume_id + + @property + def order_id(self): + """Gets the order_id of this UnsubscribeVolume. + + 卷id对应的退订订单id,如果是已到期的云硬盘退订,则不显示此字段。 + + :return: The order_id of this UnsubscribeVolume. + :rtype: str + """ + return self._order_id + + @order_id.setter + def order_id(self, order_id): + """Sets the order_id of this UnsubscribeVolume. + + 卷id对应的退订订单id,如果是已到期的云硬盘退订,则不显示此字段。 + + :param order_id: The order_id of this UnsubscribeVolume. + :type order_id: str + """ + self._order_id = order_id + + @property + def result(self): + """Gets the result of this UnsubscribeVolume. + + volume_id对应的退订结果,只有SUCCESS 和 FAIL两种结果。 + + :return: The result of this UnsubscribeVolume. + :rtype: str + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this UnsubscribeVolume. + + volume_id对应的退订结果,只有SUCCESS 和 FAIL两种结果。 + + :param result: The result of this UnsubscribeVolume. + :type result: str + """ + self._result = result + + @property + def fail_reason(self): + """Gets the fail_reason of this UnsubscribeVolume. + + 当result为FAIL时,此字段显示具体的失败原因。 result为SUCCESS时,不显示此字段。 + + :return: The fail_reason of this UnsubscribeVolume. + :rtype: str + """ + return self._fail_reason + + @fail_reason.setter + def fail_reason(self, fail_reason): + """Sets the fail_reason of this UnsubscribeVolume. + + 当result为FAIL时,此字段显示具体的失败原因。 result为SUCCESS时,不显示此字段。 + + :param fail_reason: The fail_reason of this UnsubscribeVolume. + :type fail_reason: str + """ + self._fail_reason = fail_reason + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UnsubscribeVolume): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/unsubscribe_volume_request_body.py b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/unsubscribe_volume_request_body.py new file mode 100644 index 0000000000..7f8c034acd --- /dev/null +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/unsubscribe_volume_request_body.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UnsubscribeVolumeRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'volume_ids': 'list[str]' + } + + attribute_map = { + 'volume_ids': 'volume_ids' + } + + def __init__(self, volume_ids=None): + """UnsubscribeVolumeRequestBody + + The model defined in huaweicloud sdk + + :param volume_ids: 退订包周期云硬盘的结果。 + :type volume_ids: list[str] + """ + + + + self._volume_ids = None + self.discriminator = None + + self.volume_ids = volume_ids + + @property + def volume_ids(self): + """Gets the volume_ids of this UnsubscribeVolumeRequestBody. + + 退订包周期云硬盘的结果。 + + :return: The volume_ids of this UnsubscribeVolumeRequestBody. + :rtype: list[str] + """ + return self._volume_ids + + @volume_ids.setter + def volume_ids(self, volume_ids): + """Sets the volume_ids of this UnsubscribeVolumeRequestBody. + + 退订包周期云硬盘的结果。 + + :param volume_ids: The volume_ids of this UnsubscribeVolumeRequestBody. + :type volume_ids: list[str] + """ + self._volume_ids = volume_ids + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UnsubscribeVolumeRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/unsubscribe_volume_response_body.py b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/unsubscribe_volume_response_body.py new file mode 100644 index 0000000000..0085d5355d --- /dev/null +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/unsubscribe_volume_response_body.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UnsubscribeVolumeResponseBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'results': 'list[UnsubscribeVolume]' + } + + attribute_map = { + 'results': 'results' + } + + def __init__(self, results=None): + """UnsubscribeVolumeResponseBody + + The model defined in huaweicloud sdk + + :param results: 退订包周期云硬盘的结果。 + :type results: list[:class:`huaweicloudsdkevs.v2.UnsubscribeVolume`] + """ + + + + self._results = None + self.discriminator = None + + self.results = results + + @property + def results(self): + """Gets the results of this UnsubscribeVolumeResponseBody. + + 退订包周期云硬盘的结果。 + + :return: The results of this UnsubscribeVolumeResponseBody. + :rtype: list[:class:`huaweicloudsdkevs.v2.UnsubscribeVolume`] + """ + return self._results + + @results.setter + def results(self, results): + """Sets the results of this UnsubscribeVolumeResponseBody. + + 退订包周期云硬盘的结果。 + + :param results: The results of this UnsubscribeVolumeResponseBody. + :type results: list[:class:`huaweicloudsdkevs.v2.UnsubscribeVolume`] + """ + self._results = results + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UnsubscribeVolumeResponseBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-evs/requirements.txt b/huaweicloud-sdk-evs/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-evs/requirements.txt +++ b/huaweicloud-sdk-evs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-evs/setup.py b/huaweicloud-sdk-evs/setup.py index 7eb1790441..a9a6031610 100644 --- a/huaweicloud-sdk-evs/setup.py +++ b/huaweicloud-sdk-evs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkevs" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-frs/requirements.txt b/huaweicloud-sdk-frs/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-frs/requirements.txt +++ b/huaweicloud-sdk-frs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-frs/setup.py b/huaweicloud-sdk-frs/setup.py index 59a2d552be..084787dc81 100644 --- a/huaweicloud-sdk-frs/setup.py +++ b/huaweicloud-sdk-frs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkfrs" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-functiongraph/requirements.txt b/huaweicloud-sdk-functiongraph/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-functiongraph/requirements.txt +++ b/huaweicloud-sdk-functiongraph/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-functiongraph/setup.py b/huaweicloud-sdk-functiongraph/setup.py index 7e6d6b61f9..c040a2143d 100644 --- a/huaweicloud-sdk-functiongraph/setup.py +++ b/huaweicloud-sdk-functiongraph/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkfunctiongraph" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ga/requirements.txt b/huaweicloud-sdk-ga/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-ga/requirements.txt +++ b/huaweicloud-sdk-ga/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-ga/setup.py b/huaweicloud-sdk-ga/setup.py index 03a3837b51..af6d4aebda 100644 --- a/huaweicloud-sdk-ga/setup.py +++ b/huaweicloud-sdk-ga/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkga" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdb/requirements.txt b/huaweicloud-sdk-gaussdb/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-gaussdb/requirements.txt +++ b/huaweicloud-sdk-gaussdb/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdb/setup.py b/huaweicloud-sdk-gaussdb/setup.py index fc9b229c27..76bc942084 100644 --- a/huaweicloud-sdk-gaussdb/setup.py +++ b/huaweicloud-sdk-gaussdb/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkgaussdb" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdbfornosql/requirements.txt b/huaweicloud-sdk-gaussdbfornosql/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-gaussdbfornosql/requirements.txt +++ b/huaweicloud-sdk-gaussdbfornosql/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdbfornosql/setup.py b/huaweicloud-sdk-gaussdbfornosql/setup.py index 43704c7a5b..243a122303 100644 --- a/huaweicloud-sdk-gaussdbfornosql/setup.py +++ b/huaweicloud-sdk-gaussdbfornosql/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkgaussdbfornosql" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/__init__.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/__init__.py index 100b9970a4..71cb1251c8 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/__init__.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/__init__.py @@ -10,6 +10,9 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.add_tags_request_body import AddTagsRequestBody from huaweicloudsdkgaussdbforopengauss.v3.model.allow_db_privileges_request import AllowDbPrivilegesRequest from huaweicloudsdkgaussdbforopengauss.v3.model.allow_db_privileges_response import AllowDbPrivilegesResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.allow_db_role_privileges_request import AllowDbRolePrivilegesRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.allow_db_role_privileges_request_body import AllowDbRolePrivilegesRequestBody +from huaweicloudsdkgaussdbforopengauss.v3.model.allow_db_role_privileges_response import AllowDbRolePrivilegesResponse from huaweicloudsdkgaussdbforopengauss.v3.model.applied_histories_result import AppliedHistoriesResult from huaweicloudsdkgaussdbforopengauss.v3.model.apply_configuration_request_body import ApplyConfigurationRequestBody from huaweicloudsdkgaussdbforopengauss.v3.model.attach_eip_request import AttachEipRequest @@ -21,13 +24,18 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.backup_policy_info import BackupPolicyInfo from huaweicloudsdkgaussdbforopengauss.v3.model.backups import Backups from huaweicloudsdkgaussdbforopengauss.v3.model.backups_result import BackupsResult +from huaweicloudsdkgaussdbforopengauss.v3.model.batch_show_upgrade_candidate_versions_request import BatchShowUpgradeCandidateVersionsRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.batch_show_upgrade_candidate_versions_response import BatchShowUpgradeCandidateVersionsResponse from huaweicloudsdkgaussdbforopengauss.v3.model.bind_eip_request_body import BindEIPRequestBody from huaweicloudsdkgaussdbforopengauss.v3.model.binded_eip_result import BindedEipResult +from huaweicloudsdkgaussdbforopengauss.v3.model.can_be_rollbacked_hotfix_detail import CanBeRollbackedHotfixDetail +from huaweicloudsdkgaussdbforopengauss.v3.model.can_be_upgraded_hotfix_detail import CanBeUpgradedHotfixDetail from huaweicloudsdkgaussdbforopengauss.v3.model.cn_info_before_reduce import CnInfoBeforeReduce from huaweicloudsdkgaussdbforopengauss.v3.model.components import Components from huaweicloudsdkgaussdbforopengauss.v3.model.configuration_parameter import ConfigurationParameter from huaweicloudsdkgaussdbforopengauss.v3.model.configuration_result import ConfigurationResult from huaweicloudsdkgaussdbforopengauss.v3.model.configuration_summary import ConfigurationSummary +from huaweicloudsdkgaussdbforopengauss.v3.model.configurations_result import ConfigurationsResult from huaweicloudsdkgaussdbforopengauss.v3.model.confirm_restored_data_request import ConfirmRestoredDataRequest from huaweicloudsdkgaussdbforopengauss.v3.model.confirm_restored_data_response import ConfirmRestoredDataResponse from huaweicloudsdkgaussdbforopengauss.v3.model.copy_configuration_request import CopyConfigurationRequest @@ -35,16 +43,24 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.create_configuration_template_request import CreateConfigurationTemplateRequest from huaweicloudsdkgaussdbforopengauss.v3.model.create_configuration_template_request_body import CreateConfigurationTemplateRequestBody from huaweicloudsdkgaussdbforopengauss.v3.model.create_configuration_template_response import CreateConfigurationTemplateResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.create_database_instance_request import CreateDatabaseInstanceRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.create_database_instance_request_body import CreateDatabaseInstanceRequestBody +from huaweicloudsdkgaussdbforopengauss.v3.model.create_database_instance_response import CreateDatabaseInstanceResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.create_database_instance_result import CreateDatabaseInstanceResult from huaweicloudsdkgaussdbforopengauss.v3.model.create_database_request import CreateDatabaseRequest from huaweicloudsdkgaussdbforopengauss.v3.model.create_database_response import CreateDatabaseResponse from huaweicloudsdkgaussdbforopengauss.v3.model.create_database_schemas_request import CreateDatabaseSchemasRequest from huaweicloudsdkgaussdbforopengauss.v3.model.create_database_schemas_response import CreateDatabaseSchemasResponse from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_instance_request import CreateDbInstanceRequest from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_instance_response import CreateDbInstanceResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_role_request import CreateDbRoleRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_role_request_body import CreateDbRoleRequestBody +from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_role_response import CreateDbRoleResponse from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_user_request import CreateDbUserRequest from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_user_response import CreateDbUserResponse from huaweicloudsdkgaussdbforopengauss.v3.model.create_gauss_db_instance_request import CreateGaussDbInstanceRequest from huaweicloudsdkgaussdbforopengauss.v3.model.create_gauss_db_instance_response import CreateGaussDbInstanceResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.create_instance_datastore_option import CreateInstanceDatastoreOption from huaweicloudsdkgaussdbforopengauss.v3.model.create_instance_request import CreateInstanceRequest from huaweicloudsdkgaussdbforopengauss.v3.model.create_instance_resp_item import CreateInstanceRespItem from huaweicloudsdkgaussdbforopengauss.v3.model.create_instance_response import CreateInstanceResponse @@ -62,6 +78,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.create_slow_log_download_response import CreateSlowLogDownloadResponse from huaweicloudsdkgaussdbforopengauss.v3.model.data_stroe_error_response import DataStroeErrorResponse from huaweicloudsdkgaussdbforopengauss.v3.model.datastore_option import DatastoreOption +from huaweicloudsdkgaussdbforopengauss.v3.model.datastore_result import DatastoreResult from huaweicloudsdkgaussdbforopengauss.v3.model.datastores_result import DatastoresResult from huaweicloudsdkgaussdbforopengauss.v3.model.db_user_pwd_request import DbUserPwdRequest from huaweicloudsdkgaussdbforopengauss.v3.model.delete_backup_error_response import DeleteBackupErrorResponse @@ -69,6 +86,9 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.delete_configuration_response import DeleteConfigurationResponse from huaweicloudsdkgaussdbforopengauss.v3.model.delete_database_request import DeleteDatabaseRequest from huaweicloudsdkgaussdbforopengauss.v3.model.delete_database_response import DeleteDatabaseResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.delete_database_schema_request import DeleteDatabaseSchemaRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.delete_database_schema_request_body import DeleteDatabaseSchemaRequestBody +from huaweicloudsdkgaussdbforopengauss.v3.model.delete_database_schema_response import DeleteDatabaseSchemaResponse from huaweicloudsdkgaussdbforopengauss.v3.model.delete_instance_request import DeleteInstanceRequest from huaweicloudsdkgaussdbforopengauss.v3.model.delete_instance_response import DeleteInstanceResponse from huaweicloudsdkgaussdbforopengauss.v3.model.delete_instance_tag_request import DeleteInstanceTagRequest @@ -90,6 +110,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.flavor_error_response import FlavorErrorResponse from huaweicloudsdkgaussdbforopengauss.v3.model.flavor_result import FlavorResult from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_db_error_response_body import GaussDBErrorResponseBody +from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_db_list_database_roles import GaussDBListDatabaseRoles from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_db_upgrade_instances_version_request import GaussDBUpgradeInstancesVersionRequest from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_database_for_creation import GaussDBforOpenDatabaseForCreation from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_create_schema_req import GaussDBforOpenGaussCreateSchemaReq @@ -103,6 +124,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_user_with_privilege import GaussDBforOpenGaussUserWithPrivilege from huaweicloudsdkgaussdbforopengauss.v3.model.get_restore_time_response_restore_time import GetRestoreTimeResponseRestoreTime from huaweicloudsdkgaussdbforopengauss.v3.model.hotfix_info import HotfixInfo +from huaweicloudsdkgaussdbforopengauss.v3.model.hotfix_info_result import HotfixInfoResult from huaweicloudsdkgaussdbforopengauss.v3.model.hotfix_rollback_infos import HotfixRollbackInfos from huaweicloudsdkgaussdbforopengauss.v3.model.hotfix_upgrade_infos import HotfixUpgradeInfos from huaweicloudsdkgaussdbforopengauss.v3.model.hotfix_version_info import HotfixVersionInfo @@ -122,8 +144,11 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_applied_histories_response import ListAppliedHistoriesResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_available_flavors_request import ListAvailableFlavorsRequest from huaweicloudsdkgaussdbforopengauss.v3.model.list_available_flavors_response import ListAvailableFlavorsResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.list_backups_details_request import ListBackupsDetailsRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.list_backups_details_response import ListBackupsDetailsResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_backups_request import ListBackupsRequest from huaweicloudsdkgaussdbforopengauss.v3.model.list_backups_response import ListBackupsResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.list_backups_result import ListBackupsResult from huaweicloudsdkgaussdbforopengauss.v3.model.list_binded_eips_request import ListBindedEipsRequest from huaweicloudsdkgaussdbforopengauss.v3.model.list_binded_eips_response import ListBindedEipsResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_cn_infos_before_reduce_request import ListCnInfosBeforeReduceRequest @@ -134,11 +159,17 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_configurations_diff_response import ListConfigurationsDiffResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_configurations_request import ListConfigurationsRequest from huaweicloudsdkgaussdbforopengauss.v3.model.list_configurations_response import ListConfigurationsResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.list_database_instances_request import ListDatabaseInstancesRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.list_database_instances_response import ListDatabaseInstancesResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.list_database_roles_request import ListDatabaseRolesRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.list_database_roles_response import ListDatabaseRolesResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_database_schemas_request import ListDatabaseSchemasRequest from huaweicloudsdkgaussdbforopengauss.v3.model.list_database_schemas_response import ListDatabaseSchemasResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_databases_request import ListDatabasesRequest from huaweicloudsdkgaussdbforopengauss.v3.model.list_databases_response import ListDatabasesResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_datastore import ListDatastore +from huaweicloudsdkgaussdbforopengauss.v3.model.list_datastores_details_request import ListDatastoresDetailsRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.list_datastores_details_response import ListDatastoresDetailsResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_datastores_request import ListDatastoresRequest from huaweicloudsdkgaussdbforopengauss.v3.model.list_datastores_response import ListDatastoresResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_db_backups_request import ListDbBackupsRequest @@ -153,6 +184,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_features_request import ListFeaturesRequest from huaweicloudsdkgaussdbforopengauss.v3.model.list_features_response import ListFeaturesResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_flavor_info import ListFlavorInfo +from huaweicloudsdkgaussdbforopengauss.v3.model.list_flavors_details_request import ListFlavorsDetailsRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.list_flavors_details_response import ListFlavorsDetailsResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_flavors_request import ListFlavorsRequest from huaweicloudsdkgaussdbforopengauss.v3.model.list_flavors_response import ListFlavorsResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_gauss_db_datastores_request import ListGaussDbDatastoresRequest @@ -186,6 +219,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_node_limit_sql_model_response_result import ListNodeLimitSqlModelResponseResult from huaweicloudsdkgaussdbforopengauss.v3.model.list_param_group_templates_request import ListParamGroupTemplatesRequest from huaweicloudsdkgaussdbforopengauss.v3.model.list_param_group_templates_response import ListParamGroupTemplatesResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.list_parameter_group_templates_request import ListParameterGroupTemplatesRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.list_parameter_group_templates_response import ListParameterGroupTemplatesResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_plugin_extensions_request import ListPluginExtensionsRequest from huaweicloudsdkgaussdbforopengauss.v3.model.list_plugin_extensions_request_body import ListPluginExtensionsRequestBody from huaweicloudsdkgaussdbforopengauss.v3.model.list_plugin_extensions_response import ListPluginExtensionsResponse @@ -194,8 +229,12 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_project_tags_request import ListProjectTagsRequest from huaweicloudsdkgaussdbforopengauss.v3.model.list_project_tags_response import ListProjectTagsResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_quota_result import ListQuotaResult +from huaweicloudsdkgaussdbforopengauss.v3.model.list_recycle_instances_details_request import ListRecycleInstancesDetailsRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.list_recycle_instances_details_response import ListRecycleInstancesDetailsResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_recycle_instances_request import ListRecycleInstancesRequest from huaweicloudsdkgaussdbforopengauss.v3.model.list_recycle_instances_response import ListRecycleInstancesResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.list_restorable_instances_details_request import ListRestorableInstancesDetailsRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.list_restorable_instances_details_response import ListRestorableInstancesDetailsResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_restorable_instances_request import ListRestorableInstancesRequest from huaweicloudsdkgaussdbforopengauss.v3.model.list_restorable_instances_response import ListRestorableInstancesResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_restore_times_request import ListRestoreTimesRequest @@ -257,6 +296,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.recovery_backup_source import RecoveryBackupSource from huaweicloudsdkgaussdbforopengauss.v3.model.recovery_backup_target import RecoveryBackupTarget from huaweicloudsdkgaussdbforopengauss.v3.model.recycle_instances_detail_result import RecycleInstancesDetailResult +from huaweicloudsdkgaussdbforopengauss.v3.model.recycle_instances_detail_result_v1 import RecycleInstancesDetailResultV1 from huaweicloudsdkgaussdbforopengauss.v3.model.recycle_policy import RecyclePolicy from huaweicloudsdkgaussdbforopengauss.v3.model.recycle_policy_request_body import RecyclePolicyRequestBody from huaweicloudsdkgaussdbforopengauss.v3.model.reset_configuration_request import ResetConfigurationRequest @@ -312,6 +352,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_configuration_response import ShowInstanceConfigurationResponse from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_disk_request import ShowInstanceDiskRequest from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_disk_response import ShowInstanceDiskResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_param_group_detail_request import ShowInstanceParamGroupDetailRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_param_group_detail_response import ShowInstanceParamGroupDetailResponse from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_param_group_request import ShowInstanceParamGroupRequest from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_param_group_response import ShowInstanceParamGroupResponse from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_snapshot_request import ShowInstanceSnapshotRequest @@ -321,14 +363,20 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.show_limit_task_node_option import ShowLimitTaskNodeOption from huaweicloudsdkgaussdbforopengauss.v3.model.show_limit_task_request import ShowLimitTaskRequest from huaweicloudsdkgaussdbforopengauss.v3.model.show_limit_task_response import ShowLimitTaskResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.show_parameter_group_detail_request import ShowParameterGroupDetailRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.show_parameter_group_detail_response import ShowParameterGroupDetailResponse from huaweicloudsdkgaussdbforopengauss.v3.model.show_project_quotas_request import ShowProjectQuotasRequest from huaweicloudsdkgaussdbforopengauss.v3.model.show_project_quotas_response import ShowProjectQuotasResponse from huaweicloudsdkgaussdbforopengauss.v3.model.show_recycle_policy_request import ShowRecyclePolicyRequest from huaweicloudsdkgaussdbforopengauss.v3.model.show_recycle_policy_response import ShowRecyclePolicyResponse from huaweicloudsdkgaussdbforopengauss.v3.model.show_slow_log_download_request import ShowSlowLogDownloadRequest from huaweicloudsdkgaussdbforopengauss.v3.model.show_slow_log_download_response import ShowSlowLogDownloadResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.show_source_instance_detail_request import ShowSourceInstanceDetailRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.show_source_instance_detail_response import ShowSourceInstanceDetailResponse from huaweicloudsdkgaussdbforopengauss.v3.model.show_ssl_cert_download_link_request import ShowSslCertDownloadLinkRequest from huaweicloudsdkgaussdbforopengauss.v3.model.show_ssl_cert_download_link_response import ShowSslCertDownloadLinkResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.show_upgrade_candidate_versions_details_request import ShowUpgradeCandidateVersionsDetailsRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.show_upgrade_candidate_versions_details_response import ShowUpgradeCandidateVersionsDetailsResponse from huaweicloudsdkgaussdbforopengauss.v3.model.show_upgrade_candidate_versions_request import ShowUpgradeCandidateVersionsRequest from huaweicloudsdkgaussdbforopengauss.v3.model.show_upgrade_candidate_versions_response import ShowUpgradeCandidateVersionsResponse from huaweicloudsdkgaussdbforopengauss.v3.model.slow_log_download_info import SlowLogDownloadInfo @@ -349,6 +397,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.switch_shard_request import SwitchShardRequest from huaweicloudsdkgaussdbforopengauss.v3.model.switch_shard_request_body import SwitchShardRequestBody from huaweicloudsdkgaussdbforopengauss.v3.model.switch_shard_response import SwitchShardResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.sync_limit_data_request import SyncLimitDataRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.sync_limit_data_response import SyncLimitDataResponse from huaweicloudsdkgaussdbforopengauss.v3.model.tag_result import TagResult from huaweicloudsdkgaussdbforopengauss.v3.model.tags_option import TagsOption from huaweicloudsdkgaussdbforopengauss.v3.model.tags_result import TagsResult diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py index 64f98d49a5..d0360c4253 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py @@ -170,6 +170,75 @@ def _allow_db_privileges_http_info(self, request): return http_info + def allow_db_role_privileges_async(self, request): + """授权数据库角色 + + 在数据库中设置角色的权限。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for AllowDbRolePrivileges + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.AllowDbRolePrivilegesRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.AllowDbRolePrivilegesResponse` + """ + http_info = self._allow_db_role_privileges_http_info(request) + return self._call_api(**http_info) + + def allow_db_role_privileges_async_invoker(self, request): + http_info = self._allow_db_role_privileges_http_info(request) + return AsyncInvoker(self, http_info) + + def _allow_db_role_privileges_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v3.1/{project_id}/instances/{instance_id}/db-privilege", + "request_type": request.__class__.__name__, + "response_type": "AllowDbRolePrivilegesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def attach_eip_async(self, request): """绑定/解绑弹性公网IP @@ -241,6 +310,73 @@ def _attach_eip_http_info(self, request): return http_info + def batch_show_upgrade_candidate_versions_async(self, request): + """查询批量实例可升级的版本和升级类型。 + + 查询批量实例可升级的版本和升级类型。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for BatchShowUpgradeCandidateVersions + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.BatchShowUpgradeCandidateVersionsRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.BatchShowUpgradeCandidateVersionsResponse` + """ + http_info = self._batch_show_upgrade_candidate_versions_http_info(request) + return self._call_api(**http_info) + + def batch_show_upgrade_candidate_versions_async_invoker(self, request): + http_info = self._batch_show_upgrade_candidate_versions_http_info(request) + return AsyncInvoker(self, http_info) + + def _batch_show_upgrade_candidate_versions_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v3.1/{project_id}/instances/db-upgrade/candidate-versions", + "request_type": request.__class__.__name__, + "response_type": "BatchShowUpgradeCandidateVersionsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def confirm_restored_data_async(self, request): """备份恢复到目标实例数据后执行数据确认 @@ -513,6 +649,73 @@ def _create_database_http_info(self, request): return http_info + def create_database_instance_async(self, request): + """创建数据库实例 + + 创建数据库实例 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateDatabaseInstance + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateDatabaseInstanceRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateDatabaseInstanceResponse` + """ + http_info = self._create_database_instance_http_info(request) + return self._call_api(**http_info) + + def create_database_instance_async_invoker(self, request): + http_info = self._create_database_instance_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_database_instance_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v3.2/{project_id}/instances", + "request_type": request.__class__.__name__, + "response_type": "CreateDatabaseInstanceResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_database_schemas_async(self, request): """创建数据库SCHEMA @@ -649,6 +852,75 @@ def _create_db_instance_http_info(self, request): return http_info + def create_db_role_async(self, request): + """创建数据库角色 + + 创建数据库角色。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateDbRole + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateDbRoleRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateDbRoleResponse` + """ + http_info = self._create_db_role_http_info(request) + return self._call_api(**http_info) + + def create_db_role_async_invoker(self, request): + http_info = self._create_db_role_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_db_role_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v3.1/{project_id}/instances/{instance_id}/db-role", + "request_type": request.__class__.__name__, + "response_type": "CreateDbRoleResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_db_user_async(self, request): """创建数据库用户 @@ -1191,31 +1463,31 @@ def _delete_database_http_info(self, request): return http_info - def delete_instance_async(self, request): - """删除实例 + def delete_database_schema_async(self, request): + """删除数据库SCHEMA - 删除数据库实例。 + 删除数据库schema。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteInstance - :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteInstanceRequest` - :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteInstanceResponse` + :param request: Request instance for DeleteDatabaseSchema + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteDatabaseSchemaRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteDatabaseSchemaResponse` """ - http_info = self._delete_instance_http_info(request) + http_info = self._delete_database_schema_http_info(request) return self._call_api(**http_info) - def delete_instance_async_invoker(self, request): - http_info = self._delete_instance_http_info(request) + def delete_database_schema_async_invoker(self, request): + http_info = self._delete_database_schema_http_info(request) return AsyncInvoker(self, http_info) - def _delete_instance_http_info(self, request): + def _delete_database_schema_http_info(self, request): http_info = { "method": "DELETE", - "resource_path": "/v3/{project_id}/instances/{instance_id}", + "resource_path": "/v3/{project_id}/instances/{instance_id}/schema", "request_type": request.__class__.__name__, - "response_type": "DeleteInstanceResponse" + "response_type": "DeleteDatabaseSchemaResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1237,13 +1509,15 @@ def _delete_instance_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) + ['application/json;charset=UTF-8']) auth_settings = [] @@ -1258,18 +1532,85 @@ def _delete_instance_http_info(self, request): return http_info - def delete_instance_tag_async(self, request): - """删除实例标签 + def delete_instance_async(self, request): + """删除实例 - 删除实例标签 + 删除数据库实例。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteInstanceTag - :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteInstanceTagRequest` - :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteInstanceTagResponse` - """ + :param request: Request instance for DeleteInstance + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteInstanceRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteInstanceResponse` + """ + http_info = self._delete_instance_http_info(request) + return self._call_api(**http_info) + + def delete_instance_async_invoker(self, request): + http_info = self._delete_instance_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_instance_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v3/{project_id}/instances/{instance_id}", + "request_type": request.__class__.__name__, + "response_type": "DeleteInstanceResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def delete_instance_tag_async(self, request): + """删除实例标签 + + 删除实例标签 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteInstanceTag + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteInstanceTagRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteInstanceTagResponse` + """ http_info = self._delete_instance_tag_http_info(request) return self._call_api(**http_info) @@ -1889,6 +2230,85 @@ def _list_backups_http_info(self, request): return http_info + def list_backups_details_async(self, request): + """查询备份列表 + + 获取备份列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListBackupsDetails + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListBackupsDetailsRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListBackupsDetailsResponse` + """ + http_info = self._list_backups_details_http_info(request) + return self._call_api(**http_info) + + def list_backups_details_async_invoker(self, request): + http_info = self._list_backups_details_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_backups_details_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3.2/{project_id}/backups", + "request_type": request.__class__.__name__, + "response_type": "ListBackupsDetailsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'instance_id' in local_var_params: + query_params.append(('instance_id', local_var_params['instance_id'])) + if 'backup_id' in local_var_params: + query_params.append(('backup_id', local_var_params['backup_id'])) + if 'backup_type' in local_var_params: + query_params.append(('backup_type', local_var_params['backup_type'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'begin_time' in local_var_params: + query_params.append(('begin_time', local_var_params['begin_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_binded_eips_async(self, request): """查询实例已绑定EIP列表 @@ -2238,6 +2658,163 @@ def _list_configurations_diff_http_info(self, request): return http_info + def list_database_instances_async(self, request): + """查询数据库实例列表/查询实例详情 + + 查询数据库实例列表/查询实例详情 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListDatabaseInstances + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListDatabaseInstancesRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListDatabaseInstancesResponse` + """ + http_info = self._list_database_instances_http_info(request) + return self._call_api(**http_info) + + def list_database_instances_async_invoker(self, request): + http_info = self._list_database_instances_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_database_instances_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3.3/{project_id}/instances", + "request_type": request.__class__.__name__, + "response_type": "ListDatabaseInstancesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'id' in local_var_params: + query_params.append(('id', local_var_params['id'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + if 'datastore_type' in local_var_params: + query_params.append(('datastore_type', local_var_params['datastore_type'])) + if 'vpc_id' in local_var_params: + query_params.append(('vpc_id', local_var_params['vpc_id'])) + if 'subnet_id' in local_var_params: + query_params.append(('subnet_id', local_var_params['subnet_id'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) + collection_formats['tags'] = 'csv' + if 'charge_mode' in local_var_params: + query_params.append(('charge_mode', local_var_params['charge_mode'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_database_roles_async(self, request): + """查询数据库角色列表 + + 查询数据库角色列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListDatabaseRoles + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListDatabaseRolesRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListDatabaseRolesResponse` + """ + http_info = self._list_database_roles_http_info(request) + return self._call_api(**http_info) + + def list_database_roles_async_invoker(self, request): + http_info = self._list_database_roles_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_database_roles_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3.1/{project_id}/instances/{instance_id}/db-role", + "request_type": request.__class__.__name__, + "response_type": "ListDatabaseRolesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_database_schemas_async(self, request): """查询数据库SCHEMA列表 @@ -2447,6 +3024,71 @@ def _list_datastores_http_info(self, request): return http_info + def list_datastores_details_async(self, request): + """查询引擎列表 + + 查询引擎列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListDatastoresDetails + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListDatastoresDetailsRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListDatastoresDetailsResponse` + """ + http_info = self._list_datastores_details_http_info(request) + return self._call_api(**http_info) + + def list_datastores_details_async_invoker(self, request): + http_info = self._list_datastores_details_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_datastores_details_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3.1/{project_id}/datastores", + "request_type": request.__class__.__name__, + "response_type": "ListDatastoresDetailsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_db_backups_async(self, request): """查询备份列表 @@ -2829,12 +3471,87 @@ def list_flavors_async_invoker(self, request): http_info = self._list_flavors_http_info(request) return AsyncInvoker(self, http_info) - def _list_flavors_http_info(self, request): + def _list_flavors_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/flavors", + "request_type": request.__class__.__name__, + "response_type": "ListFlavorsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'version' in local_var_params: + query_params.append(('version', local_var_params['version'])) + if 'spec_code' in local_var_params: + query_params.append(('spec_code', local_var_params['spec_code'])) + if 'ha_mode' in local_var_params: + query_params.append(('ha_mode', local_var_params['ha_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 = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_flavors_details_async(self, request): + """查询数据库规格 + + 查询数据库的规格信息。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListFlavorsDetails + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListFlavorsDetailsRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListFlavorsDetailsResponse` + """ + http_info = self._list_flavors_details_http_info(request) + return self._call_api(**http_info) + + def list_flavors_details_async_invoker(self, request): + http_info = self._list_flavors_details_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_flavors_details_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v3/{project_id}/flavors", + "resource_path": "/v3.2/{project_id}/flavors", "request_type": request.__class__.__name__, - "response_type": "ListFlavorsResponse" + "response_type": "ListFlavorsDetailsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3557,6 +4274,75 @@ def _list_param_group_templates_http_info(self, request): return http_info + def list_parameter_group_templates_async(self, request): + """获取参数模板列表 + + 获取参数模板列表,包括所有数据库的默认参数模板和用户创建的参数模板。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListParameterGroupTemplates + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListParameterGroupTemplatesRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListParameterGroupTemplatesResponse` + """ + http_info = self._list_parameter_group_templates_http_info(request) + return self._call_api(**http_info) + + def list_parameter_group_templates_async_invoker(self, request): + http_info = self._list_parameter_group_templates_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_parameter_group_templates_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3.2/{project_id}/configurations", + "request_type": request.__class__.__name__, + "response_type": "ListParameterGroupTemplatesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_plugin_extensions_async(self, request): """查询实例插件拓展信息 @@ -3827,6 +4613,77 @@ def _list_recycle_instances_http_info(self, request): return http_info + def list_recycle_instances_details_async(self, request): + """查询回收站所有引擎实例列表。 + + 查询回收站所有引擎实例列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListRecycleInstancesDetails + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListRecycleInstancesDetailsRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListRecycleInstancesDetailsResponse` + """ + http_info = self._list_recycle_instances_details_http_info(request) + return self._call_api(**http_info) + + def list_recycle_instances_details_async_invoker(self, request): + http_info = self._list_recycle_instances_details_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_recycle_instances_details_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3.1/{project_id}/recycle-instances", + "request_type": request.__class__.__name__, + "response_type": "ListRecycleInstancesDetailsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'instance_name' in local_var_params: + query_params.append(('instance_name', local_var_params['instance_name'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_restorable_instances_async(self, request): """查询可用于备份恢复的实例列表 @@ -3902,6 +4759,81 @@ def _list_restorable_instances_http_info(self, request): return http_info + def list_restorable_instances_details_async(self, request): + """查询可用于备份恢复的实例列表 + + 查询可用于备份恢复的实例列表,实例信息要符合备份条件。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListRestorableInstancesDetails + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListRestorableInstancesDetailsRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListRestorableInstancesDetailsResponse` + """ + http_info = self._list_restorable_instances_details_http_info(request) + return self._call_api(**http_info) + + def list_restorable_instances_details_async_invoker(self, request): + http_info = self._list_restorable_instances_details_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_restorable_instances_details_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3.1/{project_id}/restorable-instances", + "request_type": request.__class__.__name__, + "response_type": "ListRestorableInstancesDetailsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'source_instance_id' in local_var_params: + query_params.append(('source_instance_id', local_var_params['source_instance_id'])) + if 'backup_id' in local_var_params: + query_params.append(('backup_id', local_var_params['backup_id'])) + if 'restore_time' in local_var_params: + query_params.append(('restore_time', local_var_params['restore_time'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_restore_times_async(self, request): """查询可恢复时间段 @@ -5693,19 +6625,86 @@ def show_instance_disk_async(self, request): :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstanceDiskRequest` :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstanceDiskResponse` """ - http_info = self._show_instance_disk_http_info(request) + http_info = self._show_instance_disk_http_info(request) + return self._call_api(**http_info) + + def show_instance_disk_async_invoker(self, request): + http_info = self._show_instance_disk_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_instance_disk_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/instances/{instance_id}/volume-usage", + "request_type": request.__class__.__name__, + "response_type": "ShowInstanceDiskResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_instance_param_group_async(self, request): + """获取指定实例的参数模板 + + 获取指定实例的参数模板。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowInstanceParamGroup + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstanceParamGroupRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstanceParamGroupResponse` + """ + http_info = self._show_instance_param_group_http_info(request) return self._call_api(**http_info) - def show_instance_disk_async_invoker(self, request): - http_info = self._show_instance_disk_http_info(request) + def show_instance_param_group_async_invoker(self, request): + http_info = self._show_instance_param_group_http_info(request) return AsyncInvoker(self, http_info) - def _show_instance_disk_http_info(self, request): + def _show_instance_param_group_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v3/{project_id}/instances/{instance_id}/volume-usage", + "resource_path": "/v3.1/{project_id}/instances/{instance_id}/configurations", "request_type": request.__class__.__name__, - "response_type": "ShowInstanceDiskResponse" + "response_type": "ShowInstanceParamGroupResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5748,7 +6747,7 @@ def _show_instance_disk_http_info(self, request): return http_info - def show_instance_param_group_async(self, request): + def show_instance_param_group_detail_async(self, request): """获取指定实例的参数模板 获取指定实例的参数模板。 @@ -5756,23 +6755,23 @@ def show_instance_param_group_async(self, request): Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowInstanceParamGroup - :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstanceParamGroupRequest` - :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstanceParamGroupResponse` + :param request: Request instance for ShowInstanceParamGroupDetail + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstanceParamGroupDetailRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstanceParamGroupDetailResponse` """ - http_info = self._show_instance_param_group_http_info(request) + http_info = self._show_instance_param_group_detail_http_info(request) return self._call_api(**http_info) - def show_instance_param_group_async_invoker(self, request): - http_info = self._show_instance_param_group_http_info(request) + def show_instance_param_group_detail_async_invoker(self, request): + http_info = self._show_instance_param_group_detail_http_info(request) return AsyncInvoker(self, http_info) - def _show_instance_param_group_http_info(self, request): + def _show_instance_param_group_detail_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v3.1/{project_id}/instances/{instance_id}/configurations", + "resource_path": "/v3.2/{project_id}/instances/{instance_id}/configurations", "request_type": request.__class__.__name__, - "response_type": "ShowInstanceParamGroupResponse" + "response_type": "ShowInstanceParamGroupDetailResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5951,6 +6950,73 @@ def _show_job_detail_http_info(self, request): return http_info + def show_parameter_group_detail_async(self, request): + """查询参数模板详情 + + 根据参数模板ID获取指定参数模板详情。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowParameterGroupDetail + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowParameterGroupDetailRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowParameterGroupDetailResponse` + """ + http_info = self._show_parameter_group_detail_http_info(request) + return self._call_api(**http_info) + + def show_parameter_group_detail_async_invoker(self, request): + http_info = self._show_parameter_group_detail_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_parameter_group_detail_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3.1/{project_id}/configurations/{config_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowParameterGroupDetailResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'config_id' in local_var_params: + path_params['config_id'] = local_var_params['config_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_project_quotas_async(self, request): """查询租户的实例配额 @@ -6149,6 +7215,77 @@ def _show_slow_log_download_http_info(self, request): return http_info + def show_source_instance_detail_async(self, request): + """根据时间点或者备份文件查询原实例信息 + + 根据时间点或者备份文件查询原实例信息。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowSourceInstanceDetail + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowSourceInstanceDetailRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowSourceInstanceDetailResponse` + """ + http_info = self._show_source_instance_detail_http_info(request) + return self._call_api(**http_info) + + def show_source_instance_detail_async_invoker(self, request): + http_info = self._show_source_instance_detail_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_source_instance_detail_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3.1/{project_id}/instance-snapshot", + "request_type": request.__class__.__name__, + "response_type": "ShowSourceInstanceDetailResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'instance_id' in local_var_params: + query_params.append(('instance_id', local_var_params['instance_id'])) + if 'restore_time' in local_var_params: + query_params.append(('restore_time', local_var_params['restore_time'])) + if 'backup_id' in local_var_params: + query_params.append(('backup_id', local_var_params['backup_id'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_ssl_cert_download_link_async(self, request): """查询实例SSL证书下载地址 @@ -6283,6 +7420,73 @@ def _show_upgrade_candidate_versions_http_info(self, request): return http_info + def show_upgrade_candidate_versions_details_async(self, request): + """查询实例可升级版本 + + 查询实例可升级版本。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowUpgradeCandidateVersionsDetails + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowUpgradeCandidateVersionsDetailsRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowUpgradeCandidateVersionsDetailsResponse` + """ + http_info = self._show_upgrade_candidate_versions_details_http_info(request) + return self._call_api(**http_info) + + def show_upgrade_candidate_versions_details_async_invoker(self, request): + http_info = self._show_upgrade_candidate_versions_details_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_upgrade_candidate_versions_details_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3.1/{project_id}/instances/{instance_id}/db-upgrade/candidate-versions", + "request_type": request.__class__.__name__, + "response_type": "ShowUpgradeCandidateVersionsDetailsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def start_instance_async(self, request): """启动数据库 @@ -7053,14 +8257,14 @@ def _upgrade_instance_version_http_info(self, request): def upgrade_instances_version_async(self, request): """批量实例内核版本升级 - GaussDB批量实例版本升级。包括灰度升级,就地升级、热补丁升级三种升级方式。 + GaussDB批量实例版本升级。包括灰度升级,就地升级、热补丁升级三种升级方式。 就地升级: - 就地升级需要停止业务进行,会一次性升级集群中所有节点。就地升级需要暂停业务30分钟来升级。 - 灰度升级: - 升级自动提交:所有节点进程一起升级,在升级过程中有大概10秒的业务中断,不阻塞其他业务操作。 - 升级待观察:升级待观察,将数据库升级过程细分为升级,提交两个阶段。升级阶段可以根据部署方式细分为按分片或者按az的滚动升级,提交阶段可以对升级完成后的实例进行业务测试,根据需要可以选择提交升级,或者升级回退。每个主dn或者cn组件升级就有一次10秒业务中断。升级过程均是先管理面,再数据面,由备到主的升级方式。 分布式实例:根据分片数滚动升级,每次滚动升级可以根据选择的分片数进行指定分片数量的节点进行升级。 主备版实例:根据AZ数进行滚动升级,每次滚动升级可以根据选择的AZ进行1个分区或者多个分区进行升级。 - 热补丁升级: - 升级自动提交:热补丁自动升级并提交,中间无业务中断,仅修复产品bug。 + 就地升级需要停止业务进行,会一次性升级集群中所有节点。就地升级需要暂停业务30分钟来升级。 + 灰度升级: + 升级自动提交:所有节点进程一起升级,在升级过程中有大概10秒的业务中断,不阻塞其他业务操作。 + 升级待观察:升级待观察,将数据库升级过程细分为升级,提交两个阶段。升级阶段可以根据部署方式细分为按分片或者按az的滚动升级,提交阶段可以对升级完成后的实例进行业务测试,根据需要可以选择提交升级,或者升级回退。每个主dn或者cn组件升级就有一次10秒业务中断。升级过程均是先管理面,再数据面,由备到主的升级方式。 分布式实例:根据分片数滚动升级,每次滚动升级可以根据选择的分片数进行指定分片数量的节点进行升级。 主备版实例:根据AZ数进行滚动升级,每次滚动升级可以根据选择的AZ进行1个分区或者多个分区进行升级。 + 热补丁升级: + 升级自动提交:热补丁自动升级并提交,中间无业务中断,仅修复产品bug。 提交升级:提交升级。在升级完成,进入提交阶段时。业务测试正常后提交升级,完成本次升级流程。 升级回退:升级回退,在升级完成,进入提交阶段时。可以根据需要回退本次升级,回退到升级前的版本。 批量实例可升级版本大于当前所有实例的引擎版本,且选择的所有实例,其升级方式和操作方式要保持一致。 @@ -7621,6 +8825,71 @@ def _show_limit_task_http_info(self, request): return http_info + def sync_limit_data_async(self, request): + """同步内核侧sql限流数据至管控侧 + + 同步内核侧sql限流数据至管控侧 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for SyncLimitData + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.SyncLimitDataRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.SyncLimitDataResponse` + """ + http_info = self._sync_limit_data_http_info(request) + return self._call_api(**http_info) + + def sync_limit_data_async_invoker(self, request): + http_info = self._sync_limit_data_http_info(request) + return AsyncInvoker(self, http_info) + + def _sync_limit_data_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v3/{project_id}/instances/{instance_id}/sync-limit-task", + "request_type": request.__class__.__name__, + "response_type": "SyncLimitDataResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def update_limit_task_async(self, request): """修改限流任务 diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py index 3157ab865b..5ed7345c49 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py @@ -170,6 +170,75 @@ def _allow_db_privileges_http_info(cls, request): return http_info + def allow_db_role_privileges(self, request): + """授权数据库角色 + + 在数据库中设置角色的权限。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for AllowDbRolePrivileges + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.AllowDbRolePrivilegesRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.AllowDbRolePrivilegesResponse` + """ + http_info = self._allow_db_role_privileges_http_info(request) + return self._call_api(**http_info) + + def allow_db_role_privileges_invoker(self, request): + http_info = self._allow_db_role_privileges_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _allow_db_role_privileges_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v3.1/{project_id}/instances/{instance_id}/db-privilege", + "request_type": request.__class__.__name__, + "response_type": "AllowDbRolePrivilegesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def attach_eip(self, request): """绑定/解绑弹性公网IP @@ -241,6 +310,73 @@ def _attach_eip_http_info(cls, request): return http_info + def batch_show_upgrade_candidate_versions(self, request): + """查询批量实例可升级的版本和升级类型。 + + 查询批量实例可升级的版本和升级类型。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for BatchShowUpgradeCandidateVersions + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.BatchShowUpgradeCandidateVersionsRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.BatchShowUpgradeCandidateVersionsResponse` + """ + http_info = self._batch_show_upgrade_candidate_versions_http_info(request) + return self._call_api(**http_info) + + def batch_show_upgrade_candidate_versions_invoker(self, request): + http_info = self._batch_show_upgrade_candidate_versions_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _batch_show_upgrade_candidate_versions_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v3.1/{project_id}/instances/db-upgrade/candidate-versions", + "request_type": request.__class__.__name__, + "response_type": "BatchShowUpgradeCandidateVersionsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def confirm_restored_data(self, request): """备份恢复到目标实例数据后执行数据确认 @@ -513,6 +649,73 @@ def _create_database_http_info(cls, request): return http_info + def create_database_instance(self, request): + """创建数据库实例 + + 创建数据库实例 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateDatabaseInstance + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateDatabaseInstanceRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateDatabaseInstanceResponse` + """ + http_info = self._create_database_instance_http_info(request) + return self._call_api(**http_info) + + def create_database_instance_invoker(self, request): + http_info = self._create_database_instance_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_database_instance_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v3.2/{project_id}/instances", + "request_type": request.__class__.__name__, + "response_type": "CreateDatabaseInstanceResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_database_schemas(self, request): """创建数据库SCHEMA @@ -649,6 +852,75 @@ def _create_db_instance_http_info(cls, request): return http_info + def create_db_role(self, request): + """创建数据库角色 + + 创建数据库角色。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateDbRole + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateDbRoleRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateDbRoleResponse` + """ + http_info = self._create_db_role_http_info(request) + return self._call_api(**http_info) + + def create_db_role_invoker(self, request): + http_info = self._create_db_role_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_db_role_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v3.1/{project_id}/instances/{instance_id}/db-role", + "request_type": request.__class__.__name__, + "response_type": "CreateDbRoleResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_db_user(self, request): """创建数据库用户 @@ -1191,31 +1463,31 @@ def _delete_database_http_info(cls, request): return http_info - def delete_instance(self, request): - """删除实例 + def delete_database_schema(self, request): + """删除数据库SCHEMA - 删除数据库实例。 + 删除数据库schema。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteInstance - :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteInstanceRequest` - :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteInstanceResponse` + :param request: Request instance for DeleteDatabaseSchema + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteDatabaseSchemaRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteDatabaseSchemaResponse` """ - http_info = self._delete_instance_http_info(request) + http_info = self._delete_database_schema_http_info(request) return self._call_api(**http_info) - def delete_instance_invoker(self, request): - http_info = self._delete_instance_http_info(request) + def delete_database_schema_invoker(self, request): + http_info = self._delete_database_schema_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _delete_instance_http_info(cls, request): + def _delete_database_schema_http_info(cls, request): http_info = { "method": "DELETE", - "resource_path": "/v3/{project_id}/instances/{instance_id}", + "resource_path": "/v3/{project_id}/instances/{instance_id}/schema", "request_type": request.__class__.__name__, - "response_type": "DeleteInstanceResponse" + "response_type": "DeleteDatabaseSchemaResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1237,13 +1509,15 @@ def _delete_instance_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) + ['application/json;charset=UTF-8']) auth_settings = [] @@ -1258,17 +1532,84 @@ def _delete_instance_http_info(cls, request): return http_info - def delete_instance_tag(self, request): - """删除实例标签 + def delete_instance(self, request): + """删除实例 - 删除实例标签 + 删除数据库实例。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteInstanceTag - :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteInstanceTagRequest` - :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteInstanceTagResponse` - """ + :param request: Request instance for DeleteInstance + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteInstanceRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteInstanceResponse` + """ + http_info = self._delete_instance_http_info(request) + return self._call_api(**http_info) + + def delete_instance_invoker(self, request): + http_info = self._delete_instance_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_instance_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v3/{project_id}/instances/{instance_id}", + "request_type": request.__class__.__name__, + "response_type": "DeleteInstanceResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def delete_instance_tag(self, request): + """删除实例标签 + + 删除实例标签 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteInstanceTag + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteInstanceTagRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteInstanceTagResponse` + """ http_info = self._delete_instance_tag_http_info(request) return self._call_api(**http_info) @@ -1889,6 +2230,85 @@ def _list_backups_http_info(cls, request): return http_info + def list_backups_details(self, request): + """查询备份列表 + + 获取备份列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListBackupsDetails + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListBackupsDetailsRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListBackupsDetailsResponse` + """ + http_info = self._list_backups_details_http_info(request) + return self._call_api(**http_info) + + def list_backups_details_invoker(self, request): + http_info = self._list_backups_details_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_backups_details_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3.2/{project_id}/backups", + "request_type": request.__class__.__name__, + "response_type": "ListBackupsDetailsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'instance_id' in local_var_params: + query_params.append(('instance_id', local_var_params['instance_id'])) + if 'backup_id' in local_var_params: + query_params.append(('backup_id', local_var_params['backup_id'])) + if 'backup_type' in local_var_params: + query_params.append(('backup_type', local_var_params['backup_type'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'begin_time' in local_var_params: + query_params.append(('begin_time', local_var_params['begin_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_binded_eips(self, request): """查询实例已绑定EIP列表 @@ -2238,6 +2658,163 @@ def _list_configurations_diff_http_info(cls, request): return http_info + def list_database_instances(self, request): + """查询数据库实例列表/查询实例详情 + + 查询数据库实例列表/查询实例详情 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListDatabaseInstances + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListDatabaseInstancesRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListDatabaseInstancesResponse` + """ + http_info = self._list_database_instances_http_info(request) + return self._call_api(**http_info) + + def list_database_instances_invoker(self, request): + http_info = self._list_database_instances_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_database_instances_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3.3/{project_id}/instances", + "request_type": request.__class__.__name__, + "response_type": "ListDatabaseInstancesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'id' in local_var_params: + query_params.append(('id', local_var_params['id'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + if 'datastore_type' in local_var_params: + query_params.append(('datastore_type', local_var_params['datastore_type'])) + if 'vpc_id' in local_var_params: + query_params.append(('vpc_id', local_var_params['vpc_id'])) + if 'subnet_id' in local_var_params: + query_params.append(('subnet_id', local_var_params['subnet_id'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) + collection_formats['tags'] = 'csv' + if 'charge_mode' in local_var_params: + query_params.append(('charge_mode', local_var_params['charge_mode'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_database_roles(self, request): + """查询数据库角色列表 + + 查询数据库角色列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListDatabaseRoles + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListDatabaseRolesRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListDatabaseRolesResponse` + """ + http_info = self._list_database_roles_http_info(request) + return self._call_api(**http_info) + + def list_database_roles_invoker(self, request): + http_info = self._list_database_roles_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_database_roles_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3.1/{project_id}/instances/{instance_id}/db-role", + "request_type": request.__class__.__name__, + "response_type": "ListDatabaseRolesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_database_schemas(self, request): """查询数据库SCHEMA列表 @@ -2447,6 +3024,71 @@ def _list_datastores_http_info(cls, request): return http_info + def list_datastores_details(self, request): + """查询引擎列表 + + 查询引擎列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListDatastoresDetails + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListDatastoresDetailsRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListDatastoresDetailsResponse` + """ + http_info = self._list_datastores_details_http_info(request) + return self._call_api(**http_info) + + def list_datastores_details_invoker(self, request): + http_info = self._list_datastores_details_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_datastores_details_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3.1/{project_id}/datastores", + "request_type": request.__class__.__name__, + "response_type": "ListDatastoresDetailsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_db_backups(self, request): """查询备份列表 @@ -2829,12 +3471,87 @@ def list_flavors_invoker(self, request): return SyncInvoker(self, http_info) @classmethod - def _list_flavors_http_info(cls, request): + def _list_flavors_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/flavors", + "request_type": request.__class__.__name__, + "response_type": "ListFlavorsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'version' in local_var_params: + query_params.append(('version', local_var_params['version'])) + if 'spec_code' in local_var_params: + query_params.append(('spec_code', local_var_params['spec_code'])) + if 'ha_mode' in local_var_params: + query_params.append(('ha_mode', local_var_params['ha_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 = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_flavors_details(self, request): + """查询数据库规格 + + 查询数据库的规格信息。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListFlavorsDetails + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListFlavorsDetailsRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListFlavorsDetailsResponse` + """ + http_info = self._list_flavors_details_http_info(request) + return self._call_api(**http_info) + + def list_flavors_details_invoker(self, request): + http_info = self._list_flavors_details_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_flavors_details_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v3/{project_id}/flavors", + "resource_path": "/v3.2/{project_id}/flavors", "request_type": request.__class__.__name__, - "response_type": "ListFlavorsResponse" + "response_type": "ListFlavorsDetailsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3557,6 +4274,75 @@ def _list_param_group_templates_http_info(cls, request): return http_info + def list_parameter_group_templates(self, request): + """获取参数模板列表 + + 获取参数模板列表,包括所有数据库的默认参数模板和用户创建的参数模板。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListParameterGroupTemplates + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListParameterGroupTemplatesRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListParameterGroupTemplatesResponse` + """ + http_info = self._list_parameter_group_templates_http_info(request) + return self._call_api(**http_info) + + def list_parameter_group_templates_invoker(self, request): + http_info = self._list_parameter_group_templates_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_parameter_group_templates_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3.2/{project_id}/configurations", + "request_type": request.__class__.__name__, + "response_type": "ListParameterGroupTemplatesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_plugin_extensions(self, request): """查询实例插件拓展信息 @@ -3827,6 +4613,77 @@ def _list_recycle_instances_http_info(cls, request): return http_info + def list_recycle_instances_details(self, request): + """查询回收站所有引擎实例列表。 + + 查询回收站所有引擎实例列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListRecycleInstancesDetails + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListRecycleInstancesDetailsRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListRecycleInstancesDetailsResponse` + """ + http_info = self._list_recycle_instances_details_http_info(request) + return self._call_api(**http_info) + + def list_recycle_instances_details_invoker(self, request): + http_info = self._list_recycle_instances_details_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_recycle_instances_details_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3.1/{project_id}/recycle-instances", + "request_type": request.__class__.__name__, + "response_type": "ListRecycleInstancesDetailsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'instance_name' in local_var_params: + query_params.append(('instance_name', local_var_params['instance_name'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_restorable_instances(self, request): """查询可用于备份恢复的实例列表 @@ -3902,6 +4759,81 @@ def _list_restorable_instances_http_info(cls, request): return http_info + def list_restorable_instances_details(self, request): + """查询可用于备份恢复的实例列表 + + 查询可用于备份恢复的实例列表,实例信息要符合备份条件。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListRestorableInstancesDetails + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListRestorableInstancesDetailsRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListRestorableInstancesDetailsResponse` + """ + http_info = self._list_restorable_instances_details_http_info(request) + return self._call_api(**http_info) + + def list_restorable_instances_details_invoker(self, request): + http_info = self._list_restorable_instances_details_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_restorable_instances_details_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3.1/{project_id}/restorable-instances", + "request_type": request.__class__.__name__, + "response_type": "ListRestorableInstancesDetailsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'source_instance_id' in local_var_params: + query_params.append(('source_instance_id', local_var_params['source_instance_id'])) + if 'backup_id' in local_var_params: + query_params.append(('backup_id', local_var_params['backup_id'])) + if 'restore_time' in local_var_params: + query_params.append(('restore_time', local_var_params['restore_time'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_restore_times(self, request): """查询可恢复时间段 @@ -5692,20 +6624,87 @@ def show_instance_disk(self, request): :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstanceDiskRequest` :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstanceDiskResponse` """ - http_info = self._show_instance_disk_http_info(request) + http_info = self._show_instance_disk_http_info(request) + return self._call_api(**http_info) + + def show_instance_disk_invoker(self, request): + http_info = self._show_instance_disk_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_instance_disk_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/instances/{instance_id}/volume-usage", + "request_type": request.__class__.__name__, + "response_type": "ShowInstanceDiskResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_instance_param_group(self, request): + """获取指定实例的参数模板 + + 获取指定实例的参数模板。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowInstanceParamGroup + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstanceParamGroupRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstanceParamGroupResponse` + """ + http_info = self._show_instance_param_group_http_info(request) return self._call_api(**http_info) - def show_instance_disk_invoker(self, request): - http_info = self._show_instance_disk_http_info(request) + def show_instance_param_group_invoker(self, request): + http_info = self._show_instance_param_group_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_instance_disk_http_info(cls, request): + def _show_instance_param_group_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v3/{project_id}/instances/{instance_id}/volume-usage", + "resource_path": "/v3.1/{project_id}/instances/{instance_id}/configurations", "request_type": request.__class__.__name__, - "response_type": "ShowInstanceDiskResponse" + "response_type": "ShowInstanceParamGroupResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5748,31 +6747,31 @@ def _show_instance_disk_http_info(cls, request): return http_info - def show_instance_param_group(self, request): + def show_instance_param_group_detail(self, request): """获取指定实例的参数模板 获取指定实例的参数模板。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowInstanceParamGroup - :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstanceParamGroupRequest` - :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstanceParamGroupResponse` + :param request: Request instance for ShowInstanceParamGroupDetail + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstanceParamGroupDetailRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstanceParamGroupDetailResponse` """ - http_info = self._show_instance_param_group_http_info(request) + http_info = self._show_instance_param_group_detail_http_info(request) return self._call_api(**http_info) - def show_instance_param_group_invoker(self, request): - http_info = self._show_instance_param_group_http_info(request) + def show_instance_param_group_detail_invoker(self, request): + http_info = self._show_instance_param_group_detail_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_instance_param_group_http_info(cls, request): + def _show_instance_param_group_detail_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v3.1/{project_id}/instances/{instance_id}/configurations", + "resource_path": "/v3.2/{project_id}/instances/{instance_id}/configurations", "request_type": request.__class__.__name__, - "response_type": "ShowInstanceParamGroupResponse" + "response_type": "ShowInstanceParamGroupDetailResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5951,6 +6950,73 @@ def _show_job_detail_http_info(cls, request): return http_info + def show_parameter_group_detail(self, request): + """查询参数模板详情 + + 根据参数模板ID获取指定参数模板详情。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowParameterGroupDetail + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowParameterGroupDetailRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowParameterGroupDetailResponse` + """ + http_info = self._show_parameter_group_detail_http_info(request) + return self._call_api(**http_info) + + def show_parameter_group_detail_invoker(self, request): + http_info = self._show_parameter_group_detail_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_parameter_group_detail_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3.1/{project_id}/configurations/{config_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowParameterGroupDetailResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'config_id' in local_var_params: + path_params['config_id'] = local_var_params['config_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_project_quotas(self, request): """查询租户的实例配额 @@ -6149,6 +7215,77 @@ def _show_slow_log_download_http_info(cls, request): return http_info + def show_source_instance_detail(self, request): + """根据时间点或者备份文件查询原实例信息 + + 根据时间点或者备份文件查询原实例信息。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowSourceInstanceDetail + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowSourceInstanceDetailRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowSourceInstanceDetailResponse` + """ + http_info = self._show_source_instance_detail_http_info(request) + return self._call_api(**http_info) + + def show_source_instance_detail_invoker(self, request): + http_info = self._show_source_instance_detail_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_source_instance_detail_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3.1/{project_id}/instance-snapshot", + "request_type": request.__class__.__name__, + "response_type": "ShowSourceInstanceDetailResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'instance_id' in local_var_params: + query_params.append(('instance_id', local_var_params['instance_id'])) + if 'restore_time' in local_var_params: + query_params.append(('restore_time', local_var_params['restore_time'])) + if 'backup_id' in local_var_params: + query_params.append(('backup_id', local_var_params['backup_id'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_ssl_cert_download_link(self, request): """查询实例SSL证书下载地址 @@ -6283,6 +7420,73 @@ def _show_upgrade_candidate_versions_http_info(cls, request): return http_info + def show_upgrade_candidate_versions_details(self, request): + """查询实例可升级版本 + + 查询实例可升级版本。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowUpgradeCandidateVersionsDetails + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowUpgradeCandidateVersionsDetailsRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowUpgradeCandidateVersionsDetailsResponse` + """ + http_info = self._show_upgrade_candidate_versions_details_http_info(request) + return self._call_api(**http_info) + + def show_upgrade_candidate_versions_details_invoker(self, request): + http_info = self._show_upgrade_candidate_versions_details_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_upgrade_candidate_versions_details_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3.1/{project_id}/instances/{instance_id}/db-upgrade/candidate-versions", + "request_type": request.__class__.__name__, + "response_type": "ShowUpgradeCandidateVersionsDetailsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def start_instance(self, request): """启动数据库 @@ -7053,14 +8257,14 @@ def _upgrade_instance_version_http_info(cls, request): def upgrade_instances_version(self, request): """批量实例内核版本升级 - GaussDB批量实例版本升级。包括灰度升级,就地升级、热补丁升级三种升级方式。 + GaussDB批量实例版本升级。包括灰度升级,就地升级、热补丁升级三种升级方式。 就地升级: - 就地升级需要停止业务进行,会一次性升级集群中所有节点。就地升级需要暂停业务30分钟来升级。 - 灰度升级: - 升级自动提交:所有节点进程一起升级,在升级过程中有大概10秒的业务中断,不阻塞其他业务操作。 - 升级待观察:升级待观察,将数据库升级过程细分为升级,提交两个阶段。升级阶段可以根据部署方式细分为按分片或者按az的滚动升级,提交阶段可以对升级完成后的实例进行业务测试,根据需要可以选择提交升级,或者升级回退。每个主dn或者cn组件升级就有一次10秒业务中断。升级过程均是先管理面,再数据面,由备到主的升级方式。 分布式实例:根据分片数滚动升级,每次滚动升级可以根据选择的分片数进行指定分片数量的节点进行升级。 主备版实例:根据AZ数进行滚动升级,每次滚动升级可以根据选择的AZ进行1个分区或者多个分区进行升级。 - 热补丁升级: - 升级自动提交:热补丁自动升级并提交,中间无业务中断,仅修复产品bug。 + 就地升级需要停止业务进行,会一次性升级集群中所有节点。就地升级需要暂停业务30分钟来升级。 + 灰度升级: + 升级自动提交:所有节点进程一起升级,在升级过程中有大概10秒的业务中断,不阻塞其他业务操作。 + 升级待观察:升级待观察,将数据库升级过程细分为升级,提交两个阶段。升级阶段可以根据部署方式细分为按分片或者按az的滚动升级,提交阶段可以对升级完成后的实例进行业务测试,根据需要可以选择提交升级,或者升级回退。每个主dn或者cn组件升级就有一次10秒业务中断。升级过程均是先管理面,再数据面,由备到主的升级方式。 分布式实例:根据分片数滚动升级,每次滚动升级可以根据选择的分片数进行指定分片数量的节点进行升级。 主备版实例:根据AZ数进行滚动升级,每次滚动升级可以根据选择的AZ进行1个分区或者多个分区进行升级。 + 热补丁升级: + 升级自动提交:热补丁自动升级并提交,中间无业务中断,仅修复产品bug。 提交升级:提交升级。在升级完成,进入提交阶段时。业务测试正常后提交升级,完成本次升级流程。 升级回退:升级回退,在升级完成,进入提交阶段时。可以根据需要回退本次升级,回退到升级前的版本。 批量实例可升级版本大于当前所有实例的引擎版本,且选择的所有实例,其升级方式和操作方式要保持一致。 @@ -7621,6 +8825,71 @@ def _show_limit_task_http_info(cls, request): return http_info + def sync_limit_data(self, request): + """同步内核侧sql限流数据至管控侧 + + 同步内核侧sql限流数据至管控侧 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for SyncLimitData + :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.SyncLimitDataRequest` + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.SyncLimitDataResponse` + """ + http_info = self._sync_limit_data_http_info(request) + return self._call_api(**http_info) + + def sync_limit_data_invoker(self, request): + http_info = self._sync_limit_data_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _sync_limit_data_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v3/{project_id}/instances/{instance_id}/sync-limit-task", + "request_type": request.__class__.__name__, + "response_type": "SyncLimitDataResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def update_limit_task(self, request): """修改限流任务 diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py index dcc3e37a2c..0856fb0264 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py @@ -8,6 +8,9 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.add_tags_request_body import AddTagsRequestBody from huaweicloudsdkgaussdbforopengauss.v3.model.allow_db_privileges_request import AllowDbPrivilegesRequest from huaweicloudsdkgaussdbforopengauss.v3.model.allow_db_privileges_response import AllowDbPrivilegesResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.allow_db_role_privileges_request import AllowDbRolePrivilegesRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.allow_db_role_privileges_request_body import AllowDbRolePrivilegesRequestBody +from huaweicloudsdkgaussdbforopengauss.v3.model.allow_db_role_privileges_response import AllowDbRolePrivilegesResponse from huaweicloudsdkgaussdbforopengauss.v3.model.applied_histories_result import AppliedHistoriesResult from huaweicloudsdkgaussdbforopengauss.v3.model.apply_configuration_request_body import ApplyConfigurationRequestBody from huaweicloudsdkgaussdbforopengauss.v3.model.attach_eip_request import AttachEipRequest @@ -19,13 +22,18 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.backup_policy_info import BackupPolicyInfo from huaweicloudsdkgaussdbforopengauss.v3.model.backups import Backups from huaweicloudsdkgaussdbforopengauss.v3.model.backups_result import BackupsResult +from huaweicloudsdkgaussdbforopengauss.v3.model.batch_show_upgrade_candidate_versions_request import BatchShowUpgradeCandidateVersionsRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.batch_show_upgrade_candidate_versions_response import BatchShowUpgradeCandidateVersionsResponse from huaweicloudsdkgaussdbforopengauss.v3.model.bind_eip_request_body import BindEIPRequestBody from huaweicloudsdkgaussdbforopengauss.v3.model.binded_eip_result import BindedEipResult +from huaweicloudsdkgaussdbforopengauss.v3.model.can_be_rollbacked_hotfix_detail import CanBeRollbackedHotfixDetail +from huaweicloudsdkgaussdbforopengauss.v3.model.can_be_upgraded_hotfix_detail import CanBeUpgradedHotfixDetail from huaweicloudsdkgaussdbforopengauss.v3.model.cn_info_before_reduce import CnInfoBeforeReduce from huaweicloudsdkgaussdbforopengauss.v3.model.components import Components from huaweicloudsdkgaussdbforopengauss.v3.model.configuration_parameter import ConfigurationParameter from huaweicloudsdkgaussdbforopengauss.v3.model.configuration_result import ConfigurationResult from huaweicloudsdkgaussdbforopengauss.v3.model.configuration_summary import ConfigurationSummary +from huaweicloudsdkgaussdbforopengauss.v3.model.configurations_result import ConfigurationsResult from huaweicloudsdkgaussdbforopengauss.v3.model.confirm_restored_data_request import ConfirmRestoredDataRequest from huaweicloudsdkgaussdbforopengauss.v3.model.confirm_restored_data_response import ConfirmRestoredDataResponse from huaweicloudsdkgaussdbforopengauss.v3.model.copy_configuration_request import CopyConfigurationRequest @@ -33,16 +41,24 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.create_configuration_template_request import CreateConfigurationTemplateRequest from huaweicloudsdkgaussdbforopengauss.v3.model.create_configuration_template_request_body import CreateConfigurationTemplateRequestBody from huaweicloudsdkgaussdbforopengauss.v3.model.create_configuration_template_response import CreateConfigurationTemplateResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.create_database_instance_request import CreateDatabaseInstanceRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.create_database_instance_request_body import CreateDatabaseInstanceRequestBody +from huaweicloudsdkgaussdbforopengauss.v3.model.create_database_instance_response import CreateDatabaseInstanceResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.create_database_instance_result import CreateDatabaseInstanceResult from huaweicloudsdkgaussdbforopengauss.v3.model.create_database_request import CreateDatabaseRequest from huaweicloudsdkgaussdbforopengauss.v3.model.create_database_response import CreateDatabaseResponse from huaweicloudsdkgaussdbforopengauss.v3.model.create_database_schemas_request import CreateDatabaseSchemasRequest from huaweicloudsdkgaussdbforopengauss.v3.model.create_database_schemas_response import CreateDatabaseSchemasResponse from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_instance_request import CreateDbInstanceRequest from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_instance_response import CreateDbInstanceResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_role_request import CreateDbRoleRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_role_request_body import CreateDbRoleRequestBody +from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_role_response import CreateDbRoleResponse from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_user_request import CreateDbUserRequest from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_user_response import CreateDbUserResponse from huaweicloudsdkgaussdbforopengauss.v3.model.create_gauss_db_instance_request import CreateGaussDbInstanceRequest from huaweicloudsdkgaussdbforopengauss.v3.model.create_gauss_db_instance_response import CreateGaussDbInstanceResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.create_instance_datastore_option import CreateInstanceDatastoreOption from huaweicloudsdkgaussdbforopengauss.v3.model.create_instance_request import CreateInstanceRequest from huaweicloudsdkgaussdbforopengauss.v3.model.create_instance_resp_item import CreateInstanceRespItem from huaweicloudsdkgaussdbforopengauss.v3.model.create_instance_response import CreateInstanceResponse @@ -60,6 +76,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.create_slow_log_download_response import CreateSlowLogDownloadResponse from huaweicloudsdkgaussdbforopengauss.v3.model.data_stroe_error_response import DataStroeErrorResponse from huaweicloudsdkgaussdbforopengauss.v3.model.datastore_option import DatastoreOption +from huaweicloudsdkgaussdbforopengauss.v3.model.datastore_result import DatastoreResult from huaweicloudsdkgaussdbforopengauss.v3.model.datastores_result import DatastoresResult from huaweicloudsdkgaussdbforopengauss.v3.model.db_user_pwd_request import DbUserPwdRequest from huaweicloudsdkgaussdbforopengauss.v3.model.delete_backup_error_response import DeleteBackupErrorResponse @@ -67,6 +84,9 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.delete_configuration_response import DeleteConfigurationResponse from huaweicloudsdkgaussdbforopengauss.v3.model.delete_database_request import DeleteDatabaseRequest from huaweicloudsdkgaussdbforopengauss.v3.model.delete_database_response import DeleteDatabaseResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.delete_database_schema_request import DeleteDatabaseSchemaRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.delete_database_schema_request_body import DeleteDatabaseSchemaRequestBody +from huaweicloudsdkgaussdbforopengauss.v3.model.delete_database_schema_response import DeleteDatabaseSchemaResponse from huaweicloudsdkgaussdbforopengauss.v3.model.delete_instance_request import DeleteInstanceRequest from huaweicloudsdkgaussdbforopengauss.v3.model.delete_instance_response import DeleteInstanceResponse from huaweicloudsdkgaussdbforopengauss.v3.model.delete_instance_tag_request import DeleteInstanceTagRequest @@ -88,6 +108,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.flavor_error_response import FlavorErrorResponse from huaweicloudsdkgaussdbforopengauss.v3.model.flavor_result import FlavorResult from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_db_error_response_body import GaussDBErrorResponseBody +from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_db_list_database_roles import GaussDBListDatabaseRoles from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_db_upgrade_instances_version_request import GaussDBUpgradeInstancesVersionRequest from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_database_for_creation import GaussDBforOpenDatabaseForCreation from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_create_schema_req import GaussDBforOpenGaussCreateSchemaReq @@ -101,6 +122,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_user_with_privilege import GaussDBforOpenGaussUserWithPrivilege from huaweicloudsdkgaussdbforopengauss.v3.model.get_restore_time_response_restore_time import GetRestoreTimeResponseRestoreTime from huaweicloudsdkgaussdbforopengauss.v3.model.hotfix_info import HotfixInfo +from huaweicloudsdkgaussdbforopengauss.v3.model.hotfix_info_result import HotfixInfoResult from huaweicloudsdkgaussdbforopengauss.v3.model.hotfix_rollback_infos import HotfixRollbackInfos from huaweicloudsdkgaussdbforopengauss.v3.model.hotfix_upgrade_infos import HotfixUpgradeInfos from huaweicloudsdkgaussdbforopengauss.v3.model.hotfix_version_info import HotfixVersionInfo @@ -120,8 +142,11 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_applied_histories_response import ListAppliedHistoriesResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_available_flavors_request import ListAvailableFlavorsRequest from huaweicloudsdkgaussdbforopengauss.v3.model.list_available_flavors_response import ListAvailableFlavorsResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.list_backups_details_request import ListBackupsDetailsRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.list_backups_details_response import ListBackupsDetailsResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_backups_request import ListBackupsRequest from huaweicloudsdkgaussdbforopengauss.v3.model.list_backups_response import ListBackupsResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.list_backups_result import ListBackupsResult from huaweicloudsdkgaussdbforopengauss.v3.model.list_binded_eips_request import ListBindedEipsRequest from huaweicloudsdkgaussdbforopengauss.v3.model.list_binded_eips_response import ListBindedEipsResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_cn_infos_before_reduce_request import ListCnInfosBeforeReduceRequest @@ -132,11 +157,17 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_configurations_diff_response import ListConfigurationsDiffResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_configurations_request import ListConfigurationsRequest from huaweicloudsdkgaussdbforopengauss.v3.model.list_configurations_response import ListConfigurationsResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.list_database_instances_request import ListDatabaseInstancesRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.list_database_instances_response import ListDatabaseInstancesResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.list_database_roles_request import ListDatabaseRolesRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.list_database_roles_response import ListDatabaseRolesResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_database_schemas_request import ListDatabaseSchemasRequest from huaweicloudsdkgaussdbforopengauss.v3.model.list_database_schemas_response import ListDatabaseSchemasResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_databases_request import ListDatabasesRequest from huaweicloudsdkgaussdbforopengauss.v3.model.list_databases_response import ListDatabasesResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_datastore import ListDatastore +from huaweicloudsdkgaussdbforopengauss.v3.model.list_datastores_details_request import ListDatastoresDetailsRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.list_datastores_details_response import ListDatastoresDetailsResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_datastores_request import ListDatastoresRequest from huaweicloudsdkgaussdbforopengauss.v3.model.list_datastores_response import ListDatastoresResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_db_backups_request import ListDbBackupsRequest @@ -151,6 +182,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_features_request import ListFeaturesRequest from huaweicloudsdkgaussdbforopengauss.v3.model.list_features_response import ListFeaturesResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_flavor_info import ListFlavorInfo +from huaweicloudsdkgaussdbforopengauss.v3.model.list_flavors_details_request import ListFlavorsDetailsRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.list_flavors_details_response import ListFlavorsDetailsResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_flavors_request import ListFlavorsRequest from huaweicloudsdkgaussdbforopengauss.v3.model.list_flavors_response import ListFlavorsResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_gauss_db_datastores_request import ListGaussDbDatastoresRequest @@ -184,6 +217,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_node_limit_sql_model_response_result import ListNodeLimitSqlModelResponseResult from huaweicloudsdkgaussdbforopengauss.v3.model.list_param_group_templates_request import ListParamGroupTemplatesRequest from huaweicloudsdkgaussdbforopengauss.v3.model.list_param_group_templates_response import ListParamGroupTemplatesResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.list_parameter_group_templates_request import ListParameterGroupTemplatesRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.list_parameter_group_templates_response import ListParameterGroupTemplatesResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_plugin_extensions_request import ListPluginExtensionsRequest from huaweicloudsdkgaussdbforopengauss.v3.model.list_plugin_extensions_request_body import ListPluginExtensionsRequestBody from huaweicloudsdkgaussdbforopengauss.v3.model.list_plugin_extensions_response import ListPluginExtensionsResponse @@ -192,8 +227,12 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_project_tags_request import ListProjectTagsRequest from huaweicloudsdkgaussdbforopengauss.v3.model.list_project_tags_response import ListProjectTagsResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_quota_result import ListQuotaResult +from huaweicloudsdkgaussdbforopengauss.v3.model.list_recycle_instances_details_request import ListRecycleInstancesDetailsRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.list_recycle_instances_details_response import ListRecycleInstancesDetailsResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_recycle_instances_request import ListRecycleInstancesRequest from huaweicloudsdkgaussdbforopengauss.v3.model.list_recycle_instances_response import ListRecycleInstancesResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.list_restorable_instances_details_request import ListRestorableInstancesDetailsRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.list_restorable_instances_details_response import ListRestorableInstancesDetailsResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_restorable_instances_request import ListRestorableInstancesRequest from huaweicloudsdkgaussdbforopengauss.v3.model.list_restorable_instances_response import ListRestorableInstancesResponse from huaweicloudsdkgaussdbforopengauss.v3.model.list_restore_times_request import ListRestoreTimesRequest @@ -255,6 +294,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.recovery_backup_source import RecoveryBackupSource from huaweicloudsdkgaussdbforopengauss.v3.model.recovery_backup_target import RecoveryBackupTarget from huaweicloudsdkgaussdbforopengauss.v3.model.recycle_instances_detail_result import RecycleInstancesDetailResult +from huaweicloudsdkgaussdbforopengauss.v3.model.recycle_instances_detail_result_v1 import RecycleInstancesDetailResultV1 from huaweicloudsdkgaussdbforopengauss.v3.model.recycle_policy import RecyclePolicy from huaweicloudsdkgaussdbforopengauss.v3.model.recycle_policy_request_body import RecyclePolicyRequestBody from huaweicloudsdkgaussdbforopengauss.v3.model.reset_configuration_request import ResetConfigurationRequest @@ -310,6 +350,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_configuration_response import ShowInstanceConfigurationResponse from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_disk_request import ShowInstanceDiskRequest from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_disk_response import ShowInstanceDiskResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_param_group_detail_request import ShowInstanceParamGroupDetailRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_param_group_detail_response import ShowInstanceParamGroupDetailResponse from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_param_group_request import ShowInstanceParamGroupRequest from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_param_group_response import ShowInstanceParamGroupResponse from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_snapshot_request import ShowInstanceSnapshotRequest @@ -319,14 +361,20 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.show_limit_task_node_option import ShowLimitTaskNodeOption from huaweicloudsdkgaussdbforopengauss.v3.model.show_limit_task_request import ShowLimitTaskRequest from huaweicloudsdkgaussdbforopengauss.v3.model.show_limit_task_response import ShowLimitTaskResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.show_parameter_group_detail_request import ShowParameterGroupDetailRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.show_parameter_group_detail_response import ShowParameterGroupDetailResponse from huaweicloudsdkgaussdbforopengauss.v3.model.show_project_quotas_request import ShowProjectQuotasRequest from huaweicloudsdkgaussdbforopengauss.v3.model.show_project_quotas_response import ShowProjectQuotasResponse from huaweicloudsdkgaussdbforopengauss.v3.model.show_recycle_policy_request import ShowRecyclePolicyRequest from huaweicloudsdkgaussdbforopengauss.v3.model.show_recycle_policy_response import ShowRecyclePolicyResponse from huaweicloudsdkgaussdbforopengauss.v3.model.show_slow_log_download_request import ShowSlowLogDownloadRequest from huaweicloudsdkgaussdbforopengauss.v3.model.show_slow_log_download_response import ShowSlowLogDownloadResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.show_source_instance_detail_request import ShowSourceInstanceDetailRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.show_source_instance_detail_response import ShowSourceInstanceDetailResponse from huaweicloudsdkgaussdbforopengauss.v3.model.show_ssl_cert_download_link_request import ShowSslCertDownloadLinkRequest from huaweicloudsdkgaussdbforopengauss.v3.model.show_ssl_cert_download_link_response import ShowSslCertDownloadLinkResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.show_upgrade_candidate_versions_details_request import ShowUpgradeCandidateVersionsDetailsRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.show_upgrade_candidate_versions_details_response import ShowUpgradeCandidateVersionsDetailsResponse from huaweicloudsdkgaussdbforopengauss.v3.model.show_upgrade_candidate_versions_request import ShowUpgradeCandidateVersionsRequest from huaweicloudsdkgaussdbforopengauss.v3.model.show_upgrade_candidate_versions_response import ShowUpgradeCandidateVersionsResponse from huaweicloudsdkgaussdbforopengauss.v3.model.slow_log_download_info import SlowLogDownloadInfo @@ -347,6 +395,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.switch_shard_request import SwitchShardRequest from huaweicloudsdkgaussdbforopengauss.v3.model.switch_shard_request_body import SwitchShardRequestBody from huaweicloudsdkgaussdbforopengauss.v3.model.switch_shard_response import SwitchShardResponse +from huaweicloudsdkgaussdbforopengauss.v3.model.sync_limit_data_request import SyncLimitDataRequest +from huaweicloudsdkgaussdbforopengauss.v3.model.sync_limit_data_response import SyncLimitDataResponse from huaweicloudsdkgaussdbforopengauss.v3.model.tag_result import TagResult from huaweicloudsdkgaussdbforopengauss.v3.model.tags_option import TagsOption from huaweicloudsdkgaussdbforopengauss.v3.model.tags_result import TagsResult diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_request.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_request.py new file mode 100644 index 0000000000..c07fbf4d86 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_request.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AllowDbRolePrivilegesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_language': 'str', + 'instance_id': 'str', + 'body': 'AllowDbRolePrivilegesRequestBody' + } + + attribute_map = { + 'x_language': 'X-Language', + 'instance_id': 'instance_id', + 'body': 'body' + } + + def __init__(self, x_language=None, instance_id=None, body=None): + """AllowDbRolePrivilegesRequest + + The model defined in huaweicloud sdk + + :param x_language: 语言 + :type x_language: str + :param instance_id: 实例ID。 + :type instance_id: str + :param body: Body of the AllowDbRolePrivilegesRequest + :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.AllowDbRolePrivilegesRequestBody` + """ + + + + self._x_language = None + self._instance_id = None + self._body = None + self.discriminator = None + + if x_language is not None: + self.x_language = x_language + self.instance_id = instance_id + if body is not None: + self.body = body + + @property + def x_language(self): + """Gets the x_language of this AllowDbRolePrivilegesRequest. + + 语言 + + :return: The x_language of this AllowDbRolePrivilegesRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this AllowDbRolePrivilegesRequest. + + 语言 + + :param x_language: The x_language of this AllowDbRolePrivilegesRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def instance_id(self): + """Gets the instance_id of this AllowDbRolePrivilegesRequest. + + 实例ID。 + + :return: The instance_id of this AllowDbRolePrivilegesRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this AllowDbRolePrivilegesRequest. + + 实例ID。 + + :param instance_id: The instance_id of this AllowDbRolePrivilegesRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this AllowDbRolePrivilegesRequest. + + :return: The body of this AllowDbRolePrivilegesRequest. + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.AllowDbRolePrivilegesRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this AllowDbRolePrivilegesRequest. + + :param body: The body of this AllowDbRolePrivilegesRequest. + :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.AllowDbRolePrivilegesRequestBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AllowDbRolePrivilegesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_request_body.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_request_body.py new file mode 100644 index 0000000000..547d29a772 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_request_body.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AllowDbRolePrivilegesRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'db_name': 'str', + 'user': 'object' + } + + attribute_map = { + 'db_name': 'db_name', + 'user': 'user' + } + + def __init__(self, db_name=None, user=None): + """AllowDbRolePrivilegesRequestBody + + The model defined in huaweicloud sdk + + :param db_name: 数据库名称。 不能使用模板库,且是已存在的数据库名称。 模板库包括postgres, template0 ,template1,templatea,template_pdb,templatem。 + :type db_name: str + :param user: 角色权限信息。 + :type user: object + """ + + + + self._db_name = None + self._user = None + self.discriminator = None + + self.db_name = db_name + self.user = user + + @property + def db_name(self): + """Gets the db_name of this AllowDbRolePrivilegesRequestBody. + + 数据库名称。 不能使用模板库,且是已存在的数据库名称。 模板库包括postgres, template0 ,template1,templatea,template_pdb,templatem。 + + :return: The db_name of this AllowDbRolePrivilegesRequestBody. + :rtype: str + """ + return self._db_name + + @db_name.setter + def db_name(self, db_name): + """Sets the db_name of this AllowDbRolePrivilegesRequestBody. + + 数据库名称。 不能使用模板库,且是已存在的数据库名称。 模板库包括postgres, template0 ,template1,templatea,template_pdb,templatem。 + + :param db_name: The db_name of this AllowDbRolePrivilegesRequestBody. + :type db_name: str + """ + self._db_name = db_name + + @property + def user(self): + """Gets the user of this AllowDbRolePrivilegesRequestBody. + + 角色权限信息。 + + :return: The user of this AllowDbRolePrivilegesRequestBody. + :rtype: object + """ + return self._user + + @user.setter + def user(self, user): + """Sets the user of this AllowDbRolePrivilegesRequestBody. + + 角色权限信息。 + + :param user: The user of this AllowDbRolePrivilegesRequestBody. + :type user: object + """ + self._user = user + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AllowDbRolePrivilegesRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_response.py new file mode 100644 index 0000000000..e6b42f78ec --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AllowDbRolePrivilegesResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """AllowDbRolePrivilegesResponse + + The model defined in huaweicloud sdk + + """ + + super(AllowDbRolePrivilegesResponse, self).__init__() + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AllowDbRolePrivilegesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/batch_show_upgrade_candidate_versions_request.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/batch_show_upgrade_candidate_versions_request.py new file mode 100644 index 0000000000..2ce1c4c71c --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/batch_show_upgrade_candidate_versions_request.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchShowUpgradeCandidateVersionsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_language': 'str', + 'body': 'UpgradeInstancesRequestBody' + } + + attribute_map = { + 'x_language': 'X-Language', + 'body': 'body' + } + + def __init__(self, x_language=None, body=None): + """BatchShowUpgradeCandidateVersionsRequest + + The model defined in huaweicloud sdk + + :param x_language: 语言[zh-cn, en-us]。 + :type x_language: str + :param body: Body of the BatchShowUpgradeCandidateVersionsRequest + :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeInstancesRequestBody` + """ + + + + self._x_language = None + self._body = None + self.discriminator = None + + if x_language is not None: + self.x_language = x_language + if body is not None: + self.body = body + + @property + def x_language(self): + """Gets the x_language of this BatchShowUpgradeCandidateVersionsRequest. + + 语言[zh-cn, en-us]。 + + :return: The x_language of this BatchShowUpgradeCandidateVersionsRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this BatchShowUpgradeCandidateVersionsRequest. + + 语言[zh-cn, en-us]。 + + :param x_language: The x_language of this BatchShowUpgradeCandidateVersionsRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def body(self): + """Gets the body of this BatchShowUpgradeCandidateVersionsRequest. + + :return: The body of this BatchShowUpgradeCandidateVersionsRequest. + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeInstancesRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this BatchShowUpgradeCandidateVersionsRequest. + + :param body: The body of this BatchShowUpgradeCandidateVersionsRequest. + :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeInstancesRequestBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchShowUpgradeCandidateVersionsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/batch_show_upgrade_candidate_versions_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/batch_show_upgrade_candidate_versions_response.py new file mode 100644 index 0000000000..e067a1ea7a --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/batch_show_upgrade_candidate_versions_response.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchShowUpgradeCandidateVersionsResponse(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 = { + 'upgrade_type_list': 'list[UpgradeTypeInfo]', + 'target_version': 'str', + 'upgrade_candidate_versions': 'list[str]', + 'hotfix_upgrade_infos': 'list[HotfixInfoResult]', + 'hotfix_rollback_infos': 'list[HotfixInfoResult]' + } + + attribute_map = { + 'upgrade_type_list': 'upgrade_type_list', + 'target_version': 'target_version', + 'upgrade_candidate_versions': 'upgrade_candidate_versions', + 'hotfix_upgrade_infos': 'hotfix_upgrade_infos', + 'hotfix_rollback_infos': 'hotfix_rollback_infos' + } + + def __init__(self, upgrade_type_list=None, target_version=None, upgrade_candidate_versions=None, hotfix_upgrade_infos=None, hotfix_rollback_infos=None): + """BatchShowUpgradeCandidateVersionsResponse + + The model defined in huaweicloud sdk + + :param upgrade_type_list: 升级类型信息列表。 + :type upgrade_type_list: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeTypeInfo`] + :param target_version: 升级目标版本,没有在滚动升级中返回null。 + :type target_version: str + :param upgrade_candidate_versions: 可以升级的版本,包括大小版本。 + :type upgrade_candidate_versions: list[str] + :param hotfix_upgrade_infos: 可以升级的热补丁信息。 + :type hotfix_upgrade_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixInfoResult`] + :param hotfix_rollback_infos: 可以回滚的热补丁信息。 + :type hotfix_rollback_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixInfoResult`] + """ + + super(BatchShowUpgradeCandidateVersionsResponse, self).__init__() + + self._upgrade_type_list = None + self._target_version = None + self._upgrade_candidate_versions = None + self._hotfix_upgrade_infos = None + self._hotfix_rollback_infos = None + self.discriminator = None + + if upgrade_type_list is not None: + self.upgrade_type_list = upgrade_type_list + if target_version is not None: + self.target_version = target_version + if upgrade_candidate_versions is not None: + self.upgrade_candidate_versions = upgrade_candidate_versions + if hotfix_upgrade_infos is not None: + self.hotfix_upgrade_infos = hotfix_upgrade_infos + if hotfix_rollback_infos is not None: + self.hotfix_rollback_infos = hotfix_rollback_infos + + @property + def upgrade_type_list(self): + """Gets the upgrade_type_list of this BatchShowUpgradeCandidateVersionsResponse. + + 升级类型信息列表。 + + :return: The upgrade_type_list of this BatchShowUpgradeCandidateVersionsResponse. + :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeTypeInfo`] + """ + return self._upgrade_type_list + + @upgrade_type_list.setter + def upgrade_type_list(self, upgrade_type_list): + """Sets the upgrade_type_list of this BatchShowUpgradeCandidateVersionsResponse. + + 升级类型信息列表。 + + :param upgrade_type_list: The upgrade_type_list of this BatchShowUpgradeCandidateVersionsResponse. + :type upgrade_type_list: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeTypeInfo`] + """ + self._upgrade_type_list = upgrade_type_list + + @property + def target_version(self): + """Gets the target_version of this BatchShowUpgradeCandidateVersionsResponse. + + 升级目标版本,没有在滚动升级中返回null。 + + :return: The target_version of this BatchShowUpgradeCandidateVersionsResponse. + :rtype: str + """ + return self._target_version + + @target_version.setter + def target_version(self, target_version): + """Sets the target_version of this BatchShowUpgradeCandidateVersionsResponse. + + 升级目标版本,没有在滚动升级中返回null。 + + :param target_version: The target_version of this BatchShowUpgradeCandidateVersionsResponse. + :type target_version: str + """ + self._target_version = target_version + + @property + def upgrade_candidate_versions(self): + """Gets the upgrade_candidate_versions of this BatchShowUpgradeCandidateVersionsResponse. + + 可以升级的版本,包括大小版本。 + + :return: The upgrade_candidate_versions of this BatchShowUpgradeCandidateVersionsResponse. + :rtype: list[str] + """ + return self._upgrade_candidate_versions + + @upgrade_candidate_versions.setter + def upgrade_candidate_versions(self, upgrade_candidate_versions): + """Sets the upgrade_candidate_versions of this BatchShowUpgradeCandidateVersionsResponse. + + 可以升级的版本,包括大小版本。 + + :param upgrade_candidate_versions: The upgrade_candidate_versions of this BatchShowUpgradeCandidateVersionsResponse. + :type upgrade_candidate_versions: list[str] + """ + self._upgrade_candidate_versions = upgrade_candidate_versions + + @property + def hotfix_upgrade_infos(self): + """Gets the hotfix_upgrade_infos of this BatchShowUpgradeCandidateVersionsResponse. + + 可以升级的热补丁信息。 + + :return: The hotfix_upgrade_infos of this BatchShowUpgradeCandidateVersionsResponse. + :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixInfoResult`] + """ + return self._hotfix_upgrade_infos + + @hotfix_upgrade_infos.setter + def hotfix_upgrade_infos(self, hotfix_upgrade_infos): + """Sets the hotfix_upgrade_infos of this BatchShowUpgradeCandidateVersionsResponse. + + 可以升级的热补丁信息。 + + :param hotfix_upgrade_infos: The hotfix_upgrade_infos of this BatchShowUpgradeCandidateVersionsResponse. + :type hotfix_upgrade_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixInfoResult`] + """ + self._hotfix_upgrade_infos = hotfix_upgrade_infos + + @property + def hotfix_rollback_infos(self): + """Gets the hotfix_rollback_infos of this BatchShowUpgradeCandidateVersionsResponse. + + 可以回滚的热补丁信息。 + + :return: The hotfix_rollback_infos of this BatchShowUpgradeCandidateVersionsResponse. + :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixInfoResult`] + """ + return self._hotfix_rollback_infos + + @hotfix_rollback_infos.setter + def hotfix_rollback_infos(self, hotfix_rollback_infos): + """Sets the hotfix_rollback_infos of this BatchShowUpgradeCandidateVersionsResponse. + + 可以回滚的热补丁信息。 + + :param hotfix_rollback_infos: The hotfix_rollback_infos of this BatchShowUpgradeCandidateVersionsResponse. + :type hotfix_rollback_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixInfoResult`] + """ + self._hotfix_rollback_infos = hotfix_rollback_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""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchShowUpgradeCandidateVersionsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/can_be_rollbacked_hotfix_detail.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/can_be_rollbacked_hotfix_detail.py new file mode 100644 index 0000000000..bd5a202514 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/can_be_rollbacked_hotfix_detail.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CanBeRollbackedHotfixDetail: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'common_patch': 'str', + 'backup_sensitive': 'bool', + 'descripition': 'str' + } + + attribute_map = { + 'version': 'version', + 'common_patch': 'common_patch', + 'backup_sensitive': 'backup_sensitive', + 'descripition': 'descripition' + } + + def __init__(self, version=None, common_patch=None, backup_sensitive=None, descripition=None): + """CanBeRollbackedHotfixDetail + + The model defined in huaweicloud sdk + + :param version: 热补丁版本。 + :type version: str + :param common_patch: 通用/非通用补丁信息。 枚举值: \"common\": 通用补丁。 \"certain\": 定制补丁。 + :type common_patch: str + :param backup_sensitive: 是否和备份相关。 + :type backup_sensitive: bool + :param descripition: 补丁的描述信息。 + :type descripition: str + """ + + + + self._version = None + self._common_patch = None + self._backup_sensitive = None + self._descripition = None + self.discriminator = None + + if version is not None: + self.version = version + if common_patch is not None: + self.common_patch = common_patch + if backup_sensitive is not None: + self.backup_sensitive = backup_sensitive + if descripition is not None: + self.descripition = descripition + + @property + def version(self): + """Gets the version of this CanBeRollbackedHotfixDetail. + + 热补丁版本。 + + :return: The version of this CanBeRollbackedHotfixDetail. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this CanBeRollbackedHotfixDetail. + + 热补丁版本。 + + :param version: The version of this CanBeRollbackedHotfixDetail. + :type version: str + """ + self._version = version + + @property + def common_patch(self): + """Gets the common_patch of this CanBeRollbackedHotfixDetail. + + 通用/非通用补丁信息。 枚举值: \"common\": 通用补丁。 \"certain\": 定制补丁。 + + :return: The common_patch of this CanBeRollbackedHotfixDetail. + :rtype: str + """ + return self._common_patch + + @common_patch.setter + def common_patch(self, common_patch): + """Sets the common_patch of this CanBeRollbackedHotfixDetail. + + 通用/非通用补丁信息。 枚举值: \"common\": 通用补丁。 \"certain\": 定制补丁。 + + :param common_patch: The common_patch of this CanBeRollbackedHotfixDetail. + :type common_patch: str + """ + self._common_patch = common_patch + + @property + def backup_sensitive(self): + """Gets the backup_sensitive of this CanBeRollbackedHotfixDetail. + + 是否和备份相关。 + + :return: The backup_sensitive of this CanBeRollbackedHotfixDetail. + :rtype: bool + """ + return self._backup_sensitive + + @backup_sensitive.setter + def backup_sensitive(self, backup_sensitive): + """Sets the backup_sensitive of this CanBeRollbackedHotfixDetail. + + 是否和备份相关。 + + :param backup_sensitive: The backup_sensitive of this CanBeRollbackedHotfixDetail. + :type backup_sensitive: bool + """ + self._backup_sensitive = backup_sensitive + + @property + def descripition(self): + """Gets the descripition of this CanBeRollbackedHotfixDetail. + + 补丁的描述信息。 + + :return: The descripition of this CanBeRollbackedHotfixDetail. + :rtype: str + """ + return self._descripition + + @descripition.setter + def descripition(self, descripition): + """Sets the descripition of this CanBeRollbackedHotfixDetail. + + 补丁的描述信息。 + + :param descripition: The descripition of this CanBeRollbackedHotfixDetail. + :type descripition: str + """ + self._descripition = descripition + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CanBeRollbackedHotfixDetail): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/can_be_upgraded_hotfix_detail.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/can_be_upgraded_hotfix_detail.py new file mode 100644 index 0000000000..8b6ed9315e --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/can_be_upgraded_hotfix_detail.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CanBeUpgradedHotfixDetail: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'common_patch': 'str', + 'backup_sensitive': 'bool', + 'descripition': 'str' + } + + attribute_map = { + 'version': 'version', + 'common_patch': 'common_patch', + 'backup_sensitive': 'backup_sensitive', + 'descripition': 'descripition' + } + + def __init__(self, version=None, common_patch=None, backup_sensitive=None, descripition=None): + """CanBeUpgradedHotfixDetail + + The model defined in huaweicloud sdk + + :param version: 热补丁版本。 + :type version: str + :param common_patch: 通用/非通用补丁信息。 枚举值: \"common\": 通用补丁。 \"certain\": 定制补丁。 + :type common_patch: str + :param backup_sensitive: 是否和备份相关。 + :type backup_sensitive: bool + :param descripition: 补丁的描述信息。 + :type descripition: str + """ + + + + self._version = None + self._common_patch = None + self._backup_sensitive = None + self._descripition = None + self.discriminator = None + + if version is not None: + self.version = version + if common_patch is not None: + self.common_patch = common_patch + if backup_sensitive is not None: + self.backup_sensitive = backup_sensitive + if descripition is not None: + self.descripition = descripition + + @property + def version(self): + """Gets the version of this CanBeUpgradedHotfixDetail. + + 热补丁版本。 + + :return: The version of this CanBeUpgradedHotfixDetail. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this CanBeUpgradedHotfixDetail. + + 热补丁版本。 + + :param version: The version of this CanBeUpgradedHotfixDetail. + :type version: str + """ + self._version = version + + @property + def common_patch(self): + """Gets the common_patch of this CanBeUpgradedHotfixDetail. + + 通用/非通用补丁信息。 枚举值: \"common\": 通用补丁。 \"certain\": 定制补丁。 + + :return: The common_patch of this CanBeUpgradedHotfixDetail. + :rtype: str + """ + return self._common_patch + + @common_patch.setter + def common_patch(self, common_patch): + """Sets the common_patch of this CanBeUpgradedHotfixDetail. + + 通用/非通用补丁信息。 枚举值: \"common\": 通用补丁。 \"certain\": 定制补丁。 + + :param common_patch: The common_patch of this CanBeUpgradedHotfixDetail. + :type common_patch: str + """ + self._common_patch = common_patch + + @property + def backup_sensitive(self): + """Gets the backup_sensitive of this CanBeUpgradedHotfixDetail. + + 是否和备份相关。 + + :return: The backup_sensitive of this CanBeUpgradedHotfixDetail. + :rtype: bool + """ + return self._backup_sensitive + + @backup_sensitive.setter + def backup_sensitive(self, backup_sensitive): + """Sets the backup_sensitive of this CanBeUpgradedHotfixDetail. + + 是否和备份相关。 + + :param backup_sensitive: The backup_sensitive of this CanBeUpgradedHotfixDetail. + :type backup_sensitive: bool + """ + self._backup_sensitive = backup_sensitive + + @property + def descripition(self): + """Gets the descripition of this CanBeUpgradedHotfixDetail. + + 补丁的描述信息。 + + :return: The descripition of this CanBeUpgradedHotfixDetail. + :rtype: str + """ + return self._descripition + + @descripition.setter + def descripition(self, descripition): + """Sets the descripition of this CanBeUpgradedHotfixDetail. + + 补丁的描述信息。 + + :param descripition: The descripition of this CanBeUpgradedHotfixDetail. + :type descripition: str + """ + self._descripition = descripition + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CanBeUpgradedHotfixDetail): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/configurations_result.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/configurations_result.py new file mode 100644 index 0000000000..9263fa7270 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/configurations_result.py @@ -0,0 +1,339 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ConfigurationsResult: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'name': 'str', + 'description': 'str', + 'datastore_version': 'str', + 'datastore_name': 'str', + 'ha_mode': 'str', + 'created': 'str', + 'updated': 'str', + 'user_defined': 'bool' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'description': 'description', + 'datastore_version': 'datastore_version', + 'datastore_name': 'datastore_name', + 'ha_mode': 'ha_mode', + 'created': 'created', + 'updated': 'updated', + 'user_defined': 'user_defined' + } + + def __init__(self, id=None, name=None, description=None, datastore_version=None, datastore_name=None, ha_mode=None, created=None, updated=None, user_defined=None): + """ConfigurationsResult + + The model defined in huaweicloud sdk + + :param id: 参数组ID。 + :type id: str + :param name: 参数组名称。 + :type name: str + :param description: 参数组描述。 + :type description: str + :param datastore_version: 引擎版本。 + :type datastore_version: str + :param datastore_name: 引擎名称。 + :type datastore_name: str + :param ha_mode: 实例类型。 + :type ha_mode: str + :param created: 创建时间,格式为\"yyyy-MM-dd HH:mm:ss\"。 + :type created: str + :param updated: 更新时间,格式为\"yyyy-MM-dd HH:mm:ss\"。 + :type updated: str + :param user_defined: 是否是用户自定义参数模板: - false,表示为系统默认参数模板。 - true,表示为用户自定义参数模板。 + :type user_defined: bool + """ + + + + self._id = None + self._name = None + self._description = None + self._datastore_version = None + self._datastore_name = None + self._ha_mode = None + self._created = None + self._updated = None + self._user_defined = None + self.discriminator = None + + self.id = id + self.name = name + if description is not None: + self.description = description + self.datastore_version = datastore_version + self.datastore_name = datastore_name + self.ha_mode = ha_mode + self.created = created + self.updated = updated + self.user_defined = user_defined + + @property + def id(self): + """Gets the id of this ConfigurationsResult. + + 参数组ID。 + + :return: The id of this ConfigurationsResult. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ConfigurationsResult. + + 参数组ID。 + + :param id: The id of this ConfigurationsResult. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this ConfigurationsResult. + + 参数组名称。 + + :return: The name of this ConfigurationsResult. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ConfigurationsResult. + + 参数组名称。 + + :param name: The name of this ConfigurationsResult. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this ConfigurationsResult. + + 参数组描述。 + + :return: The description of this ConfigurationsResult. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ConfigurationsResult. + + 参数组描述。 + + :param description: The description of this ConfigurationsResult. + :type description: str + """ + self._description = description + + @property + def datastore_version(self): + """Gets the datastore_version of this ConfigurationsResult. + + 引擎版本。 + + :return: The datastore_version of this ConfigurationsResult. + :rtype: str + """ + return self._datastore_version + + @datastore_version.setter + def datastore_version(self, datastore_version): + """Sets the datastore_version of this ConfigurationsResult. + + 引擎版本。 + + :param datastore_version: The datastore_version of this ConfigurationsResult. + :type datastore_version: str + """ + self._datastore_version = datastore_version + + @property + def datastore_name(self): + """Gets the datastore_name of this ConfigurationsResult. + + 引擎名称。 + + :return: The datastore_name of this ConfigurationsResult. + :rtype: str + """ + return self._datastore_name + + @datastore_name.setter + def datastore_name(self, datastore_name): + """Sets the datastore_name of this ConfigurationsResult. + + 引擎名称。 + + :param datastore_name: The datastore_name of this ConfigurationsResult. + :type datastore_name: str + """ + self._datastore_name = datastore_name + + @property + def ha_mode(self): + """Gets the ha_mode of this ConfigurationsResult. + + 实例类型。 + + :return: The ha_mode of this ConfigurationsResult. + :rtype: str + """ + return self._ha_mode + + @ha_mode.setter + def ha_mode(self, ha_mode): + """Sets the ha_mode of this ConfigurationsResult. + + 实例类型。 + + :param ha_mode: The ha_mode of this ConfigurationsResult. + :type ha_mode: str + """ + self._ha_mode = ha_mode + + @property + def created(self): + """Gets the created of this ConfigurationsResult. + + 创建时间,格式为\"yyyy-MM-dd HH:mm:ss\"。 + + :return: The created of this ConfigurationsResult. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """Sets the created of this ConfigurationsResult. + + 创建时间,格式为\"yyyy-MM-dd HH:mm:ss\"。 + + :param created: The created of this ConfigurationsResult. + :type created: str + """ + self._created = created + + @property + def updated(self): + """Gets the updated of this ConfigurationsResult. + + 更新时间,格式为\"yyyy-MM-dd HH:mm:ss\"。 + + :return: The updated of this ConfigurationsResult. + :rtype: str + """ + return self._updated + + @updated.setter + def updated(self, updated): + """Sets the updated of this ConfigurationsResult. + + 更新时间,格式为\"yyyy-MM-dd HH:mm:ss\"。 + + :param updated: The updated of this ConfigurationsResult. + :type updated: str + """ + self._updated = updated + + @property + def user_defined(self): + """Gets the user_defined of this ConfigurationsResult. + + 是否是用户自定义参数模板: - false,表示为系统默认参数模板。 - true,表示为用户自定义参数模板。 + + :return: The user_defined of this ConfigurationsResult. + :rtype: bool + """ + return self._user_defined + + @user_defined.setter + def user_defined(self, user_defined): + """Sets the user_defined of this ConfigurationsResult. + + 是否是用户自定义参数模板: - false,表示为系统默认参数模板。 - true,表示为用户自定义参数模板。 + + :param user_defined: The user_defined of this ConfigurationsResult. + :type user_defined: bool + """ + self._user_defined = user_defined + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConfigurationsResult): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_request.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_request.py new file mode 100644 index 0000000000..b8e3f531cb --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_request.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDatabaseInstanceRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_language': 'str', + 'body': 'CreateDatabaseInstanceRequestBody' + } + + attribute_map = { + 'x_language': 'X-Language', + 'body': 'body' + } + + def __init__(self, x_language=None, body=None): + """CreateDatabaseInstanceRequest + + The model defined in huaweicloud sdk + + :param x_language: 语言 + :type x_language: str + :param body: Body of the CreateDatabaseInstanceRequest + :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateDatabaseInstanceRequestBody` + """ + + + + self._x_language = None + self._body = None + self.discriminator = None + + if x_language is not None: + self.x_language = x_language + if body is not None: + self.body = body + + @property + def x_language(self): + """Gets the x_language of this CreateDatabaseInstanceRequest. + + 语言 + + :return: The x_language of this CreateDatabaseInstanceRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this CreateDatabaseInstanceRequest. + + 语言 + + :param x_language: The x_language of this CreateDatabaseInstanceRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def body(self): + """Gets the body of this CreateDatabaseInstanceRequest. + + :return: The body of this CreateDatabaseInstanceRequest. + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateDatabaseInstanceRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateDatabaseInstanceRequest. + + :param body: The body of this CreateDatabaseInstanceRequest. + :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateDatabaseInstanceRequestBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateDatabaseInstanceRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_request_body.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_request_body.py new file mode 100644 index 0000000000..4e6a569902 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_request_body.py @@ -0,0 +1,722 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDatabaseInstanceRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'datastore': 'CreateInstanceDatastoreOption', + 'ha': 'OpenGaussHaOption', + 'configuration_id': 'str', + 'port': 'str', + 'password': 'str', + 'backup_strategy': 'OpenGaussBackupStrategy', + 'enterprise_project_id': 'str', + 'disk_encryption_id': 'str', + 'flavor_ref': 'str', + 'volume': 'OpenGaussVolume', + 'region': 'str', + 'availability_zone': 'str', + 'vpc_id': 'str', + 'subnet_id': 'str', + 'security_group_id': 'str', + 'charge_info': 'OpenGaussChargeInfo', + 'time_zone': 'str', + 'sharding_num': 'int', + 'coordinator_num': 'int', + 'replica_num': 'int', + 'enable_force_switch': 'bool', + 'enable_single_float_ip': 'bool' + } + + attribute_map = { + 'name': 'name', + 'datastore': 'datastore', + 'ha': 'ha', + 'configuration_id': 'configuration_id', + 'port': 'port', + 'password': 'password', + 'backup_strategy': 'backup_strategy', + 'enterprise_project_id': 'enterprise_project_id', + 'disk_encryption_id': 'disk_encryption_id', + 'flavor_ref': 'flavor_ref', + 'volume': 'volume', + 'region': 'region', + 'availability_zone': 'availability_zone', + 'vpc_id': 'vpc_id', + 'subnet_id': 'subnet_id', + 'security_group_id': 'security_group_id', + 'charge_info': 'charge_info', + 'time_zone': 'time_zone', + 'sharding_num': 'sharding_num', + 'coordinator_num': 'coordinator_num', + 'replica_num': 'replica_num', + 'enable_force_switch': 'enable_force_switch', + 'enable_single_float_ip': 'enable_single_float_ip' + } + + def __init__(self, name=None, datastore=None, ha=None, configuration_id=None, port=None, password=None, backup_strategy=None, enterprise_project_id=None, disk_encryption_id=None, flavor_ref=None, volume=None, region=None, availability_zone=None, vpc_id=None, subnet_id=None, security_group_id=None, charge_info=None, time_zone=None, sharding_num=None, coordinator_num=None, replica_num=None, enable_force_switch=None, enable_single_float_ip=None): + """CreateDatabaseInstanceRequestBody + + The model defined in huaweicloud sdk + + :param name: 实例名称。 用于表示实例的名称,同一租户下,同类型的实例名可重名。 取值范围:4~64个字符之间,必须以字母开头,区分大小写,可以包含字母、数字、中划线或者下划线,不能包含其他的特殊字符。 + :type name: str + :param datastore: + :type datastore: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateInstanceDatastoreOption` + :param ha: + :type ha: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussHaOption` + :param configuration_id: 参数模板ID。当不传该参数时,使用系统默认的参数模板。 + :type configuration_id: str + :param port: 数据库对外开放的端口,不填默认为8000,可选范围为:1024-39998。限制端口: 2378,2379,2380,4999,5000,5999,6000,6001,8097,8098,12016,12017,20049,20050,21731,21732,32122,32123,32124。 - GaussDB数据库端口当前只支持设置为8000,当不传该参数时,默认端口为8000。 + :type port: str + :param password: 数据库密码。必选。 取值范围: '非空; 至少包含大写字母(A-Z),小写字母(a-z),数字(0-9),非字母数字字符(限定为~!@#%^*-_=+?,)四类字符中的三类字符;长度8~32个字符。' '建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。' + :type password: str + :param backup_strategy: + :type backup_strategy: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussBackupStrategy` + :param enterprise_project_id: 企业项目ID。只有企业租户时该参数才生效。 使用请参考《企业管理 API参考》的“[查询企业项目列表](https://support.huaweicloud.com/api-em/zh-cn_topic_0121230880.html)”响应消息表“enterprise_project字段数据结构说明”的“id”。 + :type enterprise_project_id: str + :param disk_encryption_id: 用于磁盘加密的密钥ID,默认为空。 + :type disk_encryption_id: str + :param flavor_ref: 规格码,取值范围:非空。参考[表1](https://support.huaweicloud.com/api-opengauss/opengauss_api_0037.html#opengauss_api_0037__ted9b9d433c8a4c52884e199e17f94479)中GaussDB的“规格编码”列内容获取。 + :type flavor_ref: str + :param volume: + :type volume: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussVolume` + :param region: 区域ID。 取值范围:非空,请参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + :type region: str + :param availability_zone: 可用区ID。 GaussDB取值范围:非空,可选部署在同一可用区或三个不同可用区,可用区之间用逗号隔开。详见示例。 - 部署在同一可用区:需要输入三个相同的可用区。例如:部署在“cn-north-4a”可用区,则需要在此处输入\"cn-north-4a,cn-north-4a,cn-north-4a\"。 - 部署在三个不同可用区:需要分别输入三个不同的可用区。 取值范围:非空,请参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + :type availability_zone: str + :param vpc_id: 虚拟私有云ID,获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)。 + :type vpc_id: str + :param subnet_id: 子网的网络ID信息,获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找网络ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。 + :type subnet_id: str + :param security_group_id: 指定实例所属的安全组。如果不需要指定安全组,请联系客服申请白名单。 - 方法1:登录虚拟私有云服务的控制台界面,在安全组的详情页面查找安全组ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询安全组列表](https://support.huaweicloud.com/api-vpc/vpc_sg01_0003.html)。 + :type security_group_id: str + :param charge_info: + :type charge_info: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussChargeInfo` + :param time_zone: UTC时区。 - 不选择时,GaussDB国内站、默认为UTC时间。 - 选择填写时,取值范围为UTC-12:00~UTC+12:00,且只支持整段时间,如UTC+08:00,不支持UTC+08:30。 + :type time_zone: str + :param sharding_num: 仅分布式形态需要填写该参数。分片数量,取值范围1~9。 + :type sharding_num: int + :param coordinator_num: 仅分布式形态需要填写该参数。协调节点数量,取值范围1~9。CN数量必须小于或等于两倍的分片数。 + :type coordinator_num: int + :param replica_num: 实例副本数,支持取值3。不填默认为3。仅支持V2.0-1.3.0及以上版本的实例。 + :type replica_num: int + :param enable_force_switch: enable_force_switch表示是否开启备机强升主功能,enable_force_switch=true表示开启备机强升主功能,enable_force_switch=false表示关闭,默认关闭。仅支持V2.0-1.2.2及以上版本。 说明: 备机强升主功能适用场景:在主机发生故障后,为了保障集群的可用性,强制拉起备机作为新主机对外提供服务的场景。 本功能在集群故障状态下,以丢失部分数据为代价换取集群尽可能快的恢复服务。本功能是集群状态为不可用时的一个逃生方法,如果操作者不清楚备机强升后丢失数据对业务的影响,请勿使用本功能。 备机强升主相关介绍请参考《故障处理》备机强升主章节。 + :type enable_force_switch: bool + :param enable_single_float_ip: 单浮动IP策略,仅主备版支持。默认值是false,表示不开启单浮动IP策略。 取值范围: true:开启单浮动IP策略,实例将只有一个浮动IP绑定主节点,如果发生主备倒换,浮动IP不会发生变化。 false:不开启单浮动IP策略,每个节点都会绑定一个浮动IP,如果发生主备倒换,浮动IP会发生变化。 说明: 仅支持V2.0-3.206及以上版本的主备版实例。 + :type enable_single_float_ip: bool + """ + + + + self._name = None + self._datastore = None + self._ha = None + self._configuration_id = None + self._port = None + self._password = None + self._backup_strategy = None + self._enterprise_project_id = None + self._disk_encryption_id = None + self._flavor_ref = None + self._volume = None + self._region = None + self._availability_zone = None + self._vpc_id = None + self._subnet_id = None + self._security_group_id = None + self._charge_info = None + self._time_zone = None + self._sharding_num = None + self._coordinator_num = None + self._replica_num = None + self._enable_force_switch = None + self._enable_single_float_ip = None + self.discriminator = None + + self.name = name + self.datastore = datastore + self.ha = ha + if configuration_id is not None: + self.configuration_id = configuration_id + if port is not None: + self.port = port + self.password = password + if backup_strategy is not None: + self.backup_strategy = backup_strategy + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + if disk_encryption_id is not None: + self.disk_encryption_id = disk_encryption_id + self.flavor_ref = flavor_ref + self.volume = volume + self.region = region + self.availability_zone = availability_zone + self.vpc_id = vpc_id + self.subnet_id = subnet_id + self.security_group_id = security_group_id + if charge_info is not None: + self.charge_info = charge_info + if time_zone is not None: + self.time_zone = time_zone + if sharding_num is not None: + self.sharding_num = sharding_num + if coordinator_num is not None: + self.coordinator_num = coordinator_num + if replica_num is not None: + self.replica_num = replica_num + if enable_force_switch is not None: + self.enable_force_switch = enable_force_switch + if enable_single_float_ip is not None: + self.enable_single_float_ip = enable_single_float_ip + + @property + def name(self): + """Gets the name of this CreateDatabaseInstanceRequestBody. + + 实例名称。 用于表示实例的名称,同一租户下,同类型的实例名可重名。 取值范围:4~64个字符之间,必须以字母开头,区分大小写,可以包含字母、数字、中划线或者下划线,不能包含其他的特殊字符。 + + :return: The name of this CreateDatabaseInstanceRequestBody. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateDatabaseInstanceRequestBody. + + 实例名称。 用于表示实例的名称,同一租户下,同类型的实例名可重名。 取值范围:4~64个字符之间,必须以字母开头,区分大小写,可以包含字母、数字、中划线或者下划线,不能包含其他的特殊字符。 + + :param name: The name of this CreateDatabaseInstanceRequestBody. + :type name: str + """ + self._name = name + + @property + def datastore(self): + """Gets the datastore of this CreateDatabaseInstanceRequestBody. + + :return: The datastore of this CreateDatabaseInstanceRequestBody. + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateInstanceDatastoreOption` + """ + return self._datastore + + @datastore.setter + def datastore(self, datastore): + """Sets the datastore of this CreateDatabaseInstanceRequestBody. + + :param datastore: The datastore of this CreateDatabaseInstanceRequestBody. + :type datastore: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateInstanceDatastoreOption` + """ + self._datastore = datastore + + @property + def ha(self): + """Gets the ha of this CreateDatabaseInstanceRequestBody. + + :return: The ha of this CreateDatabaseInstanceRequestBody. + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussHaOption` + """ + return self._ha + + @ha.setter + def ha(self, ha): + """Sets the ha of this CreateDatabaseInstanceRequestBody. + + :param ha: The ha of this CreateDatabaseInstanceRequestBody. + :type ha: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussHaOption` + """ + self._ha = ha + + @property + def configuration_id(self): + """Gets the configuration_id of this CreateDatabaseInstanceRequestBody. + + 参数模板ID。当不传该参数时,使用系统默认的参数模板。 + + :return: The configuration_id of this CreateDatabaseInstanceRequestBody. + :rtype: str + """ + return self._configuration_id + + @configuration_id.setter + def configuration_id(self, configuration_id): + """Sets the configuration_id of this CreateDatabaseInstanceRequestBody. + + 参数模板ID。当不传该参数时,使用系统默认的参数模板。 + + :param configuration_id: The configuration_id of this CreateDatabaseInstanceRequestBody. + :type configuration_id: str + """ + self._configuration_id = configuration_id + + @property + def port(self): + """Gets the port of this CreateDatabaseInstanceRequestBody. + + 数据库对外开放的端口,不填默认为8000,可选范围为:1024-39998。限制端口: 2378,2379,2380,4999,5000,5999,6000,6001,8097,8098,12016,12017,20049,20050,21731,21732,32122,32123,32124。 - GaussDB数据库端口当前只支持设置为8000,当不传该参数时,默认端口为8000。 + + :return: The port of this CreateDatabaseInstanceRequestBody. + :rtype: str + """ + return self._port + + @port.setter + def port(self, port): + """Sets the port of this CreateDatabaseInstanceRequestBody. + + 数据库对外开放的端口,不填默认为8000,可选范围为:1024-39998。限制端口: 2378,2379,2380,4999,5000,5999,6000,6001,8097,8098,12016,12017,20049,20050,21731,21732,32122,32123,32124。 - GaussDB数据库端口当前只支持设置为8000,当不传该参数时,默认端口为8000。 + + :param port: The port of this CreateDatabaseInstanceRequestBody. + :type port: str + """ + self._port = port + + @property + def password(self): + """Gets the password of this CreateDatabaseInstanceRequestBody. + + 数据库密码。必选。 取值范围: '非空; 至少包含大写字母(A-Z),小写字母(a-z),数字(0-9),非字母数字字符(限定为~!@#%^*-_=+?,)四类字符中的三类字符;长度8~32个字符。' '建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。' + + :return: The password of this CreateDatabaseInstanceRequestBody. + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """Sets the password of this CreateDatabaseInstanceRequestBody. + + 数据库密码。必选。 取值范围: '非空; 至少包含大写字母(A-Z),小写字母(a-z),数字(0-9),非字母数字字符(限定为~!@#%^*-_=+?,)四类字符中的三类字符;长度8~32个字符。' '建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。' + + :param password: The password of this CreateDatabaseInstanceRequestBody. + :type password: str + """ + self._password = password + + @property + def backup_strategy(self): + """Gets the backup_strategy of this CreateDatabaseInstanceRequestBody. + + :return: The backup_strategy of this CreateDatabaseInstanceRequestBody. + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussBackupStrategy` + """ + return self._backup_strategy + + @backup_strategy.setter + def backup_strategy(self, backup_strategy): + """Sets the backup_strategy of this CreateDatabaseInstanceRequestBody. + + :param backup_strategy: The backup_strategy of this CreateDatabaseInstanceRequestBody. + :type backup_strategy: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussBackupStrategy` + """ + self._backup_strategy = backup_strategy + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this CreateDatabaseInstanceRequestBody. + + 企业项目ID。只有企业租户时该参数才生效。 使用请参考《企业管理 API参考》的“[查询企业项目列表](https://support.huaweicloud.com/api-em/zh-cn_topic_0121230880.html)”响应消息表“enterprise_project字段数据结构说明”的“id”。 + + :return: The enterprise_project_id of this CreateDatabaseInstanceRequestBody. + :rtype: str + """ + return self._enterprise_project_id + + @enterprise_project_id.setter + def enterprise_project_id(self, enterprise_project_id): + """Sets the enterprise_project_id of this CreateDatabaseInstanceRequestBody. + + 企业项目ID。只有企业租户时该参数才生效。 使用请参考《企业管理 API参考》的“[查询企业项目列表](https://support.huaweicloud.com/api-em/zh-cn_topic_0121230880.html)”响应消息表“enterprise_project字段数据结构说明”的“id”。 + + :param enterprise_project_id: The enterprise_project_id of this CreateDatabaseInstanceRequestBody. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def disk_encryption_id(self): + """Gets the disk_encryption_id of this CreateDatabaseInstanceRequestBody. + + 用于磁盘加密的密钥ID,默认为空。 + + :return: The disk_encryption_id of this CreateDatabaseInstanceRequestBody. + :rtype: str + """ + return self._disk_encryption_id + + @disk_encryption_id.setter + def disk_encryption_id(self, disk_encryption_id): + """Sets the disk_encryption_id of this CreateDatabaseInstanceRequestBody. + + 用于磁盘加密的密钥ID,默认为空。 + + :param disk_encryption_id: The disk_encryption_id of this CreateDatabaseInstanceRequestBody. + :type disk_encryption_id: str + """ + self._disk_encryption_id = disk_encryption_id + + @property + def flavor_ref(self): + """Gets the flavor_ref of this CreateDatabaseInstanceRequestBody. + + 规格码,取值范围:非空。参考[表1](https://support.huaweicloud.com/api-opengauss/opengauss_api_0037.html#opengauss_api_0037__ted9b9d433c8a4c52884e199e17f94479)中GaussDB的“规格编码”列内容获取。 + + :return: The flavor_ref of this CreateDatabaseInstanceRequestBody. + :rtype: str + """ + return self._flavor_ref + + @flavor_ref.setter + def flavor_ref(self, flavor_ref): + """Sets the flavor_ref of this CreateDatabaseInstanceRequestBody. + + 规格码,取值范围:非空。参考[表1](https://support.huaweicloud.com/api-opengauss/opengauss_api_0037.html#opengauss_api_0037__ted9b9d433c8a4c52884e199e17f94479)中GaussDB的“规格编码”列内容获取。 + + :param flavor_ref: The flavor_ref of this CreateDatabaseInstanceRequestBody. + :type flavor_ref: str + """ + self._flavor_ref = flavor_ref + + @property + def volume(self): + """Gets the volume of this CreateDatabaseInstanceRequestBody. + + :return: The volume of this CreateDatabaseInstanceRequestBody. + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussVolume` + """ + return self._volume + + @volume.setter + def volume(self, volume): + """Sets the volume of this CreateDatabaseInstanceRequestBody. + + :param volume: The volume of this CreateDatabaseInstanceRequestBody. + :type volume: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussVolume` + """ + self._volume = volume + + @property + def region(self): + """Gets the region of this CreateDatabaseInstanceRequestBody. + + 区域ID。 取值范围:非空,请参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + + :return: The region of this CreateDatabaseInstanceRequestBody. + :rtype: str + """ + return self._region + + @region.setter + def region(self, region): + """Sets the region of this CreateDatabaseInstanceRequestBody. + + 区域ID。 取值范围:非空,请参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + + :param region: The region of this CreateDatabaseInstanceRequestBody. + :type region: str + """ + self._region = region + + @property + def availability_zone(self): + """Gets the availability_zone of this CreateDatabaseInstanceRequestBody. + + 可用区ID。 GaussDB取值范围:非空,可选部署在同一可用区或三个不同可用区,可用区之间用逗号隔开。详见示例。 - 部署在同一可用区:需要输入三个相同的可用区。例如:部署在“cn-north-4a”可用区,则需要在此处输入\"cn-north-4a,cn-north-4a,cn-north-4a\"。 - 部署在三个不同可用区:需要分别输入三个不同的可用区。 取值范围:非空,请参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + + :return: The availability_zone of this CreateDatabaseInstanceRequestBody. + :rtype: str + """ + return self._availability_zone + + @availability_zone.setter + def availability_zone(self, availability_zone): + """Sets the availability_zone of this CreateDatabaseInstanceRequestBody. + + 可用区ID。 GaussDB取值范围:非空,可选部署在同一可用区或三个不同可用区,可用区之间用逗号隔开。详见示例。 - 部署在同一可用区:需要输入三个相同的可用区。例如:部署在“cn-north-4a”可用区,则需要在此处输入\"cn-north-4a,cn-north-4a,cn-north-4a\"。 - 部署在三个不同可用区:需要分别输入三个不同的可用区。 取值范围:非空,请参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + + :param availability_zone: The availability_zone of this CreateDatabaseInstanceRequestBody. + :type availability_zone: str + """ + self._availability_zone = availability_zone + + @property + def vpc_id(self): + """Gets the vpc_id of this CreateDatabaseInstanceRequestBody. + + 虚拟私有云ID,获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)。 + + :return: The vpc_id of this CreateDatabaseInstanceRequestBody. + :rtype: str + """ + return self._vpc_id + + @vpc_id.setter + def vpc_id(self, vpc_id): + """Sets the vpc_id of this CreateDatabaseInstanceRequestBody. + + 虚拟私有云ID,获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)。 + + :param vpc_id: The vpc_id of this CreateDatabaseInstanceRequestBody. + :type vpc_id: str + """ + self._vpc_id = vpc_id + + @property + def subnet_id(self): + """Gets the subnet_id of this CreateDatabaseInstanceRequestBody. + + 子网的网络ID信息,获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找网络ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。 + + :return: The subnet_id of this CreateDatabaseInstanceRequestBody. + :rtype: str + """ + return self._subnet_id + + @subnet_id.setter + def subnet_id(self, subnet_id): + """Sets the subnet_id of this CreateDatabaseInstanceRequestBody. + + 子网的网络ID信息,获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找网络ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。 + + :param subnet_id: The subnet_id of this CreateDatabaseInstanceRequestBody. + :type subnet_id: str + """ + self._subnet_id = subnet_id + + @property + def security_group_id(self): + """Gets the security_group_id of this CreateDatabaseInstanceRequestBody. + + 指定实例所属的安全组。如果不需要指定安全组,请联系客服申请白名单。 - 方法1:登录虚拟私有云服务的控制台界面,在安全组的详情页面查找安全组ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询安全组列表](https://support.huaweicloud.com/api-vpc/vpc_sg01_0003.html)。 + + :return: The security_group_id of this CreateDatabaseInstanceRequestBody. + :rtype: str + """ + return self._security_group_id + + @security_group_id.setter + def security_group_id(self, security_group_id): + """Sets the security_group_id of this CreateDatabaseInstanceRequestBody. + + 指定实例所属的安全组。如果不需要指定安全组,请联系客服申请白名单。 - 方法1:登录虚拟私有云服务的控制台界面,在安全组的详情页面查找安全组ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询安全组列表](https://support.huaweicloud.com/api-vpc/vpc_sg01_0003.html)。 + + :param security_group_id: The security_group_id of this CreateDatabaseInstanceRequestBody. + :type security_group_id: str + """ + self._security_group_id = security_group_id + + @property + def charge_info(self): + """Gets the charge_info of this CreateDatabaseInstanceRequestBody. + + :return: The charge_info of this CreateDatabaseInstanceRequestBody. + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussChargeInfo` + """ + return self._charge_info + + @charge_info.setter + def charge_info(self, charge_info): + """Sets the charge_info of this CreateDatabaseInstanceRequestBody. + + :param charge_info: The charge_info of this CreateDatabaseInstanceRequestBody. + :type charge_info: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussChargeInfo` + """ + self._charge_info = charge_info + + @property + def time_zone(self): + """Gets the time_zone of this CreateDatabaseInstanceRequestBody. + + UTC时区。 - 不选择时,GaussDB国内站、默认为UTC时间。 - 选择填写时,取值范围为UTC-12:00~UTC+12:00,且只支持整段时间,如UTC+08:00,不支持UTC+08:30。 + + :return: The time_zone of this CreateDatabaseInstanceRequestBody. + :rtype: str + """ + return self._time_zone + + @time_zone.setter + def time_zone(self, time_zone): + """Sets the time_zone of this CreateDatabaseInstanceRequestBody. + + UTC时区。 - 不选择时,GaussDB国内站、默认为UTC时间。 - 选择填写时,取值范围为UTC-12:00~UTC+12:00,且只支持整段时间,如UTC+08:00,不支持UTC+08:30。 + + :param time_zone: The time_zone of this CreateDatabaseInstanceRequestBody. + :type time_zone: str + """ + self._time_zone = time_zone + + @property + def sharding_num(self): + """Gets the sharding_num of this CreateDatabaseInstanceRequestBody. + + 仅分布式形态需要填写该参数。分片数量,取值范围1~9。 + + :return: The sharding_num of this CreateDatabaseInstanceRequestBody. + :rtype: int + """ + return self._sharding_num + + @sharding_num.setter + def sharding_num(self, sharding_num): + """Sets the sharding_num of this CreateDatabaseInstanceRequestBody. + + 仅分布式形态需要填写该参数。分片数量,取值范围1~9。 + + :param sharding_num: The sharding_num of this CreateDatabaseInstanceRequestBody. + :type sharding_num: int + """ + self._sharding_num = sharding_num + + @property + def coordinator_num(self): + """Gets the coordinator_num of this CreateDatabaseInstanceRequestBody. + + 仅分布式形态需要填写该参数。协调节点数量,取值范围1~9。CN数量必须小于或等于两倍的分片数。 + + :return: The coordinator_num of this CreateDatabaseInstanceRequestBody. + :rtype: int + """ + return self._coordinator_num + + @coordinator_num.setter + def coordinator_num(self, coordinator_num): + """Sets the coordinator_num of this CreateDatabaseInstanceRequestBody. + + 仅分布式形态需要填写该参数。协调节点数量,取值范围1~9。CN数量必须小于或等于两倍的分片数。 + + :param coordinator_num: The coordinator_num of this CreateDatabaseInstanceRequestBody. + :type coordinator_num: int + """ + self._coordinator_num = coordinator_num + + @property + def replica_num(self): + """Gets the replica_num of this CreateDatabaseInstanceRequestBody. + + 实例副本数,支持取值3。不填默认为3。仅支持V2.0-1.3.0及以上版本的实例。 + + :return: The replica_num of this CreateDatabaseInstanceRequestBody. + :rtype: int + """ + return self._replica_num + + @replica_num.setter + def replica_num(self, replica_num): + """Sets the replica_num of this CreateDatabaseInstanceRequestBody. + + 实例副本数,支持取值3。不填默认为3。仅支持V2.0-1.3.0及以上版本的实例。 + + :param replica_num: The replica_num of this CreateDatabaseInstanceRequestBody. + :type replica_num: int + """ + self._replica_num = replica_num + + @property + def enable_force_switch(self): + """Gets the enable_force_switch of this CreateDatabaseInstanceRequestBody. + + enable_force_switch表示是否开启备机强升主功能,enable_force_switch=true表示开启备机强升主功能,enable_force_switch=false表示关闭,默认关闭。仅支持V2.0-1.2.2及以上版本。 说明: 备机强升主功能适用场景:在主机发生故障后,为了保障集群的可用性,强制拉起备机作为新主机对外提供服务的场景。 本功能在集群故障状态下,以丢失部分数据为代价换取集群尽可能快的恢复服务。本功能是集群状态为不可用时的一个逃生方法,如果操作者不清楚备机强升后丢失数据对业务的影响,请勿使用本功能。 备机强升主相关介绍请参考《故障处理》备机强升主章节。 + + :return: The enable_force_switch of this CreateDatabaseInstanceRequestBody. + :rtype: bool + """ + return self._enable_force_switch + + @enable_force_switch.setter + def enable_force_switch(self, enable_force_switch): + """Sets the enable_force_switch of this CreateDatabaseInstanceRequestBody. + + enable_force_switch表示是否开启备机强升主功能,enable_force_switch=true表示开启备机强升主功能,enable_force_switch=false表示关闭,默认关闭。仅支持V2.0-1.2.2及以上版本。 说明: 备机强升主功能适用场景:在主机发生故障后,为了保障集群的可用性,强制拉起备机作为新主机对外提供服务的场景。 本功能在集群故障状态下,以丢失部分数据为代价换取集群尽可能快的恢复服务。本功能是集群状态为不可用时的一个逃生方法,如果操作者不清楚备机强升后丢失数据对业务的影响,请勿使用本功能。 备机强升主相关介绍请参考《故障处理》备机强升主章节。 + + :param enable_force_switch: The enable_force_switch of this CreateDatabaseInstanceRequestBody. + :type enable_force_switch: bool + """ + self._enable_force_switch = enable_force_switch + + @property + def enable_single_float_ip(self): + """Gets the enable_single_float_ip of this CreateDatabaseInstanceRequestBody. + + 单浮动IP策略,仅主备版支持。默认值是false,表示不开启单浮动IP策略。 取值范围: true:开启单浮动IP策略,实例将只有一个浮动IP绑定主节点,如果发生主备倒换,浮动IP不会发生变化。 false:不开启单浮动IP策略,每个节点都会绑定一个浮动IP,如果发生主备倒换,浮动IP会发生变化。 说明: 仅支持V2.0-3.206及以上版本的主备版实例。 + + :return: The enable_single_float_ip of this CreateDatabaseInstanceRequestBody. + :rtype: bool + """ + return self._enable_single_float_ip + + @enable_single_float_ip.setter + def enable_single_float_ip(self, enable_single_float_ip): + """Sets the enable_single_float_ip of this CreateDatabaseInstanceRequestBody. + + 单浮动IP策略,仅主备版支持。默认值是false,表示不开启单浮动IP策略。 取值范围: true:开启单浮动IP策略,实例将只有一个浮动IP绑定主节点,如果发生主备倒换,浮动IP不会发生变化。 false:不开启单浮动IP策略,每个节点都会绑定一个浮动IP,如果发生主备倒换,浮动IP会发生变化。 说明: 仅支持V2.0-3.206及以上版本的主备版实例。 + + :param enable_single_float_ip: The enable_single_float_ip of this CreateDatabaseInstanceRequestBody. + :type enable_single_float_ip: bool + """ + self._enable_single_float_ip = enable_single_float_ip + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateDatabaseInstanceRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_response.py new file mode 100644 index 0000000000..e8931ab0a5 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_response.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDatabaseInstanceResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance': 'CreateDatabaseInstanceResult', + 'job_id': 'str', + 'order_id': 'str' + } + + attribute_map = { + 'instance': 'instance', + 'job_id': 'job_id', + 'order_id': 'order_id' + } + + def __init__(self, instance=None, job_id=None, order_id=None): + """CreateDatabaseInstanceResponse + + The model defined in huaweicloud sdk + + :param instance: + :type instance: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateDatabaseInstanceResult` + :param job_id: 实例创建的任务id。 仅创建按需实例时会返回该参数。 + :type job_id: str + :param order_id: 创建实例的订单ID。 仅创建包周期实例时会返回该参数。 + :type order_id: str + """ + + super(CreateDatabaseInstanceResponse, self).__init__() + + self._instance = None + self._job_id = None + self._order_id = None + self.discriminator = None + + if instance is not None: + self.instance = instance + if job_id is not None: + self.job_id = job_id + if order_id is not None: + self.order_id = order_id + + @property + def instance(self): + """Gets the instance of this CreateDatabaseInstanceResponse. + + :return: The instance of this CreateDatabaseInstanceResponse. + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateDatabaseInstanceResult` + """ + return self._instance + + @instance.setter + def instance(self, instance): + """Sets the instance of this CreateDatabaseInstanceResponse. + + :param instance: The instance of this CreateDatabaseInstanceResponse. + :type instance: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateDatabaseInstanceResult` + """ + self._instance = instance + + @property + def job_id(self): + """Gets the job_id of this CreateDatabaseInstanceResponse. + + 实例创建的任务id。 仅创建按需实例时会返回该参数。 + + :return: The job_id of this CreateDatabaseInstanceResponse. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this CreateDatabaseInstanceResponse. + + 实例创建的任务id。 仅创建按需实例时会返回该参数。 + + :param job_id: The job_id of this CreateDatabaseInstanceResponse. + :type job_id: str + """ + self._job_id = job_id + + @property + def order_id(self): + """Gets the order_id of this CreateDatabaseInstanceResponse. + + 创建实例的订单ID。 仅创建包周期实例时会返回该参数。 + + :return: The order_id of this CreateDatabaseInstanceResponse. + :rtype: str + """ + return self._order_id + + @order_id.setter + def order_id(self, order_id): + """Sets the order_id of this CreateDatabaseInstanceResponse. + + 创建实例的订单ID。 仅创建包周期实例时会返回该参数。 + + :param order_id: The order_id of this CreateDatabaseInstanceResponse. + :type order_id: str + """ + self._order_id = order_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateDatabaseInstanceResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_result.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_result.py new file mode 100644 index 0000000000..b622790ba3 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_result.py @@ -0,0 +1,544 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDatabaseInstanceResult: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'name': 'str', + 'status': 'str', + 'datastore': 'DatastoreResult', + 'ha': 'OpenGaussHaResult', + 'replica_num': 'int', + 'backup_strategy': 'OpenGaussBackupStrategyForResponse', + 'port': 'str', + 'enterprise_project_id': 'str', + 'flavor_ref': 'str', + 'volume': 'OpenGaussVolumeResult', + 'region': 'str', + 'availability_zone': 'str', + 'vpc_id': 'str', + 'subnet_id': 'str', + 'security_group_id': 'str', + 'charge_info': 'OpenGaussChargeInfoResponse' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'status': 'status', + 'datastore': 'datastore', + 'ha': 'ha', + 'replica_num': 'replica_num', + 'backup_strategy': 'backup_strategy', + 'port': 'port', + 'enterprise_project_id': 'enterprise_project_id', + 'flavor_ref': 'flavor_ref', + 'volume': 'volume', + 'region': 'region', + 'availability_zone': 'availability_zone', + 'vpc_id': 'vpc_id', + 'subnet_id': 'subnet_id', + 'security_group_id': 'security_group_id', + 'charge_info': 'charge_info' + } + + def __init__(self, id=None, name=None, status=None, datastore=None, ha=None, replica_num=None, backup_strategy=None, port=None, enterprise_project_id=None, flavor_ref=None, volume=None, region=None, availability_zone=None, vpc_id=None, subnet_id=None, security_group_id=None, charge_info=None): + """CreateDatabaseInstanceResult + + The model defined in huaweicloud sdk + + :param id: 实例ID。 + :type id: str + :param name: 实例名称。用于表示实例的名称,同一租户下,同类型的实例名称可相同。 取值范围:4~64个字符之间,必须以字母开头,不区分大小写,可以包含字母、数字、中划线或者下划线,不能包含其他的特殊字符。 + :type name: str + :param status: 实例状态。如BUILD,表示创建中。 仅创建按需实例时会返回该参数。 + :type status: str + :param datastore: + :type datastore: :class:`huaweicloudsdkgaussdbforopengauss.v3.DatastoreResult` + :param ha: + :type ha: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussHaResult` + :param replica_num: 实例副本数。 + :type replica_num: int + :param backup_strategy: + :type backup_strategy: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussBackupStrategyForResponse` + :param port: 数据库端口信息,与请求参数相同。 + :type port: str + :param enterprise_project_id: 项目标签。 + :type enterprise_project_id: str + :param flavor_ref: 规格码,取值范围:非空。参考[表1](https://support.huaweicloud.com/api-opengauss/opengauss_api_0037.html#opengauss_api_0037__ted9b9d433c8a4c52884e199e17f94479)中GaussDB的“规格编码”列内容获取。 + :type flavor_ref: str + :param volume: + :type volume: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussVolumeResult` + :param region: 区域ID。 + :type region: str + :param availability_zone: 可用区ID。 + :type availability_zone: str + :param vpc_id: 虚拟私有云ID。 + :type vpc_id: str + :param subnet_id: 子网的网络ID信息。 + :type subnet_id: str + :param security_group_id: 实例所属的安全组。 + :type security_group_id: str + :param charge_info: + :type charge_info: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussChargeInfoResponse` + """ + + + + self._id = None + self._name = None + self._status = None + self._datastore = None + self._ha = None + self._replica_num = None + self._backup_strategy = None + self._port = None + self._enterprise_project_id = None + self._flavor_ref = None + self._volume = None + self._region = None + self._availability_zone = None + self._vpc_id = None + self._subnet_id = None + self._security_group_id = None + self._charge_info = None + self.discriminator = None + + self.id = id + self.name = name + self.status = status + self.datastore = datastore + if ha is not None: + self.ha = ha + if replica_num is not None: + self.replica_num = replica_num + self.backup_strategy = backup_strategy + self.port = port + self.enterprise_project_id = enterprise_project_id + self.flavor_ref = flavor_ref + self.volume = volume + self.region = region + self.availability_zone = availability_zone + self.vpc_id = vpc_id + self.subnet_id = subnet_id + self.security_group_id = security_group_id + self.charge_info = charge_info + + @property + def id(self): + """Gets the id of this CreateDatabaseInstanceResult. + + 实例ID。 + + :return: The id of this CreateDatabaseInstanceResult. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateDatabaseInstanceResult. + + 实例ID。 + + :param id: The id of this CreateDatabaseInstanceResult. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this CreateDatabaseInstanceResult. + + 实例名称。用于表示实例的名称,同一租户下,同类型的实例名称可相同。 取值范围:4~64个字符之间,必须以字母开头,不区分大小写,可以包含字母、数字、中划线或者下划线,不能包含其他的特殊字符。 + + :return: The name of this CreateDatabaseInstanceResult. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateDatabaseInstanceResult. + + 实例名称。用于表示实例的名称,同一租户下,同类型的实例名称可相同。 取值范围:4~64个字符之间,必须以字母开头,不区分大小写,可以包含字母、数字、中划线或者下划线,不能包含其他的特殊字符。 + + :param name: The name of this CreateDatabaseInstanceResult. + :type name: str + """ + self._name = name + + @property + def status(self): + """Gets the status of this CreateDatabaseInstanceResult. + + 实例状态。如BUILD,表示创建中。 仅创建按需实例时会返回该参数。 + + :return: The status of this CreateDatabaseInstanceResult. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this CreateDatabaseInstanceResult. + + 实例状态。如BUILD,表示创建中。 仅创建按需实例时会返回该参数。 + + :param status: The status of this CreateDatabaseInstanceResult. + :type status: str + """ + self._status = status + + @property + def datastore(self): + """Gets the datastore of this CreateDatabaseInstanceResult. + + :return: The datastore of this CreateDatabaseInstanceResult. + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.DatastoreResult` + """ + return self._datastore + + @datastore.setter + def datastore(self, datastore): + """Sets the datastore of this CreateDatabaseInstanceResult. + + :param datastore: The datastore of this CreateDatabaseInstanceResult. + :type datastore: :class:`huaweicloudsdkgaussdbforopengauss.v3.DatastoreResult` + """ + self._datastore = datastore + + @property + def ha(self): + """Gets the ha of this CreateDatabaseInstanceResult. + + :return: The ha of this CreateDatabaseInstanceResult. + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussHaResult` + """ + return self._ha + + @ha.setter + def ha(self, ha): + """Sets the ha of this CreateDatabaseInstanceResult. + + :param ha: The ha of this CreateDatabaseInstanceResult. + :type ha: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussHaResult` + """ + self._ha = ha + + @property + def replica_num(self): + """Gets the replica_num of this CreateDatabaseInstanceResult. + + 实例副本数。 + + :return: The replica_num of this CreateDatabaseInstanceResult. + :rtype: int + """ + return self._replica_num + + @replica_num.setter + def replica_num(self, replica_num): + """Sets the replica_num of this CreateDatabaseInstanceResult. + + 实例副本数。 + + :param replica_num: The replica_num of this CreateDatabaseInstanceResult. + :type replica_num: int + """ + self._replica_num = replica_num + + @property + def backup_strategy(self): + """Gets the backup_strategy of this CreateDatabaseInstanceResult. + + :return: The backup_strategy of this CreateDatabaseInstanceResult. + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussBackupStrategyForResponse` + """ + return self._backup_strategy + + @backup_strategy.setter + def backup_strategy(self, backup_strategy): + """Sets the backup_strategy of this CreateDatabaseInstanceResult. + + :param backup_strategy: The backup_strategy of this CreateDatabaseInstanceResult. + :type backup_strategy: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussBackupStrategyForResponse` + """ + self._backup_strategy = backup_strategy + + @property + def port(self): + """Gets the port of this CreateDatabaseInstanceResult. + + 数据库端口信息,与请求参数相同。 + + :return: The port of this CreateDatabaseInstanceResult. + :rtype: str + """ + return self._port + + @port.setter + def port(self, port): + """Sets the port of this CreateDatabaseInstanceResult. + + 数据库端口信息,与请求参数相同。 + + :param port: The port of this CreateDatabaseInstanceResult. + :type port: str + """ + self._port = port + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this CreateDatabaseInstanceResult. + + 项目标签。 + + :return: The enterprise_project_id of this CreateDatabaseInstanceResult. + :rtype: str + """ + return self._enterprise_project_id + + @enterprise_project_id.setter + def enterprise_project_id(self, enterprise_project_id): + """Sets the enterprise_project_id of this CreateDatabaseInstanceResult. + + 项目标签。 + + :param enterprise_project_id: The enterprise_project_id of this CreateDatabaseInstanceResult. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def flavor_ref(self): + """Gets the flavor_ref of this CreateDatabaseInstanceResult. + + 规格码,取值范围:非空。参考[表1](https://support.huaweicloud.com/api-opengauss/opengauss_api_0037.html#opengauss_api_0037__ted9b9d433c8a4c52884e199e17f94479)中GaussDB的“规格编码”列内容获取。 + + :return: The flavor_ref of this CreateDatabaseInstanceResult. + :rtype: str + """ + return self._flavor_ref + + @flavor_ref.setter + def flavor_ref(self, flavor_ref): + """Sets the flavor_ref of this CreateDatabaseInstanceResult. + + 规格码,取值范围:非空。参考[表1](https://support.huaweicloud.com/api-opengauss/opengauss_api_0037.html#opengauss_api_0037__ted9b9d433c8a4c52884e199e17f94479)中GaussDB的“规格编码”列内容获取。 + + :param flavor_ref: The flavor_ref of this CreateDatabaseInstanceResult. + :type flavor_ref: str + """ + self._flavor_ref = flavor_ref + + @property + def volume(self): + """Gets the volume of this CreateDatabaseInstanceResult. + + :return: The volume of this CreateDatabaseInstanceResult. + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussVolumeResult` + """ + return self._volume + + @volume.setter + def volume(self, volume): + """Sets the volume of this CreateDatabaseInstanceResult. + + :param volume: The volume of this CreateDatabaseInstanceResult. + :type volume: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussVolumeResult` + """ + self._volume = volume + + @property + def region(self): + """Gets the region of this CreateDatabaseInstanceResult. + + 区域ID。 + + :return: The region of this CreateDatabaseInstanceResult. + :rtype: str + """ + return self._region + + @region.setter + def region(self, region): + """Sets the region of this CreateDatabaseInstanceResult. + + 区域ID。 + + :param region: The region of this CreateDatabaseInstanceResult. + :type region: str + """ + self._region = region + + @property + def availability_zone(self): + """Gets the availability_zone of this CreateDatabaseInstanceResult. + + 可用区ID。 + + :return: The availability_zone of this CreateDatabaseInstanceResult. + :rtype: str + """ + return self._availability_zone + + @availability_zone.setter + def availability_zone(self, availability_zone): + """Sets the availability_zone of this CreateDatabaseInstanceResult. + + 可用区ID。 + + :param availability_zone: The availability_zone of this CreateDatabaseInstanceResult. + :type availability_zone: str + """ + self._availability_zone = availability_zone + + @property + def vpc_id(self): + """Gets the vpc_id of this CreateDatabaseInstanceResult. + + 虚拟私有云ID。 + + :return: The vpc_id of this CreateDatabaseInstanceResult. + :rtype: str + """ + return self._vpc_id + + @vpc_id.setter + def vpc_id(self, vpc_id): + """Sets the vpc_id of this CreateDatabaseInstanceResult. + + 虚拟私有云ID。 + + :param vpc_id: The vpc_id of this CreateDatabaseInstanceResult. + :type vpc_id: str + """ + self._vpc_id = vpc_id + + @property + def subnet_id(self): + """Gets the subnet_id of this CreateDatabaseInstanceResult. + + 子网的网络ID信息。 + + :return: The subnet_id of this CreateDatabaseInstanceResult. + :rtype: str + """ + return self._subnet_id + + @subnet_id.setter + def subnet_id(self, subnet_id): + """Sets the subnet_id of this CreateDatabaseInstanceResult. + + 子网的网络ID信息。 + + :param subnet_id: The subnet_id of this CreateDatabaseInstanceResult. + :type subnet_id: str + """ + self._subnet_id = subnet_id + + @property + def security_group_id(self): + """Gets the security_group_id of this CreateDatabaseInstanceResult. + + 实例所属的安全组。 + + :return: The security_group_id of this CreateDatabaseInstanceResult. + :rtype: str + """ + return self._security_group_id + + @security_group_id.setter + def security_group_id(self, security_group_id): + """Sets the security_group_id of this CreateDatabaseInstanceResult. + + 实例所属的安全组。 + + :param security_group_id: The security_group_id of this CreateDatabaseInstanceResult. + :type security_group_id: str + """ + self._security_group_id = security_group_id + + @property + def charge_info(self): + """Gets the charge_info of this CreateDatabaseInstanceResult. + + :return: The charge_info of this CreateDatabaseInstanceResult. + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussChargeInfoResponse` + """ + return self._charge_info + + @charge_info.setter + def charge_info(self, charge_info): + """Sets the charge_info of this CreateDatabaseInstanceResult. + + :param charge_info: The charge_info of this CreateDatabaseInstanceResult. + :type charge_info: :class:`huaweicloudsdkgaussdbforopengauss.v3.OpenGaussChargeInfoResponse` + """ + self._charge_info = charge_info + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateDatabaseInstanceResult): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_request.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_request.py new file mode 100644 index 0000000000..7a1c4cc7b2 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_request.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDbRoleRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_language': 'str', + 'instance_id': 'str', + 'body': 'CreateDbRoleRequestBody' + } + + attribute_map = { + 'x_language': 'X-Language', + 'instance_id': 'instance_id', + 'body': 'body' + } + + def __init__(self, x_language=None, instance_id=None, body=None): + """CreateDbRoleRequest + + The model defined in huaweicloud sdk + + :param x_language: 语言 + :type x_language: str + :param instance_id: 实例ID。 + :type instance_id: str + :param body: Body of the CreateDbRoleRequest + :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateDbRoleRequestBody` + """ + + + + self._x_language = None + self._instance_id = None + self._body = None + self.discriminator = None + + if x_language is not None: + self.x_language = x_language + self.instance_id = instance_id + if body is not None: + self.body = body + + @property + def x_language(self): + """Gets the x_language of this CreateDbRoleRequest. + + 语言 + + :return: The x_language of this CreateDbRoleRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this CreateDbRoleRequest. + + 语言 + + :param x_language: The x_language of this CreateDbRoleRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def instance_id(self): + """Gets the instance_id of this CreateDbRoleRequest. + + 实例ID。 + + :return: The instance_id of this CreateDbRoleRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this CreateDbRoleRequest. + + 实例ID。 + + :param instance_id: The instance_id of this CreateDbRoleRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this CreateDbRoleRequest. + + :return: The body of this CreateDbRoleRequest. + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateDbRoleRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateDbRoleRequest. + + :param body: The body of this CreateDbRoleRequest. + :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateDbRoleRequestBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateDbRoleRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_request_body.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_request_body.py new file mode 100644 index 0000000000..456e41a2b3 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_request_body.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDbRoleRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'password': 'str' + } + + attribute_map = { + 'name': 'name', + 'password': 'password' + } + + def __init__(self, name=None, password=None): + """CreateDbRoleRequestBody + + The model defined in huaweicloud sdk + + :param name: 数据库角色名称,不可与已有角色名称重复。 数据库角色名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,不能和系统用户/角色名称相同。 系统用户/角色包括“rdsAdmin”,“ rdsMetric”, “rdsBackup”, “rdsRepl”, “root”。 + :type name: str + :param password: 数据库角色密码。 取值范围:非空,密码长度在8到32个字符之间,至少包含大写字母、小写字母、数字、特殊字符~!@#%^*-_=+?,三种字符的组合,不能和数据库账号“name”或“name”的逆序相同。 建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。 + :type password: str + """ + + + + self._name = None + self._password = None + self.discriminator = None + + self.name = name + self.password = password + + @property + def name(self): + """Gets the name of this CreateDbRoleRequestBody. + + 数据库角色名称,不可与已有角色名称重复。 数据库角色名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,不能和系统用户/角色名称相同。 系统用户/角色包括“rdsAdmin”,“ rdsMetric”, “rdsBackup”, “rdsRepl”, “root”。 + + :return: The name of this CreateDbRoleRequestBody. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateDbRoleRequestBody. + + 数据库角色名称,不可与已有角色名称重复。 数据库角色名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,不能和系统用户/角色名称相同。 系统用户/角色包括“rdsAdmin”,“ rdsMetric”, “rdsBackup”, “rdsRepl”, “root”。 + + :param name: The name of this CreateDbRoleRequestBody. + :type name: str + """ + self._name = name + + @property + def password(self): + """Gets the password of this CreateDbRoleRequestBody. + + 数据库角色密码。 取值范围:非空,密码长度在8到32个字符之间,至少包含大写字母、小写字母、数字、特殊字符~!@#%^*-_=+?,三种字符的组合,不能和数据库账号“name”或“name”的逆序相同。 建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。 + + :return: The password of this CreateDbRoleRequestBody. + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """Sets the password of this CreateDbRoleRequestBody. + + 数据库角色密码。 取值范围:非空,密码长度在8到32个字符之间,至少包含大写字母、小写字母、数字、特殊字符~!@#%^*-_=+?,三种字符的组合,不能和数据库账号“name”或“name”的逆序相同。 建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。 + + :param password: The password of this CreateDbRoleRequestBody. + :type password: str + """ + self._password = password + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateDbRoleRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_response.py new file mode 100644 index 0000000000..d2200e5006 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDbRoleResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """CreateDbRoleResponse + + The model defined in huaweicloud sdk + + """ + + super(CreateDbRoleResponse, self).__init__() + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateDbRoleResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/create_instance_datastore_option.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/create_instance_datastore_option.py new file mode 100644 index 0000000000..a2842e91ea --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/create_instance_datastore_option.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateInstanceDatastoreOption: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'type': 'str', + 'version': 'str' + } + + attribute_map = { + 'type': 'type', + 'version': 'version' + } + + def __init__(self, type=None, version=None): + """CreateInstanceDatastoreOption + + The model defined in huaweicloud sdk + + :param type: 数据库引擎,不区分大小写,取值如下: GaussDB。 + :type type: str + :param version: 数据库版本。不填时,默认为当前最新版本。 GaussDB支持的版本参考[查询数据库引擎的版本](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=GaussDB&api=ListDatastores)。 + :type version: str + """ + + + + self._type = None + self._version = None + self.discriminator = None + + self.type = type + if version is not None: + self.version = version + + @property + def type(self): + """Gets the type of this CreateInstanceDatastoreOption. + + 数据库引擎,不区分大小写,取值如下: GaussDB。 + + :return: The type of this CreateInstanceDatastoreOption. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CreateInstanceDatastoreOption. + + 数据库引擎,不区分大小写,取值如下: GaussDB。 + + :param type: The type of this CreateInstanceDatastoreOption. + :type type: str + """ + self._type = type + + @property + def version(self): + """Gets the version of this CreateInstanceDatastoreOption. + + 数据库版本。不填时,默认为当前最新版本。 GaussDB支持的版本参考[查询数据库引擎的版本](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=GaussDB&api=ListDatastores)。 + + :return: The version of this CreateInstanceDatastoreOption. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this CreateInstanceDatastoreOption. + + 数据库版本。不填时,默认为当前最新版本。 GaussDB支持的版本参考[查询数据库引擎的版本](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=GaussDB&api=ListDatastores)。 + + :param version: The version of this CreateInstanceDatastoreOption. + :type version: str + """ + self._version = version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateInstanceDatastoreOption): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/datastore_result.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/datastore_result.py new file mode 100644 index 0000000000..c42967aeb9 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/datastore_result.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DatastoreResult: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'type': 'str', + 'version': 'str' + } + + attribute_map = { + 'type': 'type', + 'version': 'version' + } + + def __init__(self, type=None, version=None): + """DatastoreResult + + The model defined in huaweicloud sdk + + :param type: 数据库引擎,不区分大小写,取值如下: GaussDB + :type type: str + :param version: 数据库版本。 + :type version: str + """ + + + + self._type = None + self._version = None + self.discriminator = None + + self.type = type + self.version = version + + @property + def type(self): + """Gets the type of this DatastoreResult. + + 数据库引擎,不区分大小写,取值如下: GaussDB + + :return: The type of this DatastoreResult. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this DatastoreResult. + + 数据库引擎,不区分大小写,取值如下: GaussDB + + :param type: The type of this DatastoreResult. + :type type: str + """ + self._type = type + + @property + def version(self): + """Gets the version of this DatastoreResult. + + 数据库版本。 + + :return: The version of this DatastoreResult. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this DatastoreResult. + + 数据库版本。 + + :param version: The version of this DatastoreResult. + :type version: str + """ + self._version = version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DatastoreResult): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_request.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_request.py new file mode 100644 index 0000000000..a589a6814f --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_request.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteDatabaseSchemaRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_language': 'str', + 'instance_id': 'str', + 'body': 'DeleteDatabaseSchemaRequestBody' + } + + attribute_map = { + 'x_language': 'X-Language', + 'instance_id': 'instance_id', + 'body': 'body' + } + + def __init__(self, x_language=None, instance_id=None, body=None): + """DeleteDatabaseSchemaRequest + + The model defined in huaweicloud sdk + + :param x_language: 语言 + :type x_language: str + :param instance_id: 实例ID。 + :type instance_id: str + :param body: Body of the DeleteDatabaseSchemaRequest + :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteDatabaseSchemaRequestBody` + """ + + + + self._x_language = None + self._instance_id = None + self._body = None + self.discriminator = None + + if x_language is not None: + self.x_language = x_language + self.instance_id = instance_id + if body is not None: + self.body = body + + @property + def x_language(self): + """Gets the x_language of this DeleteDatabaseSchemaRequest. + + 语言 + + :return: The x_language of this DeleteDatabaseSchemaRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this DeleteDatabaseSchemaRequest. + + 语言 + + :param x_language: The x_language of this DeleteDatabaseSchemaRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def instance_id(self): + """Gets the instance_id of this DeleteDatabaseSchemaRequest. + + 实例ID。 + + :return: The instance_id of this DeleteDatabaseSchemaRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this DeleteDatabaseSchemaRequest. + + 实例ID。 + + :param instance_id: The instance_id of this DeleteDatabaseSchemaRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this DeleteDatabaseSchemaRequest. + + :return: The body of this DeleteDatabaseSchemaRequest. + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteDatabaseSchemaRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteDatabaseSchemaRequest. + + :param body: The body of this DeleteDatabaseSchemaRequest. + :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteDatabaseSchemaRequestBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteDatabaseSchemaRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_request_body.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_request_body.py new file mode 100644 index 0000000000..e8158dcb5a --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_request_body.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteDatabaseSchemaRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'db_name': 'str', + 'schema': 'str' + } + + attribute_map = { + 'db_name': 'db_name', + 'schema': 'schema' + } + + def __init__(self, db_name=None, schema=None): + """DeleteDatabaseSchemaRequestBody + + The model defined in huaweicloud sdk + + :param db_name: 数据库名称。 使用已存在的数据库名称,且不能为模板库。 模板库包括postgres, template0 ,template1,templatea,template_pdb,templatem。 + :type db_name: str + :param schema: SCHEMA名称。 SCHEMA名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和模板库和已存在的SCHEMA重名。 模板库包括postgres, template0 ,template1,templatea,template_pdb,templatem。 已存在的SCHEMA包括public,information_schema。 + :type schema: str + """ + + + + self._db_name = None + self._schema = None + self.discriminator = None + + self.db_name = db_name + self.schema = schema + + @property + def db_name(self): + """Gets the db_name of this DeleteDatabaseSchemaRequestBody. + + 数据库名称。 使用已存在的数据库名称,且不能为模板库。 模板库包括postgres, template0 ,template1,templatea,template_pdb,templatem。 + + :return: The db_name of this DeleteDatabaseSchemaRequestBody. + :rtype: str + """ + return self._db_name + + @db_name.setter + def db_name(self, db_name): + """Sets the db_name of this DeleteDatabaseSchemaRequestBody. + + 数据库名称。 使用已存在的数据库名称,且不能为模板库。 模板库包括postgres, template0 ,template1,templatea,template_pdb,templatem。 + + :param db_name: The db_name of this DeleteDatabaseSchemaRequestBody. + :type db_name: str + """ + self._db_name = db_name + + @property + def schema(self): + """Gets the schema of this DeleteDatabaseSchemaRequestBody. + + SCHEMA名称。 SCHEMA名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和模板库和已存在的SCHEMA重名。 模板库包括postgres, template0 ,template1,templatea,template_pdb,templatem。 已存在的SCHEMA包括public,information_schema。 + + :return: The schema of this DeleteDatabaseSchemaRequestBody. + :rtype: str + """ + return self._schema + + @schema.setter + def schema(self, schema): + """Sets the schema of this DeleteDatabaseSchemaRequestBody. + + SCHEMA名称。 SCHEMA名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和模板库和已存在的SCHEMA重名。 模板库包括postgres, template0 ,template1,templatea,template_pdb,templatem。 已存在的SCHEMA包括public,information_schema。 + + :param schema: The schema of this DeleteDatabaseSchemaRequestBody. + :type schema: str + """ + self._schema = schema + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteDatabaseSchemaRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_response.py new file mode 100644 index 0000000000..eb9e11ce64 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteDatabaseSchemaResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """DeleteDatabaseSchemaResponse + + The model defined in huaweicloud sdk + + """ + + super(DeleteDatabaseSchemaResponse, self).__init__() + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteDatabaseSchemaResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_list_database_roles.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_list_database_roles.py new file mode 100644 index 0000000000..7b9c242037 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_list_database_roles.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class GaussDBListDatabaseRoles: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'memberof': 'str', + 'lock_status': 'bool', + 'attribute': 'object' + } + + attribute_map = { + 'name': 'name', + 'memberof': 'memberof', + 'lock_status': 'lock_status', + 'attribute': 'attribute' + } + + def __init__(self, name=None, memberof=None, lock_status=None, attribute=None): + """GaussDBListDatabaseRoles + + The model defined in huaweicloud sdk + + :param name: 数据库用户/角色名。 + :type name: str + :param memberof: 用户/角色的默认权限。 + :type memberof: str + :param lock_status: 用户/角色是否被锁。 + :type lock_status: bool + :param attribute: 用户/角色的权限属性。 + :type attribute: object + """ + + + + self._name = None + self._memberof = None + self._lock_status = None + self._attribute = None + self.discriminator = None + + self.name = name + if memberof is not None: + self.memberof = memberof + if lock_status is not None: + self.lock_status = lock_status + if attribute is not None: + self.attribute = attribute + + @property + def name(self): + """Gets the name of this GaussDBListDatabaseRoles. + + 数据库用户/角色名。 + + :return: The name of this GaussDBListDatabaseRoles. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GaussDBListDatabaseRoles. + + 数据库用户/角色名。 + + :param name: The name of this GaussDBListDatabaseRoles. + :type name: str + """ + self._name = name + + @property + def memberof(self): + """Gets the memberof of this GaussDBListDatabaseRoles. + + 用户/角色的默认权限。 + + :return: The memberof of this GaussDBListDatabaseRoles. + :rtype: str + """ + return self._memberof + + @memberof.setter + def memberof(self, memberof): + """Sets the memberof of this GaussDBListDatabaseRoles. + + 用户/角色的默认权限。 + + :param memberof: The memberof of this GaussDBListDatabaseRoles. + :type memberof: str + """ + self._memberof = memberof + + @property + def lock_status(self): + """Gets the lock_status of this GaussDBListDatabaseRoles. + + 用户/角色是否被锁。 + + :return: The lock_status of this GaussDBListDatabaseRoles. + :rtype: bool + """ + return self._lock_status + + @lock_status.setter + def lock_status(self, lock_status): + """Sets the lock_status of this GaussDBListDatabaseRoles. + + 用户/角色是否被锁。 + + :param lock_status: The lock_status of this GaussDBListDatabaseRoles. + :type lock_status: bool + """ + self._lock_status = lock_status + + @property + def attribute(self): + """Gets the attribute of this GaussDBListDatabaseRoles. + + 用户/角色的权限属性。 + + :return: The attribute of this GaussDBListDatabaseRoles. + :rtype: object + """ + return self._attribute + + @attribute.setter + def attribute(self, attribute): + """Sets the attribute of this GaussDBListDatabaseRoles. + + 用户/角色的权限属性。 + + :param attribute: The attribute of this GaussDBListDatabaseRoles. + :type attribute: object + """ + self._attribute = attribute + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GaussDBListDatabaseRoles): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_info_result.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_info_result.py new file mode 100644 index 0000000000..0e8b8e1321 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_info_result.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class HotfixInfoResult: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'common_patch': 'str', + 'backup_sensitive': 'bool', + 'descripition': 'str' + } + + attribute_map = { + 'version': 'version', + 'common_patch': 'common_patch', + 'backup_sensitive': 'backup_sensitive', + 'descripition': 'descripition' + } + + def __init__(self, version=None, common_patch=None, backup_sensitive=None, descripition=None): + """HotfixInfoResult + + The model defined in huaweicloud sdk + + :param version: 热补丁版本 + :type version: str + :param common_patch: 通用非通用信息,common=通用补丁,certain=定制补丁 + :type common_patch: str + :param backup_sensitive: 是否和备份相关 + :type backup_sensitive: bool + :param descripition: 补丁的描述信息 + :type descripition: str + """ + + + + self._version = None + self._common_patch = None + self._backup_sensitive = None + self._descripition = None + self.discriminator = None + + if version is not None: + self.version = version + if common_patch is not None: + self.common_patch = common_patch + if backup_sensitive is not None: + self.backup_sensitive = backup_sensitive + if descripition is not None: + self.descripition = descripition + + @property + def version(self): + """Gets the version of this HotfixInfoResult. + + 热补丁版本 + + :return: The version of this HotfixInfoResult. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this HotfixInfoResult. + + 热补丁版本 + + :param version: The version of this HotfixInfoResult. + :type version: str + """ + self._version = version + + @property + def common_patch(self): + """Gets the common_patch of this HotfixInfoResult. + + 通用非通用信息,common=通用补丁,certain=定制补丁 + + :return: The common_patch of this HotfixInfoResult. + :rtype: str + """ + return self._common_patch + + @common_patch.setter + def common_patch(self, common_patch): + """Sets the common_patch of this HotfixInfoResult. + + 通用非通用信息,common=通用补丁,certain=定制补丁 + + :param common_patch: The common_patch of this HotfixInfoResult. + :type common_patch: str + """ + self._common_patch = common_patch + + @property + def backup_sensitive(self): + """Gets the backup_sensitive of this HotfixInfoResult. + + 是否和备份相关 + + :return: The backup_sensitive of this HotfixInfoResult. + :rtype: bool + """ + return self._backup_sensitive + + @backup_sensitive.setter + def backup_sensitive(self, backup_sensitive): + """Sets the backup_sensitive of this HotfixInfoResult. + + 是否和备份相关 + + :param backup_sensitive: The backup_sensitive of this HotfixInfoResult. + :type backup_sensitive: bool + """ + self._backup_sensitive = backup_sensitive + + @property + def descripition(self): + """Gets the descripition of this HotfixInfoResult. + + 补丁的描述信息 + + :return: The descripition of this HotfixInfoResult. + :rtype: str + """ + return self._descripition + + @descripition.setter + def descripition(self, descripition): + """Sets the descripition of this HotfixInfoResult. + + 补丁的描述信息 + + :param descripition: The descripition of this HotfixInfoResult. + :type descripition: str + """ + self._descripition = descripition + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, HotfixInfoResult): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_details_request.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_details_request.py new file mode 100644 index 0000000000..2fb9144fc0 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_details_request.py @@ -0,0 +1,318 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListBackupsDetailsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_language': 'str', + 'instance_id': 'str', + 'backup_id': 'str', + 'backup_type': 'str', + 'offset': 'int', + 'limit': 'int', + 'begin_time': 'str', + 'end_time': 'str' + } + + attribute_map = { + 'x_language': 'X-Language', + 'instance_id': 'instance_id', + 'backup_id': 'backup_id', + 'backup_type': 'backup_type', + 'offset': 'offset', + 'limit': 'limit', + 'begin_time': 'begin_time', + 'end_time': 'end_time' + } + + def __init__(self, x_language=None, instance_id=None, backup_id=None, backup_type=None, offset=None, limit=None, begin_time=None, end_time=None): + """ListBackupsDetailsRequest + + The model defined in huaweicloud sdk + + :param x_language: 语言 + :type x_language: str + :param instance_id: 实例ID。 + :type instance_id: str + :param backup_id: 备份ID。 + :type backup_id: str + :param backup_type: 备份类型,取值: \"auto\":自动全量备份 \"manual\":手动全量备份 + :type backup_type: str + :param offset: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + :type offset: int + :param limit: 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。 + :type limit: int + :param begin_time: 查询开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。与end_time必须同时使用。 + :type begin_time: str + :param end_time: 查询结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”,且大于查询开始时间。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。与begin_time必须同时使用。 + :type end_time: str + """ + + + + self._x_language = None + self._instance_id = None + self._backup_id = None + self._backup_type = None + self._offset = None + self._limit = None + self._begin_time = None + self._end_time = None + self.discriminator = None + + if x_language is not None: + self.x_language = x_language + if instance_id is not None: + self.instance_id = instance_id + if backup_id is not None: + self.backup_id = backup_id + if backup_type is not None: + self.backup_type = backup_type + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if begin_time is not None: + self.begin_time = begin_time + if end_time is not None: + self.end_time = end_time + + @property + def x_language(self): + """Gets the x_language of this ListBackupsDetailsRequest. + + 语言 + + :return: The x_language of this ListBackupsDetailsRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ListBackupsDetailsRequest. + + 语言 + + :param x_language: The x_language of this ListBackupsDetailsRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def instance_id(self): + """Gets the instance_id of this ListBackupsDetailsRequest. + + 实例ID。 + + :return: The instance_id of this ListBackupsDetailsRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ListBackupsDetailsRequest. + + 实例ID。 + + :param instance_id: The instance_id of this ListBackupsDetailsRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def backup_id(self): + """Gets the backup_id of this ListBackupsDetailsRequest. + + 备份ID。 + + :return: The backup_id of this ListBackupsDetailsRequest. + :rtype: str + """ + return self._backup_id + + @backup_id.setter + def backup_id(self, backup_id): + """Sets the backup_id of this ListBackupsDetailsRequest. + + 备份ID。 + + :param backup_id: The backup_id of this ListBackupsDetailsRequest. + :type backup_id: str + """ + self._backup_id = backup_id + + @property + def backup_type(self): + """Gets the backup_type of this ListBackupsDetailsRequest. + + 备份类型,取值: \"auto\":自动全量备份 \"manual\":手动全量备份 + + :return: The backup_type of this ListBackupsDetailsRequest. + :rtype: str + """ + return self._backup_type + + @backup_type.setter + def backup_type(self, backup_type): + """Sets the backup_type of this ListBackupsDetailsRequest. + + 备份类型,取值: \"auto\":自动全量备份 \"manual\":手动全量备份 + + :param backup_type: The backup_type of this ListBackupsDetailsRequest. + :type backup_type: str + """ + self._backup_type = backup_type + + @property + def offset(self): + """Gets the offset of this ListBackupsDetailsRequest. + + 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + + :return: The offset of this ListBackupsDetailsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListBackupsDetailsRequest. + + 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + + :param offset: The offset of this ListBackupsDetailsRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListBackupsDetailsRequest. + + 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。 + + :return: The limit of this ListBackupsDetailsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListBackupsDetailsRequest. + + 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。 + + :param limit: The limit of this ListBackupsDetailsRequest. + :type limit: int + """ + self._limit = limit + + @property + def begin_time(self): + """Gets the begin_time of this ListBackupsDetailsRequest. + + 查询开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。与end_time必须同时使用。 + + :return: The begin_time of this ListBackupsDetailsRequest. + :rtype: str + """ + return self._begin_time + + @begin_time.setter + def begin_time(self, begin_time): + """Sets the begin_time of this ListBackupsDetailsRequest. + + 查询开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。与end_time必须同时使用。 + + :param begin_time: The begin_time of this ListBackupsDetailsRequest. + :type begin_time: str + """ + self._begin_time = begin_time + + @property + def end_time(self): + """Gets the end_time of this ListBackupsDetailsRequest. + + 查询结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”,且大于查询开始时间。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。与begin_time必须同时使用。 + + :return: The end_time of this ListBackupsDetailsRequest. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ListBackupsDetailsRequest. + + 查询结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”,且大于查询开始时间。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。与begin_time必须同时使用。 + + :param end_time: The end_time of this ListBackupsDetailsRequest. + :type end_time: str + """ + self._end_time = end_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListBackupsDetailsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_details_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_details_response.py new file mode 100644 index 0000000000..b455b62685 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_details_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListBackupsDetailsResponse(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 = { + 'backups': 'list[ListBackupsResult]', + 'total_count': 'int' + } + + attribute_map = { + 'backups': 'backups', + 'total_count': 'total_count' + } + + def __init__(self, backups=None, total_count=None): + """ListBackupsDetailsResponse + + The model defined in huaweicloud sdk + + :param backups: 备份信息。 + :type backups: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.ListBackupsResult`] + :param total_count: 备份文件的总数。 + :type total_count: int + """ + + super(ListBackupsDetailsResponse, self).__init__() + + self._backups = None + self._total_count = None + self.discriminator = None + + if backups is not None: + self.backups = backups + if total_count is not None: + self.total_count = total_count + + @property + def backups(self): + """Gets the backups of this ListBackupsDetailsResponse. + + 备份信息。 + + :return: The backups of this ListBackupsDetailsResponse. + :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.ListBackupsResult`] + """ + return self._backups + + @backups.setter + def backups(self, backups): + """Sets the backups of this ListBackupsDetailsResponse. + + 备份信息。 + + :param backups: The backups of this ListBackupsDetailsResponse. + :type backups: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.ListBackupsResult`] + """ + self._backups = backups + + @property + def total_count(self): + """Gets the total_count of this ListBackupsDetailsResponse. + + 备份文件的总数。 + + :return: The total_count of this ListBackupsDetailsResponse. + :rtype: int + """ + return self._total_count + + @total_count.setter + def total_count(self, total_count): + """Sets the total_count of this ListBackupsDetailsResponse. + + 备份文件的总数。 + + :param total_count: The total_count of this ListBackupsDetailsResponse. + :type total_count: int + """ + self._total_count = total_count + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListBackupsDetailsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_result.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_result.py new file mode 100644 index 0000000000..4500075e26 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_result.py @@ -0,0 +1,372 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListBackupsResult: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'name': 'str', + 'description': 'str', + 'begin_time': 'str', + 'end_time': 'str', + 'status': 'str', + 'size': 'float', + 'type': 'str', + 'datastore': 'DatastoreResult', + 'instance_id': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'description': 'description', + 'begin_time': 'begin_time', + 'end_time': 'end_time', + 'status': 'status', + 'size': 'size', + 'type': 'type', + 'datastore': 'datastore', + 'instance_id': 'instance_id' + } + + def __init__(self, id=None, name=None, description=None, begin_time=None, end_time=None, status=None, size=None, type=None, datastore=None, instance_id=None): + """ListBackupsResult + + The model defined in huaweicloud sdk + + :param id: 备份ID。 + :type id: str + :param name: 备份名称。 + :type name: str + :param description: 备份文件描述信息。 + :type description: str + :param begin_time: 备份开始时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + :type begin_time: str + :param end_time: 备份结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + :type end_time: str + :param status: 备份状态 + :type status: str + :param size: 备份大小(单位:MB) + :type size: float + :param type: 备份类型 + :type type: str + :param datastore: + :type datastore: :class:`huaweicloudsdkgaussdbforopengauss.v3.DatastoreResult` + :param instance_id: 实例ID。 + :type instance_id: str + """ + + + + self._id = None + self._name = None + self._description = None + self._begin_time = None + self._end_time = None + self._status = None + self._size = None + self._type = None + self._datastore = None + self._instance_id = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if description is not None: + self.description = description + if begin_time is not None: + self.begin_time = begin_time + if end_time is not None: + self.end_time = end_time + if status is not None: + self.status = status + if size is not None: + self.size = size + if type is not None: + self.type = type + if datastore is not None: + self.datastore = datastore + if instance_id is not None: + self.instance_id = instance_id + + @property + def id(self): + """Gets the id of this ListBackupsResult. + + 备份ID。 + + :return: The id of this ListBackupsResult. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ListBackupsResult. + + 备份ID。 + + :param id: The id of this ListBackupsResult. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this ListBackupsResult. + + 备份名称。 + + :return: The name of this ListBackupsResult. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ListBackupsResult. + + 备份名称。 + + :param name: The name of this ListBackupsResult. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this ListBackupsResult. + + 备份文件描述信息。 + + :return: The description of this ListBackupsResult. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ListBackupsResult. + + 备份文件描述信息。 + + :param description: The description of this ListBackupsResult. + :type description: str + """ + self._description = description + + @property + def begin_time(self): + """Gets the begin_time of this ListBackupsResult. + + 备份开始时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + + :return: The begin_time of this ListBackupsResult. + :rtype: str + """ + return self._begin_time + + @begin_time.setter + def begin_time(self, begin_time): + """Sets the begin_time of this ListBackupsResult. + + 备份开始时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + + :param begin_time: The begin_time of this ListBackupsResult. + :type begin_time: str + """ + self._begin_time = begin_time + + @property + def end_time(self): + """Gets the end_time of this ListBackupsResult. + + 备份结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + + :return: The end_time of this ListBackupsResult. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ListBackupsResult. + + 备份结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + + :param end_time: The end_time of this ListBackupsResult. + :type end_time: str + """ + self._end_time = end_time + + @property + def status(self): + """Gets the status of this ListBackupsResult. + + 备份状态 + + :return: The status of this ListBackupsResult. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ListBackupsResult. + + 备份状态 + + :param status: The status of this ListBackupsResult. + :type status: str + """ + self._status = status + + @property + def size(self): + """Gets the size of this ListBackupsResult. + + 备份大小(单位:MB) + + :return: The size of this ListBackupsResult. + :rtype: float + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this ListBackupsResult. + + 备份大小(单位:MB) + + :param size: The size of this ListBackupsResult. + :type size: float + """ + self._size = size + + @property + def type(self): + """Gets the type of this ListBackupsResult. + + 备份类型 + + :return: The type of this ListBackupsResult. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ListBackupsResult. + + 备份类型 + + :param type: The type of this ListBackupsResult. + :type type: str + """ + self._type = type + + @property + def datastore(self): + """Gets the datastore of this ListBackupsResult. + + :return: The datastore of this ListBackupsResult. + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.DatastoreResult` + """ + return self._datastore + + @datastore.setter + def datastore(self, datastore): + """Sets the datastore of this ListBackupsResult. + + :param datastore: The datastore of this ListBackupsResult. + :type datastore: :class:`huaweicloudsdkgaussdbforopengauss.v3.DatastoreResult` + """ + self._datastore = datastore + + @property + def instance_id(self): + """Gets the instance_id of this ListBackupsResult. + + 实例ID。 + + :return: The instance_id of this ListBackupsResult. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ListBackupsResult. + + 实例ID。 + + :param instance_id: The instance_id of this ListBackupsResult. + :type instance_id: str + """ + self._instance_id = instance_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListBackupsResult): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_database_instances_request.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_database_instances_request.py new file mode 100644 index 0000000000..91f1b74912 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_database_instances_request.py @@ -0,0 +1,405 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDatabaseInstancesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_language': 'str', + 'id': 'str', + 'name': 'str', + 'type': 'str', + 'datastore_type': 'str', + 'vpc_id': 'str', + 'subnet_id': 'str', + 'offset': 'int', + 'limit': 'int', + 'tags': 'list[str]', + 'charge_mode': 'str' + } + + attribute_map = { + 'x_language': 'X-Language', + 'id': 'id', + 'name': 'name', + 'type': 'type', + 'datastore_type': 'datastore_type', + 'vpc_id': 'vpc_id', + 'subnet_id': 'subnet_id', + 'offset': 'offset', + 'limit': 'limit', + 'tags': 'tags', + 'charge_mode': 'charge_mode' + } + + def __init__(self, x_language=None, id=None, name=None, type=None, datastore_type=None, vpc_id=None, subnet_id=None, offset=None, limit=None, tags=None, charge_mode=None): + """ListDatabaseInstancesRequest + + The model defined in huaweicloud sdk + + :param x_language: 语言 + :type x_language: str + :param id: 实例ID。 “\\*”为系统保留字符,如果id是以“\\*”起始,表示按照\\*后面的值模糊匹配,否则,按照id精确匹配查询。不能只传入“\\*”。 + :type id: str + :param name: 实例名称。 “\\*”为系统保留字符,如果name是以“\\*”起始,表示按照\\*后面的值模糊匹配,否则,按照name精确匹配查询。不能只传入“\\*”。 + :type name: str + :param type: 按照实例类型查询。目前仅支持取值“Enterprise”(区分大小写),对应分布式实例(企业版)。当前支持取值\"Ha\"(区分大小写),对应主备式实例。 + :type type: str + :param datastore_type: 数据库类型,区分大小写。 - GaussDB + :type datastore_type: str + :param vpc_id: 虚拟私有云ID。 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)。 + :type vpc_id: str + :param subnet_id: 子网的网络ID信息。 - 方法1:登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找网络ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。 + :type subnet_id: str + :param offset: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + :type offset: int + :param limit: 查询记录数。默认为100,不能为负数,最小值为1,最大值为100 + :type limit: int + :param tags: 根据实例标签键值对进行查询。 {key}表示标签键,不可以为空或重复。最大长度127个unicode字符。key不能为空或者空字符串,不能为空格,使用之前先trim前后半角空格。不能包含+/?#&=,%特殊字符。 {value}表示标签值,可以为空。最大长度255个unicode字符,使用之前先trim 前后半角空格。不能包含+/?#&=,%特殊字符。 如果value为空,则表示any_value(查询任意value)。 如果同时使用多个标签键值对进行查询,中间使用逗号分隔开,最多包含10组。 + :type tags: list[str] + :param charge_mode: 计费模式。 取值范围: postPaid:后付费,即按需付费。 prePaid:预付费,即包年/包月。 + :type charge_mode: str + """ + + + + self._x_language = None + self._id = None + self._name = None + self._type = None + self._datastore_type = None + self._vpc_id = None + self._subnet_id = None + self._offset = None + self._limit = None + self._tags = None + self._charge_mode = None + self.discriminator = None + + if x_language is not None: + self.x_language = x_language + if id is not None: + self.id = id + if name is not None: + self.name = name + if type is not None: + self.type = type + if datastore_type is not None: + self.datastore_type = datastore_type + if vpc_id is not None: + self.vpc_id = vpc_id + if subnet_id is not None: + self.subnet_id = subnet_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if tags is not None: + self.tags = tags + if charge_mode is not None: + self.charge_mode = charge_mode + + @property + def x_language(self): + """Gets the x_language of this ListDatabaseInstancesRequest. + + 语言 + + :return: The x_language of this ListDatabaseInstancesRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ListDatabaseInstancesRequest. + + 语言 + + :param x_language: The x_language of this ListDatabaseInstancesRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def id(self): + """Gets the id of this ListDatabaseInstancesRequest. + + 实例ID。 “\\*”为系统保留字符,如果id是以“\\*”起始,表示按照\\*后面的值模糊匹配,否则,按照id精确匹配查询。不能只传入“\\*”。 + + :return: The id of this ListDatabaseInstancesRequest. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ListDatabaseInstancesRequest. + + 实例ID。 “\\*”为系统保留字符,如果id是以“\\*”起始,表示按照\\*后面的值模糊匹配,否则,按照id精确匹配查询。不能只传入“\\*”。 + + :param id: The id of this ListDatabaseInstancesRequest. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this ListDatabaseInstancesRequest. + + 实例名称。 “\\*”为系统保留字符,如果name是以“\\*”起始,表示按照\\*后面的值模糊匹配,否则,按照name精确匹配查询。不能只传入“\\*”。 + + :return: The name of this ListDatabaseInstancesRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ListDatabaseInstancesRequest. + + 实例名称。 “\\*”为系统保留字符,如果name是以“\\*”起始,表示按照\\*后面的值模糊匹配,否则,按照name精确匹配查询。不能只传入“\\*”。 + + :param name: The name of this ListDatabaseInstancesRequest. + :type name: str + """ + self._name = name + + @property + def type(self): + """Gets the type of this ListDatabaseInstancesRequest. + + 按照实例类型查询。目前仅支持取值“Enterprise”(区分大小写),对应分布式实例(企业版)。当前支持取值\"Ha\"(区分大小写),对应主备式实例。 + + :return: The type of this ListDatabaseInstancesRequest. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ListDatabaseInstancesRequest. + + 按照实例类型查询。目前仅支持取值“Enterprise”(区分大小写),对应分布式实例(企业版)。当前支持取值\"Ha\"(区分大小写),对应主备式实例。 + + :param type: The type of this ListDatabaseInstancesRequest. + :type type: str + """ + self._type = type + + @property + def datastore_type(self): + """Gets the datastore_type of this ListDatabaseInstancesRequest. + + 数据库类型,区分大小写。 - GaussDB + + :return: The datastore_type of this ListDatabaseInstancesRequest. + :rtype: str + """ + return self._datastore_type + + @datastore_type.setter + def datastore_type(self, datastore_type): + """Sets the datastore_type of this ListDatabaseInstancesRequest. + + 数据库类型,区分大小写。 - GaussDB + + :param datastore_type: The datastore_type of this ListDatabaseInstancesRequest. + :type datastore_type: str + """ + self._datastore_type = datastore_type + + @property + def vpc_id(self): + """Gets the vpc_id of this ListDatabaseInstancesRequest. + + 虚拟私有云ID。 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)。 + + :return: The vpc_id of this ListDatabaseInstancesRequest. + :rtype: str + """ + return self._vpc_id + + @vpc_id.setter + def vpc_id(self, vpc_id): + """Sets the vpc_id of this ListDatabaseInstancesRequest. + + 虚拟私有云ID。 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)。 + + :param vpc_id: The vpc_id of this ListDatabaseInstancesRequest. + :type vpc_id: str + """ + self._vpc_id = vpc_id + + @property + def subnet_id(self): + """Gets the subnet_id of this ListDatabaseInstancesRequest. + + 子网的网络ID信息。 - 方法1:登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找网络ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。 + + :return: The subnet_id of this ListDatabaseInstancesRequest. + :rtype: str + """ + return self._subnet_id + + @subnet_id.setter + def subnet_id(self, subnet_id): + """Sets the subnet_id of this ListDatabaseInstancesRequest. + + 子网的网络ID信息。 - 方法1:登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找网络ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。 + + :param subnet_id: The subnet_id of this ListDatabaseInstancesRequest. + :type subnet_id: str + """ + self._subnet_id = subnet_id + + @property + def offset(self): + """Gets the offset of this ListDatabaseInstancesRequest. + + 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + + :return: The offset of this ListDatabaseInstancesRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListDatabaseInstancesRequest. + + 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + + :param offset: The offset of this ListDatabaseInstancesRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListDatabaseInstancesRequest. + + 查询记录数。默认为100,不能为负数,最小值为1,最大值为100 + + :return: The limit of this ListDatabaseInstancesRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListDatabaseInstancesRequest. + + 查询记录数。默认为100,不能为负数,最小值为1,最大值为100 + + :param limit: The limit of this ListDatabaseInstancesRequest. + :type limit: int + """ + self._limit = limit + + @property + def tags(self): + """Gets the tags of this ListDatabaseInstancesRequest. + + 根据实例标签键值对进行查询。 {key}表示标签键,不可以为空或重复。最大长度127个unicode字符。key不能为空或者空字符串,不能为空格,使用之前先trim前后半角空格。不能包含+/?#&=,%特殊字符。 {value}表示标签值,可以为空。最大长度255个unicode字符,使用之前先trim 前后半角空格。不能包含+/?#&=,%特殊字符。 如果value为空,则表示any_value(查询任意value)。 如果同时使用多个标签键值对进行查询,中间使用逗号分隔开,最多包含10组。 + + :return: The tags of this ListDatabaseInstancesRequest. + :rtype: list[str] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this ListDatabaseInstancesRequest. + + 根据实例标签键值对进行查询。 {key}表示标签键,不可以为空或重复。最大长度127个unicode字符。key不能为空或者空字符串,不能为空格,使用之前先trim前后半角空格。不能包含+/?#&=,%特殊字符。 {value}表示标签值,可以为空。最大长度255个unicode字符,使用之前先trim 前后半角空格。不能包含+/?#&=,%特殊字符。 如果value为空,则表示any_value(查询任意value)。 如果同时使用多个标签键值对进行查询,中间使用逗号分隔开,最多包含10组。 + + :param tags: The tags of this ListDatabaseInstancesRequest. + :type tags: list[str] + """ + self._tags = tags + + @property + def charge_mode(self): + """Gets the charge_mode of this ListDatabaseInstancesRequest. + + 计费模式。 取值范围: postPaid:后付费,即按需付费。 prePaid:预付费,即包年/包月。 + + :return: The charge_mode of this ListDatabaseInstancesRequest. + :rtype: str + """ + return self._charge_mode + + @charge_mode.setter + def charge_mode(self, charge_mode): + """Sets the charge_mode of this ListDatabaseInstancesRequest. + + 计费模式。 取值范围: postPaid:后付费,即按需付费。 prePaid:预付费,即包年/包月。 + + :param charge_mode: The charge_mode of this ListDatabaseInstancesRequest. + :type charge_mode: str + """ + self._charge_mode = charge_mode + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListDatabaseInstancesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_database_instances_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_database_instances_response.py new file mode 100644 index 0000000000..1d889937f7 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_database_instances_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDatabaseInstancesResponse(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 = { + 'instances': 'list[ListInstancesResult]', + 'total_count': 'int' + } + + attribute_map = { + 'instances': 'instances', + 'total_count': 'total_count' + } + + def __init__(self, instances=None, total_count=None): + """ListDatabaseInstancesResponse + + The model defined in huaweicloud sdk + + :param instances: 实例信息。 + :type instances: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.ListInstancesResult`] + :param total_count: 总记录数。 + :type total_count: int + """ + + super(ListDatabaseInstancesResponse, self).__init__() + + self._instances = None + self._total_count = None + self.discriminator = None + + if instances is not None: + self.instances = instances + if total_count is not None: + self.total_count = total_count + + @property + def instances(self): + """Gets the instances of this ListDatabaseInstancesResponse. + + 实例信息。 + + :return: The instances of this ListDatabaseInstancesResponse. + :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.ListInstancesResult`] + """ + return self._instances + + @instances.setter + def instances(self, instances): + """Sets the instances of this ListDatabaseInstancesResponse. + + 实例信息。 + + :param instances: The instances of this ListDatabaseInstancesResponse. + :type instances: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.ListInstancesResult`] + """ + self._instances = instances + + @property + def total_count(self): + """Gets the total_count of this ListDatabaseInstancesResponse. + + 总记录数。 + + :return: The total_count of this ListDatabaseInstancesResponse. + :rtype: int + """ + return self._total_count + + @total_count.setter + def total_count(self, total_count): + """Sets the total_count of this ListDatabaseInstancesResponse. + + 总记录数。 + + :param total_count: The total_count of this ListDatabaseInstancesResponse. + :type total_count: int + """ + self._total_count = total_count + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListDatabaseInstancesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_database_roles_request.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_database_roles_request.py new file mode 100644 index 0000000000..1fb54f2f5e --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_database_roles_request.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDatabaseRolesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_language': 'str', + 'instance_id': 'str', + 'offset': 'int', + 'limit': 'int' + } + + attribute_map = { + 'x_language': 'X-Language', + 'instance_id': 'instance_id', + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, x_language=None, instance_id=None, offset=None, limit=None): + """ListDatabaseRolesRequest + + The model defined in huaweicloud sdk + + :param x_language: 语言 + :type x_language: str + :param instance_id: 实例ID。 + :type instance_id: str + :param offset: 偏移量表示从此偏移量开始查询, offset大于等于0,默认0。 + :type offset: int + :param limit: 每页显示的条目数量,取值范围[1, 100],默认10。 + :type limit: int + """ + + + + self._x_language = None + self._instance_id = None + self._offset = None + self._limit = None + self.discriminator = None + + if x_language is not None: + self.x_language = x_language + self.instance_id = instance_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + + @property + def x_language(self): + """Gets the x_language of this ListDatabaseRolesRequest. + + 语言 + + :return: The x_language of this ListDatabaseRolesRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ListDatabaseRolesRequest. + + 语言 + + :param x_language: The x_language of this ListDatabaseRolesRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def instance_id(self): + """Gets the instance_id of this ListDatabaseRolesRequest. + + 实例ID。 + + :return: The instance_id of this ListDatabaseRolesRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ListDatabaseRolesRequest. + + 实例ID。 + + :param instance_id: The instance_id of this ListDatabaseRolesRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def offset(self): + """Gets the offset of this ListDatabaseRolesRequest. + + 偏移量表示从此偏移量开始查询, offset大于等于0,默认0。 + + :return: The offset of this ListDatabaseRolesRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListDatabaseRolesRequest. + + 偏移量表示从此偏移量开始查询, offset大于等于0,默认0。 + + :param offset: The offset of this ListDatabaseRolesRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListDatabaseRolesRequest. + + 每页显示的条目数量,取值范围[1, 100],默认10。 + + :return: The limit of this ListDatabaseRolesRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListDatabaseRolesRequest. + + 每页显示的条目数量,取值范围[1, 100],默认10。 + + :param limit: The limit of this ListDatabaseRolesRequest. + :type limit: int + """ + self._limit = limit + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListDatabaseRolesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_database_roles_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_database_roles_response.py new file mode 100644 index 0000000000..f119441465 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_database_roles_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDatabaseRolesResponse(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 = { + 'roles': 'list[GaussDBListDatabaseRoles]', + 'total_count': 'int' + } + + attribute_map = { + 'roles': 'roles', + 'total_count': 'total_count' + } + + def __init__(self, roles=None, total_count=None): + """ListDatabaseRolesResponse + + The model defined in huaweicloud sdk + + :param roles: 列表中每个元素表示一个用户/角色。 + :type roles: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.GaussDBListDatabaseRoles`] + :param total_count: 数据库用户/角色总数。 + :type total_count: int + """ + + super(ListDatabaseRolesResponse, self).__init__() + + self._roles = None + self._total_count = None + self.discriminator = None + + if roles is not None: + self.roles = roles + if total_count is not None: + self.total_count = total_count + + @property + def roles(self): + """Gets the roles of this ListDatabaseRolesResponse. + + 列表中每个元素表示一个用户/角色。 + + :return: The roles of this ListDatabaseRolesResponse. + :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.GaussDBListDatabaseRoles`] + """ + return self._roles + + @roles.setter + def roles(self, roles): + """Sets the roles of this ListDatabaseRolesResponse. + + 列表中每个元素表示一个用户/角色。 + + :param roles: The roles of this ListDatabaseRolesResponse. + :type roles: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.GaussDBListDatabaseRoles`] + """ + self._roles = roles + + @property + def total_count(self): + """Gets the total_count of this ListDatabaseRolesResponse. + + 数据库用户/角色总数。 + + :return: The total_count of this ListDatabaseRolesResponse. + :rtype: int + """ + return self._total_count + + @total_count.setter + def total_count(self, total_count): + """Sets the total_count of this ListDatabaseRolesResponse. + + 数据库用户/角色总数。 + + :param total_count: The total_count of this ListDatabaseRolesResponse. + :type total_count: int + """ + self._total_count = total_count + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListDatabaseRolesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_datastores_details_request.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_datastores_details_request.py new file mode 100644 index 0000000000..2479ffcbdf --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_datastores_details_request.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDatastoresDetailsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_language': 'str' + } + + attribute_map = { + 'x_language': 'X-Language' + } + + def __init__(self, x_language=None): + """ListDatastoresDetailsRequest + + The model defined in huaweicloud sdk + + :param x_language: 语言 + :type x_language: str + """ + + + + self._x_language = None + self.discriminator = None + + if x_language is not None: + self.x_language = x_language + + @property + def x_language(self): + """Gets the x_language of this ListDatastoresDetailsRequest. + + 语言 + + :return: The x_language of this ListDatastoresDetailsRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ListDatastoresDetailsRequest. + + 语言 + + :param x_language: The x_language of this ListDatastoresDetailsRequest. + :type x_language: str + """ + self._x_language = x_language + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListDatastoresDetailsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_datastores_details_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_datastores_details_response.py new file mode 100644 index 0000000000..2047c84a41 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_datastores_details_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDatastoresDetailsResponse(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 = { + 'datastores': 'list[DatastoresResult]' + } + + attribute_map = { + 'datastores': 'datastores' + } + + def __init__(self, datastores=None): + """ListDatastoresDetailsResponse + + The model defined in huaweicloud sdk + + :param datastores: + :type datastores: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.DatastoresResult`] + """ + + super(ListDatastoresDetailsResponse, self).__init__() + + self._datastores = None + self.discriminator = None + + if datastores is not None: + self.datastores = datastores + + @property + def datastores(self): + """Gets the datastores of this ListDatastoresDetailsResponse. + + :return: The datastores of this ListDatastoresDetailsResponse. + :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.DatastoresResult`] + """ + return self._datastores + + @datastores.setter + def datastores(self, datastores): + """Sets the datastores of this ListDatastoresDetailsResponse. + + :param datastores: The datastores of this ListDatastoresDetailsResponse. + :type datastores: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.DatastoresResult`] + """ + self._datastores = datastores + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListDatastoresDetailsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_flavors_details_request.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_flavors_details_request.py new file mode 100644 index 0000000000..c948819413 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_flavors_details_request.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListFlavorsDetailsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_language': 'str', + 'version': 'str', + 'spec_code': 'str', + 'ha_mode': 'str', + 'limit': 'int', + 'offset': 'int' + } + + attribute_map = { + 'x_language': 'X-Language', + 'version': 'version', + 'spec_code': 'spec_code', + 'ha_mode': 'ha_mode', + 'limit': 'limit', + 'offset': 'offset' + } + + def __init__(self, x_language=None, version=None, spec_code=None, ha_mode=None, limit=None, offset=None): + """ListFlavorsDetailsRequest + + The model defined in huaweicloud sdk + + :param x_language: 语言 + :type x_language: str + :param version: 数据库版本号。 + :type version: str + :param spec_code: 规格编码 + :type spec_code: str + :param ha_mode: 实例类型 集中式centralization_standard 分布式enterprise + :type ha_mode: str + :param limit: 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。 + :type limit: int + :param offset: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + :type offset: int + """ + + + + self._x_language = None + self._version = None + self._spec_code = None + self._ha_mode = None + self._limit = None + self._offset = None + self.discriminator = None + + if x_language is not None: + self.x_language = x_language + if version is not None: + self.version = version + if spec_code is not None: + self.spec_code = spec_code + if ha_mode is not None: + self.ha_mode = ha_mode + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset + + @property + def x_language(self): + """Gets the x_language of this ListFlavorsDetailsRequest. + + 语言 + + :return: The x_language of this ListFlavorsDetailsRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ListFlavorsDetailsRequest. + + 语言 + + :param x_language: The x_language of this ListFlavorsDetailsRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def version(self): + """Gets the version of this ListFlavorsDetailsRequest. + + 数据库版本号。 + + :return: The version of this ListFlavorsDetailsRequest. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this ListFlavorsDetailsRequest. + + 数据库版本号。 + + :param version: The version of this ListFlavorsDetailsRequest. + :type version: str + """ + self._version = version + + @property + def spec_code(self): + """Gets the spec_code of this ListFlavorsDetailsRequest. + + 规格编码 + + :return: The spec_code of this ListFlavorsDetailsRequest. + :rtype: str + """ + return self._spec_code + + @spec_code.setter + def spec_code(self, spec_code): + """Sets the spec_code of this ListFlavorsDetailsRequest. + + 规格编码 + + :param spec_code: The spec_code of this ListFlavorsDetailsRequest. + :type spec_code: str + """ + self._spec_code = spec_code + + @property + def ha_mode(self): + """Gets the ha_mode of this ListFlavorsDetailsRequest. + + 实例类型 集中式centralization_standard 分布式enterprise + + :return: The ha_mode of this ListFlavorsDetailsRequest. + :rtype: str + """ + return self._ha_mode + + @ha_mode.setter + def ha_mode(self, ha_mode): + """Sets the ha_mode of this ListFlavorsDetailsRequest. + + 实例类型 集中式centralization_standard 分布式enterprise + + :param ha_mode: The ha_mode of this ListFlavorsDetailsRequest. + :type ha_mode: str + """ + self._ha_mode = ha_mode + + @property + def limit(self): + """Gets the limit of this ListFlavorsDetailsRequest. + + 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。 + + :return: The limit of this ListFlavorsDetailsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListFlavorsDetailsRequest. + + 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。 + + :param limit: The limit of this ListFlavorsDetailsRequest. + :type limit: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this ListFlavorsDetailsRequest. + + 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + + :return: The offset of this ListFlavorsDetailsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListFlavorsDetailsRequest. + + 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + + :param offset: The offset of this ListFlavorsDetailsRequest. + :type offset: int + """ + self._offset = offset + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListFlavorsDetailsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_flavors_details_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_flavors_details_response.py new file mode 100644 index 0000000000..f6b01aa661 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_flavors_details_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListFlavorsDetailsResponse(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 = { + 'flavors': 'list[FlavorResult]', + 'total': 'int' + } + + attribute_map = { + 'flavors': 'flavors', + 'total': 'total' + } + + def __init__(self, flavors=None, total=None): + """ListFlavorsDetailsResponse + + The model defined in huaweicloud sdk + + :param flavors: 实例规格信息。 + :type flavors: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.FlavorResult`] + :param total: 查询总数 + :type total: int + """ + + super(ListFlavorsDetailsResponse, self).__init__() + + self._flavors = None + self._total = None + self.discriminator = None + + if flavors is not None: + self.flavors = flavors + if total is not None: + self.total = total + + @property + def flavors(self): + """Gets the flavors of this ListFlavorsDetailsResponse. + + 实例规格信息。 + + :return: The flavors of this ListFlavorsDetailsResponse. + :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.FlavorResult`] + """ + return self._flavors + + @flavors.setter + def flavors(self, flavors): + """Sets the flavors of this ListFlavorsDetailsResponse. + + 实例规格信息。 + + :param flavors: The flavors of this ListFlavorsDetailsResponse. + :type flavors: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.FlavorResult`] + """ + self._flavors = flavors + + @property + def total(self): + """Gets the total of this ListFlavorsDetailsResponse. + + 查询总数 + + :return: The total of this ListFlavorsDetailsResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListFlavorsDetailsResponse. + + 查询总数 + + :param total: The total of this ListFlavorsDetailsResponse. + :type total: int + """ + self._total = total + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListFlavorsDetailsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_parameter_group_templates_request.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_parameter_group_templates_request.py new file mode 100644 index 0000000000..2bc9609f7a --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_parameter_group_templates_request.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListParameterGroupTemplatesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_language': 'str', + 'offset': 'int', + 'limit': 'int' + } + + attribute_map = { + 'x_language': 'X-Language', + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, x_language=None, offset=None, limit=None): + """ListParameterGroupTemplatesRequest + + The model defined in huaweicloud sdk + + :param x_language: 语言 + :type x_language: str + :param offset: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + :type offset: int + :param limit: 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。 + :type limit: int + """ + + + + self._x_language = None + self._offset = None + self._limit = None + self.discriminator = None + + if x_language is not None: + self.x_language = x_language + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + + @property + def x_language(self): + """Gets the x_language of this ListParameterGroupTemplatesRequest. + + 语言 + + :return: The x_language of this ListParameterGroupTemplatesRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ListParameterGroupTemplatesRequest. + + 语言 + + :param x_language: The x_language of this ListParameterGroupTemplatesRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def offset(self): + """Gets the offset of this ListParameterGroupTemplatesRequest. + + 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + + :return: The offset of this ListParameterGroupTemplatesRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListParameterGroupTemplatesRequest. + + 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + + :param offset: The offset of this ListParameterGroupTemplatesRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListParameterGroupTemplatesRequest. + + 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。 + + :return: The limit of this ListParameterGroupTemplatesRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListParameterGroupTemplatesRequest. + + 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。 + + :param limit: The limit of this ListParameterGroupTemplatesRequest. + :type limit: int + """ + self._limit = limit + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListParameterGroupTemplatesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_parameter_group_templates_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_parameter_group_templates_response.py new file mode 100644 index 0000000000..4a4e282929 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_parameter_group_templates_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListParameterGroupTemplatesResponse(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', + 'configurations': 'list[ConfigurationsResult]' + } + + attribute_map = { + 'count': 'count', + 'configurations': 'configurations' + } + + def __init__(self, count=None, configurations=None): + """ListParameterGroupTemplatesResponse + + The model defined in huaweicloud sdk + + :param count: 参数模板数量。 + :type count: int + :param configurations: 参数模板列表。 + :type configurations: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.ConfigurationsResult`] + """ + + super(ListParameterGroupTemplatesResponse, self).__init__() + + self._count = None + self._configurations = None + self.discriminator = None + + if count is not None: + self.count = count + if configurations is not None: + self.configurations = configurations + + @property + def count(self): + """Gets the count of this ListParameterGroupTemplatesResponse. + + 参数模板数量。 + + :return: The count of this ListParameterGroupTemplatesResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListParameterGroupTemplatesResponse. + + 参数模板数量。 + + :param count: The count of this ListParameterGroupTemplatesResponse. + :type count: int + """ + self._count = count + + @property + def configurations(self): + """Gets the configurations of this ListParameterGroupTemplatesResponse. + + 参数模板列表。 + + :return: The configurations of this ListParameterGroupTemplatesResponse. + :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.ConfigurationsResult`] + """ + return self._configurations + + @configurations.setter + def configurations(self, configurations): + """Sets the configurations of this ListParameterGroupTemplatesResponse. + + 参数模板列表。 + + :param configurations: The configurations of this ListParameterGroupTemplatesResponse. + :type configurations: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.ConfigurationsResult`] + """ + self._configurations = configurations + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListParameterGroupTemplatesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_recycle_instances_details_request.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_recycle_instances_details_request.py new file mode 100644 index 0000000000..94b36717a3 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_recycle_instances_details_request.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListRecycleInstancesDetailsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_language': 'str', + 'instance_name': 'str', + 'offset': 'int', + 'limit': 'int' + } + + attribute_map = { + 'x_language': 'X-Language', + 'instance_name': 'instance_name', + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, x_language=None, instance_name=None, offset=None, limit=None): + """ListRecycleInstancesDetailsRequest + + The model defined in huaweicloud sdk + + :param x_language: 语言。默认值:en-us。 + :type x_language: str + :param instance_name: 实例名称。 + :type instance_name: str + :param offset: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + :type offset: int + :param limit: 查询记录数。默认为50,不能为负数,最小值为1,最大值为50。 + :type limit: int + """ + + + + self._x_language = None + self._instance_name = None + self._offset = None + self._limit = None + self.discriminator = None + + if x_language is not None: + self.x_language = x_language + if instance_name is not None: + self.instance_name = instance_name + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + + @property + def x_language(self): + """Gets the x_language of this ListRecycleInstancesDetailsRequest. + + 语言。默认值:en-us。 + + :return: The x_language of this ListRecycleInstancesDetailsRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ListRecycleInstancesDetailsRequest. + + 语言。默认值:en-us。 + + :param x_language: The x_language of this ListRecycleInstancesDetailsRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def instance_name(self): + """Gets the instance_name of this ListRecycleInstancesDetailsRequest. + + 实例名称。 + + :return: The instance_name of this ListRecycleInstancesDetailsRequest. + :rtype: str + """ + return self._instance_name + + @instance_name.setter + def instance_name(self, instance_name): + """Sets the instance_name of this ListRecycleInstancesDetailsRequest. + + 实例名称。 + + :param instance_name: The instance_name of this ListRecycleInstancesDetailsRequest. + :type instance_name: str + """ + self._instance_name = instance_name + + @property + def offset(self): + """Gets the offset of this ListRecycleInstancesDetailsRequest. + + 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + + :return: The offset of this ListRecycleInstancesDetailsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListRecycleInstancesDetailsRequest. + + 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + + :param offset: The offset of this ListRecycleInstancesDetailsRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListRecycleInstancesDetailsRequest. + + 查询记录数。默认为50,不能为负数,最小值为1,最大值为50。 + + :return: The limit of this ListRecycleInstancesDetailsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListRecycleInstancesDetailsRequest. + + 查询记录数。默认为50,不能为负数,最小值为1,最大值为50。 + + :param limit: The limit of this ListRecycleInstancesDetailsRequest. + :type limit: int + """ + self._limit = limit + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListRecycleInstancesDetailsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_recycle_instances_details_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_recycle_instances_details_response.py new file mode 100644 index 0000000000..2c5adb581c --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_recycle_instances_details_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListRecycleInstancesDetailsResponse(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_count': 'int', + 'instances': 'list[RecycleInstancesDetailResultV1]' + } + + attribute_map = { + 'total_count': 'total_count', + 'instances': 'instances' + } + + def __init__(self, total_count=None, instances=None): + """ListRecycleInstancesDetailsResponse + + The model defined in huaweicloud sdk + + :param total_count: 回收站所有引擎实例总数。 + :type total_count: int + :param instances: 回收站所有引擎实例信息。 + :type instances: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.RecycleInstancesDetailResultV1`] + """ + + super(ListRecycleInstancesDetailsResponse, self).__init__() + + self._total_count = None + self._instances = None + self.discriminator = None + + if total_count is not None: + self.total_count = total_count + if instances is not None: + self.instances = instances + + @property + def total_count(self): + """Gets the total_count of this ListRecycleInstancesDetailsResponse. + + 回收站所有引擎实例总数。 + + :return: The total_count of this ListRecycleInstancesDetailsResponse. + :rtype: int + """ + return self._total_count + + @total_count.setter + def total_count(self, total_count): + """Sets the total_count of this ListRecycleInstancesDetailsResponse. + + 回收站所有引擎实例总数。 + + :param total_count: The total_count of this ListRecycleInstancesDetailsResponse. + :type total_count: int + """ + self._total_count = total_count + + @property + def instances(self): + """Gets the instances of this ListRecycleInstancesDetailsResponse. + + 回收站所有引擎实例信息。 + + :return: The instances of this ListRecycleInstancesDetailsResponse. + :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.RecycleInstancesDetailResultV1`] + """ + return self._instances + + @instances.setter + def instances(self, instances): + """Sets the instances of this ListRecycleInstancesDetailsResponse. + + 回收站所有引擎实例信息。 + + :param instances: The instances of this ListRecycleInstancesDetailsResponse. + :type instances: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.RecycleInstancesDetailResultV1`] + """ + self._instances = instances + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListRecycleInstancesDetailsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_restorable_instances_details_request.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_restorable_instances_details_request.py new file mode 100644 index 0000000000..8e8b50561d --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_restorable_instances_details_request.py @@ -0,0 +1,259 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListRestorableInstancesDetailsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_language': 'str', + 'source_instance_id': 'str', + 'backup_id': 'str', + 'restore_time': 'str', + 'offset': 'int', + 'limit': 'int' + } + + attribute_map = { + 'x_language': 'X-Language', + 'source_instance_id': 'source_instance_id', + 'backup_id': 'backup_id', + 'restore_time': 'restore_time', + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, x_language=None, source_instance_id=None, backup_id=None, restore_time=None, offset=None, limit=None): + """ListRestorableInstancesDetailsRequest + + The model defined in huaweicloud sdk + + :param x_language: 语言。 + :type x_language: str + :param source_instance_id: 源实例id,需要恢复的实例ID。 + :type source_instance_id: str + :param backup_id: 实例备份信息ID,根据备份ID查询实例拓扑信息,过滤查询出来的实例,包含节点数,副本数等。参数为空时,根据restore_time查询。。 + :type backup_id: str + :param restore_time: 恢复点,当备份ID为空时,通过此参数查询实例拓扑信息,过滤实例列表。 + :type restore_time: str + :param offset: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + :type offset: int + :param limit: 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。 + :type limit: int + """ + + + + self._x_language = None + self._source_instance_id = None + self._backup_id = None + self._restore_time = None + self._offset = None + self._limit = None + self.discriminator = None + + if x_language is not None: + self.x_language = x_language + self.source_instance_id = source_instance_id + if backup_id is not None: + self.backup_id = backup_id + if restore_time is not None: + self.restore_time = restore_time + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + + @property + def x_language(self): + """Gets the x_language of this ListRestorableInstancesDetailsRequest. + + 语言。 + + :return: The x_language of this ListRestorableInstancesDetailsRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ListRestorableInstancesDetailsRequest. + + 语言。 + + :param x_language: The x_language of this ListRestorableInstancesDetailsRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def source_instance_id(self): + """Gets the source_instance_id of this ListRestorableInstancesDetailsRequest. + + 源实例id,需要恢复的实例ID。 + + :return: The source_instance_id of this ListRestorableInstancesDetailsRequest. + :rtype: str + """ + return self._source_instance_id + + @source_instance_id.setter + def source_instance_id(self, source_instance_id): + """Sets the source_instance_id of this ListRestorableInstancesDetailsRequest. + + 源实例id,需要恢复的实例ID。 + + :param source_instance_id: The source_instance_id of this ListRestorableInstancesDetailsRequest. + :type source_instance_id: str + """ + self._source_instance_id = source_instance_id + + @property + def backup_id(self): + """Gets the backup_id of this ListRestorableInstancesDetailsRequest. + + 实例备份信息ID,根据备份ID查询实例拓扑信息,过滤查询出来的实例,包含节点数,副本数等。参数为空时,根据restore_time查询。。 + + :return: The backup_id of this ListRestorableInstancesDetailsRequest. + :rtype: str + """ + return self._backup_id + + @backup_id.setter + def backup_id(self, backup_id): + """Sets the backup_id of this ListRestorableInstancesDetailsRequest. + + 实例备份信息ID,根据备份ID查询实例拓扑信息,过滤查询出来的实例,包含节点数,副本数等。参数为空时,根据restore_time查询。。 + + :param backup_id: The backup_id of this ListRestorableInstancesDetailsRequest. + :type backup_id: str + """ + self._backup_id = backup_id + + @property + def restore_time(self): + """Gets the restore_time of this ListRestorableInstancesDetailsRequest. + + 恢复点,当备份ID为空时,通过此参数查询实例拓扑信息,过滤实例列表。 + + :return: The restore_time of this ListRestorableInstancesDetailsRequest. + :rtype: str + """ + return self._restore_time + + @restore_time.setter + def restore_time(self, restore_time): + """Sets the restore_time of this ListRestorableInstancesDetailsRequest. + + 恢复点,当备份ID为空时,通过此参数查询实例拓扑信息,过滤实例列表。 + + :param restore_time: The restore_time of this ListRestorableInstancesDetailsRequest. + :type restore_time: str + """ + self._restore_time = restore_time + + @property + def offset(self): + """Gets the offset of this ListRestorableInstancesDetailsRequest. + + 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + + :return: The offset of this ListRestorableInstancesDetailsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListRestorableInstancesDetailsRequest. + + 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + + :param offset: The offset of this ListRestorableInstancesDetailsRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListRestorableInstancesDetailsRequest. + + 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。 + + :return: The limit of this ListRestorableInstancesDetailsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListRestorableInstancesDetailsRequest. + + 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。 + + :param limit: The limit of this ListRestorableInstancesDetailsRequest. + :type limit: int + """ + self._limit = limit + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListRestorableInstancesDetailsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_restorable_instances_details_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_restorable_instances_details_response.py new file mode 100644 index 0000000000..cb4175ee80 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/list_restorable_instances_details_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListRestorableInstancesDetailsResponse(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 = { + 'instances': 'list[InstancesResult]', + 'total_count': 'int' + } + + attribute_map = { + 'instances': 'instances', + 'total_count': 'total_count' + } + + def __init__(self, instances=None, total_count=None): + """ListRestorableInstancesDetailsResponse + + The model defined in huaweicloud sdk + + :param instances: 返回可用于备份恢复的实例列表。 + :type instances: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.InstancesResult`] + :param total_count: 查询出来的实例总数。 + :type total_count: int + """ + + super(ListRestorableInstancesDetailsResponse, self).__init__() + + self._instances = None + self._total_count = None + self.discriminator = None + + if instances is not None: + self.instances = instances + if total_count is not None: + self.total_count = total_count + + @property + def instances(self): + """Gets the instances of this ListRestorableInstancesDetailsResponse. + + 返回可用于备份恢复的实例列表。 + + :return: The instances of this ListRestorableInstancesDetailsResponse. + :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.InstancesResult`] + """ + return self._instances + + @instances.setter + def instances(self, instances): + """Sets the instances of this ListRestorableInstancesDetailsResponse. + + 返回可用于备份恢复的实例列表。 + + :param instances: The instances of this ListRestorableInstancesDetailsResponse. + :type instances: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.InstancesResult`] + """ + self._instances = instances + + @property + def total_count(self): + """Gets the total_count of this ListRestorableInstancesDetailsResponse. + + 查询出来的实例总数。 + + :return: The total_count of this ListRestorableInstancesDetailsResponse. + :rtype: int + """ + return self._total_count + + @total_count.setter + def total_count(self, total_count): + """Sets the total_count of this ListRestorableInstancesDetailsResponse. + + 查询出来的实例总数。 + + :param total_count: The total_count of this ListRestorableInstancesDetailsResponse. + :type total_count: int + """ + self._total_count = total_count + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListRestorableInstancesDetailsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/recycle_instances_detail_result_v1.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/recycle_instances_detail_result_v1.py new file mode 100644 index 0000000000..0ab18399e7 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/recycle_instances_detail_result_v1.py @@ -0,0 +1,566 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RecycleInstancesDetailResultV1: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'name': 'str', + 'ha_mode': 'str', + 'engine_name': 'str', + 'engine_version': 'str', + 'pay_model': 'str', + 'created_at': 'str', + 'deleted_at': 'str', + 'volume_type': 'str', + 'volume_size': 'str', + 'data_vip': 'str', + 'enterprise_project_id': 'str', + 'enterprise_project_name': 'str', + 'backup_level': 'str', + 'recycle_backup_id': 'str', + 'recycle_status': 'str', + 'mode': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'ha_mode': 'ha_mode', + 'engine_name': 'engine_name', + 'engine_version': 'engine_version', + 'pay_model': 'pay_model', + 'created_at': 'created_at', + 'deleted_at': 'deleted_at', + 'volume_type': 'volume_type', + 'volume_size': 'volume_size', + 'data_vip': 'data_vip', + 'enterprise_project_id': 'enterprise_project_id', + 'enterprise_project_name': 'enterprise_project_name', + 'backup_level': 'backup_level', + 'recycle_backup_id': 'recycle_backup_id', + 'recycle_status': 'recycle_status', + 'mode': 'mode' + } + + def __init__(self, id=None, name=None, ha_mode=None, engine_name=None, engine_version=None, pay_model=None, created_at=None, deleted_at=None, volume_type=None, volume_size=None, data_vip=None, enterprise_project_id=None, enterprise_project_name=None, backup_level=None, recycle_backup_id=None, recycle_status=None, mode=None): + """RecycleInstancesDetailResultV1 + + The model defined in huaweicloud sdk + + :param id: 实例ID。 + :type id: str + :param name: 实例名称。 + :type name: str + :param ha_mode: 部署形态(Ha:主备版;Independent:独立部署;Combined:混合部署)。 + :type ha_mode: str + :param engine_name: 引擎名称 + :type engine_name: str + :param engine_version: 引擎版本号。 + :type engine_version: str + :param pay_model: 计费模式(0:按需计费;1:包年/包月)。 + :type pay_model: str + :param created_at: 创建时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + :type created_at: str + :param deleted_at: 删除时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + :type deleted_at: str + :param volume_type: 磁盘类型。(SAS:high;SSD:ultrahigh;ESSD:essd)。 + :type volume_type: str + :param volume_size: 磁盘大小 + :type volume_size: str + :param data_vip: 数据vip。 + :type data_vip: str + :param enterprise_project_id: 企业项目ID。 + :type enterprise_project_id: str + :param enterprise_project_name: 企业项目名称 + :type enterprise_project_name: str + :param backup_level: 备份级别 + :type backup_level: str + :param recycle_backup_id: 备份ID。(指删除实例时产生备份信息中的备份ID)。 + :type recycle_backup_id: str + :param recycle_status: 回收站备份状态。(Running:运行中;Active:有效的)。 + :type recycle_status: str + :param mode: 产品类型(basic:基础版;standard:标准版;enterprise:企业版)。 + :type mode: str + """ + + + + self._id = None + self._name = None + self._ha_mode = None + self._engine_name = None + self._engine_version = None + self._pay_model = None + self._created_at = None + self._deleted_at = None + self._volume_type = None + self._volume_size = None + self._data_vip = None + self._enterprise_project_id = None + self._enterprise_project_name = None + self._backup_level = None + self._recycle_backup_id = None + self._recycle_status = None + self._mode = None + self.discriminator = None + + self.id = id + self.name = name + self.ha_mode = ha_mode + if engine_name is not None: + self.engine_name = engine_name + self.engine_version = engine_version + self.pay_model = pay_model + self.created_at = created_at + self.deleted_at = deleted_at + self.volume_type = volume_type + if volume_size is not None: + self.volume_size = volume_size + self.data_vip = data_vip + self.enterprise_project_id = enterprise_project_id + if enterprise_project_name is not None: + self.enterprise_project_name = enterprise_project_name + if backup_level is not None: + self.backup_level = backup_level + self.recycle_backup_id = recycle_backup_id + self.recycle_status = recycle_status + self.mode = mode + + @property + def id(self): + """Gets the id of this RecycleInstancesDetailResultV1. + + 实例ID。 + + :return: The id of this RecycleInstancesDetailResultV1. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this RecycleInstancesDetailResultV1. + + 实例ID。 + + :param id: The id of this RecycleInstancesDetailResultV1. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this RecycleInstancesDetailResultV1. + + 实例名称。 + + :return: The name of this RecycleInstancesDetailResultV1. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this RecycleInstancesDetailResultV1. + + 实例名称。 + + :param name: The name of this RecycleInstancesDetailResultV1. + :type name: str + """ + self._name = name + + @property + def ha_mode(self): + """Gets the ha_mode of this RecycleInstancesDetailResultV1. + + 部署形态(Ha:主备版;Independent:独立部署;Combined:混合部署)。 + + :return: The ha_mode of this RecycleInstancesDetailResultV1. + :rtype: str + """ + return self._ha_mode + + @ha_mode.setter + def ha_mode(self, ha_mode): + """Sets the ha_mode of this RecycleInstancesDetailResultV1. + + 部署形态(Ha:主备版;Independent:独立部署;Combined:混合部署)。 + + :param ha_mode: The ha_mode of this RecycleInstancesDetailResultV1. + :type ha_mode: str + """ + self._ha_mode = ha_mode + + @property + def engine_name(self): + """Gets the engine_name of this RecycleInstancesDetailResultV1. + + 引擎名称 + + :return: The engine_name of this RecycleInstancesDetailResultV1. + :rtype: str + """ + return self._engine_name + + @engine_name.setter + def engine_name(self, engine_name): + """Sets the engine_name of this RecycleInstancesDetailResultV1. + + 引擎名称 + + :param engine_name: The engine_name of this RecycleInstancesDetailResultV1. + :type engine_name: str + """ + self._engine_name = engine_name + + @property + def engine_version(self): + """Gets the engine_version of this RecycleInstancesDetailResultV1. + + 引擎版本号。 + + :return: The engine_version of this RecycleInstancesDetailResultV1. + :rtype: str + """ + return self._engine_version + + @engine_version.setter + def engine_version(self, engine_version): + """Sets the engine_version of this RecycleInstancesDetailResultV1. + + 引擎版本号。 + + :param engine_version: The engine_version of this RecycleInstancesDetailResultV1. + :type engine_version: str + """ + self._engine_version = engine_version + + @property + def pay_model(self): + """Gets the pay_model of this RecycleInstancesDetailResultV1. + + 计费模式(0:按需计费;1:包年/包月)。 + + :return: The pay_model of this RecycleInstancesDetailResultV1. + :rtype: str + """ + return self._pay_model + + @pay_model.setter + def pay_model(self, pay_model): + """Sets the pay_model of this RecycleInstancesDetailResultV1. + + 计费模式(0:按需计费;1:包年/包月)。 + + :param pay_model: The pay_model of this RecycleInstancesDetailResultV1. + :type pay_model: str + """ + self._pay_model = pay_model + + @property + def created_at(self): + """Gets the created_at of this RecycleInstancesDetailResultV1. + + 创建时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + + :return: The created_at of this RecycleInstancesDetailResultV1. + :rtype: str + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this RecycleInstancesDetailResultV1. + + 创建时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + + :param created_at: The created_at of this RecycleInstancesDetailResultV1. + :type created_at: str + """ + self._created_at = created_at + + @property + def deleted_at(self): + """Gets the deleted_at of this RecycleInstancesDetailResultV1. + + 删除时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + + :return: The deleted_at of this RecycleInstancesDetailResultV1. + :rtype: str + """ + return self._deleted_at + + @deleted_at.setter + def deleted_at(self, deleted_at): + """Sets the deleted_at of this RecycleInstancesDetailResultV1. + + 删除时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + + :param deleted_at: The deleted_at of this RecycleInstancesDetailResultV1. + :type deleted_at: str + """ + self._deleted_at = deleted_at + + @property + def volume_type(self): + """Gets the volume_type of this RecycleInstancesDetailResultV1. + + 磁盘类型。(SAS:high;SSD:ultrahigh;ESSD:essd)。 + + :return: The volume_type of this RecycleInstancesDetailResultV1. + :rtype: str + """ + return self._volume_type + + @volume_type.setter + def volume_type(self, volume_type): + """Sets the volume_type of this RecycleInstancesDetailResultV1. + + 磁盘类型。(SAS:high;SSD:ultrahigh;ESSD:essd)。 + + :param volume_type: The volume_type of this RecycleInstancesDetailResultV1. + :type volume_type: str + """ + self._volume_type = volume_type + + @property + def volume_size(self): + """Gets the volume_size of this RecycleInstancesDetailResultV1. + + 磁盘大小 + + :return: The volume_size of this RecycleInstancesDetailResultV1. + :rtype: str + """ + return self._volume_size + + @volume_size.setter + def volume_size(self, volume_size): + """Sets the volume_size of this RecycleInstancesDetailResultV1. + + 磁盘大小 + + :param volume_size: The volume_size of this RecycleInstancesDetailResultV1. + :type volume_size: str + """ + self._volume_size = volume_size + + @property + def data_vip(self): + """Gets the data_vip of this RecycleInstancesDetailResultV1. + + 数据vip。 + + :return: The data_vip of this RecycleInstancesDetailResultV1. + :rtype: str + """ + return self._data_vip + + @data_vip.setter + def data_vip(self, data_vip): + """Sets the data_vip of this RecycleInstancesDetailResultV1. + + 数据vip。 + + :param data_vip: The data_vip of this RecycleInstancesDetailResultV1. + :type data_vip: str + """ + self._data_vip = data_vip + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this RecycleInstancesDetailResultV1. + + 企业项目ID。 + + :return: The enterprise_project_id of this RecycleInstancesDetailResultV1. + :rtype: str + """ + return self._enterprise_project_id + + @enterprise_project_id.setter + def enterprise_project_id(self, enterprise_project_id): + """Sets the enterprise_project_id of this RecycleInstancesDetailResultV1. + + 企业项目ID。 + + :param enterprise_project_id: The enterprise_project_id of this RecycleInstancesDetailResultV1. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def enterprise_project_name(self): + """Gets the enterprise_project_name of this RecycleInstancesDetailResultV1. + + 企业项目名称 + + :return: The enterprise_project_name of this RecycleInstancesDetailResultV1. + :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 RecycleInstancesDetailResultV1. + + 企业项目名称 + + :param enterprise_project_name: The enterprise_project_name of this RecycleInstancesDetailResultV1. + :type enterprise_project_name: str + """ + self._enterprise_project_name = enterprise_project_name + + @property + def backup_level(self): + """Gets the backup_level of this RecycleInstancesDetailResultV1. + + 备份级别 + + :return: The backup_level of this RecycleInstancesDetailResultV1. + :rtype: str + """ + return self._backup_level + + @backup_level.setter + def backup_level(self, backup_level): + """Sets the backup_level of this RecycleInstancesDetailResultV1. + + 备份级别 + + :param backup_level: The backup_level of this RecycleInstancesDetailResultV1. + :type backup_level: str + """ + self._backup_level = backup_level + + @property + def recycle_backup_id(self): + """Gets the recycle_backup_id of this RecycleInstancesDetailResultV1. + + 备份ID。(指删除实例时产生备份信息中的备份ID)。 + + :return: The recycle_backup_id of this RecycleInstancesDetailResultV1. + :rtype: str + """ + return self._recycle_backup_id + + @recycle_backup_id.setter + def recycle_backup_id(self, recycle_backup_id): + """Sets the recycle_backup_id of this RecycleInstancesDetailResultV1. + + 备份ID。(指删除实例时产生备份信息中的备份ID)。 + + :param recycle_backup_id: The recycle_backup_id of this RecycleInstancesDetailResultV1. + :type recycle_backup_id: str + """ + self._recycle_backup_id = recycle_backup_id + + @property + def recycle_status(self): + """Gets the recycle_status of this RecycleInstancesDetailResultV1. + + 回收站备份状态。(Running:运行中;Active:有效的)。 + + :return: The recycle_status of this RecycleInstancesDetailResultV1. + :rtype: str + """ + return self._recycle_status + + @recycle_status.setter + def recycle_status(self, recycle_status): + """Sets the recycle_status of this RecycleInstancesDetailResultV1. + + 回收站备份状态。(Running:运行中;Active:有效的)。 + + :param recycle_status: The recycle_status of this RecycleInstancesDetailResultV1. + :type recycle_status: str + """ + self._recycle_status = recycle_status + + @property + def mode(self): + """Gets the mode of this RecycleInstancesDetailResultV1. + + 产品类型(basic:基础版;standard:标准版;enterprise:企业版)。 + + :return: The mode of this RecycleInstancesDetailResultV1. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this RecycleInstancesDetailResultV1. + + 产品类型(basic:基础版;standard:标准版;enterprise:企业版)。 + + :param mode: The mode of this RecycleInstancesDetailResultV1. + :type mode: str + """ + self._mode = mode + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RecycleInstancesDetailResultV1): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_detail_request.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_detail_request.py new file mode 100644 index 0000000000..83cd22d1c9 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_detail_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowInstanceParamGroupDetailRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_language': 'str', + 'instance_id': 'str' + } + + attribute_map = { + 'x_language': 'X-Language', + 'instance_id': 'instance_id' + } + + def __init__(self, x_language=None, instance_id=None): + """ShowInstanceParamGroupDetailRequest + + The model defined in huaweicloud sdk + + :param x_language: 语言 + :type x_language: str + :param instance_id: 实例ID。 + :type instance_id: str + """ + + + + self._x_language = None + self._instance_id = None + self.discriminator = None + + if x_language is not None: + self.x_language = x_language + self.instance_id = instance_id + + @property + def x_language(self): + """Gets the x_language of this ShowInstanceParamGroupDetailRequest. + + 语言 + + :return: The x_language of this ShowInstanceParamGroupDetailRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ShowInstanceParamGroupDetailRequest. + + 语言 + + :param x_language: The x_language of this ShowInstanceParamGroupDetailRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def instance_id(self): + """Gets the instance_id of this ShowInstanceParamGroupDetailRequest. + + 实例ID。 + + :return: The instance_id of this ShowInstanceParamGroupDetailRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowInstanceParamGroupDetailRequest. + + 实例ID。 + + :param instance_id: The instance_id of this ShowInstanceParamGroupDetailRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowInstanceParamGroupDetailRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_detail_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_detail_response.py new file mode 100644 index 0000000000..dea274c466 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_detail_response.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowInstanceParamGroupDetailResponse(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 = { + 'datastore_version': 'str', + 'datastore_name': 'str', + 'created': 'str', + 'updated': 'str', + 'configuration_parameters': 'list[ConfigurationParameter]' + } + + attribute_map = { + 'datastore_version': 'datastore_version', + 'datastore_name': 'datastore_name', + 'created': 'created', + 'updated': 'updated', + 'configuration_parameters': 'configuration_parameters' + } + + def __init__(self, datastore_version=None, datastore_name=None, created=None, updated=None, configuration_parameters=None): + """ShowInstanceParamGroupDetailResponse + + The model defined in huaweicloud sdk + + :param datastore_version: 引擎版本。 + :type datastore_version: str + :param datastore_name: 引擎名称。 + :type datastore_name: str + :param created: 创建时间,格式为\"yyyy-MM-dd HH:mm:ss\"。 + :type created: str + :param updated: 更新时间,格式为\"yyyy-MM-ddHH:mm:ss\"。 + :type updated: str + :param configuration_parameters: 参数对象,用户基于默认参数模板自定义的参数配置。 + :type configuration_parameters: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.ConfigurationParameter`] + """ + + super(ShowInstanceParamGroupDetailResponse, self).__init__() + + self._datastore_version = None + self._datastore_name = None + self._created = None + self._updated = None + self._configuration_parameters = None + self.discriminator = None + + if datastore_version is not None: + self.datastore_version = datastore_version + if datastore_name is not None: + self.datastore_name = datastore_name + if created is not None: + self.created = created + if updated is not None: + self.updated = updated + if configuration_parameters is not None: + self.configuration_parameters = configuration_parameters + + @property + def datastore_version(self): + """Gets the datastore_version of this ShowInstanceParamGroupDetailResponse. + + 引擎版本。 + + :return: The datastore_version of this ShowInstanceParamGroupDetailResponse. + :rtype: str + """ + return self._datastore_version + + @datastore_version.setter + def datastore_version(self, datastore_version): + """Sets the datastore_version of this ShowInstanceParamGroupDetailResponse. + + 引擎版本。 + + :param datastore_version: The datastore_version of this ShowInstanceParamGroupDetailResponse. + :type datastore_version: str + """ + self._datastore_version = datastore_version + + @property + def datastore_name(self): + """Gets the datastore_name of this ShowInstanceParamGroupDetailResponse. + + 引擎名称。 + + :return: The datastore_name of this ShowInstanceParamGroupDetailResponse. + :rtype: str + """ + return self._datastore_name + + @datastore_name.setter + def datastore_name(self, datastore_name): + """Sets the datastore_name of this ShowInstanceParamGroupDetailResponse. + + 引擎名称。 + + :param datastore_name: The datastore_name of this ShowInstanceParamGroupDetailResponse. + :type datastore_name: str + """ + self._datastore_name = datastore_name + + @property + def created(self): + """Gets the created of this ShowInstanceParamGroupDetailResponse. + + 创建时间,格式为\"yyyy-MM-dd HH:mm:ss\"。 + + :return: The created of this ShowInstanceParamGroupDetailResponse. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """Sets the created of this ShowInstanceParamGroupDetailResponse. + + 创建时间,格式为\"yyyy-MM-dd HH:mm:ss\"。 + + :param created: The created of this ShowInstanceParamGroupDetailResponse. + :type created: str + """ + self._created = created + + @property + def updated(self): + """Gets the updated of this ShowInstanceParamGroupDetailResponse. + + 更新时间,格式为\"yyyy-MM-ddHH:mm:ss\"。 + + :return: The updated of this ShowInstanceParamGroupDetailResponse. + :rtype: str + """ + return self._updated + + @updated.setter + def updated(self, updated): + """Sets the updated of this ShowInstanceParamGroupDetailResponse. + + 更新时间,格式为\"yyyy-MM-ddHH:mm:ss\"。 + + :param updated: The updated of this ShowInstanceParamGroupDetailResponse. + :type updated: str + """ + self._updated = updated + + @property + def configuration_parameters(self): + """Gets the configuration_parameters of this ShowInstanceParamGroupDetailResponse. + + 参数对象,用户基于默认参数模板自定义的参数配置。 + + :return: The configuration_parameters of this ShowInstanceParamGroupDetailResponse. + :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.ConfigurationParameter`] + """ + return self._configuration_parameters + + @configuration_parameters.setter + def configuration_parameters(self, configuration_parameters): + """Sets the configuration_parameters of this ShowInstanceParamGroupDetailResponse. + + 参数对象,用户基于默认参数模板自定义的参数配置。 + + :param configuration_parameters: The configuration_parameters of this ShowInstanceParamGroupDetailResponse. + :type configuration_parameters: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.ConfigurationParameter`] + """ + self._configuration_parameters = configuration_parameters + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowInstanceParamGroupDetailResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_parameter_group_detail_request.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_parameter_group_detail_request.py new file mode 100644 index 0000000000..5637bd1041 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_parameter_group_detail_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowParameterGroupDetailRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_language': 'str', + 'config_id': 'str' + } + + attribute_map = { + 'x_language': 'X-Language', + 'config_id': 'config_id' + } + + def __init__(self, x_language=None, config_id=None): + """ShowParameterGroupDetailRequest + + The model defined in huaweicloud sdk + + :param x_language: 语言,默认:en-us。 + :type x_language: str + :param config_id: 参数模板ID + :type config_id: str + """ + + + + self._x_language = None + self._config_id = None + self.discriminator = None + + if x_language is not None: + self.x_language = x_language + self.config_id = config_id + + @property + def x_language(self): + """Gets the x_language of this ShowParameterGroupDetailRequest. + + 语言,默认:en-us。 + + :return: The x_language of this ShowParameterGroupDetailRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ShowParameterGroupDetailRequest. + + 语言,默认:en-us。 + + :param x_language: The x_language of this ShowParameterGroupDetailRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def config_id(self): + """Gets the config_id of this ShowParameterGroupDetailRequest. + + 参数模板ID + + :return: The config_id of this ShowParameterGroupDetailRequest. + :rtype: str + """ + return self._config_id + + @config_id.setter + def config_id(self, config_id): + """Sets the config_id of this ShowParameterGroupDetailRequest. + + 参数模板ID + + :param config_id: The config_id of this ShowParameterGroupDetailRequest. + :type config_id: str + """ + self._config_id = config_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowParameterGroupDetailRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_parameter_group_detail_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_parameter_group_detail_response.py new file mode 100644 index 0000000000..14a003d324 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_parameter_group_detail_response.py @@ -0,0 +1,319 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowParameterGroupDetailResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'name': 'str', + 'description': 'str', + 'engine_version': 'str', + 'instance_mode': 'str', + 'created_at': 'str', + 'updated_at': 'str', + 'configuration_parameters': 'list[ParaGroupParameterResult]' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'description': 'description', + 'engine_version': 'engine_version', + 'instance_mode': 'instance_mode', + 'created_at': 'created_at', + 'updated_at': 'updated_at', + 'configuration_parameters': 'configuration_parameters' + } + + def __init__(self, id=None, name=None, description=None, engine_version=None, instance_mode=None, created_at=None, updated_at=None, configuration_parameters=None): + """ShowParameterGroupDetailResponse + + The model defined in huaweicloud sdk + + :param id: 参数模板ID。 + :type id: str + :param name: 参数模板名称。 + :type name: str + :param description: 参数模板描述。 + :type description: str + :param engine_version: 引擎版本。 [数据库版本。支持V2.0-2.3版本,取值为“V2.0-2.3”]。 + :type engine_version: str + :param instance_mode: 实例部署形态。independent:独立;ha:主备。 + :type instance_mode: str + :param created_at: 创建时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + :type created_at: str + :param updated_at: 修改时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + :type updated_at: str + :param configuration_parameters: 参数详情。 + :type configuration_parameters: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.ParaGroupParameterResult`] + """ + + super(ShowParameterGroupDetailResponse, self).__init__() + + self._id = None + self._name = None + self._description = None + self._engine_version = None + self._instance_mode = None + self._created_at = None + self._updated_at = None + self._configuration_parameters = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if description is not None: + self.description = description + if engine_version is not None: + self.engine_version = engine_version + if instance_mode is not None: + self.instance_mode = instance_mode + if created_at is not None: + self.created_at = created_at + if updated_at is not None: + self.updated_at = updated_at + if configuration_parameters is not None: + self.configuration_parameters = configuration_parameters + + @property + def id(self): + """Gets the id of this ShowParameterGroupDetailResponse. + + 参数模板ID。 + + :return: The id of this ShowParameterGroupDetailResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ShowParameterGroupDetailResponse. + + 参数模板ID。 + + :param id: The id of this ShowParameterGroupDetailResponse. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this ShowParameterGroupDetailResponse. + + 参数模板名称。 + + :return: The name of this ShowParameterGroupDetailResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ShowParameterGroupDetailResponse. + + 参数模板名称。 + + :param name: The name of this ShowParameterGroupDetailResponse. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this ShowParameterGroupDetailResponse. + + 参数模板描述。 + + :return: The description of this ShowParameterGroupDetailResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ShowParameterGroupDetailResponse. + + 参数模板描述。 + + :param description: The description of this ShowParameterGroupDetailResponse. + :type description: str + """ + self._description = description + + @property + def engine_version(self): + """Gets the engine_version of this ShowParameterGroupDetailResponse. + + 引擎版本。 [数据库版本。支持V2.0-2.3版本,取值为“V2.0-2.3”]。 + + :return: The engine_version of this ShowParameterGroupDetailResponse. + :rtype: str + """ + return self._engine_version + + @engine_version.setter + def engine_version(self, engine_version): + """Sets the engine_version of this ShowParameterGroupDetailResponse. + + 引擎版本。 [数据库版本。支持V2.0-2.3版本,取值为“V2.0-2.3”]。 + + :param engine_version: The engine_version of this ShowParameterGroupDetailResponse. + :type engine_version: str + """ + self._engine_version = engine_version + + @property + def instance_mode(self): + """Gets the instance_mode of this ShowParameterGroupDetailResponse. + + 实例部署形态。independent:独立;ha:主备。 + + :return: The instance_mode of this ShowParameterGroupDetailResponse. + :rtype: str + """ + return self._instance_mode + + @instance_mode.setter + def instance_mode(self, instance_mode): + """Sets the instance_mode of this ShowParameterGroupDetailResponse. + + 实例部署形态。independent:独立;ha:主备。 + + :param instance_mode: The instance_mode of this ShowParameterGroupDetailResponse. + :type instance_mode: str + """ + self._instance_mode = instance_mode + + @property + def created_at(self): + """Gets the created_at of this ShowParameterGroupDetailResponse. + + 创建时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + + :return: The created_at of this ShowParameterGroupDetailResponse. + :rtype: str + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this ShowParameterGroupDetailResponse. + + 创建时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + + :param created_at: The created_at of this ShowParameterGroupDetailResponse. + :type created_at: str + """ + self._created_at = created_at + + @property + def updated_at(self): + """Gets the updated_at of this ShowParameterGroupDetailResponse. + + 修改时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + + :return: The updated_at of this ShowParameterGroupDetailResponse. + :rtype: str + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this ShowParameterGroupDetailResponse. + + 修改时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + + :param updated_at: The updated_at of this ShowParameterGroupDetailResponse. + :type updated_at: str + """ + self._updated_at = updated_at + + @property + def configuration_parameters(self): + """Gets the configuration_parameters of this ShowParameterGroupDetailResponse. + + 参数详情。 + + :return: The configuration_parameters of this ShowParameterGroupDetailResponse. + :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.ParaGroupParameterResult`] + """ + return self._configuration_parameters + + @configuration_parameters.setter + def configuration_parameters(self, configuration_parameters): + """Sets the configuration_parameters of this ShowParameterGroupDetailResponse. + + 参数详情。 + + :param configuration_parameters: The configuration_parameters of this ShowParameterGroupDetailResponse. + :type configuration_parameters: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.ParaGroupParameterResult`] + """ + self._configuration_parameters = configuration_parameters + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowParameterGroupDetailResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_source_instance_detail_request.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_source_instance_detail_request.py new file mode 100644 index 0000000000..ad87d4a0f2 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_source_instance_detail_request.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowSourceInstanceDetailRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_language': 'str', + 'instance_id': 'str', + 'restore_time': 'str', + 'backup_id': 'str' + } + + attribute_map = { + 'x_language': 'X-Language', + 'instance_id': 'instance_id', + 'restore_time': 'restore_time', + 'backup_id': 'backup_id' + } + + def __init__(self, x_language=None, instance_id=None, restore_time=None, backup_id=None): + """ShowSourceInstanceDetailRequest + + The model defined in huaweicloud sdk + + :param x_language: 语言。默认值:en-us。 + :type x_language: str + :param instance_id: 原实例ID。 (instance_id 、restore_time为一组) + :type instance_id: str + :param restore_time: UNIX时间戳格式,单位是毫秒,时区是UTC,某时间点实例的信息。 (instance_id 、restore_time为一组) + :type restore_time: str + :param backup_id: 备份ID。 (backup_id为一组) 备份ID不为空时,可以不需要实例ID和时间戳。 + :type backup_id: str + """ + + + + self._x_language = None + self._instance_id = None + self._restore_time = None + self._backup_id = None + self.discriminator = None + + if x_language is not None: + self.x_language = x_language + if instance_id is not None: + self.instance_id = instance_id + if restore_time is not None: + self.restore_time = restore_time + if backup_id is not None: + self.backup_id = backup_id + + @property + def x_language(self): + """Gets the x_language of this ShowSourceInstanceDetailRequest. + + 语言。默认值:en-us。 + + :return: The x_language of this ShowSourceInstanceDetailRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ShowSourceInstanceDetailRequest. + + 语言。默认值:en-us。 + + :param x_language: The x_language of this ShowSourceInstanceDetailRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def instance_id(self): + """Gets the instance_id of this ShowSourceInstanceDetailRequest. + + 原实例ID。 (instance_id 、restore_time为一组) + + :return: The instance_id of this ShowSourceInstanceDetailRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowSourceInstanceDetailRequest. + + 原实例ID。 (instance_id 、restore_time为一组) + + :param instance_id: The instance_id of this ShowSourceInstanceDetailRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def restore_time(self): + """Gets the restore_time of this ShowSourceInstanceDetailRequest. + + UNIX时间戳格式,单位是毫秒,时区是UTC,某时间点实例的信息。 (instance_id 、restore_time为一组) + + :return: The restore_time of this ShowSourceInstanceDetailRequest. + :rtype: str + """ + return self._restore_time + + @restore_time.setter + def restore_time(self, restore_time): + """Sets the restore_time of this ShowSourceInstanceDetailRequest. + + UNIX时间戳格式,单位是毫秒,时区是UTC,某时间点实例的信息。 (instance_id 、restore_time为一组) + + :param restore_time: The restore_time of this ShowSourceInstanceDetailRequest. + :type restore_time: str + """ + self._restore_time = restore_time + + @property + def backup_id(self): + """Gets the backup_id of this ShowSourceInstanceDetailRequest. + + 备份ID。 (backup_id为一组) 备份ID不为空时,可以不需要实例ID和时间戳。 + + :return: The backup_id of this ShowSourceInstanceDetailRequest. + :rtype: str + """ + return self._backup_id + + @backup_id.setter + def backup_id(self, backup_id): + """Sets the backup_id of this ShowSourceInstanceDetailRequest. + + 备份ID。 (backup_id为一组) 备份ID不为空时,可以不需要实例ID和时间戳。 + + :param backup_id: The backup_id of this ShowSourceInstanceDetailRequest. + :type backup_id: str + """ + self._backup_id = backup_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowSourceInstanceDetailRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_source_instance_detail_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_source_instance_detail_response.py new file mode 100644 index 0000000000..55f7db8a94 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_source_instance_detail_response.py @@ -0,0 +1,348 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowSourceInstanceDetailResponse(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 = { + 'cluster_mode': 'str', + 'instance_mode': 'str', + 'data_volume_size': 'str', + 'solution': 'str', + 'node_num': 'int', + 'coordinator_num': 'int', + 'sharding_num': 'int', + 'replica_num': 'int', + 'engine_version': 'str' + } + + attribute_map = { + 'cluster_mode': 'cluster_mode', + 'instance_mode': 'instance_mode', + 'data_volume_size': 'data_volume_size', + 'solution': 'solution', + 'node_num': 'node_num', + 'coordinator_num': 'coordinator_num', + 'sharding_num': 'sharding_num', + 'replica_num': 'replica_num', + 'engine_version': 'engine_version' + } + + def __init__(self, cluster_mode=None, instance_mode=None, data_volume_size=None, solution=None, node_num=None, coordinator_num=None, sharding_num=None, replica_num=None, engine_version=None): + """ShowSourceInstanceDetailResponse + + The model defined in huaweicloud sdk + + :param cluster_mode: 实例部署形态。集中式Ha(主备)、分布式Independent(独立部署)。 + :type cluster_mode: str + :param instance_mode: 实例模型,企业版enterprise,标准版standard,基础版basic。 + :type instance_mode: str + :param data_volume_size: 磁盘大小,单位:GB。 + :type data_volume_size: str + :param solution: 解决方案模板类型。集中式Ha一般用triset,分布式Independent一般为空或者默认hws。 描述如下: triset:高可用(1主2备) hws:默认。 + :type solution: str + :param node_num: 节点数量。 + :type node_num: int + :param coordinator_num: 协调节点数量。 + :type coordinator_num: int + :param sharding_num: 分片数量。 + :type sharding_num: int + :param replica_num: 副本数量。 + :type replica_num: int + :param engine_version: 引擎版本。 + :type engine_version: str + """ + + super(ShowSourceInstanceDetailResponse, self).__init__() + + self._cluster_mode = None + self._instance_mode = None + self._data_volume_size = None + self._solution = None + self._node_num = None + self._coordinator_num = None + self._sharding_num = None + self._replica_num = None + self._engine_version = None + self.discriminator = None + + if cluster_mode is not None: + self.cluster_mode = cluster_mode + if instance_mode is not None: + self.instance_mode = instance_mode + if data_volume_size is not None: + self.data_volume_size = data_volume_size + if solution is not None: + self.solution = solution + if node_num is not None: + self.node_num = node_num + if coordinator_num is not None: + self.coordinator_num = coordinator_num + if sharding_num is not None: + self.sharding_num = sharding_num + if replica_num is not None: + self.replica_num = replica_num + if engine_version is not None: + self.engine_version = engine_version + + @property + def cluster_mode(self): + """Gets the cluster_mode of this ShowSourceInstanceDetailResponse. + + 实例部署形态。集中式Ha(主备)、分布式Independent(独立部署)。 + + :return: The cluster_mode of this ShowSourceInstanceDetailResponse. + :rtype: str + """ + return self._cluster_mode + + @cluster_mode.setter + def cluster_mode(self, cluster_mode): + """Sets the cluster_mode of this ShowSourceInstanceDetailResponse. + + 实例部署形态。集中式Ha(主备)、分布式Independent(独立部署)。 + + :param cluster_mode: The cluster_mode of this ShowSourceInstanceDetailResponse. + :type cluster_mode: str + """ + self._cluster_mode = cluster_mode + + @property + def instance_mode(self): + """Gets the instance_mode of this ShowSourceInstanceDetailResponse. + + 实例模型,企业版enterprise,标准版standard,基础版basic。 + + :return: The instance_mode of this ShowSourceInstanceDetailResponse. + :rtype: str + """ + return self._instance_mode + + @instance_mode.setter + def instance_mode(self, instance_mode): + """Sets the instance_mode of this ShowSourceInstanceDetailResponse. + + 实例模型,企业版enterprise,标准版standard,基础版basic。 + + :param instance_mode: The instance_mode of this ShowSourceInstanceDetailResponse. + :type instance_mode: str + """ + self._instance_mode = instance_mode + + @property + def data_volume_size(self): + """Gets the data_volume_size of this ShowSourceInstanceDetailResponse. + + 磁盘大小,单位:GB。 + + :return: The data_volume_size of this ShowSourceInstanceDetailResponse. + :rtype: str + """ + return self._data_volume_size + + @data_volume_size.setter + def data_volume_size(self, data_volume_size): + """Sets the data_volume_size of this ShowSourceInstanceDetailResponse. + + 磁盘大小,单位:GB。 + + :param data_volume_size: The data_volume_size of this ShowSourceInstanceDetailResponse. + :type data_volume_size: str + """ + self._data_volume_size = data_volume_size + + @property + def solution(self): + """Gets the solution of this ShowSourceInstanceDetailResponse. + + 解决方案模板类型。集中式Ha一般用triset,分布式Independent一般为空或者默认hws。 描述如下: triset:高可用(1主2备) hws:默认。 + + :return: The solution of this ShowSourceInstanceDetailResponse. + :rtype: str + """ + return self._solution + + @solution.setter + def solution(self, solution): + """Sets the solution of this ShowSourceInstanceDetailResponse. + + 解决方案模板类型。集中式Ha一般用triset,分布式Independent一般为空或者默认hws。 描述如下: triset:高可用(1主2备) hws:默认。 + + :param solution: The solution of this ShowSourceInstanceDetailResponse. + :type solution: str + """ + self._solution = solution + + @property + def node_num(self): + """Gets the node_num of this ShowSourceInstanceDetailResponse. + + 节点数量。 + + :return: The node_num of this ShowSourceInstanceDetailResponse. + :rtype: int + """ + return self._node_num + + @node_num.setter + def node_num(self, node_num): + """Sets the node_num of this ShowSourceInstanceDetailResponse. + + 节点数量。 + + :param node_num: The node_num of this ShowSourceInstanceDetailResponse. + :type node_num: int + """ + self._node_num = node_num + + @property + def coordinator_num(self): + """Gets the coordinator_num of this ShowSourceInstanceDetailResponse. + + 协调节点数量。 + + :return: The coordinator_num of this ShowSourceInstanceDetailResponse. + :rtype: int + """ + return self._coordinator_num + + @coordinator_num.setter + def coordinator_num(self, coordinator_num): + """Sets the coordinator_num of this ShowSourceInstanceDetailResponse. + + 协调节点数量。 + + :param coordinator_num: The coordinator_num of this ShowSourceInstanceDetailResponse. + :type coordinator_num: int + """ + self._coordinator_num = coordinator_num + + @property + def sharding_num(self): + """Gets the sharding_num of this ShowSourceInstanceDetailResponse. + + 分片数量。 + + :return: The sharding_num of this ShowSourceInstanceDetailResponse. + :rtype: int + """ + return self._sharding_num + + @sharding_num.setter + def sharding_num(self, sharding_num): + """Sets the sharding_num of this ShowSourceInstanceDetailResponse. + + 分片数量。 + + :param sharding_num: The sharding_num of this ShowSourceInstanceDetailResponse. + :type sharding_num: int + """ + self._sharding_num = sharding_num + + @property + def replica_num(self): + """Gets the replica_num of this ShowSourceInstanceDetailResponse. + + 副本数量。 + + :return: The replica_num of this ShowSourceInstanceDetailResponse. + :rtype: int + """ + return self._replica_num + + @replica_num.setter + def replica_num(self, replica_num): + """Sets the replica_num of this ShowSourceInstanceDetailResponse. + + 副本数量。 + + :param replica_num: The replica_num of this ShowSourceInstanceDetailResponse. + :type replica_num: int + """ + self._replica_num = replica_num + + @property + def engine_version(self): + """Gets the engine_version of this ShowSourceInstanceDetailResponse. + + 引擎版本。 + + :return: The engine_version of this ShowSourceInstanceDetailResponse. + :rtype: str + """ + return self._engine_version + + @engine_version.setter + def engine_version(self, engine_version): + """Sets the engine_version of this ShowSourceInstanceDetailResponse. + + 引擎版本。 + + :param engine_version: The engine_version of this ShowSourceInstanceDetailResponse. + :type engine_version: str + """ + self._engine_version = engine_version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowSourceInstanceDetailResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_details_request.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_details_request.py new file mode 100644 index 0000000000..e18b9347a1 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_details_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowUpgradeCandidateVersionsDetailsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'x_language': 'str' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'x_language': 'X-Language' + } + + def __init__(self, instance_id=None, x_language=None): + """ShowUpgradeCandidateVersionsDetailsRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID。 + :type instance_id: str + :param x_language: 语言[zh-cn, en-us]。 + :type x_language: str + """ + + + + self._instance_id = None + self._x_language = None + self.discriminator = None + + self.instance_id = instance_id + if x_language is not None: + self.x_language = x_language + + @property + def instance_id(self): + """Gets the instance_id of this ShowUpgradeCandidateVersionsDetailsRequest. + + 实例ID。 + + :return: The instance_id of this ShowUpgradeCandidateVersionsDetailsRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowUpgradeCandidateVersionsDetailsRequest. + + 实例ID。 + + :param instance_id: The instance_id of this ShowUpgradeCandidateVersionsDetailsRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def x_language(self): + """Gets the x_language of this ShowUpgradeCandidateVersionsDetailsRequest. + + 语言[zh-cn, en-us]。 + + :return: The x_language of this ShowUpgradeCandidateVersionsDetailsRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ShowUpgradeCandidateVersionsDetailsRequest. + + 语言[zh-cn, en-us]。 + + :param x_language: The x_language of this ShowUpgradeCandidateVersionsDetailsRequest. + :type x_language: str + """ + self._x_language = x_language + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowUpgradeCandidateVersionsDetailsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_details_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_details_response.py new file mode 100644 index 0000000000..6c0ab59d4b --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_details_response.py @@ -0,0 +1,373 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowUpgradeCandidateVersionsDetailsResponse(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 = { + 'upgrade_type_list': 'list[UpgradeTypeInfo]', + 'rollback_enabled': 'bool', + 'source_version': 'str', + 'target_version': 'str', + 'roll_upgrade_progress': 'RollUpgradeProgress', + 'upgrade_candidate_versions': 'list[str]', + 'hotfix_upgrade_candidate_versions': 'list[str]', + 'hotfix_rollback_candidate_versions': 'list[str]', + 'hotfix_upgrade_infos': 'list[CanBeUpgradedHotfixDetail]', + 'hotfix_rollback_infos': 'list[CanBeRollbackedHotfixDetail]' + } + + attribute_map = { + 'upgrade_type_list': 'upgrade_type_list', + 'rollback_enabled': 'rollback_enabled', + 'source_version': 'source_version', + 'target_version': 'target_version', + 'roll_upgrade_progress': 'roll_upgrade_progress', + 'upgrade_candidate_versions': 'upgrade_candidate_versions', + 'hotfix_upgrade_candidate_versions': 'hotfix_upgrade_candidate_versions', + 'hotfix_rollback_candidate_versions': 'hotfix_rollback_candidate_versions', + 'hotfix_upgrade_infos': 'hotfix_upgrade_infos', + 'hotfix_rollback_infos': 'hotfix_rollback_infos' + } + + def __init__(self, upgrade_type_list=None, rollback_enabled=None, source_version=None, target_version=None, roll_upgrade_progress=None, upgrade_candidate_versions=None, hotfix_upgrade_candidate_versions=None, hotfix_rollback_candidate_versions=None, hotfix_upgrade_infos=None, hotfix_rollback_infos=None): + """ShowUpgradeCandidateVersionsDetailsResponse + + The model defined in huaweicloud sdk + + :param upgrade_type_list: 升级类型信息列表 + :type upgrade_type_list: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeTypeInfo`] + :param rollback_enabled: 是否可以回滚,true可以回滚,false不可以回滚。 + :type rollback_enabled: bool + :param source_version: 原版本 + :type source_version: str + :param target_version: 升级目标版本,没有在滚动升级中返回null。 + :type target_version: str + :param roll_upgrade_progress: + :type roll_upgrade_progress: :class:`huaweicloudsdkgaussdbforopengauss.v3.RollUpgradeProgress` + :param upgrade_candidate_versions: 可以升级的版本,包括大小版本,滚动升级中返回空数组。 + :type upgrade_candidate_versions: list[str] + :param hotfix_upgrade_candidate_versions: 可以升级的热补丁版本,滚动升级中返回空数组。 + :type hotfix_upgrade_candidate_versions: list[str] + :param hotfix_rollback_candidate_versions: 可以回滚的热补丁版本,滚动升级中返回空数组。 + :type hotfix_rollback_candidate_versions: list[str] + :param hotfix_upgrade_infos: 可以升级的热补丁信息。 + :type hotfix_upgrade_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.CanBeUpgradedHotfixDetail`] + :param hotfix_rollback_infos: 可以回滚的热补丁信息。 + :type hotfix_rollback_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.CanBeRollbackedHotfixDetail`] + """ + + super(ShowUpgradeCandidateVersionsDetailsResponse, self).__init__() + + self._upgrade_type_list = None + self._rollback_enabled = None + self._source_version = None + self._target_version = None + self._roll_upgrade_progress = None + self._upgrade_candidate_versions = None + self._hotfix_upgrade_candidate_versions = None + self._hotfix_rollback_candidate_versions = None + self._hotfix_upgrade_infos = None + self._hotfix_rollback_infos = None + self.discriminator = None + + if upgrade_type_list is not None: + self.upgrade_type_list = upgrade_type_list + if rollback_enabled is not None: + self.rollback_enabled = rollback_enabled + if source_version is not None: + self.source_version = source_version + if target_version is not None: + self.target_version = target_version + if roll_upgrade_progress is not None: + self.roll_upgrade_progress = roll_upgrade_progress + if upgrade_candidate_versions is not None: + self.upgrade_candidate_versions = upgrade_candidate_versions + if hotfix_upgrade_candidate_versions is not None: + self.hotfix_upgrade_candidate_versions = hotfix_upgrade_candidate_versions + if hotfix_rollback_candidate_versions is not None: + self.hotfix_rollback_candidate_versions = hotfix_rollback_candidate_versions + if hotfix_upgrade_infos is not None: + self.hotfix_upgrade_infos = hotfix_upgrade_infos + if hotfix_rollback_infos is not None: + self.hotfix_rollback_infos = hotfix_rollback_infos + + @property + def upgrade_type_list(self): + """Gets the upgrade_type_list of this ShowUpgradeCandidateVersionsDetailsResponse. + + 升级类型信息列表 + + :return: The upgrade_type_list of this ShowUpgradeCandidateVersionsDetailsResponse. + :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeTypeInfo`] + """ + return self._upgrade_type_list + + @upgrade_type_list.setter + def upgrade_type_list(self, upgrade_type_list): + """Sets the upgrade_type_list of this ShowUpgradeCandidateVersionsDetailsResponse. + + 升级类型信息列表 + + :param upgrade_type_list: The upgrade_type_list of this ShowUpgradeCandidateVersionsDetailsResponse. + :type upgrade_type_list: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeTypeInfo`] + """ + self._upgrade_type_list = upgrade_type_list + + @property + def rollback_enabled(self): + """Gets the rollback_enabled of this ShowUpgradeCandidateVersionsDetailsResponse. + + 是否可以回滚,true可以回滚,false不可以回滚。 + + :return: The rollback_enabled of this ShowUpgradeCandidateVersionsDetailsResponse. + :rtype: bool + """ + return self._rollback_enabled + + @rollback_enabled.setter + def rollback_enabled(self, rollback_enabled): + """Sets the rollback_enabled of this ShowUpgradeCandidateVersionsDetailsResponse. + + 是否可以回滚,true可以回滚,false不可以回滚。 + + :param rollback_enabled: The rollback_enabled of this ShowUpgradeCandidateVersionsDetailsResponse. + :type rollback_enabled: bool + """ + self._rollback_enabled = rollback_enabled + + @property + def source_version(self): + """Gets the source_version of this ShowUpgradeCandidateVersionsDetailsResponse. + + 原版本 + + :return: The source_version of this ShowUpgradeCandidateVersionsDetailsResponse. + :rtype: str + """ + return self._source_version + + @source_version.setter + def source_version(self, source_version): + """Sets the source_version of this ShowUpgradeCandidateVersionsDetailsResponse. + + 原版本 + + :param source_version: The source_version of this ShowUpgradeCandidateVersionsDetailsResponse. + :type source_version: str + """ + self._source_version = source_version + + @property + def target_version(self): + """Gets the target_version of this ShowUpgradeCandidateVersionsDetailsResponse. + + 升级目标版本,没有在滚动升级中返回null。 + + :return: The target_version of this ShowUpgradeCandidateVersionsDetailsResponse. + :rtype: str + """ + return self._target_version + + @target_version.setter + def target_version(self, target_version): + """Sets the target_version of this ShowUpgradeCandidateVersionsDetailsResponse. + + 升级目标版本,没有在滚动升级中返回null。 + + :param target_version: The target_version of this ShowUpgradeCandidateVersionsDetailsResponse. + :type target_version: str + """ + self._target_version = target_version + + @property + def roll_upgrade_progress(self): + """Gets the roll_upgrade_progress of this ShowUpgradeCandidateVersionsDetailsResponse. + + :return: The roll_upgrade_progress of this ShowUpgradeCandidateVersionsDetailsResponse. + :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.RollUpgradeProgress` + """ + return self._roll_upgrade_progress + + @roll_upgrade_progress.setter + def roll_upgrade_progress(self, roll_upgrade_progress): + """Sets the roll_upgrade_progress of this ShowUpgradeCandidateVersionsDetailsResponse. + + :param roll_upgrade_progress: The roll_upgrade_progress of this ShowUpgradeCandidateVersionsDetailsResponse. + :type roll_upgrade_progress: :class:`huaweicloudsdkgaussdbforopengauss.v3.RollUpgradeProgress` + """ + self._roll_upgrade_progress = roll_upgrade_progress + + @property + def upgrade_candidate_versions(self): + """Gets the upgrade_candidate_versions of this ShowUpgradeCandidateVersionsDetailsResponse. + + 可以升级的版本,包括大小版本,滚动升级中返回空数组。 + + :return: The upgrade_candidate_versions of this ShowUpgradeCandidateVersionsDetailsResponse. + :rtype: list[str] + """ + return self._upgrade_candidate_versions + + @upgrade_candidate_versions.setter + def upgrade_candidate_versions(self, upgrade_candidate_versions): + """Sets the upgrade_candidate_versions of this ShowUpgradeCandidateVersionsDetailsResponse. + + 可以升级的版本,包括大小版本,滚动升级中返回空数组。 + + :param upgrade_candidate_versions: The upgrade_candidate_versions of this ShowUpgradeCandidateVersionsDetailsResponse. + :type upgrade_candidate_versions: list[str] + """ + self._upgrade_candidate_versions = upgrade_candidate_versions + + @property + def hotfix_upgrade_candidate_versions(self): + """Gets the hotfix_upgrade_candidate_versions of this ShowUpgradeCandidateVersionsDetailsResponse. + + 可以升级的热补丁版本,滚动升级中返回空数组。 + + :return: The hotfix_upgrade_candidate_versions of this ShowUpgradeCandidateVersionsDetailsResponse. + :rtype: list[str] + """ + return self._hotfix_upgrade_candidate_versions + + @hotfix_upgrade_candidate_versions.setter + def hotfix_upgrade_candidate_versions(self, hotfix_upgrade_candidate_versions): + """Sets the hotfix_upgrade_candidate_versions of this ShowUpgradeCandidateVersionsDetailsResponse. + + 可以升级的热补丁版本,滚动升级中返回空数组。 + + :param hotfix_upgrade_candidate_versions: The hotfix_upgrade_candidate_versions of this ShowUpgradeCandidateVersionsDetailsResponse. + :type hotfix_upgrade_candidate_versions: list[str] + """ + self._hotfix_upgrade_candidate_versions = hotfix_upgrade_candidate_versions + + @property + def hotfix_rollback_candidate_versions(self): + """Gets the hotfix_rollback_candidate_versions of this ShowUpgradeCandidateVersionsDetailsResponse. + + 可以回滚的热补丁版本,滚动升级中返回空数组。 + + :return: The hotfix_rollback_candidate_versions of this ShowUpgradeCandidateVersionsDetailsResponse. + :rtype: list[str] + """ + return self._hotfix_rollback_candidate_versions + + @hotfix_rollback_candidate_versions.setter + def hotfix_rollback_candidate_versions(self, hotfix_rollback_candidate_versions): + """Sets the hotfix_rollback_candidate_versions of this ShowUpgradeCandidateVersionsDetailsResponse. + + 可以回滚的热补丁版本,滚动升级中返回空数组。 + + :param hotfix_rollback_candidate_versions: The hotfix_rollback_candidate_versions of this ShowUpgradeCandidateVersionsDetailsResponse. + :type hotfix_rollback_candidate_versions: list[str] + """ + self._hotfix_rollback_candidate_versions = hotfix_rollback_candidate_versions + + @property + def hotfix_upgrade_infos(self): + """Gets the hotfix_upgrade_infos of this ShowUpgradeCandidateVersionsDetailsResponse. + + 可以升级的热补丁信息。 + + :return: The hotfix_upgrade_infos of this ShowUpgradeCandidateVersionsDetailsResponse. + :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.CanBeUpgradedHotfixDetail`] + """ + return self._hotfix_upgrade_infos + + @hotfix_upgrade_infos.setter + def hotfix_upgrade_infos(self, hotfix_upgrade_infos): + """Sets the hotfix_upgrade_infos of this ShowUpgradeCandidateVersionsDetailsResponse. + + 可以升级的热补丁信息。 + + :param hotfix_upgrade_infos: The hotfix_upgrade_infos of this ShowUpgradeCandidateVersionsDetailsResponse. + :type hotfix_upgrade_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.CanBeUpgradedHotfixDetail`] + """ + self._hotfix_upgrade_infos = hotfix_upgrade_infos + + @property + def hotfix_rollback_infos(self): + """Gets the hotfix_rollback_infos of this ShowUpgradeCandidateVersionsDetailsResponse. + + 可以回滚的热补丁信息。 + + :return: The hotfix_rollback_infos of this ShowUpgradeCandidateVersionsDetailsResponse. + :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.CanBeRollbackedHotfixDetail`] + """ + return self._hotfix_rollback_infos + + @hotfix_rollback_infos.setter + def hotfix_rollback_infos(self, hotfix_rollback_infos): + """Sets the hotfix_rollback_infos of this ShowUpgradeCandidateVersionsDetailsResponse. + + 可以回滚的热补丁信息。 + + :param hotfix_rollback_infos: The hotfix_rollback_infos of this ShowUpgradeCandidateVersionsDetailsResponse. + :type hotfix_rollback_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.CanBeRollbackedHotfixDetail`] + """ + self._hotfix_rollback_infos = hotfix_rollback_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""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowUpgradeCandidateVersionsDetailsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_response.py index 829828c613..4f8e957c6d 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_response.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_response.py @@ -26,8 +26,8 @@ class ShowUpgradeCandidateVersionsResponse(SdkResponse): 'upgrade_candidate_versions': 'list[str]', 'hotfix_upgrade_candidate_versions': 'list[str]', 'hotfix_rollback_candidate_versions': 'list[str]', - 'hotfix_upgrade_infos': 'HotfixUpgradeInfos', - 'hotfix_rollback_infos': 'HotfixRollbackInfos' + 'hotfix_upgrade_infos': 'list[HotfixUpgradeInfos]', + 'hotfix_rollback_infos': 'list[HotfixRollbackInfos]' } attribute_map = { @@ -64,10 +64,10 @@ def __init__(self, upgrade_type_list=None, rollback_enabled=None, source_version :type hotfix_upgrade_candidate_versions: list[str] :param hotfix_rollback_candidate_versions: 可以回滚的热补丁版本,滚动升级中返回空数组。 :type hotfix_rollback_candidate_versions: list[str] - :param hotfix_upgrade_infos: - :type hotfix_upgrade_infos: :class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixUpgradeInfos` - :param hotfix_rollback_infos: - :type hotfix_rollback_infos: :class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixRollbackInfos` + :param hotfix_upgrade_infos: 可以升级的热补丁信息。 + :type hotfix_upgrade_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixUpgradeInfos`] + :param hotfix_rollback_infos: 可以回滚的热补丁信息。 + :type hotfix_rollback_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixRollbackInfos`] """ super(ShowUpgradeCandidateVersionsResponse, self).__init__() @@ -281,8 +281,10 @@ def hotfix_rollback_candidate_versions(self, hotfix_rollback_candidate_versions) def hotfix_upgrade_infos(self): """Gets the hotfix_upgrade_infos of this ShowUpgradeCandidateVersionsResponse. + 可以升级的热补丁信息。 + :return: The hotfix_upgrade_infos of this ShowUpgradeCandidateVersionsResponse. - :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixUpgradeInfos` + :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixUpgradeInfos`] """ return self._hotfix_upgrade_infos @@ -290,8 +292,10 @@ def hotfix_upgrade_infos(self): def hotfix_upgrade_infos(self, hotfix_upgrade_infos): """Sets the hotfix_upgrade_infos of this ShowUpgradeCandidateVersionsResponse. + 可以升级的热补丁信息。 + :param hotfix_upgrade_infos: The hotfix_upgrade_infos of this ShowUpgradeCandidateVersionsResponse. - :type hotfix_upgrade_infos: :class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixUpgradeInfos` + :type hotfix_upgrade_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixUpgradeInfos`] """ self._hotfix_upgrade_infos = hotfix_upgrade_infos @@ -299,8 +303,10 @@ def hotfix_upgrade_infos(self, hotfix_upgrade_infos): def hotfix_rollback_infos(self): """Gets the hotfix_rollback_infos of this ShowUpgradeCandidateVersionsResponse. + 可以回滚的热补丁信息。 + :return: The hotfix_rollback_infos of this ShowUpgradeCandidateVersionsResponse. - :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixRollbackInfos` + :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixRollbackInfos`] """ return self._hotfix_rollback_infos @@ -308,8 +314,10 @@ def hotfix_rollback_infos(self): def hotfix_rollback_infos(self, hotfix_rollback_infos): """Sets the hotfix_rollback_infos of this ShowUpgradeCandidateVersionsResponse. + 可以回滚的热补丁信息。 + :param hotfix_rollback_infos: The hotfix_rollback_infos of this ShowUpgradeCandidateVersionsResponse. - :type hotfix_rollback_infos: :class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixRollbackInfos` + :type hotfix_rollback_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixRollbackInfos`] """ self._hotfix_rollback_infos = hotfix_rollback_infos diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/sync_limit_data_request.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/sync_limit_data_request.py new file mode 100644 index 0000000000..0b6eec3dbb --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/sync_limit_data_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SyncLimitDataRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """SyncLimitDataRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID。 + :type instance_id: str + """ + + + + self._instance_id = None + self.discriminator = None + + self.instance_id = instance_id + + @property + def instance_id(self): + """Gets the instance_id of this SyncLimitDataRequest. + + 实例ID。 + + :return: The instance_id of this SyncLimitDataRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this SyncLimitDataRequest. + + 实例ID。 + + :param instance_id: The instance_id of this SyncLimitDataRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SyncLimitDataRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/sync_limit_data_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/sync_limit_data_response.py new file mode 100644 index 0000000000..98b86a3616 --- /dev/null +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/sync_limit_data_response.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SyncLimitDataResponse(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 = { + 'result': 'str', + 'instance_id': 'str', + 'node_id': 'str', + 'total_count': 'int' + } + + attribute_map = { + 'result': 'result', + 'instance_id': 'instance_id', + 'node_id': 'node_id', + 'total_count': 'total_count' + } + + def __init__(self, result=None, instance_id=None, node_id=None, total_count=None): + """SyncLimitDataResponse + + The model defined in huaweicloud sdk + + :param result: 同步结果,success成功,fail失败 + :type result: str + :param instance_id: 同步数据的实例ID + :type instance_id: str + :param node_id: 同步数据的节点ID,集中式表示主节点ID,分布式表示CN节点ID + :type node_id: str + :param total_count: 同步的数据记录总数 + :type total_count: int + """ + + super(SyncLimitDataResponse, self).__init__() + + self._result = None + self._instance_id = None + self._node_id = None + self._total_count = None + self.discriminator = None + + if result is not None: + self.result = result + if instance_id is not None: + self.instance_id = instance_id + if node_id is not None: + self.node_id = node_id + if total_count is not None: + self.total_count = total_count + + @property + def result(self): + """Gets the result of this SyncLimitDataResponse. + + 同步结果,success成功,fail失败 + + :return: The result of this SyncLimitDataResponse. + :rtype: str + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this SyncLimitDataResponse. + + 同步结果,success成功,fail失败 + + :param result: The result of this SyncLimitDataResponse. + :type result: str + """ + self._result = result + + @property + def instance_id(self): + """Gets the instance_id of this SyncLimitDataResponse. + + 同步数据的实例ID + + :return: The instance_id of this SyncLimitDataResponse. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this SyncLimitDataResponse. + + 同步数据的实例ID + + :param instance_id: The instance_id of this SyncLimitDataResponse. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def node_id(self): + """Gets the node_id of this SyncLimitDataResponse. + + 同步数据的节点ID,集中式表示主节点ID,分布式表示CN节点ID + + :return: The node_id of this SyncLimitDataResponse. + :rtype: str + """ + return self._node_id + + @node_id.setter + def node_id(self, node_id): + """Sets the node_id of this SyncLimitDataResponse. + + 同步数据的节点ID,集中式表示主节点ID,分布式表示CN节点ID + + :param node_id: The node_id of this SyncLimitDataResponse. + :type node_id: str + """ + self._node_id = node_id + + @property + def total_count(self): + """Gets the total_count of this SyncLimitDataResponse. + + 同步的数据记录总数 + + :return: The total_count of this SyncLimitDataResponse. + :rtype: int + """ + return self._total_count + + @total_count.setter + def total_count(self, total_count): + """Sets the total_count of this SyncLimitDataResponse. + + 同步的数据记录总数 + + :param total_count: The total_count of this SyncLimitDataResponse. + :type total_count: int + """ + self._total_count = total_count + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SyncLimitDataResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbforopengauss/requirements.txt b/huaweicloud-sdk-gaussdbforopengauss/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/requirements.txt +++ b/huaweicloud-sdk-gaussdbforopengauss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdbforopengauss/setup.py b/huaweicloud-sdk-gaussdbforopengauss/setup.py index 7006f6e50a..c1f050ca50 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/setup.py +++ b/huaweicloud-sdk-gaussdbforopengauss/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkgaussdbforopengauss" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-geip/requirements.txt b/huaweicloud-sdk-geip/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-geip/requirements.txt +++ b/huaweicloud-sdk-geip/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-geip/setup.py b/huaweicloud-sdk-geip/setup.py index 141c5583d1..86a020ead1 100644 --- a/huaweicloud-sdk-geip/setup.py +++ b/huaweicloud-sdk-geip/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkgeip" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ges/requirements.txt b/huaweicloud-sdk-ges/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-ges/requirements.txt +++ b/huaweicloud-sdk-ges/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-ges/setup.py b/huaweicloud-sdk-ges/setup.py index 2ac1316e86..b5f466ba98 100644 --- a/huaweicloud-sdk-ges/setup.py +++ b/huaweicloud-sdk-ges/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkges" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gsl/requirements.txt b/huaweicloud-sdk-gsl/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-gsl/requirements.txt +++ b/huaweicloud-sdk-gsl/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-gsl/setup.py b/huaweicloud-sdk-gsl/setup.py index 74f64f09b7..8f01b6d6b7 100644 --- a/huaweicloud-sdk-gsl/setup.py +++ b/huaweicloud-sdk-gsl/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkgsl" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-hilens/requirements.txt b/huaweicloud-sdk-hilens/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-hilens/requirements.txt +++ b/huaweicloud-sdk-hilens/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-hilens/setup.py b/huaweicloud-sdk-hilens/setup.py index a1da737abf..d7c0827619 100644 --- a/huaweicloud-sdk-hilens/setup.py +++ b/huaweicloud-sdk-hilens/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkhilens" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-hss/requirements.txt b/huaweicloud-sdk-hss/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-hss/requirements.txt +++ b/huaweicloud-sdk-hss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-hss/setup.py b/huaweicloud-sdk-hss/setup.py index 101441783f..8fceaccb43 100644 --- a/huaweicloud-sdk-hss/setup.py +++ b/huaweicloud-sdk-hss/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkhss" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iam/requirements.txt b/huaweicloud-sdk-iam/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-iam/requirements.txt +++ b/huaweicloud-sdk-iam/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-iam/setup.py b/huaweicloud-sdk-iam/setup.py index fe538c3509..8816682156 100644 --- a/huaweicloud-sdk-iam/setup.py +++ b/huaweicloud-sdk-iam/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiam" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iamaccessanalyzer/requirements.txt b/huaweicloud-sdk-iamaccessanalyzer/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-iamaccessanalyzer/requirements.txt +++ b/huaweicloud-sdk-iamaccessanalyzer/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-iamaccessanalyzer/setup.py b/huaweicloud-sdk-iamaccessanalyzer/setup.py index 45bad7a98d..18755c2a40 100644 --- a/huaweicloud-sdk-iamaccessanalyzer/setup.py +++ b/huaweicloud-sdk-iamaccessanalyzer/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiamaccessanalyzer" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-identitycenter/requirements.txt b/huaweicloud-sdk-identitycenter/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-identitycenter/requirements.txt +++ b/huaweicloud-sdk-identitycenter/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-identitycenter/setup.py b/huaweicloud-sdk-identitycenter/setup.py index b477a116eb..af0a32e8e4 100644 --- a/huaweicloud-sdk-identitycenter/setup.py +++ b/huaweicloud-sdk-identitycenter/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkidentitycenter" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-identitycenterstore/requirements.txt b/huaweicloud-sdk-identitycenterstore/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-identitycenterstore/requirements.txt +++ b/huaweicloud-sdk-identitycenterstore/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-identitycenterstore/setup.py b/huaweicloud-sdk-identitycenterstore/setup.py index ad44663a12..0256a97069 100644 --- a/huaweicloud-sdk-identitycenterstore/setup.py +++ b/huaweicloud-sdk-identitycenterstore/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkidentitycenterstore" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-idme/requirements.txt b/huaweicloud-sdk-idme/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-idme/requirements.txt +++ b/huaweicloud-sdk-idme/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-idme/setup.py b/huaweicloud-sdk-idme/setup.py index 42a1ad3284..7a811479e1 100644 --- a/huaweicloud-sdk-idme/setup.py +++ b/huaweicloud-sdk-idme/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkidme" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-idmeclassicapi/requirements.txt b/huaweicloud-sdk-idmeclassicapi/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-idmeclassicapi/requirements.txt +++ b/huaweicloud-sdk-idmeclassicapi/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-idmeclassicapi/setup.py b/huaweicloud-sdk-idmeclassicapi/setup.py index 465cacf97f..b7219d9ed5 100644 --- a/huaweicloud-sdk-idmeclassicapi/setup.py +++ b/huaweicloud-sdk-idmeclassicapi/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkidmeclassicapi" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iec/requirements.txt b/huaweicloud-sdk-iec/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-iec/requirements.txt +++ b/huaweicloud-sdk-iec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-iec/setup.py b/huaweicloud-sdk-iec/setup.py index c394506b2a..adba168e50 100644 --- a/huaweicloud-sdk-iec/setup.py +++ b/huaweicloud-sdk-iec/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiec" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ief/requirements.txt b/huaweicloud-sdk-ief/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-ief/requirements.txt +++ b/huaweicloud-sdk-ief/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-ief/setup.py b/huaweicloud-sdk-ief/setup.py index b10481bd11..77744ef06c 100644 --- a/huaweicloud-sdk-ief/setup.py +++ b/huaweicloud-sdk-ief/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkief" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-image/requirements.txt b/huaweicloud-sdk-image/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-image/requirements.txt +++ b/huaweicloud-sdk-image/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-image/setup.py b/huaweicloud-sdk-image/setup.py index 74019222cc..029dbe368a 100644 --- a/huaweicloud-sdk-image/setup.py +++ b/huaweicloud-sdk-image/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkimage" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-imagesearch/requirements.txt b/huaweicloud-sdk-imagesearch/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-imagesearch/requirements.txt +++ b/huaweicloud-sdk-imagesearch/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-imagesearch/setup.py b/huaweicloud-sdk-imagesearch/setup.py index 0bdb25b668..d5a3d923a5 100644 --- a/huaweicloud-sdk-imagesearch/setup.py +++ b/huaweicloud-sdk-imagesearch/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkimagesearch" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/create_image_request_body.py b/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/create_image_request_body.py index 3ddeff820a..dbd42c61aa 100644 --- a/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/create_image_request_body.py +++ b/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/create_image_request_body.py @@ -131,8 +131,7 @@ def __init__(self, data_images=None, description=None, enterprise_project_id=Non self.enterprise_project_id = enterprise_project_id if image_tags is not None: self.image_tags = image_tags - if instance_id is not None: - self.instance_id = instance_id + self.instance_id = instance_id self.name = name if tags is not None: self.tags = tags diff --git a/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/create_whole_image_request_body.py b/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/create_whole_image_request_body.py index 293fff1550..6266322cb3 100644 --- a/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/create_whole_image_request_body.py +++ b/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/create_whole_image_request_body.py @@ -94,8 +94,7 @@ def __init__(self, description=None, enterprise_project_id=None, image_tags=None self.enterprise_project_id = enterprise_project_id if image_tags is not None: self.image_tags = image_tags - if instance_id is not None: - self.instance_id = instance_id + self.instance_id = instance_id self.name = name if tags is not None: self.tags = tags diff --git a/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/quick_import_image_by_file_request_body.py b/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/quick_import_image_by_file_request_body.py index fac7f86298..4698320adc 100644 --- a/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/quick_import_image_by_file_request_body.py +++ b/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/quick_import_image_by_file_request_body.py @@ -22,6 +22,7 @@ class QuickImportImageByFileRequestBody: 'os_version': 'str', 'image_url': 'str', 'min_disk': 'int', + 'license_type': 'str', 'tags': 'list[str]', 'type': 'str', 'enterprise_project_id': 'str', @@ -36,6 +37,7 @@ class QuickImportImageByFileRequestBody: 'os_version': 'os_version', 'image_url': 'image_url', 'min_disk': 'min_disk', + 'license_type': 'license_type', 'tags': 'tags', 'type': 'type', 'enterprise_project_id': 'enterprise_project_id', @@ -44,7 +46,7 @@ class QuickImportImageByFileRequestBody: 'image_tags': 'image_tags' } - def __init__(self, name=None, description=None, os_version=None, image_url=None, min_disk=None, tags=None, type=None, enterprise_project_id=None, architecture=None, os_type=None, image_tags=None): + def __init__(self, name=None, description=None, os_version=None, image_url=None, min_disk=None, license_type=None, tags=None, type=None, enterprise_project_id=None, architecture=None, os_type=None, image_tags=None): """QuickImportImageByFileRequestBody The model defined in huaweicloud sdk @@ -59,6 +61,8 @@ def __init__(self, name=None, description=None, os_version=None, image_url=None, :type image_url: str :param min_disk: 最小系统盘大小。在使用OBS桶的外部镜像文件制作镜像时生效且为必选字段。取值为1至1024GB。 :type min_disk: int + :param license_type: 操作系统使用的许可证类型。取值范围: platform:华为云官方许可证 byol:自带许可证(Bring Your Own License) 目前仅Windows操作系统支持设置该参数。 + :type license_type: str :param tags: 镜像标签列表。默认为空。 tags和image_tags只能使用一个。 :type tags: list[str] :param type: 制作的镜像类型。系统盘镜像为ECS/BMS,数据盘镜像为DataImage. 制作数据盘镜像时该参数必选. @@ -80,6 +84,7 @@ def __init__(self, name=None, description=None, os_version=None, image_url=None, self._os_version = None self._image_url = None self._min_disk = None + self._license_type = None self._tags = None self._type = None self._enterprise_project_id = None @@ -94,6 +99,8 @@ def __init__(self, name=None, description=None, os_version=None, image_url=None, self.os_version = os_version self.image_url = image_url self.min_disk = min_disk + if license_type is not None: + self.license_type = license_type if tags is not None: self.tags = tags if type is not None: @@ -217,6 +224,28 @@ def min_disk(self, min_disk): """ self._min_disk = min_disk + @property + def license_type(self): + """Gets the license_type of this QuickImportImageByFileRequestBody. + + 操作系统使用的许可证类型。取值范围: platform:华为云官方许可证 byol:自带许可证(Bring Your Own License) 目前仅Windows操作系统支持设置该参数。 + + :return: The license_type of this QuickImportImageByFileRequestBody. + :rtype: str + """ + return self._license_type + + @license_type.setter + def license_type(self, license_type): + """Sets the license_type of this QuickImportImageByFileRequestBody. + + 操作系统使用的许可证类型。取值范围: platform:华为云官方许可证 byol:自带许可证(Bring Your Own License) 目前仅Windows操作系统支持设置该参数。 + + :param license_type: The license_type of this QuickImportImageByFileRequestBody. + :type license_type: str + """ + self._license_type = license_type + @property def tags(self): """Gets the tags of this QuickImportImageByFileRequestBody. diff --git a/huaweicloud-sdk-ims/requirements.txt b/huaweicloud-sdk-ims/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-ims/requirements.txt +++ b/huaweicloud-sdk-ims/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-ims/setup.py b/huaweicloud-sdk-ims/setup.py index f18697c91f..02c7093d41 100644 --- a/huaweicloud-sdk-ims/setup.py +++ b/huaweicloud-sdk-ims/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkims" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotanalytics/requirements.txt b/huaweicloud-sdk-iotanalytics/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-iotanalytics/requirements.txt +++ b/huaweicloud-sdk-iotanalytics/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-iotanalytics/setup.py b/huaweicloud-sdk-iotanalytics/setup.py index a56ba312ef..97aacc3288 100644 --- a/huaweicloud-sdk-iotanalytics/setup.py +++ b/huaweicloud-sdk-iotanalytics/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiotanalytics" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotda/requirements.txt b/huaweicloud-sdk-iotda/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-iotda/requirements.txt +++ b/huaweicloud-sdk-iotda/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-iotda/setup.py b/huaweicloud-sdk-iotda/setup.py index e425c0eb4c..c9d7a48277 100644 --- a/huaweicloud-sdk-iotda/setup.py +++ b/huaweicloud-sdk-iotda/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiotda" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotdm/requirements.txt b/huaweicloud-sdk-iotdm/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-iotdm/requirements.txt +++ b/huaweicloud-sdk-iotdm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-iotdm/setup.py b/huaweicloud-sdk-iotdm/setup.py index eb153cc1e9..479fff62aa 100644 --- a/huaweicloud-sdk-iotdm/setup.py +++ b/huaweicloud-sdk-iotdm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiotdm" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/__init__.py b/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/__init__.py index e7134f22fb..7f40dc7bb4 100644 --- a/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/__init__.py +++ b/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/__init__.py @@ -7,6 +7,7 @@ from huaweicloudsdkiotedge.v2.model.access_roma_brief_info import AccessRomaBriefInfo from huaweicloudsdkiotedge.v2.model.access_roma_info import AccessRomaInfo +from huaweicloudsdkiotedge.v2.model.active_control_rsp_dto import ActiveControlRspDTO from huaweicloudsdkiotedge.v2.model.active_standby_config_dto import ActiveStandbyConfigDTO from huaweicloudsdkiotedge.v2.model.add_app_configs_templates_request import AddAppConfigsTemplatesRequest from huaweicloudsdkiotedge.v2.model.add_app_configs_templates_response import AddAppConfigsTemplatesResponse @@ -155,6 +156,8 @@ from huaweicloudsdkiotedge.v2.model.list_na_authorized_nodes_response import ListNaAuthorizedNodesResponse from huaweicloudsdkiotedge.v2.model.list_nas_request import ListNasRequest from huaweicloudsdkiotedge.v2.model.list_nas_response import ListNasResponse +from huaweicloudsdkiotedge.v2.model.list_property_active_controls_request import ListPropertyActiveControlsRequest +from huaweicloudsdkiotedge.v2.model.list_property_active_controls_response import ListPropertyActiveControlsResponse from huaweicloudsdkiotedge.v2.model.list_routes_request import ListRoutesRequest from huaweicloudsdkiotedge.v2.model.list_routes_response import ListRoutesResponse from huaweicloudsdkiotedge.v2.model.log_config_dto import LogConfigDTO diff --git a/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/iotedge_async_client.py b/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/iotedge_async_client.py index eb12f4e24f..19b4d644f7 100644 --- a/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/iotedge_async_client.py +++ b/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/iotedge_async_client.py @@ -648,6 +648,77 @@ def _execute_device_controls_set_http_info(self, request): return http_info + def list_property_active_controls_async(self, request): + """获取属性执行中的控制 + + 获取属性执行中的控制 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListPropertyActiveControls + :type request: :class:`huaweicloudsdkiotedge.v2.ListPropertyActiveControlsRequest` + :rtype: :class:`huaweicloudsdkiotedge.v2.ListPropertyActiveControlsResponse` + """ + http_info = self._list_property_active_controls_http_info(request) + return self._call_api(**http_info) + + def list_property_active_controls_async_invoker(self, request): + http_info = self._list_property_active_controls_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_property_active_controls_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/edge-nodes/{edge_node_id}/devices/{device_id}/active-controls", + "request_type": request.__class__.__name__, + "response_type": "ListPropertyActiveControlsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'edge_node_id' in local_var_params: + path_params['edge_node_id'] = local_var_params['edge_node_id'] + if 'device_id' in local_var_params: + path_params['device_id'] = local_var_params['device_id'] + + query_params = [] + if 'service_id' in local_var_params: + query_params.append(('service_id', local_var_params['service_id'])) + if '_property' in local_var_params: + query_params.append(('property', local_var_params['_property'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def set_device_control_default_values_async(self, request): """设备控制默认值 diff --git a/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/iotedge_client.py b/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/iotedge_client.py index ca34141b42..d997f58222 100644 --- a/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/iotedge_client.py +++ b/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/iotedge_client.py @@ -648,6 +648,77 @@ def _execute_device_controls_set_http_info(cls, request): return http_info + def list_property_active_controls(self, request): + """获取属性执行中的控制 + + 获取属性执行中的控制 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListPropertyActiveControls + :type request: :class:`huaweicloudsdkiotedge.v2.ListPropertyActiveControlsRequest` + :rtype: :class:`huaweicloudsdkiotedge.v2.ListPropertyActiveControlsResponse` + """ + http_info = self._list_property_active_controls_http_info(request) + return self._call_api(**http_info) + + def list_property_active_controls_invoker(self, request): + http_info = self._list_property_active_controls_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_property_active_controls_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/edge-nodes/{edge_node_id}/devices/{device_id}/active-controls", + "request_type": request.__class__.__name__, + "response_type": "ListPropertyActiveControlsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'edge_node_id' in local_var_params: + path_params['edge_node_id'] = local_var_params['edge_node_id'] + if 'device_id' in local_var_params: + path_params['device_id'] = local_var_params['device_id'] + + query_params = [] + if 'service_id' in local_var_params: + query_params.append(('service_id', local_var_params['service_id'])) + if '_property' in local_var_params: + query_params.append(('property', local_var_params['_property'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def set_device_control_default_values(self, request): """设备控制默认值 diff --git a/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/model/__init__.py b/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/model/__init__.py index 93be824967..3c2b7d8357 100644 --- a/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/model/__init__.py +++ b/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/model/__init__.py @@ -5,6 +5,7 @@ # import models into model package from huaweicloudsdkiotedge.v2.model.access_roma_brief_info import AccessRomaBriefInfo from huaweicloudsdkiotedge.v2.model.access_roma_info import AccessRomaInfo +from huaweicloudsdkiotedge.v2.model.active_control_rsp_dto import ActiveControlRspDTO from huaweicloudsdkiotedge.v2.model.active_standby_config_dto import ActiveStandbyConfigDTO from huaweicloudsdkiotedge.v2.model.add_app_configs_templates_request import AddAppConfigsTemplatesRequest from huaweicloudsdkiotedge.v2.model.add_app_configs_templates_response import AddAppConfigsTemplatesResponse @@ -153,6 +154,8 @@ from huaweicloudsdkiotedge.v2.model.list_na_authorized_nodes_response import ListNaAuthorizedNodesResponse from huaweicloudsdkiotedge.v2.model.list_nas_request import ListNasRequest from huaweicloudsdkiotedge.v2.model.list_nas_response import ListNasResponse +from huaweicloudsdkiotedge.v2.model.list_property_active_controls_request import ListPropertyActiveControlsRequest +from huaweicloudsdkiotedge.v2.model.list_property_active_controls_response import ListPropertyActiveControlsResponse from huaweicloudsdkiotedge.v2.model.list_routes_request import ListRoutesRequest from huaweicloudsdkiotedge.v2.model.list_routes_response import ListRoutesResponse from huaweicloudsdkiotedge.v2.model.log_config_dto import LogConfigDTO diff --git a/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/model/active_control_rsp_dto.py b/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/model/active_control_rsp_dto.py new file mode 100644 index 0000000000..6709217c7e --- /dev/null +++ b/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/model/active_control_rsp_dto.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ActiveControlRspDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'control_type': 'str', + 'control_id': 'str', + 'priority': 'int', + 'value': 'object', + 'end_time': 'int', + 'create_time': 'int' + } + + attribute_map = { + 'control_type': 'control_type', + 'control_id': 'control_id', + 'priority': 'priority', + 'value': 'value', + 'end_time': 'end_time', + 'create_time': 'create_time' + } + + def __init__(self, control_type=None, control_id=None, priority=None, value=None, end_time=None, create_time=None): + """ActiveControlRspDTO + + The model defined in huaweicloud sdk + + :param control_type: 控制类型,包括control、schedule、local_control + :type control_type: str + :param control_id: 控制id + :type control_id: str + :param priority: 控制的优先级 + :type priority: int + :param value: 此次控制的值 + :type value: object + :param end_time: 控制的结束时间 + :type end_time: int + :param create_time: 记录创建的时间 + :type create_time: int + """ + + + + self._control_type = None + self._control_id = None + self._priority = None + self._value = None + self._end_time = None + self._create_time = None + self.discriminator = None + + if control_type is not None: + self.control_type = control_type + if control_id is not None: + self.control_id = control_id + if priority is not None: + self.priority = priority + if value is not None: + self.value = value + if end_time is not None: + self.end_time = end_time + if create_time is not None: + self.create_time = create_time + + @property + def control_type(self): + """Gets the control_type of this ActiveControlRspDTO. + + 控制类型,包括control、schedule、local_control + + :return: The control_type of this ActiveControlRspDTO. + :rtype: str + """ + return self._control_type + + @control_type.setter + def control_type(self, control_type): + """Sets the control_type of this ActiveControlRspDTO. + + 控制类型,包括control、schedule、local_control + + :param control_type: The control_type of this ActiveControlRspDTO. + :type control_type: str + """ + self._control_type = control_type + + @property + def control_id(self): + """Gets the control_id of this ActiveControlRspDTO. + + 控制id + + :return: The control_id of this ActiveControlRspDTO. + :rtype: str + """ + return self._control_id + + @control_id.setter + def control_id(self, control_id): + """Sets the control_id of this ActiveControlRspDTO. + + 控制id + + :param control_id: The control_id of this ActiveControlRspDTO. + :type control_id: str + """ + self._control_id = control_id + + @property + def priority(self): + """Gets the priority of this ActiveControlRspDTO. + + 控制的优先级 + + :return: The priority of this ActiveControlRspDTO. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this ActiveControlRspDTO. + + 控制的优先级 + + :param priority: The priority of this ActiveControlRspDTO. + :type priority: int + """ + self._priority = priority + + @property + def value(self): + """Gets the value of this ActiveControlRspDTO. + + 此次控制的值 + + :return: The value of this ActiveControlRspDTO. + :rtype: object + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this ActiveControlRspDTO. + + 此次控制的值 + + :param value: The value of this ActiveControlRspDTO. + :type value: object + """ + self._value = value + + @property + def end_time(self): + """Gets the end_time of this ActiveControlRspDTO. + + 控制的结束时间 + + :return: The end_time of this ActiveControlRspDTO. + :rtype: int + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ActiveControlRspDTO. + + 控制的结束时间 + + :param end_time: The end_time of this ActiveControlRspDTO. + :type end_time: int + """ + self._end_time = end_time + + @property + def create_time(self): + """Gets the create_time of this ActiveControlRspDTO. + + 记录创建的时间 + + :return: The create_time of this ActiveControlRspDTO. + :rtype: int + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ActiveControlRspDTO. + + 记录创建的时间 + + :param create_time: The create_time of this ActiveControlRspDTO. + :type create_time: int + """ + self._create_time = create_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ActiveControlRspDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/model/list_property_active_controls_request.py b/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/model/list_property_active_controls_request.py new file mode 100644 index 0000000000..98beb2d900 --- /dev/null +++ b/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/model/list_property_active_controls_request.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListPropertyActiveControlsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'edge_node_id': 'str', + 'device_id': 'str', + 'service_id': 'str', + '_property': 'str' + } + + attribute_map = { + 'edge_node_id': 'edge_node_id', + 'device_id': 'device_id', + 'service_id': 'service_id', + '_property': 'property' + } + + def __init__(self, edge_node_id=None, device_id=None, service_id=None, _property=None): + """ListPropertyActiveControlsRequest + + The model defined in huaweicloud sdk + + :param edge_node_id: 边缘节点ID + :type edge_node_id: str + :param device_id: 设备ID + :type device_id: str + :param service_id: 设备服务id。可选,在属性平铺场景不需要填,如果不填则表示service_id为空字符串 + :type service_id: str + :param _property: 设备属性。必选 + :type _property: str + """ + + + + self._edge_node_id = None + self._device_id = None + self._service_id = None + self.__property = None + self.discriminator = None + + self.edge_node_id = edge_node_id + self.device_id = device_id + if service_id is not None: + self.service_id = service_id + self._property = _property + + @property + def edge_node_id(self): + """Gets the edge_node_id of this ListPropertyActiveControlsRequest. + + 边缘节点ID + + :return: The edge_node_id of this ListPropertyActiveControlsRequest. + :rtype: str + """ + return self._edge_node_id + + @edge_node_id.setter + def edge_node_id(self, edge_node_id): + """Sets the edge_node_id of this ListPropertyActiveControlsRequest. + + 边缘节点ID + + :param edge_node_id: The edge_node_id of this ListPropertyActiveControlsRequest. + :type edge_node_id: str + """ + self._edge_node_id = edge_node_id + + @property + def device_id(self): + """Gets the device_id of this ListPropertyActiveControlsRequest. + + 设备ID + + :return: The device_id of this ListPropertyActiveControlsRequest. + :rtype: str + """ + return self._device_id + + @device_id.setter + def device_id(self, device_id): + """Sets the device_id of this ListPropertyActiveControlsRequest. + + 设备ID + + :param device_id: The device_id of this ListPropertyActiveControlsRequest. + :type device_id: str + """ + self._device_id = device_id + + @property + def service_id(self): + """Gets the service_id of this ListPropertyActiveControlsRequest. + + 设备服务id。可选,在属性平铺场景不需要填,如果不填则表示service_id为空字符串 + + :return: The service_id of this ListPropertyActiveControlsRequest. + :rtype: str + """ + return self._service_id + + @service_id.setter + def service_id(self, service_id): + """Sets the service_id of this ListPropertyActiveControlsRequest. + + 设备服务id。可选,在属性平铺场景不需要填,如果不填则表示service_id为空字符串 + + :param service_id: The service_id of this ListPropertyActiveControlsRequest. + :type service_id: str + """ + self._service_id = service_id + + @property + def _property(self): + """Gets the _property of this ListPropertyActiveControlsRequest. + + 设备属性。必选 + + :return: The _property of this ListPropertyActiveControlsRequest. + :rtype: str + """ + return self.__property + + @_property.setter + def _property(self, _property): + """Sets the _property of this ListPropertyActiveControlsRequest. + + 设备属性。必选 + + :param _property: The _property of this ListPropertyActiveControlsRequest. + :type _property: str + """ + self.__property = _property + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListPropertyActiveControlsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/model/list_property_active_controls_response.py b/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/model/list_property_active_controls_response.py new file mode 100644 index 0000000000..6863d3ff4f --- /dev/null +++ b/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/model/list_property_active_controls_response.py @@ -0,0 +1,261 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListPropertyActiveControlsResponse(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 = { + 'device_id': 'str', + 'service_id': 'str', + '_property': 'str', + 'active_controls': 'list[ActiveControlRspDTO]', + 'result_code': 'int', + 'result_desc': 'str' + } + + attribute_map = { + 'device_id': 'device_id', + 'service_id': 'service_id', + '_property': 'property', + 'active_controls': 'active_controls', + 'result_code': 'result_code', + 'result_desc': 'result_desc' + } + + def __init__(self, device_id=None, service_id=None, _property=None, active_controls=None, result_code=None, result_desc=None): + """ListPropertyActiveControlsResponse + + The model defined in huaweicloud sdk + + :param device_id: 设备id + :type device_id: str + :param service_id: 设备的服务id + :type service_id: str + :param _property: 设备的属性 + :type _property: str + :param active_controls: 正在执行中的控制列表 + :type active_controls: list[:class:`huaweicloudsdkiotedge.v2.ActiveControlRspDTO`] + :param result_code: 结果响应码,大于等于400表示失败,小于400表示成功 + :type result_code: int + :param result_desc: 结果描述 + :type result_desc: str + """ + + super(ListPropertyActiveControlsResponse, self).__init__() + + self._device_id = None + self._service_id = None + self.__property = None + self._active_controls = None + self._result_code = None + self._result_desc = None + self.discriminator = None + + if device_id is not None: + self.device_id = device_id + if service_id is not None: + self.service_id = service_id + if _property is not None: + self._property = _property + if active_controls is not None: + self.active_controls = active_controls + if result_code is not None: + self.result_code = result_code + if result_desc is not None: + self.result_desc = result_desc + + @property + def device_id(self): + """Gets the device_id of this ListPropertyActiveControlsResponse. + + 设备id + + :return: The device_id of this ListPropertyActiveControlsResponse. + :rtype: str + """ + return self._device_id + + @device_id.setter + def device_id(self, device_id): + """Sets the device_id of this ListPropertyActiveControlsResponse. + + 设备id + + :param device_id: The device_id of this ListPropertyActiveControlsResponse. + :type device_id: str + """ + self._device_id = device_id + + @property + def service_id(self): + """Gets the service_id of this ListPropertyActiveControlsResponse. + + 设备的服务id + + :return: The service_id of this ListPropertyActiveControlsResponse. + :rtype: str + """ + return self._service_id + + @service_id.setter + def service_id(self, service_id): + """Sets the service_id of this ListPropertyActiveControlsResponse. + + 设备的服务id + + :param service_id: The service_id of this ListPropertyActiveControlsResponse. + :type service_id: str + """ + self._service_id = service_id + + @property + def _property(self): + """Gets the _property of this ListPropertyActiveControlsResponse. + + 设备的属性 + + :return: The _property of this ListPropertyActiveControlsResponse. + :rtype: str + """ + return self.__property + + @_property.setter + def _property(self, _property): + """Sets the _property of this ListPropertyActiveControlsResponse. + + 设备的属性 + + :param _property: The _property of this ListPropertyActiveControlsResponse. + :type _property: str + """ + self.__property = _property + + @property + def active_controls(self): + """Gets the active_controls of this ListPropertyActiveControlsResponse. + + 正在执行中的控制列表 + + :return: The active_controls of this ListPropertyActiveControlsResponse. + :rtype: list[:class:`huaweicloudsdkiotedge.v2.ActiveControlRspDTO`] + """ + return self._active_controls + + @active_controls.setter + def active_controls(self, active_controls): + """Sets the active_controls of this ListPropertyActiveControlsResponse. + + 正在执行中的控制列表 + + :param active_controls: The active_controls of this ListPropertyActiveControlsResponse. + :type active_controls: list[:class:`huaweicloudsdkiotedge.v2.ActiveControlRspDTO`] + """ + self._active_controls = active_controls + + @property + def result_code(self): + """Gets the result_code of this ListPropertyActiveControlsResponse. + + 结果响应码,大于等于400表示失败,小于400表示成功 + + :return: The result_code of this ListPropertyActiveControlsResponse. + :rtype: int + """ + return self._result_code + + @result_code.setter + def result_code(self, result_code): + """Sets the result_code of this ListPropertyActiveControlsResponse. + + 结果响应码,大于等于400表示失败,小于400表示成功 + + :param result_code: The result_code of this ListPropertyActiveControlsResponse. + :type result_code: int + """ + self._result_code = result_code + + @property + def result_desc(self): + """Gets the result_desc of this ListPropertyActiveControlsResponse. + + 结果描述 + + :return: The result_desc of this ListPropertyActiveControlsResponse. + :rtype: str + """ + return self._result_desc + + @result_desc.setter + def result_desc(self, result_desc): + """Sets the result_desc of this ListPropertyActiveControlsResponse. + + 结果描述 + + :param result_desc: The result_desc of this ListPropertyActiveControlsResponse. + :type result_desc: str + """ + self._result_desc = result_desc + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListPropertyActiveControlsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotedge/requirements.txt b/huaweicloud-sdk-iotedge/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-iotedge/requirements.txt +++ b/huaweicloud-sdk-iotedge/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-iotedge/setup.py b/huaweicloud-sdk-iotedge/setup.py index 2c0898b4b5..abd0733b68 100644 --- a/huaweicloud-sdk-iotedge/setup.py +++ b/huaweicloud-sdk-iotedge/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiotedge" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ivs/requirements.txt b/huaweicloud-sdk-ivs/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-ivs/requirements.txt +++ b/huaweicloud-sdk-ivs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-ivs/setup.py b/huaweicloud-sdk-ivs/setup.py index 780c76503a..1403a07b0f 100644 --- a/huaweicloud-sdk-ivs/setup.py +++ b/huaweicloud-sdk-ivs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkivs" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kafka/requirements.txt b/huaweicloud-sdk-kafka/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-kafka/requirements.txt +++ b/huaweicloud-sdk-kafka/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-kafka/setup.py b/huaweicloud-sdk-kafka/setup.py index be3fa28d4c..17a115ad58 100644 --- a/huaweicloud-sdk-kafka/setup.py +++ b/huaweicloud-sdk-kafka/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkkafka" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kms/requirements.txt b/huaweicloud-sdk-kms/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-kms/requirements.txt +++ b/huaweicloud-sdk-kms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-kms/setup.py b/huaweicloud-sdk-kms/setup.py index f6583ec332..529a1349a3 100644 --- a/huaweicloud-sdk-kms/setup.py +++ b/huaweicloud-sdk-kms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkkms" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-koomessage/requirements.txt b/huaweicloud-sdk-koomessage/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-koomessage/requirements.txt +++ b/huaweicloud-sdk-koomessage/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-koomessage/setup.py b/huaweicloud-sdk-koomessage/setup.py index 5e3eafe6c7..b5f2e8fbbe 100644 --- a/huaweicloud-sdk-koomessage/setup.py +++ b/huaweicloud-sdk-koomessage/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkkoomessage" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kps/requirements.txt b/huaweicloud-sdk-kps/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-kps/requirements.txt +++ b/huaweicloud-sdk-kps/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-kps/setup.py b/huaweicloud-sdk-kps/setup.py index 7a83a0be8a..bf42907dfc 100644 --- a/huaweicloud-sdk-kps/setup.py +++ b/huaweicloud-sdk-kps/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkkps" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-lakeformation/requirements.txt b/huaweicloud-sdk-lakeformation/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-lakeformation/requirements.txt +++ b/huaweicloud-sdk-lakeformation/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-lakeformation/setup.py b/huaweicloud-sdk-lakeformation/setup.py index 2c921959a6..16a07ec86f 100644 --- a/huaweicloud-sdk-lakeformation/setup.py +++ b/huaweicloud-sdk-lakeformation/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdklakeformation" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-live/requirements.txt b/huaweicloud-sdk-live/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-live/requirements.txt +++ b/huaweicloud-sdk-live/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-live/setup.py b/huaweicloud-sdk-live/setup.py index c58ec0d896..98f0031107 100644 --- a/huaweicloud-sdk-live/setup.py +++ b/huaweicloud-sdk-live/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdklive" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-lts/requirements.txt b/huaweicloud-sdk-lts/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-lts/requirements.txt +++ b/huaweicloud-sdk-lts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-lts/setup.py b/huaweicloud-sdk-lts/setup.py index d822458a2c..139ee2a1a0 100644 --- a/huaweicloud-sdk-lts/setup.py +++ b/huaweicloud-sdk-lts/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdklts" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mapds/requirements.txt b/huaweicloud-sdk-mapds/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-mapds/requirements.txt +++ b/huaweicloud-sdk-mapds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-mapds/setup.py b/huaweicloud-sdk-mapds/setup.py index 752ff88398..fa85ccdfa9 100644 --- a/huaweicloud-sdk-mapds/setup.py +++ b/huaweicloud-sdk-mapds/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmapds" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mas/requirements.txt b/huaweicloud-sdk-mas/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-mas/requirements.txt +++ b/huaweicloud-sdk-mas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-mas/setup.py b/huaweicloud-sdk-mas/setup.py index b5b442bcfd..89c4f14139 100644 --- a/huaweicloud-sdk-mas/setup.py +++ b/huaweicloud-sdk-mas/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmas" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mastudio/requirements.txt b/huaweicloud-sdk-mastudio/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-mastudio/requirements.txt +++ b/huaweicloud-sdk-mastudio/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-mastudio/setup.py b/huaweicloud-sdk-mastudio/setup.py index 0cbda99986..ea14dcb617 100644 --- a/huaweicloud-sdk-mastudio/setup.py +++ b/huaweicloud-sdk-mastudio/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmastudio" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-meeting/requirements.txt b/huaweicloud-sdk-meeting/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-meeting/requirements.txt +++ b/huaweicloud-sdk-meeting/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-meeting/setup.py b/huaweicloud-sdk-meeting/setup.py index 4e53dc23a7..bdb0389688 100644 --- a/huaweicloud-sdk-meeting/setup.py +++ b/huaweicloud-sdk-meeting/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmeeting" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-metastudio/requirements.txt b/huaweicloud-sdk-metastudio/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-metastudio/requirements.txt +++ b/huaweicloud-sdk-metastudio/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-metastudio/setup.py b/huaweicloud-sdk-metastudio/setup.py index 8cf1d4a081..ea508fc8c5 100644 --- a/huaweicloud-sdk-metastudio/setup.py +++ b/huaweicloud-sdk-metastudio/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmetastudio" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-moderation/requirements.txt b/huaweicloud-sdk-moderation/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-moderation/requirements.txt +++ b/huaweicloud-sdk-moderation/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-moderation/setup.py b/huaweicloud-sdk-moderation/setup.py index 70102a47b7..14ffda7a0d 100644 --- a/huaweicloud-sdk-moderation/setup.py +++ b/huaweicloud-sdk-moderation/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmoderation" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mpc/requirements.txt b/huaweicloud-sdk-mpc/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-mpc/requirements.txt +++ b/huaweicloud-sdk-mpc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-mpc/setup.py b/huaweicloud-sdk-mpc/setup.py index aac97327c9..105d36e8d2 100644 --- a/huaweicloud-sdk-mpc/setup.py +++ b/huaweicloud-sdk-mpc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmpc" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mrs/requirements.txt b/huaweicloud-sdk-mrs/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-mrs/requirements.txt +++ b/huaweicloud-sdk-mrs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-mrs/setup.py b/huaweicloud-sdk-mrs/setup.py index 33254c3fab..f17fbf21a3 100644 --- a/huaweicloud-sdk-mrs/setup.py +++ b/huaweicloud-sdk-mrs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmrs" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-msgsms/requirements.txt b/huaweicloud-sdk-msgsms/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-msgsms/requirements.txt +++ b/huaweicloud-sdk-msgsms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-msgsms/setup.py b/huaweicloud-sdk-msgsms/setup.py index 279639bc8a..43f9ca0ae5 100644 --- a/huaweicloud-sdk-msgsms/setup.py +++ b/huaweicloud-sdk-msgsms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmsgsms" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mssi/requirements.txt b/huaweicloud-sdk-mssi/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-mssi/requirements.txt +++ b/huaweicloud-sdk-mssi/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-mssi/setup.py b/huaweicloud-sdk-mssi/setup.py index 6e53ea1762..01ffac3b41 100644 --- a/huaweicloud-sdk-mssi/setup.py +++ b/huaweicloud-sdk-mssi/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmssi" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-nat/requirements.txt b/huaweicloud-sdk-nat/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-nat/requirements.txt +++ b/huaweicloud-sdk-nat/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-nat/setup.py b/huaweicloud-sdk-nat/setup.py index a6e503df6a..5fa86a17dd 100644 --- a/huaweicloud-sdk-nat/setup.py +++ b/huaweicloud-sdk-nat/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdknat" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-nlp/requirements.txt b/huaweicloud-sdk-nlp/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-nlp/requirements.txt +++ b/huaweicloud-sdk-nlp/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-nlp/setup.py b/huaweicloud-sdk-nlp/setup.py index 42d58e69b1..f2018dc6ed 100644 --- a/huaweicloud-sdk-nlp/setup.py +++ b/huaweicloud-sdk-nlp/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdknlp" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-obs/requirements.txt b/huaweicloud-sdk-obs/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-obs/requirements.txt +++ b/huaweicloud-sdk-obs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-obs/setup.py b/huaweicloud-sdk-obs/setup.py index 4fedb22c13..7bc21e63bf 100644 --- a/huaweicloud-sdk-obs/setup.py +++ b/huaweicloud-sdk-obs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkobs" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/auto_classification_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/auto_classification_request_body.py index 93da66245d..a03030aa83 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/auto_classification_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/auto_classification_request_body.py @@ -20,6 +20,7 @@ class AutoClassificationRequestBody: 'image': 'str', 'url': 'str', 'type_list': 'list[str]', + 'pdf_page_number': 'int', 'extended_parameters': 'object', 'detect_seal': 'bool' } @@ -28,21 +29,24 @@ class AutoClassificationRequestBody: 'image': 'image', 'url': 'url', 'type_list': 'type_list', + 'pdf_page_number': 'pdf_page_number', 'extended_parameters': 'extended_parameters', 'detect_seal': 'detect_seal' } - def __init__(self, image=None, url=None, type_list=None, extended_parameters=None, detect_seal=None): + def __init__(self, image=None, url=None, type_list=None, pdf_page_number=None, extended_parameters=None, detect_seal=None): """AutoClassificationRequestBody The model defined in huaweicloud sdk - :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8000px,支持JPEG、JPG、PNG、BMP、TIFF、PDF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF、PDF、OFD格式,OFD格式数据仅支持增值税发票服务。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :type image: str :param url: 与image二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 :type url: str :param type_list: 可以指定要识别的票证,指定后不出现在此List的票证不识别。不指定时默认返回所有支持类别票证的识别信息。 :type type_list: list[str] + :param pdf_page_number: 指定PDF页码识别。传入该参数时,则识别指定页码的内容。如果不传该参数,则默认识别第1页。 > 说明: - 如果需要指定PDF页码识别,请通过该参数传入页码。目前不支持通过extended_parameters参数指定票证PDF页码。 + :type pdf_page_number: int :param extended_parameters: 可指定需要识别票证的传入参数,具体参数可参考各票证API文档。若不指定则默认传入image 。 当前版本支持票证类型如下: - vat_invoice:增值税发票 - quota_invoice:定额发票 - taxi_invoice:出租车票 - train_ticket:火车票 - flight_itinerary:飞机行程单 - toll_invoice:车辆通行费发票 - mvs_invoice:机动车销售发票 - id_card:身份证 - passport:护照 - driver_license:驾驶证 - vehicle_license:行驶证 - transportation_license:道路运输证 - bankcard:银行卡 - bus_ship_ticket:车船票 - ride_hailing_itinerary:网约车行程单 - machine_printed_invoice:通用机打发票 > 说明: - 若指定票证参数填写错误会导致该票证识别错误,会提示\"AIS.0101\":\"The input parameter is invalid.\"报错。 :type extended_parameters: object :param detect_seal: 检测印章开关,开启时则返回单张票证是否含有印章,否则不返回是否含有印章。可选值包括: - true:开启检测票证是否含有印章功能。 - false:关闭检测票证是否含有印章功能。 > 说明: - 该功能仅检测判断有无印章,不返回印章具体内容。 @@ -54,6 +58,7 @@ def __init__(self, image=None, url=None, type_list=None, extended_parameters=Non self._image = None self._url = None self._type_list = None + self._pdf_page_number = None self._extended_parameters = None self._detect_seal = None self.discriminator = None @@ -64,6 +69,8 @@ def __init__(self, image=None, url=None, type_list=None, extended_parameters=Non self.url = url if type_list is not None: self.type_list = type_list + if pdf_page_number is not None: + self.pdf_page_number = pdf_page_number if extended_parameters is not None: self.extended_parameters = extended_parameters if detect_seal is not None: @@ -73,7 +80,7 @@ def __init__(self, image=None, url=None, type_list=None, extended_parameters=Non def image(self): """Gets the image of this AutoClassificationRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8000px,支持JPEG、JPG、PNG、BMP、TIFF、PDF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF、PDF、OFD格式,OFD格式数据仅支持增值税发票服务。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :return: The image of this AutoClassificationRequestBody. :rtype: str @@ -84,7 +91,7 @@ def image(self): def image(self, image): """Sets the image of this AutoClassificationRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8000px,支持JPEG、JPG、PNG、BMP、TIFF、PDF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF、PDF、OFD格式,OFD格式数据仅支持增值税发票服务。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :param image: The image of this AutoClassificationRequestBody. :type image: str @@ -135,6 +142,28 @@ def type_list(self, type_list): """ self._type_list = type_list + @property + def pdf_page_number(self): + """Gets the pdf_page_number of this AutoClassificationRequestBody. + + 指定PDF页码识别。传入该参数时,则识别指定页码的内容。如果不传该参数,则默认识别第1页。 > 说明: - 如果需要指定PDF页码识别,请通过该参数传入页码。目前不支持通过extended_parameters参数指定票证PDF页码。 + + :return: The pdf_page_number of this AutoClassificationRequestBody. + :rtype: int + """ + return self._pdf_page_number + + @pdf_page_number.setter + def pdf_page_number(self, pdf_page_number): + """Sets the pdf_page_number of this AutoClassificationRequestBody. + + 指定PDF页码识别。传入该参数时,则识别指定页码的内容。如果不传该参数,则默认识别第1页。 > 说明: - 如果需要指定PDF页码识别,请通过该参数传入页码。目前不支持通过extended_parameters参数指定票证PDF页码。 + + :param pdf_page_number: The pdf_page_number of this AutoClassificationRequestBody. + :type pdf_page_number: int + """ + self._pdf_page_number = pdf_page_number + @property def extended_parameters(self): """Gets the extended_parameters of this AutoClassificationRequestBody. diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/auto_classification_result.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/auto_classification_result.py index fb5051a1cb..ed0a9bb9b4 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/auto_classification_result.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/auto_classification_result.py @@ -43,7 +43,7 @@ def __init__(self, status=None, content=None, type=None, location=None, seal_mar :type content: object :param type: 对应票证的类别。 :type type: str - :param location: 文字块的区域位置信息,列表形式,包含文字区域四个顶点的二维坐标(x,y);坐标原点为图片左上角,x轴沿水平方向,y轴沿竖直方向。 + :param location: 票证的区域位置信息,列表形式,包含票证区域四个顶点的二维坐标(x,y);坐标原点为图片左上角,x轴沿水平方向,y轴沿竖直方向。 :type location: list[list[int]] :param seal_mark: 对应票证中是否含有印章。可选值包括: - true:该票证中含有印章。 - false:该票证中不含有印章。 :type seal_mark: bool @@ -131,7 +131,7 @@ def type(self, type): def location(self): """Gets the location of this AutoClassificationResult. - 文字块的区域位置信息,列表形式,包含文字区域四个顶点的二维坐标(x,y);坐标原点为图片左上角,x轴沿水平方向,y轴沿竖直方向。 + 票证的区域位置信息,列表形式,包含票证区域四个顶点的二维坐标(x,y);坐标原点为图片左上角,x轴沿水平方向,y轴沿竖直方向。 :return: The location of this AutoClassificationResult. :rtype: list[list[int]] @@ -142,7 +142,7 @@ def location(self): def location(self, location): """Sets the location of this AutoClassificationResult. - 文字块的区域位置信息,列表形式,包含文字区域四个顶点的二维坐标(x,y);坐标原点为图片左上角,x轴沿水平方向,y轴沿竖直方向。 + 票证的区域位置信息,列表形式,包含票证区域四个顶点的二维坐标(x,y);坐标原点为图片左上角,x轴沿水平方向,y轴沿竖直方向。 :param location: The location of this AutoClassificationResult. :type location: list[list[int]] diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/smart_document_recognizer_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/smart_document_recognizer_request_body.py index e589a22b4c..3287d16599 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/smart_document_recognizer_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/smart_document_recognizer_request_body.py @@ -28,6 +28,7 @@ class SmartDocumentRecognizerRequestBody: 'form': 'bool', 'formula': 'bool', 'kv_map': 'str', + 'erase_seal': 'bool', 'pdf_page_number': 'int' } @@ -43,10 +44,11 @@ class SmartDocumentRecognizerRequestBody: 'form': 'form', 'formula': 'formula', 'kv_map': 'kv_map', + 'erase_seal': 'erase_seal', 'pdf_page_number': 'pdf_page_number' } - def __init__(self, data=None, url=None, single_orientation_mode=None, language=None, kv=None, table=None, layout=None, return_excel=None, form=None, formula=None, kv_map=None, pdf_page_number=None): + def __init__(self, data=None, url=None, single_orientation_mode=None, language=None, kv=None, table=None, layout=None, return_excel=None, form=None, formula=None, kv_map=None, erase_seal=None, pdf_page_number=None): """SmartDocumentRecognizerRequestBody The model defined in huaweicloud sdk @@ -73,6 +75,8 @@ def __init__(self, data=None, url=None, single_orientation_mode=None, language=N :type formula: bool :param kv_map: 需要传入字典的json序列化后字符串,用于对kv_result中的特定key值进行归一化映射。例如,kv_result中包含{\"名称\":\"小明\"}的键值对,若传入{\"名称\":\"姓名\"}的kv_map,则返回结果为{“姓名”:“小明”}。 > 参数传入示例: - \"kv_map\":\"{\\\"名称\\\":\\\"姓名\\\"}\" :type kv_map: str + :param erase_seal: 是否进行印章擦除。开启后,可提升印章遮挡区域的文字识别精度。 + :type erase_seal: bool :param pdf_page_number: 指定PDF页码识别。传入该参数时,则识别指定页码的内容。如果不传该参数,则默认识别第1页。 :type pdf_page_number: int """ @@ -90,6 +94,7 @@ def __init__(self, data=None, url=None, single_orientation_mode=None, language=N self._form = None self._formula = None self._kv_map = None + self._erase_seal = None self._pdf_page_number = None self.discriminator = None @@ -115,6 +120,8 @@ def __init__(self, data=None, url=None, single_orientation_mode=None, language=N self.formula = formula if kv_map is not None: self.kv_map = kv_map + if erase_seal is not None: + self.erase_seal = erase_seal if pdf_page_number is not None: self.pdf_page_number = pdf_page_number @@ -360,6 +367,28 @@ def kv_map(self, kv_map): """ self._kv_map = kv_map + @property + def erase_seal(self): + """Gets the erase_seal of this SmartDocumentRecognizerRequestBody. + + 是否进行印章擦除。开启后,可提升印章遮挡区域的文字识别精度。 + + :return: The erase_seal of this SmartDocumentRecognizerRequestBody. + :rtype: bool + """ + return self._erase_seal + + @erase_seal.setter + def erase_seal(self, erase_seal): + """Sets the erase_seal of this SmartDocumentRecognizerRequestBody. + + 是否进行印章擦除。开启后,可提升印章遮挡区域的文字识别精度。 + + :param erase_seal: The erase_seal of this SmartDocumentRecognizerRequestBody. + :type erase_seal: bool + """ + self._erase_seal = erase_seal + @property def pdf_page_number(self): """Gets the pdf_page_number of this SmartDocumentRecognizerRequestBody. diff --git a/huaweicloud-sdk-ocr/requirements.txt b/huaweicloud-sdk-ocr/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-ocr/requirements.txt +++ b/huaweicloud-sdk-ocr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-ocr/setup.py b/huaweicloud-sdk-ocr/setup.py index d42a11adce..5850424ece 100644 --- a/huaweicloud-sdk-ocr/setup.py +++ b/huaweicloud-sdk-ocr/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkocr" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-octopus/requirements.txt b/huaweicloud-sdk-octopus/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-octopus/requirements.txt +++ b/huaweicloud-sdk-octopus/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-octopus/setup.py b/huaweicloud-sdk-octopus/setup.py index 99d22c55d4..de250deceb 100644 --- a/huaweicloud-sdk-octopus/setup.py +++ b/huaweicloud-sdk-octopus/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkoctopus" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-oms/requirements.txt b/huaweicloud-sdk-oms/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-oms/requirements.txt +++ b/huaweicloud-sdk-oms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-oms/setup.py b/huaweicloud-sdk-oms/setup.py index 6ebaed3bd8..11d32fb238 100644 --- a/huaweicloud-sdk-oms/setup.py +++ b/huaweicloud-sdk-oms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkoms" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-optverse/requirements.txt b/huaweicloud-sdk-optverse/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-optverse/requirements.txt +++ b/huaweicloud-sdk-optverse/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-optverse/setup.py b/huaweicloud-sdk-optverse/setup.py index 9b871b182d..195135cb0b 100644 --- a/huaweicloud-sdk-optverse/setup.py +++ b/huaweicloud-sdk-optverse/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkoptverse" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-organizations/requirements.txt b/huaweicloud-sdk-organizations/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-organizations/requirements.txt +++ b/huaweicloud-sdk-organizations/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-organizations/setup.py b/huaweicloud-sdk-organizations/setup.py index 9792af9ca6..597046e96b 100644 --- a/huaweicloud-sdk-organizations/setup.py +++ b/huaweicloud-sdk-organizations/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkorganizations" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-orgid/requirements.txt b/huaweicloud-sdk-orgid/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-orgid/requirements.txt +++ b/huaweicloud-sdk-orgid/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-orgid/setup.py b/huaweicloud-sdk-orgid/setup.py index e1f84edda7..d901ff2ad1 100644 --- a/huaweicloud-sdk-orgid/setup.py +++ b/huaweicloud-sdk-orgid/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkorgid" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-oroas/requirements.txt b/huaweicloud-sdk-oroas/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-oroas/requirements.txt +++ b/huaweicloud-sdk-oroas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-oroas/setup.py b/huaweicloud-sdk-oroas/setup.py index 54a905f435..8e20788ee3 100644 --- a/huaweicloud-sdk-oroas/setup.py +++ b/huaweicloud-sdk-oroas/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkoroas" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-osm/requirements.txt b/huaweicloud-sdk-osm/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-osm/requirements.txt +++ b/huaweicloud-sdk-osm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-osm/setup.py b/huaweicloud-sdk-osm/setup.py index 7d33b017f7..7ac594b336 100644 --- a/huaweicloud-sdk-osm/setup.py +++ b/huaweicloud-sdk-osm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkosm" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-pangulargemodels/requirements.txt b/huaweicloud-sdk-pangulargemodels/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-pangulargemodels/requirements.txt +++ b/huaweicloud-sdk-pangulargemodels/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-pangulargemodels/setup.py b/huaweicloud-sdk-pangulargemodels/setup.py index 6b7cf09103..94415d51f0 100644 --- a/huaweicloud-sdk-pangulargemodels/setup.py +++ b/huaweicloud-sdk-pangulargemodels/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkpangulargemodels" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-projectman/requirements.txt b/huaweicloud-sdk-projectman/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-projectman/requirements.txt +++ b/huaweicloud-sdk-projectman/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-projectman/setup.py b/huaweicloud-sdk-projectman/setup.py index 63af9790ae..1cbbb91a6c 100644 --- a/huaweicloud-sdk-projectman/setup.py +++ b/huaweicloud-sdk-projectman/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkprojectman" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rabbitmq/requirements.txt b/huaweicloud-sdk-rabbitmq/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-rabbitmq/requirements.txt +++ b/huaweicloud-sdk-rabbitmq/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-rabbitmq/setup.py b/huaweicloud-sdk-rabbitmq/setup.py index 146fde8b59..a84fecf1b2 100644 --- a/huaweicloud-sdk-rabbitmq/setup.py +++ b/huaweicloud-sdk-rabbitmq/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkrabbitmq" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ram/requirements.txt b/huaweicloud-sdk-ram/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-ram/requirements.txt +++ b/huaweicloud-sdk-ram/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-ram/setup.py b/huaweicloud-sdk-ram/setup.py index a9c82f44eb..57158b0d95 100644 --- a/huaweicloud-sdk-ram/setup.py +++ b/huaweicloud-sdk-ram/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkram" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/__init__.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/__init__.py index d5b64abf4d..6d96559485 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/__init__.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/__init__.py @@ -355,6 +355,8 @@ from huaweicloudsdkrds.v3.model.list_ssl_cert_download_link_response import ListSslCertDownloadLinkResponse from huaweicloudsdkrds.v3.model.list_storage_types_request import ListStorageTypesRequest from huaweicloudsdkrds.v3.model.list_storage_types_response import ListStorageTypesResponse +from huaweicloudsdkrds.v3.model.list_update_backup_enhance_policy_request import ListUpdateBackupEnhancePolicyRequest +from huaweicloudsdkrds.v3.model.list_update_backup_enhance_policy_response import ListUpdateBackupEnhancePolicyResponse from huaweicloudsdkrds.v3.model.list_upgrade_histories_request import ListUpgradeHistoriesRequest from huaweicloudsdkrds.v3.model.list_upgrade_histories_response import ListUpgradeHistoriesResponse from huaweicloudsdkrds.v3.model.list_xel_log_response_result import ListXelLogResponseResult @@ -390,6 +392,7 @@ from huaweicloudsdkrds.v3.model.ops_window_request import OpsWindowRequest from huaweicloudsdkrds.v3.model.para_group_datastore import ParaGroupDatastore from huaweicloudsdkrds.v3.model.param_group_history_result import ParamGroupHistoryResult +from huaweicloudsdkrds.v3.model.policy import Policy from huaweicloudsdkrds.v3.model.postgre_sql_history_database import PostgreSQLHistoryDatabase from huaweicloudsdkrds.v3.model.postgre_sql_history_database_request import PostgreSQLHistoryDatabaseRequest from huaweicloudsdkrds.v3.model.postgre_sql_history_schema import PostgreSQLHistorySchema diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/__init__.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/__init__.py index ed0786e374..af873a6b19 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/__init__.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/__init__.py @@ -353,6 +353,8 @@ from huaweicloudsdkrds.v3.model.list_ssl_cert_download_link_response import ListSslCertDownloadLinkResponse from huaweicloudsdkrds.v3.model.list_storage_types_request import ListStorageTypesRequest from huaweicloudsdkrds.v3.model.list_storage_types_response import ListStorageTypesResponse +from huaweicloudsdkrds.v3.model.list_update_backup_enhance_policy_request import ListUpdateBackupEnhancePolicyRequest +from huaweicloudsdkrds.v3.model.list_update_backup_enhance_policy_response import ListUpdateBackupEnhancePolicyResponse from huaweicloudsdkrds.v3.model.list_upgrade_histories_request import ListUpgradeHistoriesRequest from huaweicloudsdkrds.v3.model.list_upgrade_histories_response import ListUpgradeHistoriesResponse from huaweicloudsdkrds.v3.model.list_xel_log_response_result import ListXelLogResponseResult @@ -388,6 +390,7 @@ from huaweicloudsdkrds.v3.model.ops_window_request import OpsWindowRequest from huaweicloudsdkrds.v3.model.para_group_datastore import ParaGroupDatastore from huaweicloudsdkrds.v3.model.param_group_history_result import ParamGroupHistoryResult +from huaweicloudsdkrds.v3.model.policy import Policy from huaweicloudsdkrds.v3.model.postgre_sql_history_database import PostgreSQLHistoryDatabase from huaweicloudsdkrds.v3.model.postgre_sql_history_database_request import PostgreSQLHistoryDatabaseRequest from huaweicloudsdkrds.v3.model.postgre_sql_history_schema import PostgreSQLHistorySchema diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_update_backup_enhance_policy_request.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_update_backup_enhance_policy_request.py new file mode 100644 index 0000000000..2c11482f9c --- /dev/null +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_update_backup_enhance_policy_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListUpdateBackupEnhancePolicyRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'time_zone': 'str' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'time_zone': 'time_zone' + } + + def __init__(self, instance_id=None, time_zone=None): + """ListUpdateBackupEnhancePolicyRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID + :type instance_id: str + :param time_zone: 用户当前时区,例:plus08 + :type time_zone: str + """ + + + + self._instance_id = None + self._time_zone = None + self.discriminator = None + + self.instance_id = instance_id + if time_zone is not None: + self.time_zone = time_zone + + @property + def instance_id(self): + """Gets the instance_id of this ListUpdateBackupEnhancePolicyRequest. + + 实例ID + + :return: The instance_id of this ListUpdateBackupEnhancePolicyRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ListUpdateBackupEnhancePolicyRequest. + + 实例ID + + :param instance_id: The instance_id of this ListUpdateBackupEnhancePolicyRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def time_zone(self): + """Gets the time_zone of this ListUpdateBackupEnhancePolicyRequest. + + 用户当前时区,例:plus08 + + :return: The time_zone of this ListUpdateBackupEnhancePolicyRequest. + :rtype: str + """ + return self._time_zone + + @time_zone.setter + def time_zone(self, time_zone): + """Sets the time_zone of this ListUpdateBackupEnhancePolicyRequest. + + 用户当前时区,例:plus08 + + :param time_zone: The time_zone of this ListUpdateBackupEnhancePolicyRequest. + :type time_zone: str + """ + self._time_zone = time_zone + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListUpdateBackupEnhancePolicyRequest): + return False + + return self.__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_update_backup_enhance_policy_response.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_update_backup_enhance_policy_response.py new file mode 100644 index 0000000000..c107dfd43e --- /dev/null +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_update_backup_enhance_policy_response.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListUpdateBackupEnhancePolicyResponse(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 = { + 'begin_time': 'str', + 'end_time': 'str', + 'manual_backup_retention_days': 'str', + 'frequency': 'str', + 'policies': 'list[Policy]' + } + + attribute_map = { + 'begin_time': 'begin_time', + 'end_time': 'end_time', + 'manual_backup_retention_days': 'manual_backup_retention_days', + 'frequency': 'frequency', + 'policies': 'policies' + } + + def __init__(self, begin_time=None, end_time=None, manual_backup_retention_days=None, frequency=None, policies=None): + """ListUpdateBackupEnhancePolicyResponse + + The model defined in huaweicloud sdk + + :param begin_time: 备份时间段开始时间 + :type begin_time: str + :param end_time: 备份时间段结束时间 + :type end_time: str + :param manual_backup_retention_days: 手动备份保留时长 + :type manual_backup_retention_days: str + :param frequency: 高频备份的频率 + :type frequency: str + :param policies: 备份策略集 + :type policies: list[:class:`huaweicloudsdkrds.v3.Policy`] + """ + + super(ListUpdateBackupEnhancePolicyResponse, self).__init__() + + self._begin_time = None + self._end_time = None + self._manual_backup_retention_days = None + self._frequency = None + self._policies = None + self.discriminator = None + + if begin_time is not None: + self.begin_time = begin_time + if end_time is not None: + self.end_time = end_time + if manual_backup_retention_days is not None: + self.manual_backup_retention_days = manual_backup_retention_days + if frequency is not None: + self.frequency = frequency + if policies is not None: + self.policies = policies + + @property + def begin_time(self): + """Gets the begin_time of this ListUpdateBackupEnhancePolicyResponse. + + 备份时间段开始时间 + + :return: The begin_time of this ListUpdateBackupEnhancePolicyResponse. + :rtype: str + """ + return self._begin_time + + @begin_time.setter + def begin_time(self, begin_time): + """Sets the begin_time of this ListUpdateBackupEnhancePolicyResponse. + + 备份时间段开始时间 + + :param begin_time: The begin_time of this ListUpdateBackupEnhancePolicyResponse. + :type begin_time: str + """ + self._begin_time = begin_time + + @property + def end_time(self): + """Gets the end_time of this ListUpdateBackupEnhancePolicyResponse. + + 备份时间段结束时间 + + :return: The end_time of this ListUpdateBackupEnhancePolicyResponse. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ListUpdateBackupEnhancePolicyResponse. + + 备份时间段结束时间 + + :param end_time: The end_time of this ListUpdateBackupEnhancePolicyResponse. + :type end_time: str + """ + self._end_time = end_time + + @property + def manual_backup_retention_days(self): + """Gets the manual_backup_retention_days of this ListUpdateBackupEnhancePolicyResponse. + + 手动备份保留时长 + + :return: The manual_backup_retention_days of this ListUpdateBackupEnhancePolicyResponse. + :rtype: str + """ + return self._manual_backup_retention_days + + @manual_backup_retention_days.setter + def manual_backup_retention_days(self, manual_backup_retention_days): + """Sets the manual_backup_retention_days of this ListUpdateBackupEnhancePolicyResponse. + + 手动备份保留时长 + + :param manual_backup_retention_days: The manual_backup_retention_days of this ListUpdateBackupEnhancePolicyResponse. + :type manual_backup_retention_days: str + """ + self._manual_backup_retention_days = manual_backup_retention_days + + @property + def frequency(self): + """Gets the frequency of this ListUpdateBackupEnhancePolicyResponse. + + 高频备份的频率 + + :return: The frequency of this ListUpdateBackupEnhancePolicyResponse. + :rtype: str + """ + return self._frequency + + @frequency.setter + def frequency(self, frequency): + """Sets the frequency of this ListUpdateBackupEnhancePolicyResponse. + + 高频备份的频率 + + :param frequency: The frequency of this ListUpdateBackupEnhancePolicyResponse. + :type frequency: str + """ + self._frequency = frequency + + @property + def policies(self): + """Gets the policies of this ListUpdateBackupEnhancePolicyResponse. + + 备份策略集 + + :return: The policies of this ListUpdateBackupEnhancePolicyResponse. + :rtype: list[:class:`huaweicloudsdkrds.v3.Policy`] + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ListUpdateBackupEnhancePolicyResponse. + + 备份策略集 + + :param policies: The policies of this ListUpdateBackupEnhancePolicyResponse. + :type policies: list[:class:`huaweicloudsdkrds.v3.Policy`] + """ + self._policies = policies + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListUpdateBackupEnhancePolicyResponse): + return False + + return self.__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/policy.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/policy.py new file mode 100644 index 0000000000..0b0c19c117 --- /dev/null +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/policy.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Policy: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'period': 'str', + 'retention_days': 'str' + } + + attribute_map = { + 'period': 'period', + 'retention_days': 'retention_days' + } + + def __init__(self, period=None, retention_days=None): + """Policy + + The model defined in huaweicloud sdk + + :param period: 备份周期的crontab表达式 + :type period: str + :param retention_days: 保留时长(天) + :type retention_days: str + """ + + + + self._period = None + self._retention_days = None + self.discriminator = None + + self.period = period + self.retention_days = retention_days + + @property + def period(self): + """Gets the period of this Policy. + + 备份周期的crontab表达式 + + :return: The period of this Policy. + :rtype: str + """ + return self._period + + @period.setter + def period(self, period): + """Sets the period of this Policy. + + 备份周期的crontab表达式 + + :param period: The period of this Policy. + :type period: str + """ + self._period = period + + @property + def retention_days(self): + """Gets the retention_days of this Policy. + + 保留时长(天) + + :return: The retention_days of this Policy. + :rtype: str + """ + return self._retention_days + + @retention_days.setter + def retention_days(self, retention_days): + """Sets the retention_days of this Policy. + + 保留时长(天) + + :param retention_days: The retention_days of this Policy. + :type retention_days: str + """ + self._retention_days = retention_days + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Policy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_async_client.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_async_client.py index b31a793e8e..2a912192b1 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_async_client.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_async_client.py @@ -5614,6 +5614,73 @@ def _list_storage_types_http_info(self, request): return http_info + def list_update_backup_enhance_policy_async(self, request): + """查询高级备份策略 + + 查询高级备份策略,可查看自定义稀疏备份等 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListUpdateBackupEnhancePolicy + :type request: :class:`huaweicloudsdkrds.v3.ListUpdateBackupEnhancePolicyRequest` + :rtype: :class:`huaweicloudsdkrds.v3.ListUpdateBackupEnhancePolicyResponse` + """ + http_info = self._list_update_backup_enhance_policy_http_info(request) + return self._call_api(**http_info) + + def list_update_backup_enhance_policy_async_invoker(self, request): + http_info = self._list_update_backup_enhance_policy_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_update_backup_enhance_policy_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/instances/{instance_id}/backups/enhance-policy", + "request_type": request.__class__.__name__, + "response_type": "ListUpdateBackupEnhancePolicyResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + if 'time_zone' in local_var_params: + query_params.append(('time_zone', local_var_params['time_zone'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_upgrade_histories_async(self, request): """list_upgrade_histories diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_client.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_client.py index 5ab9a69da2..3117c29c52 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_client.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_client.py @@ -5614,6 +5614,73 @@ def _list_storage_types_http_info(cls, request): return http_info + def list_update_backup_enhance_policy(self, request): + """查询高级备份策略 + + 查询高级备份策略,可查看自定义稀疏备份等 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListUpdateBackupEnhancePolicy + :type request: :class:`huaweicloudsdkrds.v3.ListUpdateBackupEnhancePolicyRequest` + :rtype: :class:`huaweicloudsdkrds.v3.ListUpdateBackupEnhancePolicyResponse` + """ + http_info = self._list_update_backup_enhance_policy_http_info(request) + return self._call_api(**http_info) + + def list_update_backup_enhance_policy_invoker(self, request): + http_info = self._list_update_backup_enhance_policy_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_update_backup_enhance_policy_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/instances/{instance_id}/backups/enhance-policy", + "request_type": request.__class__.__name__, + "response_type": "ListUpdateBackupEnhancePolicyResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + if 'time_zone' in local_var_params: + query_params.append(('time_zone', local_var_params['time_zone'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_upgrade_histories(self, request): """list_upgrade_histories diff --git a/huaweicloud-sdk-rds/requirements.txt b/huaweicloud-sdk-rds/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-rds/requirements.txt +++ b/huaweicloud-sdk-rds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-rds/setup.py b/huaweicloud-sdk-rds/setup.py index 6a465ee157..384c3a1131 100644 --- a/huaweicloud-sdk-rds/setup.py +++ b/huaweicloud-sdk-rds/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkrds" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-res/requirements.txt b/huaweicloud-sdk-res/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-res/requirements.txt +++ b/huaweicloud-sdk-res/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-res/setup.py b/huaweicloud-sdk-res/setup.py index 744392e130..7669f8f65a 100644 --- a/huaweicloud-sdk-res/setup.py +++ b/huaweicloud-sdk-res/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkres" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rgc/requirements.txt b/huaweicloud-sdk-rgc/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-rgc/requirements.txt +++ b/huaweicloud-sdk-rgc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-rgc/setup.py b/huaweicloud-sdk-rgc/setup.py index 41e1ae8b62..5d6d2176d4 100644 --- a/huaweicloud-sdk-rgc/setup.py +++ b/huaweicloud-sdk-rgc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkrgc" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rms/requirements.txt b/huaweicloud-sdk-rms/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-rms/requirements.txt +++ b/huaweicloud-sdk-rms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-rms/setup.py b/huaweicloud-sdk-rms/setup.py index 32fce6761a..054ff50800 100644 --- a/huaweicloud-sdk-rms/setup.py +++ b/huaweicloud-sdk-rms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkrms" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rocketmq/requirements.txt b/huaweicloud-sdk-rocketmq/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-rocketmq/requirements.txt +++ b/huaweicloud-sdk-rocketmq/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-rocketmq/setup.py b/huaweicloud-sdk-rocketmq/setup.py index 9cbcf4580d..6f9793850e 100644 --- a/huaweicloud-sdk-rocketmq/setup.py +++ b/huaweicloud-sdk-rocketmq/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkrocketmq" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-roma/requirements.txt b/huaweicloud-sdk-roma/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-roma/requirements.txt +++ b/huaweicloud-sdk-roma/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-roma/setup.py b/huaweicloud-sdk-roma/setup.py index e447930dd2..5fd61d48fe 100644 --- a/huaweicloud-sdk-roma/setup.py +++ b/huaweicloud-sdk-roma/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkroma" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sa/requirements.txt b/huaweicloud-sdk-sa/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-sa/requirements.txt +++ b/huaweicloud-sdk-sa/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-sa/setup.py b/huaweicloud-sdk-sa/setup.py index c9227d36d5..4a4fcdeb1e 100644 --- a/huaweicloud-sdk-sa/setup.py +++ b/huaweicloud-sdk-sa/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksa" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-scm/huaweicloudsdkscm/v3/model/list_certificates_request.py b/huaweicloud-sdk-scm/huaweicloudsdkscm/v3/model/list_certificates_request.py index b336808721..4fb9664c4f 100644 --- a/huaweicloud-sdk-scm/huaweicloudsdkscm/v3/model/list_certificates_request.py +++ b/huaweicloud-sdk-scm/huaweicloudsdkscm/v3/model/list_certificates_request.py @@ -23,7 +23,8 @@ class ListCertificatesRequest: 'sort_key': 'str', 'status': 'str', 'enterprise_project_id': 'str', - 'deploy_support': 'bool' + 'deploy_support': 'bool', + 'owned_by_self': 'bool' } attribute_map = { @@ -33,10 +34,11 @@ class ListCertificatesRequest: 'sort_key': 'sort_key', 'status': 'status', 'enterprise_project_id': 'enterprise_project_id', - 'deploy_support': 'deploy_support' + 'deploy_support': 'deploy_support', + 'owned_by_self': 'owned_by_self' } - def __init__(self, limit=None, offset=None, sort_dir=None, sort_key=None, status=None, enterprise_project_id=None, deploy_support=None): + def __init__(self, limit=None, offset=None, sort_dir=None, sort_key=None, status=None, enterprise_project_id=None, deploy_support=None, owned_by_self=None): """ListCertificatesRequest The model defined in huaweicloud sdk @@ -55,6 +57,8 @@ def __init__(self, limit=None, offset=None, sort_dir=None, sort_key=None, status :type enterprise_project_id: str :param deploy_support: 是否支持部署。 :type deploy_support: bool + :param owned_by_self: 过滤资源是否属于当前租户,取值如下: - true:只查属于当前租户的资源,不包括共享资源。 - false:查询当前租户及共享给该租户的资源。 + :type owned_by_self: bool """ @@ -66,6 +70,7 @@ def __init__(self, limit=None, offset=None, sort_dir=None, sort_key=None, status self._status = None self._enterprise_project_id = None self._deploy_support = None + self._owned_by_self = None self.discriminator = None if limit is not None: @@ -82,6 +87,8 @@ def __init__(self, limit=None, offset=None, sort_dir=None, sort_key=None, status self.enterprise_project_id = enterprise_project_id if deploy_support is not None: self.deploy_support = deploy_support + if owned_by_self is not None: + self.owned_by_self = owned_by_self @property def limit(self): @@ -237,6 +244,28 @@ def deploy_support(self, deploy_support): """ self._deploy_support = deploy_support + @property + def owned_by_self(self): + """Gets the owned_by_self of this ListCertificatesRequest. + + 过滤资源是否属于当前租户,取值如下: - true:只查属于当前租户的资源,不包括共享资源。 - false:查询当前租户及共享给该租户的资源。 + + :return: The owned_by_self of this ListCertificatesRequest. + :rtype: bool + """ + return self._owned_by_self + + @owned_by_self.setter + def owned_by_self(self, owned_by_self): + """Sets the owned_by_self of this ListCertificatesRequest. + + 过滤资源是否属于当前租户,取值如下: - true:只查属于当前租户的资源,不包括共享资源。 - false:查询当前租户及共享给该租户的资源。 + + :param owned_by_self: The owned_by_self of this ListCertificatesRequest. + :type owned_by_self: bool + """ + self._owned_by_self = owned_by_self + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-scm/huaweicloudsdkscm/v3/scm_async_client.py b/huaweicloud-sdk-scm/huaweicloudsdkscm/v3/scm_async_client.py index 60f9bae2c6..0526db73c9 100644 --- a/huaweicloud-sdk-scm/huaweicloudsdkscm/v3/scm_async_client.py +++ b/huaweicloud-sdk-scm/huaweicloudsdkscm/v3/scm_async_client.py @@ -478,6 +478,8 @@ def _list_certificates_http_info(self, request): query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) if 'deploy_support' in local_var_params: query_params.append(('deploy_support', local_var_params['deploy_support'])) + if 'owned_by_self' in local_var_params: + query_params.append(('owned_by_self', local_var_params['owned_by_self'])) header_params = {} diff --git a/huaweicloud-sdk-scm/huaweicloudsdkscm/v3/scm_client.py b/huaweicloud-sdk-scm/huaweicloudsdkscm/v3/scm_client.py index 16f4d8d56a..912c389634 100644 --- a/huaweicloud-sdk-scm/huaweicloudsdkscm/v3/scm_client.py +++ b/huaweicloud-sdk-scm/huaweicloudsdkscm/v3/scm_client.py @@ -478,6 +478,8 @@ def _list_certificates_http_info(cls, request): query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) if 'deploy_support' in local_var_params: query_params.append(('deploy_support', local_var_params['deploy_support'])) + if 'owned_by_self' in local_var_params: + query_params.append(('owned_by_self', local_var_params['owned_by_self'])) header_params = {} diff --git a/huaweicloud-sdk-scm/requirements.txt b/huaweicloud-sdk-scm/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-scm/requirements.txt +++ b/huaweicloud-sdk-scm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-scm/setup.py b/huaweicloud-sdk-scm/setup.py index ece38bca68..ce66a4b821 100644 --- a/huaweicloud-sdk-scm/setup.py +++ b/huaweicloud-sdk-scm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkscm" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sdrs/requirements.txt b/huaweicloud-sdk-sdrs/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-sdrs/requirements.txt +++ b/huaweicloud-sdk-sdrs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-sdrs/setup.py b/huaweicloud-sdk-sdrs/setup.py index e4de17a5b7..8f49226ac0 100644 --- a/huaweicloud-sdk-sdrs/setup.py +++ b/huaweicloud-sdk-sdrs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksdrs" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-secmaster/requirements.txt b/huaweicloud-sdk-secmaster/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-secmaster/requirements.txt +++ b/huaweicloud-sdk-secmaster/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-secmaster/setup.py b/huaweicloud-sdk-secmaster/setup.py index 48f9e8cc05..45b5796c25 100644 --- a/huaweicloud-sdk-secmaster/setup.py +++ b/huaweicloud-sdk-secmaster/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksecmaster" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-servicestage/requirements.txt b/huaweicloud-sdk-servicestage/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-servicestage/requirements.txt +++ b/huaweicloud-sdk-servicestage/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-servicestage/setup.py b/huaweicloud-sdk-servicestage/setup.py index 595ebf4fdb..a5d9ad90f8 100644 --- a/huaweicloud-sdk-servicestage/setup.py +++ b/huaweicloud-sdk-servicestage/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkservicestage" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sfsturbo/requirements.txt b/huaweicloud-sdk-sfsturbo/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-sfsturbo/requirements.txt +++ b/huaweicloud-sdk-sfsturbo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-sfsturbo/setup.py b/huaweicloud-sdk-sfsturbo/setup.py index 8147ffebb6..19c514c364 100644 --- a/huaweicloud-sdk-sfsturbo/setup.py +++ b/huaweicloud-sdk-sfsturbo/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksfsturbo" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sis/requirements.txt b/huaweicloud-sdk-sis/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-sis/requirements.txt +++ b/huaweicloud-sdk-sis/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-sis/setup.py b/huaweicloud-sdk-sis/setup.py index 59f3758c53..db8343a6ec 100644 --- a/huaweicloud-sdk-sis/setup.py +++ b/huaweicloud-sdk-sis/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksis" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-smn/requirements.txt b/huaweicloud-sdk-smn/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-smn/requirements.txt +++ b/huaweicloud-sdk-smn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-smn/setup.py b/huaweicloud-sdk-smn/setup.py index e4b19f033d..731093f677 100644 --- a/huaweicloud-sdk-smn/setup.py +++ b/huaweicloud-sdk-smn/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksmn" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sms/requirements.txt b/huaweicloud-sdk-sms/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-sms/requirements.txt +++ b/huaweicloud-sdk-sms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-sms/setup.py b/huaweicloud-sdk-sms/setup.py index c24842a27a..86fe7cbe3e 100644 --- a/huaweicloud-sdk-sms/setup.py +++ b/huaweicloud-sdk-sms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksms" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-smsapi/requirements.txt b/huaweicloud-sdk-smsapi/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-smsapi/requirements.txt +++ b/huaweicloud-sdk-smsapi/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-smsapi/setup.py b/huaweicloud-sdk-smsapi/setup.py index 5bc7e4cca1..59c775e779 100644 --- a/huaweicloud-sdk-smsapi/setup.py +++ b/huaweicloud-sdk-smsapi/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksmsapi" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sts/requirements.txt b/huaweicloud-sdk-sts/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-sts/requirements.txt +++ b/huaweicloud-sdk-sts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-sts/setup.py b/huaweicloud-sdk-sts/setup.py index f4643a6820..4289561f12 100644 --- a/huaweicloud-sdk-sts/setup.py +++ b/huaweicloud-sdk-sts/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksts" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-swr/requirements.txt b/huaweicloud-sdk-swr/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-swr/requirements.txt +++ b/huaweicloud-sdk-swr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-swr/setup.py b/huaweicloud-sdk-swr/setup.py index 079a1ea698..b8d55fa6a1 100644 --- a/huaweicloud-sdk-swr/setup.py +++ b/huaweicloud-sdk-swr/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkswr" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-tics/requirements.txt b/huaweicloud-sdk-tics/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-tics/requirements.txt +++ b/huaweicloud-sdk-tics/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-tics/setup.py b/huaweicloud-sdk-tics/setup.py index ee87f22ad5..d4893ab81e 100644 --- a/huaweicloud-sdk-tics/setup.py +++ b/huaweicloud-sdk-tics/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdktics" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-tms/requirements.txt b/huaweicloud-sdk-tms/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-tms/requirements.txt +++ b/huaweicloud-sdk-tms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-tms/setup.py b/huaweicloud-sdk-tms/setup.py index c85f2ce502..a39099439e 100644 --- a/huaweicloud-sdk-tms/setup.py +++ b/huaweicloud-sdk-tms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdktms" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ugo/requirements.txt b/huaweicloud-sdk-ugo/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-ugo/requirements.txt +++ b/huaweicloud-sdk-ugo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-ugo/setup.py b/huaweicloud-sdk-ugo/setup.py index b54bfb8ceb..b004dd900e 100644 --- a/huaweicloud-sdk-ugo/setup.py +++ b/huaweicloud-sdk-ugo/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkugo" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vas/requirements.txt b/huaweicloud-sdk-vas/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-vas/requirements.txt +++ b/huaweicloud-sdk-vas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-vas/setup.py b/huaweicloud-sdk-vas/setup.py index 0763b2b80b..44eb0a0b68 100644 --- a/huaweicloud-sdk-vas/setup.py +++ b/huaweicloud-sdk-vas/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvas" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vcm/requirements.txt b/huaweicloud-sdk-vcm/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-vcm/requirements.txt +++ b/huaweicloud-sdk-vcm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-vcm/setup.py b/huaweicloud-sdk-vcm/setup.py index db97edb1e2..dd9fc8467f 100644 --- a/huaweicloud-sdk-vcm/setup.py +++ b/huaweicloud-sdk-vcm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvcm" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vod/requirements.txt b/huaweicloud-sdk-vod/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-vod/requirements.txt +++ b/huaweicloud-sdk-vod/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-vod/setup.py b/huaweicloud-sdk-vod/setup.py index 4c91ff684f..41546397cf 100644 --- a/huaweicloud-sdk-vod/setup.py +++ b/huaweicloud-sdk-vod/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvod" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpc/requirements.txt b/huaweicloud-sdk-vpc/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-vpc/requirements.txt +++ b/huaweicloud-sdk-vpc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-vpc/setup.py b/huaweicloud-sdk-vpc/setup.py index 2fce352d72..a1ac879584 100644 --- a/huaweicloud-sdk-vpc/setup.py +++ b/huaweicloud-sdk-vpc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvpc" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpcep/requirements.txt b/huaweicloud-sdk-vpcep/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-vpcep/requirements.txt +++ b/huaweicloud-sdk-vpcep/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-vpcep/setup.py b/huaweicloud-sdk-vpcep/setup.py index 74dcc0d594..443b6ec4e5 100644 --- a/huaweicloud-sdk-vpcep/setup.py +++ b/huaweicloud-sdk-vpcep/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvpcep" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpn/requirements.txt b/huaweicloud-sdk-vpn/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-vpn/requirements.txt +++ b/huaweicloud-sdk-vpn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-vpn/setup.py b/huaweicloud-sdk-vpn/setup.py index c295175a69..1eacba0c1a 100644 --- a/huaweicloud-sdk-vpn/setup.py +++ b/huaweicloud-sdk-vpn/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvpn" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-waf/requirements.txt b/huaweicloud-sdk-waf/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-waf/requirements.txt +++ b/huaweicloud-sdk-waf/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-waf/setup.py b/huaweicloud-sdk-waf/setup.py index 0af981fe71..986c5612d1 100644 --- a/huaweicloud-sdk-waf/setup.py +++ b/huaweicloud-sdk-waf/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkwaf" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-workspace/requirements.txt b/huaweicloud-sdk-workspace/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-workspace/requirements.txt +++ b/huaweicloud-sdk-workspace/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-workspace/setup.py b/huaweicloud-sdk-workspace/setup.py index 948f7883f1..cc2589ff4a 100644 --- a/huaweicloud-sdk-workspace/setup.py +++ b/huaweicloud-sdk-workspace/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkworkspace" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-workspaceapp/requirements.txt b/huaweicloud-sdk-workspaceapp/requirements.txt index caa572494e..7227048a64 100644 --- a/huaweicloud-sdk-workspaceapp/requirements.txt +++ b/huaweicloud-sdk-workspaceapp/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.127 \ No newline at end of file +huaweicloudsdkcore >= 3.1.128 \ No newline at end of file diff --git a/huaweicloud-sdk-workspaceapp/setup.py b/huaweicloud-sdk-workspaceapp/setup.py index 0fd8832538..536d2839ca 100644 --- a/huaweicloud-sdk-workspaceapp/setup.py +++ b/huaweicloud-sdk-workspaceapp/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkworkspaceapp" -VERSION = "3.1.127" +VERSION = "3.1.128" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.127"] +REQUIRES = ["huaweicloudsdkcore>=3.1.128"] OPTIONS = { 'bdist_wheel': {