diff --git a/CHANGELOG.md b/CHANGELOG.md index 36edfa6dd3..81d7298223 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,372 @@ +# 3.1.122 2024-11-14 + +### HuaweiCloud SDK AOM + +- _API Version_ + - V2 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **PushEvents** + - changes of request param + - `+ enterprise-project-id` + - `- x-enterprise-prject-id` + - **ListPromInstance** + - changes of request param + - `* Enterprise-Project-Id: optional -> required` + +### HuaweiCloud SDK CloudRTC + +- _API Version_ + - V2 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Remove the APIs `ShowUrlAuth`, `UpdateUrlAuth` + +### HuaweiCloud SDK DataArtsStudio + +- _API Version_ + - V1 +- _Features_ + - Support the API `ListWorkspacesForUser` +- _Bug Fix_ + - None +- _Change_ + - **DebugDataconnection** + - changes of request param + - `+ supportService` + - **CreateConnections** + - changes of request param + - `+ data_source_vos.supportService` + - **UpdateDataconnection** + - changes of request param + - `+ data_source_vos.supportService` + +### HuaweiCloud SDK DDS + +- _API Version_ + - V3 +- _Features_ + - Support the following APIs: + - `ValidateConfigurationName` + - `ShowInstanceConfigurationModifyHistory` + - `SetAutoEnlargePolicies` + - `BatchDeleteBackup` + - `ShowAutoEnlargePolicy` + - `ListScheduledTasks` + - `CancelScheduledTask` + - `BatchUpgradeDatabaseVersion` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK DWS + +- _API Version_ + - V2 +- _Features_ + - Support the APIs `StartCluster`, `StopCluster` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK EVS + +- _API Version_ + - V2 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Remove the APIs `ChangeVolumeChargeMode`, `UnsubscribePostpaidVolume` + - **RetypeVolume** + - changes of request param + - `+ os-retype.iops` + - `+ os-retype.throughput` + +### HuaweiCloud SDK FunctionGraph + +- _API Version_ + - V2 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowFunctionTrigger** + - changes of response param + - `+ event_data.Key_encode` + - `+ event_data.agency` + - `+ event_data.channel_name` + - `+ event_data.channel_id` + - `+ event_data.source_name` + - `+ event_data.created_time` + - `+ event_data.status` + - `+ event_data.trigger_name` + - `+ event_data.event_types` + - **UpdateTrigger** + - changes of response param + - `+ event_data.Key_encode` + - `+ event_data.agency` + - `+ event_data.channel_name` + - `+ event_data.channel_id` + - `+ event_data.source_name` + - `+ event_data.created_time` + - `+ event_data.status` + - `+ event_data.trigger_name` + - `+ event_data.event_types` + - **CreateFunctionTrigger** + - changes of request param + - `+ event_data.channel_id` + - `+ event_data.event_types` + - `+ event_data.status: enum value [ACTIVE,DISABLE]` + - changes of response param + - `+ event_data.Key_encode` + - `+ event_data.agency` + - `+ event_data.channel_name` + - `+ event_data.channel_id` + - `+ event_data.source_name` + - `+ event_data.created_time` + - `+ event_data.status` + - `+ event_data.trigger_name` + - `+ event_data.event_types` + - **ListFunctionTriggers** + - changes of response param + - `+ event_data.Key_encode` + - `+ event_data.agency` + - `+ event_data.channel_name` + - `+ event_data.channel_id` + - `+ event_data.source_name` + - `+ event_data.created_time` + - `+ event_data.status` + - `+ event_data.trigger_name` + - `+ event_data.event_types` + +### HuaweiCloud SDK GaussDBforNoSQL + +- _API Version_ + - V3 +- _Features_ + - Support the following APIs: + - `ShowBackupPolicies` + - `ApplyConfigurationToInstances` + - `UpdateInstanceConfigurations` + - `CreateDbCacheMapping` + - `DeleteDbCacheMapping` + - `UpdateDbCacheRule` + - `CreateDbCacheRule` + - `DeleteDbCacheRule` + - `ListDbCacheMappings` + - `ListDbCacheRules` + - `ShowSecondLevelMonitoringStatus` + - `SwitchSecondLevelMonitoring` + - `SetInstanceDataDump` + - `ListInstanceMaintenanceWindow` + - `ModifyInstanceMaintenanceWindow` + - `ListNosqlTaskList` + - `CancelInstanceScheduleWindow` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK GaussDBforopenGauss + +- _API Version_ + - V3 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CreateLimitTask** + - changes of response param + - `+ job_id` + - `- jobId` + - `* key_words: list -> string` + - **UpdateLimitTask** + - changes of response param + - `+ job_id` + - `- jobId` + +### HuaweiCloud SDK HSS + +- _API Version_ + - V5 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListApps** + - changes of request param + - `* host_id: required -> optional` + +### HuaweiCloud SDK Meeting + +- _API Version_ + - V1 +- _Features_ + - Support the API `CheckCallNumberInConf` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK MetaStudio + +- _API Version_ + - V1 +- _Features_ + - Support the APIs `CreateBeautyPreviewJob`, `ShowBeautyPreviewJob`, `StartBeautyPreviewJob` +- _Bug Fix_ + - None +- _Change_ + - **List2dModelTrainingJob** + - changes of response param + - `+ jobs.is_only_human_model` + - `+ jobs.state: enum value [WAIT_ASSET_SYNC]` + - **Create2dModelTrainingJob** + - changes of request param + - `+ beauty_level` + - `+ is_only_human_model` + - changes of response param + - `+ post_beauty_image_upload_url` + - `+ pre_beauty_image_upload_url` + - **Update2dModelTrainingJob** + - changes of request param + - `+ beauty_level` + - `+ samples_basic_info.recommended_value` + - changes of response param + - `+ post_beauty_image_upload_url` + - `+ pre_beauty_image_upload_url` + - **Show2dModelTrainingJob** + - changes of response param + - `+ allocated_resource` + - `+ pre_beauty_image_download_url` + - `+ post_beauty_image_download_url` + - `+ inference_data_process_chat_action_mark_info` + - `+ is_only_human_model` + - `+ traning_video_mark_info` + - `+ beauty_level` + - `+ state: enum value [WAIT_ASSET_SYNC]` + - `+ samples.recommended_value` + - `+ inference_data_process_video_mark_info.chat_video_start_time` + - `+ inference_data_process_video_mark_info.chat_video_end_time` + - **ShowAsset** + - changes of response param + - `* asset_extra_meta.image_meta.size: number -> integer` + - **UpdateDigitalAsset** + - changes of request param + - `* asset_extra_meta.image_meta.size: number -> integer` + - changes of response param + - `* asset_extra_meta.image_meta.size: number -> integer` + - **CreateDigitalAsset** + - changes of request param + - `* asset_extra_meta.image_meta.size: number -> integer` + - **ListAssets** + - changes of response param + - `* assets.asset_extra_meta.image_meta.size: number -> integer` + +### HuaweiCloud SDK SFSTurbo + +- _API Version_ + - V1 +- _Features_ + - Support the APIs `UpdateObsTargetAttributes`, `UpdateObsTargetPolicy`, `DeleteHpcCacheTask` +- _Bug Fix_ + - None +- _Change_ + - **CreateHpcCacheTask** + - changes of request param + - `+ attributes` + - **ShowHpcCacheTask** + - changes of response param + - `+ status: enum value [SUCCESS,DOING,FAIL]` + - **ShowLdapConfig** + - changes of response param + - `+ schema` + - `+ search_timeout` + - `+ backup_url` + - `+ allow_local_user` + - **UpdateLdapConfig** + - changes of request param + - `+ backup_url` + - `+ schema` + - `+ search_timeout` + - `+ allow_local_user` + - **CreateLdapConfig** + - changes of request param + - `+ backup_url` + - `+ schema` + - `+ search_timeout` + - `+ allow_local_user` + - **ShowShare** + - changes of response param + - `+ optional_endpoint` + - `+ statusDetail` + - `+ features` + - `+ instanceId` + - `+ instanceType` + - `+ hpc_bw` + - **ListSharedTags** + - changes of request param + - `+ limit` + - `+ offset` + - **ListHpcCacheTasks** + - changes of request param + - `+ start_time` + - `+ end_time` + - changes of response param + - `+ tasks.status: enum value [SUCCESS,DOING,FAIL]` + - **ShowBackendTargetInfo** + - changes of response param + - `+ obs.policy` + - `+ obs.attributes` + - **ListPermRules** + - changes of request param + - `+ limit` + - `+ offset` + - **ShowJobDetail** + - changes of response param + - `+ status: enum value [success,failed,waiting,running]` + - **ListShares** + - changes of response param + - `+ optional_endpoint` + - `+ statusDetail` + - `+ features` + - `+ instanceId` + - `+ instanceType` + - `+ hpc_bw` + - `+ shares.optional_endpoint` + - `+ shares.hpc_bw` + - `+ shares.instanceId` + - `+ shares.instanceType` + - `+ shares.statusDetail` + - `+ shares.features` + - **CreateBackendTarget** + - changes of request param + - `+ obs.policy` + - `+ obs.attributes` + - changes of response param + - `+ obs.policy` + - `+ obs.attributes` + - **ListBackendTargets** + - changes of response param + - `+ targets.obs.policy` + - `+ targets.obs.attributes` + - **SetHpcCacheBackend** + - changes of request param + - `- update_hpc_cache.data.obs` + # 3.1.121 2024-11-07 ### HuaweiCloud SDK AAD diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 1e281fa984..83b839e36f 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,372 @@ +# 3.1.122 2024-11-14 + +### HuaweiCloud SDK AOM + +- _接口版本_ + - V2 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **PushEvents** + - 请求参数变更 + - `+ enterprise-project-id` + - `- x-enterprise-prject-id` + - **ListPromInstance** + - 请求参数变更 + - `* Enterprise-Project-Id: optional -> required` + +### HuaweiCloud SDK CloudRTC + +- _接口版本_ + - V2 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 移除接口`ShowUrlAuth`、`UpdateUrlAuth` + +### HuaweiCloud SDK DataArtsStudio + +- _接口版本_ + - V1 +- _新增特性_ + - 支持接口`ListWorkspacesForUser` +- _解决问题_ + - 无 +- _特性变更_ + - **DebugDataconnection** + - 请求参数变更 + - `+ supportService` + - **CreateConnections** + - 请求参数变更 + - `+ data_source_vos.supportService` + - **UpdateDataconnection** + - 请求参数变更 + - `+ data_source_vos.supportService` + +### HuaweiCloud SDK DDS + +- _接口版本_ + - V3 +- _新增特性_ + - 支持以下接口: + - `ValidateConfigurationName` + - `ShowInstanceConfigurationModifyHistory` + - `SetAutoEnlargePolicies` + - `BatchDeleteBackup` + - `ShowAutoEnlargePolicy` + - `ListScheduledTasks` + - `CancelScheduledTask` + - `BatchUpgradeDatabaseVersion` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK DWS + +- _接口版本_ + - V2 +- _新增特性_ + - 支持接口`StartCluster`、`StopCluster` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK EVS + +- _接口版本_ + - V2 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 移除接口`ChangeVolumeChargeMode`、`UnsubscribePostpaidVolume` + - **RetypeVolume** + - 请求参数变更 + - `+ os-retype.iops` + - `+ os-retype.throughput` + +### HuaweiCloud SDK FunctionGraph + +- _接口版本_ + - V2 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowFunctionTrigger** + - 响应参数变更 + - `+ event_data.Key_encode` + - `+ event_data.agency` + - `+ event_data.channel_name` + - `+ event_data.channel_id` + - `+ event_data.source_name` + - `+ event_data.created_time` + - `+ event_data.status` + - `+ event_data.trigger_name` + - `+ event_data.event_types` + - **UpdateTrigger** + - 响应参数变更 + - `+ event_data.Key_encode` + - `+ event_data.agency` + - `+ event_data.channel_name` + - `+ event_data.channel_id` + - `+ event_data.source_name` + - `+ event_data.created_time` + - `+ event_data.status` + - `+ event_data.trigger_name` + - `+ event_data.event_types` + - **CreateFunctionTrigger** + - 请求参数变更 + - `+ event_data.channel_id` + - `+ event_data.event_types` + - `+ event_data.status: enum value [ACTIVE,DISABLE]` + - 响应参数变更 + - `+ event_data.Key_encode` + - `+ event_data.agency` + - `+ event_data.channel_name` + - `+ event_data.channel_id` + - `+ event_data.source_name` + - `+ event_data.created_time` + - `+ event_data.status` + - `+ event_data.trigger_name` + - `+ event_data.event_types` + - **ListFunctionTriggers** + - 响应参数变更 + - `+ event_data.Key_encode` + - `+ event_data.agency` + - `+ event_data.channel_name` + - `+ event_data.channel_id` + - `+ event_data.source_name` + - `+ event_data.created_time` + - `+ event_data.status` + - `+ event_data.trigger_name` + - `+ event_data.event_types` + +### HuaweiCloud SDK GaussDBforNoSQL + +- _接口版本_ + - V3 +- _新增特性_ + - 支持以下接口: + - `ShowBackupPolicies` + - `ApplyConfigurationToInstances` + - `UpdateInstanceConfigurations` + - `CreateDbCacheMapping` + - `DeleteDbCacheMapping` + - `UpdateDbCacheRule` + - `CreateDbCacheRule` + - `DeleteDbCacheRule` + - `ListDbCacheMappings` + - `ListDbCacheRules` + - `ShowSecondLevelMonitoringStatus` + - `SwitchSecondLevelMonitoring` + - `SetInstanceDataDump` + - `ListInstanceMaintenanceWindow` + - `ModifyInstanceMaintenanceWindow` + - `ListNosqlTaskList` + - `CancelInstanceScheduleWindow` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK GaussDBforopenGauss + +- _接口版本_ + - V3 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CreateLimitTask** + - 响应参数变更 + - `+ job_id` + - `- jobId` + - `* key_words: list -> string` + - **UpdateLimitTask** + - 响应参数变更 + - `+ job_id` + - `- jobId` + +### HuaweiCloud SDK HSS + +- _接口版本_ + - V5 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListApps** + - 请求参数变更 + - `* host_id: required -> optional` + +### HuaweiCloud SDK Meeting + +- _接口版本_ + - V1 +- _新增特性_ + - 支持接口`CheckCallNumberInConf` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK MetaStudio + +- _接口版本_ + - V1 +- _新增特性_ + - 支持接口`CreateBeautyPreviewJob`、`ShowBeautyPreviewJob`、`StartBeautyPreviewJob` +- _解决问题_ + - 无 +- _特性变更_ + - **List2dModelTrainingJob** + - 响应参数变更 + - `+ jobs.is_only_human_model` + - `+ jobs.state: enum value [WAIT_ASSET_SYNC]` + - **Create2dModelTrainingJob** + - 请求参数变更 + - `+ beauty_level` + - `+ is_only_human_model` + - 响应参数变更 + - `+ post_beauty_image_upload_url` + - `+ pre_beauty_image_upload_url` + - **Update2dModelTrainingJob** + - 请求参数变更 + - `+ beauty_level` + - `+ samples_basic_info.recommended_value` + - 响应参数变更 + - `+ post_beauty_image_upload_url` + - `+ pre_beauty_image_upload_url` + - **Show2dModelTrainingJob** + - 响应参数变更 + - `+ allocated_resource` + - `+ pre_beauty_image_download_url` + - `+ post_beauty_image_download_url` + - `+ inference_data_process_chat_action_mark_info` + - `+ is_only_human_model` + - `+ traning_video_mark_info` + - `+ beauty_level` + - `+ state: enum value [WAIT_ASSET_SYNC]` + - `+ samples.recommended_value` + - `+ inference_data_process_video_mark_info.chat_video_start_time` + - `+ inference_data_process_video_mark_info.chat_video_end_time` + - **ShowAsset** + - 响应参数变更 + - `* asset_extra_meta.image_meta.size: number -> integer` + - **UpdateDigitalAsset** + - 请求参数变更 + - `* asset_extra_meta.image_meta.size: number -> integer` + - 响应参数变更 + - `* asset_extra_meta.image_meta.size: number -> integer` + - **CreateDigitalAsset** + - 请求参数变更 + - `* asset_extra_meta.image_meta.size: number -> integer` + - **ListAssets** + - 响应参数变更 + - `* assets.asset_extra_meta.image_meta.size: number -> integer` + +### HuaweiCloud SDK SFSTurbo + +- _接口版本_ + - V1 +- _新增特性_ + - 支持接口`UpdateObsTargetAttributes`、`UpdateObsTargetPolicy`、`DeleteHpcCacheTask` +- _解决问题_ + - 无 +- _特性变更_ + - **CreateHpcCacheTask** + - 请求参数变更 + - `+ attributes` + - **ShowHpcCacheTask** + - 响应参数变更 + - `+ status: enum value [SUCCESS,DOING,FAIL]` + - **ShowLdapConfig** + - 响应参数变更 + - `+ schema` + - `+ search_timeout` + - `+ backup_url` + - `+ allow_local_user` + - **UpdateLdapConfig** + - 请求参数变更 + - `+ backup_url` + - `+ schema` + - `+ search_timeout` + - `+ allow_local_user` + - **CreateLdapConfig** + - 请求参数变更 + - `+ backup_url` + - `+ schema` + - `+ search_timeout` + - `+ allow_local_user` + - **ShowShare** + - 响应参数变更 + - `+ optional_endpoint` + - `+ statusDetail` + - `+ features` + - `+ instanceId` + - `+ instanceType` + - `+ hpc_bw` + - **ListSharedTags** + - 请求参数变更 + - `+ limit` + - `+ offset` + - **ListHpcCacheTasks** + - 请求参数变更 + - `+ start_time` + - `+ end_time` + - 响应参数变更 + - `+ tasks.status: enum value [SUCCESS,DOING,FAIL]` + - **ShowBackendTargetInfo** + - 响应参数变更 + - `+ obs.policy` + - `+ obs.attributes` + - **ListPermRules** + - 请求参数变更 + - `+ limit` + - `+ offset` + - **ShowJobDetail** + - 响应参数变更 + - `+ status: enum value [success,failed,waiting,running]` + - **ListShares** + - 响应参数变更 + - `+ optional_endpoint` + - `+ statusDetail` + - `+ features` + - `+ instanceId` + - `+ instanceType` + - `+ hpc_bw` + - `+ shares.optional_endpoint` + - `+ shares.hpc_bw` + - `+ shares.instanceId` + - `+ shares.instanceType` + - `+ shares.statusDetail` + - `+ shares.features` + - **CreateBackendTarget** + - 请求参数变更 + - `+ obs.policy` + - `+ obs.attributes` + - 响应参数变更 + - `+ obs.policy` + - `+ obs.attributes` + - **ListBackendTargets** + - 响应参数变更 + - `+ targets.obs.policy` + - `+ targets.obs.attributes` + - **SetHpcCacheBackend** + - 请求参数变更 + - `- update_hpc_cache.data.obs` + # 3.1.121 2024-11-07 ### HuaweiCloud SDK AAD diff --git a/VERSION b/VERSION index 46e9fbfc81..d65367016e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.121 +3.1.122 diff --git a/huaweicloud-sdk-aad/requirements.txt b/huaweicloud-sdk-aad/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-aad/requirements.txt +++ b/huaweicloud-sdk-aad/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-aad/setup.py b/huaweicloud-sdk-aad/setup.py index 95e0a87ef9..4ba76c644d 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-all/requirements.txt b/huaweicloud-sdk-all/requirements.txt index ffb69533a2..3401387adf 100644 --- a/huaweicloud-sdk-all/requirements.txt +++ b/huaweicloud-sdk-all/requirements.txt @@ -1,167 +1,167 @@ -huaweicloudsdkcore == 3.1.121 -huaweicloudsdkaad == 3.1.121 -huaweicloudsdkantiddos == 3.1.121 -huaweicloudsdkaom == 3.1.121 -huaweicloudsdkaos == 3.1.121 -huaweicloudsdkapig == 3.1.121 -huaweicloudsdkapm == 3.1.121 -huaweicloudsdkas == 3.1.121 -huaweicloudsdkasm == 3.1.121 -huaweicloudsdkbcs == 3.1.121 -huaweicloudsdkbms == 3.1.121 -huaweicloudsdkbss == 3.1.121 -huaweicloudsdkbssintl == 3.1.121 -huaweicloudsdkcae == 3.1.121 -huaweicloudsdkcampusgo == 3.1.121 -huaweicloudsdkcbh == 3.1.121 -huaweicloudsdkcbr == 3.1.121 -huaweicloudsdkcbs == 3.1.121 -huaweicloudsdkcc == 3.1.121 -huaweicloudsdkcce == 3.1.121 -huaweicloudsdkccm == 3.1.121 -huaweicloudsdkcdm == 3.1.121 -huaweicloudsdkcdn == 3.1.121 -huaweicloudsdkces == 3.1.121 -huaweicloudsdkcfw == 3.1.121 -huaweicloudsdkcgs == 3.1.121 -huaweicloudsdkclassroom == 3.1.121 -huaweicloudsdkcloudide == 3.1.121 -huaweicloudsdkcloudpond == 3.1.121 -huaweicloudsdkcloudrtc == 3.1.121 -huaweicloudsdkcloudtable == 3.1.121 -huaweicloudsdkcloudtest == 3.1.121 -huaweicloudsdkcoc == 3.1.121 -huaweicloudsdkcodeartsartifact == 3.1.121 -huaweicloudsdkcodeartsbuild == 3.1.121 -huaweicloudsdkcodeartscheck == 3.1.121 -huaweicloudsdkcodeartsdeploy == 3.1.121 -huaweicloudsdkcodeartsgovernance == 3.1.121 -huaweicloudsdkcodeartsinspector == 3.1.121 -huaweicloudsdkcodeartspipeline == 3.1.121 -huaweicloudsdkcodecraft == 3.1.121 -huaweicloudsdkcodehub == 3.1.121 -huaweicloudsdkconfig == 3.1.121 -huaweicloudsdkcph == 3.1.121 -huaweicloudsdkcpts == 3.1.121 -huaweicloudsdkcse == 3.1.121 -huaweicloudsdkcsms == 3.1.121 -huaweicloudsdkcss == 3.1.121 -huaweicloudsdkcts == 3.1.121 -huaweicloudsdkdas == 3.1.121 -huaweicloudsdkdataartsfabric == 3.1.121 -huaweicloudsdkdataartsfabricep == 3.1.121 -huaweicloudsdkdataartsstudio == 3.1.121 -huaweicloudsdkdbss == 3.1.121 -huaweicloudsdkdc == 3.1.121 -huaweicloudsdkdcs == 3.1.121 -huaweicloudsdkddm == 3.1.121 -huaweicloudsdkdds == 3.1.121 -huaweicloudsdkdeh == 3.1.121 -huaweicloudsdkdevstar == 3.1.121 -huaweicloudsdkdgc == 3.1.121 -huaweicloudsdkdis == 3.1.121 -huaweicloudsdkdlf == 3.1.121 -huaweicloudsdkdli == 3.1.121 -huaweicloudsdkdns == 3.1.121 -huaweicloudsdkdris == 3.1.121 -huaweicloudsdkdrs == 3.1.121 -huaweicloudsdkdsc == 3.1.121 -huaweicloudsdkdwr == 3.1.121 -huaweicloudsdkdws == 3.1.121 -huaweicloudsdkec == 3.1.121 -huaweicloudsdkecs == 3.1.121 -huaweicloudsdkedgesec == 3.1.121 -huaweicloudsdkeg == 3.1.121 -huaweicloudsdkeihealth == 3.1.121 -huaweicloudsdkeip == 3.1.121 -huaweicloudsdkelb == 3.1.121 -huaweicloudsdkeps == 3.1.121 -huaweicloudsdker == 3.1.121 -huaweicloudsdkevs == 3.1.121 -huaweicloudsdkfrs == 3.1.121 -huaweicloudsdkfunctiongraph == 3.1.121 -huaweicloudsdkga == 3.1.121 -huaweicloudsdkgaussdb == 3.1.121 -huaweicloudsdkgaussdbfornosql == 3.1.121 -huaweicloudsdkgaussdbforopengauss == 3.1.121 -huaweicloudsdkgeip == 3.1.121 -huaweicloudsdkges == 3.1.121 -huaweicloudsdkgsl == 3.1.121 -huaweicloudsdkhilens == 3.1.121 -huaweicloudsdkhss == 3.1.121 -huaweicloudsdkiam == 3.1.121 -huaweicloudsdkiamaccessanalyzer == 3.1.121 -huaweicloudsdkidentitycenter == 3.1.121 -huaweicloudsdkidentitycenterstore == 3.1.121 -huaweicloudsdkidme == 3.1.121 -huaweicloudsdkidmeclassicapi == 3.1.121 -huaweicloudsdkiec == 3.1.121 -huaweicloudsdkief == 3.1.121 -huaweicloudsdkimage == 3.1.121 -huaweicloudsdkimagesearch == 3.1.121 -huaweicloudsdkims == 3.1.121 -huaweicloudsdkiotanalytics == 3.1.121 -huaweicloudsdkiotda == 3.1.121 -huaweicloudsdkiotdm == 3.1.121 -huaweicloudsdkiotedge == 3.1.121 -huaweicloudsdkivs == 3.1.121 -huaweicloudsdkkafka == 3.1.121 -huaweicloudsdkkms == 3.1.121 -huaweicloudsdkkoomessage == 3.1.121 -huaweicloudsdkkps == 3.1.121 -huaweicloudsdklakeformation == 3.1.121 -huaweicloudsdklive == 3.1.121 -huaweicloudsdklts == 3.1.121 -huaweicloudsdkmapds == 3.1.121 -huaweicloudsdkmas == 3.1.121 -huaweicloudsdkmeeting == 3.1.121 -huaweicloudsdkmetastudio == 3.1.121 -huaweicloudsdkmoderation == 3.1.121 -huaweicloudsdkmpc == 3.1.121 -huaweicloudsdkmrs == 3.1.121 -huaweicloudsdkmsgsms == 3.1.121 -huaweicloudsdkmssi == 3.1.121 -huaweicloudsdknat == 3.1.121 -huaweicloudsdknlp == 3.1.121 -huaweicloudsdkobs == 3.1.121 -huaweicloudsdkocr == 3.1.121 -huaweicloudsdkoctopus == 3.1.121 -huaweicloudsdkoms == 3.1.121 -huaweicloudsdkoptverse == 3.1.121 -huaweicloudsdkorganizations == 3.1.121 -huaweicloudsdkorgid == 3.1.121 -huaweicloudsdkoroas == 3.1.121 -huaweicloudsdkosm == 3.1.121 -huaweicloudsdkpangulargemodels == 3.1.121 -huaweicloudsdkprojectman == 3.1.121 -huaweicloudsdkrabbitmq == 3.1.121 -huaweicloudsdkram == 3.1.121 -huaweicloudsdkrds == 3.1.121 -huaweicloudsdkres == 3.1.121 -huaweicloudsdkrgc == 3.1.121 -huaweicloudsdkrms == 3.1.121 -huaweicloudsdkrocketmq == 3.1.121 -huaweicloudsdkroma == 3.1.121 -huaweicloudsdksa == 3.1.121 -huaweicloudsdkscm == 3.1.121 -huaweicloudsdksdrs == 3.1.121 -huaweicloudsdksecmaster == 3.1.121 -huaweicloudsdkservicestage == 3.1.121 -huaweicloudsdksfsturbo == 3.1.121 -huaweicloudsdksis == 3.1.121 -huaweicloudsdksmn == 3.1.121 -huaweicloudsdksms == 3.1.121 -huaweicloudsdksts == 3.1.121 -huaweicloudsdkswr == 3.1.121 -huaweicloudsdktics == 3.1.121 -huaweicloudsdktms == 3.1.121 -huaweicloudsdkugo == 3.1.121 -huaweicloudsdkvas == 3.1.121 -huaweicloudsdkvcm == 3.1.121 -huaweicloudsdkvod == 3.1.121 -huaweicloudsdkvpc == 3.1.121 -huaweicloudsdkvpcep == 3.1.121 -huaweicloudsdkvpn == 3.1.121 -huaweicloudsdkwaf == 3.1.121 -huaweicloudsdkworkspace == 3.1.121 -huaweicloudsdkworkspaceapp == 3.1.121 +huaweicloudsdkcore == 3.1.122 +huaweicloudsdkaad == 3.1.122 +huaweicloudsdkantiddos == 3.1.122 +huaweicloudsdkaom == 3.1.122 +huaweicloudsdkaos == 3.1.122 +huaweicloudsdkapig == 3.1.122 +huaweicloudsdkapm == 3.1.122 +huaweicloudsdkas == 3.1.122 +huaweicloudsdkasm == 3.1.122 +huaweicloudsdkbcs == 3.1.122 +huaweicloudsdkbms == 3.1.122 +huaweicloudsdkbss == 3.1.122 +huaweicloudsdkbssintl == 3.1.122 +huaweicloudsdkcae == 3.1.122 +huaweicloudsdkcampusgo == 3.1.122 +huaweicloudsdkcbh == 3.1.122 +huaweicloudsdkcbr == 3.1.122 +huaweicloudsdkcbs == 3.1.122 +huaweicloudsdkcc == 3.1.122 +huaweicloudsdkcce == 3.1.122 +huaweicloudsdkccm == 3.1.122 +huaweicloudsdkcdm == 3.1.122 +huaweicloudsdkcdn == 3.1.122 +huaweicloudsdkces == 3.1.122 +huaweicloudsdkcfw == 3.1.122 +huaweicloudsdkcgs == 3.1.122 +huaweicloudsdkclassroom == 3.1.122 +huaweicloudsdkcloudide == 3.1.122 +huaweicloudsdkcloudpond == 3.1.122 +huaweicloudsdkcloudrtc == 3.1.122 +huaweicloudsdkcloudtable == 3.1.122 +huaweicloudsdkcloudtest == 3.1.122 +huaweicloudsdkcoc == 3.1.122 +huaweicloudsdkcodeartsartifact == 3.1.122 +huaweicloudsdkcodeartsbuild == 3.1.122 +huaweicloudsdkcodeartscheck == 3.1.122 +huaweicloudsdkcodeartsdeploy == 3.1.122 +huaweicloudsdkcodeartsgovernance == 3.1.122 +huaweicloudsdkcodeartsinspector == 3.1.122 +huaweicloudsdkcodeartspipeline == 3.1.122 +huaweicloudsdkcodecraft == 3.1.122 +huaweicloudsdkcodehub == 3.1.122 +huaweicloudsdkconfig == 3.1.122 +huaweicloudsdkcph == 3.1.122 +huaweicloudsdkcpts == 3.1.122 +huaweicloudsdkcse == 3.1.122 +huaweicloudsdkcsms == 3.1.122 +huaweicloudsdkcss == 3.1.122 +huaweicloudsdkcts == 3.1.122 +huaweicloudsdkdas == 3.1.122 +huaweicloudsdkdataartsfabric == 3.1.122 +huaweicloudsdkdataartsfabricep == 3.1.122 +huaweicloudsdkdataartsstudio == 3.1.122 +huaweicloudsdkdbss == 3.1.122 +huaweicloudsdkdc == 3.1.122 +huaweicloudsdkdcs == 3.1.122 +huaweicloudsdkddm == 3.1.122 +huaweicloudsdkdds == 3.1.122 +huaweicloudsdkdeh == 3.1.122 +huaweicloudsdkdevstar == 3.1.122 +huaweicloudsdkdgc == 3.1.122 +huaweicloudsdkdis == 3.1.122 +huaweicloudsdkdlf == 3.1.122 +huaweicloudsdkdli == 3.1.122 +huaweicloudsdkdns == 3.1.122 +huaweicloudsdkdris == 3.1.122 +huaweicloudsdkdrs == 3.1.122 +huaweicloudsdkdsc == 3.1.122 +huaweicloudsdkdwr == 3.1.122 +huaweicloudsdkdws == 3.1.122 +huaweicloudsdkec == 3.1.122 +huaweicloudsdkecs == 3.1.122 +huaweicloudsdkedgesec == 3.1.122 +huaweicloudsdkeg == 3.1.122 +huaweicloudsdkeihealth == 3.1.122 +huaweicloudsdkeip == 3.1.122 +huaweicloudsdkelb == 3.1.122 +huaweicloudsdkeps == 3.1.122 +huaweicloudsdker == 3.1.122 +huaweicloudsdkevs == 3.1.122 +huaweicloudsdkfrs == 3.1.122 +huaweicloudsdkfunctiongraph == 3.1.122 +huaweicloudsdkga == 3.1.122 +huaweicloudsdkgaussdb == 3.1.122 +huaweicloudsdkgaussdbfornosql == 3.1.122 +huaweicloudsdkgaussdbforopengauss == 3.1.122 +huaweicloudsdkgeip == 3.1.122 +huaweicloudsdkges == 3.1.122 +huaweicloudsdkgsl == 3.1.122 +huaweicloudsdkhilens == 3.1.122 +huaweicloudsdkhss == 3.1.122 +huaweicloudsdkiam == 3.1.122 +huaweicloudsdkiamaccessanalyzer == 3.1.122 +huaweicloudsdkidentitycenter == 3.1.122 +huaweicloudsdkidentitycenterstore == 3.1.122 +huaweicloudsdkidme == 3.1.122 +huaweicloudsdkidmeclassicapi == 3.1.122 +huaweicloudsdkiec == 3.1.122 +huaweicloudsdkief == 3.1.122 +huaweicloudsdkimage == 3.1.122 +huaweicloudsdkimagesearch == 3.1.122 +huaweicloudsdkims == 3.1.122 +huaweicloudsdkiotanalytics == 3.1.122 +huaweicloudsdkiotda == 3.1.122 +huaweicloudsdkiotdm == 3.1.122 +huaweicloudsdkiotedge == 3.1.122 +huaweicloudsdkivs == 3.1.122 +huaweicloudsdkkafka == 3.1.122 +huaweicloudsdkkms == 3.1.122 +huaweicloudsdkkoomessage == 3.1.122 +huaweicloudsdkkps == 3.1.122 +huaweicloudsdklakeformation == 3.1.122 +huaweicloudsdklive == 3.1.122 +huaweicloudsdklts == 3.1.122 +huaweicloudsdkmapds == 3.1.122 +huaweicloudsdkmas == 3.1.122 +huaweicloudsdkmeeting == 3.1.122 +huaweicloudsdkmetastudio == 3.1.122 +huaweicloudsdkmoderation == 3.1.122 +huaweicloudsdkmpc == 3.1.122 +huaweicloudsdkmrs == 3.1.122 +huaweicloudsdkmsgsms == 3.1.122 +huaweicloudsdkmssi == 3.1.122 +huaweicloudsdknat == 3.1.122 +huaweicloudsdknlp == 3.1.122 +huaweicloudsdkobs == 3.1.122 +huaweicloudsdkocr == 3.1.122 +huaweicloudsdkoctopus == 3.1.122 +huaweicloudsdkoms == 3.1.122 +huaweicloudsdkoptverse == 3.1.122 +huaweicloudsdkorganizations == 3.1.122 +huaweicloudsdkorgid == 3.1.122 +huaweicloudsdkoroas == 3.1.122 +huaweicloudsdkosm == 3.1.122 +huaweicloudsdkpangulargemodels == 3.1.122 +huaweicloudsdkprojectman == 3.1.122 +huaweicloudsdkrabbitmq == 3.1.122 +huaweicloudsdkram == 3.1.122 +huaweicloudsdkrds == 3.1.122 +huaweicloudsdkres == 3.1.122 +huaweicloudsdkrgc == 3.1.122 +huaweicloudsdkrms == 3.1.122 +huaweicloudsdkrocketmq == 3.1.122 +huaweicloudsdkroma == 3.1.122 +huaweicloudsdksa == 3.1.122 +huaweicloudsdkscm == 3.1.122 +huaweicloudsdksdrs == 3.1.122 +huaweicloudsdksecmaster == 3.1.122 +huaweicloudsdkservicestage == 3.1.122 +huaweicloudsdksfsturbo == 3.1.122 +huaweicloudsdksis == 3.1.122 +huaweicloudsdksmn == 3.1.122 +huaweicloudsdksms == 3.1.122 +huaweicloudsdksts == 3.1.122 +huaweicloudsdkswr == 3.1.122 +huaweicloudsdktics == 3.1.122 +huaweicloudsdktms == 3.1.122 +huaweicloudsdkugo == 3.1.122 +huaweicloudsdkvas == 3.1.122 +huaweicloudsdkvcm == 3.1.122 +huaweicloudsdkvod == 3.1.122 +huaweicloudsdkvpc == 3.1.122 +huaweicloudsdkvpcep == 3.1.122 +huaweicloudsdkvpn == 3.1.122 +huaweicloudsdkwaf == 3.1.122 +huaweicloudsdkworkspace == 3.1.122 +huaweicloudsdkworkspaceapp == 3.1.122 diff --git a/huaweicloud-sdk-all/setup.py b/huaweicloud-sdk-all/setup.py index a23721480d..68c357ff4a 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -34,173 +34,173 @@ LONG_DESCRIPTION = f.read() INSTALL_REQUIRES = [ - 'huaweicloudsdkcore==3.1.121', - 'huaweicloudsdkaad==3.1.121', - 'huaweicloudsdkantiddos==3.1.121', - 'huaweicloudsdkaom==3.1.121', - 'huaweicloudsdkaos==3.1.121', - 'huaweicloudsdkapig==3.1.121', - 'huaweicloudsdkapm==3.1.121', - 'huaweicloudsdkas==3.1.121', - 'huaweicloudsdkasm==3.1.121', - 'huaweicloudsdkbcs==3.1.121', - 'huaweicloudsdkbms==3.1.121', - 'huaweicloudsdkbss==3.1.121', - 'huaweicloudsdkbssintl==3.1.121', - 'huaweicloudsdkcae==3.1.121', - 'huaweicloudsdkcampusgo==3.1.121', - 'huaweicloudsdkcbh==3.1.121', - 'huaweicloudsdkcbr==3.1.121', - 'huaweicloudsdkcbs==3.1.121', - 'huaweicloudsdkcc==3.1.121', - 'huaweicloudsdkcce==3.1.121', - 'huaweicloudsdkccm==3.1.121', - 'huaweicloudsdkcdm==3.1.121', - 'huaweicloudsdkcdn==3.1.121', - 'huaweicloudsdkces==3.1.121', - 'huaweicloudsdkcfw==3.1.121', - 'huaweicloudsdkcgs==3.1.121', - 'huaweicloudsdkclassroom==3.1.121', - 'huaweicloudsdkcloudide==3.1.121', - 'huaweicloudsdkcloudpond==3.1.121', - 'huaweicloudsdkcloudrtc==3.1.121', - 'huaweicloudsdkcloudtable==3.1.121', - 'huaweicloudsdkcloudtest==3.1.121', - 'huaweicloudsdkcoc==3.1.121', - 'huaweicloudsdkcodeartsartifact==3.1.121', - 'huaweicloudsdkcodeartsbuild==3.1.121', - 'huaweicloudsdkcodeartscheck==3.1.121', - 'huaweicloudsdkcodeartsdeploy==3.1.121', - 'huaweicloudsdkcodeartsgovernance==3.1.121', - 'huaweicloudsdkcodeartsinspector==3.1.121', - 'huaweicloudsdkcodeartspipeline==3.1.121', - 'huaweicloudsdkcodecraft==3.1.121', - 'huaweicloudsdkcodehub==3.1.121', - 'huaweicloudsdkconfig==3.1.121', - 'huaweicloudsdkcph==3.1.121', - 'huaweicloudsdkcpts==3.1.121', - 'huaweicloudsdkcse==3.1.121', - 'huaweicloudsdkcsms==3.1.121', - 'huaweicloudsdkcss==3.1.121', - 'huaweicloudsdkcts==3.1.121', - 'huaweicloudsdkdas==3.1.121', - 'huaweicloudsdkdataartsfabric==3.1.121', - 'huaweicloudsdkdataartsfabricep==3.1.121', - 'huaweicloudsdkdataartsstudio==3.1.121', - 'huaweicloudsdkdbss==3.1.121', - 'huaweicloudsdkdc==3.1.121', - 'huaweicloudsdkdcs==3.1.121', - 'huaweicloudsdkddm==3.1.121', - 'huaweicloudsdkdds==3.1.121', - 'huaweicloudsdkdeh==3.1.121', - 'huaweicloudsdkdevstar==3.1.121', - 'huaweicloudsdkdgc==3.1.121', - 'huaweicloudsdkdis==3.1.121', - 'huaweicloudsdkdlf==3.1.121', - 'huaweicloudsdkdli==3.1.121', - 'huaweicloudsdkdns==3.1.121', - 'huaweicloudsdkdris==3.1.121', - 'huaweicloudsdkdrs==3.1.121', - 'huaweicloudsdkdsc==3.1.121', - 'huaweicloudsdkdwr==3.1.121', - 'huaweicloudsdkdws==3.1.121', - 'huaweicloudsdkec==3.1.121', - 'huaweicloudsdkecs==3.1.121', - 'huaweicloudsdkedgesec==3.1.121', - 'huaweicloudsdkeg==3.1.121', - 'huaweicloudsdkeihealth==3.1.121', - 'huaweicloudsdkeip==3.1.121', - 'huaweicloudsdkelb==3.1.121', - 'huaweicloudsdkeps==3.1.121', - 'huaweicloudsdker==3.1.121', - 'huaweicloudsdkevs==3.1.121', - 'huaweicloudsdkfrs==3.1.121', - 'huaweicloudsdkfunctiongraph==3.1.121', - 'huaweicloudsdkga==3.1.121', - 'huaweicloudsdkgaussdb==3.1.121', - 'huaweicloudsdkgaussdbfornosql==3.1.121', - 'huaweicloudsdkgaussdbforopengauss==3.1.121', - 'huaweicloudsdkgeip==3.1.121', - 'huaweicloudsdkges==3.1.121', - 'huaweicloudsdkgsl==3.1.121', - 'huaweicloudsdkhilens==3.1.121', - 'huaweicloudsdkhss==3.1.121', - 'huaweicloudsdkiam==3.1.121', - 'huaweicloudsdkiamaccessanalyzer==3.1.121', - 'huaweicloudsdkidentitycenter==3.1.121', - 'huaweicloudsdkidentitycenterstore==3.1.121', - 'huaweicloudsdkidme==3.1.121', - 'huaweicloudsdkidmeclassicapi==3.1.121', - 'huaweicloudsdkiec==3.1.121', - 'huaweicloudsdkief==3.1.121', - 'huaweicloudsdkimage==3.1.121', - 'huaweicloudsdkimagesearch==3.1.121', - 'huaweicloudsdkims==3.1.121', - 'huaweicloudsdkiotanalytics==3.1.121', - 'huaweicloudsdkiotda==3.1.121', - 'huaweicloudsdkiotdm==3.1.121', - 'huaweicloudsdkiotedge==3.1.121', - 'huaweicloudsdkivs==3.1.121', - 'huaweicloudsdkkafka==3.1.121', - 'huaweicloudsdkkms==3.1.121', - 'huaweicloudsdkkoomessage==3.1.121', - 'huaweicloudsdkkps==3.1.121', - 'huaweicloudsdklakeformation==3.1.121', - 'huaweicloudsdklive==3.1.121', - 'huaweicloudsdklts==3.1.121', - 'huaweicloudsdkmapds==3.1.121', - 'huaweicloudsdkmas==3.1.121', - 'huaweicloudsdkmeeting==3.1.121', - 'huaweicloudsdkmetastudio==3.1.121', - 'huaweicloudsdkmoderation==3.1.121', - 'huaweicloudsdkmpc==3.1.121', - 'huaweicloudsdkmrs==3.1.121', - 'huaweicloudsdkmsgsms==3.1.121', - 'huaweicloudsdkmssi==3.1.121', - 'huaweicloudsdknat==3.1.121', - 'huaweicloudsdknlp==3.1.121', - 'huaweicloudsdkobs==3.1.121', - 'huaweicloudsdkocr==3.1.121', - 'huaweicloudsdkoctopus==3.1.121', - 'huaweicloudsdkoms==3.1.121', - 'huaweicloudsdkoptverse==3.1.121', - 'huaweicloudsdkorganizations==3.1.121', - 'huaweicloudsdkorgid==3.1.121', - 'huaweicloudsdkoroas==3.1.121', - 'huaweicloudsdkosm==3.1.121', - 'huaweicloudsdkpangulargemodels==3.1.121', - 'huaweicloudsdkprojectman==3.1.121', - 'huaweicloudsdkrabbitmq==3.1.121', - 'huaweicloudsdkram==3.1.121', - 'huaweicloudsdkrds==3.1.121', - 'huaweicloudsdkres==3.1.121', - 'huaweicloudsdkrgc==3.1.121', - 'huaweicloudsdkrms==3.1.121', - 'huaweicloudsdkrocketmq==3.1.121', - 'huaweicloudsdkroma==3.1.121', - 'huaweicloudsdksa==3.1.121', - 'huaweicloudsdkscm==3.1.121', - 'huaweicloudsdksdrs==3.1.121', - 'huaweicloudsdksecmaster==3.1.121', - 'huaweicloudsdkservicestage==3.1.121', - 'huaweicloudsdksfsturbo==3.1.121', - 'huaweicloudsdksis==3.1.121', - 'huaweicloudsdksmn==3.1.121', - 'huaweicloudsdksms==3.1.121', - 'huaweicloudsdksts==3.1.121', - 'huaweicloudsdkswr==3.1.121', - 'huaweicloudsdktics==3.1.121', - 'huaweicloudsdktms==3.1.121', - 'huaweicloudsdkugo==3.1.121', - 'huaweicloudsdkvas==3.1.121', - 'huaweicloudsdkvcm==3.1.121', - 'huaweicloudsdkvod==3.1.121', - 'huaweicloudsdkvpc==3.1.121', - 'huaweicloudsdkvpcep==3.1.121', - 'huaweicloudsdkvpn==3.1.121', - 'huaweicloudsdkwaf==3.1.121', - 'huaweicloudsdkworkspace==3.1.121', - 'huaweicloudsdkworkspaceapp==3.1.121', + 'huaweicloudsdkcore==3.1.122', + 'huaweicloudsdkaad==3.1.122', + 'huaweicloudsdkantiddos==3.1.122', + 'huaweicloudsdkaom==3.1.122', + 'huaweicloudsdkaos==3.1.122', + 'huaweicloudsdkapig==3.1.122', + 'huaweicloudsdkapm==3.1.122', + 'huaweicloudsdkas==3.1.122', + 'huaweicloudsdkasm==3.1.122', + 'huaweicloudsdkbcs==3.1.122', + 'huaweicloudsdkbms==3.1.122', + 'huaweicloudsdkbss==3.1.122', + 'huaweicloudsdkbssintl==3.1.122', + 'huaweicloudsdkcae==3.1.122', + 'huaweicloudsdkcampusgo==3.1.122', + 'huaweicloudsdkcbh==3.1.122', + 'huaweicloudsdkcbr==3.1.122', + 'huaweicloudsdkcbs==3.1.122', + 'huaweicloudsdkcc==3.1.122', + 'huaweicloudsdkcce==3.1.122', + 'huaweicloudsdkccm==3.1.122', + 'huaweicloudsdkcdm==3.1.122', + 'huaweicloudsdkcdn==3.1.122', + 'huaweicloudsdkces==3.1.122', + 'huaweicloudsdkcfw==3.1.122', + 'huaweicloudsdkcgs==3.1.122', + 'huaweicloudsdkclassroom==3.1.122', + 'huaweicloudsdkcloudide==3.1.122', + 'huaweicloudsdkcloudpond==3.1.122', + 'huaweicloudsdkcloudrtc==3.1.122', + 'huaweicloudsdkcloudtable==3.1.122', + 'huaweicloudsdkcloudtest==3.1.122', + 'huaweicloudsdkcoc==3.1.122', + 'huaweicloudsdkcodeartsartifact==3.1.122', + 'huaweicloudsdkcodeartsbuild==3.1.122', + 'huaweicloudsdkcodeartscheck==3.1.122', + 'huaweicloudsdkcodeartsdeploy==3.1.122', + 'huaweicloudsdkcodeartsgovernance==3.1.122', + 'huaweicloudsdkcodeartsinspector==3.1.122', + 'huaweicloudsdkcodeartspipeline==3.1.122', + 'huaweicloudsdkcodecraft==3.1.122', + 'huaweicloudsdkcodehub==3.1.122', + 'huaweicloudsdkconfig==3.1.122', + 'huaweicloudsdkcph==3.1.122', + 'huaweicloudsdkcpts==3.1.122', + 'huaweicloudsdkcse==3.1.122', + 'huaweicloudsdkcsms==3.1.122', + 'huaweicloudsdkcss==3.1.122', + 'huaweicloudsdkcts==3.1.122', + 'huaweicloudsdkdas==3.1.122', + 'huaweicloudsdkdataartsfabric==3.1.122', + 'huaweicloudsdkdataartsfabricep==3.1.122', + 'huaweicloudsdkdataartsstudio==3.1.122', + 'huaweicloudsdkdbss==3.1.122', + 'huaweicloudsdkdc==3.1.122', + 'huaweicloudsdkdcs==3.1.122', + 'huaweicloudsdkddm==3.1.122', + 'huaweicloudsdkdds==3.1.122', + 'huaweicloudsdkdeh==3.1.122', + 'huaweicloudsdkdevstar==3.1.122', + 'huaweicloudsdkdgc==3.1.122', + 'huaweicloudsdkdis==3.1.122', + 'huaweicloudsdkdlf==3.1.122', + 'huaweicloudsdkdli==3.1.122', + 'huaweicloudsdkdns==3.1.122', + 'huaweicloudsdkdris==3.1.122', + 'huaweicloudsdkdrs==3.1.122', + 'huaweicloudsdkdsc==3.1.122', + 'huaweicloudsdkdwr==3.1.122', + 'huaweicloudsdkdws==3.1.122', + 'huaweicloudsdkec==3.1.122', + 'huaweicloudsdkecs==3.1.122', + 'huaweicloudsdkedgesec==3.1.122', + 'huaweicloudsdkeg==3.1.122', + 'huaweicloudsdkeihealth==3.1.122', + 'huaweicloudsdkeip==3.1.122', + 'huaweicloudsdkelb==3.1.122', + 'huaweicloudsdkeps==3.1.122', + 'huaweicloudsdker==3.1.122', + 'huaweicloudsdkevs==3.1.122', + 'huaweicloudsdkfrs==3.1.122', + 'huaweicloudsdkfunctiongraph==3.1.122', + 'huaweicloudsdkga==3.1.122', + 'huaweicloudsdkgaussdb==3.1.122', + 'huaweicloudsdkgaussdbfornosql==3.1.122', + 'huaweicloudsdkgaussdbforopengauss==3.1.122', + 'huaweicloudsdkgeip==3.1.122', + 'huaweicloudsdkges==3.1.122', + 'huaweicloudsdkgsl==3.1.122', + 'huaweicloudsdkhilens==3.1.122', + 'huaweicloudsdkhss==3.1.122', + 'huaweicloudsdkiam==3.1.122', + 'huaweicloudsdkiamaccessanalyzer==3.1.122', + 'huaweicloudsdkidentitycenter==3.1.122', + 'huaweicloudsdkidentitycenterstore==3.1.122', + 'huaweicloudsdkidme==3.1.122', + 'huaweicloudsdkidmeclassicapi==3.1.122', + 'huaweicloudsdkiec==3.1.122', + 'huaweicloudsdkief==3.1.122', + 'huaweicloudsdkimage==3.1.122', + 'huaweicloudsdkimagesearch==3.1.122', + 'huaweicloudsdkims==3.1.122', + 'huaweicloudsdkiotanalytics==3.1.122', + 'huaweicloudsdkiotda==3.1.122', + 'huaweicloudsdkiotdm==3.1.122', + 'huaweicloudsdkiotedge==3.1.122', + 'huaweicloudsdkivs==3.1.122', + 'huaweicloudsdkkafka==3.1.122', + 'huaweicloudsdkkms==3.1.122', + 'huaweicloudsdkkoomessage==3.1.122', + 'huaweicloudsdkkps==3.1.122', + 'huaweicloudsdklakeformation==3.1.122', + 'huaweicloudsdklive==3.1.122', + 'huaweicloudsdklts==3.1.122', + 'huaweicloudsdkmapds==3.1.122', + 'huaweicloudsdkmas==3.1.122', + 'huaweicloudsdkmeeting==3.1.122', + 'huaweicloudsdkmetastudio==3.1.122', + 'huaweicloudsdkmoderation==3.1.122', + 'huaweicloudsdkmpc==3.1.122', + 'huaweicloudsdkmrs==3.1.122', + 'huaweicloudsdkmsgsms==3.1.122', + 'huaweicloudsdkmssi==3.1.122', + 'huaweicloudsdknat==3.1.122', + 'huaweicloudsdknlp==3.1.122', + 'huaweicloudsdkobs==3.1.122', + 'huaweicloudsdkocr==3.1.122', + 'huaweicloudsdkoctopus==3.1.122', + 'huaweicloudsdkoms==3.1.122', + 'huaweicloudsdkoptverse==3.1.122', + 'huaweicloudsdkorganizations==3.1.122', + 'huaweicloudsdkorgid==3.1.122', + 'huaweicloudsdkoroas==3.1.122', + 'huaweicloudsdkosm==3.1.122', + 'huaweicloudsdkpangulargemodels==3.1.122', + 'huaweicloudsdkprojectman==3.1.122', + 'huaweicloudsdkrabbitmq==3.1.122', + 'huaweicloudsdkram==3.1.122', + 'huaweicloudsdkrds==3.1.122', + 'huaweicloudsdkres==3.1.122', + 'huaweicloudsdkrgc==3.1.122', + 'huaweicloudsdkrms==3.1.122', + 'huaweicloudsdkrocketmq==3.1.122', + 'huaweicloudsdkroma==3.1.122', + 'huaweicloudsdksa==3.1.122', + 'huaweicloudsdkscm==3.1.122', + 'huaweicloudsdksdrs==3.1.122', + 'huaweicloudsdksecmaster==3.1.122', + 'huaweicloudsdkservicestage==3.1.122', + 'huaweicloudsdksfsturbo==3.1.122', + 'huaweicloudsdksis==3.1.122', + 'huaweicloudsdksmn==3.1.122', + 'huaweicloudsdksms==3.1.122', + 'huaweicloudsdksts==3.1.122', + 'huaweicloudsdkswr==3.1.122', + 'huaweicloudsdktics==3.1.122', + 'huaweicloudsdktms==3.1.122', + 'huaweicloudsdkugo==3.1.122', + 'huaweicloudsdkvas==3.1.122', + 'huaweicloudsdkvcm==3.1.122', + 'huaweicloudsdkvod==3.1.122', + 'huaweicloudsdkvpc==3.1.122', + 'huaweicloudsdkvpcep==3.1.122', + 'huaweicloudsdkvpn==3.1.122', + 'huaweicloudsdkwaf==3.1.122', + 'huaweicloudsdkworkspace==3.1.122', + 'huaweicloudsdkworkspaceapp==3.1.122', ] OPTIONS = { diff --git a/huaweicloud-sdk-antiddos/requirements.txt b/huaweicloud-sdk-antiddos/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-antiddos/requirements.txt +++ b/huaweicloud-sdk-antiddos/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-antiddos/setup.py b/huaweicloud-sdk-antiddos/setup.py index 4dea1d5d37..361da2a104 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/aom_async_client.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/aom_async_client.py index 2e88c7b10d..0e4a6d3e56 100644 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/aom_async_client.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/aom_async_client.py @@ -2004,8 +2004,8 @@ def _push_events_http_info(self, request): query_params.append(('action', local_var_params['action'])) header_params = {} - if 'x_enterprise_prject_id' in local_var_params: - header_params['x-enterprise-prject-id'] = local_var_params['x_enterprise_prject_id'] + if 'enterprise_project_id' in local_var_params: + header_params['enterprise-project-id'] = local_var_params['enterprise_project_id'] form_params = {} diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/aom_client.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/aom_client.py index 7ee92a2bb1..a7c56496d6 100644 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/aom_client.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/aom_client.py @@ -2004,8 +2004,8 @@ def _push_events_http_info(cls, request): query_params.append(('action', local_var_params['action'])) header_params = {} - if 'x_enterprise_prject_id' in local_var_params: - header_params['x-enterprise-prject-id'] = local_var_params['x_enterprise_prject_id'] + if 'enterprise_project_id' in local_var_params: + header_params['enterprise-project-id'] = local_var_params['enterprise_project_id'] form_params = {} diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/list_prom_instance_request.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/list_prom_instance_request.py index 417635b79a..a0628424fd 100644 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/list_prom_instance_request.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/list_prom_instance_request.py @@ -66,8 +66,7 @@ def __init__(self, prom_id=None, prom_type=None, cce_cluster_enable=None, prom_s self.cce_cluster_enable = cce_cluster_enable if prom_status is not None: self.prom_status = prom_status - if enterprise_project_id is not None: - self.enterprise_project_id = enterprise_project_id + self.enterprise_project_id = enterprise_project_id @property def prom_id(self): diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/push_events_request.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/push_events_request.py index ca820c357d..05f8735d5d 100644 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/push_events_request.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/push_events_request.py @@ -17,24 +17,24 @@ class PushEventsRequest: sensitive_list = [] openapi_types = { - 'x_enterprise_prject_id': 'str', + 'enterprise_project_id': 'str', 'action': 'str', 'body': 'EventList' } attribute_map = { - 'x_enterprise_prject_id': 'x-enterprise-prject-id', + 'enterprise_project_id': 'enterprise-project-id', 'action': 'action', 'body': 'body' } - def __init__(self, x_enterprise_prject_id=None, action=None, body=None): + def __init__(self, enterprise_project_id=None, action=None, body=None): """PushEventsRequest The model defined in huaweicloud sdk - :param x_enterprise_prject_id: 告警所属的企业项目id。 - :type x_enterprise_prject_id: str + :param enterprise_project_id: 告警所属的企业项目id。 + :type enterprise_project_id: str :param action: 接口请求动作。action=clear代表清除告警,不传或者传其他值默认为上报动作。 :type action: str :param body: Body of the PushEventsRequest @@ -43,39 +43,39 @@ def __init__(self, x_enterprise_prject_id=None, action=None, body=None): - self._x_enterprise_prject_id = None + self._enterprise_project_id = None self._action = None self._body = None self.discriminator = None - if x_enterprise_prject_id is not None: - self.x_enterprise_prject_id = x_enterprise_prject_id + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id if action is not None: self.action = action if body is not None: self.body = body @property - def x_enterprise_prject_id(self): - """Gets the x_enterprise_prject_id of this PushEventsRequest. + def enterprise_project_id(self): + """Gets the enterprise_project_id of this PushEventsRequest. 告警所属的企业项目id。 - :return: The x_enterprise_prject_id of this PushEventsRequest. + :return: The enterprise_project_id of this PushEventsRequest. :rtype: str """ - return self._x_enterprise_prject_id + return self._enterprise_project_id - @x_enterprise_prject_id.setter - def x_enterprise_prject_id(self, x_enterprise_prject_id): - """Sets the x_enterprise_prject_id of this PushEventsRequest. + @enterprise_project_id.setter + def enterprise_project_id(self, enterprise_project_id): + """Sets the enterprise_project_id of this PushEventsRequest. 告警所属的企业项目id。 - :param x_enterprise_prject_id: The x_enterprise_prject_id of this PushEventsRequest. - :type x_enterprise_prject_id: str + :param enterprise_project_id: The enterprise_project_id of this PushEventsRequest. + :type enterprise_project_id: str """ - self._x_enterprise_prject_id = x_enterprise_prject_id + self._enterprise_project_id = enterprise_project_id @property def action(self): diff --git a/huaweicloud-sdk-aom/requirements.txt b/huaweicloud-sdk-aom/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-aom/requirements.txt +++ b/huaweicloud-sdk-aom/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-aom/setup.py b/huaweicloud-sdk-aom/setup.py index ab9ab588ea..c8ea98f7af 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-aos/requirements.txt b/huaweicloud-sdk-aos/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-aos/requirements.txt +++ b/huaweicloud-sdk-aos/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-aos/setup.py b/huaweicloud-sdk-aos/setup.py index 71265f7961..2f5fd628d2 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-apig/requirements.txt b/huaweicloud-sdk-apig/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-apig/requirements.txt +++ b/huaweicloud-sdk-apig/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-apig/setup.py b/huaweicloud-sdk-apig/setup.py index 9d8ba94be6..902673605e 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-apm/requirements.txt b/huaweicloud-sdk-apm/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-apm/requirements.txt +++ b/huaweicloud-sdk-apm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-apm/setup.py b/huaweicloud-sdk-apm/setup.py index 0f5303206f..d42dda22f1 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-as/requirements.txt b/huaweicloud-sdk-as/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-as/requirements.txt +++ b/huaweicloud-sdk-as/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-as/setup.py b/huaweicloud-sdk-as/setup.py index 7bff865b7d..09100202fa 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-asm/requirements.txt b/huaweicloud-sdk-asm/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-asm/requirements.txt +++ b/huaweicloud-sdk-asm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-asm/setup.py b/huaweicloud-sdk-asm/setup.py index ea6660b826..a75e4364ea 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bcs/requirements.txt b/huaweicloud-sdk-bcs/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-bcs/requirements.txt +++ b/huaweicloud-sdk-bcs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-bcs/setup.py b/huaweicloud-sdk-bcs/setup.py index e9187467d5..695eacc49e 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bms/requirements.txt b/huaweicloud-sdk-bms/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-bms/requirements.txt +++ b/huaweicloud-sdk-bms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-bms/setup.py b/huaweicloud-sdk-bms/setup.py index a3dd0a1e45..d3c53da35d 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bss/requirements.txt b/huaweicloud-sdk-bss/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-bss/requirements.txt +++ b/huaweicloud-sdk-bss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-bss/setup.py b/huaweicloud-sdk-bss/setup.py index 9d543f3d70..8953b444c0 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bssintl/requirements.txt b/huaweicloud-sdk-bssintl/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-bssintl/requirements.txt +++ b/huaweicloud-sdk-bssintl/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-bssintl/setup.py b/huaweicloud-sdk-bssintl/setup.py index a3e1e799b3..884eb1d5a1 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cae/requirements.txt b/huaweicloud-sdk-cae/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-cae/requirements.txt +++ b/huaweicloud-sdk-cae/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-cae/setup.py b/huaweicloud-sdk-cae/setup.py index 6fcaf0a246..6e72effbcc 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-campusgo/requirements.txt b/huaweicloud-sdk-campusgo/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-campusgo/requirements.txt +++ b/huaweicloud-sdk-campusgo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-campusgo/setup.py b/huaweicloud-sdk-campusgo/setup.py index 7f72c3815f..3838936850 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbh/requirements.txt b/huaweicloud-sdk-cbh/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-cbh/requirements.txt +++ b/huaweicloud-sdk-cbh/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-cbh/setup.py b/huaweicloud-sdk-cbh/setup.py index 629ecd0cfd..404c3adcca 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbr/requirements.txt b/huaweicloud-sdk-cbr/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-cbr/requirements.txt +++ b/huaweicloud-sdk-cbr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-cbr/setup.py b/huaweicloud-sdk-cbr/setup.py index 5b487fb99e..1620d30ab8 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbs/requirements.txt b/huaweicloud-sdk-cbs/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-cbs/requirements.txt +++ b/huaweicloud-sdk-cbs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-cbs/setup.py b/huaweicloud-sdk-cbs/setup.py index 297f78ede4..00041fa5a8 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cc/requirements.txt b/huaweicloud-sdk-cc/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-cc/requirements.txt +++ b/huaweicloud-sdk-cc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-cc/setup.py b/huaweicloud-sdk-cc/setup.py index cb661071bf..29e3a6cc55 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cce/requirements.txt b/huaweicloud-sdk-cce/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-cce/requirements.txt +++ b/huaweicloud-sdk-cce/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-cce/setup.py b/huaweicloud-sdk-cce/setup.py index 823dc74eb1..bea3e6ee3a 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ccm/requirements.txt b/huaweicloud-sdk-ccm/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-ccm/requirements.txt +++ b/huaweicloud-sdk-ccm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-ccm/setup.py b/huaweicloud-sdk-ccm/setup.py index f3c6a7c2a7..769335e1b1 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cdm/requirements.txt b/huaweicloud-sdk-cdm/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-cdm/requirements.txt +++ b/huaweicloud-sdk-cdm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-cdm/setup.py b/huaweicloud-sdk-cdm/setup.py index feeaeb5cd7..abd7fd58eb 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cdn/requirements.txt b/huaweicloud-sdk-cdn/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-cdn/requirements.txt +++ b/huaweicloud-sdk-cdn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-cdn/setup.py b/huaweicloud-sdk-cdn/setup.py index 0661db47c5..d4e91ca1e8 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ces/requirements.txt b/huaweicloud-sdk-ces/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-ces/requirements.txt +++ b/huaweicloud-sdk-ces/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-ces/setup.py b/huaweicloud-sdk-ces/setup.py index 3a17437df0..2b85528d0e 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cfw/requirements.txt b/huaweicloud-sdk-cfw/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-cfw/requirements.txt +++ b/huaweicloud-sdk-cfw/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-cfw/setup.py b/huaweicloud-sdk-cfw/setup.py index c9f549d99e..690c009000 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cgs/requirements.txt b/huaweicloud-sdk-cgs/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-cgs/requirements.txt +++ b/huaweicloud-sdk-cgs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-cgs/setup.py b/huaweicloud-sdk-cgs/setup.py index 5a89648dd5..3859a95f03 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-classroom/requirements.txt b/huaweicloud-sdk-classroom/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-classroom/requirements.txt +++ b/huaweicloud-sdk-classroom/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-classroom/setup.py b/huaweicloud-sdk-classroom/setup.py index de79921d9f..85a5611445 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudide/requirements.txt b/huaweicloud-sdk-cloudide/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-cloudide/requirements.txt +++ b/huaweicloud-sdk-cloudide/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudide/setup.py b/huaweicloud-sdk-cloudide/setup.py index 7daefa43da..712928d860 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudpond/requirements.txt b/huaweicloud-sdk-cloudpond/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-cloudpond/requirements.txt +++ b/huaweicloud-sdk-cloudpond/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudpond/setup.py b/huaweicloud-sdk-cloudpond/setup.py index 6550d24ee2..f261890ea2 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/__init__.py b/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/__init__.py index 2960ca9057..191c8899f1 100644 --- a/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/__init__.py +++ b/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/__init__.py @@ -7,7 +7,6 @@ from huaweicloudsdkcloudrtc.v2.model.app import App from huaweicloudsdkcloudrtc.v2.model.app_auth import AppAuth -from huaweicloudsdkcloudrtc.v2.model.app_auth_req import AppAuthReq from huaweicloudsdkcloudrtc.v2.model.app_auto_record_mode import AppAutoRecordMode from huaweicloudsdkcloudrtc.v2.model.app_callback_url import AppCallbackUrl from huaweicloudsdkcloudrtc.v2.model.app_callback_url_req import AppCallbackUrlReq @@ -66,8 +65,6 @@ from huaweicloudsdkcloudrtc.v2.model.show_record_callback_response import ShowRecordCallbackResponse from huaweicloudsdkcloudrtc.v2.model.show_record_rule_request import ShowRecordRuleRequest from huaweicloudsdkcloudrtc.v2.model.show_record_rule_response import ShowRecordRuleResponse -from huaweicloudsdkcloudrtc.v2.model.show_url_auth_request import ShowUrlAuthRequest -from huaweicloudsdkcloudrtc.v2.model.show_url_auth_response import ShowUrlAuthResponse from huaweicloudsdkcloudrtc.v2.model.start_app_request import StartAppRequest from huaweicloudsdkcloudrtc.v2.model.start_app_response import StartAppResponse from huaweicloudsdkcloudrtc.v2.model.stop_app_request import StopAppRequest @@ -91,6 +88,4 @@ from huaweicloudsdkcloudrtc.v2.model.update_record_callback_response import UpdateRecordCallbackResponse from huaweicloudsdkcloudrtc.v2.model.update_record_rule_request import UpdateRecordRuleRequest from huaweicloudsdkcloudrtc.v2.model.update_record_rule_response import UpdateRecordRuleResponse -from huaweicloudsdkcloudrtc.v2.model.update_url_auth_request import UpdateUrlAuthRequest -from huaweicloudsdkcloudrtc.v2.model.update_url_auth_response import UpdateUrlAuthResponse diff --git a/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/cloudrtc_async_client.py b/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/cloudrtc_async_client.py index cfd7a0f3e2..8c33e8fbf4 100644 --- a/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/cloudrtc_async_client.py +++ b/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/cloudrtc_async_client.py @@ -1253,79 +1253,6 @@ def _show_record_rule_http_info(self, request): return http_info - def show_url_auth_async(self, request): - """查询访问控制参数 - - 查询应用鉴权配置参数 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for ShowUrlAuth - :type request: :class:`huaweicloudsdkcloudrtc.v2.ShowUrlAuthRequest` - :rtype: :class:`huaweicloudsdkcloudrtc.v2.ShowUrlAuthResponse` - """ - http_info = self._show_url_auth_http_info(request) - return self._call_api(**http_info) - - def show_url_auth_async_invoker(self, request): - http_info = self._show_url_auth_http_info(request) - return AsyncInvoker(self, http_info) - - def _show_url_auth_http_info(self, request): - http_info = { - "method": "GET", - "resource_path": "/v2/apps/{app_id}/authentication", - "request_type": request.__class__.__name__, - "response_type": "ShowUrlAuthResponse" - } - - local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} - - cname = None - - collection_formats = {} - - path_params = {} - if 'app_id' in local_var_params: - path_params['app_id'] = local_var_params['app_id'] - - query_params = [] - - header_params = {} - if 'content_type' in local_var_params: - header_params['Content-Type'] = local_var_params['content_type'] - if 'authorization' in local_var_params: - header_params['Authorization'] = local_var_params['authorization'] - if 'x_sdk_date' in local_var_params: - header_params['X-Sdk-Date'] = local_var_params['x_sdk_date'] - if 'x_project_id' in local_var_params: - header_params['X-Project-Id'] = local_var_params['x_project_id'] - - form_params = {} - - body = None - if isinstance(request, SdkStreamRequest): - body = request.get_file_stream() - - response_headers = ["X-request-Id", ] - - 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_app_async(self, request): """启用应用 @@ -2011,81 +1938,6 @@ def _update_record_rule_http_info(self, request): return http_info - def update_url_auth_async(self, request): - """开关访问控制 - - 调用此接口开启或关闭URL鉴权。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for UpdateUrlAuth - :type request: :class:`huaweicloudsdkcloudrtc.v2.UpdateUrlAuthRequest` - :rtype: :class:`huaweicloudsdkcloudrtc.v2.UpdateUrlAuthResponse` - """ - http_info = self._update_url_auth_http_info(request) - return self._call_api(**http_info) - - def update_url_auth_async_invoker(self, request): - http_info = self._update_url_auth_http_info(request) - return AsyncInvoker(self, http_info) - - def _update_url_auth_http_info(self, request): - http_info = { - "method": "PUT", - "resource_path": "/v2/apps/{app_id}/authentication", - "request_type": request.__class__.__name__, - "response_type": "UpdateUrlAuthResponse" - } - - local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} - - cname = None - - collection_formats = {} - - path_params = {} - if 'app_id' in local_var_params: - path_params['app_id'] = local_var_params['app_id'] - - query_params = [] - - header_params = {} - if 'content_type' in local_var_params: - header_params['Content-Type'] = local_var_params['content_type'] - if 'authorization' in local_var_params: - header_params['Authorization'] = local_var_params['authorization'] - if 'x_sdk_date' in local_var_params: - header_params['X-Sdk-Date'] = local_var_params['x_sdk_date'] - 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 = ["X-request-Id", ] - - 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_obs_bucket_objects_async(self, request): """查询OBS桶下对象列表 diff --git a/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/cloudrtc_client.py b/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/cloudrtc_client.py index 5f6d683503..3722525f9d 100644 --- a/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/cloudrtc_client.py +++ b/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/cloudrtc_client.py @@ -1253,79 +1253,6 @@ def _show_record_rule_http_info(cls, request): return http_info - def show_url_auth(self, request): - """查询访问控制参数 - - 查询应用鉴权配置参数 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for ShowUrlAuth - :type request: :class:`huaweicloudsdkcloudrtc.v2.ShowUrlAuthRequest` - :rtype: :class:`huaweicloudsdkcloudrtc.v2.ShowUrlAuthResponse` - """ - http_info = self._show_url_auth_http_info(request) - return self._call_api(**http_info) - - def show_url_auth_invoker(self, request): - http_info = self._show_url_auth_http_info(request) - return SyncInvoker(self, http_info) - - @classmethod - def _show_url_auth_http_info(cls, request): - http_info = { - "method": "GET", - "resource_path": "/v2/apps/{app_id}/authentication", - "request_type": request.__class__.__name__, - "response_type": "ShowUrlAuthResponse" - } - - local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} - - cname = None - - collection_formats = {} - - path_params = {} - if 'app_id' in local_var_params: - path_params['app_id'] = local_var_params['app_id'] - - query_params = [] - - header_params = {} - if 'content_type' in local_var_params: - header_params['Content-Type'] = local_var_params['content_type'] - if 'authorization' in local_var_params: - header_params['Authorization'] = local_var_params['authorization'] - if 'x_sdk_date' in local_var_params: - header_params['X-Sdk-Date'] = local_var_params['x_sdk_date'] - if 'x_project_id' in local_var_params: - header_params['X-Project-Id'] = local_var_params['x_project_id'] - - form_params = {} - - body = None - if isinstance(request, SdkStreamRequest): - body = request.get_file_stream() - - response_headers = ["X-request-Id", ] - - 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_app(self, request): """启用应用 @@ -2011,81 +1938,6 @@ def _update_record_rule_http_info(cls, request): return http_info - def update_url_auth(self, request): - """开关访问控制 - - 调用此接口开启或关闭URL鉴权。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for UpdateUrlAuth - :type request: :class:`huaweicloudsdkcloudrtc.v2.UpdateUrlAuthRequest` - :rtype: :class:`huaweicloudsdkcloudrtc.v2.UpdateUrlAuthResponse` - """ - http_info = self._update_url_auth_http_info(request) - return self._call_api(**http_info) - - def update_url_auth_invoker(self, request): - http_info = self._update_url_auth_http_info(request) - return SyncInvoker(self, http_info) - - @classmethod - def _update_url_auth_http_info(cls, request): - http_info = { - "method": "PUT", - "resource_path": "/v2/apps/{app_id}/authentication", - "request_type": request.__class__.__name__, - "response_type": "UpdateUrlAuthResponse" - } - - local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} - - cname = None - - collection_formats = {} - - path_params = {} - if 'app_id' in local_var_params: - path_params['app_id'] = local_var_params['app_id'] - - query_params = [] - - header_params = {} - if 'content_type' in local_var_params: - header_params['Content-Type'] = local_var_params['content_type'] - if 'authorization' in local_var_params: - header_params['Authorization'] = local_var_params['authorization'] - if 'x_sdk_date' in local_var_params: - header_params['X-Sdk-Date'] = local_var_params['x_sdk_date'] - 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 = ["X-request-Id", ] - - 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_obs_bucket_objects(self, request): """查询OBS桶下对象列表 diff --git a/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/model/__init__.py b/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/model/__init__.py index 616f1035fe..05fa114856 100644 --- a/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/model/__init__.py +++ b/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/model/__init__.py @@ -5,7 +5,6 @@ # import models into model package from huaweicloudsdkcloudrtc.v2.model.app import App from huaweicloudsdkcloudrtc.v2.model.app_auth import AppAuth -from huaweicloudsdkcloudrtc.v2.model.app_auth_req import AppAuthReq from huaweicloudsdkcloudrtc.v2.model.app_auto_record_mode import AppAutoRecordMode from huaweicloudsdkcloudrtc.v2.model.app_callback_url import AppCallbackUrl from huaweicloudsdkcloudrtc.v2.model.app_callback_url_req import AppCallbackUrlReq @@ -64,8 +63,6 @@ from huaweicloudsdkcloudrtc.v2.model.show_record_callback_response import ShowRecordCallbackResponse from huaweicloudsdkcloudrtc.v2.model.show_record_rule_request import ShowRecordRuleRequest from huaweicloudsdkcloudrtc.v2.model.show_record_rule_response import ShowRecordRuleResponse -from huaweicloudsdkcloudrtc.v2.model.show_url_auth_request import ShowUrlAuthRequest -from huaweicloudsdkcloudrtc.v2.model.show_url_auth_response import ShowUrlAuthResponse from huaweicloudsdkcloudrtc.v2.model.start_app_request import StartAppRequest from huaweicloudsdkcloudrtc.v2.model.start_app_response import StartAppResponse from huaweicloudsdkcloudrtc.v2.model.stop_app_request import StopAppRequest @@ -89,5 +86,3 @@ from huaweicloudsdkcloudrtc.v2.model.update_record_callback_response import UpdateRecordCallbackResponse from huaweicloudsdkcloudrtc.v2.model.update_record_rule_request import UpdateRecordRuleRequest from huaweicloudsdkcloudrtc.v2.model.update_record_rule_response import UpdateRecordRuleResponse -from huaweicloudsdkcloudrtc.v2.model.update_url_auth_request import UpdateUrlAuthRequest -from huaweicloudsdkcloudrtc.v2.model.update_url_auth_response import UpdateUrlAuthResponse diff --git a/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/model/show_url_auth_request.py b/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/model/show_url_auth_request.py deleted file mode 100644 index 40155ef0be..0000000000 --- a/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/model/show_url_auth_request.py +++ /dev/null @@ -1,229 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class ShowUrlAuthRequest: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'content_type': 'str', - 'authorization': 'str', - 'x_sdk_date': 'str', - 'x_project_id': 'str', - 'app_id': 'str' - } - - attribute_map = { - 'content_type': 'Content-Type', - 'authorization': 'Authorization', - 'x_sdk_date': 'X-Sdk-Date', - 'x_project_id': 'X-Project-Id', - 'app_id': 'app_id' - } - - def __init__(self, content_type=None, authorization=None, x_sdk_date=None, x_project_id=None, app_id=None): - """ShowUrlAuthRequest - - The model defined in huaweicloud sdk - - :param content_type: 内容类型。 - :type content_type: str - :param authorization: 使用AK/SK方式认证时必选,携带的鉴权信息。 - :type authorization: str - :param x_sdk_date: 使用AK/SK方式认证时必选,请求的发生时间。 - :type x_sdk_date: str - :param x_project_id: 使用AK/SK方式认证时必选,携带项目ID信息。 - :type x_project_id: str - :param app_id: 应用id - :type app_id: str - """ - - - - self._content_type = None - self._authorization = None - self._x_sdk_date = None - self._x_project_id = None - self._app_id = None - self.discriminator = None - - self.content_type = content_type - if authorization is not None: - self.authorization = authorization - if x_sdk_date is not None: - self.x_sdk_date = x_sdk_date - if x_project_id is not None: - self.x_project_id = x_project_id - self.app_id = app_id - - @property - def content_type(self): - """Gets the content_type of this ShowUrlAuthRequest. - - 内容类型。 - - :return: The content_type of this ShowUrlAuthRequest. - :rtype: str - """ - return self._content_type - - @content_type.setter - def content_type(self, content_type): - """Sets the content_type of this ShowUrlAuthRequest. - - 内容类型。 - - :param content_type: The content_type of this ShowUrlAuthRequest. - :type content_type: str - """ - self._content_type = content_type - - @property - def authorization(self): - """Gets the authorization of this ShowUrlAuthRequest. - - 使用AK/SK方式认证时必选,携带的鉴权信息。 - - :return: The authorization of this ShowUrlAuthRequest. - :rtype: str - """ - return self._authorization - - @authorization.setter - def authorization(self, authorization): - """Sets the authorization of this ShowUrlAuthRequest. - - 使用AK/SK方式认证时必选,携带的鉴权信息。 - - :param authorization: The authorization of this ShowUrlAuthRequest. - :type authorization: str - """ - self._authorization = authorization - - @property - def x_sdk_date(self): - """Gets the x_sdk_date of this ShowUrlAuthRequest. - - 使用AK/SK方式认证时必选,请求的发生时间。 - - :return: The x_sdk_date of this ShowUrlAuthRequest. - :rtype: str - """ - return self._x_sdk_date - - @x_sdk_date.setter - def x_sdk_date(self, x_sdk_date): - """Sets the x_sdk_date of this ShowUrlAuthRequest. - - 使用AK/SK方式认证时必选,请求的发生时间。 - - :param x_sdk_date: The x_sdk_date of this ShowUrlAuthRequest. - :type x_sdk_date: str - """ - self._x_sdk_date = x_sdk_date - - @property - def x_project_id(self): - """Gets the x_project_id of this ShowUrlAuthRequest. - - 使用AK/SK方式认证时必选,携带项目ID信息。 - - :return: The x_project_id of this ShowUrlAuthRequest. - :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 ShowUrlAuthRequest. - - 使用AK/SK方式认证时必选,携带项目ID信息。 - - :param x_project_id: The x_project_id of this ShowUrlAuthRequest. - :type x_project_id: str - """ - self._x_project_id = x_project_id - - @property - def app_id(self): - """Gets the app_id of this ShowUrlAuthRequest. - - 应用id - - :return: The app_id of this ShowUrlAuthRequest. - :rtype: str - """ - return self._app_id - - @app_id.setter - def app_id(self, app_id): - """Sets the app_id of this ShowUrlAuthRequest. - - 应用id - - :param app_id: The app_id of this ShowUrlAuthRequest. - :type app_id: str - """ - self._app_id = app_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, ShowUrlAuthRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/model/update_url_auth_request.py b/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/model/update_url_auth_request.py deleted file mode 100644 index 5875a1f873..0000000000 --- a/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/model/update_url_auth_request.py +++ /dev/null @@ -1,254 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class UpdateUrlAuthRequest: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'content_type': 'str', - 'authorization': 'str', - 'x_sdk_date': 'str', - 'x_project_id': 'str', - 'app_id': 'str', - 'body': 'AppAuthReq' - } - - attribute_map = { - 'content_type': 'Content-Type', - 'authorization': 'Authorization', - 'x_sdk_date': 'X-Sdk-Date', - 'x_project_id': 'X-Project-Id', - 'app_id': 'app_id', - 'body': 'body' - } - - def __init__(self, content_type=None, authorization=None, x_sdk_date=None, x_project_id=None, app_id=None, body=None): - """UpdateUrlAuthRequest - - The model defined in huaweicloud sdk - - :param content_type: 内容类型。 - :type content_type: str - :param authorization: 使用AK/SK方式认证时必选,携带的鉴权信息。 - :type authorization: str - :param x_sdk_date: 使用AK/SK方式认证时必选,请求的发生时间。 - :type x_sdk_date: str - :param x_project_id: 使用AK/SK方式认证时必选,携带项目ID信息。 - :type x_project_id: str - :param app_id: 应用id - :type app_id: str - :param body: Body of the UpdateUrlAuthRequest - :type body: :class:`huaweicloudsdkcloudrtc.v2.AppAuthReq` - """ - - - - self._content_type = None - self._authorization = None - self._x_sdk_date = None - self._x_project_id = None - self._app_id = None - self._body = None - self.discriminator = None - - self.content_type = content_type - if authorization is not None: - self.authorization = authorization - if x_sdk_date is not None: - self.x_sdk_date = x_sdk_date - if x_project_id is not None: - self.x_project_id = x_project_id - self.app_id = app_id - if body is not None: - self.body = body - - @property - def content_type(self): - """Gets the content_type of this UpdateUrlAuthRequest. - - 内容类型。 - - :return: The content_type of this UpdateUrlAuthRequest. - :rtype: str - """ - return self._content_type - - @content_type.setter - def content_type(self, content_type): - """Sets the content_type of this UpdateUrlAuthRequest. - - 内容类型。 - - :param content_type: The content_type of this UpdateUrlAuthRequest. - :type content_type: str - """ - self._content_type = content_type - - @property - def authorization(self): - """Gets the authorization of this UpdateUrlAuthRequest. - - 使用AK/SK方式认证时必选,携带的鉴权信息。 - - :return: The authorization of this UpdateUrlAuthRequest. - :rtype: str - """ - return self._authorization - - @authorization.setter - def authorization(self, authorization): - """Sets the authorization of this UpdateUrlAuthRequest. - - 使用AK/SK方式认证时必选,携带的鉴权信息。 - - :param authorization: The authorization of this UpdateUrlAuthRequest. - :type authorization: str - """ - self._authorization = authorization - - @property - def x_sdk_date(self): - """Gets the x_sdk_date of this UpdateUrlAuthRequest. - - 使用AK/SK方式认证时必选,请求的发生时间。 - - :return: The x_sdk_date of this UpdateUrlAuthRequest. - :rtype: str - """ - return self._x_sdk_date - - @x_sdk_date.setter - def x_sdk_date(self, x_sdk_date): - """Sets the x_sdk_date of this UpdateUrlAuthRequest. - - 使用AK/SK方式认证时必选,请求的发生时间。 - - :param x_sdk_date: The x_sdk_date of this UpdateUrlAuthRequest. - :type x_sdk_date: str - """ - self._x_sdk_date = x_sdk_date - - @property - def x_project_id(self): - """Gets the x_project_id of this UpdateUrlAuthRequest. - - 使用AK/SK方式认证时必选,携带项目ID信息。 - - :return: The x_project_id of this UpdateUrlAuthRequest. - :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 UpdateUrlAuthRequest. - - 使用AK/SK方式认证时必选,携带项目ID信息。 - - :param x_project_id: The x_project_id of this UpdateUrlAuthRequest. - :type x_project_id: str - """ - self._x_project_id = x_project_id - - @property - def app_id(self): - """Gets the app_id of this UpdateUrlAuthRequest. - - 应用id - - :return: The app_id of this UpdateUrlAuthRequest. - :rtype: str - """ - return self._app_id - - @app_id.setter - def app_id(self, app_id): - """Sets the app_id of this UpdateUrlAuthRequest. - - 应用id - - :param app_id: The app_id of this UpdateUrlAuthRequest. - :type app_id: str - """ - self._app_id = app_id - - @property - def body(self): - """Gets the body of this UpdateUrlAuthRequest. - - :return: The body of this UpdateUrlAuthRequest. - :rtype: :class:`huaweicloudsdkcloudrtc.v2.AppAuthReq` - """ - return self._body - - @body.setter - def body(self, body): - """Sets the body of this UpdateUrlAuthRequest. - - :param body: The body of this UpdateUrlAuthRequest. - :type body: :class:`huaweicloudsdkcloudrtc.v2.AppAuthReq` - """ - 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, UpdateUrlAuthRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-cloudrtc/requirements.txt b/huaweicloud-sdk-cloudrtc/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-cloudrtc/requirements.txt +++ b/huaweicloud-sdk-cloudrtc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudrtc/setup.py b/huaweicloud-sdk-cloudrtc/setup.py index 2602593ea5..3aa437a222 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudtable/requirements.txt b/huaweicloud-sdk-cloudtable/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-cloudtable/requirements.txt +++ b/huaweicloud-sdk-cloudtable/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudtable/setup.py b/huaweicloud-sdk-cloudtable/setup.py index 9dea40fb03..60d201d280 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudtest/requirements.txt b/huaweicloud-sdk-cloudtest/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-cloudtest/requirements.txt +++ b/huaweicloud-sdk-cloudtest/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudtest/setup.py b/huaweicloud-sdk-cloudtest/setup.py index 5927137e21..09b8c01c69 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-coc/requirements.txt b/huaweicloud-sdk-coc/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-coc/requirements.txt +++ b/huaweicloud-sdk-coc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-coc/setup.py b/huaweicloud-sdk-coc/setup.py index f847d2b105..6219800d20 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsartifact/requirements.txt b/huaweicloud-sdk-codeartsartifact/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-codeartsartifact/requirements.txt +++ b/huaweicloud-sdk-codeartsartifact/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsartifact/setup.py b/huaweicloud-sdk-codeartsartifact/setup.py index 0cc80b3f30..eb3f36133d 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsbuild/requirements.txt b/huaweicloud-sdk-codeartsbuild/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-codeartsbuild/requirements.txt +++ b/huaweicloud-sdk-codeartsbuild/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsbuild/setup.py b/huaweicloud-sdk-codeartsbuild/setup.py index e3b3981151..2b9fcb5753 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartscheck/requirements.txt b/huaweicloud-sdk-codeartscheck/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-codeartscheck/requirements.txt +++ b/huaweicloud-sdk-codeartscheck/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartscheck/setup.py b/huaweicloud-sdk-codeartscheck/setup.py index f74315f7d5..61026a878d 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsdeploy/requirements.txt b/huaweicloud-sdk-codeartsdeploy/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-codeartsdeploy/requirements.txt +++ b/huaweicloud-sdk-codeartsdeploy/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsdeploy/setup.py b/huaweicloud-sdk-codeartsdeploy/setup.py index 371831ebef..fa7ea135c3 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsgovernance/requirements.txt b/huaweicloud-sdk-codeartsgovernance/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-codeartsgovernance/requirements.txt +++ b/huaweicloud-sdk-codeartsgovernance/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsgovernance/setup.py b/huaweicloud-sdk-codeartsgovernance/setup.py index c74fccb4ed..43f6389395 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsinspector/requirements.txt b/huaweicloud-sdk-codeartsinspector/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-codeartsinspector/requirements.txt +++ b/huaweicloud-sdk-codeartsinspector/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsinspector/setup.py b/huaweicloud-sdk-codeartsinspector/setup.py index 2d388dadcc..64b344fb65 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartspipeline/requirements.txt b/huaweicloud-sdk-codeartspipeline/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-codeartspipeline/requirements.txt +++ b/huaweicloud-sdk-codeartspipeline/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartspipeline/setup.py b/huaweicloud-sdk-codeartspipeline/setup.py index ec32756d59..e2afa43b4c 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codecraft/requirements.txt b/huaweicloud-sdk-codecraft/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-codecraft/requirements.txt +++ b/huaweicloud-sdk-codecraft/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-codecraft/setup.py b/huaweicloud-sdk-codecraft/setup.py index ccb66c0871..bf687b2ef0 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codehub/requirements.txt b/huaweicloud-sdk-codehub/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-codehub/requirements.txt +++ b/huaweicloud-sdk-codehub/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-codehub/setup.py b/huaweicloud-sdk-codehub/setup.py index 915392c016..c6914b4498 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-config/requirements.txt b/huaweicloud-sdk-config/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-config/requirements.txt +++ b/huaweicloud-sdk-config/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-config/setup.py b/huaweicloud-sdk-config/setup.py index 108a9ecaa0..1a4f4562fb 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-core/setup.py b/huaweicloud-sdk-core/setup.py index 6c0c704042..2f2b4d71b9 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.121" +VERSION = "3.1.122" 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 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-cph/requirements.txt +++ b/huaweicloud-sdk-cph/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-cph/setup.py b/huaweicloud-sdk-cph/setup.py index 948bbdef51..6072bd2bfb 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cpts/requirements.txt b/huaweicloud-sdk-cpts/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-cpts/requirements.txt +++ b/huaweicloud-sdk-cpts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-cpts/setup.py b/huaweicloud-sdk-cpts/setup.py index fe6b9fff89..1b0ebf445d 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cse/requirements.txt b/huaweicloud-sdk-cse/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-cse/requirements.txt +++ b/huaweicloud-sdk-cse/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-cse/setup.py b/huaweicloud-sdk-cse/setup.py index df5b430960..bdb7a13937 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-csms/requirements.txt b/huaweicloud-sdk-csms/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-csms/requirements.txt +++ b/huaweicloud-sdk-csms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-csms/setup.py b/huaweicloud-sdk-csms/setup.py index 027100fb87..ef0ec43dae 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-css/requirements.txt b/huaweicloud-sdk-css/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-css/requirements.txt +++ b/huaweicloud-sdk-css/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-css/setup.py b/huaweicloud-sdk-css/setup.py index 03f391199b..0843c5efa1 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cts/requirements.txt b/huaweicloud-sdk-cts/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-cts/requirements.txt +++ b/huaweicloud-sdk-cts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-cts/setup.py b/huaweicloud-sdk-cts/setup.py index 4ffd9941a1..c8756780f5 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-das/requirements.txt b/huaweicloud-sdk-das/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-das/requirements.txt +++ b/huaweicloud-sdk-das/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-das/setup.py b/huaweicloud-sdk-das/setup.py index 2ce8e9ddf4..babe56c0e4 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dataartsfabric/requirements.txt b/huaweicloud-sdk-dataartsfabric/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-dataartsfabric/requirements.txt +++ b/huaweicloud-sdk-dataartsfabric/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-dataartsfabric/setup.py b/huaweicloud-sdk-dataartsfabric/setup.py index 99d3480fba..e6c7965b22 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dataartsfabricep/requirements.txt b/huaweicloud-sdk-dataartsfabricep/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-dataartsfabricep/requirements.txt +++ b/huaweicloud-sdk-dataartsfabricep/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-dataartsfabricep/setup.py b/huaweicloud-sdk-dataartsfabricep/setup.py index 71ebcd01ef..a5c46ce32e 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/__init__.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/__init__.py index 22282988e2..8d03e026ef 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/__init__.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/__init__.py @@ -645,6 +645,8 @@ from huaweicloudsdkdataartsstudio.v1.model.list_table_models_result_data_value import ListTableModelsResultDataValue from huaweicloudsdkdataartsstudio.v1.model.list_workspace_roles_request import ListWorkspaceRolesRequest from huaweicloudsdkdataartsstudio.v1.model.list_workspace_roles_response import ListWorkspaceRolesResponse +from huaweicloudsdkdataartsstudio.v1.model.list_workspaces_for_user_request import ListWorkspacesForUserRequest +from huaweicloudsdkdataartsstudio.v1.model.list_workspaces_for_user_response import ListWorkspacesForUserResponse from huaweicloudsdkdataartsstudio.v1.model.list_workspaces_request import ListWorkspacesRequest from huaweicloudsdkdataartsstudio.v1.model.list_workspaces_response import ListWorkspacesResponse from huaweicloudsdkdataartsstudio.v1.model.list_workspaces_result_data import ListWorkspacesResultData diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_async_client.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_async_client.py index e5a9ed9fd2..863ff69c13 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_async_client.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_async_client.py @@ -12444,6 +12444,73 @@ def _list_workspaces_http_info(self, request): return http_info + def list_workspaces_for_user_async(self, request): + """获取指定用户所有的工作空间集合 + + 获取指定用户所有的工作空间集合 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListWorkspacesForUser + :type request: :class:`huaweicloudsdkdataartsstudio.v1.ListWorkspacesForUserRequest` + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.ListWorkspacesForUserResponse` + """ + http_info = self._list_workspaces_for_user_http_info(request) + return self._call_api(**http_info) + + def list_workspaces_for_user_async_invoker(self, request): + http_info = self._list_workspaces_for_user_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_workspaces_for_user_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/{instance_id}/workspaces/{user_id}", + "request_type": request.__class__.__name__, + "response_type": "ListWorkspacesForUserResponse" + } + + 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'] + if 'user_id' in local_var_params: + path_params['user_id'] = local_var_params['user_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_workspaceusers_async(self, request): """获取工作空间用户信息 diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_client.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_client.py index f8aac1c87a..89f0864497 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_client.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_client.py @@ -12444,6 +12444,73 @@ def _list_workspaces_http_info(cls, request): return http_info + def list_workspaces_for_user(self, request): + """获取指定用户所有的工作空间集合 + + 获取指定用户所有的工作空间集合 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListWorkspacesForUser + :type request: :class:`huaweicloudsdkdataartsstudio.v1.ListWorkspacesForUserRequest` + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.ListWorkspacesForUserResponse` + """ + http_info = self._list_workspaces_for_user_http_info(request) + return self._call_api(**http_info) + + def list_workspaces_for_user_invoker(self, request): + http_info = self._list_workspaces_for_user_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_workspaces_for_user_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/{instance_id}/workspaces/{user_id}", + "request_type": request.__class__.__name__, + "response_type": "ListWorkspacesForUserResponse" + } + + 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'] + if 'user_id' in local_var_params: + path_params['user_id'] = local_var_params['user_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_workspaceusers(self, request): """获取工作空间用户信息 diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/__init__.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/__init__.py index f07b07513c..5b4b753ded 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/__init__.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/__init__.py @@ -643,6 +643,8 @@ from huaweicloudsdkdataartsstudio.v1.model.list_table_models_result_data_value import ListTableModelsResultDataValue from huaweicloudsdkdataartsstudio.v1.model.list_workspace_roles_request import ListWorkspaceRolesRequest from huaweicloudsdkdataartsstudio.v1.model.list_workspace_roles_response import ListWorkspaceRolesResponse +from huaweicloudsdkdataartsstudio.v1.model.list_workspaces_for_user_request import ListWorkspacesForUserRequest +from huaweicloudsdkdataartsstudio.v1.model.list_workspaces_for_user_response import ListWorkspacesForUserResponse from huaweicloudsdkdataartsstudio.v1.model.list_workspaces_request import ListWorkspacesRequest from huaweicloudsdkdataartsstudio.v1.model.list_workspaces_response import ListWorkspacesResponse from huaweicloudsdkdataartsstudio.v1.model.list_workspaces_result_data import ListWorkspacesResultData diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/apig_data_source_vo.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/apig_data_source_vo.py index 7a13854855..af7c282b52 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/apig_data_source_vo.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/apig_data_source_vo.py @@ -22,7 +22,8 @@ class ApigDataSourceVo: 'dw_config': 'object', 'agent_id': 'str', 'agent_name': 'str', - 'env_type': 'int' + 'env_type': 'int', + 'support_service': 'int' } attribute_map = { @@ -31,10 +32,11 @@ class ApigDataSourceVo: 'dw_config': 'dw_config', 'agent_id': 'agent_id', 'agent_name': 'agent_name', - 'env_type': 'env_type' + 'env_type': 'env_type', + 'support_service': 'supportService' } - def __init__(self, dw_name=None, dw_type=None, dw_config=None, agent_id=None, agent_name=None, env_type=None): + def __init__(self, dw_name=None, dw_type=None, dw_config=None, agent_id=None, agent_name=None, env_type=None, support_service=None): """ApigDataSourceVo The model defined in huaweicloud sdk @@ -51,6 +53,8 @@ def __init__(self, dw_name=None, dw_type=None, dw_config=None, agent_id=None, ag :type agent_name: str :param env_type: 0:开发模式 1:生产模式。默认为0 :type env_type: int + :param support_service: 1:cdm 2:数据架构 4:数据开发 8:数据质量 16:数据目录 32:数据安全 64:数据服务 + :type support_service: int """ @@ -61,6 +65,7 @@ def __init__(self, dw_name=None, dw_type=None, dw_config=None, agent_id=None, ag self._agent_id = None self._agent_name = None self._env_type = None + self._support_service = None self.discriminator = None self.dw_name = dw_name @@ -72,6 +77,8 @@ def __init__(self, dw_name=None, dw_type=None, dw_config=None, agent_id=None, ag self.agent_name = agent_name if env_type is not None: self.env_type = env_type + if support_service is not None: + self.support_service = support_service @property def dw_name(self): @@ -205,6 +212,28 @@ def env_type(self, env_type): """ self._env_type = env_type + @property + def support_service(self): + """Gets the support_service of this ApigDataSourceVo. + + 1:cdm 2:数据架构 4:数据开发 8:数据质量 16:数据目录 32:数据安全 64:数据服务 + + :return: The support_service of this ApigDataSourceVo. + :rtype: int + """ + return self._support_service + + @support_service.setter + def support_service(self, support_service): + """Sets the support_service of this ApigDataSourceVo. + + 1:cdm 2:数据架构 4:数据开发 8:数据质量 16:数据目录 32:数据安全 64:数据服务 + + :param support_service: The support_service of this ApigDataSourceVo. + :type support_service: int + """ + self._support_service = support_service + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/model/app_auth_req.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/list_workspaces_for_user_request.py similarity index 57% rename from huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/model/app_auth_req.py rename to huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/list_workspaces_for_user_request.py index 02f978e782..391fafd63d 100644 --- a/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/model/app_auth_req.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/list_workspaces_for_user_request.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class AppAuthReq: +class ListWorkspacesForUserRequest: """ Attributes: @@ -17,79 +17,78 @@ class AppAuthReq: sensitive_list = [] openapi_types = { - 'enable': 'bool', - 'expire': 'int' + 'instance_id': 'str', + 'user_id': 'str' } attribute_map = { - 'enable': 'enable', - 'expire': 'expire' + 'instance_id': 'instance_id', + 'user_id': 'user_id' } - def __init__(self, enable=None, expire=None): - """AppAuthReq + def __init__(self, instance_id=None, user_id=None): + """ListWorkspacesForUserRequest The model defined in huaweicloud sdk - :param enable: 开启或关闭URL鉴权 - :type enable: bool - :param expire: 有效期,当开启鉴权时必填。 取值范围:[60,2592000],缺省为300。 单位:秒。 - :type expire: int + :param instance_id: DataArtsStudio实例id + :type instance_id: str + :param user_id: 用户id + :type user_id: str """ - self._enable = None - self._expire = None + self._instance_id = None + self._user_id = None self.discriminator = None - self.enable = enable - if expire is not None: - self.expire = expire + self.instance_id = instance_id + self.user_id = user_id @property - def enable(self): - """Gets the enable of this AppAuthReq. + def instance_id(self): + """Gets the instance_id of this ListWorkspacesForUserRequest. - 开启或关闭URL鉴权 + DataArtsStudio实例id - :return: The enable of this AppAuthReq. - :rtype: bool + :return: The instance_id of this ListWorkspacesForUserRequest. + :rtype: str """ - return self._enable + return self._instance_id - @enable.setter - def enable(self, enable): - """Sets the enable of this AppAuthReq. + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ListWorkspacesForUserRequest. - 开启或关闭URL鉴权 + DataArtsStudio实例id - :param enable: The enable of this AppAuthReq. - :type enable: bool + :param instance_id: The instance_id of this ListWorkspacesForUserRequest. + :type instance_id: str """ - self._enable = enable + self._instance_id = instance_id @property - def expire(self): - """Gets the expire of this AppAuthReq. + def user_id(self): + """Gets the user_id of this ListWorkspacesForUserRequest. - 有效期,当开启鉴权时必填。 取值范围:[60,2592000],缺省为300。 单位:秒。 + 用户id - :return: The expire of this AppAuthReq. - :rtype: int + :return: The user_id of this ListWorkspacesForUserRequest. + :rtype: str """ - return self._expire + return self._user_id - @expire.setter - def expire(self, expire): - """Sets the expire of this AppAuthReq. + @user_id.setter + def user_id(self, user_id): + """Sets the user_id of this ListWorkspacesForUserRequest. - 有效期,当开启鉴权时必填。 取值范围:[60,2592000],缺省为300。 单位:秒。 + 用户id - :param expire: The expire of this AppAuthReq. - :type expire: int + :param user_id: The user_id of this ListWorkspacesForUserRequest. + :type user_id: str """ - self._expire = expire + self._user_id = user_id 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, AppAuthReq): + if not isinstance(other, ListWorkspacesForUserRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/list_workspaces_for_user_response.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/list_workspaces_for_user_response.py new file mode 100644 index 0000000000..a7e567f87a --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/list_workspaces_for_user_response.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListWorkspacesForUserResponse(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', + 'total_page': 'int', + 'data': 'list[Workspacebody]' + } + + attribute_map = { + 'count': 'count', + 'total_page': 'total_page', + 'data': 'data' + } + + def __init__(self, count=None, total_page=None, data=None): + """ListWorkspacesForUserResponse + + The model defined in huaweicloud sdk + + :param count: 当前工作空间用户记录数 + :type count: int + :param total_page: 查询结果总页数 + :type total_page: int + :param data: 工作空间列表 + :type data: list[:class:`huaweicloudsdkdataartsstudio.v1.Workspacebody`] + """ + + super(ListWorkspacesForUserResponse, self).__init__() + + self._count = None + self._total_page = None + self._data = None + self.discriminator = None + + if count is not None: + self.count = count + if total_page is not None: + self.total_page = total_page + if data is not None: + self.data = data + + @property + def count(self): + """Gets the count of this ListWorkspacesForUserResponse. + + 当前工作空间用户记录数 + + :return: The count of this ListWorkspacesForUserResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListWorkspacesForUserResponse. + + 当前工作空间用户记录数 + + :param count: The count of this ListWorkspacesForUserResponse. + :type count: int + """ + self._count = count + + @property + def total_page(self): + """Gets the total_page of this ListWorkspacesForUserResponse. + + 查询结果总页数 + + :return: The total_page of this ListWorkspacesForUserResponse. + :rtype: int + """ + return self._total_page + + @total_page.setter + def total_page(self, total_page): + """Sets the total_page of this ListWorkspacesForUserResponse. + + 查询结果总页数 + + :param total_page: The total_page of this ListWorkspacesForUserResponse. + :type total_page: int + """ + self._total_page = total_page + + @property + def data(self): + """Gets the data of this ListWorkspacesForUserResponse. + + 工作空间列表 + + :return: The data of this ListWorkspacesForUserResponse. + :rtype: list[:class:`huaweicloudsdkdataartsstudio.v1.Workspacebody`] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListWorkspacesForUserResponse. + + 工作空间列表 + + :param data: The data of this ListWorkspacesForUserResponse. + :type data: list[:class:`huaweicloudsdkdataartsstudio.v1.Workspacebody`] + """ + self._data = data + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListWorkspacesForUserResponse): + return False + + return self.__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 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-dataartsstudio/requirements.txt +++ b/huaweicloud-sdk-dataartsstudio/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-dataartsstudio/setup.py b/huaweicloud-sdk-dataartsstudio/setup.py index 5e58e1e193..5b45782f5e 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dbss/requirements.txt b/huaweicloud-sdk-dbss/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-dbss/requirements.txt +++ b/huaweicloud-sdk-dbss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-dbss/setup.py b/huaweicloud-sdk-dbss/setup.py index 8660502904..4f6a07ec81 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dc/requirements.txt b/huaweicloud-sdk-dc/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-dc/requirements.txt +++ b/huaweicloud-sdk-dc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-dc/setup.py b/huaweicloud-sdk-dc/setup.py index 7b98870698..71cba122f9 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dcs/requirements.txt b/huaweicloud-sdk-dcs/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-dcs/requirements.txt +++ b/huaweicloud-sdk-dcs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-dcs/setup.py b/huaweicloud-sdk-dcs/setup.py index fdee6613e6..024b1fe413 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ddm/requirements.txt b/huaweicloud-sdk-ddm/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-ddm/requirements.txt +++ b/huaweicloud-sdk-ddm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-ddm/setup.py b/huaweicloud-sdk-ddm/setup.py index 6f358cb4fb..11ee0675d4 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/__init__.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/__init__.py index abfb6900e5..20af4986d0 100644 --- a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/__init__.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/__init__.py @@ -29,11 +29,19 @@ from huaweicloudsdkdds.v3.model.backup_strategy import BackupStrategy from huaweicloudsdkdds.v3.model.backup_strategy_for_item_response import BackupStrategyForItemResponse from huaweicloudsdkdds.v3.model.balancer_active_window import BalancerActiveWindow +from huaweicloudsdkdds.v3.model.batch_delete_backup_request import BatchDeleteBackupRequest +from huaweicloudsdkdds.v3.model.batch_delete_backup_request_body import BatchDeleteBackupRequestBody +from huaweicloudsdkdds.v3.model.batch_delete_backup_response import BatchDeleteBackupResponse from huaweicloudsdkdds.v3.model.batch_operate_instance_tag_request_body import BatchOperateInstanceTagRequestBody from huaweicloudsdkdds.v3.model.batch_tag_action_request import BatchTagActionRequest from huaweicloudsdkdds.v3.model.batch_tag_action_response import BatchTagActionResponse +from huaweicloudsdkdds.v3.model.batch_upgrade_database_version_request import BatchUpgradeDatabaseVersionRequest +from huaweicloudsdkdds.v3.model.batch_upgrade_database_version_request_body import BatchUpgradeDatabaseVersionRequestBody +from huaweicloudsdkdds.v3.model.batch_upgrade_database_version_response import BatchUpgradeDatabaseVersionResponse from huaweicloudsdkdds.v3.model.cancel_eip_request import CancelEipRequest from huaweicloudsdkdds.v3.model.cancel_eip_response import CancelEipResponse +from huaweicloudsdkdds.v3.model.cancel_scheduled_task_request import CancelScheduledTaskRequest +from huaweicloudsdkdds.v3.model.cancel_scheduled_task_response import CancelScheduledTaskResponse from huaweicloudsdkdds.v3.model.cert_info import CertInfo from huaweicloudsdkdds.v3.model.change_ops_window_request import ChangeOpsWindowRequest from huaweicloudsdkdds.v3.model.change_ops_window_response import ChangeOpsWindowResponse @@ -47,6 +55,7 @@ from huaweicloudsdkdds.v3.model.client_network_request_body import ClientNetworkRequestBody from huaweicloudsdkdds.v3.model.compare_configuration_request import CompareConfigurationRequest from huaweicloudsdkdds.v3.model.compare_configuration_response import CompareConfigurationResponse +from huaweicloudsdkdds.v3.model.configuration_modify_history_info import ConfigurationModifyHistoryInfo from huaweicloudsdkdds.v3.model.configuration_parameters_result import ConfigurationParametersResult from huaweicloudsdkdds.v3.model.copy_configuration_request import CopyConfigurationRequest from huaweicloudsdkdds.v3.model.copy_configuration_request_body import CopyConfigurationRequestBody @@ -109,6 +118,7 @@ from huaweicloudsdkdds.v3.model.delete_session_response import DeleteSessionResponse from huaweicloudsdkdds.v3.model.diff_configuration_request import DiffConfigurationRequest from huaweicloudsdkdds.v3.model.diff_details import DiffDetails +from huaweicloudsdkdds.v3.model.disk_auto_expansion_policy import DiskAutoExpansionPolicy from huaweicloudsdkdds.v3.model.disk_volumes import DiskVolumes from huaweicloudsdkdds.v3.model.download_errorlog_request import DownloadErrorlogRequest from huaweicloudsdkdds.v3.model.download_errorlog_request_body import DownloadErrorlogRequestBody @@ -200,6 +210,8 @@ from huaweicloudsdkdds.v3.model.list_restore_times_request import ListRestoreTimesRequest from huaweicloudsdkdds.v3.model.list_restore_times_response import ListRestoreTimesResponse from huaweicloudsdkdds.v3.model.list_restore_times_response_body_restore_time import ListRestoreTimesResponseBodyRestoreTime +from huaweicloudsdkdds.v3.model.list_scheduled_tasks_request import ListScheduledTasksRequest +from huaweicloudsdkdds.v3.model.list_scheduled_tasks_response import ListScheduledTasksResponse from huaweicloudsdkdds.v3.model.list_sessions_request import ListSessionsRequest from huaweicloudsdkdds.v3.model.list_sessions_response import ListSessionsResponse from huaweicloudsdkdds.v3.model.list_slow_logs_request import ListSlowLogsRequest @@ -262,9 +274,13 @@ from huaweicloudsdkdds.v3.model.restore_new_instance_response import RestoreNewInstanceResponse from huaweicloudsdkdds.v3.model.restore_point import RestorePoint from huaweicloudsdkdds.v3.model.roles_option import RolesOption +from huaweicloudsdkdds.v3.model.scheduled_tasks_rsp_schedules import ScheduledTasksRspSchedules from huaweicloudsdkdds.v3.model.set_auditlog_policy_request import SetAuditlogPolicyRequest from huaweicloudsdkdds.v3.model.set_auditlog_policy_request_body import SetAuditlogPolicyRequestBody from huaweicloudsdkdds.v3.model.set_auditlog_policy_response import SetAuditlogPolicyResponse +from huaweicloudsdkdds.v3.model.set_auto_enlarge_policies_request import SetAutoEnlargePoliciesRequest +from huaweicloudsdkdds.v3.model.set_auto_enlarge_policies_request_body import SetAutoEnlargePoliciesRequestBody +from huaweicloudsdkdds.v3.model.set_auto_enlarge_policies_response import SetAutoEnlargePoliciesResponse from huaweicloudsdkdds.v3.model.set_backup_policy_request import SetBackupPolicyRequest from huaweicloudsdkdds.v3.model.set_backup_policy_request_body import SetBackupPolicyRequestBody from huaweicloudsdkdds.v3.model.set_backup_policy_response import SetBackupPolicyResponse @@ -278,6 +294,8 @@ from huaweicloudsdkdds.v3.model.show_api_version_response import ShowApiVersionResponse from huaweicloudsdkdds.v3.model.show_auditlog_policy_request import ShowAuditlogPolicyRequest from huaweicloudsdkdds.v3.model.show_auditlog_policy_response import ShowAuditlogPolicyResponse +from huaweicloudsdkdds.v3.model.show_auto_enlarge_policy_request import ShowAutoEnlargePolicyRequest +from huaweicloudsdkdds.v3.model.show_auto_enlarge_policy_response import ShowAutoEnlargePolicyResponse from huaweicloudsdkdds.v3.model.show_backup_download_link_request import ShowBackupDownloadLinkRequest from huaweicloudsdkdds.v3.model.show_backup_download_link_response import ShowBackupDownloadLinkResponse from huaweicloudsdkdds.v3.model.show_backup_policy_request import ShowBackupPolicyRequest @@ -296,6 +314,8 @@ from huaweicloudsdkdds.v3.model.show_disk_usage_response import ShowDiskUsageResponse from huaweicloudsdkdds.v3.model.show_entity_configuration_request import ShowEntityConfigurationRequest from huaweicloudsdkdds.v3.model.show_entity_configuration_response import ShowEntityConfigurationResponse +from huaweicloudsdkdds.v3.model.show_instance_configuration_modify_history_request import ShowInstanceConfigurationModifyHistoryRequest +from huaweicloudsdkdds.v3.model.show_instance_configuration_modify_history_response import ShowInstanceConfigurationModifyHistoryResponse from huaweicloudsdkdds.v3.model.show_job_detail_request import ShowJobDetailRequest from huaweicloudsdkdds.v3.model.show_job_detail_response import ShowJobDetailResponse from huaweicloudsdkdds.v3.model.show_kill_op_rule_rule_list_request import ShowKillOpRuleRuleListRequest @@ -375,6 +395,9 @@ from huaweicloudsdkdds.v3.model.upgrade_database_version_request import UpgradeDatabaseVersionRequest from huaweicloudsdkdds.v3.model.upgrade_database_version_request_body import UpgradeDatabaseVersionRequestBody from huaweicloudsdkdds.v3.model.upgrade_database_version_response import UpgradeDatabaseVersionResponse +from huaweicloudsdkdds.v3.model.upgrade_result import UpgradeResult +from huaweicloudsdkdds.v3.model.validate_configuration_name_request import ValidateConfigurationNameRequest +from huaweicloudsdkdds.v3.model.validate_configuration_name_response import ValidateConfigurationNameResponse from huaweicloudsdkdds.v3.model.volume import Volume from huaweicloudsdkdds.v3.model.weak_password_check_request_body import WeakPasswordCheckRequestBody diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/dds_async_client.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/dds_async_client.py index 9152bedbd7..ded5923bdb 100644 --- a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/dds_async_client.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/dds_async_client.py @@ -300,6 +300,73 @@ def _attach_internal_ip_http_info(self, request): return http_info + def batch_delete_backup_async(self, request): + """批量删除手动备份 + + 批量删除数据库实例的手动备份。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for BatchDeleteBackup + :type request: :class:`huaweicloudsdkdds.v3.BatchDeleteBackupRequest` + :rtype: :class:`huaweicloudsdkdds.v3.BatchDeleteBackupResponse` + """ + http_info = self._batch_delete_backup_http_info(request) + return self._call_api(**http_info) + + def batch_delete_backup_async_invoker(self, request): + http_info = self._batch_delete_backup_http_info(request) + return AsyncInvoker(self, http_info) + + def _batch_delete_backup_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v3/{project_id}/instances/backups", + "request_type": request.__class__.__name__, + "response_type": "BatchDeleteBackupResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def batch_tag_action_async(self, request): """批量添加或删除资源标签 @@ -367,6 +434,71 @@ def _batch_tag_action_http_info(self, request): return http_info + def batch_upgrade_database_version_async(self, request): + """批量数据库补丁升级 + + 批量升级数据库补丁版本。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for BatchUpgradeDatabaseVersion + :type request: :class:`huaweicloudsdkdds.v3.BatchUpgradeDatabaseVersionRequest` + :rtype: :class:`huaweicloudsdkdds.v3.BatchUpgradeDatabaseVersionResponse` + """ + http_info = self._batch_upgrade_database_version_http_info(request) + return self._call_api(**http_info) + + def batch_upgrade_database_version_async_invoker(self, request): + http_info = self._batch_upgrade_database_version_http_info(request) + return AsyncInvoker(self, http_info) + + def _batch_upgrade_database_version_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v3/{project_id}/instances/db-upgrade", + "request_type": request.__class__.__name__, + "response_type": "BatchUpgradeDatabaseVersionResponse" + } + + 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 cancel_eip_async(self, request): """解绑弹性公网IP @@ -432,6 +564,71 @@ def _cancel_eip_http_info(self, request): return http_info + def cancel_scheduled_task_async(self, request): + """取消定时任务 + + 根据任务ID取消定时任务。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CancelScheduledTask + :type request: :class:`huaweicloudsdkdds.v3.CancelScheduledTaskRequest` + :rtype: :class:`huaweicloudsdkdds.v3.CancelScheduledTaskResponse` + """ + http_info = self._cancel_scheduled_task_http_info(request) + return self._call_api(**http_info) + + def cancel_scheduled_task_async_invoker(self, request): + http_info = self._cancel_scheduled_task_http_info(request) + return AsyncInvoker(self, http_info) + + def _cancel_scheduled_task_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v3/{project_id}/scheduled-jobs/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "CancelScheduledTaskResponse" + } + + 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 change_ops_window_async(self, request): """设置可维护时间段 @@ -3773,6 +3970,83 @@ def _list_restore_times_http_info(self, request): return http_info + def list_scheduled_tasks_async(self, request): + """查询定时任务 + + 根据指定条件查询定时任务列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListScheduledTasks + :type request: :class:`huaweicloudsdkdds.v3.ListScheduledTasksRequest` + :rtype: :class:`huaweicloudsdkdds.v3.ListScheduledTasksResponse` + """ + http_info = self._list_scheduled_tasks_http_info(request) + return self._call_api(**http_info) + + def list_scheduled_tasks_async_invoker(self, request): + http_info = self._list_scheduled_tasks_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_scheduled_tasks_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/scheduled-jobs", + "request_type": request.__class__.__name__, + "response_type": "ListScheduledTasksResponse" + } + + 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 'job_name' in local_var_params: + query_params.append(('job_name', local_var_params['job_name'])) + if 'job_status' in local_var_params: + query_params.append(('job_status', local_var_params['job_status'])) + if 'instance_id' in local_var_params: + query_params.append(('instance_id', local_var_params['instance_id'])) + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + + form_params = {} + + body = 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_sessions_async(self, request): """查询实例节点会话 @@ -4802,6 +5076,71 @@ def _set_auditlog_policy_http_info(self, request): return http_info + def set_auto_enlarge_policies_async(self, request): + """设置磁盘自动扩容策略 + + 设置磁盘自动扩容策略。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for SetAutoEnlargePolicies + :type request: :class:`huaweicloudsdkdds.v3.SetAutoEnlargePoliciesRequest` + :rtype: :class:`huaweicloudsdkdds.v3.SetAutoEnlargePoliciesResponse` + """ + http_info = self._set_auto_enlarge_policies_http_info(request) + return self._call_api(**http_info) + + def set_auto_enlarge_policies_async_invoker(self, request): + http_info = self._set_auto_enlarge_policies_http_info(request) + return AsyncInvoker(self, http_info) + + def _set_auto_enlarge_policies_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v3/{project_id}/instances/auto-enlarge-volume-policies", + "request_type": request.__class__.__name__, + "response_type": "SetAutoEnlargePoliciesResponse" + } + + 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 set_backup_policy_async(self, request): """设置自动备份策略 @@ -5135,6 +5474,71 @@ def _show_auditlog_policy_http_info(self, request): return http_info + def show_auto_enlarge_policy_async(self, request): + """查询磁盘自动扩容策略 + + 查询磁盘自动扩容策略。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowAutoEnlargePolicy + :type request: :class:`huaweicloudsdkdds.v3.ShowAutoEnlargePolicyRequest` + :rtype: :class:`huaweicloudsdkdds.v3.ShowAutoEnlargePolicyResponse` + """ + http_info = self._show_auto_enlarge_policy_http_info(request) + return self._call_api(**http_info) + + def show_auto_enlarge_policy_async_invoker(self, request): + http_info = self._show_auto_enlarge_policy_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_auto_enlarge_policy_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/instances/{instance_id}/auto-enlarge-volume-policy", + "request_type": request.__class__.__name__, + "response_type": "ShowAutoEnlargePolicyResponse" + } + + 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_backup_download_link_async(self, request): """获取备份下载链接 @@ -5738,6 +6142,75 @@ def _show_entity_configuration_http_info(self, request): return http_info + def show_instance_configuration_modify_history_async(self, request): + """查询实例参数的修改历史 + + 查询实例参数的修改历史。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowInstanceConfigurationModifyHistory + :type request: :class:`huaweicloudsdkdds.v3.ShowInstanceConfigurationModifyHistoryRequest` + :rtype: :class:`huaweicloudsdkdds.v3.ShowInstanceConfigurationModifyHistoryResponse` + """ + http_info = self._show_instance_configuration_modify_history_http_info(request) + return self._call_api(**http_info) + + def show_instance_configuration_modify_history_async_invoker(self, request): + http_info = self._show_instance_configuration_modify_history_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_instance_configuration_modify_history_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/instances/{instance_id}/configuration-histories", + "request_type": request.__class__.__name__, + "response_type": "ShowInstanceConfigurationModifyHistoryResponse" + } + + 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 = {} + + 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_detail_async(self, request): """获取DDS任务中心指定ID的任务信息。 @@ -7610,6 +8083,71 @@ def _upgrade_database_version_http_info(self, request): return http_info + def validate_configuration_name_async(self, request): + """校验参数模板名称是否存在 + + 校验参数模板名称是否存在。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ValidateConfigurationName + :type request: :class:`huaweicloudsdkdds.v3.ValidateConfigurationNameRequest` + :rtype: :class:`huaweicloudsdkdds.v3.ValidateConfigurationNameResponse` + """ + http_info = self._validate_configuration_name_http_info(request) + return self._call_api(**http_info) + + def validate_configuration_name_async_invoker(self, request): + http_info = self._validate_configuration_name_http_info(request) + return AsyncInvoker(self, http_info) + + def _validate_configuration_name_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/configurations/name-validation", + "request_type": request.__class__.__name__, + "response_type": "ValidateConfigurationNameResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + + 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_api_version_async(self, request): """查询当前支持的API版本信息列表 diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/dds_client.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/dds_client.py index 6f84085efc..1bdc5dd6a9 100644 --- a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/dds_client.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/dds_client.py @@ -300,6 +300,73 @@ def _attach_internal_ip_http_info(cls, request): return http_info + def batch_delete_backup(self, request): + """批量删除手动备份 + + 批量删除数据库实例的手动备份。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for BatchDeleteBackup + :type request: :class:`huaweicloudsdkdds.v3.BatchDeleteBackupRequest` + :rtype: :class:`huaweicloudsdkdds.v3.BatchDeleteBackupResponse` + """ + http_info = self._batch_delete_backup_http_info(request) + return self._call_api(**http_info) + + def batch_delete_backup_invoker(self, request): + http_info = self._batch_delete_backup_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _batch_delete_backup_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v3/{project_id}/instances/backups", + "request_type": request.__class__.__name__, + "response_type": "BatchDeleteBackupResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def batch_tag_action(self, request): """批量添加或删除资源标签 @@ -367,6 +434,71 @@ def _batch_tag_action_http_info(cls, request): return http_info + def batch_upgrade_database_version(self, request): + """批量数据库补丁升级 + + 批量升级数据库补丁版本。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for BatchUpgradeDatabaseVersion + :type request: :class:`huaweicloudsdkdds.v3.BatchUpgradeDatabaseVersionRequest` + :rtype: :class:`huaweicloudsdkdds.v3.BatchUpgradeDatabaseVersionResponse` + """ + http_info = self._batch_upgrade_database_version_http_info(request) + return self._call_api(**http_info) + + def batch_upgrade_database_version_invoker(self, request): + http_info = self._batch_upgrade_database_version_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _batch_upgrade_database_version_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v3/{project_id}/instances/db-upgrade", + "request_type": request.__class__.__name__, + "response_type": "BatchUpgradeDatabaseVersionResponse" + } + + 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 cancel_eip(self, request): """解绑弹性公网IP @@ -432,6 +564,71 @@ def _cancel_eip_http_info(cls, request): return http_info + def cancel_scheduled_task(self, request): + """取消定时任务 + + 根据任务ID取消定时任务。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CancelScheduledTask + :type request: :class:`huaweicloudsdkdds.v3.CancelScheduledTaskRequest` + :rtype: :class:`huaweicloudsdkdds.v3.CancelScheduledTaskResponse` + """ + http_info = self._cancel_scheduled_task_http_info(request) + return self._call_api(**http_info) + + def cancel_scheduled_task_invoker(self, request): + http_info = self._cancel_scheduled_task_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _cancel_scheduled_task_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v3/{project_id}/scheduled-jobs/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "CancelScheduledTaskResponse" + } + + 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 change_ops_window(self, request): """设置可维护时间段 @@ -3773,6 +3970,83 @@ def _list_restore_times_http_info(cls, request): return http_info + def list_scheduled_tasks(self, request): + """查询定时任务 + + 根据指定条件查询定时任务列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListScheduledTasks + :type request: :class:`huaweicloudsdkdds.v3.ListScheduledTasksRequest` + :rtype: :class:`huaweicloudsdkdds.v3.ListScheduledTasksResponse` + """ + http_info = self._list_scheduled_tasks_http_info(request) + return self._call_api(**http_info) + + def list_scheduled_tasks_invoker(self, request): + http_info = self._list_scheduled_tasks_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_scheduled_tasks_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/scheduled-jobs", + "request_type": request.__class__.__name__, + "response_type": "ListScheduledTasksResponse" + } + + 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 'job_name' in local_var_params: + query_params.append(('job_name', local_var_params['job_name'])) + if 'job_status' in local_var_params: + query_params.append(('job_status', local_var_params['job_status'])) + if 'instance_id' in local_var_params: + query_params.append(('instance_id', local_var_params['instance_id'])) + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + + form_params = {} + + body = 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_sessions(self, request): """查询实例节点会话 @@ -4802,6 +5076,71 @@ def _set_auditlog_policy_http_info(cls, request): return http_info + def set_auto_enlarge_policies(self, request): + """设置磁盘自动扩容策略 + + 设置磁盘自动扩容策略。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for SetAutoEnlargePolicies + :type request: :class:`huaweicloudsdkdds.v3.SetAutoEnlargePoliciesRequest` + :rtype: :class:`huaweicloudsdkdds.v3.SetAutoEnlargePoliciesResponse` + """ + http_info = self._set_auto_enlarge_policies_http_info(request) + return self._call_api(**http_info) + + def set_auto_enlarge_policies_invoker(self, request): + http_info = self._set_auto_enlarge_policies_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _set_auto_enlarge_policies_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v3/{project_id}/instances/auto-enlarge-volume-policies", + "request_type": request.__class__.__name__, + "response_type": "SetAutoEnlargePoliciesResponse" + } + + 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 set_backup_policy(self, request): """设置自动备份策略 @@ -5135,6 +5474,71 @@ def _show_auditlog_policy_http_info(cls, request): return http_info + def show_auto_enlarge_policy(self, request): + """查询磁盘自动扩容策略 + + 查询磁盘自动扩容策略。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowAutoEnlargePolicy + :type request: :class:`huaweicloudsdkdds.v3.ShowAutoEnlargePolicyRequest` + :rtype: :class:`huaweicloudsdkdds.v3.ShowAutoEnlargePolicyResponse` + """ + http_info = self._show_auto_enlarge_policy_http_info(request) + return self._call_api(**http_info) + + def show_auto_enlarge_policy_invoker(self, request): + http_info = self._show_auto_enlarge_policy_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_auto_enlarge_policy_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/instances/{instance_id}/auto-enlarge-volume-policy", + "request_type": request.__class__.__name__, + "response_type": "ShowAutoEnlargePolicyResponse" + } + + 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_backup_download_link(self, request): """获取备份下载链接 @@ -5738,6 +6142,75 @@ def _show_entity_configuration_http_info(cls, request): return http_info + def show_instance_configuration_modify_history(self, request): + """查询实例参数的修改历史 + + 查询实例参数的修改历史。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowInstanceConfigurationModifyHistory + :type request: :class:`huaweicloudsdkdds.v3.ShowInstanceConfigurationModifyHistoryRequest` + :rtype: :class:`huaweicloudsdkdds.v3.ShowInstanceConfigurationModifyHistoryResponse` + """ + http_info = self._show_instance_configuration_modify_history_http_info(request) + return self._call_api(**http_info) + + def show_instance_configuration_modify_history_invoker(self, request): + http_info = self._show_instance_configuration_modify_history_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_instance_configuration_modify_history_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/instances/{instance_id}/configuration-histories", + "request_type": request.__class__.__name__, + "response_type": "ShowInstanceConfigurationModifyHistoryResponse" + } + + 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 = {} + + 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_detail(self, request): """获取DDS任务中心指定ID的任务信息。 @@ -7610,6 +8083,71 @@ def _upgrade_database_version_http_info(cls, request): return http_info + def validate_configuration_name(self, request): + """校验参数模板名称是否存在 + + 校验参数模板名称是否存在。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ValidateConfigurationName + :type request: :class:`huaweicloudsdkdds.v3.ValidateConfigurationNameRequest` + :rtype: :class:`huaweicloudsdkdds.v3.ValidateConfigurationNameResponse` + """ + http_info = self._validate_configuration_name_http_info(request) + return self._call_api(**http_info) + + def validate_configuration_name_invoker(self, request): + http_info = self._validate_configuration_name_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _validate_configuration_name_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/configurations/name-validation", + "request_type": request.__class__.__name__, + "response_type": "ValidateConfigurationNameResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + + 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_api_version(self, request): """查询当前支持的API版本信息列表 diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/__init__.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/__init__.py index e4e6782403..08871cc891 100644 --- a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/__init__.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/__init__.py @@ -27,11 +27,19 @@ from huaweicloudsdkdds.v3.model.backup_strategy import BackupStrategy from huaweicloudsdkdds.v3.model.backup_strategy_for_item_response import BackupStrategyForItemResponse from huaweicloudsdkdds.v3.model.balancer_active_window import BalancerActiveWindow +from huaweicloudsdkdds.v3.model.batch_delete_backup_request import BatchDeleteBackupRequest +from huaweicloudsdkdds.v3.model.batch_delete_backup_request_body import BatchDeleteBackupRequestBody +from huaweicloudsdkdds.v3.model.batch_delete_backup_response import BatchDeleteBackupResponse from huaweicloudsdkdds.v3.model.batch_operate_instance_tag_request_body import BatchOperateInstanceTagRequestBody from huaweicloudsdkdds.v3.model.batch_tag_action_request import BatchTagActionRequest from huaweicloudsdkdds.v3.model.batch_tag_action_response import BatchTagActionResponse +from huaweicloudsdkdds.v3.model.batch_upgrade_database_version_request import BatchUpgradeDatabaseVersionRequest +from huaweicloudsdkdds.v3.model.batch_upgrade_database_version_request_body import BatchUpgradeDatabaseVersionRequestBody +from huaweicloudsdkdds.v3.model.batch_upgrade_database_version_response import BatchUpgradeDatabaseVersionResponse from huaweicloudsdkdds.v3.model.cancel_eip_request import CancelEipRequest from huaweicloudsdkdds.v3.model.cancel_eip_response import CancelEipResponse +from huaweicloudsdkdds.v3.model.cancel_scheduled_task_request import CancelScheduledTaskRequest +from huaweicloudsdkdds.v3.model.cancel_scheduled_task_response import CancelScheduledTaskResponse from huaweicloudsdkdds.v3.model.cert_info import CertInfo from huaweicloudsdkdds.v3.model.change_ops_window_request import ChangeOpsWindowRequest from huaweicloudsdkdds.v3.model.change_ops_window_response import ChangeOpsWindowResponse @@ -45,6 +53,7 @@ from huaweicloudsdkdds.v3.model.client_network_request_body import ClientNetworkRequestBody from huaweicloudsdkdds.v3.model.compare_configuration_request import CompareConfigurationRequest from huaweicloudsdkdds.v3.model.compare_configuration_response import CompareConfigurationResponse +from huaweicloudsdkdds.v3.model.configuration_modify_history_info import ConfigurationModifyHistoryInfo from huaweicloudsdkdds.v3.model.configuration_parameters_result import ConfigurationParametersResult from huaweicloudsdkdds.v3.model.copy_configuration_request import CopyConfigurationRequest from huaweicloudsdkdds.v3.model.copy_configuration_request_body import CopyConfigurationRequestBody @@ -107,6 +116,7 @@ from huaweicloudsdkdds.v3.model.delete_session_response import DeleteSessionResponse from huaweicloudsdkdds.v3.model.diff_configuration_request import DiffConfigurationRequest from huaweicloudsdkdds.v3.model.diff_details import DiffDetails +from huaweicloudsdkdds.v3.model.disk_auto_expansion_policy import DiskAutoExpansionPolicy from huaweicloudsdkdds.v3.model.disk_volumes import DiskVolumes from huaweicloudsdkdds.v3.model.download_errorlog_request import DownloadErrorlogRequest from huaweicloudsdkdds.v3.model.download_errorlog_request_body import DownloadErrorlogRequestBody @@ -198,6 +208,8 @@ from huaweicloudsdkdds.v3.model.list_restore_times_request import ListRestoreTimesRequest from huaweicloudsdkdds.v3.model.list_restore_times_response import ListRestoreTimesResponse from huaweicloudsdkdds.v3.model.list_restore_times_response_body_restore_time import ListRestoreTimesResponseBodyRestoreTime +from huaweicloudsdkdds.v3.model.list_scheduled_tasks_request import ListScheduledTasksRequest +from huaweicloudsdkdds.v3.model.list_scheduled_tasks_response import ListScheduledTasksResponse from huaweicloudsdkdds.v3.model.list_sessions_request import ListSessionsRequest from huaweicloudsdkdds.v3.model.list_sessions_response import ListSessionsResponse from huaweicloudsdkdds.v3.model.list_slow_logs_request import ListSlowLogsRequest @@ -260,9 +272,13 @@ from huaweicloudsdkdds.v3.model.restore_new_instance_response import RestoreNewInstanceResponse from huaweicloudsdkdds.v3.model.restore_point import RestorePoint from huaweicloudsdkdds.v3.model.roles_option import RolesOption +from huaweicloudsdkdds.v3.model.scheduled_tasks_rsp_schedules import ScheduledTasksRspSchedules from huaweicloudsdkdds.v3.model.set_auditlog_policy_request import SetAuditlogPolicyRequest from huaweicloudsdkdds.v3.model.set_auditlog_policy_request_body import SetAuditlogPolicyRequestBody from huaweicloudsdkdds.v3.model.set_auditlog_policy_response import SetAuditlogPolicyResponse +from huaweicloudsdkdds.v3.model.set_auto_enlarge_policies_request import SetAutoEnlargePoliciesRequest +from huaweicloudsdkdds.v3.model.set_auto_enlarge_policies_request_body import SetAutoEnlargePoliciesRequestBody +from huaweicloudsdkdds.v3.model.set_auto_enlarge_policies_response import SetAutoEnlargePoliciesResponse from huaweicloudsdkdds.v3.model.set_backup_policy_request import SetBackupPolicyRequest from huaweicloudsdkdds.v3.model.set_backup_policy_request_body import SetBackupPolicyRequestBody from huaweicloudsdkdds.v3.model.set_backup_policy_response import SetBackupPolicyResponse @@ -276,6 +292,8 @@ from huaweicloudsdkdds.v3.model.show_api_version_response import ShowApiVersionResponse from huaweicloudsdkdds.v3.model.show_auditlog_policy_request import ShowAuditlogPolicyRequest from huaweicloudsdkdds.v3.model.show_auditlog_policy_response import ShowAuditlogPolicyResponse +from huaweicloudsdkdds.v3.model.show_auto_enlarge_policy_request import ShowAutoEnlargePolicyRequest +from huaweicloudsdkdds.v3.model.show_auto_enlarge_policy_response import ShowAutoEnlargePolicyResponse from huaweicloudsdkdds.v3.model.show_backup_download_link_request import ShowBackupDownloadLinkRequest from huaweicloudsdkdds.v3.model.show_backup_download_link_response import ShowBackupDownloadLinkResponse from huaweicloudsdkdds.v3.model.show_backup_policy_request import ShowBackupPolicyRequest @@ -294,6 +312,8 @@ from huaweicloudsdkdds.v3.model.show_disk_usage_response import ShowDiskUsageResponse from huaweicloudsdkdds.v3.model.show_entity_configuration_request import ShowEntityConfigurationRequest from huaweicloudsdkdds.v3.model.show_entity_configuration_response import ShowEntityConfigurationResponse +from huaweicloudsdkdds.v3.model.show_instance_configuration_modify_history_request import ShowInstanceConfigurationModifyHistoryRequest +from huaweicloudsdkdds.v3.model.show_instance_configuration_modify_history_response import ShowInstanceConfigurationModifyHistoryResponse from huaweicloudsdkdds.v3.model.show_job_detail_request import ShowJobDetailRequest from huaweicloudsdkdds.v3.model.show_job_detail_response import ShowJobDetailResponse from huaweicloudsdkdds.v3.model.show_kill_op_rule_rule_list_request import ShowKillOpRuleRuleListRequest @@ -373,5 +393,8 @@ from huaweicloudsdkdds.v3.model.upgrade_database_version_request import UpgradeDatabaseVersionRequest from huaweicloudsdkdds.v3.model.upgrade_database_version_request_body import UpgradeDatabaseVersionRequestBody from huaweicloudsdkdds.v3.model.upgrade_database_version_response import UpgradeDatabaseVersionResponse +from huaweicloudsdkdds.v3.model.upgrade_result import UpgradeResult +from huaweicloudsdkdds.v3.model.validate_configuration_name_request import ValidateConfigurationNameRequest +from huaweicloudsdkdds.v3.model.validate_configuration_name_response import ValidateConfigurationNameResponse from huaweicloudsdkdds.v3.model.volume import Volume from huaweicloudsdkdds.v3.model.weak_password_check_request_body import WeakPasswordCheckRequestBody diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/batch_delete_backup_request.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/batch_delete_backup_request.py new file mode 100644 index 0000000000..baa4da4949 --- /dev/null +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/batch_delete_backup_request.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchDeleteBackupRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'BatchDeleteBackupRequestBody' + } + + attribute_map = { + 'x_language': 'X-Language', + 'body': 'body' + } + + def __init__(self, x_language=None, body=None): + """BatchDeleteBackupRequest + + The model defined in huaweicloud sdk + + :param x_language: 语言。 + :type x_language: str + :param body: Body of the BatchDeleteBackupRequest + :type body: :class:`huaweicloudsdkdds.v3.BatchDeleteBackupRequestBody` + """ + + + + 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 BatchDeleteBackupRequest. + + 语言。 + + :return: The x_language of this BatchDeleteBackupRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this BatchDeleteBackupRequest. + + 语言。 + + :param x_language: The x_language of this BatchDeleteBackupRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def body(self): + """Gets the body of this BatchDeleteBackupRequest. + + :return: The body of this BatchDeleteBackupRequest. + :rtype: :class:`huaweicloudsdkdds.v3.BatchDeleteBackupRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this BatchDeleteBackupRequest. + + :param body: The body of this BatchDeleteBackupRequest. + :type body: :class:`huaweicloudsdkdds.v3.BatchDeleteBackupRequestBody` + """ + 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, BatchDeleteBackupRequest): + return False + + return self.__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-dds/huaweicloudsdkdds/v3/model/batch_delete_backup_request_body.py similarity index 66% rename from huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/unsubscribe_volume_response_body.py rename to huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/batch_delete_backup_request_body.py index 0085d5355d..fc61045629 100644 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/unsubscribe_volume_response_body.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/batch_delete_backup_request_body.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class UnsubscribeVolumeResponseBody: +class BatchDeleteBackupRequestBody: """ Attributes: @@ -17,50 +17,50 @@ class UnsubscribeVolumeResponseBody: sensitive_list = [] openapi_types = { - 'results': 'list[UnsubscribeVolume]' + 'backup_ids': 'list[str]' } attribute_map = { - 'results': 'results' + 'backup_ids': 'backup_ids' } - def __init__(self, results=None): - """UnsubscribeVolumeResponseBody + def __init__(self, backup_ids=None): + """BatchDeleteBackupRequestBody The model defined in huaweicloud sdk - :param results: 退订包周期云硬盘的结果。 - :type results: list[:class:`huaweicloudsdkevs.v2.UnsubscribeVolume`] + :param backup_ids: 需要批量删除的手动备份id列表,最多一次不超过10条。 + :type backup_ids: list[str] """ - self._results = None + self._backup_ids = None self.discriminator = None - self.results = results + self.backup_ids = backup_ids @property - def results(self): - """Gets the results of this UnsubscribeVolumeResponseBody. + def backup_ids(self): + """Gets the backup_ids of this BatchDeleteBackupRequestBody. - 退订包周期云硬盘的结果。 + 需要批量删除的手动备份id列表,最多一次不超过10条。 - :return: The results of this UnsubscribeVolumeResponseBody. - :rtype: list[:class:`huaweicloudsdkevs.v2.UnsubscribeVolume`] + :return: The backup_ids of this BatchDeleteBackupRequestBody. + :rtype: list[str] """ - return self._results + return self._backup_ids - @results.setter - def results(self, results): - """Sets the results of this UnsubscribeVolumeResponseBody. + @backup_ids.setter + def backup_ids(self, backup_ids): + """Sets the backup_ids of this BatchDeleteBackupRequestBody. - 退订包周期云硬盘的结果。 + 需要批量删除的手动备份id列表,最多一次不超过10条。 - :param results: The results of this UnsubscribeVolumeResponseBody. - :type results: list[:class:`huaweicloudsdkevs.v2.UnsubscribeVolume`] + :param backup_ids: The backup_ids of this BatchDeleteBackupRequestBody. + :type backup_ids: list[str] """ - self._results = results + self._backup_ids = backup_ids def to_dict(self): """Returns the model properties as a dict""" @@ -104,7 +104,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, UnsubscribeVolumeResponseBody): + if not isinstance(other, BatchDeleteBackupRequestBody): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/batch_delete_backup_response.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/batch_delete_backup_response.py new file mode 100644 index 0000000000..34949e113a --- /dev/null +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/batch_delete_backup_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 BatchDeleteBackupResponse(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): + """BatchDeleteBackupResponse + + The model defined in huaweicloud sdk + + """ + + super(BatchDeleteBackupResponse, 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, BatchDeleteBackupResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/batch_upgrade_database_version_request.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/batch_upgrade_database_version_request.py new file mode 100644 index 0000000000..bcb33c25dd --- /dev/null +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/batch_upgrade_database_version_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchUpgradeDatabaseVersionRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'BatchUpgradeDatabaseVersionRequestBody' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """BatchUpgradeDatabaseVersionRequest + + The model defined in huaweicloud sdk + + :param body: Body of the BatchUpgradeDatabaseVersionRequest + :type body: :class:`huaweicloudsdkdds.v3.BatchUpgradeDatabaseVersionRequestBody` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this BatchUpgradeDatabaseVersionRequest. + + :return: The body of this BatchUpgradeDatabaseVersionRequest. + :rtype: :class:`huaweicloudsdkdds.v3.BatchUpgradeDatabaseVersionRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this BatchUpgradeDatabaseVersionRequest. + + :param body: The body of this BatchUpgradeDatabaseVersionRequest. + :type body: :class:`huaweicloudsdkdds.v3.BatchUpgradeDatabaseVersionRequestBody` + """ + 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, BatchUpgradeDatabaseVersionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/batch_upgrade_database_version_request_body.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/batch_upgrade_database_version_request_body.py new file mode 100644 index 0000000000..74dd0d457d --- /dev/null +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/batch_upgrade_database_version_request_body.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchUpgradeDatabaseVersionRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_ids': 'list[str]' + } + + attribute_map = { + 'instance_ids': 'instance_ids' + } + + def __init__(self, instance_ids=None): + """BatchUpgradeDatabaseVersionRequestBody + + The model defined in huaweicloud sdk + + :param instance_ids: 指定需要升级数据库补丁版本的实例ID列表。 一次最多可传入10个实例ID。 + :type instance_ids: list[str] + """ + + + + self._instance_ids = None + self.discriminator = None + + self.instance_ids = instance_ids + + @property + def instance_ids(self): + """Gets the instance_ids of this BatchUpgradeDatabaseVersionRequestBody. + + 指定需要升级数据库补丁版本的实例ID列表。 一次最多可传入10个实例ID。 + + :return: The instance_ids of this BatchUpgradeDatabaseVersionRequestBody. + :rtype: list[str] + """ + return self._instance_ids + + @instance_ids.setter + def instance_ids(self, instance_ids): + """Sets the instance_ids of this BatchUpgradeDatabaseVersionRequestBody. + + 指定需要升级数据库补丁版本的实例ID列表。 一次最多可传入10个实例ID。 + + :param instance_ids: The instance_ids of this BatchUpgradeDatabaseVersionRequestBody. + :type instance_ids: list[str] + """ + self._instance_ids = instance_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, BatchUpgradeDatabaseVersionRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_image_batch_moderation_response.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/batch_upgrade_database_version_response.py similarity index 62% rename from huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_image_batch_moderation_response.py rename to huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/batch_upgrade_database_version_response.py index 6f108f9249..bf6491d4b9 100644 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_image_batch_moderation_response.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/batch_upgrade_database_version_response.py @@ -6,7 +6,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RunImageBatchModerationResponse(SdkResponse): +class BatchUpgradeDatabaseVersionResponse(SdkResponse): """ Attributes: @@ -18,51 +18,51 @@ class RunImageBatchModerationResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'result': 'list[ImageBatchModerationResultBody]' + 'upgrade_results': 'list[UpgradeResult]' } attribute_map = { - 'result': 'result' + 'upgrade_results': 'upgrade_results' } - def __init__(self, result=None): - """RunImageBatchModerationResponse + def __init__(self, upgrade_results=None): + """BatchUpgradeDatabaseVersionResponse The model defined in huaweicloud sdk - :param result: 调用成功时表示调用结果。 调用失败时无此字段。 - :type result: list[:class:`huaweicloudsdkmoderation.v2.ImageBatchModerationResultBody`] + :param upgrade_results: 批量升级结果。 + :type upgrade_results: list[:class:`huaweicloudsdkdds.v3.UpgradeResult`] """ - super(RunImageBatchModerationResponse, self).__init__() + super(BatchUpgradeDatabaseVersionResponse, self).__init__() - self._result = None + self._upgrade_results = None self.discriminator = None - if result is not None: - self.result = result + if upgrade_results is not None: + self.upgrade_results = upgrade_results @property - def result(self): - """Gets the result of this RunImageBatchModerationResponse. + def upgrade_results(self): + """Gets the upgrade_results of this BatchUpgradeDatabaseVersionResponse. - 调用成功时表示调用结果。 调用失败时无此字段。 + 批量升级结果。 - :return: The result of this RunImageBatchModerationResponse. - :rtype: list[:class:`huaweicloudsdkmoderation.v2.ImageBatchModerationResultBody`] + :return: The upgrade_results of this BatchUpgradeDatabaseVersionResponse. + :rtype: list[:class:`huaweicloudsdkdds.v3.UpgradeResult`] """ - return self._result + return self._upgrade_results - @result.setter - def result(self, result): - """Sets the result of this RunImageBatchModerationResponse. + @upgrade_results.setter + def upgrade_results(self, upgrade_results): + """Sets the upgrade_results of this BatchUpgradeDatabaseVersionResponse. - 调用成功时表示调用结果。 调用失败时无此字段。 + 批量升级结果。 - :param result: The result of this RunImageBatchModerationResponse. - :type result: list[:class:`huaweicloudsdkmoderation.v2.ImageBatchModerationResultBody`] + :param upgrade_results: The upgrade_results of this BatchUpgradeDatabaseVersionResponse. + :type upgrade_results: list[:class:`huaweicloudsdkdds.v3.UpgradeResult`] """ - self._result = result + self._upgrade_results = upgrade_results def to_dict(self): """Returns the model properties as a dict""" @@ -106,7 +106,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RunImageBatchModerationResponse): + if not isinstance(other, BatchUpgradeDatabaseVersionResponse): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_check_result_request.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/cancel_scheduled_task_request.py similarity index 82% rename from huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_check_result_request.py rename to huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/cancel_scheduled_task_request.py index eb5d1d062b..718fb24dc6 100644 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_check_result_request.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/cancel_scheduled_task_request.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RunCheckResultRequest: +class CancelScheduledTaskRequest: """ Attributes: @@ -25,11 +25,11 @@ class RunCheckResultRequest: } def __init__(self, job_id=None): - """RunCheckResultRequest + """CancelScheduledTaskRequest The model defined in huaweicloud sdk - :param job_id: 任务标识。 + :param job_id: 任务ID,取值为定时任务列表。 :type job_id: str """ @@ -42,22 +42,22 @@ def __init__(self, job_id=None): @property def job_id(self): - """Gets the job_id of this RunCheckResultRequest. + """Gets the job_id of this CancelScheduledTaskRequest. - 任务标识。 + 任务ID,取值为定时任务列表。 - :return: The job_id of this RunCheckResultRequest. + :return: The job_id of this CancelScheduledTaskRequest. :rtype: str """ return self._job_id @job_id.setter def job_id(self, job_id): - """Sets the job_id of this RunCheckResultRequest. + """Sets the job_id of this CancelScheduledTaskRequest. - 任务标识。 + 任务ID,取值为定时任务列表。 - :param job_id: The job_id of this RunCheckResultRequest. + :param job_id: The job_id of this CancelScheduledTaskRequest. :type job_id: str """ self._job_id = job_id @@ -104,7 +104,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RunCheckResultRequest): + if not isinstance(other, CancelScheduledTaskRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/change_volume_charge_mode_response.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/cancel_scheduled_task_response.py similarity index 84% rename from huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/change_volume_charge_mode_response.py rename to huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/cancel_scheduled_task_response.py index a159249d92..48bb463dc1 100644 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/change_volume_charge_mode_response.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/cancel_scheduled_task_response.py @@ -6,7 +6,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class ChangeVolumeChargeModeResponse(SdkResponse): +class CancelScheduledTaskResponse(SdkResponse): """ Attributes: @@ -26,7 +26,7 @@ class ChangeVolumeChargeModeResponse(SdkResponse): } def __init__(self, body=None): - """ChangeVolumeChargeModeResponse + """CancelScheduledTaskResponse The model defined in huaweicloud sdk @@ -34,7 +34,7 @@ def __init__(self, body=None): :type body: str """ - super(ChangeVolumeChargeModeResponse, self).__init__() + super(CancelScheduledTaskResponse, self).__init__() self._body = None self.discriminator = None @@ -44,18 +44,18 @@ def __init__(self, body=None): @property def body(self): - """Gets the body of this ChangeVolumeChargeModeResponse. + """Gets the body of this CancelScheduledTaskResponse. - :return: The body of this ChangeVolumeChargeModeResponse. + :return: The body of this CancelScheduledTaskResponse. :rtype: str """ return self._body @body.setter def body(self, body): - """Sets the body of this ChangeVolumeChargeModeResponse. + """Sets the body of this CancelScheduledTaskResponse. - :param body: The body of this ChangeVolumeChargeModeResponse. + :param body: The body of this CancelScheduledTaskResponse. :type body: str """ self._body = body @@ -102,7 +102,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ChangeVolumeChargeModeResponse): + if not isinstance(other, CancelScheduledTaskResponse): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/configuration_modify_history_info.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/configuration_modify_history_info.py new file mode 100644 index 0000000000..cd27b20449 --- /dev/null +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/configuration_modify_history_info.py @@ -0,0 +1,282 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ConfigurationModifyHistoryInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'parameter_name': 'str', + 'old_value': 'str', + 'new_value': 'str', + 'update_result': 'str', + 'applied': 'bool', + 'updated_at': 'str', + 'applied_at': 'str' + } + + attribute_map = { + 'parameter_name': 'parameter_name', + 'old_value': 'old_value', + 'new_value': 'new_value', + 'update_result': 'update_result', + 'applied': 'applied', + 'updated_at': 'updated_at', + 'applied_at': 'applied_at' + } + + def __init__(self, parameter_name=None, old_value=None, new_value=None, update_result=None, applied=None, updated_at=None, applied_at=None): + """ConfigurationModifyHistoryInfo + + The model defined in huaweicloud sdk + + :param parameter_name: 参数名称。 + :type parameter_name: str + :param old_value: 修改前的值。 + :type old_value: str + :param new_value: 修改后的值。 + :type new_value: str + :param update_result: 更新结果。 + :type update_result: str + :param applied: 是否被应用。 - true: 已被应用。 - false: 未被应用。 + :type applied: bool + :param updated_at: 修改时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + :type updated_at: str + :param applied_at: 应用时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + :type applied_at: str + """ + + + + self._parameter_name = None + self._old_value = None + self._new_value = None + self._update_result = None + self._applied = None + self._updated_at = None + self._applied_at = None + self.discriminator = None + + self.parameter_name = parameter_name + self.old_value = old_value + self.new_value = new_value + self.update_result = update_result + self.applied = applied + self.updated_at = updated_at + self.applied_at = applied_at + + @property + def parameter_name(self): + """Gets the parameter_name of this ConfigurationModifyHistoryInfo. + + 参数名称。 + + :return: The parameter_name of this ConfigurationModifyHistoryInfo. + :rtype: str + """ + return self._parameter_name + + @parameter_name.setter + def parameter_name(self, parameter_name): + """Sets the parameter_name of this ConfigurationModifyHistoryInfo. + + 参数名称。 + + :param parameter_name: The parameter_name of this ConfigurationModifyHistoryInfo. + :type parameter_name: str + """ + self._parameter_name = parameter_name + + @property + def old_value(self): + """Gets the old_value of this ConfigurationModifyHistoryInfo. + + 修改前的值。 + + :return: The old_value of this ConfigurationModifyHistoryInfo. + :rtype: str + """ + return self._old_value + + @old_value.setter + def old_value(self, old_value): + """Sets the old_value of this ConfigurationModifyHistoryInfo. + + 修改前的值。 + + :param old_value: The old_value of this ConfigurationModifyHistoryInfo. + :type old_value: str + """ + self._old_value = old_value + + @property + def new_value(self): + """Gets the new_value of this ConfigurationModifyHistoryInfo. + + 修改后的值。 + + :return: The new_value of this ConfigurationModifyHistoryInfo. + :rtype: str + """ + return self._new_value + + @new_value.setter + def new_value(self, new_value): + """Sets the new_value of this ConfigurationModifyHistoryInfo. + + 修改后的值。 + + :param new_value: The new_value of this ConfigurationModifyHistoryInfo. + :type new_value: str + """ + self._new_value = new_value + + @property + def update_result(self): + """Gets the update_result of this ConfigurationModifyHistoryInfo. + + 更新结果。 + + :return: The update_result of this ConfigurationModifyHistoryInfo. + :rtype: str + """ + return self._update_result + + @update_result.setter + def update_result(self, update_result): + """Sets the update_result of this ConfigurationModifyHistoryInfo. + + 更新结果。 + + :param update_result: The update_result of this ConfigurationModifyHistoryInfo. + :type update_result: str + """ + self._update_result = update_result + + @property + def applied(self): + """Gets the applied of this ConfigurationModifyHistoryInfo. + + 是否被应用。 - true: 已被应用。 - false: 未被应用。 + + :return: The applied of this ConfigurationModifyHistoryInfo. + :rtype: bool + """ + return self._applied + + @applied.setter + def applied(self, applied): + """Sets the applied of this ConfigurationModifyHistoryInfo. + + 是否被应用。 - true: 已被应用。 - false: 未被应用。 + + :param applied: The applied of this ConfigurationModifyHistoryInfo. + :type applied: bool + """ + self._applied = applied + + @property + def updated_at(self): + """Gets the updated_at of this ConfigurationModifyHistoryInfo. + + 修改时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + + :return: The updated_at of this ConfigurationModifyHistoryInfo. + :rtype: str + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this ConfigurationModifyHistoryInfo. + + 修改时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + + :param updated_at: The updated_at of this ConfigurationModifyHistoryInfo. + :type updated_at: str + """ + self._updated_at = updated_at + + @property + def applied_at(self): + """Gets the applied_at of this ConfigurationModifyHistoryInfo. + + 应用时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + + :return: The applied_at of this ConfigurationModifyHistoryInfo. + :rtype: str + """ + return self._applied_at + + @applied_at.setter + def applied_at(self, applied_at): + """Sets the applied_at of this ConfigurationModifyHistoryInfo. + + 应用时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + + :param applied_at: The applied_at of this ConfigurationModifyHistoryInfo. + :type applied_at: str + """ + self._applied_at = applied_at + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConfigurationModifyHistoryInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/disk_auto_expansion_policy.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/disk_auto_expansion_policy.py new file mode 100644 index 0000000000..d5b97c8593 --- /dev/null +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/disk_auto_expansion_policy.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DiskAutoExpansionPolicy: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'threshold': 'int', + 'step': 'int' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'threshold': 'threshold', + 'step': 'step' + } + + def __init__(self, instance_id=None, threshold=None, step=None): + """DiskAutoExpansionPolicy + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID。 + :type instance_id: str + :param threshold: 触发自动扩容阈值,只支持输入80、85和90。默认阈值为90,即当已使用存储空间达到总存储空间的90%时就会触发扩容。集群实例的自动扩容阈值指的是每个shard。 + :type threshold: int + :param step: 扩容步长(s%),默认为10,支持输入10、15和20。当触发自动扩容的时候,自动扩容当前存储空间的s%(非10倍数向上取整。小数点后四舍五入,默认一次最小10G,账户余额不足时,会导致包年包月实例扩容失败)。 + :type step: int + """ + + + + self._instance_id = None + self._threshold = None + self._step = None + self.discriminator = None + + self.instance_id = instance_id + if threshold is not None: + self.threshold = threshold + if step is not None: + self.step = step + + @property + def instance_id(self): + """Gets the instance_id of this DiskAutoExpansionPolicy. + + 实例ID。 + + :return: The instance_id of this DiskAutoExpansionPolicy. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this DiskAutoExpansionPolicy. + + 实例ID。 + + :param instance_id: The instance_id of this DiskAutoExpansionPolicy. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def threshold(self): + """Gets the threshold of this DiskAutoExpansionPolicy. + + 触发自动扩容阈值,只支持输入80、85和90。默认阈值为90,即当已使用存储空间达到总存储空间的90%时就会触发扩容。集群实例的自动扩容阈值指的是每个shard。 + + :return: The threshold of this DiskAutoExpansionPolicy. + :rtype: int + """ + return self._threshold + + @threshold.setter + def threshold(self, threshold): + """Sets the threshold of this DiskAutoExpansionPolicy. + + 触发自动扩容阈值,只支持输入80、85和90。默认阈值为90,即当已使用存储空间达到总存储空间的90%时就会触发扩容。集群实例的自动扩容阈值指的是每个shard。 + + :param threshold: The threshold of this DiskAutoExpansionPolicy. + :type threshold: int + """ + self._threshold = threshold + + @property + def step(self): + """Gets the step of this DiskAutoExpansionPolicy. + + 扩容步长(s%),默认为10,支持输入10、15和20。当触发自动扩容的时候,自动扩容当前存储空间的s%(非10倍数向上取整。小数点后四舍五入,默认一次最小10G,账户余额不足时,会导致包年包月实例扩容失败)。 + + :return: The step of this DiskAutoExpansionPolicy. + :rtype: int + """ + return self._step + + @step.setter + def step(self, step): + """Sets the step of this DiskAutoExpansionPolicy. + + 扩容步长(s%),默认为10,支持输入10、15和20。当触发自动扩容的时候,自动扩容当前存储空间的s%(非10倍数向上取整。小数点后四舍五入,默认一次最小10G,账户余额不足时,会导致包年包月实例扩容失败)。 + + :param step: The step of this DiskAutoExpansionPolicy. + :type step: int + """ + self._step = step + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DiskAutoExpansionPolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/list_scheduled_tasks_request.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/list_scheduled_tasks_request.py new file mode 100644 index 0000000000..f317281d41 --- /dev/null +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/list_scheduled_tasks_request.py @@ -0,0 +1,289 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListScheduledTasksRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'job_status': 'str', + 'instance_id': 'str', + 'start_time': 'str', + 'end_time': 'str', + 'offset': 'int', + 'limit': 'int' + } + + attribute_map = { + 'job_name': 'job_name', + 'job_status': 'job_status', + 'instance_id': 'instance_id', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, job_name=None, job_status=None, instance_id=None, start_time=None, end_time=None, offset=None, limit=None): + """ListScheduledTasksRequest + + The model defined in huaweicloud sdk + + :param job_name: 任务名称,默认为空。对应取值如下: \"RESIZE_FLAVOR\":变更实例的CPU和内存规格 + :type job_name: str + :param job_status: 任务执行状态,默认为空。 取值: 值为\"Pending\",表示任务未执行。 值为\"Running\",表示任务正在执行。 值为\"Completed\",表示任务执行成功。 值为\"Failed\",表示任务执行失败。 值为\"Canceled\",表示任务取消执行。 + :type job_status: str + :param instance_id: 实例ID,不传该值默认查所有符合条件的实例。 + :type instance_id: str + :param start_time: 任务创建起始时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100,不传默认为当前时间前七天。 + :type start_time: str + :param end_time: 任务创建结束时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100,不传默认为当前时间。 + :type end_time: str + :param offset: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0。 + :type offset: int + :param limit: 查询记录数。不传该参数时,默认为10,取值范围1-100。 + :type limit: int + """ + + + + self._job_name = None + self._job_status = None + self._instance_id = None + self._start_time = None + self._end_time = None + self._offset = None + self._limit = None + self.discriminator = None + + if job_name is not None: + self.job_name = job_name + if job_status is not None: + self.job_status = job_status + if instance_id is not None: + self.instance_id = instance_id + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + + @property + def job_name(self): + """Gets the job_name of this ListScheduledTasksRequest. + + 任务名称,默认为空。对应取值如下: \"RESIZE_FLAVOR\":变更实例的CPU和内存规格 + + :return: The job_name of this ListScheduledTasksRequest. + :rtype: str + """ + return self._job_name + + @job_name.setter + def job_name(self, job_name): + """Sets the job_name of this ListScheduledTasksRequest. + + 任务名称,默认为空。对应取值如下: \"RESIZE_FLAVOR\":变更实例的CPU和内存规格 + + :param job_name: The job_name of this ListScheduledTasksRequest. + :type job_name: str + """ + self._job_name = job_name + + @property + def job_status(self): + """Gets the job_status of this ListScheduledTasksRequest. + + 任务执行状态,默认为空。 取值: 值为\"Pending\",表示任务未执行。 值为\"Running\",表示任务正在执行。 值为\"Completed\",表示任务执行成功。 值为\"Failed\",表示任务执行失败。 值为\"Canceled\",表示任务取消执行。 + + :return: The job_status of this ListScheduledTasksRequest. + :rtype: str + """ + return self._job_status + + @job_status.setter + def job_status(self, job_status): + """Sets the job_status of this ListScheduledTasksRequest. + + 任务执行状态,默认为空。 取值: 值为\"Pending\",表示任务未执行。 值为\"Running\",表示任务正在执行。 值为\"Completed\",表示任务执行成功。 值为\"Failed\",表示任务执行失败。 值为\"Canceled\",表示任务取消执行。 + + :param job_status: The job_status of this ListScheduledTasksRequest. + :type job_status: str + """ + self._job_status = job_status + + @property + def instance_id(self): + """Gets the instance_id of this ListScheduledTasksRequest. + + 实例ID,不传该值默认查所有符合条件的实例。 + + :return: The instance_id of this ListScheduledTasksRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ListScheduledTasksRequest. + + 实例ID,不传该值默认查所有符合条件的实例。 + + :param instance_id: The instance_id of this ListScheduledTasksRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def start_time(self): + """Gets the start_time of this ListScheduledTasksRequest. + + 任务创建起始时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100,不传默认为当前时间前七天。 + + :return: The start_time of this ListScheduledTasksRequest. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ListScheduledTasksRequest. + + 任务创建起始时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100,不传默认为当前时间前七天。 + + :param start_time: The start_time of this ListScheduledTasksRequest. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ListScheduledTasksRequest. + + 任务创建结束时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100,不传默认为当前时间。 + + :return: The end_time of this ListScheduledTasksRequest. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ListScheduledTasksRequest. + + 任务创建结束时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100,不传默认为当前时间。 + + :param end_time: The end_time of this ListScheduledTasksRequest. + :type end_time: str + """ + self._end_time = end_time + + @property + def offset(self): + """Gets the offset of this ListScheduledTasksRequest. + + 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0。 + + :return: The offset of this ListScheduledTasksRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListScheduledTasksRequest. + + 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0。 + + :param offset: The offset of this ListScheduledTasksRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListScheduledTasksRequest. + + 查询记录数。不传该参数时,默认为10,取值范围1-100。 + + :return: The limit of this ListScheduledTasksRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListScheduledTasksRequest. + + 查询记录数。不传该参数时,默认为10,取值范围1-100。 + + :param limit: The limit of this ListScheduledTasksRequest. + :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, ListScheduledTasksRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_check_task_jobs_response.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/list_scheduled_tasks_response.py similarity index 53% rename from huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_check_task_jobs_response.py rename to huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/list_scheduled_tasks_response.py index 4b780792ea..4c42ac00c6 100644 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_check_task_jobs_response.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/list_scheduled_tasks_response.py @@ -6,7 +6,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RunCheckTaskJobsResponse(SdkResponse): +class ListScheduledTasksResponse(SdkResponse): """ Attributes: @@ -18,80 +18,80 @@ class RunCheckTaskJobsResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'result': 'list[CheckTaskJobsItemsBody]', - 'count': 'int' + 'total_count': 'int', + 'schedules': 'list[ScheduledTasksRspSchedules]' } attribute_map = { - 'result': 'result', - 'count': 'count' + 'total_count': 'total_count', + 'schedules': 'schedules' } - def __init__(self, result=None, count=None): - """RunCheckTaskJobsResponse + def __init__(self, total_count=None, schedules=None): + """ListScheduledTasksResponse The model defined in huaweicloud sdk - :param result: 调用成功时表示调用结果。 调用失败时无此字段。 - :type result: list[:class:`huaweicloudsdkmoderation.v2.CheckTaskJobsItemsBody`] - :param count: 符合查询条件的总任务数量。 - :type count: int + :param total_count: 记录数量 + :type total_count: int + :param schedules: 任务详情 + :type schedules: list[:class:`huaweicloudsdkdds.v3.ScheduledTasksRspSchedules`] """ - super(RunCheckTaskJobsResponse, self).__init__() + super(ListScheduledTasksResponse, self).__init__() - self._result = None - self._count = None + self._total_count = None + self._schedules = None self.discriminator = None - if result is not None: - self.result = result - if count is not None: - self.count = count + if total_count is not None: + self.total_count = total_count + if schedules is not None: + self.schedules = schedules @property - def result(self): - """Gets the result of this RunCheckTaskJobsResponse. + def total_count(self): + """Gets the total_count of this ListScheduledTasksResponse. - 调用成功时表示调用结果。 调用失败时无此字段。 + 记录数量 - :return: The result of this RunCheckTaskJobsResponse. - :rtype: list[:class:`huaweicloudsdkmoderation.v2.CheckTaskJobsItemsBody`] + :return: The total_count of this ListScheduledTasksResponse. + :rtype: int """ - return self._result + return self._total_count - @result.setter - def result(self, result): - """Sets the result of this RunCheckTaskJobsResponse. + @total_count.setter + def total_count(self, total_count): + """Sets the total_count of this ListScheduledTasksResponse. - 调用成功时表示调用结果。 调用失败时无此字段。 + 记录数量 - :param result: The result of this RunCheckTaskJobsResponse. - :type result: list[:class:`huaweicloudsdkmoderation.v2.CheckTaskJobsItemsBody`] + :param total_count: The total_count of this ListScheduledTasksResponse. + :type total_count: int """ - self._result = result + self._total_count = total_count @property - def count(self): - """Gets the count of this RunCheckTaskJobsResponse. + def schedules(self): + """Gets the schedules of this ListScheduledTasksResponse. - 符合查询条件的总任务数量。 + 任务详情 - :return: The count of this RunCheckTaskJobsResponse. - :rtype: int + :return: The schedules of this ListScheduledTasksResponse. + :rtype: list[:class:`huaweicloudsdkdds.v3.ScheduledTasksRspSchedules`] """ - return self._count + return self._schedules - @count.setter - def count(self, count): - """Sets the count of this RunCheckTaskJobsResponse. + @schedules.setter + def schedules(self, schedules): + """Sets the schedules of this ListScheduledTasksResponse. - 符合查询条件的总任务数量。 + 任务详情 - :param count: The count of this RunCheckTaskJobsResponse. - :type count: int + :param schedules: The schedules of this ListScheduledTasksResponse. + :type schedules: list[:class:`huaweicloudsdkdds.v3.ScheduledTasksRspSchedules`] """ - self._count = count + self._schedules = schedules def to_dict(self): """Returns the model properties as a dict""" @@ -135,7 +135,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RunCheckTaskJobsResponse): + if not isinstance(other, ListScheduledTasksResponse): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/scheduled_tasks_rsp_schedules.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/scheduled_tasks_rsp_schedules.py new file mode 100644 index 0000000000..129dfa4137 --- /dev/null +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/scheduled_tasks_rsp_schedules.py @@ -0,0 +1,347 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ScheduledTasksRspSchedules: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'job_name': 'str', + 'job_status': 'str', + 'instance_id': 'str', + 'instance_name': 'str', + 'instance_status': 'str', + 'create_time': 'str', + 'start_time': 'str', + 'end_time': 'str' + } + + attribute_map = { + 'job_id': 'job_id', + 'job_name': 'job_name', + 'job_status': 'job_status', + 'instance_id': 'instance_id', + 'instance_name': 'instance_name', + 'instance_status': 'instance_status', + 'create_time': 'create_time', + 'start_time': 'start_time', + 'end_time': 'end_time' + } + + def __init__(self, job_id=None, job_name=None, job_status=None, instance_id=None, instance_name=None, instance_status=None, create_time=None, start_time=None, end_time=None): + """ScheduledTasksRspSchedules + + The model defined in huaweicloud sdk + + :param job_id: 任务ID。 + :type job_id: str + :param job_name: 任务名称。对应取值如下: \"RESIZE_FLAVOR\":变更实例的CPU和内存规格 + :type job_name: str + :param job_status: 任务执行状态。 取值: 值为\"Running\",表示任务正在执行。 值为\"Completed\",表示任务执行成功。 值为\"Failed\",表示任务执行失败。 值为\"Pending\",表示任务未执行。 + :type job_status: str + :param instance_id: 实例ID。 + :type instance_id: str + :param instance_name: 实例名称。 + :type instance_name: str + :param instance_status: 实例状态。 取值: 值为“createfail”,表示实例创建失败。 值为“creating”,表示实例创建中。 值为“normal”,表示实例正常。 值为“abnormal”,表示实例异常。 值为“deleted”,表示实例已删除。 + :type instance_status: str + :param create_time: 任务创建时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 + :type create_time: str + :param start_time: 任务开始时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 + :type start_time: str + :param end_time: 任务结束时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 + :type end_time: str + """ + + + + self._job_id = None + self._job_name = None + self._job_status = None + self._instance_id = None + self._instance_name = None + self._instance_status = None + self._create_time = None + self._start_time = None + self._end_time = None + self.discriminator = None + + if job_id is not None: + self.job_id = job_id + if job_name is not None: + self.job_name = job_name + if job_status is not None: + self.job_status = job_status + if instance_id is not None: + self.instance_id = instance_id + if instance_name is not None: + self.instance_name = instance_name + if instance_status is not None: + self.instance_status = instance_status + if create_time is not None: + self.create_time = create_time + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + + @property + def job_id(self): + """Gets the job_id of this ScheduledTasksRspSchedules. + + 任务ID。 + + :return: The job_id of this ScheduledTasksRspSchedules. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this ScheduledTasksRspSchedules. + + 任务ID。 + + :param job_id: The job_id of this ScheduledTasksRspSchedules. + :type job_id: str + """ + self._job_id = job_id + + @property + def job_name(self): + """Gets the job_name of this ScheduledTasksRspSchedules. + + 任务名称。对应取值如下: \"RESIZE_FLAVOR\":变更实例的CPU和内存规格 + + :return: The job_name of this ScheduledTasksRspSchedules. + :rtype: str + """ + return self._job_name + + @job_name.setter + def job_name(self, job_name): + """Sets the job_name of this ScheduledTasksRspSchedules. + + 任务名称。对应取值如下: \"RESIZE_FLAVOR\":变更实例的CPU和内存规格 + + :param job_name: The job_name of this ScheduledTasksRspSchedules. + :type job_name: str + """ + self._job_name = job_name + + @property + def job_status(self): + """Gets the job_status of this ScheduledTasksRspSchedules. + + 任务执行状态。 取值: 值为\"Running\",表示任务正在执行。 值为\"Completed\",表示任务执行成功。 值为\"Failed\",表示任务执行失败。 值为\"Pending\",表示任务未执行。 + + :return: The job_status of this ScheduledTasksRspSchedules. + :rtype: str + """ + return self._job_status + + @job_status.setter + def job_status(self, job_status): + """Sets the job_status of this ScheduledTasksRspSchedules. + + 任务执行状态。 取值: 值为\"Running\",表示任务正在执行。 值为\"Completed\",表示任务执行成功。 值为\"Failed\",表示任务执行失败。 值为\"Pending\",表示任务未执行。 + + :param job_status: The job_status of this ScheduledTasksRspSchedules. + :type job_status: str + """ + self._job_status = job_status + + @property + def instance_id(self): + """Gets the instance_id of this ScheduledTasksRspSchedules. + + 实例ID。 + + :return: The instance_id of this ScheduledTasksRspSchedules. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ScheduledTasksRspSchedules. + + 实例ID。 + + :param instance_id: The instance_id of this ScheduledTasksRspSchedules. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def instance_name(self): + """Gets the instance_name of this ScheduledTasksRspSchedules. + + 实例名称。 + + :return: The instance_name of this ScheduledTasksRspSchedules. + :rtype: str + """ + return self._instance_name + + @instance_name.setter + def instance_name(self, instance_name): + """Sets the instance_name of this ScheduledTasksRspSchedules. + + 实例名称。 + + :param instance_name: The instance_name of this ScheduledTasksRspSchedules. + :type instance_name: str + """ + self._instance_name = instance_name + + @property + def instance_status(self): + """Gets the instance_status of this ScheduledTasksRspSchedules. + + 实例状态。 取值: 值为“createfail”,表示实例创建失败。 值为“creating”,表示实例创建中。 值为“normal”,表示实例正常。 值为“abnormal”,表示实例异常。 值为“deleted”,表示实例已删除。 + + :return: The instance_status of this ScheduledTasksRspSchedules. + :rtype: str + """ + return self._instance_status + + @instance_status.setter + def instance_status(self, instance_status): + """Sets the instance_status of this ScheduledTasksRspSchedules. + + 实例状态。 取值: 值为“createfail”,表示实例创建失败。 值为“creating”,表示实例创建中。 值为“normal”,表示实例正常。 值为“abnormal”,表示实例异常。 值为“deleted”,表示实例已删除。 + + :param instance_status: The instance_status of this ScheduledTasksRspSchedules. + :type instance_status: str + """ + self._instance_status = instance_status + + @property + def create_time(self): + """Gets the create_time of this ScheduledTasksRspSchedules. + + 任务创建时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 + + :return: The create_time of this ScheduledTasksRspSchedules. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ScheduledTasksRspSchedules. + + 任务创建时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 + + :param create_time: The create_time of this ScheduledTasksRspSchedules. + :type create_time: str + """ + self._create_time = create_time + + @property + def start_time(self): + """Gets the start_time of this ScheduledTasksRspSchedules. + + 任务开始时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 + + :return: The start_time of this ScheduledTasksRspSchedules. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ScheduledTasksRspSchedules. + + 任务开始时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 + + :param start_time: The start_time of this ScheduledTasksRspSchedules. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ScheduledTasksRspSchedules. + + 任务结束时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 + + :return: The end_time of this ScheduledTasksRspSchedules. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ScheduledTasksRspSchedules. + + 任务结束时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 + + :param end_time: The end_time of this ScheduledTasksRspSchedules. + :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, ScheduledTasksRspSchedules): + return False + + return self.__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/change_volume_charge_mode_request.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/set_auto_enlarge_policies_request.py similarity index 76% rename from huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/change_volume_charge_mode_request.py rename to huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/set_auto_enlarge_policies_request.py index 7ca940976e..66440fd77c 100644 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/change_volume_charge_mode_request.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/set_auto_enlarge_policies_request.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class ChangeVolumeChargeModeRequest: +class SetAutoEnlargePoliciesRequest: """ Attributes: @@ -17,7 +17,7 @@ class ChangeVolumeChargeModeRequest: sensitive_list = [] openapi_types = { - 'body': 'ChangeVolumeChargeModeRequestBody' + 'body': 'SetAutoEnlargePoliciesRequestBody' } attribute_map = { @@ -25,12 +25,12 @@ class ChangeVolumeChargeModeRequest: } def __init__(self, body=None): - """ChangeVolumeChargeModeRequest + """SetAutoEnlargePoliciesRequest The model defined in huaweicloud sdk - :param body: Body of the ChangeVolumeChargeModeRequest - :type body: :class:`huaweicloudsdkevs.v2.ChangeVolumeChargeModeRequestBody` + :param body: Body of the SetAutoEnlargePoliciesRequest + :type body: :class:`huaweicloudsdkdds.v3.SetAutoEnlargePoliciesRequestBody` """ @@ -43,19 +43,19 @@ def __init__(self, body=None): @property def body(self): - """Gets the body of this ChangeVolumeChargeModeRequest. + """Gets the body of this SetAutoEnlargePoliciesRequest. - :return: The body of this ChangeVolumeChargeModeRequest. - :rtype: :class:`huaweicloudsdkevs.v2.ChangeVolumeChargeModeRequestBody` + :return: The body of this SetAutoEnlargePoliciesRequest. + :rtype: :class:`huaweicloudsdkdds.v3.SetAutoEnlargePoliciesRequestBody` """ return self._body @body.setter def body(self, body): - """Sets the body of this ChangeVolumeChargeModeRequest. + """Sets the body of this SetAutoEnlargePoliciesRequest. - :param body: The body of this ChangeVolumeChargeModeRequest. - :type body: :class:`huaweicloudsdkevs.v2.ChangeVolumeChargeModeRequestBody` + :param body: The body of this SetAutoEnlargePoliciesRequest. + :type body: :class:`huaweicloudsdkdds.v3.SetAutoEnlargePoliciesRequestBody` """ self._body = body @@ -101,7 +101,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ChangeVolumeChargeModeRequest): + if not isinstance(other, SetAutoEnlargePoliciesRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/set_auto_enlarge_policies_request_body.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/set_auto_enlarge_policies_request_body.py new file mode 100644 index 0000000000..2bbb7df5e3 --- /dev/null +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/set_auto_enlarge_policies_request_body.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SetAutoEnlargePoliciesRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'switch_option': 'str', + 'policies': 'list[DiskAutoExpansionPolicy]' + } + + attribute_map = { + 'switch_option': 'switch_option', + 'policies': 'policies' + } + + def __init__(self, switch_option=None, policies=None): + """SetAutoEnlargePoliciesRequestBody + + The model defined in huaweicloud sdk + + :param switch_option: 自动扩容开关。 - on:开启磁盘自动扩容策略。 - off: 关闭磁盘自动扩容策略。 默认值为on。 + :type switch_option: str + :param policies: 磁盘自动扩容策略。 最大支持设置10个实例的策略。 + :type policies: list[:class:`huaweicloudsdkdds.v3.DiskAutoExpansionPolicy`] + """ + + + + self._switch_option = None + self._policies = None + self.discriminator = None + + if switch_option is not None: + self.switch_option = switch_option + self.policies = policies + + @property + def switch_option(self): + """Gets the switch_option of this SetAutoEnlargePoliciesRequestBody. + + 自动扩容开关。 - on:开启磁盘自动扩容策略。 - off: 关闭磁盘自动扩容策略。 默认值为on。 + + :return: The switch_option of this SetAutoEnlargePoliciesRequestBody. + :rtype: str + """ + return self._switch_option + + @switch_option.setter + def switch_option(self, switch_option): + """Sets the switch_option of this SetAutoEnlargePoliciesRequestBody. + + 自动扩容开关。 - on:开启磁盘自动扩容策略。 - off: 关闭磁盘自动扩容策略。 默认值为on。 + + :param switch_option: The switch_option of this SetAutoEnlargePoliciesRequestBody. + :type switch_option: str + """ + self._switch_option = switch_option + + @property + def policies(self): + """Gets the policies of this SetAutoEnlargePoliciesRequestBody. + + 磁盘自动扩容策略。 最大支持设置10个实例的策略。 + + :return: The policies of this SetAutoEnlargePoliciesRequestBody. + :rtype: list[:class:`huaweicloudsdkdds.v3.DiskAutoExpansionPolicy`] + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SetAutoEnlargePoliciesRequestBody. + + 磁盘自动扩容策略。 最大支持设置10个实例的策略。 + + :param policies: The policies of this SetAutoEnlargePoliciesRequestBody. + :type policies: list[:class:`huaweicloudsdkdds.v3.DiskAutoExpansionPolicy`] + """ + 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, SetAutoEnlargePoliciesRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/set_auto_enlarge_policies_response.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/set_auto_enlarge_policies_response.py new file mode 100644 index 0000000000..21e177a473 --- /dev/null +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/set_auto_enlarge_policies_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 SetAutoEnlargePoliciesResponse(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): + """SetAutoEnlargePoliciesResponse + + The model defined in huaweicloud sdk + + """ + + super(SetAutoEnlargePoliciesResponse, 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, SetAutoEnlargePoliciesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/show_auto_enlarge_policy_request.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/show_auto_enlarge_policy_request.py new file mode 100644 index 0000000000..1d9942247d --- /dev/null +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/show_auto_enlarge_policy_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAutoEnlargePolicyRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """ShowAutoEnlargePolicyRequest + + 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 ShowAutoEnlargePolicyRequest. + + 实例ID。 + + :return: The instance_id of this ShowAutoEnlargePolicyRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowAutoEnlargePolicyRequest. + + 实例ID。 + + :param instance_id: The instance_id of this ShowAutoEnlargePolicyRequest. + :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, ShowAutoEnlargePolicyRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/show_auto_enlarge_policy_response.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/show_auto_enlarge_policy_response.py new file mode 100644 index 0000000000..a305829d83 --- /dev/null +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/show_auto_enlarge_policy_response.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAutoEnlargePolicyResponse(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 = { + 'switch_option': 'str', + 'policy': 'DiskAutoExpansionPolicy' + } + + attribute_map = { + 'switch_option': 'switch_option', + 'policy': 'policy' + } + + def __init__(self, switch_option=None, policy=None): + """ShowAutoEnlargePolicyResponse + + The model defined in huaweicloud sdk + + :param switch_option: 自动扩容开关。 - on:开启磁盘自动扩容策略。 - off: 关闭磁盘自动扩容策略。 默认值为on。 + :type switch_option: str + :param policy: + :type policy: :class:`huaweicloudsdkdds.v3.DiskAutoExpansionPolicy` + """ + + super(ShowAutoEnlargePolicyResponse, self).__init__() + + self._switch_option = None + self._policy = None + self.discriminator = None + + if switch_option is not None: + self.switch_option = switch_option + if policy is not None: + self.policy = policy + + @property + def switch_option(self): + """Gets the switch_option of this ShowAutoEnlargePolicyResponse. + + 自动扩容开关。 - on:开启磁盘自动扩容策略。 - off: 关闭磁盘自动扩容策略。 默认值为on。 + + :return: The switch_option of this ShowAutoEnlargePolicyResponse. + :rtype: str + """ + return self._switch_option + + @switch_option.setter + def switch_option(self, switch_option): + """Sets the switch_option of this ShowAutoEnlargePolicyResponse. + + 自动扩容开关。 - on:开启磁盘自动扩容策略。 - off: 关闭磁盘自动扩容策略。 默认值为on。 + + :param switch_option: The switch_option of this ShowAutoEnlargePolicyResponse. + :type switch_option: str + """ + self._switch_option = switch_option + + @property + def policy(self): + """Gets the policy of this ShowAutoEnlargePolicyResponse. + + :return: The policy of this ShowAutoEnlargePolicyResponse. + :rtype: :class:`huaweicloudsdkdds.v3.DiskAutoExpansionPolicy` + """ + return self._policy + + @policy.setter + def policy(self, policy): + """Sets the policy of this ShowAutoEnlargePolicyResponse. + + :param policy: The policy of this ShowAutoEnlargePolicyResponse. + :type policy: :class:`huaweicloudsdkdds.v3.DiskAutoExpansionPolicy` + """ + self._policy = policy + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAutoEnlargePolicyResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_check_task_jobs_request.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/show_instance_configuration_modify_history_request.py similarity index 52% rename from huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_check_task_jobs_request.py rename to huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/show_instance_configuration_modify_history_request.py index 9ef2946564..b697f41dd8 100644 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_check_task_jobs_request.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/show_instance_configuration_modify_history_request.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RunCheckTaskJobsRequest: +class ShowInstanceConfigurationModifyHistoryRequest: """ Attributes: @@ -17,106 +17,105 @@ class RunCheckTaskJobsRequest: sensitive_list = [] openapi_types = { - 'status': 'str', + 'instance_id': 'str', 'offset': 'int', 'limit': 'int' } attribute_map = { - 'status': 'status', + 'instance_id': 'instance_id', 'offset': 'offset', 'limit': 'limit' } - def __init__(self, status=None, offset=None, limit=None): - """RunCheckTaskJobsRequest + def __init__(self, instance_id=None, offset=None, limit=None): + """ShowInstanceConfigurationModifyHistoryRequest The model defined in huaweicloud sdk - :param status: 图像内容审核任务处理状态如下: - created 已创建 - running 正在处理 - finish 已完成 - failed 处理失败 - :type status: str - :param offset: 偏移量, 默认为0。 + :param instance_id: 实例ID。 + :type instance_id: str + :param offset: 索引位置,偏移量。 从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询)。 取值必须为数字,不能为负数。 :type offset: int - :param limit: 指定每一页返回的最大条目数,默认为符合查询条件的总任务数量。 + :param limit: 查询个数上限值。 - 取值范围: 1~100。 - 不传该参数时,默认查询前100条信息。 :type limit: int """ - self._status = None + self._instance_id = None self._offset = None self._limit = None self.discriminator = None - if status is not None: - self.status = status + self.instance_id = instance_id if offset is not None: self.offset = offset if limit is not None: self.limit = limit @property - def status(self): - """Gets the status of this RunCheckTaskJobsRequest. + def instance_id(self): + """Gets the instance_id of this ShowInstanceConfigurationModifyHistoryRequest. - 图像内容审核任务处理状态如下: - created 已创建 - running 正在处理 - finish 已完成 - failed 处理失败 + 实例ID。 - :return: The status of this RunCheckTaskJobsRequest. + :return: The instance_id of this ShowInstanceConfigurationModifyHistoryRequest. :rtype: str """ - return self._status + return self._instance_id - @status.setter - def status(self, status): - """Sets the status of this RunCheckTaskJobsRequest. + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowInstanceConfigurationModifyHistoryRequest. - 图像内容审核任务处理状态如下: - created 已创建 - running 正在处理 - finish 已完成 - failed 处理失败 + 实例ID。 - :param status: The status of this RunCheckTaskJobsRequest. - :type status: str + :param instance_id: The instance_id of this ShowInstanceConfigurationModifyHistoryRequest. + :type instance_id: str """ - self._status = status + self._instance_id = instance_id @property def offset(self): - """Gets the offset of this RunCheckTaskJobsRequest. + """Gets the offset of this ShowInstanceConfigurationModifyHistoryRequest. - 偏移量, 默认为0。 + 索引位置,偏移量。 从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询)。 取值必须为数字,不能为负数。 - :return: The offset of this RunCheckTaskJobsRequest. + :return: The offset of this ShowInstanceConfigurationModifyHistoryRequest. :rtype: int """ return self._offset @offset.setter def offset(self, offset): - """Sets the offset of this RunCheckTaskJobsRequest. + """Sets the offset of this ShowInstanceConfigurationModifyHistoryRequest. - 偏移量, 默认为0。 + 索引位置,偏移量。 从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询)。 取值必须为数字,不能为负数。 - :param offset: The offset of this RunCheckTaskJobsRequest. + :param offset: The offset of this ShowInstanceConfigurationModifyHistoryRequest. :type offset: int """ self._offset = offset @property def limit(self): - """Gets the limit of this RunCheckTaskJobsRequest. + """Gets the limit of this ShowInstanceConfigurationModifyHistoryRequest. - 指定每一页返回的最大条目数,默认为符合查询条件的总任务数量。 + 查询个数上限值。 - 取值范围: 1~100。 - 不传该参数时,默认查询前100条信息。 - :return: The limit of this RunCheckTaskJobsRequest. + :return: The limit of this ShowInstanceConfigurationModifyHistoryRequest. :rtype: int """ return self._limit @limit.setter def limit(self, limit): - """Sets the limit of this RunCheckTaskJobsRequest. + """Sets the limit of this ShowInstanceConfigurationModifyHistoryRequest. - 指定每一页返回的最大条目数,默认为符合查询条件的总任务数量。 + 查询个数上限值。 - 取值范围: 1~100。 - 不传该参数时,默认查询前100条信息。 - :param limit: The limit of this RunCheckTaskJobsRequest. + :param limit: The limit of this ShowInstanceConfigurationModifyHistoryRequest. :type limit: int """ self._limit = limit @@ -163,7 +162,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RunCheckTaskJobsRequest): + if not isinstance(other, ShowInstanceConfigurationModifyHistoryRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/show_instance_configuration_modify_history_response.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/show_instance_configuration_modify_history_response.py new file mode 100644 index 0000000000..6c379ecbaa --- /dev/null +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/show_instance_configuration_modify_history_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 ShowInstanceConfigurationModifyHistoryResponse(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 = { + 'histories': 'list[ConfigurationModifyHistoryInfo]' + } + + attribute_map = { + 'histories': 'histories' + } + + def __init__(self, histories=None): + """ShowInstanceConfigurationModifyHistoryResponse + + The model defined in huaweicloud sdk + + :param histories: 实例参数的修改历史列表。 + :type histories: list[:class:`huaweicloudsdkdds.v3.ConfigurationModifyHistoryInfo`] + """ + + super(ShowInstanceConfigurationModifyHistoryResponse, self).__init__() + + self._histories = None + self.discriminator = None + + if histories is not None: + self.histories = histories + + @property + def histories(self): + """Gets the histories of this ShowInstanceConfigurationModifyHistoryResponse. + + 实例参数的修改历史列表。 + + :return: The histories of this ShowInstanceConfigurationModifyHistoryResponse. + :rtype: list[:class:`huaweicloudsdkdds.v3.ConfigurationModifyHistoryInfo`] + """ + return self._histories + + @histories.setter + def histories(self, histories): + """Sets the histories of this ShowInstanceConfigurationModifyHistoryResponse. + + 实例参数的修改历史列表。 + + :param histories: The histories of this ShowInstanceConfigurationModifyHistoryResponse. + :type histories: list[:class:`huaweicloudsdkdds.v3.ConfigurationModifyHistoryInfo`] + """ + self._histories = histories + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowInstanceConfigurationModifyHistoryResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/upgrade_result.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/upgrade_result.py new file mode 100644 index 0000000000..f7fc703bb4 --- /dev/null +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/upgrade_result.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpgradeResult: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'instance_id': 'str', + 'error_code': 'str', + 'error_message': 'str' + } + + attribute_map = { + 'job_id': 'job_id', + 'instance_id': 'instance_id', + 'error_code': 'error_code', + 'error_message': 'error_message' + } + + def __init__(self, job_id=None, instance_id=None, error_code=None, error_message=None): + """UpgradeResult + + The model defined in huaweicloud sdk + + :param job_id: 任务ID。仅当补丁版本升级任务提交成功时返回该字段。 + :type job_id: str + :param instance_id: 实例ID。 + :type instance_id: str + :param error_code: 错误码。仅当补丁版本升级任务提交失败时返回该字段。 + :type error_code: str + :param error_message: 失败原因。仅当补丁版本升级任务提交失败时返回该字段。 + :type error_message: str + """ + + + + self._job_id = None + self._instance_id = None + self._error_code = None + self._error_message = None + self.discriminator = None + + if job_id is not None: + self.job_id = job_id + self.instance_id = instance_id + if error_code is not None: + self.error_code = error_code + if error_message is not None: + self.error_message = error_message + + @property + def job_id(self): + """Gets the job_id of this UpgradeResult. + + 任务ID。仅当补丁版本升级任务提交成功时返回该字段。 + + :return: The job_id of this UpgradeResult. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this UpgradeResult. + + 任务ID。仅当补丁版本升级任务提交成功时返回该字段。 + + :param job_id: The job_id of this UpgradeResult. + :type job_id: str + """ + self._job_id = job_id + + @property + def instance_id(self): + """Gets the instance_id of this UpgradeResult. + + 实例ID。 + + :return: The instance_id of this UpgradeResult. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UpgradeResult. + + 实例ID。 + + :param instance_id: The instance_id of this UpgradeResult. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def error_code(self): + """Gets the error_code of this UpgradeResult. + + 错误码。仅当补丁版本升级任务提交失败时返回该字段。 + + :return: The error_code of this UpgradeResult. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this UpgradeResult. + + 错误码。仅当补丁版本升级任务提交失败时返回该字段。 + + :param error_code: The error_code of this UpgradeResult. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_message(self): + """Gets the error_message of this UpgradeResult. + + 失败原因。仅当补丁版本升级任务提交失败时返回该字段。 + + :return: The error_message of this UpgradeResult. + :rtype: str + """ + return self._error_message + + @error_message.setter + def error_message(self, error_message): + """Sets the error_message of this UpgradeResult. + + 失败原因。仅当补丁版本升级任务提交失败时返回该字段。 + + :param error_message: The error_message of this UpgradeResult. + :type error_message: str + """ + self._error_message = error_message + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpgradeResult): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_task_sumbit_request.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/validate_configuration_name_request.py similarity index 71% rename from huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_task_sumbit_request.py rename to huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/validate_configuration_name_request.py index 07e3c1f777..e370364627 100644 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_task_sumbit_request.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/validate_configuration_name_request.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RunTaskSumbitRequest: +class ValidateConfigurationNameRequest: """ Attributes: @@ -17,47 +17,50 @@ class RunTaskSumbitRequest: sensitive_list = [] openapi_types = { - 'body': 'TaskSumbitReq' + 'name': 'str' } attribute_map = { - 'body': 'body' + 'name': 'name' } - def __init__(self, body=None): - """RunTaskSumbitRequest + def __init__(self, name=None): + """ValidateConfigurationNameRequest The model defined in huaweicloud sdk - :param body: Body of the RunTaskSumbitRequest - :type body: :class:`huaweicloudsdkmoderation.v2.TaskSumbitReq` + :param name: 参数模板名称。 + :type name: str """ - self._body = None + self._name = None self.discriminator = None - if body is not None: - self.body = body + self.name = name @property - def body(self): - """Gets the body of this RunTaskSumbitRequest. + def name(self): + """Gets the name of this ValidateConfigurationNameRequest. - :return: The body of this RunTaskSumbitRequest. - :rtype: :class:`huaweicloudsdkmoderation.v2.TaskSumbitReq` + 参数模板名称。 + + :return: The name of this ValidateConfigurationNameRequest. + :rtype: str """ - return self._body + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ValidateConfigurationNameRequest. - @body.setter - def body(self, body): - """Sets the body of this RunTaskSumbitRequest. + 参数模板名称。 - :param body: The body of this RunTaskSumbitRequest. - :type body: :class:`huaweicloudsdkmoderation.v2.TaskSumbitReq` + :param name: The name of this ValidateConfigurationNameRequest. + :type name: str """ - self._body = body + self._name = name def to_dict(self): """Returns the model properties as a dict""" @@ -101,7 +104,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RunTaskSumbitRequest): + if not isinstance(other, ValidateConfigurationNameRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/unsubscribe_postpaid_volume_response.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/validate_configuration_name_response.py similarity index 63% rename from huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/unsubscribe_postpaid_volume_response.py rename to huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/validate_configuration_name_response.py index 45c6acd213..379108b78f 100644 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/unsubscribe_postpaid_volume_response.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/validate_configuration_name_response.py @@ -6,7 +6,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class UnsubscribePostpaidVolumeResponse(SdkResponse): +class ValidateConfigurationNameResponse(SdkResponse): """ Attributes: @@ -18,47 +18,51 @@ class UnsubscribePostpaidVolumeResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'body': 'list[UnsubscribeVolumeResponseBody]' + 'is_existed': 'bool' } attribute_map = { - 'body': 'body' + 'is_existed': 'is_existed' } - def __init__(self, body=None): - """UnsubscribePostpaidVolumeResponse + def __init__(self, is_existed=None): + """ValidateConfigurationNameResponse The model defined in huaweicloud sdk - :param body: - :type body: list[:class:`huaweicloudsdkevs.v2.UnsubscribeVolumeResponseBody`] + :param is_existed: 参数组名称是否存在。 - true:参数组名称存在 - false:参数组名称不存在 + :type is_existed: bool """ - super(UnsubscribePostpaidVolumeResponse, self).__init__() + super(ValidateConfigurationNameResponse, self).__init__() - self._body = None + self._is_existed = None self.discriminator = None - if body is not None: - self.body = body + if is_existed is not None: + self.is_existed = is_existed @property - def body(self): - """Gets the body of this UnsubscribePostpaidVolumeResponse. + def is_existed(self): + """Gets the is_existed of this ValidateConfigurationNameResponse. - :return: The body of this UnsubscribePostpaidVolumeResponse. - :rtype: list[:class:`huaweicloudsdkevs.v2.UnsubscribeVolumeResponseBody`] + 参数组名称是否存在。 - true:参数组名称存在 - false:参数组名称不存在 + + :return: The is_existed of this ValidateConfigurationNameResponse. + :rtype: bool """ - return self._body + return self._is_existed + + @is_existed.setter + def is_existed(self, is_existed): + """Sets the is_existed of this ValidateConfigurationNameResponse. - @body.setter - def body(self, body): - """Sets the body of this UnsubscribePostpaidVolumeResponse. + 参数组名称是否存在。 - true:参数组名称存在 - false:参数组名称不存在 - :param body: The body of this UnsubscribePostpaidVolumeResponse. - :type body: list[:class:`huaweicloudsdkevs.v2.UnsubscribeVolumeResponseBody`] + :param is_existed: The is_existed of this ValidateConfigurationNameResponse. + :type is_existed: bool """ - self._body = body + self._is_existed = is_existed def to_dict(self): """Returns the model properties as a dict""" @@ -102,7 +106,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, UnsubscribePostpaidVolumeResponse): + if not isinstance(other, ValidateConfigurationNameResponse): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dds/requirements.txt b/huaweicloud-sdk-dds/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-dds/requirements.txt +++ b/huaweicloud-sdk-dds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-dds/setup.py b/huaweicloud-sdk-dds/setup.py index 6c914a3816..64f8bd6308 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-deh/requirements.txt b/huaweicloud-sdk-deh/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-deh/requirements.txt +++ b/huaweicloud-sdk-deh/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-deh/setup.py b/huaweicloud-sdk-deh/setup.py index fbe772163f..314d3a8ed9 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-devstar/requirements.txt b/huaweicloud-sdk-devstar/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-devstar/requirements.txt +++ b/huaweicloud-sdk-devstar/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-devstar/setup.py b/huaweicloud-sdk-devstar/setup.py index 4d5b21a8be..979f321f72 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dgc/requirements.txt b/huaweicloud-sdk-dgc/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-dgc/requirements.txt +++ b/huaweicloud-sdk-dgc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-dgc/setup.py b/huaweicloud-sdk-dgc/setup.py index c7a2128903..7d94015bc7 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dis/requirements.txt b/huaweicloud-sdk-dis/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-dis/requirements.txt +++ b/huaweicloud-sdk-dis/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-dis/setup.py b/huaweicloud-sdk-dis/setup.py index 49bd697a1d..aaa2288594 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dlf/requirements.txt b/huaweicloud-sdk-dlf/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-dlf/requirements.txt +++ b/huaweicloud-sdk-dlf/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-dlf/setup.py b/huaweicloud-sdk-dlf/setup.py index b9b19e87d7..1eeb65b09f 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dli/requirements.txt b/huaweicloud-sdk-dli/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-dli/requirements.txt +++ b/huaweicloud-sdk-dli/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-dli/setup.py b/huaweicloud-sdk-dli/setup.py index 9238b1902e..7a8fda9a70 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dns/requirements.txt b/huaweicloud-sdk-dns/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-dns/requirements.txt +++ b/huaweicloud-sdk-dns/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-dns/setup.py b/huaweicloud-sdk-dns/setup.py index aab60e2d85..9a27c2d40c 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dris/requirements.txt b/huaweicloud-sdk-dris/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-dris/requirements.txt +++ b/huaweicloud-sdk-dris/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-dris/setup.py b/huaweicloud-sdk-dris/setup.py index 6f227bb79e..c0c20e3508 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-drs/requirements.txt b/huaweicloud-sdk-drs/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-drs/requirements.txt +++ b/huaweicloud-sdk-drs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-drs/setup.py b/huaweicloud-sdk-drs/setup.py index 712c916b7e..88976141d7 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dsc/requirements.txt b/huaweicloud-sdk-dsc/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-dsc/requirements.txt +++ b/huaweicloud-sdk-dsc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-dsc/setup.py b/huaweicloud-sdk-dsc/setup.py index d3a5d020c2..cc976e1ee7 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dwr/requirements.txt b/huaweicloud-sdk-dwr/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-dwr/requirements.txt +++ b/huaweicloud-sdk-dwr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-dwr/setup.py b/huaweicloud-sdk-dwr/setup.py index 863743ba67..e8206ad362 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/__init__.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/__init__.py index a671dc5c2e..2acf0e82ea 100644 --- a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/__init__.py +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/__init__.py @@ -440,12 +440,16 @@ from huaweicloudsdkdws.v2.model.snapshot_resp import SnapshotResp from huaweicloudsdkdws.v2.model.snapshots import Snapshots from huaweicloudsdkdws.v2.model.snapshots_statistic import SnapshotsStatistic +from huaweicloudsdkdws.v2.model.start_cluster_request import StartClusterRequest +from huaweicloudsdkdws.v2.model.start_cluster_response import StartClusterResponse from huaweicloudsdkdws.v2.model.start_disaster_recovery_request import StartDisasterRecoveryRequest from huaweicloudsdkdws.v2.model.start_disaster_recovery_response import StartDisasterRecoveryResponse from huaweicloudsdkdws.v2.model.start_workload_plan_request import StartWorkloadPlanRequest from huaweicloudsdkdws.v2.model.start_workload_plan_response import StartWorkloadPlanResponse from huaweicloudsdkdws.v2.model.statistic import Statistic from huaweicloudsdkdws.v2.model.status_statistics import StatusStatistics +from huaweicloudsdkdws.v2.model.stop_cluster_request import StopClusterRequest +from huaweicloudsdkdws.v2.model.stop_cluster_response import StopClusterResponse from huaweicloudsdkdws.v2.model.stop_redistribution_request import StopRedistributionRequest from huaweicloudsdkdws.v2.model.stop_redistribution_response import StopRedistributionResponse from huaweicloudsdkdws.v2.model.stop_workload_plan_request import StopWorkloadPlanRequest diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_async_client.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_async_client.py index 9f98ccb886..9162ba7e7b 100644 --- a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_async_client.py +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_async_client.py @@ -9322,6 +9322,71 @@ def _shrink_cluster_http_info(self, request): return http_info + def start_cluster_async(self, request): + """启动集群 + + 集群管理-启动集群 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for StartCluster + :type request: :class:`huaweicloudsdkdws.v2.StartClusterRequest` + :rtype: :class:`huaweicloudsdkdws.v2.StartClusterResponse` + """ + http_info = self._start_cluster_http_info(request) + return self._call_api(**http_info) + + def start_cluster_async_invoker(self, request): + http_info = self._start_cluster_http_info(request) + return AsyncInvoker(self, http_info) + + def _start_cluster_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/clusters/{cluster_id}/start", + "request_type": request.__class__.__name__, + "response_type": "StartClusterResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_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 start_disaster_recovery_async(self, request): """启动容灾 @@ -9458,6 +9523,71 @@ def _start_workload_plan_http_info(self, request): return http_info + def stop_cluster_async(self, request): + """停止集群 + + 集群管理-停止集群 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for StopCluster + :type request: :class:`huaweicloudsdkdws.v2.StopClusterRequest` + :rtype: :class:`huaweicloudsdkdws.v2.StopClusterResponse` + """ + http_info = self._stop_cluster_http_info(request) + return self._call_api(**http_info) + + def stop_cluster_async_invoker(self, request): + http_info = self._stop_cluster_http_info(request) + return AsyncInvoker(self, http_info) + + def _stop_cluster_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/clusters/{cluster_id}/stop", + "request_type": request.__class__.__name__, + "response_type": "StopClusterResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_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 stop_redistribution_async(self, request): """暂停重分布 diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_client.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_client.py index 349cad81e2..3b91340b40 100644 --- a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_client.py +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_client.py @@ -9322,6 +9322,71 @@ def _shrink_cluster_http_info(cls, request): return http_info + def start_cluster(self, request): + """启动集群 + + 集群管理-启动集群 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for StartCluster + :type request: :class:`huaweicloudsdkdws.v2.StartClusterRequest` + :rtype: :class:`huaweicloudsdkdws.v2.StartClusterResponse` + """ + http_info = self._start_cluster_http_info(request) + return self._call_api(**http_info) + + def start_cluster_invoker(self, request): + http_info = self._start_cluster_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _start_cluster_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/clusters/{cluster_id}/start", + "request_type": request.__class__.__name__, + "response_type": "StartClusterResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_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 start_disaster_recovery(self, request): """启动容灾 @@ -9458,6 +9523,71 @@ def _start_workload_plan_http_info(cls, request): return http_info + def stop_cluster(self, request): + """停止集群 + + 集群管理-停止集群 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for StopCluster + :type request: :class:`huaweicloudsdkdws.v2.StopClusterRequest` + :rtype: :class:`huaweicloudsdkdws.v2.StopClusterResponse` + """ + http_info = self._stop_cluster_http_info(request) + return self._call_api(**http_info) + + def stop_cluster_invoker(self, request): + http_info = self._stop_cluster_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _stop_cluster_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/clusters/{cluster_id}/stop", + "request_type": request.__class__.__name__, + "response_type": "StopClusterResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_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 stop_redistribution(self, request): """暂停重分布 diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/__init__.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/__init__.py index 41d8d9a948..9e0b18f154 100644 --- a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/__init__.py +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/__init__.py @@ -438,12 +438,16 @@ from huaweicloudsdkdws.v2.model.snapshot_resp import SnapshotResp from huaweicloudsdkdws.v2.model.snapshots import Snapshots from huaweicloudsdkdws.v2.model.snapshots_statistic import SnapshotsStatistic +from huaweicloudsdkdws.v2.model.start_cluster_request import StartClusterRequest +from huaweicloudsdkdws.v2.model.start_cluster_response import StartClusterResponse from huaweicloudsdkdws.v2.model.start_disaster_recovery_request import StartDisasterRecoveryRequest from huaweicloudsdkdws.v2.model.start_disaster_recovery_response import StartDisasterRecoveryResponse from huaweicloudsdkdws.v2.model.start_workload_plan_request import StartWorkloadPlanRequest from huaweicloudsdkdws.v2.model.start_workload_plan_response import StartWorkloadPlanResponse from huaweicloudsdkdws.v2.model.statistic import Statistic from huaweicloudsdkdws.v2.model.status_statistics import StatusStatistics +from huaweicloudsdkdws.v2.model.stop_cluster_request import StopClusterRequest +from huaweicloudsdkdws.v2.model.stop_cluster_response import StopClusterResponse from huaweicloudsdkdws.v2.model.stop_redistribution_request import StopRedistributionRequest from huaweicloudsdkdws.v2.model.stop_redistribution_response import StopRedistributionResponse from huaweicloudsdkdws.v2.model.stop_workload_plan_request import StopWorkloadPlanRequest diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/start_cluster_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/start_cluster_request.py new file mode 100644 index 0000000000..2d8869c05b --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/start_cluster_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartClusterRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """StartClusterRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID + :type cluster_id: str + """ + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this StartClusterRequest. + + 集群ID + + :return: The cluster_id of this StartClusterRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this StartClusterRequest. + + 集群ID + + :param cluster_id: The cluster_id of this StartClusterRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_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, StartClusterRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/task_sumbit_response_result.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/start_cluster_response.py similarity index 80% rename from huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/task_sumbit_response_result.py rename to huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/start_cluster_response.py index e782d23e8c..a6eda60263 100644 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/task_sumbit_response_result.py +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/start_cluster_response.py @@ -2,10 +2,11 @@ import six +from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class TaskSumbitResponseResult: +class StartClusterResponse(SdkResponse): """ Attributes: @@ -25,15 +26,15 @@ class TaskSumbitResponseResult: } def __init__(self, job_id=None): - """TaskSumbitResponseResult + """StartClusterResponse The model defined in huaweicloud sdk - :param job_id: 批量图像内容审核的任务标识,用于后续的结果查询。 + :param job_id: 启动集群jobId :type job_id: str """ - + super(StartClusterResponse, self).__init__() self._job_id = None self.discriminator = None @@ -43,22 +44,22 @@ def __init__(self, job_id=None): @property def job_id(self): - """Gets the job_id of this TaskSumbitResponseResult. + """Gets the job_id of this StartClusterResponse. - 批量图像内容审核的任务标识,用于后续的结果查询。 + 启动集群jobId - :return: The job_id of this TaskSumbitResponseResult. + :return: The job_id of this StartClusterResponse. :rtype: str """ return self._job_id @job_id.setter def job_id(self, job_id): - """Sets the job_id of this TaskSumbitResponseResult. + """Sets the job_id of this StartClusterResponse. - 批量图像内容审核的任务标识,用于后续的结果查询。 + 启动集群jobId - :param job_id: The job_id of this TaskSumbitResponseResult. + :param job_id: The job_id of this StartClusterResponse. :type job_id: str """ self._job_id = job_id @@ -105,7 +106,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, TaskSumbitResponseResult): + if not isinstance(other, StartClusterResponse): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/stop_cluster_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/stop_cluster_request.py new file mode 100644 index 0000000000..ea2e1c6312 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/stop_cluster_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StopClusterRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """StopClusterRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID + :type cluster_id: str + """ + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this StopClusterRequest. + + 集群ID + + :return: The cluster_id of this StopClusterRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this StopClusterRequest. + + 集群ID + + :param cluster_id: The cluster_id of this StopClusterRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_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, StopClusterRequest): + return False + + return self.__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/stop_cluster_response.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/stop_cluster_response.py new file mode 100644 index 0000000000..631bb1b97a --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/stop_cluster_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 StopClusterResponse(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): + """StopClusterResponse + + The model defined in huaweicloud sdk + + :param job_id: 停止集群jobId + :type job_id: str + """ + + super(StopClusterResponse, 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 StopClusterResponse. + + 停止集群jobId + + :return: The job_id of this StopClusterResponse. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this StopClusterResponse. + + 停止集群jobId + + :param job_id: The job_id of this StopClusterResponse. + :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, StopClusterResponse): + return False + + return self.__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/requirements.txt b/huaweicloud-sdk-dws/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-dws/requirements.txt +++ b/huaweicloud-sdk-dws/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-dws/setup.py b/huaweicloud-sdk-dws/setup.py index 689524cd44..fea7d6ccaf 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ec/requirements.txt b/huaweicloud-sdk-ec/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-ec/requirements.txt +++ b/huaweicloud-sdk-ec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-ec/setup.py b/huaweicloud-sdk-ec/setup.py index 6bcf69cb02..6201830e82 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ecs/requirements.txt b/huaweicloud-sdk-ecs/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-ecs/requirements.txt +++ b/huaweicloud-sdk-ecs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-ecs/setup.py b/huaweicloud-sdk-ecs/setup.py index 4d00a4095d..8676e95cc8 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-edgesec/requirements.txt b/huaweicloud-sdk-edgesec/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-edgesec/requirements.txt +++ b/huaweicloud-sdk-edgesec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-edgesec/setup.py b/huaweicloud-sdk-edgesec/setup.py index de920c97b4..fa0663ea6f 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eg/requirements.txt b/huaweicloud-sdk-eg/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-eg/requirements.txt +++ b/huaweicloud-sdk-eg/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-eg/setup.py b/huaweicloud-sdk-eg/setup.py index 378e1fb5d6..60ef2f2f7a 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eihealth/requirements.txt b/huaweicloud-sdk-eihealth/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-eihealth/requirements.txt +++ b/huaweicloud-sdk-eihealth/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-eihealth/setup.py b/huaweicloud-sdk-eihealth/setup.py index fc51607426..b073aecef3 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eip/requirements.txt b/huaweicloud-sdk-eip/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-eip/requirements.txt +++ b/huaweicloud-sdk-eip/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-eip/setup.py b/huaweicloud-sdk-eip/setup.py index 957c2c1936..3a70b19ddf 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-elb/requirements.txt b/huaweicloud-sdk-elb/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-elb/requirements.txt +++ b/huaweicloud-sdk-elb/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-elb/setup.py b/huaweicloud-sdk-elb/setup.py index b0dae8420c..571bcb0fb8 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eps/requirements.txt b/huaweicloud-sdk-eps/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-eps/requirements.txt +++ b/huaweicloud-sdk-eps/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-eps/setup.py b/huaweicloud-sdk-eps/setup.py index b1f9630dbf..3e6d7eba71 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-er/requirements.txt b/huaweicloud-sdk-er/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-er/requirements.txt +++ b/huaweicloud-sdk-er/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-er/setup.py b/huaweicloud-sdk-er/setup.py index 7415f2c0d3..b1b5dd76f7 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/__init__.py b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/__init__.py index 9c692434d1..a64cad4bee 100644 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/__init__.py +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/__init__.py @@ -13,13 +13,9 @@ from huaweicloudsdkevs.v2.model.batch_delete_volume_tags_request import BatchDeleteVolumeTagsRequest from huaweicloudsdkevs.v2.model.batch_delete_volume_tags_request_body import BatchDeleteVolumeTagsRequestBody from huaweicloudsdkevs.v2.model.batch_delete_volume_tags_response import BatchDeleteVolumeTagsResponse -from huaweicloudsdkevs.v2.model.bss_param2 import BssParam2 from huaweicloudsdkevs.v2.model.bss_param_for_create_volume import BssParamForCreateVolume from huaweicloudsdkevs.v2.model.bss_param_for_resize_volume import BssParamForResizeVolume from huaweicloudsdkevs.v2.model.bss_param_for_retype_volume import BssParamForRetypeVolume -from huaweicloudsdkevs.v2.model.change_volume_charge_mode_request import ChangeVolumeChargeModeRequest -from huaweicloudsdkevs.v2.model.change_volume_charge_mode_request_body import ChangeVolumeChargeModeRequestBody -from huaweicloudsdkevs.v2.model.change_volume_charge_mode_response import ChangeVolumeChargeModeResponse from huaweicloudsdkevs.v2.model.cinder_accept_volume_transfer_option import CinderAcceptVolumeTransferOption from huaweicloudsdkevs.v2.model.cinder_accept_volume_transfer_request import CinderAcceptVolumeTransferRequest from huaweicloudsdkevs.v2.model.cinder_accept_volume_transfer_request_body import CinderAcceptVolumeTransferRequestBody @@ -126,11 +122,6 @@ 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 459c43093d..c8a421acd1 100644 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/evs_async_client.py +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/evs_async_client.py @@ -169,71 +169,6 @@ def _batch_delete_volume_tags_http_info(self, request): return http_info - def change_volume_charge_mode_async(self, request): - """修改云硬盘计费模式 - - 将挂载状态下的云硬盘的计费模式有按需转成包周期,且到期时间和挂载的虚拟机保持一致。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for ChangeVolumeChargeMode - :type request: :class:`huaweicloudsdkevs.v2.ChangeVolumeChargeModeRequest` - :rtype: :class:`huaweicloudsdkevs.v2.ChangeVolumeChargeModeResponse` - """ - http_info = self._change_volume_charge_mode_http_info(request) - return self._call_api(**http_info) - - def change_volume_charge_mode_async_invoker(self, request): - http_info = self._change_volume_charge_mode_http_info(request) - return AsyncInvoker(self, http_info) - - def _change_volume_charge_mode_http_info(self, request): - http_info = { - "method": "POST", - "resource_path": "/v2/{project_id}/cloudvolumes/change-charge-mode", - "request_type": request.__class__.__name__, - "response_type": "ChangeVolumeChargeModeResponse" - } - - 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 cinder_accept_volume_transfer_async(self, request): """接受云硬盘过户 @@ -1873,73 +1808,6 @@ 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 4ea790a5ca..857b3c3529 100644 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/evs_client.py +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/evs_client.py @@ -169,71 +169,6 @@ def _batch_delete_volume_tags_http_info(cls, request): return http_info - def change_volume_charge_mode(self, request): - """修改云硬盘计费模式 - - 将挂载状态下的云硬盘的计费模式有按需转成包周期,且到期时间和挂载的虚拟机保持一致。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for ChangeVolumeChargeMode - :type request: :class:`huaweicloudsdkevs.v2.ChangeVolumeChargeModeRequest` - :rtype: :class:`huaweicloudsdkevs.v2.ChangeVolumeChargeModeResponse` - """ - http_info = self._change_volume_charge_mode_http_info(request) - return self._call_api(**http_info) - - def change_volume_charge_mode_invoker(self, request): - http_info = self._change_volume_charge_mode_http_info(request) - return SyncInvoker(self, http_info) - - @classmethod - def _change_volume_charge_mode_http_info(cls, request): - http_info = { - "method": "POST", - "resource_path": "/v2/{project_id}/cloudvolumes/change-charge-mode", - "request_type": request.__class__.__name__, - "response_type": "ChangeVolumeChargeModeResponse" - } - - 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 cinder_accept_volume_transfer(self, request): """接受云硬盘过户 @@ -1873,73 +1808,6 @@ 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 aa8fbecc53..1bea305167 100644 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/__init__.py +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/__init__.py @@ -11,13 +11,9 @@ from huaweicloudsdkevs.v2.model.batch_delete_volume_tags_request import BatchDeleteVolumeTagsRequest from huaweicloudsdkevs.v2.model.batch_delete_volume_tags_request_body import BatchDeleteVolumeTagsRequestBody from huaweicloudsdkevs.v2.model.batch_delete_volume_tags_response import BatchDeleteVolumeTagsResponse -from huaweicloudsdkevs.v2.model.bss_param2 import BssParam2 from huaweicloudsdkevs.v2.model.bss_param_for_create_volume import BssParamForCreateVolume from huaweicloudsdkevs.v2.model.bss_param_for_resize_volume import BssParamForResizeVolume from huaweicloudsdkevs.v2.model.bss_param_for_retype_volume import BssParamForRetypeVolume -from huaweicloudsdkevs.v2.model.change_volume_charge_mode_request import ChangeVolumeChargeModeRequest -from huaweicloudsdkevs.v2.model.change_volume_charge_mode_request_body import ChangeVolumeChargeModeRequestBody -from huaweicloudsdkevs.v2.model.change_volume_charge_mode_response import ChangeVolumeChargeModeResponse from huaweicloudsdkevs.v2.model.cinder_accept_volume_transfer_option import CinderAcceptVolumeTransferOption from huaweicloudsdkevs.v2.model.cinder_accept_volume_transfer_request import CinderAcceptVolumeTransferRequest from huaweicloudsdkevs.v2.model.cinder_accept_volume_transfer_request_body import CinderAcceptVolumeTransferRequestBody @@ -124,11 +120,6 @@ 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/change_volume_charge_mode_request_body.py b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/change_volume_charge_mode_request_body.py deleted file mode 100644 index cf952a793a..0000000000 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/change_volume_charge_mode_request_body.py +++ /dev/null @@ -1,168 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class ChangeVolumeChargeModeRequestBody: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the 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]', - 'server_id': 'str', - 'bss_param': 'BssParam2' - } - - attribute_map = { - 'volume_ids': 'volume_ids', - 'server_id': 'server_id', - 'bss_param': 'bss_param' - } - - def __init__(self, volume_ids=None, server_id=None, bss_param=None): - """ChangeVolumeChargeModeRequestBody - - The model defined in huaweicloud sdk - - :param volume_ids: 要修改计费模式的云硬盘id列表,可以填写多个 - :type volume_ids: list[str] - :param server_id: 云硬盘所挂载的虚拟机id, 如果volume_ids中没有多挂载的共享云硬盘,则此参数可无需填写。 - :type server_id: str - :param bss_param: - :type bss_param: :class:`huaweicloudsdkevs.v2.BssParam2` - """ - - - - self._volume_ids = None - self._server_id = None - self._bss_param = None - self.discriminator = None - - self.volume_ids = volume_ids - if server_id is not None: - self.server_id = server_id - if bss_param is not None: - self.bss_param = bss_param - - @property - def volume_ids(self): - """Gets the volume_ids of this ChangeVolumeChargeModeRequestBody. - - 要修改计费模式的云硬盘id列表,可以填写多个 - - :return: The volume_ids of this ChangeVolumeChargeModeRequestBody. - :rtype: list[str] - """ - return self._volume_ids - - @volume_ids.setter - def volume_ids(self, volume_ids): - """Sets the volume_ids of this ChangeVolumeChargeModeRequestBody. - - 要修改计费模式的云硬盘id列表,可以填写多个 - - :param volume_ids: The volume_ids of this ChangeVolumeChargeModeRequestBody. - :type volume_ids: list[str] - """ - self._volume_ids = volume_ids - - @property - def server_id(self): - """Gets the server_id of this ChangeVolumeChargeModeRequestBody. - - 云硬盘所挂载的虚拟机id, 如果volume_ids中没有多挂载的共享云硬盘,则此参数可无需填写。 - - :return: The server_id of this ChangeVolumeChargeModeRequestBody. - :rtype: str - """ - return self._server_id - - @server_id.setter - def server_id(self, server_id): - """Sets the server_id of this ChangeVolumeChargeModeRequestBody. - - 云硬盘所挂载的虚拟机id, 如果volume_ids中没有多挂载的共享云硬盘,则此参数可无需填写。 - - :param server_id: The server_id of this ChangeVolumeChargeModeRequestBody. - :type server_id: str - """ - self._server_id = server_id - - @property - def bss_param(self): - """Gets the bss_param of this ChangeVolumeChargeModeRequestBody. - - :return: The bss_param of this ChangeVolumeChargeModeRequestBody. - :rtype: :class:`huaweicloudsdkevs.v2.BssParam2` - """ - return self._bss_param - - @bss_param.setter - def bss_param(self, bss_param): - """Sets the bss_param of this ChangeVolumeChargeModeRequestBody. - - :param bss_param: The bss_param of this ChangeVolumeChargeModeRequestBody. - :type bss_param: :class:`huaweicloudsdkevs.v2.BssParam2` - """ - self._bss_param = bss_param - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ChangeVolumeChargeModeRequestBody): - return False - - return self.__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/retype_volume.py b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/retype_volume.py index 2950f3329b..8209b8b526 100644 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/retype_volume.py +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/retype_volume.py @@ -17,34 +17,48 @@ class RetypeVolume: sensitive_list = [] openapi_types = { - 'new_type': 'str' + 'new_type': 'str', + 'iops': 'int', + 'throughput': 'int' } attribute_map = { - 'new_type': 'new_type' + 'new_type': 'new_type', + 'iops': 'iops', + 'throughput': 'throughput' } - def __init__(self, new_type=None): + def __init__(self, new_type=None, iops=None, throughput=None): """RetypeVolume The model defined in huaweicloud sdk - :param new_type: 磁盘变更至指定的磁盘类型 + :param new_type: 变更至指定的云硬盘类型 :type new_type: str + :param iops: 云硬盘iops大小。 + :type iops: int + :param throughput: 云硬盘的吞吐量大小。 + :type throughput: int """ self._new_type = None + self._iops = None + self._throughput = None self.discriminator = None self.new_type = new_type + if iops is not None: + self.iops = iops + if throughput is not None: + self.throughput = throughput @property def new_type(self): """Gets the new_type of this RetypeVolume. - 磁盘变更至指定的磁盘类型 + 变更至指定的云硬盘类型 :return: The new_type of this RetypeVolume. :rtype: str @@ -55,13 +69,57 @@ def new_type(self): def new_type(self, new_type): """Sets the new_type of this RetypeVolume. - 磁盘变更至指定的磁盘类型 + 变更至指定的云硬盘类型 :param new_type: The new_type of this RetypeVolume. :type new_type: str """ self._new_type = new_type + @property + def iops(self): + """Gets the iops of this RetypeVolume. + + 云硬盘iops大小。 + + :return: The iops of this RetypeVolume. + :rtype: int + """ + return self._iops + + @iops.setter + def iops(self, iops): + """Sets the iops of this RetypeVolume. + + 云硬盘iops大小。 + + :param iops: The iops of this RetypeVolume. + :type iops: int + """ + self._iops = iops + + @property + def throughput(self): + """Gets the throughput of this RetypeVolume. + + 云硬盘的吞吐量大小。 + + :return: The throughput of this RetypeVolume. + :rtype: int + """ + return self._throughput + + @throughput.setter + def throughput(self, throughput): + """Sets the throughput of this RetypeVolume. + + 云硬盘的吞吐量大小。 + + :param throughput: The throughput of this RetypeVolume. + :type throughput: int + """ + self._throughput = throughput + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/unsubscribe_volume.py b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/unsubscribe_volume.py deleted file mode 100644 index f11d6b7a96..0000000000 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/unsubscribe_volume.py +++ /dev/null @@ -1,200 +0,0 @@ -# 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/requirements.txt b/huaweicloud-sdk-evs/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-evs/requirements.txt +++ b/huaweicloud-sdk-evs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-evs/setup.py b/huaweicloud-sdk-evs/setup.py index 3790515a49..0f2d5c01e5 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-frs/requirements.txt b/huaweicloud-sdk-frs/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-frs/requirements.txt +++ b/huaweicloud-sdk-frs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-frs/setup.py b/huaweicloud-sdk-frs/setup.py index 498cf4134e..f2790e75c1 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/trigger_event_data_request_body.py b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/trigger_event_data_request_body.py index 7709368032..a3eb532543 100644 --- a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/trigger_event_data_request_body.py +++ b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/trigger_event_data_request_body.py @@ -69,10 +69,12 @@ class TriggerEventDataRequestBody: 'key_encode': 'bool', 'agency': 'str', 'channel_name': 'str', + 'channel_id': 'str', 'source_name': 'str', 'created_time': 'datetime', 'status': 'str', - 'trigger_name': 'str' + 'trigger_name': 'str', + 'event_types': 'list[str]' } attribute_map = { @@ -128,13 +130,15 @@ class TriggerEventDataRequestBody: 'key_encode': 'Key_encode', 'agency': 'agency', 'channel_name': 'channel_name', + 'channel_id': 'channel_id', 'source_name': 'source_name', 'created_time': 'created_time', 'status': 'status', - 'trigger_name': 'trigger_name' + 'trigger_name': 'trigger_name', + 'event_types': 'event_types' } - def __init__(self, name=None, schedule_type=None, schedule=None, user_event=None, type=None, path=None, protocol=None, req_method=None, group_id=None, group_name=None, match_mode=None, env_name=None, env_id=None, auth=None, func_info=None, sl_domain=None, backend_type=None, operations=None, instance_id=None, collection_name=None, db_name=None, db_password=None, batch_size=None, queue_id=None, consumer_group_id=None, polling_interval=None, stream_name=None, sharditerator_type=None, polling_unit=None, max_fetch_bytes=None, is_serial=None, log_group_id=None, log_topic_id=None, bucket=None, prefix=None, suffix=None, events=None, topic_urn=None, topic_ids=None, kafka_user=None, kafka_password=None, kafka_connect_address=None, kafka_ssl_enable=None, access_password=None, access_user=None, connect_address=None, exchange_name=None, vhost=None, ssl_enable=None, key_encode=None, agency=None, channel_name=None, source_name=None, created_time=None, status=None, trigger_name=None): + def __init__(self, name=None, schedule_type=None, schedule=None, user_event=None, type=None, path=None, protocol=None, req_method=None, group_id=None, group_name=None, match_mode=None, env_name=None, env_id=None, auth=None, func_info=None, sl_domain=None, backend_type=None, operations=None, instance_id=None, collection_name=None, db_name=None, db_password=None, batch_size=None, queue_id=None, consumer_group_id=None, polling_interval=None, stream_name=None, sharditerator_type=None, polling_unit=None, max_fetch_bytes=None, is_serial=None, log_group_id=None, log_topic_id=None, bucket=None, prefix=None, suffix=None, events=None, topic_urn=None, topic_ids=None, kafka_user=None, kafka_password=None, kafka_connect_address=None, kafka_ssl_enable=None, access_password=None, access_user=None, connect_address=None, exchange_name=None, vhost=None, ssl_enable=None, key_encode=None, agency=None, channel_name=None, channel_id=None, source_name=None, created_time=None, status=None, trigger_name=None, event_types=None): """TriggerEventDataRequestBody The model defined in huaweicloud sdk @@ -237,20 +241,24 @@ def __init__(self, name=None, schedule_type=None, schedule=None, user_event=None :type vhost: str :param ssl_enable: RABBITMQ连接是否开启安全认证(RABBITMQ触发器参数)。 :type ssl_enable: bool - :param key_encode: EG obs触发器是否对对象加密。 + :param key_encode: EG obs触发器是否对对象加密(EVENTGRID触发器参数)。 :type key_encode: bool - :param agency: 使用的代理 + :param agency: 使用的代理(EVENTGRID触发器参数)。 :type agency: str - :param channel_name: 通道名称 + :param channel_name: 通道名称(EVENTGRID触发器参数)。 :type channel_name: str - :param source_name: 事件源名称 + :param channel_id: 通道id(EVENTGRID触发器参数)。 + :type channel_id: str + :param source_name: 事件源名称(EVENTGRID触发器参数)。 :type source_name: str - :param created_time: 创建时间 + :param created_time: 创建时间(EVENTGRID触发器参数)。 :type created_time: datetime - :param status: 触发器状态 + :param status: 触发器状态(EVENTGRID触发器参数)。 :type status: str - :param trigger_name: 触发器名称 + :param trigger_name: 触发器名称(EVENTGRID触发器参数)。 :type trigger_name: str + :param event_types: 事件类型(EVENTGRID触发器参数)。 + :type event_types: list[str] """ @@ -307,10 +315,12 @@ def __init__(self, name=None, schedule_type=None, schedule=None, user_event=None self._key_encode = None self._agency = None self._channel_name = None + self._channel_id = None self._source_name = None self._created_time = None self._status = None self._trigger_name = None + self._event_types = None self.discriminator = None if name is not None: @@ -417,6 +427,8 @@ def __init__(self, name=None, schedule_type=None, schedule=None, user_event=None self.agency = agency if channel_name is not None: self.channel_name = channel_name + if channel_id is not None: + self.channel_id = channel_id if source_name is not None: self.source_name = source_name if created_time is not None: @@ -425,6 +437,8 @@ def __init__(self, name=None, schedule_type=None, schedule=None, user_event=None self.status = status if trigger_name is not None: self.trigger_name = trigger_name + if event_types is not None: + self.event_types = event_types @property def name(self): @@ -1504,7 +1518,7 @@ def ssl_enable(self, ssl_enable): def key_encode(self): """Gets the key_encode of this TriggerEventDataRequestBody. - EG obs触发器是否对对象加密。 + EG obs触发器是否对对象加密(EVENTGRID触发器参数)。 :return: The key_encode of this TriggerEventDataRequestBody. :rtype: bool @@ -1515,7 +1529,7 @@ def key_encode(self): def key_encode(self, key_encode): """Sets the key_encode of this TriggerEventDataRequestBody. - EG obs触发器是否对对象加密。 + EG obs触发器是否对对象加密(EVENTGRID触发器参数)。 :param key_encode: The key_encode of this TriggerEventDataRequestBody. :type key_encode: bool @@ -1526,7 +1540,7 @@ def key_encode(self, key_encode): def agency(self): """Gets the agency of this TriggerEventDataRequestBody. - 使用的代理 + 使用的代理(EVENTGRID触发器参数)。 :return: The agency of this TriggerEventDataRequestBody. :rtype: str @@ -1537,7 +1551,7 @@ def agency(self): def agency(self, agency): """Sets the agency of this TriggerEventDataRequestBody. - 使用的代理 + 使用的代理(EVENTGRID触发器参数)。 :param agency: The agency of this TriggerEventDataRequestBody. :type agency: str @@ -1548,7 +1562,7 @@ def agency(self, agency): def channel_name(self): """Gets the channel_name of this TriggerEventDataRequestBody. - 通道名称 + 通道名称(EVENTGRID触发器参数)。 :return: The channel_name of this TriggerEventDataRequestBody. :rtype: str @@ -1559,18 +1573,40 @@ def channel_name(self): def channel_name(self, channel_name): """Sets the channel_name of this TriggerEventDataRequestBody. - 通道名称 + 通道名称(EVENTGRID触发器参数)。 :param channel_name: The channel_name of this TriggerEventDataRequestBody. :type channel_name: str """ self._channel_name = channel_name + @property + def channel_id(self): + """Gets the channel_id of this TriggerEventDataRequestBody. + + 通道id(EVENTGRID触发器参数)。 + + :return: The channel_id of this TriggerEventDataRequestBody. + :rtype: str + """ + return self._channel_id + + @channel_id.setter + def channel_id(self, channel_id): + """Sets the channel_id of this TriggerEventDataRequestBody. + + 通道id(EVENTGRID触发器参数)。 + + :param channel_id: The channel_id of this TriggerEventDataRequestBody. + :type channel_id: str + """ + self._channel_id = channel_id + @property def source_name(self): """Gets the source_name of this TriggerEventDataRequestBody. - 事件源名称 + 事件源名称(EVENTGRID触发器参数)。 :return: The source_name of this TriggerEventDataRequestBody. :rtype: str @@ -1581,7 +1617,7 @@ def source_name(self): def source_name(self, source_name): """Sets the source_name of this TriggerEventDataRequestBody. - 事件源名称 + 事件源名称(EVENTGRID触发器参数)。 :param source_name: The source_name of this TriggerEventDataRequestBody. :type source_name: str @@ -1592,7 +1628,7 @@ def source_name(self, source_name): def created_time(self): """Gets the created_time of this TriggerEventDataRequestBody. - 创建时间 + 创建时间(EVENTGRID触发器参数)。 :return: The created_time of this TriggerEventDataRequestBody. :rtype: datetime @@ -1603,7 +1639,7 @@ def created_time(self): def created_time(self, created_time): """Sets the created_time of this TriggerEventDataRequestBody. - 创建时间 + 创建时间(EVENTGRID触发器参数)。 :param created_time: The created_time of this TriggerEventDataRequestBody. :type created_time: datetime @@ -1614,7 +1650,7 @@ def created_time(self, created_time): def status(self): """Gets the status of this TriggerEventDataRequestBody. - 触发器状态 + 触发器状态(EVENTGRID触发器参数)。 :return: The status of this TriggerEventDataRequestBody. :rtype: str @@ -1625,7 +1661,7 @@ def status(self): def status(self, status): """Sets the status of this TriggerEventDataRequestBody. - 触发器状态 + 触发器状态(EVENTGRID触发器参数)。 :param status: The status of this TriggerEventDataRequestBody. :type status: str @@ -1636,7 +1672,7 @@ def status(self, status): def trigger_name(self): """Gets the trigger_name of this TriggerEventDataRequestBody. - 触发器名称 + 触发器名称(EVENTGRID触发器参数)。 :return: The trigger_name of this TriggerEventDataRequestBody. :rtype: str @@ -1647,13 +1683,35 @@ def trigger_name(self): def trigger_name(self, trigger_name): """Sets the trigger_name of this TriggerEventDataRequestBody. - 触发器名称 + 触发器名称(EVENTGRID触发器参数)。 :param trigger_name: The trigger_name of this TriggerEventDataRequestBody. :type trigger_name: str """ self._trigger_name = trigger_name + @property + def event_types(self): + """Gets the event_types of this TriggerEventDataRequestBody. + + 事件类型(EVENTGRID触发器参数)。 + + :return: The event_types of this TriggerEventDataRequestBody. + :rtype: list[str] + """ + return self._event_types + + @event_types.setter + def event_types(self, event_types): + """Sets the event_types of this TriggerEventDataRequestBody. + + 事件类型(EVENTGRID触发器参数)。 + + :param event_types: The event_types of this TriggerEventDataRequestBody. + :type event_types: list[str] + """ + self._event_types = event_types + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/trigger_event_data_response_body.py b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/trigger_event_data_response_body.py index 0659c3a974..9f89e0dc64 100644 --- a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/trigger_event_data_response_body.py +++ b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/trigger_event_data_response_body.py @@ -73,7 +73,16 @@ class TriggerEventDataResponseBody: 'connect_address': 'str', 'exchange_name': 'str', 'vhost': 'str', - 'ssl_enable': 'bool' + 'ssl_enable': 'bool', + 'key_encode': 'bool', + 'agency': 'str', + 'channel_name': 'str', + 'channel_id': 'str', + 'source_name': 'str', + 'created_time': 'datetime', + 'status': 'str', + 'trigger_name': 'str', + 'event_types': 'list[str]' } attribute_map = { @@ -133,10 +142,19 @@ class TriggerEventDataResponseBody: 'connect_address': 'connect_address', 'exchange_name': 'exchange_name', 'vhost': 'vhost', - 'ssl_enable': 'ssl_enable' + 'ssl_enable': 'ssl_enable', + 'key_encode': 'Key_encode', + 'agency': 'agency', + 'channel_name': 'channel_name', + 'channel_id': 'channel_id', + 'source_name': 'source_name', + 'created_time': 'created_time', + 'status': 'status', + 'trigger_name': 'trigger_name', + 'event_types': 'event_types' } - def __init__(self, name=None, schedule_type=None, schedule=None, user_event=None, triggerid=None, type=None, path=None, protocol=None, req_method=None, group_id=None, group_name=None, match_mode=None, env_name=None, env_id=None, api_id=None, api_name=None, auth=None, invoke_url=None, func_info=None, sl_domain=None, backend_type=None, instance_id=None, roma_app_id=None, operations=None, collection_name=None, db_name=None, db_password=None, db_user=None, instance_addrs=None, mode=None, batch_size=None, queue_id=None, consumer_group_id=None, polling_interval=None, stream_name=None, sharditerator_type=None, polling_unit=None, max_fetch_bytes=None, is_serial=None, log_group_id=None, log_topic_id=None, bucket=None, prefix=None, suffix=None, events=None, topic_urn=None, topic_ids=None, kafka_user=None, kafka_password=None, kafka_connect_address=None, kafka_ssl_enable=None, access_password=None, access_user=None, connect_address=None, exchange_name=None, vhost=None, ssl_enable=None): + def __init__(self, name=None, schedule_type=None, schedule=None, user_event=None, triggerid=None, type=None, path=None, protocol=None, req_method=None, group_id=None, group_name=None, match_mode=None, env_name=None, env_id=None, api_id=None, api_name=None, auth=None, invoke_url=None, func_info=None, sl_domain=None, backend_type=None, instance_id=None, roma_app_id=None, operations=None, collection_name=None, db_name=None, db_password=None, db_user=None, instance_addrs=None, mode=None, batch_size=None, queue_id=None, consumer_group_id=None, polling_interval=None, stream_name=None, sharditerator_type=None, polling_unit=None, max_fetch_bytes=None, is_serial=None, log_group_id=None, log_topic_id=None, bucket=None, prefix=None, suffix=None, events=None, topic_urn=None, topic_ids=None, kafka_user=None, kafka_password=None, kafka_connect_address=None, kafka_ssl_enable=None, access_password=None, access_user=None, connect_address=None, exchange_name=None, vhost=None, ssl_enable=None, key_encode=None, agency=None, channel_name=None, channel_id=None, source_name=None, created_time=None, status=None, trigger_name=None, event_types=None): """TriggerEventDataResponseBody The model defined in huaweicloud sdk @@ -255,6 +273,24 @@ def __init__(self, name=None, schedule_type=None, schedule=None, user_event=None :type vhost: str :param ssl_enable: RABBITMQ连接是否开启安全认证(RABBITMQ触发器参数)。 :type ssl_enable: bool + :param key_encode: EG obs触发器是否对对象加密(EVENTGRID触发器参数)。 + :type key_encode: bool + :param agency: 使用的代理(EVENTGRID触发器参数)。 + :type agency: str + :param channel_name: 通道名称(EVENTGRID触发器参数)。 + :type channel_name: str + :param channel_id: 通道id(EVENTGRID触发器参数)。 + :type channel_id: str + :param source_name: 事件源名称(EVENTGRID触发器参数)。 + :type source_name: str + :param created_time: 创建时间(EVENTGRID触发器参数)。 + :type created_time: datetime + :param status: 触发器状态(EVENTGRID触发器参数)。 + :type status: str + :param trigger_name: 触发器名称(EVENTGRID触发器参数)。 + :type trigger_name: str + :param event_types: 事件类型(EVENTGRID触发器参数)。 + :type event_types: list[str] """ @@ -316,6 +352,15 @@ def __init__(self, name=None, schedule_type=None, schedule=None, user_event=None self._exchange_name = None self._vhost = None self._ssl_enable = None + self._key_encode = None + self._agency = None + self._channel_name = None + self._channel_id = None + self._source_name = None + self._created_time = None + self._status = None + self._trigger_name = None + self._event_types = None self.discriminator = None if name is not None: @@ -432,6 +477,24 @@ def __init__(self, name=None, schedule_type=None, schedule=None, user_event=None self.vhost = vhost if ssl_enable is not None: self.ssl_enable = ssl_enable + if key_encode is not None: + self.key_encode = key_encode + if agency is not None: + self.agency = agency + if channel_name is not None: + self.channel_name = channel_name + if channel_id is not None: + self.channel_id = channel_id + if source_name is not None: + self.source_name = source_name + if created_time is not None: + self.created_time = created_time + if status is not None: + self.status = status + if trigger_name is not None: + self.trigger_name = trigger_name + if event_types is not None: + self.event_types = event_types @property def name(self): @@ -1683,6 +1746,204 @@ def ssl_enable(self, ssl_enable): """ self._ssl_enable = ssl_enable + @property + def key_encode(self): + """Gets the key_encode of this TriggerEventDataResponseBody. + + EG obs触发器是否对对象加密(EVENTGRID触发器参数)。 + + :return: The key_encode of this TriggerEventDataResponseBody. + :rtype: bool + """ + return self._key_encode + + @key_encode.setter + def key_encode(self, key_encode): + """Sets the key_encode of this TriggerEventDataResponseBody. + + EG obs触发器是否对对象加密(EVENTGRID触发器参数)。 + + :param key_encode: The key_encode of this TriggerEventDataResponseBody. + :type key_encode: bool + """ + self._key_encode = key_encode + + @property + def agency(self): + """Gets the agency of this TriggerEventDataResponseBody. + + 使用的代理(EVENTGRID触发器参数)。 + + :return: The agency of this TriggerEventDataResponseBody. + :rtype: str + """ + return self._agency + + @agency.setter + def agency(self, agency): + """Sets the agency of this TriggerEventDataResponseBody. + + 使用的代理(EVENTGRID触发器参数)。 + + :param agency: The agency of this TriggerEventDataResponseBody. + :type agency: str + """ + self._agency = agency + + @property + def channel_name(self): + """Gets the channel_name of this TriggerEventDataResponseBody. + + 通道名称(EVENTGRID触发器参数)。 + + :return: The channel_name of this TriggerEventDataResponseBody. + :rtype: str + """ + return self._channel_name + + @channel_name.setter + def channel_name(self, channel_name): + """Sets the channel_name of this TriggerEventDataResponseBody. + + 通道名称(EVENTGRID触发器参数)。 + + :param channel_name: The channel_name of this TriggerEventDataResponseBody. + :type channel_name: str + """ + self._channel_name = channel_name + + @property + def channel_id(self): + """Gets the channel_id of this TriggerEventDataResponseBody. + + 通道id(EVENTGRID触发器参数)。 + + :return: The channel_id of this TriggerEventDataResponseBody. + :rtype: str + """ + return self._channel_id + + @channel_id.setter + def channel_id(self, channel_id): + """Sets the channel_id of this TriggerEventDataResponseBody. + + 通道id(EVENTGRID触发器参数)。 + + :param channel_id: The channel_id of this TriggerEventDataResponseBody. + :type channel_id: str + """ + self._channel_id = channel_id + + @property + def source_name(self): + """Gets the source_name of this TriggerEventDataResponseBody. + + 事件源名称(EVENTGRID触发器参数)。 + + :return: The source_name of this TriggerEventDataResponseBody. + :rtype: str + """ + return self._source_name + + @source_name.setter + def source_name(self, source_name): + """Sets the source_name of this TriggerEventDataResponseBody. + + 事件源名称(EVENTGRID触发器参数)。 + + :param source_name: The source_name of this TriggerEventDataResponseBody. + :type source_name: str + """ + self._source_name = source_name + + @property + def created_time(self): + """Gets the created_time of this TriggerEventDataResponseBody. + + 创建时间(EVENTGRID触发器参数)。 + + :return: The created_time of this TriggerEventDataResponseBody. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this TriggerEventDataResponseBody. + + 创建时间(EVENTGRID触发器参数)。 + + :param created_time: The created_time of this TriggerEventDataResponseBody. + :type created_time: datetime + """ + self._created_time = created_time + + @property + def status(self): + """Gets the status of this TriggerEventDataResponseBody. + + 触发器状态(EVENTGRID触发器参数)。 + + :return: The status of this TriggerEventDataResponseBody. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this TriggerEventDataResponseBody. + + 触发器状态(EVENTGRID触发器参数)。 + + :param status: The status of this TriggerEventDataResponseBody. + :type status: str + """ + self._status = status + + @property + def trigger_name(self): + """Gets the trigger_name of this TriggerEventDataResponseBody. + + 触发器名称(EVENTGRID触发器参数)。 + + :return: The trigger_name of this TriggerEventDataResponseBody. + :rtype: str + """ + return self._trigger_name + + @trigger_name.setter + def trigger_name(self, trigger_name): + """Sets the trigger_name of this TriggerEventDataResponseBody. + + 触发器名称(EVENTGRID触发器参数)。 + + :param trigger_name: The trigger_name of this TriggerEventDataResponseBody. + :type trigger_name: str + """ + self._trigger_name = trigger_name + + @property + def event_types(self): + """Gets the event_types of this TriggerEventDataResponseBody. + + 事件类型(EVENTGRID触发器参数)。 + + :return: The event_types of this TriggerEventDataResponseBody. + :rtype: list[str] + """ + return self._event_types + + @event_types.setter + def event_types(self, event_types): + """Sets the event_types of this TriggerEventDataResponseBody. + + 事件类型(EVENTGRID触发器参数)。 + + :param event_types: The event_types of this TriggerEventDataResponseBody. + :type event_types: list[str] + """ + self._event_types = event_types + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-functiongraph/requirements.txt b/huaweicloud-sdk-functiongraph/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-functiongraph/requirements.txt +++ b/huaweicloud-sdk-functiongraph/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-functiongraph/setup.py b/huaweicloud-sdk-functiongraph/setup.py index 323d4e46db..5ccc6ec2cc 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ga/requirements.txt b/huaweicloud-sdk-ga/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-ga/requirements.txt +++ b/huaweicloud-sdk-ga/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-ga/setup.py b/huaweicloud-sdk-ga/setup.py index d245f1640a..39547b977b 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdb/requirements.txt b/huaweicloud-sdk-gaussdb/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-gaussdb/requirements.txt +++ b/huaweicloud-sdk-gaussdb/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdb/setup.py b/huaweicloud-sdk-gaussdb/setup.py index dac8aabc30..a78bff96aa 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/__init__.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/__init__.py index d6e92cf340..2393b366f7 100644 --- a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/__init__.py +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/__init__.py @@ -11,6 +11,9 @@ from huaweicloudsdkgaussdbfornosql.v3.model.apply_configuration_request import ApplyConfigurationRequest from huaweicloudsdkgaussdbfornosql.v3.model.apply_configuration_request_body import ApplyConfigurationRequestBody from huaweicloudsdkgaussdbfornosql.v3.model.apply_configuration_response import ApplyConfigurationResponse +from huaweicloudsdkgaussdbfornosql.v3.model.apply_configuration_to_instances_request import ApplyConfigurationToInstancesRequest +from huaweicloudsdkgaussdbfornosql.v3.model.apply_configuration_to_instances_request_body import ApplyConfigurationToInstancesRequestBody +from huaweicloudsdkgaussdbfornosql.v3.model.apply_configuration_to_instances_response import ApplyConfigurationToInstancesResponse from huaweicloudsdkgaussdbfornosql.v3.model.apply_history_rsp import ApplyHistoryRsp from huaweicloudsdkgaussdbfornosql.v3.model.availability_zone_detail import AvailabilityZoneDetail from huaweicloudsdkgaussdbfornosql.v3.model.backup import Backup @@ -25,6 +28,8 @@ from huaweicloudsdkgaussdbfornosql.v3.model.batch_upgrade_database_version_request_body import BatchUpgradeDatabaseVersionRequestBody from huaweicloudsdkgaussdbfornosql.v3.model.batch_upgrade_database_version_response import BatchUpgradeDatabaseVersionResponse from huaweicloudsdkgaussdbfornosql.v3.model.big_keys_info_response_body import BigKeysInfoResponseBody +from huaweicloudsdkgaussdbfornosql.v3.model.cancel_instance_schedule_window_request import CancelInstanceScheduleWindowRequest +from huaweicloudsdkgaussdbfornosql.v3.model.cancel_instance_schedule_window_response import CancelInstanceScheduleWindowResponse from huaweicloudsdkgaussdbfornosql.v3.model.cassandra_slow_log_detail import CassandraSlowLogDetail from huaweicloudsdkgaussdbfornosql.v3.model.charge_info_option import ChargeInfoOption from huaweicloudsdkgaussdbfornosql.v3.model.charge_info_result import ChargeInfoResult @@ -55,6 +60,12 @@ from huaweicloudsdkgaussdbfornosql.v3.model.create_configuration_request_body import CreateConfigurationRequestBody from huaweicloudsdkgaussdbfornosql.v3.model.create_configuration_response import CreateConfigurationResponse from huaweicloudsdkgaussdbfornosql.v3.model.create_configuration_result import CreateConfigurationResult +from huaweicloudsdkgaussdbfornosql.v3.model.create_db_cache_mapping_request import CreateDbCacheMappingRequest +from huaweicloudsdkgaussdbfornosql.v3.model.create_db_cache_mapping_request_body import CreateDbCacheMappingRequestBody +from huaweicloudsdkgaussdbfornosql.v3.model.create_db_cache_mapping_response import CreateDbCacheMappingResponse +from huaweicloudsdkgaussdbfornosql.v3.model.create_db_cache_rule_request import CreateDbCacheRuleRequest +from huaweicloudsdkgaussdbfornosql.v3.model.create_db_cache_rule_request_body import CreateDbCacheRuleRequestBody +from huaweicloudsdkgaussdbfornosql.v3.model.create_db_cache_rule_response import CreateDbCacheRuleResponse from huaweicloudsdkgaussdbfornosql.v3.model.create_db_user_request import CreateDbUserRequest from huaweicloudsdkgaussdbfornosql.v3.model.create_db_user_response import CreateDbUserResponse from huaweicloudsdkgaussdbfornosql.v3.model.create_disaster_recovery_request import CreateDisasterRecoveryRequest @@ -73,6 +84,12 @@ from huaweicloudsdkgaussdbfornosql.v3.model.delete_backup_response import DeleteBackupResponse from huaweicloudsdkgaussdbfornosql.v3.model.delete_configuration_request import DeleteConfigurationRequest from huaweicloudsdkgaussdbfornosql.v3.model.delete_configuration_response import DeleteConfigurationResponse +from huaweicloudsdkgaussdbfornosql.v3.model.delete_db_cache_mapping_request import DeleteDbCacheMappingRequest +from huaweicloudsdkgaussdbfornosql.v3.model.delete_db_cache_mapping_request_body import DeleteDbCacheMappingRequestBody +from huaweicloudsdkgaussdbfornosql.v3.model.delete_db_cache_mapping_response import DeleteDbCacheMappingResponse +from huaweicloudsdkgaussdbfornosql.v3.model.delete_db_cache_rule_request import DeleteDbCacheRuleRequest +from huaweicloudsdkgaussdbfornosql.v3.model.delete_db_cache_rule_request_body import DeleteDbCacheRuleRequestBody +from huaweicloudsdkgaussdbfornosql.v3.model.delete_db_cache_rule_response import DeleteDbCacheRuleResponse from huaweicloudsdkgaussdbfornosql.v3.model.delete_db_user_request import DeleteDbUserRequest from huaweicloudsdkgaussdbfornosql.v3.model.delete_db_user_response import DeleteDbUserResponse from huaweicloudsdkgaussdbfornosql.v3.model.delete_disaster_recovery_request import DeleteDisasterRecoveryRequest @@ -120,6 +137,10 @@ from huaweicloudsdkgaussdbfornosql.v3.model.list_configurations_result import ListConfigurationsResult from huaweicloudsdkgaussdbfornosql.v3.model.list_datastores_request import ListDatastoresRequest from huaweicloudsdkgaussdbfornosql.v3.model.list_datastores_response import ListDatastoresResponse +from huaweicloudsdkgaussdbfornosql.v3.model.list_db_cache_mappings_request import ListDbCacheMappingsRequest +from huaweicloudsdkgaussdbfornosql.v3.model.list_db_cache_mappings_response import ListDbCacheMappingsResponse +from huaweicloudsdkgaussdbfornosql.v3.model.list_db_cache_rules_request import ListDbCacheRulesRequest +from huaweicloudsdkgaussdbfornosql.v3.model.list_db_cache_rules_response import ListDbCacheRulesResponse from huaweicloudsdkgaussdbfornosql.v3.model.list_db_users_request import ListDbUsersRequest from huaweicloudsdkgaussdbfornosql.v3.model.list_db_users_response import ListDbUsersResponse from huaweicloudsdkgaussdbfornosql.v3.model.list_dedicated_resource_result import ListDedicatedResourceResult @@ -137,6 +158,8 @@ from huaweicloudsdkgaussdbfornosql.v3.model.list_influxdb_slow_logs_response import ListInfluxdbSlowLogsResponse from huaweicloudsdkgaussdbfornosql.v3.model.list_instance_databases_request import ListInstanceDatabasesRequest from huaweicloudsdkgaussdbfornosql.v3.model.list_instance_databases_response import ListInstanceDatabasesResponse +from huaweicloudsdkgaussdbfornosql.v3.model.list_instance_maintenance_window_request import ListInstanceMaintenanceWindowRequest +from huaweicloudsdkgaussdbfornosql.v3.model.list_instance_maintenance_window_response import ListInstanceMaintenanceWindowResponse from huaweicloudsdkgaussdbfornosql.v3.model.list_instance_tags_request import ListInstanceTagsRequest from huaweicloudsdkgaussdbfornosql.v3.model.list_instance_tags_response import ListInstanceTagsResponse from huaweicloudsdkgaussdbfornosql.v3.model.list_instance_tags_result import ListInstanceTagsResult @@ -168,6 +191,8 @@ from huaweicloudsdkgaussdbfornosql.v3.model.list_mongodb_slow_logs_request import ListMongodbSlowLogsRequest from huaweicloudsdkgaussdbfornosql.v3.model.list_mongodb_slow_logs_request_body import ListMongodbSlowLogsRequestBody from huaweicloudsdkgaussdbfornosql.v3.model.list_mongodb_slow_logs_response import ListMongodbSlowLogsResponse +from huaweicloudsdkgaussdbfornosql.v3.model.list_nosql_task_list_request import ListNosqlTaskListRequest +from huaweicloudsdkgaussdbfornosql.v3.model.list_nosql_task_list_response import ListNosqlTaskListResponse from huaweicloudsdkgaussdbfornosql.v3.model.list_project_tags_request import ListProjectTagsRequest from huaweicloudsdkgaussdbfornosql.v3.model.list_project_tags_response import ListProjectTagsResponse from huaweicloudsdkgaussdbfornosql.v3.model.list_recycle_instances_request import ListRecycleInstancesRequest @@ -189,6 +214,9 @@ from huaweicloudsdkgaussdbfornosql.v3.model.modify_db_user_privilege_response import ModifyDbUserPrivilegeResponse from huaweicloudsdkgaussdbfornosql.v3.model.modify_eps_quotas_request import ModifyEpsQuotasRequest from huaweicloudsdkgaussdbfornosql.v3.model.modify_eps_quotas_response import ModifyEpsQuotasResponse +from huaweicloudsdkgaussdbfornosql.v3.model.modify_instance_maintenance_window_request import ModifyInstanceMaintenanceWindowRequest +from huaweicloudsdkgaussdbfornosql.v3.model.modify_instance_maintenance_window_response import ModifyInstanceMaintenanceWindowResponse +from huaweicloudsdkgaussdbfornosql.v3.model.modify_instance_ops_window_v3_req import ModifyInstanceOpsWindowV3Req from huaweicloudsdkgaussdbfornosql.v3.model.modify_port_request import ModifyPortRequest from huaweicloudsdkgaussdbfornosql.v3.model.modify_port_request_body import ModifyPortRequestBody from huaweicloudsdkgaussdbfornosql.v3.model.modify_port_response import ModifyPortResponse @@ -217,6 +245,8 @@ from huaweicloudsdkgaussdbfornosql.v3.model.pause_resume_data_synchronization_response import PauseResumeDataSynchronizationResponse from huaweicloudsdkgaussdbfornosql.v3.model.precheck_disaster_recovery_instance import PrecheckDisasterRecoveryInstance from huaweicloudsdkgaussdbfornosql.v3.model.precheck_disaster_recovery_operation_body import PrecheckDisasterRecoveryOperationBody +from huaweicloudsdkgaussdbfornosql.v3.model.query_db_cache_mapping_response import QueryDBCacheMappingResponse +from huaweicloudsdkgaussdbfornosql.v3.model.query_db_cache_rule_response import QueryDBCacheRuleResponse from huaweicloudsdkgaussdbfornosql.v3.model.query_database_table_info import QueryDatabaseTableInfo from huaweicloudsdkgaussdbfornosql.v3.model.query_instance_backup_response_body_backups import QueryInstanceBackupResponseBodyBackups from huaweicloudsdkgaussdbfornosql.v3.model.query_instance_backup_response_body_datastore import QueryInstanceBackupResponseBodyDatastore @@ -261,12 +291,16 @@ from huaweicloudsdkgaussdbfornosql.v3.model.save_lts_configs_request import SaveLtsConfigsRequest from huaweicloudsdkgaussdbfornosql.v3.model.save_lts_configs_request_body import SaveLtsConfigsRequestBody from huaweicloudsdkgaussdbfornosql.v3.model.save_lts_configs_response import SaveLtsConfigsResponse +from huaweicloudsdkgaussdbfornosql.v3.model.schedule_detail_info import ScheduleDetailInfo from huaweicloudsdkgaussdbfornosql.v3.model.set_auto_enlarge_policy_request import SetAutoEnlargePolicyRequest from huaweicloudsdkgaussdbfornosql.v3.model.set_auto_enlarge_policy_response import SetAutoEnlargePolicyResponse from huaweicloudsdkgaussdbfornosql.v3.model.set_auto_policy_request_body import SetAutoPolicyRequestBody from huaweicloudsdkgaussdbfornosql.v3.model.set_backup_policy_request import SetBackupPolicyRequest from huaweicloudsdkgaussdbfornosql.v3.model.set_backup_policy_request_body import SetBackupPolicyRequestBody from huaweicloudsdkgaussdbfornosql.v3.model.set_backup_policy_response import SetBackupPolicyResponse +from huaweicloudsdkgaussdbfornosql.v3.model.set_instance_data_dump_request import SetInstanceDataDumpRequest +from huaweicloudsdkgaussdbfornosql.v3.model.set_instance_data_dump_request_body import SetInstanceDataDumpRequestBody +from huaweicloudsdkgaussdbfornosql.v3.model.set_instance_data_dump_response import SetInstanceDataDumpResponse from huaweicloudsdkgaussdbfornosql.v3.model.set_recycle_policy_request import SetRecyclePolicyRequest from huaweicloudsdkgaussdbfornosql.v3.model.set_recycle_policy_response import SetRecyclePolicyResponse from huaweicloudsdkgaussdbfornosql.v3.model.show_all_instances_backups_new_request import ShowAllInstancesBackupsNewRequest @@ -281,6 +315,8 @@ from huaweicloudsdkgaussdbfornosql.v3.model.show_apply_history_response import ShowApplyHistoryResponse from huaweicloudsdkgaussdbfornosql.v3.model.show_auto_enlarge_policy_request import ShowAutoEnlargePolicyRequest from huaweicloudsdkgaussdbfornosql.v3.model.show_auto_enlarge_policy_response import ShowAutoEnlargePolicyResponse +from huaweicloudsdkgaussdbfornosql.v3.model.show_backup_policies_request import ShowBackupPoliciesRequest +from huaweicloudsdkgaussdbfornosql.v3.model.show_backup_policies_response import ShowBackupPoliciesResponse from huaweicloudsdkgaussdbfornosql.v3.model.show_backup_policy_request import ShowBackupPolicyRequest from huaweicloudsdkgaussdbfornosql.v3.model.show_backup_policy_response import ShowBackupPolicyResponse from huaweicloudsdkgaussdbfornosql.v3.model.show_backup_policy_result import ShowBackupPolicyResult @@ -317,6 +353,8 @@ from huaweicloudsdkgaussdbfornosql.v3.model.show_resources_list_response_body import ShowResourcesListResponseBody from huaweicloudsdkgaussdbfornosql.v3.model.show_restorable_list_request import ShowRestorableListRequest from huaweicloudsdkgaussdbfornosql.v3.model.show_restorable_list_response import ShowRestorableListResponse +from huaweicloudsdkgaussdbfornosql.v3.model.show_second_level_monitoring_status_request import ShowSecondLevelMonitoringStatusRequest +from huaweicloudsdkgaussdbfornosql.v3.model.show_second_level_monitoring_status_response import ShowSecondLevelMonitoringStatusResponse from huaweicloudsdkgaussdbfornosql.v3.model.show_slow_log_desensitization_request import ShowSlowLogDesensitizationRequest from huaweicloudsdkgaussdbfornosql.v3.model.show_slow_log_desensitization_response import ShowSlowLogDesensitizationResponse from huaweicloudsdkgaussdbfornosql.v3.model.shrink_instance_node_request import ShrinkInstanceNodeRequest @@ -327,6 +365,9 @@ from huaweicloudsdkgaussdbfornosql.v3.model.switch_ip_group_request_body import SwitchIpGroupRequestBody from huaweicloudsdkgaussdbfornosql.v3.model.switch_ip_group_request_body_ip_groups import SwitchIpGroupRequestBodyIpGroups from huaweicloudsdkgaussdbfornosql.v3.model.switch_ip_group_response import SwitchIpGroupResponse +from huaweicloudsdkgaussdbfornosql.v3.model.switch_second_level_monitoring_request import SwitchSecondLevelMonitoringRequest +from huaweicloudsdkgaussdbfornosql.v3.model.switch_second_level_monitoring_request_body import SwitchSecondLevelMonitoringRequestBody +from huaweicloudsdkgaussdbfornosql.v3.model.switch_second_level_monitoring_response import SwitchSecondLevelMonitoringResponse from huaweicloudsdkgaussdbfornosql.v3.model.switch_slowlog_desensitization_request import SwitchSlowlogDesensitizationRequest from huaweicloudsdkgaussdbfornosql.v3.model.switch_slowlog_desensitization_request_body import SwitchSlowlogDesensitizationRequestBody from huaweicloudsdkgaussdbfornosql.v3.model.switch_slowlog_desensitization_response import SwitchSlowlogDesensitizationResponse @@ -349,11 +390,17 @@ from huaweicloudsdkgaussdbfornosql.v3.model.update_databases_request import UpdateDatabasesRequest from huaweicloudsdkgaussdbfornosql.v3.model.update_databases_request_body import UpdateDatabasesRequestBody from huaweicloudsdkgaussdbfornosql.v3.model.update_databases_response import UpdateDatabasesResponse +from huaweicloudsdkgaussdbfornosql.v3.model.update_db_cache_rule_request import UpdateDbCacheRuleRequest +from huaweicloudsdkgaussdbfornosql.v3.model.update_db_cache_rule_request_body import UpdateDbCacheRuleRequestBody +from huaweicloudsdkgaussdbfornosql.v3.model.update_db_cache_rule_response import UpdateDbCacheRuleResponse from huaweicloudsdkgaussdbfornosql.v3.model.update_high_risk_commands_request import UpdateHighRiskCommandsRequest from huaweicloudsdkgaussdbfornosql.v3.model.update_high_risk_commands_response import UpdateHighRiskCommandsResponse from huaweicloudsdkgaussdbfornosql.v3.model.update_instance_configuration_request import UpdateInstanceConfigurationRequest from huaweicloudsdkgaussdbfornosql.v3.model.update_instance_configuration_request_body import UpdateInstanceConfigurationRequestBody from huaweicloudsdkgaussdbfornosql.v3.model.update_instance_configuration_response import UpdateInstanceConfigurationResponse +from huaweicloudsdkgaussdbfornosql.v3.model.update_instance_configurations_request import UpdateInstanceConfigurationsRequest +from huaweicloudsdkgaussdbfornosql.v3.model.update_instance_configurations_request_body import UpdateInstanceConfigurationsRequestBody +from huaweicloudsdkgaussdbfornosql.v3.model.update_instance_configurations_response import UpdateInstanceConfigurationsResponse from huaweicloudsdkgaussdbfornosql.v3.model.update_instance_name_request import UpdateInstanceNameRequest from huaweicloudsdkgaussdbfornosql.v3.model.update_instance_name_request_body import UpdateInstanceNameRequestBody from huaweicloudsdkgaussdbfornosql.v3.model.update_instance_name_response import UpdateInstanceNameResponse diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/gaussdbfornosql_async_client.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/gaussdbfornosql_async_client.py index afcb1bbc24..abee6bfbd5 100644 --- a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/gaussdbfornosql_async_client.py +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/gaussdbfornosql_async_client.py @@ -99,6 +99,73 @@ def _apply_configuration_http_info(self, request): return http_info + def apply_configuration_to_instances_async(self, request): + """应用参数模板 + + 将参数模板应用到实例,可以指定一个或多个实例。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ApplyConfigurationToInstances + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.ApplyConfigurationToInstancesRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ApplyConfigurationToInstancesResponse` + """ + http_info = self._apply_configuration_to_instances_http_info(request) + return self._call_api(**http_info) + + def apply_configuration_to_instances_async_invoker(self, request): + http_info = self._apply_configuration_to_instances_http_info(request) + return AsyncInvoker(self, http_info) + + def _apply_configuration_to_instances_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v3.1/{project_id}/configurations/{config_id}/apply", + "request_type": request.__class__.__name__, + "response_type": "ApplyConfigurationToInstancesResponse" + } + + 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 = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def batch_tag_action_async(self, request): """批量添加或删除资源标签 @@ -231,6 +298,71 @@ def _batch_upgrade_database_version_http_info(self, request): return http_info + def cancel_instance_schedule_window_async(self, request): + """取消定时任务 + + 取消定时任务 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CancelInstanceScheduleWindow + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.CancelInstanceScheduleWindowRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.CancelInstanceScheduleWindowResponse` + """ + http_info = self._cancel_instance_schedule_window_http_info(request) + return self._call_api(**http_info) + + def cancel_instance_schedule_window_async_invoker(self, request): + http_info = self._cancel_instance_schedule_window_http_info(request) + return AsyncInvoker(self, http_info) + + def _cancel_instance_schedule_window_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v3/{project_id}/scheduled-jobs/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "CancelInstanceScheduleWindowResponse" + } + + 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 check_disaster_recovery_operation_async(self, request): """校验实例是否可以与指定实例建立/解除容灾关系 @@ -695,6 +827,136 @@ def _create_configuration_http_info(self, request): return http_info + def create_db_cache_mapping_async(self, request): + """创建内存加速映射 + + 创建内存加速映射。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateDbCacheMapping + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.CreateDbCacheMappingRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.CreateDbCacheMappingResponse` + """ + http_info = self._create_db_cache_mapping_http_info(request) + return self._call_api(**http_info) + + def create_db_cache_mapping_async_invoker(self, request): + http_info = self._create_db_cache_mapping_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_db_cache_mapping_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v3/{project_id}/dbcache/mapping", + "request_type": request.__class__.__name__, + "response_type": "CreateDbCacheMappingResponse" + } + + 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_db_cache_rule_async(self, request): + """创建内存加速规则 + + 创建内存加速规则。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateDbCacheRule + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.CreateDbCacheRuleRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.CreateDbCacheRuleResponse` + """ + http_info = self._create_db_cache_rule_http_info(request) + return self._call_api(**http_info) + + def create_db_cache_rule_async_invoker(self, request): + http_info = self._create_db_cache_rule_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_db_cache_rule_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v3/{project_id}/dbcache/rule", + "request_type": request.__class__.__name__, + "response_type": "CreateDbCacheRuleResponse" + } + + 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_db_user_async(self, request): """创建Redis数据库账号 @@ -1024,6 +1286,136 @@ def _delete_configuration_http_info(self, request): return http_info + def delete_db_cache_mapping_async(self, request): + """解除内存加速映射 + + 解除指定内存加速映射。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteDbCacheMapping + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.DeleteDbCacheMappingRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.DeleteDbCacheMappingResponse` + """ + http_info = self._delete_db_cache_mapping_http_info(request) + return self._call_api(**http_info) + + def delete_db_cache_mapping_async_invoker(self, request): + http_info = self._delete_db_cache_mapping_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_db_cache_mapping_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v3/{project_id}/dbcache/mapping", + "request_type": request.__class__.__name__, + "response_type": "DeleteDbCacheMappingResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def delete_db_cache_rule_async(self, request): + """删除内存加速规则 + + 删除内存加速规则。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteDbCacheRule + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.DeleteDbCacheRuleRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.DeleteDbCacheRuleResponse` + """ + http_info = self._delete_db_cache_rule_http_info(request) + return self._call_api(**http_info) + + def delete_db_cache_rule_async_invoker(self, request): + http_info = self._delete_db_cache_rule_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_db_cache_rule_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v3/{project_id}/dbcache/rule", + "request_type": request.__class__.__name__, + "response_type": "DeleteDbCacheRuleResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def delete_db_user_async(self, request): """删除Redis数据库账号 @@ -1883,6 +2275,162 @@ def _list_datastores_http_info(self, request): return http_info + def list_db_cache_mappings_async(self, request): + """查询内存加速映射列表和详情 + + 根据指定条件查询内存加速映射关系列表和详情。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListDbCacheMappings + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.ListDbCacheMappingsRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ListDbCacheMappingsResponse` + """ + http_info = self._list_db_cache_mappings_http_info(request) + return self._call_api(**http_info) + + def list_db_cache_mappings_async_invoker(self, request): + http_info = self._list_db_cache_mappings_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_db_cache_mappings_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/dbcache/mappings", + "request_type": request.__class__.__name__, + "response_type": "ListDbCacheMappingsResponse" + } + + 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 'source_instance_id' in local_var_params: + query_params.append(('source_instance_id', local_var_params['source_instance_id'])) + if 'source_instance_name' in local_var_params: + query_params.append(('source_instance_name', local_var_params['source_instance_name'])) + if 'target_instance_id' in local_var_params: + query_params.append(('target_instance_id', local_var_params['target_instance_id'])) + if 'target_instance_name' in local_var_params: + query_params.append(('target_instance_name', local_var_params['target_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 = {} + + 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_cache_rules_async(self, request): + """查询内存加速规则列表和详情 + + 查询内存加速规则列表和详情。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListDbCacheRules + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.ListDbCacheRulesRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ListDbCacheRulesResponse` + """ + http_info = self._list_db_cache_rules_http_info(request) + return self._call_api(**http_info) + + def list_db_cache_rules_async_invoker(self, request): + http_info = self._list_db_cache_rules_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_db_cache_rules_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/dbcache/rules", + "request_type": request.__class__.__name__, + "response_type": "ListDbCacheRulesResponse" + } + + 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 'dbcache_mapping_id' in local_var_params: + query_params.append(('dbcache_mapping_id', local_var_params['dbcache_mapping_id'])) + if 'rule_id' in local_var_params: + query_params.append(('rule_id', local_var_params['rule_id'])) + if 'rule_name' in local_var_params: + query_params.append(('rule_name', local_var_params['rule_name'])) + if 'source_db_schema' in local_var_params: + query_params.append(('source_db_schema', local_var_params['source_db_schema'])) + if 'source_db_table' in local_var_params: + query_params.append(('source_db_table', local_var_params['source_db_table'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + + form_params = {} + + body = 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_users_async(self, request): """获取Redis数据库账号列表和详情 @@ -2270,8 +2818,77 @@ def _list_influxdb_slow_logs_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] + 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_instance_databases_async(self, request): + """获取Redis实例数据库列表 + + 获取Redis实例数据库列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListInstanceDatabases + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.ListInstanceDatabasesRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ListInstanceDatabasesResponse` + """ + http_info = self._list_instance_databases_http_info(request) + return self._call_api(**http_info) + + def list_instance_databases_async_invoker(self, request): + http_info = self._list_instance_databases_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_instance_databases_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/redis/instances/{instance_id}/databases", + "request_type": request.__class__.__name__, + "response_type": "ListInstanceDatabasesResponse" + } + + 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 = {} + + form_params = {} + + body = None if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -2293,31 +2910,31 @@ def _list_influxdb_slow_logs_http_info(self, request): return http_info - def list_instance_databases_async(self, request): - """获取Redis实例数据库列表 + def list_instance_maintenance_window_async(self, request): + """list_instance_maintenance_window - 获取Redis实例数据库列表。 + 查询实例可维护时间段 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListInstanceDatabases - :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.ListInstanceDatabasesRequest` - :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ListInstanceDatabasesResponse` + :param request: Request instance for ListInstanceMaintenanceWindow + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.ListInstanceMaintenanceWindowRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ListInstanceMaintenanceWindowResponse` """ - http_info = self._list_instance_databases_http_info(request) + http_info = self._list_instance_maintenance_window_http_info(request) return self._call_api(**http_info) - def list_instance_databases_async_invoker(self, request): - http_info = self._list_instance_databases_http_info(request) + def list_instance_maintenance_window_async_invoker(self, request): + http_info = self._list_instance_maintenance_window_http_info(request) return AsyncInvoker(self, http_info) - def _list_instance_databases_http_info(self, request): + def _list_instance_maintenance_window_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v3/{project_id}/redis/instances/{instance_id}/databases", + "resource_path": "/v3/{project_id}/instances/{instance_id}/ops-window", "request_type": request.__class__.__name__, - "response_type": "ListInstanceDatabasesResponse" + "response_type": "ListInstanceMaintenanceWindowResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2331,10 +2948,6 @@ def _list_instance_databases_http_info(self, request): 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 = {} @@ -3058,6 +3671,83 @@ def _list_mongodb_slow_logs_http_info(self, request): return http_info + def list_nosql_task_list_async(self, request): + """查询定时任务列表 + + 根据指定条件查询定时任务列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListNosqlTaskList + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.ListNosqlTaskListRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ListNosqlTaskListResponse` + """ + http_info = self._list_nosql_task_list_http_info(request) + return self._call_api(**http_info) + + def list_nosql_task_list_async_invoker(self, request): + http_info = self._list_nosql_task_list_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_nosql_task_list_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/scheduled-jobs", + "request_type": request.__class__.__name__, + "response_type": "ListNosqlTaskListResponse" + } + + 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 'job_name' in local_var_params: + query_params.append(('job_name', local_var_params['job_name'])) + if 'job_status' in local_var_params: + query_params.append(('job_status', local_var_params['job_status'])) + if 'instance_id' in local_var_params: + query_params.append(('instance_id', local_var_params['instance_id'])) + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + + form_params = {} + + body = 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_project_tags_async(self, request): """查询项目标签 @@ -3683,6 +4373,73 @@ def _modify_eps_quotas_http_info(self, request): return http_info + def modify_instance_maintenance_window_async(self, request): + """查询实例可维护时间段 + + 设置指定实例可维护时间段。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ModifyInstanceMaintenanceWindow + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.ModifyInstanceMaintenanceWindowRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ModifyInstanceMaintenanceWindowResponse` + """ + http_info = self._modify_instance_maintenance_window_http_info(request) + return self._call_api(**http_info) + + def modify_instance_maintenance_window_async_invoker(self, request): + http_info = self._modify_instance_maintenance_window_http_info(request) + return AsyncInvoker(self, http_info) + + def _modify_instance_maintenance_window_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v3/{project_id}/instances/{instance_id}/maintenance-window", + "request_type": request.__class__.__name__, + "response_type": "ModifyInstanceMaintenanceWindowResponse" + } + + 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 modify_port_async(self, request): """修改数据库端口 @@ -4755,6 +5512,74 @@ def _set_backup_policy_http_info(self, request): return http_info + def set_instance_data_dump_async(self, request): + """开启/关闭实例数据导出 + + 开启/关闭实例数据导出。 + 当前支持将InfluxDB数据转为parquet格式文件然后上传到指定的OBS桶中。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for SetInstanceDataDump + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.SetInstanceDataDumpRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.SetInstanceDataDumpResponse` + """ + http_info = self._set_instance_data_dump_http_info(request) + return self._call_api(**http_info) + + def set_instance_data_dump_async_invoker(self, request): + http_info = self._set_instance_data_dump_http_info(request) + return AsyncInvoker(self, http_info) + + def _set_instance_data_dump_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v3/{project_id}/instances/{instance_id}/data-dump", + "request_type": request.__class__.__name__, + "response_type": "SetInstanceDataDumpResponse" + } + + 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 set_recycle_policy_async(self, request): """设置回收策略 @@ -5060,19 +5885,88 @@ def show_apply_history_async(self, request): :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.ShowApplyHistoryRequest` :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ShowApplyHistoryResponse` """ - http_info = self._show_apply_history_http_info(request) + http_info = self._show_apply_history_http_info(request) + return self._call_api(**http_info) + + def show_apply_history_async_invoker(self, request): + http_info = self._show_apply_history_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_apply_history_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/configurations/{config_id}/applied-histories", + "request_type": request.__class__.__name__, + "response_type": "ShowApplyHistoryResponse" + } + + 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 = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + + form_params = {} + + body = 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_auto_enlarge_policy_async(self, request): + """查询磁盘自动扩容策略 + + 查询磁盘自动扩容策略 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowAutoEnlargePolicy + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.ShowAutoEnlargePolicyRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ShowAutoEnlargePolicyResponse` + """ + http_info = self._show_auto_enlarge_policy_http_info(request) return self._call_api(**http_info) - def show_apply_history_async_invoker(self, request): - http_info = self._show_apply_history_http_info(request) + def show_auto_enlarge_policy_async_invoker(self, request): + http_info = self._show_auto_enlarge_policy_http_info(request) return AsyncInvoker(self, http_info) - def _show_apply_history_http_info(self, request): + def _show_auto_enlarge_policy_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v3/{project_id}/configurations/{config_id}/applied-histories", + "resource_path": "/v3/{project_id}/instances/{instance_id}/disk-auto-expansion", "request_type": request.__class__.__name__, - "response_type": "ShowApplyHistoryResponse" + "response_type": "ShowAutoEnlargePolicyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5082,14 +5976,10 @@ def _show_apply_history_http_info(self, request): collection_formats = {} path_params = {} - if 'config_id' in local_var_params: - path_params['config_id'] = local_var_params['config_id'] + 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 = {} @@ -5117,31 +6007,31 @@ def _show_apply_history_http_info(self, request): return http_info - def show_auto_enlarge_policy_async(self, request): - """查询磁盘自动扩容策略 + def show_backup_policies_async(self, request): + """查询自动备份策略 - 查询磁盘自动扩容策略 + 查询自动备份策略。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowAutoEnlargePolicy - :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.ShowAutoEnlargePolicyRequest` - :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ShowAutoEnlargePolicyResponse` + :param request: Request instance for ShowBackupPolicies + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.ShowBackupPoliciesRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ShowBackupPoliciesResponse` """ - http_info = self._show_auto_enlarge_policy_http_info(request) + http_info = self._show_backup_policies_http_info(request) return self._call_api(**http_info) - def show_auto_enlarge_policy_async_invoker(self, request): - http_info = self._show_auto_enlarge_policy_http_info(request) + def show_backup_policies_async_invoker(self, request): + http_info = self._show_backup_policies_http_info(request) return AsyncInvoker(self, http_info) - def _show_auto_enlarge_policy_http_info(self, request): + def _show_backup_policies_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v3/{project_id}/instances/{instance_id}/disk-auto-expansion", + "resource_path": "/v3.1/{project_id}/instances/{instance_id}/backups/policy", "request_type": request.__class__.__name__, - "response_type": "ShowAutoEnlargePolicyResponse" + "response_type": "ShowBackupPoliciesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6256,6 +7146,71 @@ def _show_restorable_list_http_info(self, request): return http_info + def show_second_level_monitoring_status_async(self, request): + """查询秒级监控配置 + + 查询秒级监控配置。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowSecondLevelMonitoringStatus + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.ShowSecondLevelMonitoringStatusRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ShowSecondLevelMonitoringStatusResponse` + """ + http_info = self._show_second_level_monitoring_status_http_info(request) + return self._call_api(**http_info) + + def show_second_level_monitoring_status_async_invoker(self, request): + http_info = self._show_second_level_monitoring_status_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_second_level_monitoring_status_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/instances/{instance_id}/monitoring-by-seconds/switch", + "request_type": request.__class__.__name__, + "response_type": "ShowSecondLevelMonitoringStatusResponse" + } + + 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_slow_log_desensitization_async(self, request): """查询慢日志脱敏状态 @@ -6455,6 +7410,73 @@ def _switch_ip_group_http_info(self, request): return http_info + def switch_second_level_monitoring_async(self, request): + """开启/关闭秒级监控 + + 开启或关闭指定实例的5秒级监控。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for SwitchSecondLevelMonitoring + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.SwitchSecondLevelMonitoringRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.SwitchSecondLevelMonitoringResponse` + """ + http_info = self._switch_second_level_monitoring_http_info(request) + return self._call_api(**http_info) + + def switch_second_level_monitoring_async_invoker(self, request): + http_info = self._switch_second_level_monitoring_http_info(request) + return AsyncInvoker(self, http_info) + + def _switch_second_level_monitoring_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v3/{project_id}/instances/{instance_id}/monitoring-by-seconds/switch", + "request_type": request.__class__.__name__, + "response_type": "SwitchSecondLevelMonitoringResponse" + } + + 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 switch_slowlog_desensitization_async(self, request): """设置慢日志脱敏状态 @@ -6922,6 +7944,71 @@ def _update_databases_http_info(self, request): return http_info + def update_db_cache_rule_async(self, request): + """修改内存加速规则 + + 修改指定内存加速规则。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateDbCacheRule + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.UpdateDbCacheRuleRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.UpdateDbCacheRuleResponse` + """ + http_info = self._update_db_cache_rule_http_info(request) + return self._call_api(**http_info) + + def update_db_cache_rule_async_invoker(self, request): + http_info = self._update_db_cache_rule_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_db_cache_rule_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v3/{project_id}/dbcache/rule", + "request_type": request.__class__.__name__, + "response_type": "UpdateDbCacheRuleResponse" + } + + 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 update_high_risk_commands_async(self, request): """修改高危命令 @@ -7056,6 +8143,73 @@ def _update_instance_configuration_http_info(self, request): return http_info + def update_instance_configurations_async(self, request): + """修改指定实例的参数 + + 修改指定实例的参数。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateInstanceConfigurations + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.UpdateInstanceConfigurationsRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.UpdateInstanceConfigurationsResponse` + """ + http_info = self._update_instance_configurations_http_info(request) + return self._call_api(**http_info) + + def update_instance_configurations_async_invoker(self, request): + http_info = self._update_instance_configurations_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_instance_configurations_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v3.1/{project_id}/instances/{instance_id}/configurations", + "request_type": request.__class__.__name__, + "response_type": "UpdateInstanceConfigurationsResponse" + } + + 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_instance_name_async(self, request): """修改实例名称 diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/gaussdbfornosql_client.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/gaussdbfornosql_client.py index d317ebb53a..277cab1927 100644 --- a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/gaussdbfornosql_client.py +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/gaussdbfornosql_client.py @@ -99,6 +99,73 @@ def _apply_configuration_http_info(cls, request): return http_info + def apply_configuration_to_instances(self, request): + """应用参数模板 + + 将参数模板应用到实例,可以指定一个或多个实例。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ApplyConfigurationToInstances + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.ApplyConfigurationToInstancesRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ApplyConfigurationToInstancesResponse` + """ + http_info = self._apply_configuration_to_instances_http_info(request) + return self._call_api(**http_info) + + def apply_configuration_to_instances_invoker(self, request): + http_info = self._apply_configuration_to_instances_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _apply_configuration_to_instances_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v3.1/{project_id}/configurations/{config_id}/apply", + "request_type": request.__class__.__name__, + "response_type": "ApplyConfigurationToInstancesResponse" + } + + 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 = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def batch_tag_action(self, request): """批量添加或删除资源标签 @@ -231,6 +298,71 @@ def _batch_upgrade_database_version_http_info(cls, request): return http_info + def cancel_instance_schedule_window(self, request): + """取消定时任务 + + 取消定时任务 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CancelInstanceScheduleWindow + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.CancelInstanceScheduleWindowRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.CancelInstanceScheduleWindowResponse` + """ + http_info = self._cancel_instance_schedule_window_http_info(request) + return self._call_api(**http_info) + + def cancel_instance_schedule_window_invoker(self, request): + http_info = self._cancel_instance_schedule_window_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _cancel_instance_schedule_window_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v3/{project_id}/scheduled-jobs/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "CancelInstanceScheduleWindowResponse" + } + + 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 check_disaster_recovery_operation(self, request): """校验实例是否可以与指定实例建立/解除容灾关系 @@ -695,6 +827,136 @@ def _create_configuration_http_info(cls, request): return http_info + def create_db_cache_mapping(self, request): + """创建内存加速映射 + + 创建内存加速映射。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateDbCacheMapping + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.CreateDbCacheMappingRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.CreateDbCacheMappingResponse` + """ + http_info = self._create_db_cache_mapping_http_info(request) + return self._call_api(**http_info) + + def create_db_cache_mapping_invoker(self, request): + http_info = self._create_db_cache_mapping_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_db_cache_mapping_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v3/{project_id}/dbcache/mapping", + "request_type": request.__class__.__name__, + "response_type": "CreateDbCacheMappingResponse" + } + + 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_db_cache_rule(self, request): + """创建内存加速规则 + + 创建内存加速规则。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateDbCacheRule + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.CreateDbCacheRuleRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.CreateDbCacheRuleResponse` + """ + http_info = self._create_db_cache_rule_http_info(request) + return self._call_api(**http_info) + + def create_db_cache_rule_invoker(self, request): + http_info = self._create_db_cache_rule_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_db_cache_rule_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v3/{project_id}/dbcache/rule", + "request_type": request.__class__.__name__, + "response_type": "CreateDbCacheRuleResponse" + } + + 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_db_user(self, request): """创建Redis数据库账号 @@ -1024,6 +1286,136 @@ def _delete_configuration_http_info(cls, request): return http_info + def delete_db_cache_mapping(self, request): + """解除内存加速映射 + + 解除指定内存加速映射。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteDbCacheMapping + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.DeleteDbCacheMappingRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.DeleteDbCacheMappingResponse` + """ + http_info = self._delete_db_cache_mapping_http_info(request) + return self._call_api(**http_info) + + def delete_db_cache_mapping_invoker(self, request): + http_info = self._delete_db_cache_mapping_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_db_cache_mapping_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v3/{project_id}/dbcache/mapping", + "request_type": request.__class__.__name__, + "response_type": "DeleteDbCacheMappingResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def delete_db_cache_rule(self, request): + """删除内存加速规则 + + 删除内存加速规则。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteDbCacheRule + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.DeleteDbCacheRuleRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.DeleteDbCacheRuleResponse` + """ + http_info = self._delete_db_cache_rule_http_info(request) + return self._call_api(**http_info) + + def delete_db_cache_rule_invoker(self, request): + http_info = self._delete_db_cache_rule_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_db_cache_rule_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v3/{project_id}/dbcache/rule", + "request_type": request.__class__.__name__, + "response_type": "DeleteDbCacheRuleResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def delete_db_user(self, request): """删除Redis数据库账号 @@ -1883,6 +2275,162 @@ def _list_datastores_http_info(cls, request): return http_info + def list_db_cache_mappings(self, request): + """查询内存加速映射列表和详情 + + 根据指定条件查询内存加速映射关系列表和详情。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListDbCacheMappings + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.ListDbCacheMappingsRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ListDbCacheMappingsResponse` + """ + http_info = self._list_db_cache_mappings_http_info(request) + return self._call_api(**http_info) + + def list_db_cache_mappings_invoker(self, request): + http_info = self._list_db_cache_mappings_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_db_cache_mappings_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/dbcache/mappings", + "request_type": request.__class__.__name__, + "response_type": "ListDbCacheMappingsResponse" + } + + 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 'source_instance_id' in local_var_params: + query_params.append(('source_instance_id', local_var_params['source_instance_id'])) + if 'source_instance_name' in local_var_params: + query_params.append(('source_instance_name', local_var_params['source_instance_name'])) + if 'target_instance_id' in local_var_params: + query_params.append(('target_instance_id', local_var_params['target_instance_id'])) + if 'target_instance_name' in local_var_params: + query_params.append(('target_instance_name', local_var_params['target_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 = {} + + 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_cache_rules(self, request): + """查询内存加速规则列表和详情 + + 查询内存加速规则列表和详情。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListDbCacheRules + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.ListDbCacheRulesRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ListDbCacheRulesResponse` + """ + http_info = self._list_db_cache_rules_http_info(request) + return self._call_api(**http_info) + + def list_db_cache_rules_invoker(self, request): + http_info = self._list_db_cache_rules_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_db_cache_rules_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/dbcache/rules", + "request_type": request.__class__.__name__, + "response_type": "ListDbCacheRulesResponse" + } + + 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 'dbcache_mapping_id' in local_var_params: + query_params.append(('dbcache_mapping_id', local_var_params['dbcache_mapping_id'])) + if 'rule_id' in local_var_params: + query_params.append(('rule_id', local_var_params['rule_id'])) + if 'rule_name' in local_var_params: + query_params.append(('rule_name', local_var_params['rule_name'])) + if 'source_db_schema' in local_var_params: + query_params.append(('source_db_schema', local_var_params['source_db_schema'])) + if 'source_db_table' in local_var_params: + query_params.append(('source_db_table', local_var_params['source_db_table'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + + form_params = {} + + body = 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_users(self, request): """获取Redis数据库账号列表和详情 @@ -2270,8 +2818,77 @@ def _list_influxdb_slow_logs_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] + 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_instance_databases(self, request): + """获取Redis实例数据库列表 + + 获取Redis实例数据库列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListInstanceDatabases + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.ListInstanceDatabasesRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ListInstanceDatabasesResponse` + """ + http_info = self._list_instance_databases_http_info(request) + return self._call_api(**http_info) + + def list_instance_databases_invoker(self, request): + http_info = self._list_instance_databases_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_instance_databases_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/redis/instances/{instance_id}/databases", + "request_type": request.__class__.__name__, + "response_type": "ListInstanceDatabasesResponse" + } + + 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 = {} + + form_params = {} + + body = None if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -2293,31 +2910,31 @@ def _list_influxdb_slow_logs_http_info(cls, request): return http_info - def list_instance_databases(self, request): - """获取Redis实例数据库列表 + def list_instance_maintenance_window(self, request): + """list_instance_maintenance_window - 获取Redis实例数据库列表。 + 查询实例可维护时间段 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListInstanceDatabases - :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.ListInstanceDatabasesRequest` - :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ListInstanceDatabasesResponse` + :param request: Request instance for ListInstanceMaintenanceWindow + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.ListInstanceMaintenanceWindowRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ListInstanceMaintenanceWindowResponse` """ - http_info = self._list_instance_databases_http_info(request) + http_info = self._list_instance_maintenance_window_http_info(request) return self._call_api(**http_info) - def list_instance_databases_invoker(self, request): - http_info = self._list_instance_databases_http_info(request) + def list_instance_maintenance_window_invoker(self, request): + http_info = self._list_instance_maintenance_window_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_instance_databases_http_info(cls, request): + def _list_instance_maintenance_window_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v3/{project_id}/redis/instances/{instance_id}/databases", + "resource_path": "/v3/{project_id}/instances/{instance_id}/ops-window", "request_type": request.__class__.__name__, - "response_type": "ListInstanceDatabasesResponse" + "response_type": "ListInstanceMaintenanceWindowResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2331,10 +2948,6 @@ def _list_instance_databases_http_info(cls, request): 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 = {} @@ -3058,6 +3671,83 @@ def _list_mongodb_slow_logs_http_info(cls, request): return http_info + def list_nosql_task_list(self, request): + """查询定时任务列表 + + 根据指定条件查询定时任务列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListNosqlTaskList + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.ListNosqlTaskListRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ListNosqlTaskListResponse` + """ + http_info = self._list_nosql_task_list_http_info(request) + return self._call_api(**http_info) + + def list_nosql_task_list_invoker(self, request): + http_info = self._list_nosql_task_list_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_nosql_task_list_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/scheduled-jobs", + "request_type": request.__class__.__name__, + "response_type": "ListNosqlTaskListResponse" + } + + 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 'job_name' in local_var_params: + query_params.append(('job_name', local_var_params['job_name'])) + if 'job_status' in local_var_params: + query_params.append(('job_status', local_var_params['job_status'])) + if 'instance_id' in local_var_params: + query_params.append(('instance_id', local_var_params['instance_id'])) + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + + form_params = {} + + body = 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_project_tags(self, request): """查询项目标签 @@ -3683,6 +4373,73 @@ def _modify_eps_quotas_http_info(cls, request): return http_info + def modify_instance_maintenance_window(self, request): + """查询实例可维护时间段 + + 设置指定实例可维护时间段。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ModifyInstanceMaintenanceWindow + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.ModifyInstanceMaintenanceWindowRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ModifyInstanceMaintenanceWindowResponse` + """ + http_info = self._modify_instance_maintenance_window_http_info(request) + return self._call_api(**http_info) + + def modify_instance_maintenance_window_invoker(self, request): + http_info = self._modify_instance_maintenance_window_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _modify_instance_maintenance_window_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v3/{project_id}/instances/{instance_id}/maintenance-window", + "request_type": request.__class__.__name__, + "response_type": "ModifyInstanceMaintenanceWindowResponse" + } + + 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 modify_port(self, request): """修改数据库端口 @@ -4755,6 +5512,74 @@ def _set_backup_policy_http_info(cls, request): return http_info + def set_instance_data_dump(self, request): + """开启/关闭实例数据导出 + + 开启/关闭实例数据导出。 + 当前支持将InfluxDB数据转为parquet格式文件然后上传到指定的OBS桶中。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for SetInstanceDataDump + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.SetInstanceDataDumpRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.SetInstanceDataDumpResponse` + """ + http_info = self._set_instance_data_dump_http_info(request) + return self._call_api(**http_info) + + def set_instance_data_dump_invoker(self, request): + http_info = self._set_instance_data_dump_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _set_instance_data_dump_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v3/{project_id}/instances/{instance_id}/data-dump", + "request_type": request.__class__.__name__, + "response_type": "SetInstanceDataDumpResponse" + } + + 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 set_recycle_policy(self, request): """设置回收策略 @@ -5059,20 +5884,89 @@ def show_apply_history(self, request): :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.ShowApplyHistoryRequest` :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ShowApplyHistoryResponse` """ - http_info = self._show_apply_history_http_info(request) + http_info = self._show_apply_history_http_info(request) + return self._call_api(**http_info) + + def show_apply_history_invoker(self, request): + http_info = self._show_apply_history_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_apply_history_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/configurations/{config_id}/applied-histories", + "request_type": request.__class__.__name__, + "response_type": "ShowApplyHistoryResponse" + } + + 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 = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + + form_params = {} + + body = 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_auto_enlarge_policy(self, request): + """查询磁盘自动扩容策略 + + 查询磁盘自动扩容策略 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowAutoEnlargePolicy + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.ShowAutoEnlargePolicyRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ShowAutoEnlargePolicyResponse` + """ + http_info = self._show_auto_enlarge_policy_http_info(request) return self._call_api(**http_info) - def show_apply_history_invoker(self, request): - http_info = self._show_apply_history_http_info(request) + def show_auto_enlarge_policy_invoker(self, request): + http_info = self._show_auto_enlarge_policy_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_apply_history_http_info(cls, request): + def _show_auto_enlarge_policy_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v3/{project_id}/configurations/{config_id}/applied-histories", + "resource_path": "/v3/{project_id}/instances/{instance_id}/disk-auto-expansion", "request_type": request.__class__.__name__, - "response_type": "ShowApplyHistoryResponse" + "response_type": "ShowAutoEnlargePolicyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5082,14 +5976,10 @@ def _show_apply_history_http_info(cls, request): collection_formats = {} path_params = {} - if 'config_id' in local_var_params: - path_params['config_id'] = local_var_params['config_id'] + 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 = {} @@ -5117,31 +6007,31 @@ def _show_apply_history_http_info(cls, request): return http_info - def show_auto_enlarge_policy(self, request): - """查询磁盘自动扩容策略 + def show_backup_policies(self, request): + """查询自动备份策略 - 查询磁盘自动扩容策略 + 查询自动备份策略。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowAutoEnlargePolicy - :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.ShowAutoEnlargePolicyRequest` - :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ShowAutoEnlargePolicyResponse` + :param request: Request instance for ShowBackupPolicies + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.ShowBackupPoliciesRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ShowBackupPoliciesResponse` """ - http_info = self._show_auto_enlarge_policy_http_info(request) + http_info = self._show_backup_policies_http_info(request) return self._call_api(**http_info) - def show_auto_enlarge_policy_invoker(self, request): - http_info = self._show_auto_enlarge_policy_http_info(request) + def show_backup_policies_invoker(self, request): + http_info = self._show_backup_policies_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_auto_enlarge_policy_http_info(cls, request): + def _show_backup_policies_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v3/{project_id}/instances/{instance_id}/disk-auto-expansion", + "resource_path": "/v3.1/{project_id}/instances/{instance_id}/backups/policy", "request_type": request.__class__.__name__, - "response_type": "ShowAutoEnlargePolicyResponse" + "response_type": "ShowBackupPoliciesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6256,6 +7146,71 @@ def _show_restorable_list_http_info(cls, request): return http_info + def show_second_level_monitoring_status(self, request): + """查询秒级监控配置 + + 查询秒级监控配置。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowSecondLevelMonitoringStatus + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.ShowSecondLevelMonitoringStatusRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ShowSecondLevelMonitoringStatusResponse` + """ + http_info = self._show_second_level_monitoring_status_http_info(request) + return self._call_api(**http_info) + + def show_second_level_monitoring_status_invoker(self, request): + http_info = self._show_second_level_monitoring_status_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_second_level_monitoring_status_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/instances/{instance_id}/monitoring-by-seconds/switch", + "request_type": request.__class__.__name__, + "response_type": "ShowSecondLevelMonitoringStatusResponse" + } + + 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_slow_log_desensitization(self, request): """查询慢日志脱敏状态 @@ -6455,6 +7410,73 @@ def _switch_ip_group_http_info(cls, request): return http_info + def switch_second_level_monitoring(self, request): + """开启/关闭秒级监控 + + 开启或关闭指定实例的5秒级监控。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for SwitchSecondLevelMonitoring + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.SwitchSecondLevelMonitoringRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.SwitchSecondLevelMonitoringResponse` + """ + http_info = self._switch_second_level_monitoring_http_info(request) + return self._call_api(**http_info) + + def switch_second_level_monitoring_invoker(self, request): + http_info = self._switch_second_level_monitoring_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _switch_second_level_monitoring_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v3/{project_id}/instances/{instance_id}/monitoring-by-seconds/switch", + "request_type": request.__class__.__name__, + "response_type": "SwitchSecondLevelMonitoringResponse" + } + + 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 switch_slowlog_desensitization(self, request): """设置慢日志脱敏状态 @@ -6922,6 +7944,71 @@ def _update_databases_http_info(cls, request): return http_info + def update_db_cache_rule(self, request): + """修改内存加速规则 + + 修改指定内存加速规则。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateDbCacheRule + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.UpdateDbCacheRuleRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.UpdateDbCacheRuleResponse` + """ + http_info = self._update_db_cache_rule_http_info(request) + return self._call_api(**http_info) + + def update_db_cache_rule_invoker(self, request): + http_info = self._update_db_cache_rule_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_db_cache_rule_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v3/{project_id}/dbcache/rule", + "request_type": request.__class__.__name__, + "response_type": "UpdateDbCacheRuleResponse" + } + + 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 update_high_risk_commands(self, request): """修改高危命令 @@ -7056,6 +8143,73 @@ def _update_instance_configuration_http_info(cls, request): return http_info + def update_instance_configurations(self, request): + """修改指定实例的参数 + + 修改指定实例的参数。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateInstanceConfigurations + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.UpdateInstanceConfigurationsRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.UpdateInstanceConfigurationsResponse` + """ + http_info = self._update_instance_configurations_http_info(request) + return self._call_api(**http_info) + + def update_instance_configurations_invoker(self, request): + http_info = self._update_instance_configurations_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_instance_configurations_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v3.1/{project_id}/instances/{instance_id}/configurations", + "request_type": request.__class__.__name__, + "response_type": "UpdateInstanceConfigurationsResponse" + } + + 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_instance_name(self, request): """修改实例名称 diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/__init__.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/__init__.py index 50d37d22bc..58042c8f71 100644 --- a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/__init__.py +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/__init__.py @@ -9,6 +9,9 @@ from huaweicloudsdkgaussdbfornosql.v3.model.apply_configuration_request import ApplyConfigurationRequest from huaweicloudsdkgaussdbfornosql.v3.model.apply_configuration_request_body import ApplyConfigurationRequestBody from huaweicloudsdkgaussdbfornosql.v3.model.apply_configuration_response import ApplyConfigurationResponse +from huaweicloudsdkgaussdbfornosql.v3.model.apply_configuration_to_instances_request import ApplyConfigurationToInstancesRequest +from huaweicloudsdkgaussdbfornosql.v3.model.apply_configuration_to_instances_request_body import ApplyConfigurationToInstancesRequestBody +from huaweicloudsdkgaussdbfornosql.v3.model.apply_configuration_to_instances_response import ApplyConfigurationToInstancesResponse from huaweicloudsdkgaussdbfornosql.v3.model.apply_history_rsp import ApplyHistoryRsp from huaweicloudsdkgaussdbfornosql.v3.model.availability_zone_detail import AvailabilityZoneDetail from huaweicloudsdkgaussdbfornosql.v3.model.backup import Backup @@ -23,6 +26,8 @@ from huaweicloudsdkgaussdbfornosql.v3.model.batch_upgrade_database_version_request_body import BatchUpgradeDatabaseVersionRequestBody from huaweicloudsdkgaussdbfornosql.v3.model.batch_upgrade_database_version_response import BatchUpgradeDatabaseVersionResponse from huaweicloudsdkgaussdbfornosql.v3.model.big_keys_info_response_body import BigKeysInfoResponseBody +from huaweicloudsdkgaussdbfornosql.v3.model.cancel_instance_schedule_window_request import CancelInstanceScheduleWindowRequest +from huaweicloudsdkgaussdbfornosql.v3.model.cancel_instance_schedule_window_response import CancelInstanceScheduleWindowResponse from huaweicloudsdkgaussdbfornosql.v3.model.cassandra_slow_log_detail import CassandraSlowLogDetail from huaweicloudsdkgaussdbfornosql.v3.model.charge_info_option import ChargeInfoOption from huaweicloudsdkgaussdbfornosql.v3.model.charge_info_result import ChargeInfoResult @@ -53,6 +58,12 @@ from huaweicloudsdkgaussdbfornosql.v3.model.create_configuration_request_body import CreateConfigurationRequestBody from huaweicloudsdkgaussdbfornosql.v3.model.create_configuration_response import CreateConfigurationResponse from huaweicloudsdkgaussdbfornosql.v3.model.create_configuration_result import CreateConfigurationResult +from huaweicloudsdkgaussdbfornosql.v3.model.create_db_cache_mapping_request import CreateDbCacheMappingRequest +from huaweicloudsdkgaussdbfornosql.v3.model.create_db_cache_mapping_request_body import CreateDbCacheMappingRequestBody +from huaweicloudsdkgaussdbfornosql.v3.model.create_db_cache_mapping_response import CreateDbCacheMappingResponse +from huaweicloudsdkgaussdbfornosql.v3.model.create_db_cache_rule_request import CreateDbCacheRuleRequest +from huaweicloudsdkgaussdbfornosql.v3.model.create_db_cache_rule_request_body import CreateDbCacheRuleRequestBody +from huaweicloudsdkgaussdbfornosql.v3.model.create_db_cache_rule_response import CreateDbCacheRuleResponse from huaweicloudsdkgaussdbfornosql.v3.model.create_db_user_request import CreateDbUserRequest from huaweicloudsdkgaussdbfornosql.v3.model.create_db_user_response import CreateDbUserResponse from huaweicloudsdkgaussdbfornosql.v3.model.create_disaster_recovery_request import CreateDisasterRecoveryRequest @@ -71,6 +82,12 @@ from huaweicloudsdkgaussdbfornosql.v3.model.delete_backup_response import DeleteBackupResponse from huaweicloudsdkgaussdbfornosql.v3.model.delete_configuration_request import DeleteConfigurationRequest from huaweicloudsdkgaussdbfornosql.v3.model.delete_configuration_response import DeleteConfigurationResponse +from huaweicloudsdkgaussdbfornosql.v3.model.delete_db_cache_mapping_request import DeleteDbCacheMappingRequest +from huaweicloudsdkgaussdbfornosql.v3.model.delete_db_cache_mapping_request_body import DeleteDbCacheMappingRequestBody +from huaweicloudsdkgaussdbfornosql.v3.model.delete_db_cache_mapping_response import DeleteDbCacheMappingResponse +from huaweicloudsdkgaussdbfornosql.v3.model.delete_db_cache_rule_request import DeleteDbCacheRuleRequest +from huaweicloudsdkgaussdbfornosql.v3.model.delete_db_cache_rule_request_body import DeleteDbCacheRuleRequestBody +from huaweicloudsdkgaussdbfornosql.v3.model.delete_db_cache_rule_response import DeleteDbCacheRuleResponse from huaweicloudsdkgaussdbfornosql.v3.model.delete_db_user_request import DeleteDbUserRequest from huaweicloudsdkgaussdbfornosql.v3.model.delete_db_user_response import DeleteDbUserResponse from huaweicloudsdkgaussdbfornosql.v3.model.delete_disaster_recovery_request import DeleteDisasterRecoveryRequest @@ -118,6 +135,10 @@ from huaweicloudsdkgaussdbfornosql.v3.model.list_configurations_result import ListConfigurationsResult from huaweicloudsdkgaussdbfornosql.v3.model.list_datastores_request import ListDatastoresRequest from huaweicloudsdkgaussdbfornosql.v3.model.list_datastores_response import ListDatastoresResponse +from huaweicloudsdkgaussdbfornosql.v3.model.list_db_cache_mappings_request import ListDbCacheMappingsRequest +from huaweicloudsdkgaussdbfornosql.v3.model.list_db_cache_mappings_response import ListDbCacheMappingsResponse +from huaweicloudsdkgaussdbfornosql.v3.model.list_db_cache_rules_request import ListDbCacheRulesRequest +from huaweicloudsdkgaussdbfornosql.v3.model.list_db_cache_rules_response import ListDbCacheRulesResponse from huaweicloudsdkgaussdbfornosql.v3.model.list_db_users_request import ListDbUsersRequest from huaweicloudsdkgaussdbfornosql.v3.model.list_db_users_response import ListDbUsersResponse from huaweicloudsdkgaussdbfornosql.v3.model.list_dedicated_resource_result import ListDedicatedResourceResult @@ -135,6 +156,8 @@ from huaweicloudsdkgaussdbfornosql.v3.model.list_influxdb_slow_logs_response import ListInfluxdbSlowLogsResponse from huaweicloudsdkgaussdbfornosql.v3.model.list_instance_databases_request import ListInstanceDatabasesRequest from huaweicloudsdkgaussdbfornosql.v3.model.list_instance_databases_response import ListInstanceDatabasesResponse +from huaweicloudsdkgaussdbfornosql.v3.model.list_instance_maintenance_window_request import ListInstanceMaintenanceWindowRequest +from huaweicloudsdkgaussdbfornosql.v3.model.list_instance_maintenance_window_response import ListInstanceMaintenanceWindowResponse from huaweicloudsdkgaussdbfornosql.v3.model.list_instance_tags_request import ListInstanceTagsRequest from huaweicloudsdkgaussdbfornosql.v3.model.list_instance_tags_response import ListInstanceTagsResponse from huaweicloudsdkgaussdbfornosql.v3.model.list_instance_tags_result import ListInstanceTagsResult @@ -166,6 +189,8 @@ from huaweicloudsdkgaussdbfornosql.v3.model.list_mongodb_slow_logs_request import ListMongodbSlowLogsRequest from huaweicloudsdkgaussdbfornosql.v3.model.list_mongodb_slow_logs_request_body import ListMongodbSlowLogsRequestBody from huaweicloudsdkgaussdbfornosql.v3.model.list_mongodb_slow_logs_response import ListMongodbSlowLogsResponse +from huaweicloudsdkgaussdbfornosql.v3.model.list_nosql_task_list_request import ListNosqlTaskListRequest +from huaweicloudsdkgaussdbfornosql.v3.model.list_nosql_task_list_response import ListNosqlTaskListResponse from huaweicloudsdkgaussdbfornosql.v3.model.list_project_tags_request import ListProjectTagsRequest from huaweicloudsdkgaussdbfornosql.v3.model.list_project_tags_response import ListProjectTagsResponse from huaweicloudsdkgaussdbfornosql.v3.model.list_recycle_instances_request import ListRecycleInstancesRequest @@ -187,6 +212,9 @@ from huaweicloudsdkgaussdbfornosql.v3.model.modify_db_user_privilege_response import ModifyDbUserPrivilegeResponse from huaweicloudsdkgaussdbfornosql.v3.model.modify_eps_quotas_request import ModifyEpsQuotasRequest from huaweicloudsdkgaussdbfornosql.v3.model.modify_eps_quotas_response import ModifyEpsQuotasResponse +from huaweicloudsdkgaussdbfornosql.v3.model.modify_instance_maintenance_window_request import ModifyInstanceMaintenanceWindowRequest +from huaweicloudsdkgaussdbfornosql.v3.model.modify_instance_maintenance_window_response import ModifyInstanceMaintenanceWindowResponse +from huaweicloudsdkgaussdbfornosql.v3.model.modify_instance_ops_window_v3_req import ModifyInstanceOpsWindowV3Req from huaweicloudsdkgaussdbfornosql.v3.model.modify_port_request import ModifyPortRequest from huaweicloudsdkgaussdbfornosql.v3.model.modify_port_request_body import ModifyPortRequestBody from huaweicloudsdkgaussdbfornosql.v3.model.modify_port_response import ModifyPortResponse @@ -215,6 +243,8 @@ from huaweicloudsdkgaussdbfornosql.v3.model.pause_resume_data_synchronization_response import PauseResumeDataSynchronizationResponse from huaweicloudsdkgaussdbfornosql.v3.model.precheck_disaster_recovery_instance import PrecheckDisasterRecoveryInstance from huaweicloudsdkgaussdbfornosql.v3.model.precheck_disaster_recovery_operation_body import PrecheckDisasterRecoveryOperationBody +from huaweicloudsdkgaussdbfornosql.v3.model.query_db_cache_mapping_response import QueryDBCacheMappingResponse +from huaweicloudsdkgaussdbfornosql.v3.model.query_db_cache_rule_response import QueryDBCacheRuleResponse from huaweicloudsdkgaussdbfornosql.v3.model.query_database_table_info import QueryDatabaseTableInfo from huaweicloudsdkgaussdbfornosql.v3.model.query_instance_backup_response_body_backups import QueryInstanceBackupResponseBodyBackups from huaweicloudsdkgaussdbfornosql.v3.model.query_instance_backup_response_body_datastore import QueryInstanceBackupResponseBodyDatastore @@ -259,12 +289,16 @@ from huaweicloudsdkgaussdbfornosql.v3.model.save_lts_configs_request import SaveLtsConfigsRequest from huaweicloudsdkgaussdbfornosql.v3.model.save_lts_configs_request_body import SaveLtsConfigsRequestBody from huaweicloudsdkgaussdbfornosql.v3.model.save_lts_configs_response import SaveLtsConfigsResponse +from huaweicloudsdkgaussdbfornosql.v3.model.schedule_detail_info import ScheduleDetailInfo from huaweicloudsdkgaussdbfornosql.v3.model.set_auto_enlarge_policy_request import SetAutoEnlargePolicyRequest from huaweicloudsdkgaussdbfornosql.v3.model.set_auto_enlarge_policy_response import SetAutoEnlargePolicyResponse from huaweicloudsdkgaussdbfornosql.v3.model.set_auto_policy_request_body import SetAutoPolicyRequestBody from huaweicloudsdkgaussdbfornosql.v3.model.set_backup_policy_request import SetBackupPolicyRequest from huaweicloudsdkgaussdbfornosql.v3.model.set_backup_policy_request_body import SetBackupPolicyRequestBody from huaweicloudsdkgaussdbfornosql.v3.model.set_backup_policy_response import SetBackupPolicyResponse +from huaweicloudsdkgaussdbfornosql.v3.model.set_instance_data_dump_request import SetInstanceDataDumpRequest +from huaweicloudsdkgaussdbfornosql.v3.model.set_instance_data_dump_request_body import SetInstanceDataDumpRequestBody +from huaweicloudsdkgaussdbfornosql.v3.model.set_instance_data_dump_response import SetInstanceDataDumpResponse from huaweicloudsdkgaussdbfornosql.v3.model.set_recycle_policy_request import SetRecyclePolicyRequest from huaweicloudsdkgaussdbfornosql.v3.model.set_recycle_policy_response import SetRecyclePolicyResponse from huaweicloudsdkgaussdbfornosql.v3.model.show_all_instances_backups_new_request import ShowAllInstancesBackupsNewRequest @@ -279,6 +313,8 @@ from huaweicloudsdkgaussdbfornosql.v3.model.show_apply_history_response import ShowApplyHistoryResponse from huaweicloudsdkgaussdbfornosql.v3.model.show_auto_enlarge_policy_request import ShowAutoEnlargePolicyRequest from huaweicloudsdkgaussdbfornosql.v3.model.show_auto_enlarge_policy_response import ShowAutoEnlargePolicyResponse +from huaweicloudsdkgaussdbfornosql.v3.model.show_backup_policies_request import ShowBackupPoliciesRequest +from huaweicloudsdkgaussdbfornosql.v3.model.show_backup_policies_response import ShowBackupPoliciesResponse from huaweicloudsdkgaussdbfornosql.v3.model.show_backup_policy_request import ShowBackupPolicyRequest from huaweicloudsdkgaussdbfornosql.v3.model.show_backup_policy_response import ShowBackupPolicyResponse from huaweicloudsdkgaussdbfornosql.v3.model.show_backup_policy_result import ShowBackupPolicyResult @@ -315,6 +351,8 @@ from huaweicloudsdkgaussdbfornosql.v3.model.show_resources_list_response_body import ShowResourcesListResponseBody from huaweicloudsdkgaussdbfornosql.v3.model.show_restorable_list_request import ShowRestorableListRequest from huaweicloudsdkgaussdbfornosql.v3.model.show_restorable_list_response import ShowRestorableListResponse +from huaweicloudsdkgaussdbfornosql.v3.model.show_second_level_monitoring_status_request import ShowSecondLevelMonitoringStatusRequest +from huaweicloudsdkgaussdbfornosql.v3.model.show_second_level_monitoring_status_response import ShowSecondLevelMonitoringStatusResponse from huaweicloudsdkgaussdbfornosql.v3.model.show_slow_log_desensitization_request import ShowSlowLogDesensitizationRequest from huaweicloudsdkgaussdbfornosql.v3.model.show_slow_log_desensitization_response import ShowSlowLogDesensitizationResponse from huaweicloudsdkgaussdbfornosql.v3.model.shrink_instance_node_request import ShrinkInstanceNodeRequest @@ -325,6 +363,9 @@ from huaweicloudsdkgaussdbfornosql.v3.model.switch_ip_group_request_body import SwitchIpGroupRequestBody from huaweicloudsdkgaussdbfornosql.v3.model.switch_ip_group_request_body_ip_groups import SwitchIpGroupRequestBodyIpGroups from huaweicloudsdkgaussdbfornosql.v3.model.switch_ip_group_response import SwitchIpGroupResponse +from huaweicloudsdkgaussdbfornosql.v3.model.switch_second_level_monitoring_request import SwitchSecondLevelMonitoringRequest +from huaweicloudsdkgaussdbfornosql.v3.model.switch_second_level_monitoring_request_body import SwitchSecondLevelMonitoringRequestBody +from huaweicloudsdkgaussdbfornosql.v3.model.switch_second_level_monitoring_response import SwitchSecondLevelMonitoringResponse from huaweicloudsdkgaussdbfornosql.v3.model.switch_slowlog_desensitization_request import SwitchSlowlogDesensitizationRequest from huaweicloudsdkgaussdbfornosql.v3.model.switch_slowlog_desensitization_request_body import SwitchSlowlogDesensitizationRequestBody from huaweicloudsdkgaussdbfornosql.v3.model.switch_slowlog_desensitization_response import SwitchSlowlogDesensitizationResponse @@ -347,11 +388,17 @@ from huaweicloudsdkgaussdbfornosql.v3.model.update_databases_request import UpdateDatabasesRequest from huaweicloudsdkgaussdbfornosql.v3.model.update_databases_request_body import UpdateDatabasesRequestBody from huaweicloudsdkgaussdbfornosql.v3.model.update_databases_response import UpdateDatabasesResponse +from huaweicloudsdkgaussdbfornosql.v3.model.update_db_cache_rule_request import UpdateDbCacheRuleRequest +from huaweicloudsdkgaussdbfornosql.v3.model.update_db_cache_rule_request_body import UpdateDbCacheRuleRequestBody +from huaweicloudsdkgaussdbfornosql.v3.model.update_db_cache_rule_response import UpdateDbCacheRuleResponse from huaweicloudsdkgaussdbfornosql.v3.model.update_high_risk_commands_request import UpdateHighRiskCommandsRequest from huaweicloudsdkgaussdbfornosql.v3.model.update_high_risk_commands_response import UpdateHighRiskCommandsResponse from huaweicloudsdkgaussdbfornosql.v3.model.update_instance_configuration_request import UpdateInstanceConfigurationRequest from huaweicloudsdkgaussdbfornosql.v3.model.update_instance_configuration_request_body import UpdateInstanceConfigurationRequestBody from huaweicloudsdkgaussdbfornosql.v3.model.update_instance_configuration_response import UpdateInstanceConfigurationResponse +from huaweicloudsdkgaussdbfornosql.v3.model.update_instance_configurations_request import UpdateInstanceConfigurationsRequest +from huaweicloudsdkgaussdbfornosql.v3.model.update_instance_configurations_request_body import UpdateInstanceConfigurationsRequestBody +from huaweicloudsdkgaussdbfornosql.v3.model.update_instance_configurations_response import UpdateInstanceConfigurationsResponse from huaweicloudsdkgaussdbfornosql.v3.model.update_instance_name_request import UpdateInstanceNameRequest from huaweicloudsdkgaussdbfornosql.v3.model.update_instance_name_request_body import UpdateInstanceNameRequestBody from huaweicloudsdkgaussdbfornosql.v3.model.update_instance_name_response import UpdateInstanceNameResponse diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/apply_configuration_to_instances_request.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/apply_configuration_to_instances_request.py new file mode 100644 index 0000000000..ebe7003557 --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/apply_configuration_to_instances_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ApplyConfigurationToInstancesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'config_id': 'str', + 'body': 'ApplyConfigurationToInstancesRequestBody' + } + + attribute_map = { + 'config_id': 'config_id', + 'body': 'body' + } + + def __init__(self, config_id=None, body=None): + """ApplyConfigurationToInstancesRequest + + The model defined in huaweicloud sdk + + :param config_id: 参数模板ID。 + :type config_id: str + :param body: Body of the ApplyConfigurationToInstancesRequest + :type body: :class:`huaweicloudsdkgaussdbfornosql.v3.ApplyConfigurationToInstancesRequestBody` + """ + + + + self._config_id = None + self._body = None + self.discriminator = None + + self.config_id = config_id + if body is not None: + self.body = body + + @property + def config_id(self): + """Gets the config_id of this ApplyConfigurationToInstancesRequest. + + 参数模板ID。 + + :return: The config_id of this ApplyConfigurationToInstancesRequest. + :rtype: str + """ + return self._config_id + + @config_id.setter + def config_id(self, config_id): + """Sets the config_id of this ApplyConfigurationToInstancesRequest. + + 参数模板ID。 + + :param config_id: The config_id of this ApplyConfigurationToInstancesRequest. + :type config_id: str + """ + self._config_id = config_id + + @property + def body(self): + """Gets the body of this ApplyConfigurationToInstancesRequest. + + :return: The body of this ApplyConfigurationToInstancesRequest. + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ApplyConfigurationToInstancesRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ApplyConfigurationToInstancesRequest. + + :param body: The body of this ApplyConfigurationToInstancesRequest. + :type body: :class:`huaweicloudsdkgaussdbfornosql.v3.ApplyConfigurationToInstancesRequestBody` + """ + 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, ApplyConfigurationToInstancesRequest): + return False + + return self.__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-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/apply_configuration_to_instances_request_body.py similarity index 68% rename from huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/unsubscribe_volume_request_body.py rename to huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/apply_configuration_to_instances_request_body.py index 7f8c034acd..d96d91eb58 100644 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/unsubscribe_volume_request_body.py +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/apply_configuration_to_instances_request_body.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class UnsubscribeVolumeRequestBody: +class ApplyConfigurationToInstancesRequestBody: """ Attributes: @@ -17,50 +17,50 @@ class UnsubscribeVolumeRequestBody: sensitive_list = [] openapi_types = { - 'volume_ids': 'list[str]' + 'instance_ids': 'list[str]' } attribute_map = { - 'volume_ids': 'volume_ids' + 'instance_ids': 'instance_ids' } - def __init__(self, volume_ids=None): - """UnsubscribeVolumeRequestBody + def __init__(self, instance_ids=None): + """ApplyConfigurationToInstancesRequestBody The model defined in huaweicloud sdk - :param volume_ids: 退订包周期云硬盘的结果。 - :type volume_ids: list[str] + :param instance_ids: 实例ID列表对象。 + :type instance_ids: list[str] """ - self._volume_ids = None + self._instance_ids = None self.discriminator = None - self.volume_ids = volume_ids + self.instance_ids = instance_ids @property - def volume_ids(self): - """Gets the volume_ids of this UnsubscribeVolumeRequestBody. + def instance_ids(self): + """Gets the instance_ids of this ApplyConfigurationToInstancesRequestBody. - 退订包周期云硬盘的结果。 + 实例ID列表对象。 - :return: The volume_ids of this UnsubscribeVolumeRequestBody. + :return: The instance_ids of this ApplyConfigurationToInstancesRequestBody. :rtype: list[str] """ - return self._volume_ids + return self._instance_ids - @volume_ids.setter - def volume_ids(self, volume_ids): - """Sets the volume_ids of this UnsubscribeVolumeRequestBody. + @instance_ids.setter + def instance_ids(self, instance_ids): + """Sets the instance_ids of this ApplyConfigurationToInstancesRequestBody. - 退订包周期云硬盘的结果。 + 实例ID列表对象。 - :param volume_ids: The volume_ids of this UnsubscribeVolumeRequestBody. - :type volume_ids: list[str] + :param instance_ids: The instance_ids of this ApplyConfigurationToInstancesRequestBody. + :type instance_ids: list[str] """ - self._volume_ids = volume_ids + self._instance_ids = instance_ids def to_dict(self): """Returns the model properties as a dict""" @@ -104,7 +104,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, UnsubscribeVolumeRequestBody): + if not isinstance(other, ApplyConfigurationToInstancesRequestBody): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/apply_configuration_to_instances_response.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/apply_configuration_to_instances_response.py new file mode 100644 index 0000000000..e5d458a42d --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/apply_configuration_to_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 ApplyConfigurationToInstancesResponse(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', + 'success': 'bool' + } + + attribute_map = { + 'job_id': 'job_id', + 'success': 'success' + } + + def __init__(self, job_id=None, success=None): + """ApplyConfigurationToInstancesResponse + + The model defined in huaweicloud sdk + + :param job_id: 应用参数模板的异步任务ID。 + :type job_id: str + :param success: 应用参数模板任务是否提交成功。 - 取值为“true”,表示任务提交成功。 - 取值为“false”,表示任务提交失败。 + :type success: bool + """ + + super(ApplyConfigurationToInstancesResponse, self).__init__() + + self._job_id = None + self._success = None + self.discriminator = None + + if job_id is not None: + self.job_id = job_id + if success is not None: + self.success = success + + @property + def job_id(self): + """Gets the job_id of this ApplyConfigurationToInstancesResponse. + + 应用参数模板的异步任务ID。 + + :return: The job_id of this ApplyConfigurationToInstancesResponse. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this ApplyConfigurationToInstancesResponse. + + 应用参数模板的异步任务ID。 + + :param job_id: The job_id of this ApplyConfigurationToInstancesResponse. + :type job_id: str + """ + self._job_id = job_id + + @property + def success(self): + """Gets the success of this ApplyConfigurationToInstancesResponse. + + 应用参数模板任务是否提交成功。 - 取值为“true”,表示任务提交成功。 - 取值为“false”,表示任务提交失败。 + + :return: The success of this ApplyConfigurationToInstancesResponse. + :rtype: bool + """ + return self._success + + @success.setter + def success(self, success): + """Sets the success of this ApplyConfigurationToInstancesResponse. + + 应用参数模板任务是否提交成功。 - 取值为“true”,表示任务提交成功。 - 取值为“false”,表示任务提交失败。 + + :param success: The success of this ApplyConfigurationToInstancesResponse. + :type success: bool + """ + self._success = success + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApplyConfigurationToInstancesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/cancel_instance_schedule_window_request.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/cancel_instance_schedule_window_request.py new file mode 100644 index 0000000000..77955145d1 --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/cancel_instance_schedule_window_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CancelInstanceScheduleWindowRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """CancelInstanceScheduleWindowRequest + + The model defined in huaweicloud sdk + + :param job_id: 任务ID,取值为定时任务列表返回job_id字段。 + :type job_id: str + """ + + + + self._job_id = None + self.discriminator = None + + self.job_id = job_id + + @property + def job_id(self): + """Gets the job_id of this CancelInstanceScheduleWindowRequest. + + 任务ID,取值为定时任务列表返回job_id字段。 + + :return: The job_id of this CancelInstanceScheduleWindowRequest. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this CancelInstanceScheduleWindowRequest. + + 任务ID,取值为定时任务列表返回job_id字段。 + + :param job_id: The job_id of this CancelInstanceScheduleWindowRequest. + :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, CancelInstanceScheduleWindowRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/cancel_instance_schedule_window_response.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/cancel_instance_schedule_window_response.py new file mode 100644 index 0000000000..51369fdbe2 --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/cancel_instance_schedule_window_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 CancelInstanceScheduleWindowResponse(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): + """CancelInstanceScheduleWindowResponse + + The model defined in huaweicloud sdk + + """ + + super(CancelInstanceScheduleWindowResponse, 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, CancelInstanceScheduleWindowResponse): + return False + + return self.__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_request.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/create_db_cache_mapping_request.py similarity index 76% rename from huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/unsubscribe_postpaid_volume_request.py rename to huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/create_db_cache_mapping_request.py index a0aace2c01..3984438a7c 100644 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/unsubscribe_postpaid_volume_request.py +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/create_db_cache_mapping_request.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class UnsubscribePostpaidVolumeRequest: +class CreateDbCacheMappingRequest: """ Attributes: @@ -17,7 +17,7 @@ class UnsubscribePostpaidVolumeRequest: sensitive_list = [] openapi_types = { - 'body': 'UnsubscribeVolumeRequestBody' + 'body': 'CreateDbCacheMappingRequestBody' } attribute_map = { @@ -25,12 +25,12 @@ class UnsubscribePostpaidVolumeRequest: } def __init__(self, body=None): - """UnsubscribePostpaidVolumeRequest + """CreateDbCacheMappingRequest The model defined in huaweicloud sdk - :param body: Body of the UnsubscribePostpaidVolumeRequest - :type body: :class:`huaweicloudsdkevs.v2.UnsubscribeVolumeRequestBody` + :param body: Body of the CreateDbCacheMappingRequest + :type body: :class:`huaweicloudsdkgaussdbfornosql.v3.CreateDbCacheMappingRequestBody` """ @@ -43,19 +43,19 @@ def __init__(self, body=None): @property def body(self): - """Gets the body of this UnsubscribePostpaidVolumeRequest. + """Gets the body of this CreateDbCacheMappingRequest. - :return: The body of this UnsubscribePostpaidVolumeRequest. - :rtype: :class:`huaweicloudsdkevs.v2.UnsubscribeVolumeRequestBody` + :return: The body of this CreateDbCacheMappingRequest. + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.CreateDbCacheMappingRequestBody` """ return self._body @body.setter def body(self, body): - """Sets the body of this UnsubscribePostpaidVolumeRequest. + """Sets the body of this CreateDbCacheMappingRequest. - :param body: The body of this UnsubscribePostpaidVolumeRequest. - :type body: :class:`huaweicloudsdkevs.v2.UnsubscribeVolumeRequestBody` + :param body: The body of this CreateDbCacheMappingRequest. + :type body: :class:`huaweicloudsdkgaussdbfornosql.v3.CreateDbCacheMappingRequestBody` """ self._body = body @@ -101,7 +101,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, UnsubscribePostpaidVolumeRequest): + if not isinstance(other, CreateDbCacheMappingRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/create_db_cache_mapping_request_body.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/create_db_cache_mapping_request_body.py new file mode 100644 index 0000000000..b7b92ac169 --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/create_db_cache_mapping_request_body.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDbCacheMappingRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'source_instance_id': 'str', + 'target_instance_id': 'str' + } + + attribute_map = { + 'source_instance_id': 'source_instance_id', + 'target_instance_id': 'target_instance_id' + } + + def __init__(self, source_instance_id=None, target_instance_id=None): + """CreateDbCacheMappingRequestBody + + The model defined in huaweicloud sdk + + :param source_instance_id: 内存加速源实例ID。当前支持云数据库RDS for MySQL和GaussDB(for MySQL)实例。 + :type source_instance_id: str + :param target_instance_id: 内存加速目标实例ID。当前仅支持GeminiDB Redis主备类型实例。 + :type target_instance_id: str + """ + + + + self._source_instance_id = None + self._target_instance_id = None + self.discriminator = None + + self.source_instance_id = source_instance_id + self.target_instance_id = target_instance_id + + @property + def source_instance_id(self): + """Gets the source_instance_id of this CreateDbCacheMappingRequestBody. + + 内存加速源实例ID。当前支持云数据库RDS for MySQL和GaussDB(for MySQL)实例。 + + :return: The source_instance_id of this CreateDbCacheMappingRequestBody. + :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 CreateDbCacheMappingRequestBody. + + 内存加速源实例ID。当前支持云数据库RDS for MySQL和GaussDB(for MySQL)实例。 + + :param source_instance_id: The source_instance_id of this CreateDbCacheMappingRequestBody. + :type source_instance_id: str + """ + self._source_instance_id = source_instance_id + + @property + def target_instance_id(self): + """Gets the target_instance_id of this CreateDbCacheMappingRequestBody. + + 内存加速目标实例ID。当前仅支持GeminiDB Redis主备类型实例。 + + :return: The target_instance_id of this CreateDbCacheMappingRequestBody. + :rtype: str + """ + return self._target_instance_id + + @target_instance_id.setter + def target_instance_id(self, target_instance_id): + """Sets the target_instance_id of this CreateDbCacheMappingRequestBody. + + 内存加速目标实例ID。当前仅支持GeminiDB Redis主备类型实例。 + + :param target_instance_id: The target_instance_id of this CreateDbCacheMappingRequestBody. + :type target_instance_id: str + """ + self._target_instance_id = target_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, CreateDbCacheMappingRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_check_result_response.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/create_db_cache_mapping_response.py similarity index 69% rename from huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_check_result_response.py rename to huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/create_db_cache_mapping_response.py index 8d7676e837..20ed0ef1cf 100644 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_check_result_response.py +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/create_db_cache_mapping_response.py @@ -6,7 +6,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RunCheckResultResponse(SdkResponse): +class CreateDbCacheMappingResponse(SdkResponse): """ Attributes: @@ -18,47 +18,51 @@ class RunCheckResultResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'result': 'CheckResultResultBody' + 'job_id': 'str' } attribute_map = { - 'result': 'result' + 'job_id': 'job_id' } - def __init__(self, result=None): - """RunCheckResultResponse + def __init__(self, job_id=None): + """CreateDbCacheMappingResponse The model defined in huaweicloud sdk - :param result: - :type result: :class:`huaweicloudsdkmoderation.v2.CheckResultResultBody` + :param job_id: 创建内存加速任务ID。 + :type job_id: str """ - super(RunCheckResultResponse, self).__init__() + super(CreateDbCacheMappingResponse, self).__init__() - self._result = None + self._job_id = None self.discriminator = None - if result is not None: - self.result = result + if job_id is not None: + self.job_id = job_id @property - def result(self): - """Gets the result of this RunCheckResultResponse. + def job_id(self): + """Gets the job_id of this CreateDbCacheMappingResponse. - :return: The result of this RunCheckResultResponse. - :rtype: :class:`huaweicloudsdkmoderation.v2.CheckResultResultBody` + 创建内存加速任务ID。 + + :return: The job_id of this CreateDbCacheMappingResponse. + :rtype: str """ - return self._result + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this CreateDbCacheMappingResponse. - @result.setter - def result(self, result): - """Sets the result of this RunCheckResultResponse. + 创建内存加速任务ID。 - :param result: The result of this RunCheckResultResponse. - :type result: :class:`huaweicloudsdkmoderation.v2.CheckResultResultBody` + :param job_id: The job_id of this CreateDbCacheMappingResponse. + :type job_id: str """ - self._result = result + self._job_id = job_id def to_dict(self): """Returns the model properties as a dict""" @@ -102,7 +106,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RunCheckResultResponse): + if not isinstance(other, CreateDbCacheMappingResponse): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_image_moderation_request.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/create_db_cache_rule_request.py similarity index 76% rename from huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_image_moderation_request.py rename to huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/create_db_cache_rule_request.py index f20ff101cb..4a4b0f6a1b 100644 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_image_moderation_request.py +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/create_db_cache_rule_request.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RunImageModerationRequest: +class CreateDbCacheRuleRequest: """ Attributes: @@ -17,7 +17,7 @@ class RunImageModerationRequest: sensitive_list = [] openapi_types = { - 'body': 'ImageDetectionReq' + 'body': 'CreateDbCacheRuleRequestBody' } attribute_map = { @@ -25,12 +25,12 @@ class RunImageModerationRequest: } def __init__(self, body=None): - """RunImageModerationRequest + """CreateDbCacheRuleRequest The model defined in huaweicloud sdk - :param body: Body of the RunImageModerationRequest - :type body: :class:`huaweicloudsdkmoderation.v2.ImageDetectionReq` + :param body: Body of the CreateDbCacheRuleRequest + :type body: :class:`huaweicloudsdkgaussdbfornosql.v3.CreateDbCacheRuleRequestBody` """ @@ -43,19 +43,19 @@ def __init__(self, body=None): @property def body(self): - """Gets the body of this RunImageModerationRequest. + """Gets the body of this CreateDbCacheRuleRequest. - :return: The body of this RunImageModerationRequest. - :rtype: :class:`huaweicloudsdkmoderation.v2.ImageDetectionReq` + :return: The body of this CreateDbCacheRuleRequest. + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.CreateDbCacheRuleRequestBody` """ return self._body @body.setter def body(self, body): - """Sets the body of this RunImageModerationRequest. + """Sets the body of this CreateDbCacheRuleRequest. - :param body: The body of this RunImageModerationRequest. - :type body: :class:`huaweicloudsdkmoderation.v2.ImageDetectionReq` + :param body: The body of this CreateDbCacheRuleRequest. + :type body: :class:`huaweicloudsdkgaussdbfornosql.v3.CreateDbCacheRuleRequestBody` """ self._body = body @@ -101,7 +101,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RunImageModerationRequest): + if not isinstance(other, CreateDbCacheRuleRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/create_db_cache_rule_request_body.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/create_db_cache_rule_request_body.py new file mode 100644 index 0000000000..7533055128 --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/create_db_cache_rule_request_body.py @@ -0,0 +1,424 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDbCacheRuleRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'dbcache_mapping_id': 'str', + 'name': 'str', + 'source_db_schema': 'str', + 'source_db_table': 'str', + 'storage_type': 'str', + 'target_database': 'str', + 'key_columns': 'list[str]', + 'value_columns': 'list[str]', + 'ttl': 'str', + 'key_separator': 'str', + 'value_separator': 'str', + 'key_prefix': 'str' + } + + attribute_map = { + 'dbcache_mapping_id': 'dbcache_mapping_id', + 'name': 'name', + 'source_db_schema': 'source_db_schema', + 'source_db_table': 'source_db_table', + 'storage_type': 'storage_type', + 'target_database': 'target_database', + 'key_columns': 'key_columns', + 'value_columns': 'value_columns', + 'ttl': 'ttl', + 'key_separator': 'key_separator', + 'value_separator': 'value_separator', + 'key_prefix': 'key_prefix' + } + + def __init__(self, dbcache_mapping_id=None, name=None, source_db_schema=None, source_db_table=None, storage_type=None, target_database=None, key_columns=None, value_columns=None, ttl=None, key_separator=None, value_separator=None, key_prefix=None): + """CreateDbCacheRuleRequestBody + + The model defined in huaweicloud sdk + + :param dbcache_mapping_id: 内存加速映射ID。 + :type dbcache_mapping_id: str + :param name: 内存加速规则名称。不超过256字符,需要确保在当前映射下唯一。 + :type name: str + :param source_db_schema: 源端数据库。 + :type source_db_schema: str + :param source_db_table: 源端数据表。 + :type source_db_table: str + :param storage_type: 目标数据存储类型。 取值为: hash。 + :type storage_type: str + :param target_database: 目标数据库。取值范围: [0-999]。 + :type target_database: str + :param key_columns: 映射的key使用的column列表。 + :type key_columns: list[str] + :param value_columns: 映射的value使用的column列表。 + :type value_columns: list[str] + :param ttl: key的生存时间。单位:ms。不传该值,默认取2592000000,表示30天。 + :type ttl: str + :param key_separator: 映射的key分隔符。只允许一个字符。 + :type key_separator: str + :param value_separator: 映射的value分隔符。只允许一个字符。 + :type value_separator: str + :param key_prefix: 键前缀。最长限制1024字符。需确保key_prefix和target_database在当前映射下唯一。 + :type key_prefix: str + """ + + + + self._dbcache_mapping_id = None + self._name = None + self._source_db_schema = None + self._source_db_table = None + self._storage_type = None + self._target_database = None + self._key_columns = None + self._value_columns = None + self._ttl = None + self._key_separator = None + self._value_separator = None + self._key_prefix = None + self.discriminator = None + + self.dbcache_mapping_id = dbcache_mapping_id + self.name = name + self.source_db_schema = source_db_schema + self.source_db_table = source_db_table + self.storage_type = storage_type + self.target_database = target_database + self.key_columns = key_columns + self.value_columns = value_columns + if ttl is not None: + self.ttl = ttl + self.key_separator = key_separator + if value_separator is not None: + self.value_separator = value_separator + self.key_prefix = key_prefix + + @property + def dbcache_mapping_id(self): + """Gets the dbcache_mapping_id of this CreateDbCacheRuleRequestBody. + + 内存加速映射ID。 + + :return: The dbcache_mapping_id of this CreateDbCacheRuleRequestBody. + :rtype: str + """ + return self._dbcache_mapping_id + + @dbcache_mapping_id.setter + def dbcache_mapping_id(self, dbcache_mapping_id): + """Sets the dbcache_mapping_id of this CreateDbCacheRuleRequestBody. + + 内存加速映射ID。 + + :param dbcache_mapping_id: The dbcache_mapping_id of this CreateDbCacheRuleRequestBody. + :type dbcache_mapping_id: str + """ + self._dbcache_mapping_id = dbcache_mapping_id + + @property + def name(self): + """Gets the name of this CreateDbCacheRuleRequestBody. + + 内存加速规则名称。不超过256字符,需要确保在当前映射下唯一。 + + :return: The name of this CreateDbCacheRuleRequestBody. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateDbCacheRuleRequestBody. + + 内存加速规则名称。不超过256字符,需要确保在当前映射下唯一。 + + :param name: The name of this CreateDbCacheRuleRequestBody. + :type name: str + """ + self._name = name + + @property + def source_db_schema(self): + """Gets the source_db_schema of this CreateDbCacheRuleRequestBody. + + 源端数据库。 + + :return: The source_db_schema of this CreateDbCacheRuleRequestBody. + :rtype: str + """ + return self._source_db_schema + + @source_db_schema.setter + def source_db_schema(self, source_db_schema): + """Sets the source_db_schema of this CreateDbCacheRuleRequestBody. + + 源端数据库。 + + :param source_db_schema: The source_db_schema of this CreateDbCacheRuleRequestBody. + :type source_db_schema: str + """ + self._source_db_schema = source_db_schema + + @property + def source_db_table(self): + """Gets the source_db_table of this CreateDbCacheRuleRequestBody. + + 源端数据表。 + + :return: The source_db_table of this CreateDbCacheRuleRequestBody. + :rtype: str + """ + return self._source_db_table + + @source_db_table.setter + def source_db_table(self, source_db_table): + """Sets the source_db_table of this CreateDbCacheRuleRequestBody. + + 源端数据表。 + + :param source_db_table: The source_db_table of this CreateDbCacheRuleRequestBody. + :type source_db_table: str + """ + self._source_db_table = source_db_table + + @property + def storage_type(self): + """Gets the storage_type of this CreateDbCacheRuleRequestBody. + + 目标数据存储类型。 取值为: hash。 + + :return: The storage_type of this CreateDbCacheRuleRequestBody. + :rtype: str + """ + return self._storage_type + + @storage_type.setter + def storage_type(self, storage_type): + """Sets the storage_type of this CreateDbCacheRuleRequestBody. + + 目标数据存储类型。 取值为: hash。 + + :param storage_type: The storage_type of this CreateDbCacheRuleRequestBody. + :type storage_type: str + """ + self._storage_type = storage_type + + @property + def target_database(self): + """Gets the target_database of this CreateDbCacheRuleRequestBody. + + 目标数据库。取值范围: [0-999]。 + + :return: The target_database of this CreateDbCacheRuleRequestBody. + :rtype: str + """ + return self._target_database + + @target_database.setter + def target_database(self, target_database): + """Sets the target_database of this CreateDbCacheRuleRequestBody. + + 目标数据库。取值范围: [0-999]。 + + :param target_database: The target_database of this CreateDbCacheRuleRequestBody. + :type target_database: str + """ + self._target_database = target_database + + @property + def key_columns(self): + """Gets the key_columns of this CreateDbCacheRuleRequestBody. + + 映射的key使用的column列表。 + + :return: The key_columns of this CreateDbCacheRuleRequestBody. + :rtype: list[str] + """ + return self._key_columns + + @key_columns.setter + def key_columns(self, key_columns): + """Sets the key_columns of this CreateDbCacheRuleRequestBody. + + 映射的key使用的column列表。 + + :param key_columns: The key_columns of this CreateDbCacheRuleRequestBody. + :type key_columns: list[str] + """ + self._key_columns = key_columns + + @property + def value_columns(self): + """Gets the value_columns of this CreateDbCacheRuleRequestBody. + + 映射的value使用的column列表。 + + :return: The value_columns of this CreateDbCacheRuleRequestBody. + :rtype: list[str] + """ + return self._value_columns + + @value_columns.setter + def value_columns(self, value_columns): + """Sets the value_columns of this CreateDbCacheRuleRequestBody. + + 映射的value使用的column列表。 + + :param value_columns: The value_columns of this CreateDbCacheRuleRequestBody. + :type value_columns: list[str] + """ + self._value_columns = value_columns + + @property + def ttl(self): + """Gets the ttl of this CreateDbCacheRuleRequestBody. + + key的生存时间。单位:ms。不传该值,默认取2592000000,表示30天。 + + :return: The ttl of this CreateDbCacheRuleRequestBody. + :rtype: str + """ + return self._ttl + + @ttl.setter + def ttl(self, ttl): + """Sets the ttl of this CreateDbCacheRuleRequestBody. + + key的生存时间。单位:ms。不传该值,默认取2592000000,表示30天。 + + :param ttl: The ttl of this CreateDbCacheRuleRequestBody. + :type ttl: str + """ + self._ttl = ttl + + @property + def key_separator(self): + """Gets the key_separator of this CreateDbCacheRuleRequestBody. + + 映射的key分隔符。只允许一个字符。 + + :return: The key_separator of this CreateDbCacheRuleRequestBody. + :rtype: str + """ + return self._key_separator + + @key_separator.setter + def key_separator(self, key_separator): + """Sets the key_separator of this CreateDbCacheRuleRequestBody. + + 映射的key分隔符。只允许一个字符。 + + :param key_separator: The key_separator of this CreateDbCacheRuleRequestBody. + :type key_separator: str + """ + self._key_separator = key_separator + + @property + def value_separator(self): + """Gets the value_separator of this CreateDbCacheRuleRequestBody. + + 映射的value分隔符。只允许一个字符。 + + :return: The value_separator of this CreateDbCacheRuleRequestBody. + :rtype: str + """ + return self._value_separator + + @value_separator.setter + def value_separator(self, value_separator): + """Sets the value_separator of this CreateDbCacheRuleRequestBody. + + 映射的value分隔符。只允许一个字符。 + + :param value_separator: The value_separator of this CreateDbCacheRuleRequestBody. + :type value_separator: str + """ + self._value_separator = value_separator + + @property + def key_prefix(self): + """Gets the key_prefix of this CreateDbCacheRuleRequestBody. + + 键前缀。最长限制1024字符。需确保key_prefix和target_database在当前映射下唯一。 + + :return: The key_prefix of this CreateDbCacheRuleRequestBody. + :rtype: str + """ + return self._key_prefix + + @key_prefix.setter + def key_prefix(self, key_prefix): + """Sets the key_prefix of this CreateDbCacheRuleRequestBody. + + 键前缀。最长限制1024字符。需确保key_prefix和target_database在当前映射下唯一。 + + :param key_prefix: The key_prefix of this CreateDbCacheRuleRequestBody. + :type key_prefix: str + """ + self._key_prefix = key_prefix + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateDbCacheRuleRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/create_db_cache_rule_response.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/create_db_cache_rule_response.py new file mode 100644 index 0000000000..a8a6ba9e7b --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/create_db_cache_rule_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 CreateDbCacheRuleResponse(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' + } + + attribute_map = { + 'id': 'id' + } + + def __init__(self, id=None): + """CreateDbCacheRuleResponse + + The model defined in huaweicloud sdk + + :param id: 内存加速规则ID。 + :type id: str + """ + + super(CreateDbCacheRuleResponse, self).__init__() + + self._id = None + self.discriminator = None + + if id is not None: + self.id = id + + @property + def id(self): + """Gets the id of this CreateDbCacheRuleResponse. + + 内存加速规则ID。 + + :return: The id of this CreateDbCacheRuleResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateDbCacheRuleResponse. + + 内存加速规则ID。 + + :param id: The id of this CreateDbCacheRuleResponse. + :type id: str + """ + self._id = id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateDbCacheRuleResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_image_batch_moderation_request.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/delete_db_cache_mapping_request.py similarity index 76% rename from huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_image_batch_moderation_request.py rename to huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/delete_db_cache_mapping_request.py index 99b446d95d..884af59760 100644 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_image_batch_moderation_request.py +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/delete_db_cache_mapping_request.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RunImageBatchModerationRequest: +class DeleteDbCacheMappingRequest: """ Attributes: @@ -17,7 +17,7 @@ class RunImageBatchModerationRequest: sensitive_list = [] openapi_types = { - 'body': 'ImageBatchModerationReq' + 'body': 'DeleteDbCacheMappingRequestBody' } attribute_map = { @@ -25,12 +25,12 @@ class RunImageBatchModerationRequest: } def __init__(self, body=None): - """RunImageBatchModerationRequest + """DeleteDbCacheMappingRequest The model defined in huaweicloud sdk - :param body: Body of the RunImageBatchModerationRequest - :type body: :class:`huaweicloudsdkmoderation.v2.ImageBatchModerationReq` + :param body: Body of the DeleteDbCacheMappingRequest + :type body: :class:`huaweicloudsdkgaussdbfornosql.v3.DeleteDbCacheMappingRequestBody` """ @@ -43,19 +43,19 @@ def __init__(self, body=None): @property def body(self): - """Gets the body of this RunImageBatchModerationRequest. + """Gets the body of this DeleteDbCacheMappingRequest. - :return: The body of this RunImageBatchModerationRequest. - :rtype: :class:`huaweicloudsdkmoderation.v2.ImageBatchModerationReq` + :return: The body of this DeleteDbCacheMappingRequest. + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.DeleteDbCacheMappingRequestBody` """ return self._body @body.setter def body(self, body): - """Sets the body of this RunImageBatchModerationRequest. + """Sets the body of this DeleteDbCacheMappingRequest. - :param body: The body of this RunImageBatchModerationRequest. - :type body: :class:`huaweicloudsdkmoderation.v2.ImageBatchModerationReq` + :param body: The body of this DeleteDbCacheMappingRequest. + :type body: :class:`huaweicloudsdkgaussdbfornosql.v3.DeleteDbCacheMappingRequestBody` """ self._body = body @@ -101,7 +101,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RunImageBatchModerationRequest): + if not isinstance(other, DeleteDbCacheMappingRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/delete_db_cache_mapping_request_body.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/delete_db_cache_mapping_request_body.py new file mode 100644 index 0000000000..cbd6c055f5 --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/delete_db_cache_mapping_request_body.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteDbCacheMappingRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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' + } + + attribute_map = { + 'id': 'id' + } + + def __init__(self, id=None): + """DeleteDbCacheMappingRequestBody + + The model defined in huaweicloud sdk + + :param id: 内存加速映射ID。 + :type id: str + """ + + + + self._id = None + self.discriminator = None + + self.id = id + + @property + def id(self): + """Gets the id of this DeleteDbCacheMappingRequestBody. + + 内存加速映射ID。 + + :return: The id of this DeleteDbCacheMappingRequestBody. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this DeleteDbCacheMappingRequestBody. + + 内存加速映射ID。 + + :param id: The id of this DeleteDbCacheMappingRequestBody. + :type id: str + """ + self._id = id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteDbCacheMappingRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/delete_db_cache_mapping_response.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/delete_db_cache_mapping_response.py new file mode 100644 index 0000000000..1331836c73 --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/delete_db_cache_mapping_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 DeleteDbCacheMappingResponse(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): + """DeleteDbCacheMappingResponse + + The model defined in huaweicloud sdk + + :param job_id: 任务ID。 + :type job_id: str + """ + + super(DeleteDbCacheMappingResponse, 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 DeleteDbCacheMappingResponse. + + 任务ID。 + + :return: The job_id of this DeleteDbCacheMappingResponse. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this DeleteDbCacheMappingResponse. + + 任务ID。 + + :param job_id: The job_id of this DeleteDbCacheMappingResponse. + :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, DeleteDbCacheMappingResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_moderation_audio_request.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/delete_db_cache_rule_request.py similarity index 76% rename from huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_moderation_audio_request.py rename to huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/delete_db_cache_rule_request.py index 6618216dd8..8b00293ae7 100644 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_moderation_audio_request.py +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/delete_db_cache_rule_request.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RunModerationAudioRequest: +class DeleteDbCacheRuleRequest: """ Attributes: @@ -17,7 +17,7 @@ class RunModerationAudioRequest: sensitive_list = [] openapi_types = { - 'body': 'RunModerationAudioRequestBody' + 'body': 'DeleteDbCacheRuleRequestBody' } attribute_map = { @@ -25,12 +25,12 @@ class RunModerationAudioRequest: } def __init__(self, body=None): - """RunModerationAudioRequest + """DeleteDbCacheRuleRequest The model defined in huaweicloud sdk - :param body: Body of the RunModerationAudioRequest - :type body: :class:`huaweicloudsdkmoderation.v2.RunModerationAudioRequestBody` + :param body: Body of the DeleteDbCacheRuleRequest + :type body: :class:`huaweicloudsdkgaussdbfornosql.v3.DeleteDbCacheRuleRequestBody` """ @@ -43,19 +43,19 @@ def __init__(self, body=None): @property def body(self): - """Gets the body of this RunModerationAudioRequest. + """Gets the body of this DeleteDbCacheRuleRequest. - :return: The body of this RunModerationAudioRequest. - :rtype: :class:`huaweicloudsdkmoderation.v2.RunModerationAudioRequestBody` + :return: The body of this DeleteDbCacheRuleRequest. + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.DeleteDbCacheRuleRequestBody` """ return self._body @body.setter def body(self, body): - """Sets the body of this RunModerationAudioRequest. + """Sets the body of this DeleteDbCacheRuleRequest. - :param body: The body of this RunModerationAudioRequest. - :type body: :class:`huaweicloudsdkmoderation.v2.RunModerationAudioRequestBody` + :param body: The body of this DeleteDbCacheRuleRequest. + :type body: :class:`huaweicloudsdkgaussdbfornosql.v3.DeleteDbCacheRuleRequestBody` """ self._body = body @@ -101,7 +101,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RunModerationAudioRequest): + if not isinstance(other, DeleteDbCacheRuleRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/delete_db_cache_rule_request_body.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/delete_db_cache_rule_request_body.py new file mode 100644 index 0000000000..567a51f576 --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/delete_db_cache_rule_request_body.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteDbCacheRuleRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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' + } + + attribute_map = { + 'id': 'id' + } + + def __init__(self, id=None): + """DeleteDbCacheRuleRequestBody + + The model defined in huaweicloud sdk + + :param id: 内存加速规则ID。 + :type id: str + """ + + + + self._id = None + self.discriminator = None + + self.id = id + + @property + def id(self): + """Gets the id of this DeleteDbCacheRuleRequestBody. + + 内存加速规则ID。 + + :return: The id of this DeleteDbCacheRuleRequestBody. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this DeleteDbCacheRuleRequestBody. + + 内存加速规则ID。 + + :param id: The id of this DeleteDbCacheRuleRequestBody. + :type id: str + """ + self._id = id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteDbCacheRuleRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/delete_db_cache_rule_response.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/delete_db_cache_rule_response.py new file mode 100644 index 0000000000..74509fd0b1 --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/delete_db_cache_rule_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 DeleteDbCacheRuleResponse(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): + """DeleteDbCacheRuleResponse + + The model defined in huaweicloud sdk + + """ + + super(DeleteDbCacheRuleResponse, 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, DeleteDbCacheRuleResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_db_cache_mappings_request.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_db_cache_mappings_request.py new file mode 100644 index 0000000000..e7c158e2de --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_db_cache_mappings_request.py @@ -0,0 +1,318 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDbCacheMappingsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'source_instance_id': 'str', + 'source_instance_name': 'str', + 'target_instance_id': 'str', + 'target_instance_name': 'str', + 'offset': 'int', + 'limit': 'int' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'source_instance_id': 'source_instance_id', + 'source_instance_name': 'source_instance_name', + 'target_instance_id': 'target_instance_id', + 'target_instance_name': 'target_instance_name', + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, id=None, name=None, source_instance_id=None, source_instance_name=None, target_instance_id=None, target_instance_name=None, offset=None, limit=None): + """ListDbCacheMappingsRequest + + The model defined in huaweicloud sdk + + :param id: 映射ID,可以调用“查询内存加速映射列表和详情”接口获取。 + :type id: str + :param name: 映射名称。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + :type name: str + :param source_instance_id: 源实例ID。 + :type source_instance_id: str + :param source_instance_name: 源实例名称。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + :type source_instance_name: str + :param target_instance_id: 目标实例ID。 + :type target_instance_id: str + :param target_instance_name: 目标实例名称。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + :type target_instance_name: str + :param offset: 索引位置,偏移量。 从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询)。 取值必须为数字,不能为负数。 + :type offset: int + :param limit: 查询个数上限值。取值范围:1~100。不传该参数时,默认查询前100条信息。 + :type limit: int + """ + + + + self._id = None + self._name = None + self._source_instance_id = None + self._source_instance_name = None + self._target_instance_id = None + self._target_instance_name = None + self._offset = None + self._limit = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if source_instance_id is not None: + self.source_instance_id = source_instance_id + if source_instance_name is not None: + self.source_instance_name = source_instance_name + if target_instance_id is not None: + self.target_instance_id = target_instance_id + if target_instance_name is not None: + self.target_instance_name = target_instance_name + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + + @property + def id(self): + """Gets the id of this ListDbCacheMappingsRequest. + + 映射ID,可以调用“查询内存加速映射列表和详情”接口获取。 + + :return: The id of this ListDbCacheMappingsRequest. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ListDbCacheMappingsRequest. + + 映射ID,可以调用“查询内存加速映射列表和详情”接口获取。 + + :param id: The id of this ListDbCacheMappingsRequest. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this ListDbCacheMappingsRequest. + + 映射名称。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + + :return: The name of this ListDbCacheMappingsRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ListDbCacheMappingsRequest. + + 映射名称。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + + :param name: The name of this ListDbCacheMappingsRequest. + :type name: str + """ + self._name = name + + @property + def source_instance_id(self): + """Gets the source_instance_id of this ListDbCacheMappingsRequest. + + 源实例ID。 + + :return: The source_instance_id of this ListDbCacheMappingsRequest. + :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 ListDbCacheMappingsRequest. + + 源实例ID。 + + :param source_instance_id: The source_instance_id of this ListDbCacheMappingsRequest. + :type source_instance_id: str + """ + self._source_instance_id = source_instance_id + + @property + def source_instance_name(self): + """Gets the source_instance_name of this ListDbCacheMappingsRequest. + + 源实例名称。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + + :return: The source_instance_name of this ListDbCacheMappingsRequest. + :rtype: str + """ + return self._source_instance_name + + @source_instance_name.setter + def source_instance_name(self, source_instance_name): + """Sets the source_instance_name of this ListDbCacheMappingsRequest. + + 源实例名称。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + + :param source_instance_name: The source_instance_name of this ListDbCacheMappingsRequest. + :type source_instance_name: str + """ + self._source_instance_name = source_instance_name + + @property + def target_instance_id(self): + """Gets the target_instance_id of this ListDbCacheMappingsRequest. + + 目标实例ID。 + + :return: The target_instance_id of this ListDbCacheMappingsRequest. + :rtype: str + """ + return self._target_instance_id + + @target_instance_id.setter + def target_instance_id(self, target_instance_id): + """Sets the target_instance_id of this ListDbCacheMappingsRequest. + + 目标实例ID。 + + :param target_instance_id: The target_instance_id of this ListDbCacheMappingsRequest. + :type target_instance_id: str + """ + self._target_instance_id = target_instance_id + + @property + def target_instance_name(self): + """Gets the target_instance_name of this ListDbCacheMappingsRequest. + + 目标实例名称。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + + :return: The target_instance_name of this ListDbCacheMappingsRequest. + :rtype: str + """ + return self._target_instance_name + + @target_instance_name.setter + def target_instance_name(self, target_instance_name): + """Sets the target_instance_name of this ListDbCacheMappingsRequest. + + 目标实例名称。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + + :param target_instance_name: The target_instance_name of this ListDbCacheMappingsRequest. + :type target_instance_name: str + """ + self._target_instance_name = target_instance_name + + @property + def offset(self): + """Gets the offset of this ListDbCacheMappingsRequest. + + 索引位置,偏移量。 从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询)。 取值必须为数字,不能为负数。 + + :return: The offset of this ListDbCacheMappingsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListDbCacheMappingsRequest. + + 索引位置,偏移量。 从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询)。 取值必须为数字,不能为负数。 + + :param offset: The offset of this ListDbCacheMappingsRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListDbCacheMappingsRequest. + + 查询个数上限值。取值范围:1~100。不传该参数时,默认查询前100条信息。 + + :return: The limit of this ListDbCacheMappingsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListDbCacheMappingsRequest. + + 查询个数上限值。取值范围:1~100。不传该参数时,默认查询前100条信息。 + + :param limit: The limit of this ListDbCacheMappingsRequest. + :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, ListDbCacheMappingsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_db_cache_mappings_response.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_db_cache_mappings_response.py new file mode 100644 index 0000000000..2cf8d3a91d --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_db_cache_mappings_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 ListDbCacheMappingsResponse(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', + 'dbcache_mappings': 'list[QueryDBCacheMappingResponse]' + } + + attribute_map = { + 'total_count': 'total_count', + 'dbcache_mappings': 'dbcache_mappings' + } + + def __init__(self, total_count=None, dbcache_mappings=None): + """ListDbCacheMappingsResponse + + The model defined in huaweicloud sdk + + :param total_count: 总记录数。 + :type total_count: int + :param dbcache_mappings: 内存加速映射信息。 + :type dbcache_mappings: list[:class:`huaweicloudsdkgaussdbfornosql.v3.QueryDBCacheMappingResponse`] + """ + + super(ListDbCacheMappingsResponse, self).__init__() + + self._total_count = None + self._dbcache_mappings = None + self.discriminator = None + + if total_count is not None: + self.total_count = total_count + if dbcache_mappings is not None: + self.dbcache_mappings = dbcache_mappings + + @property + def total_count(self): + """Gets the total_count of this ListDbCacheMappingsResponse. + + 总记录数。 + + :return: The total_count of this ListDbCacheMappingsResponse. + :rtype: int + """ + return self._total_count + + @total_count.setter + def total_count(self, total_count): + """Sets the total_count of this ListDbCacheMappingsResponse. + + 总记录数。 + + :param total_count: The total_count of this ListDbCacheMappingsResponse. + :type total_count: int + """ + self._total_count = total_count + + @property + def dbcache_mappings(self): + """Gets the dbcache_mappings of this ListDbCacheMappingsResponse. + + 内存加速映射信息。 + + :return: The dbcache_mappings of this ListDbCacheMappingsResponse. + :rtype: list[:class:`huaweicloudsdkgaussdbfornosql.v3.QueryDBCacheMappingResponse`] + """ + return self._dbcache_mappings + + @dbcache_mappings.setter + def dbcache_mappings(self, dbcache_mappings): + """Sets the dbcache_mappings of this ListDbCacheMappingsResponse. + + 内存加速映射信息。 + + :param dbcache_mappings: The dbcache_mappings of this ListDbCacheMappingsResponse. + :type dbcache_mappings: list[:class:`huaweicloudsdkgaussdbfornosql.v3.QueryDBCacheMappingResponse`] + """ + self._dbcache_mappings = dbcache_mappings + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListDbCacheMappingsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_db_cache_rules_request.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_db_cache_rules_request.py new file mode 100644 index 0000000000..b45f82e039 --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_db_cache_rules_request.py @@ -0,0 +1,288 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDbCacheRulesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'dbcache_mapping_id': 'str', + 'rule_id': 'str', + 'rule_name': 'str', + 'source_db_schema': 'str', + 'source_db_table': 'str', + 'offset': 'str', + 'limit': 'str' + } + + attribute_map = { + 'dbcache_mapping_id': 'dbcache_mapping_id', + 'rule_id': 'rule_id', + 'rule_name': 'rule_name', + 'source_db_schema': 'source_db_schema', + 'source_db_table': 'source_db_table', + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, dbcache_mapping_id=None, rule_id=None, rule_name=None, source_db_schema=None, source_db_table=None, offset=None, limit=None): + """ListDbCacheRulesRequest + + The model defined in huaweicloud sdk + + :param dbcache_mapping_id: 内存加速映射ID。 + :type dbcache_mapping_id: str + :param rule_id: 内存加速规则ID。 + :type rule_id: str + :param rule_name: 内存加速规则名称。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + :type rule_name: str + :param source_db_schema: 源端数据库名。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + :type source_db_schema: str + :param source_db_table: 源端数据表名。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + :type source_db_table: str + :param offset: 索引位置,偏移量。 从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询)。 取值必须为数字,不能为负数。 + :type offset: str + :param limit: 查询个数上限值。取值范围:1~100。不传该参数时,默认查询前100条信息。 + :type limit: str + """ + + + + self._dbcache_mapping_id = None + self._rule_id = None + self._rule_name = None + self._source_db_schema = None + self._source_db_table = None + self._offset = None + self._limit = None + self.discriminator = None + + self.dbcache_mapping_id = dbcache_mapping_id + if rule_id is not None: + self.rule_id = rule_id + if rule_name is not None: + self.rule_name = rule_name + if source_db_schema is not None: + self.source_db_schema = source_db_schema + if source_db_table is not None: + self.source_db_table = source_db_table + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + + @property + def dbcache_mapping_id(self): + """Gets the dbcache_mapping_id of this ListDbCacheRulesRequest. + + 内存加速映射ID。 + + :return: The dbcache_mapping_id of this ListDbCacheRulesRequest. + :rtype: str + """ + return self._dbcache_mapping_id + + @dbcache_mapping_id.setter + def dbcache_mapping_id(self, dbcache_mapping_id): + """Sets the dbcache_mapping_id of this ListDbCacheRulesRequest. + + 内存加速映射ID。 + + :param dbcache_mapping_id: The dbcache_mapping_id of this ListDbCacheRulesRequest. + :type dbcache_mapping_id: str + """ + self._dbcache_mapping_id = dbcache_mapping_id + + @property + def rule_id(self): + """Gets the rule_id of this ListDbCacheRulesRequest. + + 内存加速规则ID。 + + :return: The rule_id of this ListDbCacheRulesRequest. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this ListDbCacheRulesRequest. + + 内存加速规则ID。 + + :param rule_id: The rule_id of this ListDbCacheRulesRequest. + :type rule_id: str + """ + self._rule_id = rule_id + + @property + def rule_name(self): + """Gets the rule_name of this ListDbCacheRulesRequest. + + 内存加速规则名称。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + + :return: The rule_name of this ListDbCacheRulesRequest. + :rtype: str + """ + return self._rule_name + + @rule_name.setter + def rule_name(self, rule_name): + """Sets the rule_name of this ListDbCacheRulesRequest. + + 内存加速规则名称。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + + :param rule_name: The rule_name of this ListDbCacheRulesRequest. + :type rule_name: str + """ + self._rule_name = rule_name + + @property + def source_db_schema(self): + """Gets the source_db_schema of this ListDbCacheRulesRequest. + + 源端数据库名。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + + :return: The source_db_schema of this ListDbCacheRulesRequest. + :rtype: str + """ + return self._source_db_schema + + @source_db_schema.setter + def source_db_schema(self, source_db_schema): + """Sets the source_db_schema of this ListDbCacheRulesRequest. + + 源端数据库名。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + + :param source_db_schema: The source_db_schema of this ListDbCacheRulesRequest. + :type source_db_schema: str + """ + self._source_db_schema = source_db_schema + + @property + def source_db_table(self): + """Gets the source_db_table of this ListDbCacheRulesRequest. + + 源端数据表名。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + + :return: The source_db_table of this ListDbCacheRulesRequest. + :rtype: str + """ + return self._source_db_table + + @source_db_table.setter + def source_db_table(self, source_db_table): + """Sets the source_db_table of this ListDbCacheRulesRequest. + + 源端数据表名。名称以“*”起始,表示按照“*”后面的值模糊匹配,否则,按照实际填写的名称精确匹配查询。 + + :param source_db_table: The source_db_table of this ListDbCacheRulesRequest. + :type source_db_table: str + """ + self._source_db_table = source_db_table + + @property + def offset(self): + """Gets the offset of this ListDbCacheRulesRequest. + + 索引位置,偏移量。 从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询)。 取值必须为数字,不能为负数。 + + :return: The offset of this ListDbCacheRulesRequest. + :rtype: str + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListDbCacheRulesRequest. + + 索引位置,偏移量。 从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询)。 取值必须为数字,不能为负数。 + + :param offset: The offset of this ListDbCacheRulesRequest. + :type offset: str + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListDbCacheRulesRequest. + + 查询个数上限值。取值范围:1~100。不传该参数时,默认查询前100条信息。 + + :return: The limit of this ListDbCacheRulesRequest. + :rtype: str + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListDbCacheRulesRequest. + + 查询个数上限值。取值范围:1~100。不传该参数时,默认查询前100条信息。 + + :param limit: The limit of this ListDbCacheRulesRequest. + :type limit: str + """ + 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, ListDbCacheRulesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_db_cache_rules_response.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_db_cache_rules_response.py new file mode 100644 index 0000000000..f553bbf80f --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_db_cache_rules_response.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDbCacheRulesResponse(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', + 'dbcache_mapping_id': 'str', + 'rules': 'list[QueryDBCacheRuleResponse]' + } + + attribute_map = { + 'total_count': 'total_count', + 'dbcache_mapping_id': 'dbcache_mapping_id', + 'rules': 'rules' + } + + def __init__(self, total_count=None, dbcache_mapping_id=None, rules=None): + """ListDbCacheRulesResponse + + The model defined in huaweicloud sdk + + :param total_count: 总记录数。 + :type total_count: int + :param dbcache_mapping_id: 内存加速映射ID。 + :type dbcache_mapping_id: str + :param rules: 内存加速规则详情。 + :type rules: list[:class:`huaweicloudsdkgaussdbfornosql.v3.QueryDBCacheRuleResponse`] + """ + + super(ListDbCacheRulesResponse, self).__init__() + + self._total_count = None + self._dbcache_mapping_id = None + self._rules = None + self.discriminator = None + + if total_count is not None: + self.total_count = total_count + if dbcache_mapping_id is not None: + self.dbcache_mapping_id = dbcache_mapping_id + if rules is not None: + self.rules = rules + + @property + def total_count(self): + """Gets the total_count of this ListDbCacheRulesResponse. + + 总记录数。 + + :return: The total_count of this ListDbCacheRulesResponse. + :rtype: int + """ + return self._total_count + + @total_count.setter + def total_count(self, total_count): + """Sets the total_count of this ListDbCacheRulesResponse. + + 总记录数。 + + :param total_count: The total_count of this ListDbCacheRulesResponse. + :type total_count: int + """ + self._total_count = total_count + + @property + def dbcache_mapping_id(self): + """Gets the dbcache_mapping_id of this ListDbCacheRulesResponse. + + 内存加速映射ID。 + + :return: The dbcache_mapping_id of this ListDbCacheRulesResponse. + :rtype: str + """ + return self._dbcache_mapping_id + + @dbcache_mapping_id.setter + def dbcache_mapping_id(self, dbcache_mapping_id): + """Sets the dbcache_mapping_id of this ListDbCacheRulesResponse. + + 内存加速映射ID。 + + :param dbcache_mapping_id: The dbcache_mapping_id of this ListDbCacheRulesResponse. + :type dbcache_mapping_id: str + """ + self._dbcache_mapping_id = dbcache_mapping_id + + @property + def rules(self): + """Gets the rules of this ListDbCacheRulesResponse. + + 内存加速规则详情。 + + :return: The rules of this ListDbCacheRulesResponse. + :rtype: list[:class:`huaweicloudsdkgaussdbfornosql.v3.QueryDBCacheRuleResponse`] + """ + return self._rules + + @rules.setter + def rules(self, rules): + """Sets the rules of this ListDbCacheRulesResponse. + + 内存加速规则详情。 + + :param rules: The rules of this ListDbCacheRulesResponse. + :type rules: list[:class:`huaweicloudsdkgaussdbfornosql.v3.QueryDBCacheRuleResponse`] + """ + self._rules = rules + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListDbCacheRulesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_instance_maintenance_window_request.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_instance_maintenance_window_request.py new file mode 100644 index 0000000000..b0b5fd1a5f --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_instance_maintenance_window_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListInstanceMaintenanceWindowRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """ListInstanceMaintenanceWindowRequest + + 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 ListInstanceMaintenanceWindowRequest. + + 实例ID。 + + :return: The instance_id of this ListInstanceMaintenanceWindowRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ListInstanceMaintenanceWindowRequest. + + 实例ID。 + + :param instance_id: The instance_id of this ListInstanceMaintenanceWindowRequest. + :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, ListInstanceMaintenanceWindowRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_instance_maintenance_window_response.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_instance_maintenance_window_response.py new file mode 100644 index 0000000000..780fdfef44 --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_instance_maintenance_window_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 ListInstanceMaintenanceWindowResponse(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 = { + 'maintenance_window': 'str' + } + + attribute_map = { + 'maintenance_window': 'maintenance_window' + } + + def __init__(self, maintenance_window=None): + """ListInstanceMaintenanceWindowResponse + + The model defined in huaweicloud sdk + + :param maintenance_window: 参数解释: 实例的可维护时间窗。 + :type maintenance_window: str + """ + + super(ListInstanceMaintenanceWindowResponse, self).__init__() + + self._maintenance_window = None + self.discriminator = None + + if maintenance_window is not None: + self.maintenance_window = maintenance_window + + @property + def maintenance_window(self): + """Gets the maintenance_window of this ListInstanceMaintenanceWindowResponse. + + 参数解释: 实例的可维护时间窗。 + + :return: The maintenance_window of this ListInstanceMaintenanceWindowResponse. + :rtype: str + """ + return self._maintenance_window + + @maintenance_window.setter + def maintenance_window(self, maintenance_window): + """Sets the maintenance_window of this ListInstanceMaintenanceWindowResponse. + + 参数解释: 实例的可维护时间窗。 + + :param maintenance_window: The maintenance_window of this ListInstanceMaintenanceWindowResponse. + :type maintenance_window: str + """ + self._maintenance_window = maintenance_window + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListInstanceMaintenanceWindowResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_nosql_task_list_request.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_nosql_task_list_request.py new file mode 100644 index 0000000000..5b3e0a1331 --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_nosql_task_list_request.py @@ -0,0 +1,289 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListNosqlTaskListRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'job_status': 'str', + 'instance_id': 'str', + 'start_time': 'str', + 'end_time': 'str', + 'offset': 'str', + 'limit': 'str' + } + + attribute_map = { + 'job_name': 'job_name', + 'job_status': 'job_status', + 'instance_id': 'instance_id', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, job_name=None, job_status=None, instance_id=None, start_time=None, end_time=None, offset=None, limit=None): + """ListNosqlTaskListRequest + + The model defined in huaweicloud sdk + + :param job_name: 任务名称,默认为空。对应取值如下:  \"REBOOT\":重启实例  \"RESIZE_FLAVOR\":变更实例的CPU和内存规格  \"UPGRADE_DATABASE\":补丁升级 + :type job_name: str + :param job_status: 任务执行状态,默认为空。 取值:  值为\"Pending\",表示任务未执行。  值为\"Running\",表示任务正在执行。  值为\"Completed\",表示任务执行成功。  值为\"Failed\",表示任务执行失败。  值为\"Canceled\",表示任务取消执行。 + :type job_status: str + :param instance_id: 实例ID,不传该值默认查所有符合条件的实例。 + :type instance_id: str + :param start_time: 任务创建起始时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100,不传默认为当前时间前七天。 + :type start_time: str + :param end_time: 任务创建结束时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100,不传默认为当前时间。 + :type end_time: str + :param offset: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0。 + :type offset: str + :param limit: 查询记录数。不传该参数时,默认为10,取值范围1-100。 + :type limit: str + """ + + + + self._job_name = None + self._job_status = None + self._instance_id = None + self._start_time = None + self._end_time = None + self._offset = None + self._limit = None + self.discriminator = None + + if job_name is not None: + self.job_name = job_name + if job_status is not None: + self.job_status = job_status + if instance_id is not None: + self.instance_id = instance_id + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + + @property + def job_name(self): + """Gets the job_name of this ListNosqlTaskListRequest. + + 任务名称,默认为空。对应取值如下:  \"REBOOT\":重启实例  \"RESIZE_FLAVOR\":变更实例的CPU和内存规格  \"UPGRADE_DATABASE\":补丁升级 + + :return: The job_name of this ListNosqlTaskListRequest. + :rtype: str + """ + return self._job_name + + @job_name.setter + def job_name(self, job_name): + """Sets the job_name of this ListNosqlTaskListRequest. + + 任务名称,默认为空。对应取值如下:  \"REBOOT\":重启实例  \"RESIZE_FLAVOR\":变更实例的CPU和内存规格  \"UPGRADE_DATABASE\":补丁升级 + + :param job_name: The job_name of this ListNosqlTaskListRequest. + :type job_name: str + """ + self._job_name = job_name + + @property + def job_status(self): + """Gets the job_status of this ListNosqlTaskListRequest. + + 任务执行状态,默认为空。 取值:  值为\"Pending\",表示任务未执行。  值为\"Running\",表示任务正在执行。  值为\"Completed\",表示任务执行成功。  值为\"Failed\",表示任务执行失败。  值为\"Canceled\",表示任务取消执行。 + + :return: The job_status of this ListNosqlTaskListRequest. + :rtype: str + """ + return self._job_status + + @job_status.setter + def job_status(self, job_status): + """Sets the job_status of this ListNosqlTaskListRequest. + + 任务执行状态,默认为空。 取值:  值为\"Pending\",表示任务未执行。  值为\"Running\",表示任务正在执行。  值为\"Completed\",表示任务执行成功。  值为\"Failed\",表示任务执行失败。  值为\"Canceled\",表示任务取消执行。 + + :param job_status: The job_status of this ListNosqlTaskListRequest. + :type job_status: str + """ + self._job_status = job_status + + @property + def instance_id(self): + """Gets the instance_id of this ListNosqlTaskListRequest. + + 实例ID,不传该值默认查所有符合条件的实例。 + + :return: The instance_id of this ListNosqlTaskListRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ListNosqlTaskListRequest. + + 实例ID,不传该值默认查所有符合条件的实例。 + + :param instance_id: The instance_id of this ListNosqlTaskListRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def start_time(self): + """Gets the start_time of this ListNosqlTaskListRequest. + + 任务创建起始时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100,不传默认为当前时间前七天。 + + :return: The start_time of this ListNosqlTaskListRequest. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ListNosqlTaskListRequest. + + 任务创建起始时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100,不传默认为当前时间前七天。 + + :param start_time: The start_time of this ListNosqlTaskListRequest. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ListNosqlTaskListRequest. + + 任务创建结束时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100,不传默认为当前时间。 + + :return: The end_time of this ListNosqlTaskListRequest. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ListNosqlTaskListRequest. + + 任务创建结束时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100,不传默认为当前时间。 + + :param end_time: The end_time of this ListNosqlTaskListRequest. + :type end_time: str + """ + self._end_time = end_time + + @property + def offset(self): + """Gets the offset of this ListNosqlTaskListRequest. + + 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0。 + + :return: The offset of this ListNosqlTaskListRequest. + :rtype: str + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListNosqlTaskListRequest. + + 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0。 + + :param offset: The offset of this ListNosqlTaskListRequest. + :type offset: str + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListNosqlTaskListRequest. + + 查询记录数。不传该参数时,默认为10,取值范围1-100。 + + :return: The limit of this ListNosqlTaskListRequest. + :rtype: str + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListNosqlTaskListRequest. + + 查询记录数。不传该参数时,默认为10,取值范围1-100。 + + :param limit: The limit of this ListNosqlTaskListRequest. + :type limit: str + """ + 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, ListNosqlTaskListRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_nosql_task_list_response.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_nosql_task_list_response.py new file mode 100644 index 0000000000..adff42028d --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_nosql_task_list_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 ListNosqlTaskListResponse(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': 'str', + 'schedules': 'list[ScheduleDetailInfo]' + } + + attribute_map = { + 'total_count': 'total_count', + 'schedules': 'schedules' + } + + def __init__(self, total_count=None, schedules=None): + """ListNosqlTaskListResponse + + The model defined in huaweicloud sdk + + :param total_count: 记录总数。 + :type total_count: str + :param schedules: 任务详情。 + :type schedules: list[:class:`huaweicloudsdkgaussdbfornosql.v3.ScheduleDetailInfo`] + """ + + super(ListNosqlTaskListResponse, self).__init__() + + self._total_count = None + self._schedules = None + self.discriminator = None + + if total_count is not None: + self.total_count = total_count + if schedules is not None: + self.schedules = schedules + + @property + def total_count(self): + """Gets the total_count of this ListNosqlTaskListResponse. + + 记录总数。 + + :return: The total_count of this ListNosqlTaskListResponse. + :rtype: str + """ + return self._total_count + + @total_count.setter + def total_count(self, total_count): + """Sets the total_count of this ListNosqlTaskListResponse. + + 记录总数。 + + :param total_count: The total_count of this ListNosqlTaskListResponse. + :type total_count: str + """ + self._total_count = total_count + + @property + def schedules(self): + """Gets the schedules of this ListNosqlTaskListResponse. + + 任务详情。 + + :return: The schedules of this ListNosqlTaskListResponse. + :rtype: list[:class:`huaweicloudsdkgaussdbfornosql.v3.ScheduleDetailInfo`] + """ + return self._schedules + + @schedules.setter + def schedules(self, schedules): + """Sets the schedules of this ListNosqlTaskListResponse. + + 任务详情。 + + :param schedules: The schedules of this ListNosqlTaskListResponse. + :type schedules: list[:class:`huaweicloudsdkgaussdbfornosql.v3.ScheduleDetailInfo`] + """ + self._schedules = schedules + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListNosqlTaskListResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/modify_instance_maintenance_window_request.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/modify_instance_maintenance_window_request.py new file mode 100644 index 0000000000..69729e33e1 --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/modify_instance_maintenance_window_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ModifyInstanceMaintenanceWindowRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'ModifyInstanceOpsWindowV3Req' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """ModifyInstanceMaintenanceWindowRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID。 + :type instance_id: str + :param body: Body of the ModifyInstanceMaintenanceWindowRequest + :type body: :class:`huaweicloudsdkgaussdbfornosql.v3.ModifyInstanceOpsWindowV3Req` + """ + + + + 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 ModifyInstanceMaintenanceWindowRequest. + + 实例ID。 + + :return: The instance_id of this ModifyInstanceMaintenanceWindowRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ModifyInstanceMaintenanceWindowRequest. + + 实例ID。 + + :param instance_id: The instance_id of this ModifyInstanceMaintenanceWindowRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this ModifyInstanceMaintenanceWindowRequest. + + :return: The body of this ModifyInstanceMaintenanceWindowRequest. + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ModifyInstanceOpsWindowV3Req` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ModifyInstanceMaintenanceWindowRequest. + + :param body: The body of this ModifyInstanceMaintenanceWindowRequest. + :type body: :class:`huaweicloudsdkgaussdbfornosql.v3.ModifyInstanceOpsWindowV3Req` + """ + 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, ModifyInstanceMaintenanceWindowRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/modify_instance_maintenance_window_response.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/modify_instance_maintenance_window_response.py new file mode 100644 index 0000000000..f7c0c18ec5 --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/modify_instance_maintenance_window_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 ModifyInstanceMaintenanceWindowResponse(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): + """ModifyInstanceMaintenanceWindowResponse + + The model defined in huaweicloud sdk + + """ + + super(ModifyInstanceMaintenanceWindowResponse, 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, ModifyInstanceMaintenanceWindowResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/modify_instance_ops_window_v3_req.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/modify_instance_ops_window_v3_req.py new file mode 100644 index 0000000000..5e51ff146e --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/modify_instance_ops_window_v3_req.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ModifyInstanceOpsWindowV3Req: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'start_time': 'str' + } + + attribute_map = { + 'start_time': 'start_time' + } + + def __init__(self, start_time=None): + """ModifyInstanceOpsWindowV3Req + + The model defined in huaweicloud sdk + + :param start_time: 参数解释: 开始时间,格式必须为HH:MM且有效,时间为UTC时间,只能为整点。结束时间默认与开始时间相隔四个小时。 约束限制: 不涉及。 + :type start_time: str + """ + + + + self._start_time = None + self.discriminator = None + + self.start_time = start_time + + @property + def start_time(self): + """Gets the start_time of this ModifyInstanceOpsWindowV3Req. + + 参数解释: 开始时间,格式必须为HH:MM且有效,时间为UTC时间,只能为整点。结束时间默认与开始时间相隔四个小时。 约束限制: 不涉及。 + + :return: The start_time of this ModifyInstanceOpsWindowV3Req. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ModifyInstanceOpsWindowV3Req. + + 参数解释: 开始时间,格式必须为HH:MM且有效,时间为UTC时间,只能为整点。结束时间默认与开始时间相隔四个小时。 约束限制: 不涉及。 + + :param start_time: The start_time of this ModifyInstanceOpsWindowV3Req. + :type start_time: str + """ + self._start_time = start_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, ModifyInstanceOpsWindowV3Req): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/query_db_cache_mapping_response.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/query_db_cache_mapping_response.py new file mode 100644 index 0000000000..e42600ca42 --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/query_db_cache_mapping_response.py @@ -0,0 +1,367 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class QueryDBCacheMappingResponse: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'source_instance_id': 'str', + 'source_instance_name': 'str', + 'target_instance_id': 'str', + 'target_instance_name': 'str', + 'status': 'str', + 'created': 'str', + 'updated': 'str', + 'rule_count': 'int' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'source_instance_id': 'source_instance_id', + 'source_instance_name': 'source_instance_name', + 'target_instance_id': 'target_instance_id', + 'target_instance_name': 'target_instance_name', + 'status': 'status', + 'created': 'created', + 'updated': 'updated', + 'rule_count': 'rule_count' + } + + def __init__(self, id=None, name=None, source_instance_id=None, source_instance_name=None, target_instance_id=None, target_instance_name=None, status=None, created=None, updated=None, rule_count=None): + """QueryDBCacheMappingResponse + + The model defined in huaweicloud sdk + + :param id: 内存加速映射ID。 + :type id: str + :param name: 内存加速映射名称。 + :type name: str + :param source_instance_id: 源实例ID。 + :type source_instance_id: str + :param source_instance_name: 源实例名称。 + :type source_instance_name: str + :param target_instance_id: 目标实例ID。 + :type target_instance_id: str + :param target_instance_name: 目标实例名称。 + :type target_instance_name: str + :param status: 内存加速映射关系。 - normal: 表示内存加速映射正常。 - creating: 表示内存加速映射创建中。 - createfail: 表示内存加速映射创建失败。 - deleting: 表示内存加速映射解除中。 - stopped: 表示内存加速映射停止。 - deleted: 表示内存加速映射已解除。 + :type status: str + :param created: 内存加速映射创建时间。 + :type created: str + :param updated: 内存加速映射最新变更的时间。 + :type updated: str + :param rule_count: 该内存加速映射下的规则数量。 + :type rule_count: int + """ + + + + self._id = None + self._name = None + self._source_instance_id = None + self._source_instance_name = None + self._target_instance_id = None + self._target_instance_name = None + self._status = None + self._created = None + self._updated = None + self._rule_count = None + self.discriminator = None + + self.id = id + self.name = name + self.source_instance_id = source_instance_id + self.source_instance_name = source_instance_name + self.target_instance_id = target_instance_id + self.target_instance_name = target_instance_name + self.status = status + self.created = created + self.updated = updated + if rule_count is not None: + self.rule_count = rule_count + + @property + def id(self): + """Gets the id of this QueryDBCacheMappingResponse. + + 内存加速映射ID。 + + :return: The id of this QueryDBCacheMappingResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this QueryDBCacheMappingResponse. + + 内存加速映射ID。 + + :param id: The id of this QueryDBCacheMappingResponse. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this QueryDBCacheMappingResponse. + + 内存加速映射名称。 + + :return: The name of this QueryDBCacheMappingResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this QueryDBCacheMappingResponse. + + 内存加速映射名称。 + + :param name: The name of this QueryDBCacheMappingResponse. + :type name: str + """ + self._name = name + + @property + def source_instance_id(self): + """Gets the source_instance_id of this QueryDBCacheMappingResponse. + + 源实例ID。 + + :return: The source_instance_id of this QueryDBCacheMappingResponse. + :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 QueryDBCacheMappingResponse. + + 源实例ID。 + + :param source_instance_id: The source_instance_id of this QueryDBCacheMappingResponse. + :type source_instance_id: str + """ + self._source_instance_id = source_instance_id + + @property + def source_instance_name(self): + """Gets the source_instance_name of this QueryDBCacheMappingResponse. + + 源实例名称。 + + :return: The source_instance_name of this QueryDBCacheMappingResponse. + :rtype: str + """ + return self._source_instance_name + + @source_instance_name.setter + def source_instance_name(self, source_instance_name): + """Sets the source_instance_name of this QueryDBCacheMappingResponse. + + 源实例名称。 + + :param source_instance_name: The source_instance_name of this QueryDBCacheMappingResponse. + :type source_instance_name: str + """ + self._source_instance_name = source_instance_name + + @property + def target_instance_id(self): + """Gets the target_instance_id of this QueryDBCacheMappingResponse. + + 目标实例ID。 + + :return: The target_instance_id of this QueryDBCacheMappingResponse. + :rtype: str + """ + return self._target_instance_id + + @target_instance_id.setter + def target_instance_id(self, target_instance_id): + """Sets the target_instance_id of this QueryDBCacheMappingResponse. + + 目标实例ID。 + + :param target_instance_id: The target_instance_id of this QueryDBCacheMappingResponse. + :type target_instance_id: str + """ + self._target_instance_id = target_instance_id + + @property + def target_instance_name(self): + """Gets the target_instance_name of this QueryDBCacheMappingResponse. + + 目标实例名称。 + + :return: The target_instance_name of this QueryDBCacheMappingResponse. + :rtype: str + """ + return self._target_instance_name + + @target_instance_name.setter + def target_instance_name(self, target_instance_name): + """Sets the target_instance_name of this QueryDBCacheMappingResponse. + + 目标实例名称。 + + :param target_instance_name: The target_instance_name of this QueryDBCacheMappingResponse. + :type target_instance_name: str + """ + self._target_instance_name = target_instance_name + + @property + def status(self): + """Gets the status of this QueryDBCacheMappingResponse. + + 内存加速映射关系。 - normal: 表示内存加速映射正常。 - creating: 表示内存加速映射创建中。 - createfail: 表示内存加速映射创建失败。 - deleting: 表示内存加速映射解除中。 - stopped: 表示内存加速映射停止。 - deleted: 表示内存加速映射已解除。 + + :return: The status of this QueryDBCacheMappingResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this QueryDBCacheMappingResponse. + + 内存加速映射关系。 - normal: 表示内存加速映射正常。 - creating: 表示内存加速映射创建中。 - createfail: 表示内存加速映射创建失败。 - deleting: 表示内存加速映射解除中。 - stopped: 表示内存加速映射停止。 - deleted: 表示内存加速映射已解除。 + + :param status: The status of this QueryDBCacheMappingResponse. + :type status: str + """ + self._status = status + + @property + def created(self): + """Gets the created of this QueryDBCacheMappingResponse. + + 内存加速映射创建时间。 + + :return: The created of this QueryDBCacheMappingResponse. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """Sets the created of this QueryDBCacheMappingResponse. + + 内存加速映射创建时间。 + + :param created: The created of this QueryDBCacheMappingResponse. + :type created: str + """ + self._created = created + + @property + def updated(self): + """Gets the updated of this QueryDBCacheMappingResponse. + + 内存加速映射最新变更的时间。 + + :return: The updated of this QueryDBCacheMappingResponse. + :rtype: str + """ + return self._updated + + @updated.setter + def updated(self, updated): + """Sets the updated of this QueryDBCacheMappingResponse. + + 内存加速映射最新变更的时间。 + + :param updated: The updated of this QueryDBCacheMappingResponse. + :type updated: str + """ + self._updated = updated + + @property + def rule_count(self): + """Gets the rule_count of this QueryDBCacheMappingResponse. + + 该内存加速映射下的规则数量。 + + :return: The rule_count of this QueryDBCacheMappingResponse. + :rtype: int + """ + return self._rule_count + + @rule_count.setter + def rule_count(self, rule_count): + """Sets the rule_count of this QueryDBCacheMappingResponse. + + 该内存加速映射下的规则数量。 + + :param rule_count: The rule_count of this QueryDBCacheMappingResponse. + :type rule_count: int + """ + self._rule_count = rule_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, QueryDBCacheMappingResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/query_db_cache_rule_response.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/query_db_cache_rule_response.py new file mode 100644 index 0000000000..8b45fb45b0 --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/query_db_cache_rule_response.py @@ -0,0 +1,462 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class QueryDBCacheRuleResponse: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'source_db_schema': 'str', + 'source_db_table': 'str', + 'storage_type': 'str', + 'target_database': 'str', + 'key_columns': 'list[str]', + 'value_columns': 'list[str]', + 'ttl': 'str', + 'key_separator': 'str', + 'value_separator': 'str', + 'key_prefix': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'status': 'status', + 'source_db_schema': 'source_db_schema', + 'source_db_table': 'source_db_table', + 'storage_type': 'storage_type', + 'target_database': 'target_database', + 'key_columns': 'key_columns', + 'value_columns': 'value_columns', + 'ttl': 'ttl', + 'key_separator': 'key_separator', + 'value_separator': 'value_separator', + 'key_prefix': 'key_prefix' + } + + def __init__(self, id=None, name=None, status=None, source_db_schema=None, source_db_table=None, storage_type=None, target_database=None, key_columns=None, value_columns=None, ttl=None, key_separator=None, value_separator=None, key_prefix=None): + """QueryDBCacheRuleResponse + + The model defined in huaweicloud sdk + + :param id: 内存加速规则ID。 + :type id: str + :param name: 内存加速规则名称。 + :type name: str + :param status: 内存加速规则状态。 - normal,正常; - createfail, 创建失败; + :type status: str + :param source_db_schema: 源端数据库。 + :type source_db_schema: str + :param source_db_table: 源端数据表。 + :type source_db_table: str + :param storage_type: 目标数据存储类型。取值为: hash。 + :type storage_type: str + :param target_database: 目标数据库。 + :type target_database: str + :param key_columns: 映射的key使用的column列表。 + :type key_columns: list[str] + :param value_columns: 映射的value使用的column列表。 + :type value_columns: list[str] + :param ttl: key的生存时间。单位:ms。不传该值,默认取-1,表示永久存储。 + :type ttl: str + :param key_separator: 映射的key分隔符。 + :type key_separator: str + :param value_separator: 映射的value分隔符。 + :type value_separator: str + :param key_prefix: 键前缀。 + :type key_prefix: str + """ + + + + self._id = None + self._name = None + self._status = None + self._source_db_schema = None + self._source_db_table = None + self._storage_type = None + self._target_database = None + self._key_columns = None + self._value_columns = None + self._ttl = None + self._key_separator = None + self._value_separator = None + self._key_prefix = None + self.discriminator = None + + self.id = id + if name is not None: + self.name = name + if status is not None: + self.status = status + if source_db_schema is not None: + self.source_db_schema = source_db_schema + if source_db_table is not None: + self.source_db_table = source_db_table + if storage_type is not None: + self.storage_type = storage_type + if target_database is not None: + self.target_database = target_database + if key_columns is not None: + self.key_columns = key_columns + if value_columns is not None: + self.value_columns = value_columns + if ttl is not None: + self.ttl = ttl + if key_separator is not None: + self.key_separator = key_separator + if value_separator is not None: + self.value_separator = value_separator + if key_prefix is not None: + self.key_prefix = key_prefix + + @property + def id(self): + """Gets the id of this QueryDBCacheRuleResponse. + + 内存加速规则ID。 + + :return: The id of this QueryDBCacheRuleResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this QueryDBCacheRuleResponse. + + 内存加速规则ID。 + + :param id: The id of this QueryDBCacheRuleResponse. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this QueryDBCacheRuleResponse. + + 内存加速规则名称。 + + :return: The name of this QueryDBCacheRuleResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this QueryDBCacheRuleResponse. + + 内存加速规则名称。 + + :param name: The name of this QueryDBCacheRuleResponse. + :type name: str + """ + self._name = name + + @property + def status(self): + """Gets the status of this QueryDBCacheRuleResponse. + + 内存加速规则状态。 - normal,正常; - createfail, 创建失败; + + :return: The status of this QueryDBCacheRuleResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this QueryDBCacheRuleResponse. + + 内存加速规则状态。 - normal,正常; - createfail, 创建失败; + + :param status: The status of this QueryDBCacheRuleResponse. + :type status: str + """ + self._status = status + + @property + def source_db_schema(self): + """Gets the source_db_schema of this QueryDBCacheRuleResponse. + + 源端数据库。 + + :return: The source_db_schema of this QueryDBCacheRuleResponse. + :rtype: str + """ + return self._source_db_schema + + @source_db_schema.setter + def source_db_schema(self, source_db_schema): + """Sets the source_db_schema of this QueryDBCacheRuleResponse. + + 源端数据库。 + + :param source_db_schema: The source_db_schema of this QueryDBCacheRuleResponse. + :type source_db_schema: str + """ + self._source_db_schema = source_db_schema + + @property + def source_db_table(self): + """Gets the source_db_table of this QueryDBCacheRuleResponse. + + 源端数据表。 + + :return: The source_db_table of this QueryDBCacheRuleResponse. + :rtype: str + """ + return self._source_db_table + + @source_db_table.setter + def source_db_table(self, source_db_table): + """Sets the source_db_table of this QueryDBCacheRuleResponse. + + 源端数据表。 + + :param source_db_table: The source_db_table of this QueryDBCacheRuleResponse. + :type source_db_table: str + """ + self._source_db_table = source_db_table + + @property + def storage_type(self): + """Gets the storage_type of this QueryDBCacheRuleResponse. + + 目标数据存储类型。取值为: hash。 + + :return: The storage_type of this QueryDBCacheRuleResponse. + :rtype: str + """ + return self._storage_type + + @storage_type.setter + def storage_type(self, storage_type): + """Sets the storage_type of this QueryDBCacheRuleResponse. + + 目标数据存储类型。取值为: hash。 + + :param storage_type: The storage_type of this QueryDBCacheRuleResponse. + :type storage_type: str + """ + self._storage_type = storage_type + + @property + def target_database(self): + """Gets the target_database of this QueryDBCacheRuleResponse. + + 目标数据库。 + + :return: The target_database of this QueryDBCacheRuleResponse. + :rtype: str + """ + return self._target_database + + @target_database.setter + def target_database(self, target_database): + """Sets the target_database of this QueryDBCacheRuleResponse. + + 目标数据库。 + + :param target_database: The target_database of this QueryDBCacheRuleResponse. + :type target_database: str + """ + self._target_database = target_database + + @property + def key_columns(self): + """Gets the key_columns of this QueryDBCacheRuleResponse. + + 映射的key使用的column列表。 + + :return: The key_columns of this QueryDBCacheRuleResponse. + :rtype: list[str] + """ + return self._key_columns + + @key_columns.setter + def key_columns(self, key_columns): + """Sets the key_columns of this QueryDBCacheRuleResponse. + + 映射的key使用的column列表。 + + :param key_columns: The key_columns of this QueryDBCacheRuleResponse. + :type key_columns: list[str] + """ + self._key_columns = key_columns + + @property + def value_columns(self): + """Gets the value_columns of this QueryDBCacheRuleResponse. + + 映射的value使用的column列表。 + + :return: The value_columns of this QueryDBCacheRuleResponse. + :rtype: list[str] + """ + return self._value_columns + + @value_columns.setter + def value_columns(self, value_columns): + """Sets the value_columns of this QueryDBCacheRuleResponse. + + 映射的value使用的column列表。 + + :param value_columns: The value_columns of this QueryDBCacheRuleResponse. + :type value_columns: list[str] + """ + self._value_columns = value_columns + + @property + def ttl(self): + """Gets the ttl of this QueryDBCacheRuleResponse. + + key的生存时间。单位:ms。不传该值,默认取-1,表示永久存储。 + + :return: The ttl of this QueryDBCacheRuleResponse. + :rtype: str + """ + return self._ttl + + @ttl.setter + def ttl(self, ttl): + """Sets the ttl of this QueryDBCacheRuleResponse. + + key的生存时间。单位:ms。不传该值,默认取-1,表示永久存储。 + + :param ttl: The ttl of this QueryDBCacheRuleResponse. + :type ttl: str + """ + self._ttl = ttl + + @property + def key_separator(self): + """Gets the key_separator of this QueryDBCacheRuleResponse. + + 映射的key分隔符。 + + :return: The key_separator of this QueryDBCacheRuleResponse. + :rtype: str + """ + return self._key_separator + + @key_separator.setter + def key_separator(self, key_separator): + """Sets the key_separator of this QueryDBCacheRuleResponse. + + 映射的key分隔符。 + + :param key_separator: The key_separator of this QueryDBCacheRuleResponse. + :type key_separator: str + """ + self._key_separator = key_separator + + @property + def value_separator(self): + """Gets the value_separator of this QueryDBCacheRuleResponse. + + 映射的value分隔符。 + + :return: The value_separator of this QueryDBCacheRuleResponse. + :rtype: str + """ + return self._value_separator + + @value_separator.setter + def value_separator(self, value_separator): + """Sets the value_separator of this QueryDBCacheRuleResponse. + + 映射的value分隔符。 + + :param value_separator: The value_separator of this QueryDBCacheRuleResponse. + :type value_separator: str + """ + self._value_separator = value_separator + + @property + def key_prefix(self): + """Gets the key_prefix of this QueryDBCacheRuleResponse. + + 键前缀。 + + :return: The key_prefix of this QueryDBCacheRuleResponse. + :rtype: str + """ + return self._key_prefix + + @key_prefix.setter + def key_prefix(self, key_prefix): + """Sets the key_prefix of this QueryDBCacheRuleResponse. + + 键前缀。 + + :param key_prefix: The key_prefix of this QueryDBCacheRuleResponse. + :type key_prefix: str + """ + self._key_prefix = key_prefix + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, QueryDBCacheRuleResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/schedule_detail_info.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/schedule_detail_info.py new file mode 100644 index 0000000000..601fadd7eb --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/schedule_detail_info.py @@ -0,0 +1,366 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ScheduleDetailInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'job_name': 'str', + 'job_status': 'str', + 'instance_id': 'str', + 'instance_name': 'str', + 'instance_status': 'str', + 'datastore_type': 'str', + 'create_time': 'str', + 'start_time': 'str', + 'end_time': 'str' + } + + attribute_map = { + 'job_id': 'job_id', + 'job_name': 'job_name', + 'job_status': 'job_status', + 'instance_id': 'instance_id', + 'instance_name': 'instance_name', + 'instance_status': 'instance_status', + 'datastore_type': 'datastore_type', + 'create_time': 'create_time', + 'start_time': 'start_time', + 'end_time': 'end_time' + } + + def __init__(self, job_id=None, job_name=None, job_status=None, instance_id=None, instance_name=None, instance_status=None, datastore_type=None, create_time=None, start_time=None, end_time=None): + """ScheduleDetailInfo + + The model defined in huaweicloud sdk + + :param job_id: 任务ID。 + :type job_id: str + :param job_name: 任务名称。对应取值如下:  \"REBOOT\":重启实例  \"RESIZE_FLAVOR\":变更实例的CPU和内存规格  \"UPGRADE_DATABASE\":补丁升级 + :type job_name: str + :param job_status: 任务执行状态。 取值:  值为\"Running\",表示任务正在执行。  值为\"Completed\",表示任务执行成功。  值为\"Failed\",表示任务执行失败。  值为\"Pending\",表示任务未执行。  值为\"Canceled\",表示任务取消执行。 + :type job_status: str + :param instance_id: 实例ID。 + :type instance_id: str + :param instance_name: 实例名称。 + :type instance_name: str + :param instance_status: 实例状态。 取值:  值为“createfail”,表示实例创建失败。  值为“creating”,表示实例创建中。  值为“normal”,表示实例正常。  值为“abnormal”,表示实例异常。  值为“deleted”,表示实例已删除。 + :type instance_status: str + :param datastore_type: 数据库类型。取值:  GaussDB(for Cassandra)  GaussDB(for Mongo)  GaussDB(for Influx)  GaussDB(for Redis) + :type datastore_type: str + :param create_time: 任务创建时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 + :type create_time: str + :param start_time: 任务开始时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 + :type start_time: str + :param end_time: 任务结束时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 + :type end_time: str + """ + + + + self._job_id = None + self._job_name = None + self._job_status = None + self._instance_id = None + self._instance_name = None + self._instance_status = None + self._datastore_type = None + self._create_time = None + self._start_time = None + self._end_time = None + self.discriminator = None + + self.job_id = job_id + self.job_name = job_name + self.job_status = job_status + self.instance_id = instance_id + self.instance_name = instance_name + self.instance_status = instance_status + self.datastore_type = datastore_type + self.create_time = create_time + self.start_time = start_time + self.end_time = end_time + + @property + def job_id(self): + """Gets the job_id of this ScheduleDetailInfo. + + 任务ID。 + + :return: The job_id of this ScheduleDetailInfo. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this ScheduleDetailInfo. + + 任务ID。 + + :param job_id: The job_id of this ScheduleDetailInfo. + :type job_id: str + """ + self._job_id = job_id + + @property + def job_name(self): + """Gets the job_name of this ScheduleDetailInfo. + + 任务名称。对应取值如下:  \"REBOOT\":重启实例  \"RESIZE_FLAVOR\":变更实例的CPU和内存规格  \"UPGRADE_DATABASE\":补丁升级 + + :return: The job_name of this ScheduleDetailInfo. + :rtype: str + """ + return self._job_name + + @job_name.setter + def job_name(self, job_name): + """Sets the job_name of this ScheduleDetailInfo. + + 任务名称。对应取值如下:  \"REBOOT\":重启实例  \"RESIZE_FLAVOR\":变更实例的CPU和内存规格  \"UPGRADE_DATABASE\":补丁升级 + + :param job_name: The job_name of this ScheduleDetailInfo. + :type job_name: str + """ + self._job_name = job_name + + @property + def job_status(self): + """Gets the job_status of this ScheduleDetailInfo. + + 任务执行状态。 取值:  值为\"Running\",表示任务正在执行。  值为\"Completed\",表示任务执行成功。  值为\"Failed\",表示任务执行失败。  值为\"Pending\",表示任务未执行。  值为\"Canceled\",表示任务取消执行。 + + :return: The job_status of this ScheduleDetailInfo. + :rtype: str + """ + return self._job_status + + @job_status.setter + def job_status(self, job_status): + """Sets the job_status of this ScheduleDetailInfo. + + 任务执行状态。 取值:  值为\"Running\",表示任务正在执行。  值为\"Completed\",表示任务执行成功。  值为\"Failed\",表示任务执行失败。  值为\"Pending\",表示任务未执行。  值为\"Canceled\",表示任务取消执行。 + + :param job_status: The job_status of this ScheduleDetailInfo. + :type job_status: str + """ + self._job_status = job_status + + @property + def instance_id(self): + """Gets the instance_id of this ScheduleDetailInfo. + + 实例ID。 + + :return: The instance_id of this ScheduleDetailInfo. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ScheduleDetailInfo. + + 实例ID。 + + :param instance_id: The instance_id of this ScheduleDetailInfo. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def instance_name(self): + """Gets the instance_name of this ScheduleDetailInfo. + + 实例名称。 + + :return: The instance_name of this ScheduleDetailInfo. + :rtype: str + """ + return self._instance_name + + @instance_name.setter + def instance_name(self, instance_name): + """Sets the instance_name of this ScheduleDetailInfo. + + 实例名称。 + + :param instance_name: The instance_name of this ScheduleDetailInfo. + :type instance_name: str + """ + self._instance_name = instance_name + + @property + def instance_status(self): + """Gets the instance_status of this ScheduleDetailInfo. + + 实例状态。 取值:  值为“createfail”,表示实例创建失败。  值为“creating”,表示实例创建中。  值为“normal”,表示实例正常。  值为“abnormal”,表示实例异常。  值为“deleted”,表示实例已删除。 + + :return: The instance_status of this ScheduleDetailInfo. + :rtype: str + """ + return self._instance_status + + @instance_status.setter + def instance_status(self, instance_status): + """Sets the instance_status of this ScheduleDetailInfo. + + 实例状态。 取值:  值为“createfail”,表示实例创建失败。  值为“creating”,表示实例创建中。  值为“normal”,表示实例正常。  值为“abnormal”,表示实例异常。  值为“deleted”,表示实例已删除。 + + :param instance_status: The instance_status of this ScheduleDetailInfo. + :type instance_status: str + """ + self._instance_status = instance_status + + @property + def datastore_type(self): + """Gets the datastore_type of this ScheduleDetailInfo. + + 数据库类型。取值:  GaussDB(for Cassandra)  GaussDB(for Mongo)  GaussDB(for Influx)  GaussDB(for Redis) + + :return: The datastore_type of this ScheduleDetailInfo. + :rtype: str + """ + return self._datastore_type + + @datastore_type.setter + def datastore_type(self, datastore_type): + """Sets the datastore_type of this ScheduleDetailInfo. + + 数据库类型。取值:  GaussDB(for Cassandra)  GaussDB(for Mongo)  GaussDB(for Influx)  GaussDB(for Redis) + + :param datastore_type: The datastore_type of this ScheduleDetailInfo. + :type datastore_type: str + """ + self._datastore_type = datastore_type + + @property + def create_time(self): + """Gets the create_time of this ScheduleDetailInfo. + + 任务创建时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 + + :return: The create_time of this ScheduleDetailInfo. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ScheduleDetailInfo. + + 任务创建时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 + + :param create_time: The create_time of this ScheduleDetailInfo. + :type create_time: str + """ + self._create_time = create_time + + @property + def start_time(self): + """Gets the start_time of this ScheduleDetailInfo. + + 任务开始时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 + + :return: The start_time of this ScheduleDetailInfo. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ScheduleDetailInfo. + + 任务开始时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 + + :param start_time: The start_time of this ScheduleDetailInfo. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ScheduleDetailInfo. + + 任务结束时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 + + :return: The end_time of this ScheduleDetailInfo. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ScheduleDetailInfo. + + 任务结束时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 + + :param end_time: The end_time of this ScheduleDetailInfo. + :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, ScheduleDetailInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/set_instance_data_dump_request.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/set_instance_data_dump_request.py new file mode 100644 index 0000000000..299ed8b970 --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/set_instance_data_dump_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SetInstanceDataDumpRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'SetInstanceDataDumpRequestBody' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """SetInstanceDataDumpRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID。 + :type instance_id: str + :param body: Body of the SetInstanceDataDumpRequest + :type body: :class:`huaweicloudsdkgaussdbfornosql.v3.SetInstanceDataDumpRequestBody` + """ + + + + 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 SetInstanceDataDumpRequest. + + 实例ID。 + + :return: The instance_id of this SetInstanceDataDumpRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this SetInstanceDataDumpRequest. + + 实例ID。 + + :param instance_id: The instance_id of this SetInstanceDataDumpRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this SetInstanceDataDumpRequest. + + :return: The body of this SetInstanceDataDumpRequest. + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.SetInstanceDataDumpRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this SetInstanceDataDumpRequest. + + :param body: The body of this SetInstanceDataDumpRequest. + :type body: :class:`huaweicloudsdkgaussdbfornosql.v3.SetInstanceDataDumpRequestBody` + """ + 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, SetInstanceDataDumpRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/set_instance_data_dump_request_body.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/set_instance_data_dump_request_body.py new file mode 100644 index 0000000000..3fe7336431 --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/set_instance_data_dump_request_body.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SetInstanceDataDumpRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'bucket_name': 'str', + 'action': 'str' + } + + attribute_map = { + 'bucket_name': 'bucket_name', + 'action': 'action' + } + + def __init__(self, bucket_name=None, action=None): + """SetInstanceDataDumpRequestBody + + The model defined in huaweicloud sdk + + :param bucket_name: OBS桶名。 + :type bucket_name: str + :param action: 开启/关闭实例数据导出。 + :type action: str + """ + + + + self._bucket_name = None + self._action = None + self.discriminator = None + + self.bucket_name = bucket_name + self.action = action + + @property + def bucket_name(self): + """Gets the bucket_name of this SetInstanceDataDumpRequestBody. + + OBS桶名。 + + :return: The bucket_name of this SetInstanceDataDumpRequestBody. + :rtype: str + """ + return self._bucket_name + + @bucket_name.setter + def bucket_name(self, bucket_name): + """Sets the bucket_name of this SetInstanceDataDumpRequestBody. + + OBS桶名。 + + :param bucket_name: The bucket_name of this SetInstanceDataDumpRequestBody. + :type bucket_name: str + """ + self._bucket_name = bucket_name + + @property + def action(self): + """Gets the action of this SetInstanceDataDumpRequestBody. + + 开启/关闭实例数据导出。 + + :return: The action of this SetInstanceDataDumpRequestBody. + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this SetInstanceDataDumpRequestBody. + + 开启/关闭实例数据导出。 + + :param action: The action of this SetInstanceDataDumpRequestBody. + :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, SetInstanceDataDumpRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/set_instance_data_dump_response.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/set_instance_data_dump_response.py new file mode 100644 index 0000000000..dd233e5c7c --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/set_instance_data_dump_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 SetInstanceDataDumpResponse(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): + """SetInstanceDataDumpResponse + + The model defined in huaweicloud sdk + + """ + + super(SetInstanceDataDumpResponse, 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, SetInstanceDataDumpResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/show_backup_policies_request.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/show_backup_policies_request.py new file mode 100644 index 0000000000..78b48db8e4 --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/show_backup_policies_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowBackupPoliciesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """ShowBackupPoliciesRequest + + 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 ShowBackupPoliciesRequest. + + 实例ID。 + + :return: The instance_id of this ShowBackupPoliciesRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowBackupPoliciesRequest. + + 实例ID。 + + :param instance_id: The instance_id of this ShowBackupPoliciesRequest. + :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, ShowBackupPoliciesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_moderation_audio_response.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/show_backup_policies_response.py similarity index 64% rename from huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_moderation_audio_response.py rename to huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/show_backup_policies_response.py index b848095c6b..1ff53633e7 100644 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_moderation_audio_response.py +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/show_backup_policies_response.py @@ -6,7 +6,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RunModerationAudioResponse(SdkResponse): +class ShowBackupPoliciesResponse(SdkResponse): """ Attributes: @@ -18,47 +18,47 @@ class RunModerationAudioResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'result': 'RunModerationAudioResponseBodyResult' + 'backup_policy': 'ShowBackupPolicyResult' } attribute_map = { - 'result': 'result' + 'backup_policy': 'backup_policy' } - def __init__(self, result=None): - """RunModerationAudioResponse + def __init__(self, backup_policy=None): + """ShowBackupPoliciesResponse The model defined in huaweicloud sdk - :param result: - :type result: :class:`huaweicloudsdkmoderation.v2.RunModerationAudioResponseBodyResult` + :param backup_policy: + :type backup_policy: :class:`huaweicloudsdkgaussdbfornosql.v3.ShowBackupPolicyResult` """ - super(RunModerationAudioResponse, self).__init__() + super(ShowBackupPoliciesResponse, self).__init__() - self._result = None + self._backup_policy = None self.discriminator = None - if result is not None: - self.result = result + if backup_policy is not None: + self.backup_policy = backup_policy @property - def result(self): - """Gets the result of this RunModerationAudioResponse. + def backup_policy(self): + """Gets the backup_policy of this ShowBackupPoliciesResponse. - :return: The result of this RunModerationAudioResponse. - :rtype: :class:`huaweicloudsdkmoderation.v2.RunModerationAudioResponseBodyResult` + :return: The backup_policy of this ShowBackupPoliciesResponse. + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ShowBackupPolicyResult` """ - return self._result + return self._backup_policy - @result.setter - def result(self, result): - """Sets the result of this RunModerationAudioResponse. + @backup_policy.setter + def backup_policy(self, backup_policy): + """Sets the backup_policy of this ShowBackupPoliciesResponse. - :param result: The result of this RunModerationAudioResponse. - :type result: :class:`huaweicloudsdkmoderation.v2.RunModerationAudioResponseBodyResult` + :param backup_policy: The backup_policy of this ShowBackupPoliciesResponse. + :type backup_policy: :class:`huaweicloudsdkgaussdbfornosql.v3.ShowBackupPolicyResult` """ - self._result = result + self._backup_policy = backup_policy def to_dict(self): """Returns the model properties as a dict""" @@ -102,7 +102,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RunModerationAudioResponse): + if not isinstance(other, ShowBackupPoliciesResponse): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/bss_param2.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/show_second_level_monitoring_status_request.py similarity index 68% rename from huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/bss_param2.py rename to huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/show_second_level_monitoring_status_request.py index d66f7b7057..d33411f074 100644 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/bss_param2.py +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/show_second_level_monitoring_status_request.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class BssParam2: +class ShowSecondLevelMonitoringStatusRequest: """ Attributes: @@ -17,51 +17,50 @@ class BssParam2: sensitive_list = [] openapi_types = { - 'is_auto_pay': 'bool' + 'instance_id': 'str' } attribute_map = { - 'is_auto_pay': 'is_auto_pay' + 'instance_id': 'instance_id' } - def __init__(self, is_auto_pay=None): - """BssParam2 + def __init__(self, instance_id=None): + """ShowSecondLevelMonitoringStatusRequest The model defined in huaweicloud sdk - :param is_auto_pay: 云硬盘的计费模式转成包周期后,是否自动支付 - :type is_auto_pay: bool + :param instance_id: 实例ID。 + :type instance_id: str """ - self._is_auto_pay = None + self._instance_id = None self.discriminator = None - if is_auto_pay is not None: - self.is_auto_pay = is_auto_pay + self.instance_id = instance_id @property - def is_auto_pay(self): - """Gets the is_auto_pay of this BssParam2. + def instance_id(self): + """Gets the instance_id of this ShowSecondLevelMonitoringStatusRequest. - 云硬盘的计费模式转成包周期后,是否自动支付 + 实例ID。 - :return: The is_auto_pay of this BssParam2. - :rtype: bool + :return: The instance_id of this ShowSecondLevelMonitoringStatusRequest. + :rtype: str """ - return self._is_auto_pay + return self._instance_id - @is_auto_pay.setter - def is_auto_pay(self, is_auto_pay): - """Sets the is_auto_pay of this BssParam2. + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowSecondLevelMonitoringStatusRequest. - 云硬盘的计费模式转成包周期后,是否自动支付 + 实例ID。 - :param is_auto_pay: The is_auto_pay of this BssParam2. - :type is_auto_pay: bool + :param instance_id: The instance_id of this ShowSecondLevelMonitoringStatusRequest. + :type instance_id: str """ - self._is_auto_pay = is_auto_pay + self._instance_id = instance_id def to_dict(self): """Returns the model properties as a dict""" @@ -105,7 +104,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, BssParam2): + if not isinstance(other, ShowSecondLevelMonitoringStatusRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/show_second_level_monitoring_status_response.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/show_second_level_monitoring_status_response.py new file mode 100644 index 0000000000..4039b3669b --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/show_second_level_monitoring_status_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 ShowSecondLevelMonitoringStatusResponse(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 = { + 'enabled': 'bool' + } + + attribute_map = { + 'enabled': 'enabled' + } + + def __init__(self, enabled=None): + """ShowSecondLevelMonitoringStatusResponse + + The model defined in huaweicloud sdk + + :param enabled: 秒级监控开启状态。 - true: 开启; - false: 关闭。 + :type enabled: bool + """ + + super(ShowSecondLevelMonitoringStatusResponse, self).__init__() + + self._enabled = None + self.discriminator = None + + if enabled is not None: + self.enabled = enabled + + @property + def enabled(self): + """Gets the enabled of this ShowSecondLevelMonitoringStatusResponse. + + 秒级监控开启状态。 - true: 开启; - false: 关闭。 + + :return: The enabled of this ShowSecondLevelMonitoringStatusResponse. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """Sets the enabled of this ShowSecondLevelMonitoringStatusResponse. + + 秒级监控开启状态。 - true: 开启; - false: 关闭。 + + :param enabled: The enabled of this ShowSecondLevelMonitoringStatusResponse. + :type enabled: bool + """ + self._enabled = enabled + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowSecondLevelMonitoringStatusResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/switch_second_level_monitoring_request.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/switch_second_level_monitoring_request.py new file mode 100644 index 0000000000..4114c6d30d --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/switch_second_level_monitoring_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SwitchSecondLevelMonitoringRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'SwitchSecondLevelMonitoringRequestBody' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """SwitchSecondLevelMonitoringRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID。 + :type instance_id: str + :param body: Body of the SwitchSecondLevelMonitoringRequest + :type body: :class:`huaweicloudsdkgaussdbfornosql.v3.SwitchSecondLevelMonitoringRequestBody` + """ + + + + 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 SwitchSecondLevelMonitoringRequest. + + 实例ID。 + + :return: The instance_id of this SwitchSecondLevelMonitoringRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this SwitchSecondLevelMonitoringRequest. + + 实例ID。 + + :param instance_id: The instance_id of this SwitchSecondLevelMonitoringRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this SwitchSecondLevelMonitoringRequest. + + :return: The body of this SwitchSecondLevelMonitoringRequest. + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.SwitchSecondLevelMonitoringRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this SwitchSecondLevelMonitoringRequest. + + :param body: The body of this SwitchSecondLevelMonitoringRequest. + :type body: :class:`huaweicloudsdkgaussdbfornosql.v3.SwitchSecondLevelMonitoringRequestBody` + """ + 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, SwitchSecondLevelMonitoringRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/switch_second_level_monitoring_request_body.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/switch_second_level_monitoring_request_body.py new file mode 100644 index 0000000000..d7bc469461 --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/switch_second_level_monitoring_request_body.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SwitchSecondLevelMonitoringRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'enabled': 'bool' + } + + attribute_map = { + 'enabled': 'enabled' + } + + def __init__(self, enabled=None): + """SwitchSecondLevelMonitoringRequestBody + + The model defined in huaweicloud sdk + + :param enabled: 是否开启秒级监控。 - true: 开启; - false: 关闭。 + :type enabled: bool + """ + + + + self._enabled = None + self.discriminator = None + + self.enabled = enabled + + @property + def enabled(self): + """Gets the enabled of this SwitchSecondLevelMonitoringRequestBody. + + 是否开启秒级监控。 - true: 开启; - false: 关闭。 + + :return: The enabled of this SwitchSecondLevelMonitoringRequestBody. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """Sets the enabled of this SwitchSecondLevelMonitoringRequestBody. + + 是否开启秒级监控。 - true: 开启; - false: 关闭。 + + :param enabled: The enabled of this SwitchSecondLevelMonitoringRequestBody. + :type enabled: bool + """ + self._enabled = enabled + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SwitchSecondLevelMonitoringRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/switch_second_level_monitoring_response.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/switch_second_level_monitoring_response.py new file mode 100644 index 0000000000..5188e59b4b --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/switch_second_level_monitoring_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 SwitchSecondLevelMonitoringResponse(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): + """SwitchSecondLevelMonitoringResponse + + The model defined in huaweicloud sdk + + """ + + super(SwitchSecondLevelMonitoringResponse, 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, SwitchSecondLevelMonitoringResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_text_moderation_request.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/update_db_cache_rule_request.py similarity index 76% rename from huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_text_moderation_request.py rename to huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/update_db_cache_rule_request.py index 2a7260c6e9..e22da0f061 100644 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_text_moderation_request.py +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/update_db_cache_rule_request.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RunTextModerationRequest: +class UpdateDbCacheRuleRequest: """ Attributes: @@ -17,7 +17,7 @@ class RunTextModerationRequest: sensitive_list = [] openapi_types = { - 'body': 'TextDetectionReq' + 'body': 'UpdateDbCacheRuleRequestBody' } attribute_map = { @@ -25,12 +25,12 @@ class RunTextModerationRequest: } def __init__(self, body=None): - """RunTextModerationRequest + """UpdateDbCacheRuleRequest The model defined in huaweicloud sdk - :param body: Body of the RunTextModerationRequest - :type body: :class:`huaweicloudsdkmoderation.v2.TextDetectionReq` + :param body: Body of the UpdateDbCacheRuleRequest + :type body: :class:`huaweicloudsdkgaussdbfornosql.v3.UpdateDbCacheRuleRequestBody` """ @@ -43,19 +43,19 @@ def __init__(self, body=None): @property def body(self): - """Gets the body of this RunTextModerationRequest. + """Gets the body of this UpdateDbCacheRuleRequest. - :return: The body of this RunTextModerationRequest. - :rtype: :class:`huaweicloudsdkmoderation.v2.TextDetectionReq` + :return: The body of this UpdateDbCacheRuleRequest. + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.UpdateDbCacheRuleRequestBody` """ return self._body @body.setter def body(self, body): - """Sets the body of this RunTextModerationRequest. + """Sets the body of this UpdateDbCacheRuleRequest. - :param body: The body of this RunTextModerationRequest. - :type body: :class:`huaweicloudsdkmoderation.v2.TextDetectionReq` + :param body: The body of this UpdateDbCacheRuleRequest. + :type body: :class:`huaweicloudsdkgaussdbfornosql.v3.UpdateDbCacheRuleRequestBody` """ self._body = body @@ -101,7 +101,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RunTextModerationRequest): + if not isinstance(other, UpdateDbCacheRuleRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/update_db_cache_rule_request_body.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/update_db_cache_rule_request_body.py new file mode 100644 index 0000000000..76c951dd61 --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/update_db_cache_rule_request_body.py @@ -0,0 +1,200 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateDbCacheRuleRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'dbcache_rule_id': 'str', + 'value_columns': 'list[str]', + 'ttl': 'str', + 'value_separator': 'str' + } + + attribute_map = { + 'dbcache_rule_id': 'dbcache_rule_id', + 'value_columns': 'value_columns', + 'ttl': 'ttl', + 'value_separator': 'value_separator' + } + + def __init__(self, dbcache_rule_id=None, value_columns=None, ttl=None, value_separator=None): + """UpdateDbCacheRuleRequestBody + + The model defined in huaweicloud sdk + + :param dbcache_rule_id: 内存加速规则ID。 + :type dbcache_rule_id: str + :param value_columns: 映射的value使用的column列表。 + :type value_columns: list[str] + :param ttl: key的生存时间。单位:ms。不传该值,默认取2592000000,表示30天。 + :type ttl: str + :param value_separator: 映射的value分隔符。只允许一个字符。 + :type value_separator: str + """ + + + + self._dbcache_rule_id = None + self._value_columns = None + self._ttl = None + self._value_separator = None + self.discriminator = None + + self.dbcache_rule_id = dbcache_rule_id + self.value_columns = value_columns + if ttl is not None: + self.ttl = ttl + if value_separator is not None: + self.value_separator = value_separator + + @property + def dbcache_rule_id(self): + """Gets the dbcache_rule_id of this UpdateDbCacheRuleRequestBody. + + 内存加速规则ID。 + + :return: The dbcache_rule_id of this UpdateDbCacheRuleRequestBody. + :rtype: str + """ + return self._dbcache_rule_id + + @dbcache_rule_id.setter + def dbcache_rule_id(self, dbcache_rule_id): + """Sets the dbcache_rule_id of this UpdateDbCacheRuleRequestBody. + + 内存加速规则ID。 + + :param dbcache_rule_id: The dbcache_rule_id of this UpdateDbCacheRuleRequestBody. + :type dbcache_rule_id: str + """ + self._dbcache_rule_id = dbcache_rule_id + + @property + def value_columns(self): + """Gets the value_columns of this UpdateDbCacheRuleRequestBody. + + 映射的value使用的column列表。 + + :return: The value_columns of this UpdateDbCacheRuleRequestBody. + :rtype: list[str] + """ + return self._value_columns + + @value_columns.setter + def value_columns(self, value_columns): + """Sets the value_columns of this UpdateDbCacheRuleRequestBody. + + 映射的value使用的column列表。 + + :param value_columns: The value_columns of this UpdateDbCacheRuleRequestBody. + :type value_columns: list[str] + """ + self._value_columns = value_columns + + @property + def ttl(self): + """Gets the ttl of this UpdateDbCacheRuleRequestBody. + + key的生存时间。单位:ms。不传该值,默认取2592000000,表示30天。 + + :return: The ttl of this UpdateDbCacheRuleRequestBody. + :rtype: str + """ + return self._ttl + + @ttl.setter + def ttl(self, ttl): + """Sets the ttl of this UpdateDbCacheRuleRequestBody. + + key的生存时间。单位:ms。不传该值,默认取2592000000,表示30天。 + + :param ttl: The ttl of this UpdateDbCacheRuleRequestBody. + :type ttl: str + """ + self._ttl = ttl + + @property + def value_separator(self): + """Gets the value_separator of this UpdateDbCacheRuleRequestBody. + + 映射的value分隔符。只允许一个字符。 + + :return: The value_separator of this UpdateDbCacheRuleRequestBody. + :rtype: str + """ + return self._value_separator + + @value_separator.setter + def value_separator(self, value_separator): + """Sets the value_separator of this UpdateDbCacheRuleRequestBody. + + 映射的value分隔符。只允许一个字符。 + + :param value_separator: The value_separator of this UpdateDbCacheRuleRequestBody. + :type value_separator: str + """ + self._value_separator = value_separator + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateDbCacheRuleRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/update_db_cache_rule_response.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/update_db_cache_rule_response.py new file mode 100644 index 0000000000..edc66208ca --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/update_db_cache_rule_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 UpdateDbCacheRuleResponse(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): + """UpdateDbCacheRuleResponse + + The model defined in huaweicloud sdk + + """ + + super(UpdateDbCacheRuleResponse, 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, UpdateDbCacheRuleResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/update_instance_configurations_request.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/update_instance_configurations_request.py new file mode 100644 index 0000000000..4dfb949c02 --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/update_instance_configurations_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateInstanceConfigurationsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'UpdateInstanceConfigurationsRequestBody' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """UpdateInstanceConfigurationsRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID。 + :type instance_id: str + :param body: Body of the UpdateInstanceConfigurationsRequest + :type body: :class:`huaweicloudsdkgaussdbfornosql.v3.UpdateInstanceConfigurationsRequestBody` + """ + + + + 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 UpdateInstanceConfigurationsRequest. + + 实例ID。 + + :return: The instance_id of this UpdateInstanceConfigurationsRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UpdateInstanceConfigurationsRequest. + + 实例ID。 + + :param instance_id: The instance_id of this UpdateInstanceConfigurationsRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this UpdateInstanceConfigurationsRequest. + + :return: The body of this UpdateInstanceConfigurationsRequest. + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.UpdateInstanceConfigurationsRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateInstanceConfigurationsRequest. + + :param body: The body of this UpdateInstanceConfigurationsRequest. + :type body: :class:`huaweicloudsdkgaussdbfornosql.v3.UpdateInstanceConfigurationsRequestBody` + """ + 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, UpdateInstanceConfigurationsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/update_instance_configurations_request_body.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/update_instance_configurations_request_body.py new file mode 100644 index 0000000000..b5f9d7c533 --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/update_instance_configurations_request_body.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateInstanceConfigurationsRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'values': 'dict(str, str)' + } + + attribute_map = { + 'values': 'values' + } + + def __init__(self, values=None): + """UpdateInstanceConfigurationsRequestBody + + The model defined in huaweicloud sdk + + :param values: 参数值对象,用户基于默认参数模板自定义的参数值。为空时不修改参数值。 + :type values: dict(str, str) + """ + + + + self._values = None + self.discriminator = None + + self.values = values + + @property + def values(self): + """Gets the values of this UpdateInstanceConfigurationsRequestBody. + + 参数值对象,用户基于默认参数模板自定义的参数值。为空时不修改参数值。 + + :return: The values of this UpdateInstanceConfigurationsRequestBody. + :rtype: dict(str, str) + """ + return self._values + + @values.setter + def values(self, values): + """Sets the values of this UpdateInstanceConfigurationsRequestBody. + + 参数值对象,用户基于默认参数模板自定义的参数值。为空时不修改参数值。 + + :param values: The values of this UpdateInstanceConfigurationsRequestBody. + :type values: dict(str, str) + """ + self._values = values + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateInstanceConfigurationsRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/update_instance_configurations_response.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/update_instance_configurations_response.py new file mode 100644 index 0000000000..4c501b55b0 --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/update_instance_configurations_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 UpdateInstanceConfigurationsResponse(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', + 'restart_required': 'bool' + } + + attribute_map = { + 'job_id': 'job_id', + 'restart_required': 'restart_required' + } + + def __init__(self, job_id=None, restart_required=None): + """UpdateInstanceConfigurationsResponse + + The model defined in huaweicloud sdk + + :param job_id: 修改实例参数的异步任务ID。 + :type job_id: str + :param restart_required: 实例是否需要重启。 - “true”需要重启。 - “false”不需要重启。 + :type restart_required: bool + """ + + super(UpdateInstanceConfigurationsResponse, self).__init__() + + self._job_id = None + self._restart_required = None + self.discriminator = None + + if job_id is not None: + self.job_id = job_id + if restart_required is not None: + self.restart_required = restart_required + + @property + def job_id(self): + """Gets the job_id of this UpdateInstanceConfigurationsResponse. + + 修改实例参数的异步任务ID。 + + :return: The job_id of this UpdateInstanceConfigurationsResponse. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this UpdateInstanceConfigurationsResponse. + + 修改实例参数的异步任务ID。 + + :param job_id: The job_id of this UpdateInstanceConfigurationsResponse. + :type job_id: str + """ + self._job_id = job_id + + @property + def restart_required(self): + """Gets the restart_required of this UpdateInstanceConfigurationsResponse. + + 实例是否需要重启。 - “true”需要重启。 - “false”不需要重启。 + + :return: The restart_required of this UpdateInstanceConfigurationsResponse. + :rtype: bool + """ + return self._restart_required + + @restart_required.setter + def restart_required(self, restart_required): + """Sets the restart_required of this UpdateInstanceConfigurationsResponse. + + 实例是否需要重启。 - “true”需要重启。 - “false”不需要重启。 + + :param restart_required: The restart_required of this UpdateInstanceConfigurationsResponse. + :type restart_required: bool + """ + self._restart_required = restart_required + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateInstanceConfigurationsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-gaussdbfornosql/requirements.txt b/huaweicloud-sdk-gaussdbfornosql/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-gaussdbfornosql/requirements.txt +++ b/huaweicloud-sdk-gaussdbfornosql/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdbfornosql/setup.py b/huaweicloud-sdk-gaussdbfornosql/setup.py index 151278de4c..385fb57ab0 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py index 70b5a93173..f245be4819 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py @@ -6286,9 +6286,9 @@ def _start_instance_http_info(self, request): return http_info def start_mysql_compatibility_async(self, request): - """开启MySQl兼容端口服务 + """开启M兼容端口服务 - 开启指定实例的MySQl兼容端口。 + 开启指定实例的M兼容端口。 Please refer to HUAWEI cloud API Explorer for details. @@ -6767,9 +6767,9 @@ def _update_instance_name_http_info(self, request): return http_info def update_mysql_compatibility_async(self, request): - """更新/关闭MySQl兼容端口服务 + """更新/关闭M兼容端口服务 - 更新指定实例的MySQl兼容端口服务配置。 + 更新指定实例的M兼容端口服务配置。 Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py index 8d1f087519..3d4ce009fc 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py @@ -6286,9 +6286,9 @@ def _start_instance_http_info(cls, request): return http_info def start_mysql_compatibility(self, request): - """开启MySQl兼容端口服务 + """开启M兼容端口服务 - 开启指定实例的MySQl兼容端口。 + 开启指定实例的M兼容端口。 Please refer to HUAWEI cloud API Explorer for details. @@ -6767,9 +6767,9 @@ def _update_instance_name_http_info(cls, request): return http_info def update_mysql_compatibility(self, request): - """更新/关闭MySQl兼容端口服务 + """更新/关闭M兼容端口服务 - 更新指定实例的MySQl兼容端口服务配置。 + 更新指定实例的M兼容端口服务配置。 Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_response.py index e22f2bdd23..e57a267761 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_response.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_response.py @@ -25,7 +25,7 @@ class CreateLimitTaskResponse(SdkResponse): 'databases': 'str', 'task_name': 'str', 'sql_model': 'str', - 'key_words': 'list[str]', + 'key_words': 'str', 'status': 'str', 'instance_id': 'str', 'rule_name': 'str', @@ -64,7 +64,7 @@ class CreateLimitTaskResponse(SdkResponse): 'creator': 'creator', 'modifier': 'modifier', 'node_infos': 'node_infos', - 'job_id': 'jobId' + 'job_id': 'job_id' } def __init__(self, task_id=None, task_scope=None, limit_type=None, limit_type_value=None, databases=None, task_name=None, sql_model=None, key_words=None, status=None, instance_id=None, rule_name=None, parallel_size=None, cpu_utilization=None, memory_utilization=None, start_time=None, end_time=None, created=None, updated=None, creator=None, modifier=None, node_infos=None, job_id=None): @@ -87,7 +87,7 @@ def __init__(self, task_id=None, task_scope=None, limit_type=None, limit_type_va :param sql_model: SQL模板,仅当任务类型为SQL_ID时,返回该值且与请求参数相同。 :type sql_model: str :param key_words: 关键词,仅当任务类型为SQL_TYPE时,返回该值且与请求参数相同。 - :type key_words: list[str] + :type key_words: str :param status: 限流任务状态,当前支持:CREATING,UPDATEING,DELETING,WAIT_EXCUTE,EXCUTING,TIME_OVER,DELETED,CREATE_FAILED,UPDATE_FAILED,DELETE_FAILED,EXCEPTION,NODE_SHUT_DOWN。 :type status: str :param instance_id: 实例id。 @@ -350,7 +350,7 @@ def key_words(self): 关键词,仅当任务类型为SQL_TYPE时,返回该值且与请求参数相同。 :return: The key_words of this CreateLimitTaskResponse. - :rtype: list[str] + :rtype: str """ return self._key_words @@ -361,7 +361,7 @@ def key_words(self, key_words): 关键词,仅当任务类型为SQL_TYPE时,返回该值且与请求参数相同。 :param key_words: The key_words of this CreateLimitTaskResponse. - :type key_words: list[str] + :type key_words: str """ self._key_words = key_words diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/start_my_sql_compatibility_request_body.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/start_my_sql_compatibility_request_body.py index ff5dc79cfa..d27e994a1f 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/start_my_sql_compatibility_request_body.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/start_my_sql_compatibility_request_body.py @@ -29,7 +29,7 @@ def __init__(self, port=None): The model defined in huaweicloud sdk - :param port: MySQL兼容端口,可选范围为:1024-39998。 - 限制端口: 2378,2379,2380,4999,5000,5999,6000,6001,6500,8000-8006,8097,8098,12016,12017,20049,20050,21731,21732,32122,32123,32124。 - 与数据库对外端口互斥。 + :param port: M兼容端口,可选范围为:0, 1024-39989。 - 如下端口不可设置: 2378,2379,2380,2400,4999,5000,5001,5100,5500,5999,6000,6001,6009,6010,6500,8015,8097,8098,8181,9090,9100,9180,9187,9200,12016,12017,20049,20050,21731,21732,32122,32123,32124,32125,32126,39001,[数据库端口, 数据库端口+10]。 - 取值为0,表示关闭M兼容端口。 :type port: str """ @@ -44,7 +44,7 @@ def __init__(self, port=None): def port(self): """Gets the port of this StartMySQLCompatibilityRequestBody. - MySQL兼容端口,可选范围为:1024-39998。 - 限制端口: 2378,2379,2380,4999,5000,5999,6000,6001,6500,8000-8006,8097,8098,12016,12017,20049,20050,21731,21732,32122,32123,32124。 - 与数据库对外端口互斥。 + M兼容端口,可选范围为:0, 1024-39989。 - 如下端口不可设置: 2378,2379,2380,2400,4999,5000,5001,5100,5500,5999,6000,6001,6009,6010,6500,8015,8097,8098,8181,9090,9100,9180,9187,9200,12016,12017,20049,20050,21731,21732,32122,32123,32124,32125,32126,39001,[数据库端口, 数据库端口+10]。 - 取值为0,表示关闭M兼容端口。 :return: The port of this StartMySQLCompatibilityRequestBody. :rtype: str @@ -55,7 +55,7 @@ def port(self): def port(self, port): """Sets the port of this StartMySQLCompatibilityRequestBody. - MySQL兼容端口,可选范围为:1024-39998。 - 限制端口: 2378,2379,2380,4999,5000,5999,6000,6001,6500,8000-8006,8097,8098,12016,12017,20049,20050,21731,21732,32122,32123,32124。 - 与数据库对外端口互斥。 + M兼容端口,可选范围为:0, 1024-39989。 - 如下端口不可设置: 2378,2379,2380,2400,4999,5000,5001,5100,5500,5999,6000,6001,6009,6010,6500,8015,8097,8098,8181,9090,9100,9180,9187,9200,12016,12017,20049,20050,21731,21732,32122,32123,32124,32125,32126,39001,[数据库端口, 数据库端口+10]。 - 取值为0,表示关闭M兼容端口。 :param port: The port of this StartMySQLCompatibilityRequestBody. :type port: str diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/update_limit_task_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/update_limit_task_response.py index bf078a68a5..75a377f8c0 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/update_limit_task_response.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/update_limit_task_response.py @@ -42,7 +42,7 @@ class UpdateLimitTaskResponse(SdkResponse): 'cpu_utilization': 'cpu_utilization', 'memory_utilization': 'memory_utilization', 'rule_name': 'rule_name', - 'job_id': 'jobId' + 'job_id': 'job_id' } def __init__(self, task_id=None, databases=None, task_name=None, key_words=None, parallel_size=None, start_time=None, end_time=None, cpu_utilization=None, memory_utilization=None, rule_name=None, job_id=None): diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/update_my_sql_compatibility_request_body.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/update_my_sql_compatibility_request_body.py index 0993ef7d56..152c23931a 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/update_my_sql_compatibility_request_body.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/update_my_sql_compatibility_request_body.py @@ -29,7 +29,7 @@ def __init__(self, port=None): The model defined in huaweicloud sdk - :param port: MySQL兼容端口,修改端口的时候必填,不填默认保持原有设定端口,可选范围为:0, 1024-39998。 - 取值为0,标识关闭MySQL兼容端口服务。 - 限制端口: 2378,2379,2380,4999,5000,5999,6000,6001,6500,8000-8006,8097,8098,12016,12017,20049,20050,21731,21732,32122,32123,32124。 - 与数据库对外端口互斥。 + :param port: M兼容端口,可选范围为:0, 1024-39989。 - 如下端口不可设置: 2378,2379,2380,2400,4999,5000,5001,5100,5500,5999,6000,6001,6009,6010,6500,8015,8097,8098,8181,9090,9100,9180,9187,9200,12016,12017,20049,20050,21731,21732,32122,32123,32124,32125,32126,39001,[数据库端口, 数据库端口+10]。 - 取值为0,表示关闭M兼容端口。 :type port: str """ @@ -38,14 +38,13 @@ def __init__(self, port=None): self._port = None self.discriminator = None - if port is not None: - self.port = port + self.port = port @property def port(self): """Gets the port of this UpdateMySQLCompatibilityRequestBody. - MySQL兼容端口,修改端口的时候必填,不填默认保持原有设定端口,可选范围为:0, 1024-39998。 - 取值为0,标识关闭MySQL兼容端口服务。 - 限制端口: 2378,2379,2380,4999,5000,5999,6000,6001,6500,8000-8006,8097,8098,12016,12017,20049,20050,21731,21732,32122,32123,32124。 - 与数据库对外端口互斥。 + M兼容端口,可选范围为:0, 1024-39989。 - 如下端口不可设置: 2378,2379,2380,2400,4999,5000,5001,5100,5500,5999,6000,6001,6009,6010,6500,8015,8097,8098,8181,9090,9100,9180,9187,9200,12016,12017,20049,20050,21731,21732,32122,32123,32124,32125,32126,39001,[数据库端口, 数据库端口+10]。 - 取值为0,表示关闭M兼容端口。 :return: The port of this UpdateMySQLCompatibilityRequestBody. :rtype: str @@ -56,7 +55,7 @@ def port(self): def port(self, port): """Sets the port of this UpdateMySQLCompatibilityRequestBody. - MySQL兼容端口,修改端口的时候必填,不填默认保持原有设定端口,可选范围为:0, 1024-39998。 - 取值为0,标识关闭MySQL兼容端口服务。 - 限制端口: 2378,2379,2380,4999,5000,5999,6000,6001,6500,8000-8006,8097,8098,12016,12017,20049,20050,21731,21732,32122,32123,32124。 - 与数据库对外端口互斥。 + M兼容端口,可选范围为:0, 1024-39989。 - 如下端口不可设置: 2378,2379,2380,2400,4999,5000,5001,5100,5500,5999,6000,6001,6009,6010,6500,8015,8097,8098,8181,9090,9100,9180,9187,9200,12016,12017,20049,20050,21731,21732,32122,32123,32124,32125,32126,39001,[数据库端口, 数据库端口+10]。 - 取值为0,表示关闭M兼容端口。 :param port: The port of this UpdateMySQLCompatibilityRequestBody. :type port: str diff --git a/huaweicloud-sdk-gaussdbforopengauss/requirements.txt b/huaweicloud-sdk-gaussdbforopengauss/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/requirements.txt +++ b/huaweicloud-sdk-gaussdbforopengauss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdbforopengauss/setup.py b/huaweicloud-sdk-gaussdbforopengauss/setup.py index 84dd1bad93..3fe5961832 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-geip/requirements.txt b/huaweicloud-sdk-geip/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-geip/requirements.txt +++ b/huaweicloud-sdk-geip/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-geip/setup.py b/huaweicloud-sdk-geip/setup.py index 77f169f12b..b97a8a6adc 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ges/requirements.txt b/huaweicloud-sdk-ges/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-ges/requirements.txt +++ b/huaweicloud-sdk-ges/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-ges/setup.py b/huaweicloud-sdk-ges/setup.py index 7104e6ca19..d353c4078f 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gsl/requirements.txt b/huaweicloud-sdk-gsl/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-gsl/requirements.txt +++ b/huaweicloud-sdk-gsl/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-gsl/setup.py b/huaweicloud-sdk-gsl/setup.py index 14b80cbc06..696c0133ff 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-hilens/requirements.txt b/huaweicloud-sdk-hilens/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-hilens/requirements.txt +++ b/huaweicloud-sdk-hilens/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-hilens/setup.py b/huaweicloud-sdk-hilens/setup.py index fe559de4ca..f2be91d85a 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/model/list_apps_request.py b/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/model/list_apps_request.py index 9e46fb50b7..9e5f72fa35 100644 --- a/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/model/list_apps_request.py +++ b/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/model/list_apps_request.py @@ -88,7 +88,8 @@ def __init__(self, host_id=None, host_name=None, app_name=None, host_ip=None, ve self._part_match = None self.discriminator = None - self.host_id = host_id + if host_id is not None: + self.host_id = host_id if host_name is not None: self.host_name = host_name if app_name is not None: diff --git a/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/region/hss_region.py b/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/region/hss_region.py index e2116505bd..9b3e360c17 100644 --- a/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/region/hss_region.py +++ b/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/region/hss_region.py @@ -18,6 +18,8 @@ class HssRegion: "https://hss.cn-east-2.myhuaweicloud.com") CN_EAST_3 = Region("cn-east-3", "https://hss.cn-east-3.myhuaweicloud.com") + CN_EAST_4 = Region("cn-east-4", + "https://hss.cn-east-4.myhuaweicloud.com") CN_SOUTH_1 = Region("cn-south-1", "https://hss.cn-south-1.myhuaweicloud.com") CN_SOUTH_2 = Region("cn-south-2", @@ -66,6 +68,7 @@ class HssRegion: "cn-southwest-2": CN_SOUTHWEST_2, "cn-east-2": CN_EAST_2, "cn-east-3": CN_EAST_3, + "cn-east-4": CN_EAST_4, "cn-south-1": CN_SOUTH_1, "cn-south-2": CN_SOUTH_2, "ap-southeast-1": AP_SOUTHEAST_1, diff --git a/huaweicloud-sdk-hss/requirements.txt b/huaweicloud-sdk-hss/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-hss/requirements.txt +++ b/huaweicloud-sdk-hss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-hss/setup.py b/huaweicloud-sdk-hss/setup.py index 6be9a6c7fd..27c5dc85d6 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iam/requirements.txt b/huaweicloud-sdk-iam/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-iam/requirements.txt +++ b/huaweicloud-sdk-iam/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-iam/setup.py b/huaweicloud-sdk-iam/setup.py index a0ed236d55..1859db05e6 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iamaccessanalyzer/requirements.txt b/huaweicloud-sdk-iamaccessanalyzer/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-iamaccessanalyzer/requirements.txt +++ b/huaweicloud-sdk-iamaccessanalyzer/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-iamaccessanalyzer/setup.py b/huaweicloud-sdk-iamaccessanalyzer/setup.py index 951cd86e93..3dc35e186f 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-identitycenter/requirements.txt b/huaweicloud-sdk-identitycenter/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-identitycenter/requirements.txt +++ b/huaweicloud-sdk-identitycenter/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-identitycenter/setup.py b/huaweicloud-sdk-identitycenter/setup.py index fc6765e609..1157c7ba19 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-identitycenterstore/requirements.txt b/huaweicloud-sdk-identitycenterstore/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-identitycenterstore/requirements.txt +++ b/huaweicloud-sdk-identitycenterstore/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-identitycenterstore/setup.py b/huaweicloud-sdk-identitycenterstore/setup.py index 87bb726cd4..b3e6bf6edd 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-idme/requirements.txt b/huaweicloud-sdk-idme/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-idme/requirements.txt +++ b/huaweicloud-sdk-idme/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-idme/setup.py b/huaweicloud-sdk-idme/setup.py index 81d93abbd3..eba925f920 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-idmeclassicapi/requirements.txt b/huaweicloud-sdk-idmeclassicapi/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-idmeclassicapi/requirements.txt +++ b/huaweicloud-sdk-idmeclassicapi/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-idmeclassicapi/setup.py b/huaweicloud-sdk-idmeclassicapi/setup.py index 2eca9c9016..9c1ed899dc 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iec/requirements.txt b/huaweicloud-sdk-iec/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-iec/requirements.txt +++ b/huaweicloud-sdk-iec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-iec/setup.py b/huaweicloud-sdk-iec/setup.py index c2a6a6ea3c..6c404765a7 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ief/requirements.txt b/huaweicloud-sdk-ief/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-ief/requirements.txt +++ b/huaweicloud-sdk-ief/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-ief/setup.py b/huaweicloud-sdk-ief/setup.py index 0d96270adb..80d8b24eb8 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-image/requirements.txt b/huaweicloud-sdk-image/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-image/requirements.txt +++ b/huaweicloud-sdk-image/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-image/setup.py b/huaweicloud-sdk-image/setup.py index d5123b6913..105b3ea33c 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-imagesearch/requirements.txt b/huaweicloud-sdk-imagesearch/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-imagesearch/requirements.txt +++ b/huaweicloud-sdk-imagesearch/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-imagesearch/setup.py b/huaweicloud-sdk-imagesearch/setup.py index 711cbeea71..7b5c1ad00d 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ims/requirements.txt b/huaweicloud-sdk-ims/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-ims/requirements.txt +++ b/huaweicloud-sdk-ims/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-ims/setup.py b/huaweicloud-sdk-ims/setup.py index 812560f9b1..90a8887791 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotanalytics/requirements.txt b/huaweicloud-sdk-iotanalytics/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-iotanalytics/requirements.txt +++ b/huaweicloud-sdk-iotanalytics/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-iotanalytics/setup.py b/huaweicloud-sdk-iotanalytics/setup.py index a924d5f8dc..2a2b8567d5 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_async_client.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_async_client.py index 13c3d66701..434ceaeab1 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_async_client.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_async_client.py @@ -5461,10 +5461,6 @@ def _add_functions_http_info(self, request): header_params = {} if 'instance_id' in local_var_params: header_params['Instance-Id'] = local_var_params['instance_id'] - if 'sp_auth_token' in local_var_params: - header_params['Sp-Auth-Token'] = local_var_params['sp_auth_token'] - if 'stage_auth_token' in local_var_params: - header_params['Stage-Auth-Token'] = local_var_params['stage_auth_token'] form_params = {} @@ -5534,10 +5530,6 @@ def _delete_functions_http_info(self, request): header_params = {} if 'instance_id' in local_var_params: header_params['Instance-Id'] = local_var_params['instance_id'] - if 'sp_auth_token' in local_var_params: - header_params['Sp-Auth-Token'] = local_var_params['sp_auth_token'] - if 'stage_auth_token' in local_var_params: - header_params['Stage-Auth-Token'] = local_var_params['stage_auth_token'] form_params = {} @@ -5607,10 +5599,6 @@ def _list_functions_http_info(self, request): header_params = {} if 'instance_id' in local_var_params: header_params['Instance-Id'] = local_var_params['instance_id'] - if 'sp_auth_token' in local_var_params: - header_params['Sp-Auth-Token'] = local_var_params['sp_auth_token'] - if 'stage_auth_token' in local_var_params: - header_params['Stage-Auth-Token'] = local_var_params['stage_auth_token'] form_params = {} diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_client.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_client.py index 385233aae5..0bfd325601 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_client.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_client.py @@ -5461,10 +5461,6 @@ def _add_functions_http_info(cls, request): header_params = {} if 'instance_id' in local_var_params: header_params['Instance-Id'] = local_var_params['instance_id'] - if 'sp_auth_token' in local_var_params: - header_params['Sp-Auth-Token'] = local_var_params['sp_auth_token'] - if 'stage_auth_token' in local_var_params: - header_params['Stage-Auth-Token'] = local_var_params['stage_auth_token'] form_params = {} @@ -5534,10 +5530,6 @@ def _delete_functions_http_info(cls, request): header_params = {} if 'instance_id' in local_var_params: header_params['Instance-Id'] = local_var_params['instance_id'] - if 'sp_auth_token' in local_var_params: - header_params['Sp-Auth-Token'] = local_var_params['sp_auth_token'] - if 'stage_auth_token' in local_var_params: - header_params['Stage-Auth-Token'] = local_var_params['stage_auth_token'] form_params = {} @@ -5607,10 +5599,6 @@ def _list_functions_http_info(cls, request): header_params = {} if 'instance_id' in local_var_params: header_params['Instance-Id'] = local_var_params['instance_id'] - if 'sp_auth_token' in local_var_params: - header_params['Sp-Auth-Token'] = local_var_params['sp_auth_token'] - if 'stage_auth_token' in local_var_params: - header_params['Stage-Auth-Token'] = local_var_params['stage_auth_token'] form_params = {} diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/add_functions_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/add_functions_request.py index 9f6de619a3..867420eac1 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/add_functions_request.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/add_functions_request.py @@ -15,34 +15,24 @@ class AddFunctionsRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('sp_auth_token') - sensitive_list.append('stage_auth_token') openapi_types = { 'instance_id': 'str', - 'sp_auth_token': 'str', - 'stage_auth_token': 'str', 'body': 'FunctionRequestDTO' } attribute_map = { 'instance_id': 'Instance-Id', - 'sp_auth_token': 'Sp-Auth-Token', - 'stage_auth_token': 'Stage-Auth-Token', 'body': 'body' } - def __init__(self, instance_id=None, sp_auth_token=None, stage_auth_token=None, body=None): + def __init__(self, instance_id=None, body=None): """AddFunctionsRequest The model defined in huaweicloud sdk :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 :type instance_id: str - :param sp_auth_token: **参数说明**:Sp用户Token。通过调用IoBPS服务获取SP用户Token。 - :type sp_auth_token: str - :param stage_auth_token: **参数说明**:Stage用户的Token, 仅提供给IoStage服务使用。 - :type stage_auth_token: str :param body: Body of the AddFunctionsRequest :type body: :class:`huaweicloudsdkiotda.v5.FunctionRequestDTO` """ @@ -50,17 +40,11 @@ def __init__(self, instance_id=None, sp_auth_token=None, stage_auth_token=None, self._instance_id = None - self._sp_auth_token = None - self._stage_auth_token = None self._body = None self.discriminator = None if instance_id is not None: self.instance_id = instance_id - if sp_auth_token is not None: - self.sp_auth_token = sp_auth_token - if stage_auth_token is not None: - self.stage_auth_token = stage_auth_token if body is not None: self.body = body @@ -86,50 +70,6 @@ def instance_id(self, instance_id): """ self._instance_id = instance_id - @property - def sp_auth_token(self): - """Gets the sp_auth_token of this AddFunctionsRequest. - - **参数说明**:Sp用户Token。通过调用IoBPS服务获取SP用户Token。 - - :return: The sp_auth_token of this AddFunctionsRequest. - :rtype: str - """ - return self._sp_auth_token - - @sp_auth_token.setter - def sp_auth_token(self, sp_auth_token): - """Sets the sp_auth_token of this AddFunctionsRequest. - - **参数说明**:Sp用户Token。通过调用IoBPS服务获取SP用户Token。 - - :param sp_auth_token: The sp_auth_token of this AddFunctionsRequest. - :type sp_auth_token: str - """ - self._sp_auth_token = sp_auth_token - - @property - def stage_auth_token(self): - """Gets the stage_auth_token of this AddFunctionsRequest. - - **参数说明**:Stage用户的Token, 仅提供给IoStage服务使用。 - - :return: The stage_auth_token of this AddFunctionsRequest. - :rtype: str - """ - return self._stage_auth_token - - @stage_auth_token.setter - def stage_auth_token(self, stage_auth_token): - """Sets the stage_auth_token of this AddFunctionsRequest. - - **参数说明**:Stage用户的Token, 仅提供给IoStage服务使用。 - - :param stage_auth_token: The stage_auth_token of this AddFunctionsRequest. - :type stage_auth_token: str - """ - self._stage_auth_token = stage_auth_token - @property def body(self): """Gets the body of this AddFunctionsRequest. diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_functions_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_functions_request.py index 42ec15c8a6..6fa8975e1e 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_functions_request.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_functions_request.py @@ -15,34 +15,24 @@ class DeleteFunctionsRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('sp_auth_token') - sensitive_list.append('stage_auth_token') openapi_types = { 'instance_id': 'str', - 'sp_auth_token': 'str', - 'stage_auth_token': 'str', 'function_id': 'str' } attribute_map = { 'instance_id': 'Instance-Id', - 'sp_auth_token': 'Sp-Auth-Token', - 'stage_auth_token': 'Stage-Auth-Token', 'function_id': 'function_id' } - def __init__(self, instance_id=None, sp_auth_token=None, stage_auth_token=None, function_id=None): + def __init__(self, instance_id=None, function_id=None): """DeleteFunctionsRequest The model defined in huaweicloud sdk :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 :type instance_id: str - :param sp_auth_token: **参数说明**:Sp用户Token。通过调用IoBPS服务获取SP用户Token。 - :type sp_auth_token: str - :param stage_auth_token: **参数说明**:Stage用户的Token, 仅提供给IoStage服务使用。 - :type stage_auth_token: str :param function_id: **参数说明**:函数ID。 :type function_id: str """ @@ -50,17 +40,11 @@ def __init__(self, instance_id=None, sp_auth_token=None, stage_auth_token=None, self._instance_id = None - self._sp_auth_token = None - self._stage_auth_token = None self._function_id = None self.discriminator = None if instance_id is not None: self.instance_id = instance_id - if sp_auth_token is not None: - self.sp_auth_token = sp_auth_token - if stage_auth_token is not None: - self.stage_auth_token = stage_auth_token self.function_id = function_id @property @@ -85,50 +69,6 @@ def instance_id(self, instance_id): """ self._instance_id = instance_id - @property - def sp_auth_token(self): - """Gets the sp_auth_token of this DeleteFunctionsRequest. - - **参数说明**:Sp用户Token。通过调用IoBPS服务获取SP用户Token。 - - :return: The sp_auth_token of this DeleteFunctionsRequest. - :rtype: str - """ - return self._sp_auth_token - - @sp_auth_token.setter - def sp_auth_token(self, sp_auth_token): - """Sets the sp_auth_token of this DeleteFunctionsRequest. - - **参数说明**:Sp用户Token。通过调用IoBPS服务获取SP用户Token。 - - :param sp_auth_token: The sp_auth_token of this DeleteFunctionsRequest. - :type sp_auth_token: str - """ - self._sp_auth_token = sp_auth_token - - @property - def stage_auth_token(self): - """Gets the stage_auth_token of this DeleteFunctionsRequest. - - **参数说明**:Stage用户的Token, 仅提供给IoStage服务使用。 - - :return: The stage_auth_token of this DeleteFunctionsRequest. - :rtype: str - """ - return self._stage_auth_token - - @stage_auth_token.setter - def stage_auth_token(self, stage_auth_token): - """Sets the stage_auth_token of this DeleteFunctionsRequest. - - **参数说明**:Stage用户的Token, 仅提供给IoStage服务使用。 - - :param stage_auth_token: The stage_auth_token of this DeleteFunctionsRequest. - :type stage_auth_token: str - """ - self._stage_auth_token = stage_auth_token - @property def function_id(self): """Gets the function_id of this DeleteFunctionsRequest. diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_functions_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_functions_response.py index 5e59062e7e..76662bb3e4 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_functions_response.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_functions_response.py @@ -18,48 +18,21 @@ class DeleteFunctionsResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'body': 'str' } attribute_map = { - 'body': 'body' } - def __init__(self, body=None): + def __init__(self): """DeleteFunctionsResponse The model defined in huaweicloud sdk - :param body: - :type body: str """ super(DeleteFunctionsResponse, 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 DeleteFunctionsResponse. - - :return: The body of this DeleteFunctionsResponse. - :rtype: str - """ - return self._body - - @body.setter - def body(self, body): - """Sets the body of this DeleteFunctionsResponse. - - :param body: The body of this DeleteFunctionsResponse. - :type body: str - """ - self._body = body - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_functions_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_functions_request.py index a5ad34d57f..352fc52d15 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_functions_request.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_functions_request.py @@ -15,36 +15,26 @@ class ListFunctionsRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('sp_auth_token') - sensitive_list.append('stage_auth_token') openapi_types = { 'instance_id': 'str', - 'sp_auth_token': 'str', - 'stage_auth_token': 'str', 'app_id': 'str', 'product_id': 'str' } attribute_map = { 'instance_id': 'Instance-Id', - 'sp_auth_token': 'Sp-Auth-Token', - 'stage_auth_token': 'Stage-Auth-Token', 'app_id': 'app_id', 'product_id': 'product_id' } - def __init__(self, instance_id=None, sp_auth_token=None, stage_auth_token=None, app_id=None, product_id=None): + def __init__(self, instance_id=None, app_id=None, product_id=None): """ListFunctionsRequest The model defined in huaweicloud sdk :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 :type instance_id: str - :param sp_auth_token: **参数说明**:Sp用户Token。通过调用IoBPS服务获取SP用户Token。 - :type sp_auth_token: str - :param stage_auth_token: **参数说明**:Stage用户的Token, 仅提供给IoStage服务使用。 - :type stage_auth_token: str :param app_id: **参数说明**:资源空间ID。此参数为非必选参数,存在多资源空间的用户需要使用该接口时,可以携带该参数查询指定资源空间下的产品列表,不携带该参数则会查询该用户下所有产品列表。 **取值范围**:长度不超过36,只允许字母、数字、下划线(_)、连接符(-)的组合。 :type app_id: str :param product_id: **参数说明**:设备关联的产品ID,用于唯一标识一个产品模型,创建产品后获得。方法请参见 [[创建产品](https://support.huaweicloud.com/api-iothub/iot_06_v5_0050.html)](tag:hws)[[创建产品](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0050.html)](tag:hws_hk)。 **取值范围**:长度不超过36,只允许字母、数字、下划线(_)、连接符(-)的组合。 @@ -54,18 +44,12 @@ def __init__(self, instance_id=None, sp_auth_token=None, stage_auth_token=None, self._instance_id = None - self._sp_auth_token = None - self._stage_auth_token = None self._app_id = None self._product_id = None self.discriminator = None if instance_id is not None: self.instance_id = instance_id - if sp_auth_token is not None: - self.sp_auth_token = sp_auth_token - if stage_auth_token is not None: - self.stage_auth_token = stage_auth_token if app_id is not None: self.app_id = app_id self.product_id = product_id @@ -92,50 +76,6 @@ def instance_id(self, instance_id): """ self._instance_id = instance_id - @property - def sp_auth_token(self): - """Gets the sp_auth_token of this ListFunctionsRequest. - - **参数说明**:Sp用户Token。通过调用IoBPS服务获取SP用户Token。 - - :return: The sp_auth_token of this ListFunctionsRequest. - :rtype: str - """ - return self._sp_auth_token - - @sp_auth_token.setter - def sp_auth_token(self, sp_auth_token): - """Sets the sp_auth_token of this ListFunctionsRequest. - - **参数说明**:Sp用户Token。通过调用IoBPS服务获取SP用户Token。 - - :param sp_auth_token: The sp_auth_token of this ListFunctionsRequest. - :type sp_auth_token: str - """ - self._sp_auth_token = sp_auth_token - - @property - def stage_auth_token(self): - """Gets the stage_auth_token of this ListFunctionsRequest. - - **参数说明**:Stage用户的Token, 仅提供给IoStage服务使用。 - - :return: The stage_auth_token of this ListFunctionsRequest. - :rtype: str - """ - return self._stage_auth_token - - @stage_auth_token.setter - def stage_auth_token(self, stage_auth_token): - """Sets the stage_auth_token of this ListFunctionsRequest. - - **参数说明**:Stage用户的Token, 仅提供给IoStage服务使用。 - - :param stage_auth_token: The stage_auth_token of this ListFunctionsRequest. - :type stage_auth_token: str - """ - self._stage_auth_token = stage_auth_token - @property def app_id(self): """Gets the app_id of this ListFunctionsRequest. diff --git a/huaweicloud-sdk-iotda/requirements.txt b/huaweicloud-sdk-iotda/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-iotda/requirements.txt +++ b/huaweicloud-sdk-iotda/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-iotda/setup.py b/huaweicloud-sdk-iotda/setup.py index bef9a89b77..beb202a1de 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotdm/requirements.txt b/huaweicloud-sdk-iotdm/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-iotdm/requirements.txt +++ b/huaweicloud-sdk-iotdm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-iotdm/setup.py b/huaweicloud-sdk-iotdm/setup.py index 7b668eecd8..d4b768eb43 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotedge/requirements.txt b/huaweicloud-sdk-iotedge/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-iotedge/requirements.txt +++ b/huaweicloud-sdk-iotedge/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-iotedge/setup.py b/huaweicloud-sdk-iotedge/setup.py index 4a266d2d5d..a4f4d5116b 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ivs/requirements.txt b/huaweicloud-sdk-ivs/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-ivs/requirements.txt +++ b/huaweicloud-sdk-ivs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-ivs/setup.py b/huaweicloud-sdk-ivs/setup.py index 35ea36b29c..e9a54462a5 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kafka/requirements.txt b/huaweicloud-sdk-kafka/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-kafka/requirements.txt +++ b/huaweicloud-sdk-kafka/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-kafka/setup.py b/huaweicloud-sdk-kafka/setup.py index 48f5d57200..9220f43152 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kms/requirements.txt b/huaweicloud-sdk-kms/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-kms/requirements.txt +++ b/huaweicloud-sdk-kms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-kms/setup.py b/huaweicloud-sdk-kms/setup.py index b24893f165..72b4135a3d 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-koomessage/requirements.txt b/huaweicloud-sdk-koomessage/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-koomessage/requirements.txt +++ b/huaweicloud-sdk-koomessage/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-koomessage/setup.py b/huaweicloud-sdk-koomessage/setup.py index c05874903c..f1960257a6 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kps/requirements.txt b/huaweicloud-sdk-kps/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-kps/requirements.txt +++ b/huaweicloud-sdk-kps/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-kps/setup.py b/huaweicloud-sdk-kps/setup.py index 7592c94a50..f758af6155 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-lakeformation/requirements.txt b/huaweicloud-sdk-lakeformation/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-lakeformation/requirements.txt +++ b/huaweicloud-sdk-lakeformation/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-lakeformation/setup.py b/huaweicloud-sdk-lakeformation/setup.py index 5e2f99c30d..044d45450c 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/area_time_value.py b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/area_time_value.py index beb6d4fe73..c01d203a4f 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/area_time_value.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/area_time_value.py @@ -31,7 +31,7 @@ def __init__(self, name=None, data=None): The model defined in huaweicloud sdk - :param name: 各个大区下的具体省份、区域、国家的名称。 中国内地返回结果为省份/直辖市的中文名称,比如:广东、上海; 海外大区下的地区/国家对应关系请参考[地区/国家代码对照表](live_03_0049.xml)。 + :param name: 各个大区下的具体省份、区域、国家的名称。 中国内地返回结果为省份/直辖市的中文名称,比如:广东、上海; 海外大区下的地区/国家对应关系请参考[地区/国家代码对照表](https://support.huaweicloud.com/api-live/live_03_0049.html)。 :type name: str :param data: 当前时间返回指定指标的值 :type data: list[:class:`huaweicloudsdklive.v2.TimeValue`] @@ -50,7 +50,7 @@ def __init__(self, name=None, data=None): def name(self): """Gets the name of this AreaTimeValue. - 各个大区下的具体省份、区域、国家的名称。 中国内地返回结果为省份/直辖市的中文名称,比如:广东、上海; 海外大区下的地区/国家对应关系请参考[地区/国家代码对照表](live_03_0049.xml)。 + 各个大区下的具体省份、区域、国家的名称。 中国内地返回结果为省份/直辖市的中文名称,比如:广东、上海; 海外大区下的地区/国家对应关系请参考[地区/国家代码对照表](https://support.huaweicloud.com/api-live/live_03_0049.html)。 :return: The name of this AreaTimeValue. :rtype: str @@ -61,7 +61,7 @@ def name(self): def name(self, name): """Sets the name of this AreaTimeValue. - 各个大区下的具体省份、区域、国家的名称。 中国内地返回结果为省份/直辖市的中文名称,比如:广东、上海; 海外大区下的地区/国家对应关系请参考[地区/国家代码对照表](live_03_0049.xml)。 + 各个大区下的具体省份、区域、国家的名称。 中国内地返回结果为省份/直辖市的中文名称,比如:广东、上海; 海外大区下的地区/国家对应关系请参考[地区/国家代码对照表](https://support.huaweicloud.com/api-live/live_03_0049.html)。 :param name: The name of this AreaTimeValue. :type name: str diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_area_detail_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_area_detail_request.py index 51cfe9b4ff..4893782f9b 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_area_detail_request.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_area_detail_request.py @@ -61,7 +61,7 @@ def __init__(self, start_time=None, end_time=None, play_domains=None, app=None, :type interval: int :param isp: 运营商列表,取值如下: - CMCC:移动 - CTCC:电信 - CUCC:联通 - OTHER:其他 若参数为空,则查询所有运营商。 :type isp: list[str] - :param area: 需查询的计费大区,取值如下: - CN:中国内地。 - AP1:亚太1区。 - AP2:亚太2区。 - AP3:亚太3区。 - MEAA:中东非洲。 - SA:南美。 - EU:欧洲。 - ALL:全部。 中国内地返回结果为省份/直辖市的中文名称,比如:广东、上海; 海外大区与地区/国家的对应关系请参考[地区/国家代码对照表](live_03_0049.xml)。 + :param area: 需查询的计费大区,取值如下: - CN:中国内地。 - AP1:亚太1区。 - AP2:亚太2区。 - AP3:亚太3区。 - MEAA:中东非洲。 - SA:南美。 - EU:欧洲。 - ALL:全部。 中国内地返回结果为省份/直辖市的中文名称,比如:广东、上海; 海外大区与地区/国家的对应关系请参考[地区/国家代码对照表](https://support.huaweicloud.com/api-live/live_03_0049.html)。 :type area: list[str] :param metric: 指标,取值如下: - bandwidth:带宽 - traffic:流量 - player:观众数 :type metric: str @@ -258,7 +258,7 @@ def isp(self, isp): def area(self): """Gets the area of this ListAreaDetailRequest. - 需查询的计费大区,取值如下: - CN:中国内地。 - AP1:亚太1区。 - AP2:亚太2区。 - AP3:亚太3区。 - MEAA:中东非洲。 - SA:南美。 - EU:欧洲。 - ALL:全部。 中国内地返回结果为省份/直辖市的中文名称,比如:广东、上海; 海外大区与地区/国家的对应关系请参考[地区/国家代码对照表](live_03_0049.xml)。 + 需查询的计费大区,取值如下: - CN:中国内地。 - AP1:亚太1区。 - AP2:亚太2区。 - AP3:亚太3区。 - MEAA:中东非洲。 - SA:南美。 - EU:欧洲。 - ALL:全部。 中国内地返回结果为省份/直辖市的中文名称,比如:广东、上海; 海外大区与地区/国家的对应关系请参考[地区/国家代码对照表](https://support.huaweicloud.com/api-live/live_03_0049.html)。 :return: The area of this ListAreaDetailRequest. :rtype: list[str] @@ -269,7 +269,7 @@ def area(self): def area(self, area): """Sets the area of this ListAreaDetailRequest. - 需查询的计费大区,取值如下: - CN:中国内地。 - AP1:亚太1区。 - AP2:亚太2区。 - AP3:亚太3区。 - MEAA:中东非洲。 - SA:南美。 - EU:欧洲。 - ALL:全部。 中国内地返回结果为省份/直辖市的中文名称,比如:广东、上海; 海外大区与地区/国家的对应关系请参考[地区/国家代码对照表](live_03_0049.xml)。 + 需查询的计费大区,取值如下: - CN:中国内地。 - AP1:亚太1区。 - AP2:亚太2区。 - AP3:亚太3区。 - MEAA:中东非洲。 - SA:南美。 - EU:欧洲。 - ALL:全部。 中国内地返回结果为省份/直辖市的中文名称,比如:广东、上海; 海外大区与地区/国家的对应关系请参考[地区/国家代码对照表](https://support.huaweicloud.com/api-live/live_03_0049.html)。 :param area: The area of this ListAreaDetailRequest. :type area: list[str] diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_bandwidth_detail_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_bandwidth_detail_request.py index 9164319c25..416bb51ce0 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_bandwidth_detail_request.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_bandwidth_detail_request.py @@ -55,9 +55,9 @@ def __init__(self, play_domains=None, app=None, stream=None, country=None, regio :type app: str :param stream: 流名。 :type stream: str - :param country: 国家列表。具体取值请参考[国家名称缩写](vod_08_0172.xml),不填写查询所有国家。 + :param country: 国家列表。具体取值请参考[国家名称缩写](https://support.huaweicloud.com/api-live/vod_08_0172.html),不填写查询所有国家。 :type country: list[str] - :param region: 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + :param region: 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 :type region: list[str] :param isp: 运营商列表,取值如下: - CMCC :移动 - CTCC :电信 - CUCC :联通 - OTHER :其他 不填写查询所有运营商。 :type isp: list[str] @@ -181,7 +181,7 @@ def stream(self, stream): def country(self): """Gets the country of this ListBandwidthDetailRequest. - 国家列表。具体取值请参考[国家名称缩写](vod_08_0172.xml),不填写查询所有国家。 + 国家列表。具体取值请参考[国家名称缩写](https://support.huaweicloud.com/api-live/vod_08_0172.html),不填写查询所有国家。 :return: The country of this ListBandwidthDetailRequest. :rtype: list[str] @@ -192,7 +192,7 @@ def country(self): def country(self, country): """Sets the country of this ListBandwidthDetailRequest. - 国家列表。具体取值请参考[国家名称缩写](vod_08_0172.xml),不填写查询所有国家。 + 国家列表。具体取值请参考[国家名称缩写](https://support.huaweicloud.com/api-live/vod_08_0172.html),不填写查询所有国家。 :param country: The country of this ListBandwidthDetailRequest. :type country: list[str] @@ -203,7 +203,7 @@ def country(self, country): def region(self): """Gets the region of this ListBandwidthDetailRequest. - 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 :return: The region of this ListBandwidthDetailRequest. :rtype: list[str] @@ -214,7 +214,7 @@ def region(self): def region(self, region): """Sets the region of this ListBandwidthDetailRequest. - 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 :param region: The region of this ListBandwidthDetailRequest. :type region: list[str] diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_domain_bandwidth_peak_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_domain_bandwidth_peak_request.py index f77a3963b4..ae8e282c7e 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_domain_bandwidth_peak_request.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_domain_bandwidth_peak_request.py @@ -51,7 +51,7 @@ def __init__(self, play_domains=None, app=None, stream=None, region=None, isp=No :type app: str :param stream: 流名。 :type stream: str - :param region: 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + :param region: 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 :type region: list[str] :param isp: 运营商列表,取值如下: - CMCC :移动 - CTCC : 电信 - CUCC :联通 - OTHER :其他 不填写查询所有运营商。 :type isp: list[str] @@ -167,7 +167,7 @@ def stream(self, stream): def region(self): """Gets the region of this ListDomainBandwidthPeakRequest. - 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 :return: The region of this ListDomainBandwidthPeakRequest. :rtype: list[str] @@ -178,7 +178,7 @@ def region(self): def region(self, region): """Sets the region of this ListDomainBandwidthPeakRequest. - 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 :param region: The region of this ListDomainBandwidthPeakRequest. :type region: list[str] diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_domain_traffic_detail_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_domain_traffic_detail_request.py index 6e31da71e3..e70a0b538e 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_domain_traffic_detail_request.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_domain_traffic_detail_request.py @@ -53,7 +53,7 @@ def __init__(self, play_domains=None, app=None, stream=None, region=None, isp=No :type app: str :param stream: 流名。 :type stream: str - :param region: 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + :param region: 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 :type region: list[str] :param isp: 运营商列表,取值如下: - CMCC :移动 - CTCC : 电信 - CUCC :联通 - OTHER :其他 不填写查询所有运营商。 :type isp: list[str] @@ -174,7 +174,7 @@ def stream(self, stream): def region(self): """Gets the region of this ListDomainTrafficDetailRequest. - 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 :return: The region of this ListDomainTrafficDetailRequest. :rtype: list[str] @@ -185,7 +185,7 @@ def region(self): def region(self, region): """Sets the region of this ListDomainTrafficDetailRequest. - 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 :param region: The region of this ListDomainTrafficDetailRequest. :type region: list[str] diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_domain_traffic_summary_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_domain_traffic_summary_request.py index 98173d2b1d..d4565bc6a9 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_domain_traffic_summary_request.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_domain_traffic_summary_request.py @@ -51,7 +51,7 @@ def __init__(self, play_domains=None, app=None, stream=None, region=None, isp=No :type app: str :param stream: 流名。 :type stream: str - :param region: 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + :param region: 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 :type region: list[str] :param isp: 运营商列表。取值如下: - CMCC :移动 - CTCC : 电信 - CUCC :联通 - OTHER :其他 不填写查询所有运营商。 :type isp: list[str] @@ -167,7 +167,7 @@ def stream(self, stream): def region(self): """Gets the region of this ListDomainTrafficSummaryRequest. - 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 :return: The region of this ListDomainTrafficSummaryRequest. :rtype: list[str] @@ -178,7 +178,7 @@ def region(self): def region(self, region): """Sets the region of this ListDomainTrafficSummaryRequest. - 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 :param region: The region of this ListDomainTrafficSummaryRequest. :type region: list[str] diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_query_http_code_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_query_http_code_request.py index 94d4885d07..b8bae0da30 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_query_http_code_request.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_query_http_code_request.py @@ -43,7 +43,7 @@ def __init__(self, play_domains=None, code=None, region=None, isp=None, start_ti :type play_domains: list[str] :param code: 状态码。 :type code: list[str] - :param region: 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + :param region: 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 :type region: list[str] :param isp: 运营商列表,取值如下: - CMCC :移动 - CTCC : 电信 - CUCC :联通 - OTHER :其他 不填写查询所有运营商。 :type isp: list[str] @@ -123,7 +123,7 @@ def code(self, code): def region(self): """Gets the region of this ListQueryHttpCodeRequest. - 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 :return: The region of this ListQueryHttpCodeRequest. :rtype: list[str] @@ -134,7 +134,7 @@ def region(self): def region(self, region): """Sets the region of this ListQueryHttpCodeRequest. - 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 :param region: The region of this ListQueryHttpCodeRequest. :type region: list[str] diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_users_of_stream_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_users_of_stream_request.py index 20b7b0e41c..9b92a9736d 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_users_of_stream_request.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_users_of_stream_request.py @@ -57,9 +57,9 @@ def __init__(self, play_domain=None, app=None, stream=None, isp=None, country=No :type stream: str :param isp: 运营商列表,取值如下: - CMCC :移动 - CTCC : 电信 - CUCC :联通 - OTHER :其他 不填写查询所有运营商。 :type isp: list[str] - :param country: 国家列表。具体取值请参考[国家名称缩写](vod_08_0172.xml),不填写查询所有国家。 + :param country: 国家列表。具体取值请参考[国家名称缩写](https://support.huaweicloud.com/api-live/vod_08_0172.html),不填写查询所有国家。 :type country: list[str] - :param region: 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + :param region: 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 :type region: list[str] :param protocol: 请求协议 :type protocol: str @@ -202,7 +202,7 @@ def isp(self, isp): def country(self): """Gets the country of this ListUsersOfStreamRequest. - 国家列表。具体取值请参考[国家名称缩写](vod_08_0172.xml),不填写查询所有国家。 + 国家列表。具体取值请参考[国家名称缩写](https://support.huaweicloud.com/api-live/vod_08_0172.html),不填写查询所有国家。 :return: The country of this ListUsersOfStreamRequest. :rtype: list[str] @@ -213,7 +213,7 @@ def country(self): def country(self, country): """Sets the country of this ListUsersOfStreamRequest. - 国家列表。具体取值请参考[国家名称缩写](vod_08_0172.xml),不填写查询所有国家。 + 国家列表。具体取值请参考[国家名称缩写](https://support.huaweicloud.com/api-live/vod_08_0172.html),不填写查询所有国家。 :param country: The country of this ListUsersOfStreamRequest. :type country: list[str] @@ -224,7 +224,7 @@ def country(self, country): def region(self): """Gets the region of this ListUsersOfStreamRequest. - 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 :return: The region of this ListUsersOfStreamRequest. :rtype: list[str] @@ -235,7 +235,7 @@ def region(self): def region(self, region): """Sets the region of this ListUsersOfStreamRequest. - 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 :param region: The region of this ListUsersOfStreamRequest. :type region: list[str] diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/show_up_bandwidth_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/show_up_bandwidth_request.py index e9b949aa23..b86d49433c 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/show_up_bandwidth_request.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/show_up_bandwidth_request.py @@ -51,7 +51,7 @@ def __init__(self, publish_domains=None, app=None, stream=None, region=None, isp :type app: str :param stream: 流名。 :type stream: str - :param region: 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + :param region: 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 :type region: list[str] :param isp: 运营商列表,取值如下: - CMCC :移动 - CTCC : 电信 - CUCC :联通 - OTHER :其他 不填写查询所有运营商。 :type isp: list[str] @@ -166,7 +166,7 @@ def stream(self, stream): def region(self): """Gets the region of this ShowUpBandwidthRequest. - 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 :return: The region of this ShowUpBandwidthRequest. :rtype: list[str] @@ -177,7 +177,7 @@ def region(self): def region(self, region): """Sets the region of this ShowUpBandwidthRequest. - 区域列表。具体取值请参考[省份名称缩写](live_03_0043.xml),不填写查询所有区域。 + 区域列表。具体取值请参考[省份名称缩写](https://support.huaweicloud.com/api-live/live_03_0043.html),不填写查询所有区域。 :param region: The region of this ShowUpBandwidthRequest. :type region: list[str] diff --git a/huaweicloud-sdk-live/requirements.txt b/huaweicloud-sdk-live/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-live/requirements.txt +++ b/huaweicloud-sdk-live/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-live/setup.py b/huaweicloud-sdk-live/setup.py index ae271e48bb..5a3ebf0044 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-lts/requirements.txt b/huaweicloud-sdk-lts/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-lts/requirements.txt +++ b/huaweicloud-sdk-lts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-lts/setup.py b/huaweicloud-sdk-lts/setup.py index 93fce69586..e4ee849a20 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mapds/requirements.txt b/huaweicloud-sdk-mapds/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-mapds/requirements.txt +++ b/huaweicloud-sdk-mapds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-mapds/setup.py b/huaweicloud-sdk-mapds/setup.py index 4c7224abc1..d748784d09 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mas/requirements.txt b/huaweicloud-sdk-mas/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-mas/requirements.txt +++ b/huaweicloud-sdk-mas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-mas/setup.py b/huaweicloud-sdk-mas/setup.py index f622e0ba20..a404f9c0f4 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/__init__.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/__init__.py index d85cae2108..0f2c0afbd2 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/__init__.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/__init__.py @@ -83,6 +83,8 @@ from huaweicloudsdkmeeting.v1.model.cancel_recurring_sub_meeting_request import CancelRecurringSubMeetingRequest from huaweicloudsdkmeeting.v1.model.cancel_recurring_sub_meeting_response import CancelRecurringSubMeetingResponse from huaweicloudsdkmeeting.v1.model.category_suggestions import CategorySuggestions +from huaweicloudsdkmeeting.v1.model.check_call_number_in_conf_request import CheckCallNumberInConfRequest +from huaweicloudsdkmeeting.v1.model.check_call_number_in_conf_response import CheckCallNumberInConfResponse from huaweicloudsdkmeeting.v1.model.check_slide_verify_code_request import CheckSlideVerifyCodeRequest from huaweicloudsdkmeeting.v1.model.check_slide_verify_code_response import CheckSlideVerifyCodeResponse from huaweicloudsdkmeeting.v1.model.check_token_request import CheckTokenRequest diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_async_client.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_async_client.py index cb82d9d497..d0ceeae746 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_async_client.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_async_client.py @@ -2209,6 +2209,71 @@ def _cancel_recurring_sub_meeting_http_info(self, request): return http_info + def check_call_number_in_conf_async(self, request): + """根据号码,查询是否在会议中 + + 通过该接口查询号码,是否在会议中 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CheckCallNumberInConf + :type request: :class:`huaweicloudsdkmeeting.v1.CheckCallNumberInConfRequest` + :rtype: :class:`huaweicloudsdkmeeting.v1.CheckCallNumberInConfResponse` + """ + http_info = self._check_call_number_in_conf_http_info(request) + return self._call_api(**http_info) + + def check_call_number_in_conf_async_invoker(self, request): + http_info = self._check_call_number_in_conf_http_info(request) + return AsyncInvoker(self, http_info) + + def _check_call_number_in_conf_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/mms/ncms/conferences/online/check-callnumber-in-conf", + "request_type": request.__class__.__name__, + "response_type": "CheckCallNumberInConfResponse" + } + + 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 'call_number' in local_var_params: + query_params.append(('call_number', local_var_params['call_number'])) + + 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 check_slide_verify_code_async(self, request): """校验滑块验证码 diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_client.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_client.py index 759a707766..7b0c741d46 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_client.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_client.py @@ -2209,6 +2209,71 @@ def _cancel_recurring_sub_meeting_http_info(cls, request): return http_info + def check_call_number_in_conf(self, request): + """根据号码,查询是否在会议中 + + 通过该接口查询号码,是否在会议中 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CheckCallNumberInConf + :type request: :class:`huaweicloudsdkmeeting.v1.CheckCallNumberInConfRequest` + :rtype: :class:`huaweicloudsdkmeeting.v1.CheckCallNumberInConfResponse` + """ + http_info = self._check_call_number_in_conf_http_info(request) + return self._call_api(**http_info) + + def check_call_number_in_conf_invoker(self, request): + http_info = self._check_call_number_in_conf_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _check_call_number_in_conf_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/mms/ncms/conferences/online/check-callnumber-in-conf", + "request_type": request.__class__.__name__, + "response_type": "CheckCallNumberInConfResponse" + } + + 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 'call_number' in local_var_params: + query_params.append(('call_number', local_var_params['call_number'])) + + 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 check_slide_verify_code(self, request): """校验滑块验证码 diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/__init__.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/__init__.py index 2cf7da5c92..70543a782c 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/__init__.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/__init__.py @@ -81,6 +81,8 @@ from huaweicloudsdkmeeting.v1.model.cancel_recurring_sub_meeting_request import CancelRecurringSubMeetingRequest from huaweicloudsdkmeeting.v1.model.cancel_recurring_sub_meeting_response import CancelRecurringSubMeetingResponse from huaweicloudsdkmeeting.v1.model.category_suggestions import CategorySuggestions +from huaweicloudsdkmeeting.v1.model.check_call_number_in_conf_request import CheckCallNumberInConfRequest +from huaweicloudsdkmeeting.v1.model.check_call_number_in_conf_response import CheckCallNumberInConfResponse from huaweicloudsdkmeeting.v1.model.check_slide_verify_code_request import CheckSlideVerifyCodeRequest from huaweicloudsdkmeeting.v1.model.check_slide_verify_code_response import CheckSlideVerifyCodeResponse from huaweicloudsdkmeeting.v1.model.check_token_request import CheckTokenRequest diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/check_call_number_in_conf_request.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/check_call_number_in_conf_request.py new file mode 100644 index 0000000000..77d2286fec --- /dev/null +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/check_call_number_in_conf_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CheckCallNumberInConfRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'call_number': 'str' + } + + attribute_map = { + 'call_number': 'call_number' + } + + def __init__(self, call_number=None): + """CheckCallNumberInConfRequest + + The model defined in huaweicloud sdk + + :param call_number: 呼叫号码 + :type call_number: str + """ + + + + self._call_number = None + self.discriminator = None + + self.call_number = call_number + + @property + def call_number(self): + """Gets the call_number of this CheckCallNumberInConfRequest. + + 呼叫号码 + + :return: The call_number of this CheckCallNumberInConfRequest. + :rtype: str + """ + return self._call_number + + @call_number.setter + def call_number(self, call_number): + """Sets the call_number of this CheckCallNumberInConfRequest. + + 呼叫号码 + + :param call_number: The call_number of this CheckCallNumberInConfRequest. + :type call_number: str + """ + self._call_number = call_number + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CheckCallNumberInConfRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/check_call_number_in_conf_response.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/check_call_number_in_conf_response.py new file mode 100644 index 0000000000..b265ddf975 --- /dev/null +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/check_call_number_in_conf_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 CheckCallNumberInConfResponse(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 = { + 'in_conf': 'bool', + 'conf_id': 'str' + } + + attribute_map = { + 'in_conf': 'in_conf', + 'conf_id': 'conf_id' + } + + def __init__(self, in_conf=None, conf_id=None): + """CheckCallNumberInConfResponse + + The model defined in huaweicloud sdk + + :param in_conf: 是否在会议中 + :type in_conf: bool + :param conf_id: 会议id + :type conf_id: str + """ + + super(CheckCallNumberInConfResponse, self).__init__() + + self._in_conf = None + self._conf_id = None + self.discriminator = None + + if in_conf is not None: + self.in_conf = in_conf + if conf_id is not None: + self.conf_id = conf_id + + @property + def in_conf(self): + """Gets the in_conf of this CheckCallNumberInConfResponse. + + 是否在会议中 + + :return: The in_conf of this CheckCallNumberInConfResponse. + :rtype: bool + """ + return self._in_conf + + @in_conf.setter + def in_conf(self, in_conf): + """Sets the in_conf of this CheckCallNumberInConfResponse. + + 是否在会议中 + + :param in_conf: The in_conf of this CheckCallNumberInConfResponse. + :type in_conf: bool + """ + self._in_conf = in_conf + + @property + def conf_id(self): + """Gets the conf_id of this CheckCallNumberInConfResponse. + + 会议id + + :return: The conf_id of this CheckCallNumberInConfResponse. + :rtype: str + """ + return self._conf_id + + @conf_id.setter + def conf_id(self, conf_id): + """Sets the conf_id of this CheckCallNumberInConfResponse. + + 会议id + + :param conf_id: The conf_id of this CheckCallNumberInConfResponse. + :type conf_id: str + """ + self._conf_id = conf_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, CheckCallNumberInConfResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-meeting/requirements.txt b/huaweicloud-sdk-meeting/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-meeting/requirements.txt +++ b/huaweicloud-sdk-meeting/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-meeting/setup.py b/huaweicloud-sdk-meeting/setup.py index 51cef6f5ef..8c7ba371e9 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/__init__.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/__init__.py index 0f27c37b3b..122f8911fc 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/__init__.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/__init__.py @@ -70,6 +70,9 @@ from huaweicloudsdkmetastudio.v1.model.create_batch_knowledge_question_req import CreateBatchKnowledgeQuestionReq from huaweicloudsdkmetastudio.v1.model.create_batch_knowledge_question_request import CreateBatchKnowledgeQuestionRequest from huaweicloudsdkmetastudio.v1.model.create_batch_knowledge_question_response import CreateBatchKnowledgeQuestionResponse +from huaweicloudsdkmetastudio.v1.model.create_beauty_preview_job_req import CreateBeautyPreviewJobReq +from huaweicloudsdkmetastudio.v1.model.create_beauty_preview_job_request import CreateBeautyPreviewJobRequest +from huaweicloudsdkmetastudio.v1.model.create_beauty_preview_job_response import CreateBeautyPreviewJobResponse from huaweicloudsdkmetastudio.v1.model.create_dialog_url_req import CreateDialogUrlReq from huaweicloudsdkmetastudio.v1.model.create_dialog_url_request import CreateDialogUrlRequest from huaweicloudsdkmetastudio.v1.model.create_dialog_url_response import CreateDialogUrlResponse @@ -391,6 +394,8 @@ from huaweicloudsdkmetastudio.v1.model.show_asset_replication_info_response import ShowAssetReplicationInfoResponse from huaweicloudsdkmetastudio.v1.model.show_asset_request import ShowAssetRequest from huaweicloudsdkmetastudio.v1.model.show_asset_response import ShowAssetResponse +from huaweicloudsdkmetastudio.v1.model.show_beauty_preview_job_request import ShowBeautyPreviewJobRequest +from huaweicloudsdkmetastudio.v1.model.show_beauty_preview_job_response import ShowBeautyPreviewJobResponse from huaweicloudsdkmetastudio.v1.model.show_digital_human_business_card_request import ShowDigitalHumanBusinessCardRequest from huaweicloudsdkmetastudio.v1.model.show_digital_human_business_card_response import ShowDigitalHumanBusinessCardResponse from huaweicloudsdkmetastudio.v1.model.show_hot_question_request import ShowHotQuestionRequest @@ -455,6 +460,8 @@ from huaweicloudsdkmetastudio.v1.model.smart_live_room_base_info import SmartLiveRoomBaseInfo from huaweicloudsdkmetastudio.v1.model.smart_text_layer_config import SmartTextLayerConfig from huaweicloudsdkmetastudio.v1.model.smart_video_layer_config import SmartVideoLayerConfig +from huaweicloudsdkmetastudio.v1.model.start_beauty_preview_job_request import StartBeautyPreviewJobRequest +from huaweicloudsdkmetastudio.v1.model.start_beauty_preview_job_response import StartBeautyPreviewJobResponse from huaweicloudsdkmetastudio.v1.model.start_smart_chat_job_request import StartSmartChatJobRequest from huaweicloudsdkmetastudio.v1.model.start_smart_chat_job_response import StartSmartChatJobResponse from huaweicloudsdkmetastudio.v1.model.start_smart_live_req import StartSmartLiveReq @@ -478,8 +485,10 @@ from huaweicloudsdkmetastudio.v1.model.text_config import TextConfig from huaweicloudsdkmetastudio.v1.model.text_layer_config import TextLayerConfig from huaweicloudsdkmetastudio.v1.model.third_party_model_config import ThirdPartyModelConfig +from huaweicloudsdkmetastudio.v1.model.training_allocated_resource import TrainingAllocatedResource from huaweicloudsdkmetastudio.v1.model.training_job_basic_info import TrainingJobBasicInfo from huaweicloudsdkmetastudio.v1.model.training_job_info import TrainingJobInfo +from huaweicloudsdkmetastudio.v1.model.training_video_mark_info import TrainingVideoMarkInfo from huaweicloudsdkmetastudio.v1.model.trigger_process import TriggerProcess from huaweicloudsdkmetastudio.v1.model.update2d_model_training_job_req import Update2dModelTrainingJobReq from huaweicloudsdkmetastudio.v1.model.update2d_model_training_job_request import Update2dModelTrainingJobRequest diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_async_client.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_async_client.py index 97c0d4382d..c9656c0d0c 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_async_client.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_async_client.py @@ -637,6 +637,207 @@ def _show_agency_http_info(self, request): return http_info + def create_beauty_preview_job_async(self, request): + """创建美白预览任务 + + 该接口用于创建美白预览任务。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateBeautyPreviewJob + :type request: :class:`huaweicloudsdkmetastudio.v1.CreateBeautyPreviewJobRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreateBeautyPreviewJobResponse` + """ + http_info = self._create_beauty_preview_job_http_info(request) + return self._call_api(**http_info) + + def create_beauty_preview_job_async_invoker(self, request): + http_info = self._create_beauty_preview_job_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_beauty_preview_job_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/digital-human-training-manage/beauty-preview/jobs", + "request_type": request.__class__.__name__, + "response_type": "CreateBeautyPreviewJobResponse" + } + + 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_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_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 = ["X-Request-Id", ] + + 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_beauty_preview_job_async(self, request): + """查询美白预览任务 + + 该接口用于查询美白预览任务。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowBeautyPreviewJob + :type request: :class:`huaweicloudsdkmetastudio.v1.ShowBeautyPreviewJobRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ShowBeautyPreviewJobResponse` + """ + http_info = self._show_beauty_preview_job_http_info(request) + return self._call_api(**http_info) + + def show_beauty_preview_job_async_invoker(self, request): + http_info = self._show_beauty_preview_job_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_beauty_preview_job_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/digital-human-training-manage/beauty-preview/jobs/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowBeautyPreviewJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + 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_beauty_preview_job_async(self, request): + """启动美白预览任务 + + 该接口用于启动美白预览任务。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for StartBeautyPreviewJob + :type request: :class:`huaweicloudsdkmetastudio.v1.StartBeautyPreviewJobRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.StartBeautyPreviewJobResponse` + """ + http_info = self._start_beauty_preview_job_http_info(request) + return self._call_api(**http_info) + + def start_beauty_preview_job_async_invoker(self, request): + http_info = self._start_beauty_preview_job_http_info(request) + return AsyncInvoker(self, http_info) + + def _start_beauty_preview_job_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/digital-human-training-manage/beauty-preview/jobs/{job_id}/start", + "request_type": request.__class__.__name__, + "response_type": "StartBeautyPreviewJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + 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_dialog_url_async(self, request): """创建对话链接 diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_client.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_client.py index b195714c14..bb5e0ffe93 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_client.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_client.py @@ -637,6 +637,207 @@ def _show_agency_http_info(cls, request): return http_info + def create_beauty_preview_job(self, request): + """创建美白预览任务 + + 该接口用于创建美白预览任务。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateBeautyPreviewJob + :type request: :class:`huaweicloudsdkmetastudio.v1.CreateBeautyPreviewJobRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreateBeautyPreviewJobResponse` + """ + http_info = self._create_beauty_preview_job_http_info(request) + return self._call_api(**http_info) + + def create_beauty_preview_job_invoker(self, request): + http_info = self._create_beauty_preview_job_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_beauty_preview_job_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/digital-human-training-manage/beauty-preview/jobs", + "request_type": request.__class__.__name__, + "response_type": "CreateBeautyPreviewJobResponse" + } + + 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_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_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 = ["X-Request-Id", ] + + 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_beauty_preview_job(self, request): + """查询美白预览任务 + + 该接口用于查询美白预览任务。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowBeautyPreviewJob + :type request: :class:`huaweicloudsdkmetastudio.v1.ShowBeautyPreviewJobRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ShowBeautyPreviewJobResponse` + """ + http_info = self._show_beauty_preview_job_http_info(request) + return self._call_api(**http_info) + + def show_beauty_preview_job_invoker(self, request): + http_info = self._show_beauty_preview_job_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_beauty_preview_job_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/digital-human-training-manage/beauty-preview/jobs/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowBeautyPreviewJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + 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_beauty_preview_job(self, request): + """启动美白预览任务 + + 该接口用于启动美白预览任务。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for StartBeautyPreviewJob + :type request: :class:`huaweicloudsdkmetastudio.v1.StartBeautyPreviewJobRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.StartBeautyPreviewJobResponse` + """ + http_info = self._start_beauty_preview_job_http_info(request) + return self._call_api(**http_info) + + def start_beauty_preview_job_invoker(self, request): + http_info = self._start_beauty_preview_job_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _start_beauty_preview_job_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/digital-human-training-manage/beauty-preview/jobs/{job_id}/start", + "request_type": request.__class__.__name__, + "response_type": "StartBeautyPreviewJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + 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_dialog_url(self, request): """创建对话链接 diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/__init__.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/__init__.py index 1c76db06d0..14d4f30f44 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/__init__.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/__init__.py @@ -68,6 +68,9 @@ from huaweicloudsdkmetastudio.v1.model.create_batch_knowledge_question_req import CreateBatchKnowledgeQuestionReq from huaweicloudsdkmetastudio.v1.model.create_batch_knowledge_question_request import CreateBatchKnowledgeQuestionRequest from huaweicloudsdkmetastudio.v1.model.create_batch_knowledge_question_response import CreateBatchKnowledgeQuestionResponse +from huaweicloudsdkmetastudio.v1.model.create_beauty_preview_job_req import CreateBeautyPreviewJobReq +from huaweicloudsdkmetastudio.v1.model.create_beauty_preview_job_request import CreateBeautyPreviewJobRequest +from huaweicloudsdkmetastudio.v1.model.create_beauty_preview_job_response import CreateBeautyPreviewJobResponse from huaweicloudsdkmetastudio.v1.model.create_dialog_url_req import CreateDialogUrlReq from huaweicloudsdkmetastudio.v1.model.create_dialog_url_request import CreateDialogUrlRequest from huaweicloudsdkmetastudio.v1.model.create_dialog_url_response import CreateDialogUrlResponse @@ -389,6 +392,8 @@ from huaweicloudsdkmetastudio.v1.model.show_asset_replication_info_response import ShowAssetReplicationInfoResponse from huaweicloudsdkmetastudio.v1.model.show_asset_request import ShowAssetRequest from huaweicloudsdkmetastudio.v1.model.show_asset_response import ShowAssetResponse +from huaweicloudsdkmetastudio.v1.model.show_beauty_preview_job_request import ShowBeautyPreviewJobRequest +from huaweicloudsdkmetastudio.v1.model.show_beauty_preview_job_response import ShowBeautyPreviewJobResponse from huaweicloudsdkmetastudio.v1.model.show_digital_human_business_card_request import ShowDigitalHumanBusinessCardRequest from huaweicloudsdkmetastudio.v1.model.show_digital_human_business_card_response import ShowDigitalHumanBusinessCardResponse from huaweicloudsdkmetastudio.v1.model.show_hot_question_request import ShowHotQuestionRequest @@ -453,6 +458,8 @@ from huaweicloudsdkmetastudio.v1.model.smart_live_room_base_info import SmartLiveRoomBaseInfo from huaweicloudsdkmetastudio.v1.model.smart_text_layer_config import SmartTextLayerConfig from huaweicloudsdkmetastudio.v1.model.smart_video_layer_config import SmartVideoLayerConfig +from huaweicloudsdkmetastudio.v1.model.start_beauty_preview_job_request import StartBeautyPreviewJobRequest +from huaweicloudsdkmetastudio.v1.model.start_beauty_preview_job_response import StartBeautyPreviewJobResponse from huaweicloudsdkmetastudio.v1.model.start_smart_chat_job_request import StartSmartChatJobRequest from huaweicloudsdkmetastudio.v1.model.start_smart_chat_job_response import StartSmartChatJobResponse from huaweicloudsdkmetastudio.v1.model.start_smart_live_req import StartSmartLiveReq @@ -476,8 +483,10 @@ from huaweicloudsdkmetastudio.v1.model.text_config import TextConfig from huaweicloudsdkmetastudio.v1.model.text_layer_config import TextLayerConfig from huaweicloudsdkmetastudio.v1.model.third_party_model_config import ThirdPartyModelConfig +from huaweicloudsdkmetastudio.v1.model.training_allocated_resource import TrainingAllocatedResource from huaweicloudsdkmetastudio.v1.model.training_job_basic_info import TrainingJobBasicInfo from huaweicloudsdkmetastudio.v1.model.training_job_info import TrainingJobInfo +from huaweicloudsdkmetastudio.v1.model.training_video_mark_info import TrainingVideoMarkInfo from huaweicloudsdkmetastudio.v1.model.trigger_process import TriggerProcess from huaweicloudsdkmetastudio.v1.model.update2d_model_training_job_req import Update2dModelTrainingJobReq from huaweicloudsdkmetastudio.v1.model.update2d_model_training_job_request import Update2dModelTrainingJobRequest diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/action_basic_sample_info.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/action_basic_sample_info.py index ea52de0518..cc6f9d35f1 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/action_basic_sample_info.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/action_basic_sample_info.py @@ -21,6 +21,7 @@ class ActionBasicSampleInfo: 'action_name_en': 'str', 'action_tag': 'str', 'catalog': 'str', + 'recommended_value': 'int', 'is_selected': 'bool' } @@ -29,10 +30,11 @@ class ActionBasicSampleInfo: 'action_name_en': 'action_name_en', 'action_tag': 'action_tag', 'catalog': 'catalog', + 'recommended_value': 'recommended_value', 'is_selected': 'is_selected' } - def __init__(self, action_name_zh=None, action_name_en=None, action_tag=None, catalog=None, is_selected=None): + def __init__(self, action_name_zh=None, action_name_en=None, action_tag=None, catalog=None, recommended_value=None, is_selected=None): """ActionBasicSampleInfo The model defined in huaweicloud sdk @@ -45,6 +47,8 @@ def __init__(self, action_name_zh=None, action_name_en=None, action_tag=None, ca :type action_tag: str :param catalog: 原子动作标签。 :type catalog: str + :param recommended_value: 推荐等级。 + :type recommended_value: int :param is_selected: 是否选择此动作。 :type is_selected: bool """ @@ -55,6 +59,7 @@ def __init__(self, action_name_zh=None, action_name_en=None, action_tag=None, ca self._action_name_en = None self._action_tag = None self._catalog = None + self._recommended_value = None self._is_selected = None self.discriminator = None @@ -65,6 +70,8 @@ def __init__(self, action_name_zh=None, action_name_en=None, action_tag=None, ca self.action_tag = action_tag if catalog is not None: self.catalog = catalog + if recommended_value is not None: + self.recommended_value = recommended_value if is_selected is not None: self.is_selected = is_selected @@ -156,6 +163,28 @@ def catalog(self, catalog): """ self._catalog = catalog + @property + def recommended_value(self): + """Gets the recommended_value of this ActionBasicSampleInfo. + + 推荐等级。 + + :return: The recommended_value of this ActionBasicSampleInfo. + :rtype: int + """ + return self._recommended_value + + @recommended_value.setter + def recommended_value(self, recommended_value): + """Sets the recommended_value of this ActionBasicSampleInfo. + + 推荐等级。 + + :param recommended_value: The recommended_value of this ActionBasicSampleInfo. + :type recommended_value: int + """ + self._recommended_value = recommended_value + @property def is_selected(self): """Gets the is_selected of this ActionBasicSampleInfo. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/action_sample_info.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/action_sample_info.py index 06b21fe625..adccd6fb9d 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/action_sample_info.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/action_sample_info.py @@ -21,6 +21,7 @@ class ActionSampleInfo: 'action_name_en': 'str', 'action_tag': 'str', 'catalog': 'str', + 'recommended_value': 'int', 'is_selected': 'bool', 'sample_download_url': 'str' } @@ -30,11 +31,12 @@ class ActionSampleInfo: 'action_name_en': 'action_name_en', 'action_tag': 'action_tag', 'catalog': 'catalog', + 'recommended_value': 'recommended_value', 'is_selected': 'is_selected', 'sample_download_url': 'sample_download_url' } - def __init__(self, action_name_zh=None, action_name_en=None, action_tag=None, catalog=None, is_selected=None, sample_download_url=None): + def __init__(self, action_name_zh=None, action_name_en=None, action_tag=None, catalog=None, recommended_value=None, is_selected=None, sample_download_url=None): """ActionSampleInfo The model defined in huaweicloud sdk @@ -47,6 +49,8 @@ def __init__(self, action_name_zh=None, action_name_en=None, action_tag=None, ca :type action_tag: str :param catalog: 动作分类名称。 :type catalog: str + :param recommended_value: 推荐等级。 + :type recommended_value: int :param is_selected: 是否选择此动作。 :type is_selected: bool :param sample_download_url: 原子动作样例文件下载地址。24小时内有效。 @@ -59,6 +63,7 @@ def __init__(self, action_name_zh=None, action_name_en=None, action_tag=None, ca self._action_name_en = None self._action_tag = None self._catalog = None + self._recommended_value = None self._is_selected = None self._sample_download_url = None self.discriminator = None @@ -70,6 +75,8 @@ def __init__(self, action_name_zh=None, action_name_en=None, action_tag=None, ca self.action_tag = action_tag if catalog is not None: self.catalog = catalog + if recommended_value is not None: + self.recommended_value = recommended_value if is_selected is not None: self.is_selected = is_selected if sample_download_url is not None: @@ -163,6 +170,28 @@ def catalog(self, catalog): """ self._catalog = catalog + @property + def recommended_value(self): + """Gets the recommended_value of this ActionSampleInfo. + + 推荐等级。 + + :return: The recommended_value of this ActionSampleInfo. + :rtype: int + """ + return self._recommended_value + + @recommended_value.setter + def recommended_value(self, recommended_value): + """Sets the recommended_value of this ActionSampleInfo. + + 推荐等级。 + + :param recommended_value: The recommended_value of this ActionSampleInfo. + :type recommended_value: int + """ + self._recommended_value = recommended_value + @property def is_selected(self): """Gets the is_selected of this ActionSampleInfo. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create2d_model_training_job_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create2d_model_training_job_req.py index 81773ef00c..4bacd0268d 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create2d_model_training_job_req.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create2d_model_training_job_req.py @@ -26,7 +26,9 @@ class Create2dModelTrainingJobReq: 'batch_name': 'str', 'tags': 'list[str]', 'model_version': 'str', + 'beauty_level': 'int', 'is_flexus': 'bool', + 'is_only_human_model': 'bool', 'audio_source_type': 'str', 'voice_properties': 'VoiceProperties', 'supported_service': 'list[SupportedServiceEnum]' @@ -42,13 +44,15 @@ class Create2dModelTrainingJobReq: 'batch_name': 'batch_name', 'tags': 'tags', 'model_version': 'model_version', + 'beauty_level': 'beauty_level', 'is_flexus': 'is_flexus', + 'is_only_human_model': 'is_only_human_model', 'audio_source_type': 'audio_source_type', 'voice_properties': 'voice_properties', 'supported_service': 'supported_service' } - def __init__(self, name=None, contact=None, command_message=None, video_multipart_count=None, action_video_multipart_count=None, is_background_replacement=None, batch_name=None, tags=None, model_version=None, is_flexus=None, audio_source_type=None, voice_properties=None, supported_service=None): + def __init__(self, name=None, contact=None, command_message=None, video_multipart_count=None, action_video_multipart_count=None, is_background_replacement=None, batch_name=None, tags=None, model_version=None, beauty_level=None, is_flexus=None, is_only_human_model=None, audio_source_type=None, voice_properties=None, supported_service=None): """Create2dModelTrainingJobReq The model defined in huaweicloud sdk @@ -71,8 +75,12 @@ def __init__(self, name=None, contact=None, command_message=None, video_multipar :type tags: list[str] :param model_version: 分身数字人模型版本。默认是V3.2版本模型。 * V3.2:V3.2版本模型 > * V3和V2版本已废弃不用 :type model_version: str + :param beauty_level: 美白等级。默认值0,不美白。 + :type beauty_level: int :param is_flexus: 是否是基础版的形象训练 :type is_flexus: bool + :param is_only_human_model: 是否只训练形象模型,不训练声音模型。仅Flexus版本时有效,默认false。 + :type is_only_human_model: bool :param audio_source_type: 声音来源类型 * VIDEO:视频中抽取音频 * AUDIO:单独上传的音频 :type audio_source_type: str :param voice_properties: @@ -92,7 +100,9 @@ def __init__(self, name=None, contact=None, command_message=None, video_multipar self._batch_name = None self._tags = None self._model_version = None + self._beauty_level = None self._is_flexus = None + self._is_only_human_model = None self._audio_source_type = None self._voice_properties = None self._supported_service = None @@ -115,8 +125,12 @@ def __init__(self, name=None, contact=None, command_message=None, video_multipar self.tags = tags if model_version is not None: self.model_version = model_version + if beauty_level is not None: + self.beauty_level = beauty_level if is_flexus is not None: self.is_flexus = is_flexus + if is_only_human_model is not None: + self.is_only_human_model = is_only_human_model if audio_source_type is not None: self.audio_source_type = audio_source_type if voice_properties is not None: @@ -322,6 +336,28 @@ def model_version(self, model_version): """ self._model_version = model_version + @property + def beauty_level(self): + """Gets the beauty_level of this Create2dModelTrainingJobReq. + + 美白等级。默认值0,不美白。 + + :return: The beauty_level of this Create2dModelTrainingJobReq. + :rtype: int + """ + return self._beauty_level + + @beauty_level.setter + def beauty_level(self, beauty_level): + """Sets the beauty_level of this Create2dModelTrainingJobReq. + + 美白等级。默认值0,不美白。 + + :param beauty_level: The beauty_level of this Create2dModelTrainingJobReq. + :type beauty_level: int + """ + self._beauty_level = beauty_level + @property def is_flexus(self): """Gets the is_flexus of this Create2dModelTrainingJobReq. @@ -344,6 +380,28 @@ def is_flexus(self, is_flexus): """ self._is_flexus = is_flexus + @property + def is_only_human_model(self): + """Gets the is_only_human_model of this Create2dModelTrainingJobReq. + + 是否只训练形象模型,不训练声音模型。仅Flexus版本时有效,默认false。 + + :return: The is_only_human_model of this Create2dModelTrainingJobReq. + :rtype: bool + """ + return self._is_only_human_model + + @is_only_human_model.setter + def is_only_human_model(self, is_only_human_model): + """Sets the is_only_human_model of this Create2dModelTrainingJobReq. + + 是否只训练形象模型,不训练声音模型。仅Flexus版本时有效,默认false。 + + :param is_only_human_model: The is_only_human_model of this Create2dModelTrainingJobReq. + :type is_only_human_model: bool + """ + self._is_only_human_model = is_only_human_model + @property def audio_source_type(self): """Gets the audio_source_type of this Create2dModelTrainingJobReq. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create2d_model_training_job_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create2d_model_training_job_response.py index 4efe40261f..50044abf5f 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create2d_model_training_job_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create2d_model_training_job_response.py @@ -26,6 +26,8 @@ class Create2dModelTrainingJobResponse(SdkResponse): 'id_card_image1_upload_url': 'str', 'id_card_image2_upload_url': 'str', 'grant_file_upload_url': 'str', + 'pre_beauty_image_upload_url': 'str', + 'post_beauty_image_upload_url': 'str', 'x_request_id': 'str' } @@ -38,30 +40,36 @@ class Create2dModelTrainingJobResponse(SdkResponse): 'id_card_image1_upload_url': 'id_card_image1_upload_url', 'id_card_image2_upload_url': 'id_card_image2_upload_url', 'grant_file_upload_url': 'grant_file_upload_url', + 'pre_beauty_image_upload_url': 'pre_beauty_image_upload_url', + 'post_beauty_image_upload_url': 'post_beauty_image_upload_url', 'x_request_id': 'X-Request-Id' } - def __init__(self, job_id=None, training_video_upload_url=None, action_video_upload_url=None, audio_upload_url=None, cover_upload_url=None, id_card_image1_upload_url=None, id_card_image2_upload_url=None, grant_file_upload_url=None, x_request_id=None): + def __init__(self, job_id=None, training_video_upload_url=None, action_video_upload_url=None, audio_upload_url=None, cover_upload_url=None, id_card_image1_upload_url=None, id_card_image2_upload_url=None, grant_file_upload_url=None, pre_beauty_image_upload_url=None, post_beauty_image_upload_url=None, x_request_id=None): """Create2dModelTrainingJobResponse The model defined in huaweicloud sdk :param job_id: 任务ID。 :type job_id: str - :param training_video_upload_url: 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 + :param training_video_upload_url: 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :type training_video_upload_url: list[str] - :param action_video_upload_url: 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 + :param action_video_upload_url: 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :type action_video_upload_url: list[str] - :param audio_upload_url: 音频数据训练上传URL。该url在文件上传成功后失效,只能上传一次 + :param audio_upload_url: 音频数据训练上传URL。该url在文件上传成功后失效,只能上传一次 > 通过该地址上传时,需设置content-type为application/zip。 :type audio_upload_url: str - :param cover_upload_url: 模型封面上传URL。该URL在文件上传成功后失效,只能上传一次。 + :param cover_upload_url: 模型封面上传URL。该URL在文件上传成功后失效,只能上传一次。 > 通过该地址上传时,需设置content-type为application/octet-stream :type cover_upload_url: str - :param id_card_image1_upload_url: 身份证正面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 + :param id_card_image1_upload_url: 身份证正面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :type id_card_image1_upload_url: str - :param id_card_image2_upload_url: 身份证反面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 + :param id_card_image2_upload_url: 身份证反面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :type id_card_image2_upload_url: str - :param grant_file_upload_url: 授权书上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 + :param grant_file_upload_url: 授权书上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :type grant_file_upload_url: str + :param pre_beauty_image_upload_url: 美白前图片上传url。 > 通过该地址上传时,需设置content-type为application/octet-stream + :type pre_beauty_image_upload_url: str + :param post_beauty_image_upload_url: 美白后图片上传url。 > 通过该地址上传时,需设置content-type为application/octet-stream + :type post_beauty_image_upload_url: str :param x_request_id: :type x_request_id: str """ @@ -76,6 +84,8 @@ def __init__(self, job_id=None, training_video_upload_url=None, action_video_upl self._id_card_image1_upload_url = None self._id_card_image2_upload_url = None self._grant_file_upload_url = None + self._pre_beauty_image_upload_url = None + self._post_beauty_image_upload_url = None self._x_request_id = None self.discriminator = None @@ -95,6 +105,10 @@ def __init__(self, job_id=None, training_video_upload_url=None, action_video_upl self.id_card_image2_upload_url = id_card_image2_upload_url if grant_file_upload_url is not None: self.grant_file_upload_url = grant_file_upload_url + if pre_beauty_image_upload_url is not None: + self.pre_beauty_image_upload_url = pre_beauty_image_upload_url + if post_beauty_image_upload_url is not None: + self.post_beauty_image_upload_url = post_beauty_image_upload_url if x_request_id is not None: self.x_request_id = x_request_id @@ -124,7 +138,7 @@ def job_id(self, job_id): def training_video_upload_url(self): """Gets the training_video_upload_url of this Create2dModelTrainingJobResponse. - 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 + 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :return: The training_video_upload_url of this Create2dModelTrainingJobResponse. :rtype: list[str] @@ -135,7 +149,7 @@ def training_video_upload_url(self): def training_video_upload_url(self, training_video_upload_url): """Sets the training_video_upload_url of this Create2dModelTrainingJobResponse. - 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 + 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :param training_video_upload_url: The training_video_upload_url of this Create2dModelTrainingJobResponse. :type training_video_upload_url: list[str] @@ -146,7 +160,7 @@ def training_video_upload_url(self, training_video_upload_url): def action_video_upload_url(self): """Gets the action_video_upload_url of this Create2dModelTrainingJobResponse. - 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 + 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :return: The action_video_upload_url of this Create2dModelTrainingJobResponse. :rtype: list[str] @@ -157,7 +171,7 @@ def action_video_upload_url(self): def action_video_upload_url(self, action_video_upload_url): """Sets the action_video_upload_url of this Create2dModelTrainingJobResponse. - 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 + 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :param action_video_upload_url: The action_video_upload_url of this Create2dModelTrainingJobResponse. :type action_video_upload_url: list[str] @@ -168,7 +182,7 @@ def action_video_upload_url(self, action_video_upload_url): def audio_upload_url(self): """Gets the audio_upload_url of this Create2dModelTrainingJobResponse. - 音频数据训练上传URL。该url在文件上传成功后失效,只能上传一次 + 音频数据训练上传URL。该url在文件上传成功后失效,只能上传一次 > 通过该地址上传时,需设置content-type为application/zip。 :return: The audio_upload_url of this Create2dModelTrainingJobResponse. :rtype: str @@ -179,7 +193,7 @@ def audio_upload_url(self): def audio_upload_url(self, audio_upload_url): """Sets the audio_upload_url of this Create2dModelTrainingJobResponse. - 音频数据训练上传URL。该url在文件上传成功后失效,只能上传一次 + 音频数据训练上传URL。该url在文件上传成功后失效,只能上传一次 > 通过该地址上传时,需设置content-type为application/zip。 :param audio_upload_url: The audio_upload_url of this Create2dModelTrainingJobResponse. :type audio_upload_url: str @@ -190,7 +204,7 @@ def audio_upload_url(self, audio_upload_url): def cover_upload_url(self): """Gets the cover_upload_url of this Create2dModelTrainingJobResponse. - 模型封面上传URL。该URL在文件上传成功后失效,只能上传一次。 + 模型封面上传URL。该URL在文件上传成功后失效,只能上传一次。 > 通过该地址上传时,需设置content-type为application/octet-stream :return: The cover_upload_url of this Create2dModelTrainingJobResponse. :rtype: str @@ -201,7 +215,7 @@ def cover_upload_url(self): def cover_upload_url(self, cover_upload_url): """Sets the cover_upload_url of this Create2dModelTrainingJobResponse. - 模型封面上传URL。该URL在文件上传成功后失效,只能上传一次。 + 模型封面上传URL。该URL在文件上传成功后失效,只能上传一次。 > 通过该地址上传时,需设置content-type为application/octet-stream :param cover_upload_url: The cover_upload_url of this Create2dModelTrainingJobResponse. :type cover_upload_url: str @@ -212,7 +226,7 @@ def cover_upload_url(self, cover_upload_url): def id_card_image1_upload_url(self): """Gets the id_card_image1_upload_url of this Create2dModelTrainingJobResponse. - 身份证正面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 + 身份证正面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :return: The id_card_image1_upload_url of this Create2dModelTrainingJobResponse. :rtype: str @@ -223,7 +237,7 @@ def id_card_image1_upload_url(self): def id_card_image1_upload_url(self, id_card_image1_upload_url): """Sets the id_card_image1_upload_url of this Create2dModelTrainingJobResponse. - 身份证正面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 + 身份证正面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :param id_card_image1_upload_url: The id_card_image1_upload_url of this Create2dModelTrainingJobResponse. :type id_card_image1_upload_url: str @@ -234,7 +248,7 @@ def id_card_image1_upload_url(self, id_card_image1_upload_url): def id_card_image2_upload_url(self): """Gets the id_card_image2_upload_url of this Create2dModelTrainingJobResponse. - 身份证反面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 + 身份证反面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :return: The id_card_image2_upload_url of this Create2dModelTrainingJobResponse. :rtype: str @@ -245,7 +259,7 @@ def id_card_image2_upload_url(self): def id_card_image2_upload_url(self, id_card_image2_upload_url): """Sets the id_card_image2_upload_url of this Create2dModelTrainingJobResponse. - 身份证反面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 + 身份证反面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :param id_card_image2_upload_url: The id_card_image2_upload_url of this Create2dModelTrainingJobResponse. :type id_card_image2_upload_url: str @@ -256,7 +270,7 @@ def id_card_image2_upload_url(self, id_card_image2_upload_url): def grant_file_upload_url(self): """Gets the grant_file_upload_url of this Create2dModelTrainingJobResponse. - 授权书上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 + 授权书上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :return: The grant_file_upload_url of this Create2dModelTrainingJobResponse. :rtype: str @@ -267,13 +281,57 @@ def grant_file_upload_url(self): def grant_file_upload_url(self, grant_file_upload_url): """Sets the grant_file_upload_url of this Create2dModelTrainingJobResponse. - 授权书上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 + 授权书上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :param grant_file_upload_url: The grant_file_upload_url of this Create2dModelTrainingJobResponse. :type grant_file_upload_url: str """ self._grant_file_upload_url = grant_file_upload_url + @property + def pre_beauty_image_upload_url(self): + """Gets the pre_beauty_image_upload_url of this Create2dModelTrainingJobResponse. + + 美白前图片上传url。 > 通过该地址上传时,需设置content-type为application/octet-stream + + :return: The pre_beauty_image_upload_url of this Create2dModelTrainingJobResponse. + :rtype: str + """ + return self._pre_beauty_image_upload_url + + @pre_beauty_image_upload_url.setter + def pre_beauty_image_upload_url(self, pre_beauty_image_upload_url): + """Sets the pre_beauty_image_upload_url of this Create2dModelTrainingJobResponse. + + 美白前图片上传url。 > 通过该地址上传时,需设置content-type为application/octet-stream + + :param pre_beauty_image_upload_url: The pre_beauty_image_upload_url of this Create2dModelTrainingJobResponse. + :type pre_beauty_image_upload_url: str + """ + self._pre_beauty_image_upload_url = pre_beauty_image_upload_url + + @property + def post_beauty_image_upload_url(self): + """Gets the post_beauty_image_upload_url of this Create2dModelTrainingJobResponse. + + 美白后图片上传url。 > 通过该地址上传时,需设置content-type为application/octet-stream + + :return: The post_beauty_image_upload_url of this Create2dModelTrainingJobResponse. + :rtype: str + """ + return self._post_beauty_image_upload_url + + @post_beauty_image_upload_url.setter + def post_beauty_image_upload_url(self, post_beauty_image_upload_url): + """Sets the post_beauty_image_upload_url of this Create2dModelTrainingJobResponse. + + 美白后图片上传url。 > 通过该地址上传时,需设置content-type为application/octet-stream + + :param post_beauty_image_upload_url: The post_beauty_image_upload_url of this Create2dModelTrainingJobResponse. + :type post_beauty_image_upload_url: str + """ + self._post_beauty_image_upload_url = post_beauty_image_upload_url + @property def x_request_id(self): """Gets the x_request_id of this Create2dModelTrainingJobResponse. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_beauty_preview_job_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_beauty_preview_job_req.py new file mode 100644 index 0000000000..0b03ca8c1f --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_beauty_preview_job_req.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateBeautyPreviewJobReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'level': 'int' + } + + attribute_map = { + 'name': 'name', + 'level': 'level' + } + + def __init__(self, name=None, level=None): + """CreateBeautyPreviewJobReq + + The model defined in huaweicloud sdk + + :param name: 美白预览任务名称。 + :type name: str + :param level: 美白等级。默认1级。 + :type level: int + """ + + + + self._name = None + self._level = None + self.discriminator = None + + self.name = name + if level is not None: + self.level = level + + @property + def name(self): + """Gets the name of this CreateBeautyPreviewJobReq. + + 美白预览任务名称。 + + :return: The name of this CreateBeautyPreviewJobReq. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateBeautyPreviewJobReq. + + 美白预览任务名称。 + + :param name: The name of this CreateBeautyPreviewJobReq. + :type name: str + """ + self._name = name + + @property + def level(self): + """Gets the level of this CreateBeautyPreviewJobReq. + + 美白等级。默认1级。 + + :return: The level of this CreateBeautyPreviewJobReq. + :rtype: int + """ + return self._level + + @level.setter + def level(self, level): + """Sets the level of this CreateBeautyPreviewJobReq. + + 美白等级。默认1级。 + + :param level: The level of this CreateBeautyPreviewJobReq. + :type level: int + """ + self._level = 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, CreateBeautyPreviewJobReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_beauty_preview_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_beauty_preview_job_request.py new file mode 100644 index 0000000000..fbfc046728 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_beauty_preview_job_request.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateBeautyPreviewJobRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_app_user_id': 'str', + 'body': 'CreateBeautyPreviewJobReq' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'body': 'body' + } + + def __init__(self, x_app_user_id=None, body=None): + """CreateBeautyPreviewJobRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。不允许输入中文。 + :type x_app_user_id: str + :param body: Body of the CreateBeautyPreviewJobRequest + :type body: :class:`huaweicloudsdkmetastudio.v1.CreateBeautyPreviewJobReq` + """ + + + + self._x_app_user_id = None + self._body = None + self.discriminator = None + + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + if body is not None: + self.body = body + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this CreateBeautyPreviewJobRequest. + + 第三方用户ID。不允许输入中文。 + + :return: The x_app_user_id of this CreateBeautyPreviewJobRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this CreateBeautyPreviewJobRequest. + + 第三方用户ID。不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this CreateBeautyPreviewJobRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def body(self): + """Gets the body of this CreateBeautyPreviewJobRequest. + + :return: The body of this CreateBeautyPreviewJobRequest. + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreateBeautyPreviewJobReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateBeautyPreviewJobRequest. + + :param body: The body of this CreateBeautyPreviewJobRequest. + :type body: :class:`huaweicloudsdkmetastudio.v1.CreateBeautyPreviewJobReq` + """ + 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, CreateBeautyPreviewJobRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_beauty_preview_job_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_beauty_preview_job_response.py new file mode 100644 index 0000000000..f461d73b09 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_beauty_preview_job_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 CreateBeautyPreviewJobResponse(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', + 'pre_beauty_image_upload_url': 'str', + 'x_request_id': 'str' + } + + attribute_map = { + 'job_id': 'job_id', + 'pre_beauty_image_upload_url': 'pre_beauty_image_upload_url', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, job_id=None, pre_beauty_image_upload_url=None, x_request_id=None): + """CreateBeautyPreviewJobResponse + + The model defined in huaweicloud sdk + + :param job_id: 任务ID。 + :type job_id: str + :param pre_beauty_image_upload_url: 美白前图片上传url。 + :type pre_beauty_image_upload_url: str + :param x_request_id: + :type x_request_id: str + """ + + super(CreateBeautyPreviewJobResponse, self).__init__() + + self._job_id = None + self._pre_beauty_image_upload_url = None + self._x_request_id = None + self.discriminator = None + + if job_id is not None: + self.job_id = job_id + if pre_beauty_image_upload_url is not None: + self.pre_beauty_image_upload_url = pre_beauty_image_upload_url + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def job_id(self): + """Gets the job_id of this CreateBeautyPreviewJobResponse. + + 任务ID。 + + :return: The job_id of this CreateBeautyPreviewJobResponse. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this CreateBeautyPreviewJobResponse. + + 任务ID。 + + :param job_id: The job_id of this CreateBeautyPreviewJobResponse. + :type job_id: str + """ + self._job_id = job_id + + @property + def pre_beauty_image_upload_url(self): + """Gets the pre_beauty_image_upload_url of this CreateBeautyPreviewJobResponse. + + 美白前图片上传url。 + + :return: The pre_beauty_image_upload_url of this CreateBeautyPreviewJobResponse. + :rtype: str + """ + return self._pre_beauty_image_upload_url + + @pre_beauty_image_upload_url.setter + def pre_beauty_image_upload_url(self, pre_beauty_image_upload_url): + """Sets the pre_beauty_image_upload_url of this CreateBeautyPreviewJobResponse. + + 美白前图片上传url。 + + :param pre_beauty_image_upload_url: The pre_beauty_image_upload_url of this CreateBeautyPreviewJobResponse. + :type pre_beauty_image_upload_url: str + """ + self._pre_beauty_image_upload_url = pre_beauty_image_upload_url + + @property + def x_request_id(self): + """Gets the x_request_id of this CreateBeautyPreviewJobResponse. + + :return: The x_request_id of this CreateBeautyPreviewJobResponse. + :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 CreateBeautyPreviewJobResponse. + + :param x_request_id: The x_request_id of this CreateBeautyPreviewJobResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_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, CreateBeautyPreviewJobResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_file_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_file_response.py index 94b37679f4..faa62c320a 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_file_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_file_response.py @@ -36,7 +36,7 @@ def __init__(self, file_id=None, upload_url=None, x_request_id=None): :param file_id: 文件ID。 :type file_id: str - :param upload_url: 文件上传地址,有效期为24小时。 > * [调用OBS的[“PUT上传”](https://support.huaweicloud.com/api-obs/obs_04_0080.html)接口上传文件。](tag:hc) > * [调用OBS的[“PUT上传”](https://support.huaweicloud.com/intl/zh-cn/api-obs/obs_04_0080.html)接口上传文件。](tag:hk) > * [调用OBS的“PUT上传”接口上传文件。](tag:cmcc) > * 调用上述接口时,Content-MD5头必须填写,填写的值跟file_md5中的值相同。 + :param upload_url: 文件上传地址,有效期为24小时。 > * [调用OBS的[“PUT上传”](https://support.huaweicloud.com/api-obs/obs_04_0080.html)接口上传文件。](tag:hc) > * [调用OBS的[“PUT上传”](https://support.huaweicloud.com/intl/zh-cn/api-obs/obs_04_0080.html)接口上传文件。](tag:hk) > * [调用OBS的“PUT上传”接口上传文件。](tag:cmcc) > * 调用上述接口时,Content-MD5头必须填写,填写的值跟file_md5中的值相同,md5值获取详情请参考[使用Java代码生成文件内容的MD5值](metastudio_02_0052.xml)。 > * 调用上述接口时,Content-Type头必须填写,填写的值根据不同的文件类型有所不同。 文件类型为gif,Content-Type填写image/gif 文件类型为jpeg、jpg,Content-Type填写image/jpeg 文件类型为png,Content-Type填写image/png 文件类型为mp4,Content-Type填写video/mp4 文件类型为mp3,Content-Type填写audio/mp3 文件类型为wav,Content-Type填写audio/wav 其余所有类型,Content-Type填写application/octet-stream :type upload_url: str :param x_request_id: :type x_request_id: str @@ -82,7 +82,7 @@ def file_id(self, file_id): def upload_url(self): """Gets the upload_url of this CreateFileResponse. - 文件上传地址,有效期为24小时。 > * [调用OBS的[“PUT上传”](https://support.huaweicloud.com/api-obs/obs_04_0080.html)接口上传文件。](tag:hc) > * [调用OBS的[“PUT上传”](https://support.huaweicloud.com/intl/zh-cn/api-obs/obs_04_0080.html)接口上传文件。](tag:hk) > * [调用OBS的“PUT上传”接口上传文件。](tag:cmcc) > * 调用上述接口时,Content-MD5头必须填写,填写的值跟file_md5中的值相同。 + 文件上传地址,有效期为24小时。 > * [调用OBS的[“PUT上传”](https://support.huaweicloud.com/api-obs/obs_04_0080.html)接口上传文件。](tag:hc) > * [调用OBS的[“PUT上传”](https://support.huaweicloud.com/intl/zh-cn/api-obs/obs_04_0080.html)接口上传文件。](tag:hk) > * [调用OBS的“PUT上传”接口上传文件。](tag:cmcc) > * 调用上述接口时,Content-MD5头必须填写,填写的值跟file_md5中的值相同,md5值获取详情请参考[使用Java代码生成文件内容的MD5值](metastudio_02_0052.xml)。 > * 调用上述接口时,Content-Type头必须填写,填写的值根据不同的文件类型有所不同。 文件类型为gif,Content-Type填写image/gif 文件类型为jpeg、jpg,Content-Type填写image/jpeg 文件类型为png,Content-Type填写image/png 文件类型为mp4,Content-Type填写video/mp4 文件类型为mp3,Content-Type填写audio/mp3 文件类型为wav,Content-Type填写audio/wav 其余所有类型,Content-Type填写application/octet-stream :return: The upload_url of this CreateFileResponse. :rtype: str @@ -93,7 +93,7 @@ def upload_url(self): def upload_url(self, upload_url): """Sets the upload_url of this CreateFileResponse. - 文件上传地址,有效期为24小时。 > * [调用OBS的[“PUT上传”](https://support.huaweicloud.com/api-obs/obs_04_0080.html)接口上传文件。](tag:hc) > * [调用OBS的[“PUT上传”](https://support.huaweicloud.com/intl/zh-cn/api-obs/obs_04_0080.html)接口上传文件。](tag:hk) > * [调用OBS的“PUT上传”接口上传文件。](tag:cmcc) > * 调用上述接口时,Content-MD5头必须填写,填写的值跟file_md5中的值相同。 + 文件上传地址,有效期为24小时。 > * [调用OBS的[“PUT上传”](https://support.huaweicloud.com/api-obs/obs_04_0080.html)接口上传文件。](tag:hc) > * [调用OBS的[“PUT上传”](https://support.huaweicloud.com/intl/zh-cn/api-obs/obs_04_0080.html)接口上传文件。](tag:hk) > * [调用OBS的“PUT上传”接口上传文件。](tag:cmcc) > * 调用上述接口时,Content-MD5头必须填写,填写的值跟file_md5中的值相同,md5值获取详情请参考[使用Java代码生成文件内容的MD5值](metastudio_02_0052.xml)。 > * 调用上述接口时,Content-Type头必须填写,填写的值根据不同的文件类型有所不同。 文件类型为gif,Content-Type填写image/gif 文件类型为jpeg、jpg,Content-Type填写image/jpeg 文件类型为png,Content-Type填写image/png 文件类型为mp4,Content-Type填写video/mp4 文件类型为mp3,Content-Type填写audio/mp3 文件类型为wav,Content-Type填写audio/wav 其余所有类型,Content-Type填写application/octet-stream :param upload_url: The upload_url of this CreateFileResponse. :type upload_url: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_ttsa_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_ttsa_req.py index 119662e317..b27f7621c9 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_ttsa_req.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_ttsa_req.py @@ -65,7 +65,7 @@ def __init__(self, voice_asset_id=None, script_type=None, text=None, audio_file_ :type volume: int :param emotion: 情感标签。 * ANGER:愤怒 * HAPPY:开心 * SAD:悲伤 * CALM:平静 :type emotion: str - :param style_id: 风格化ID。需要调用数字人风格管理相关接口,从系统重查得。 + :param style_id: 风格化ID。需要调用数字人风格管理相关接口,从系统中查得。 :type style_id: str :param camera_position: 人位置及相机位置。由如下4组浮点数组成的字符:人位置的X/Y/Z值,人角度的Pitch/Yaw/Roll值;相机位置的X/Y/Z值,相机角度的Pitch/Yaw/Roll值。 :type camera_position: str @@ -289,7 +289,7 @@ def emotion(self, emotion): def style_id(self): """Gets the style_id of this CreateTTSAReq. - 风格化ID。需要调用数字人风格管理相关接口,从系统重查得。 + 风格化ID。需要调用数字人风格管理相关接口,从系统中查得。 :return: The style_id of this CreateTTSAReq. :rtype: str @@ -300,7 +300,7 @@ def style_id(self): def style_id(self, style_id): """Sets the style_id of this CreateTTSAReq. - 风格化ID。需要调用数字人风格管理相关接口,从系统重查得。 + 风格化ID。需要调用数字人风格管理相关接口,从系统中查得。 :param style_id: The style_id of this CreateTTSAReq. :type style_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/files_create_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/files_create_req.py index eb72909514..5c59fef76e 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/files_create_req.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/files_create_req.py @@ -41,7 +41,7 @@ def __init__(self, file_name=None, file_md5=None, file_size=None, file_type=None :param file_name: **参数解释**: 文件名。 **约束限制**: 不区分大小写。 **取值范围**: 字符长度1-256位。 **默认取值**: 不涉及 :type file_name: str - :param file_md5: **参数解释**: 文件内容MD5值。按照RFC 1864标准计算出消息体的MD5摘要字符串,即消息体128-bit MD5值经过base64编码后得到的字符串。 **约束限制**: 不涉及 **取值范围**: 字符长度24位。 **默认取值**: 不涉及 + :param file_md5: **参数解释**: 文件内容MD5值。按照RFC 1864标准计算出消息体的MD5摘要字符串,即消息体128-bit MD5值经过base64编码后得到的字符串。 md5值获取详情请参考[使用Java代码生成文件内容的MD5值](metastudio_02_0052.xml)。 **约束限制**: 不涉及 **取值范围**: 字符长度24位。 **默认取值**: 不涉及 :type file_md5: str :param file_size: **参数解释**: 文件总的大小。 **约束限制**: 最大支持5GB **默认取值**: 不涉及 :type file_size: int @@ -96,7 +96,7 @@ def file_name(self, file_name): def file_md5(self): """Gets the file_md5 of this FilesCreateReq. - **参数解释**: 文件内容MD5值。按照RFC 1864标准计算出消息体的MD5摘要字符串,即消息体128-bit MD5值经过base64编码后得到的字符串。 **约束限制**: 不涉及 **取值范围**: 字符长度24位。 **默认取值**: 不涉及 + **参数解释**: 文件内容MD5值。按照RFC 1864标准计算出消息体的MD5摘要字符串,即消息体128-bit MD5值经过base64编码后得到的字符串。 md5值获取详情请参考[使用Java代码生成文件内容的MD5值](metastudio_02_0052.xml)。 **约束限制**: 不涉及 **取值范围**: 字符长度24位。 **默认取值**: 不涉及 :return: The file_md5 of this FilesCreateReq. :rtype: str @@ -107,7 +107,7 @@ def file_md5(self): def file_md5(self, file_md5): """Sets the file_md5 of this FilesCreateReq. - **参数解释**: 文件内容MD5值。按照RFC 1864标准计算出消息体的MD5摘要字符串,即消息体128-bit MD5值经过base64编码后得到的字符串。 **约束限制**: 不涉及 **取值范围**: 字符长度24位。 **默认取值**: 不涉及 + **参数解释**: 文件内容MD5值。按照RFC 1864标准计算出消息体的MD5摘要字符串,即消息体128-bit MD5值经过base64编码后得到的字符串。 md5值获取详情请参考[使用Java代码生成文件内容的MD5值](metastudio_02_0052.xml)。 **约束限制**: 不涉及 **取值范围**: 字符长度24位。 **默认取值**: 不涉及 :param file_md5: The file_md5 of this FilesCreateReq. :type file_md5: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/image_asset_meta.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/image_asset_meta.py index 7d2e949c4a..d6a9913e8d 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/image_asset_meta.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/image_asset_meta.py @@ -20,7 +20,7 @@ class ImageAssetMeta: 'codec': 'str', 'width': 'int', 'height': 'int', - 'size': 'float', + 'size': 'int', 'mode': 'str', 'error_info': 'ErrorResponse' } @@ -46,7 +46,7 @@ def __init__(self, codec=None, width=None, height=None, size=None, mode=None, er :param height: **参数解释**: 图片高度。 **约束限制**: 用户无需填写,系统自行提取。 **默认取值**: 不涉及。 :type height: int :param size: **参数解释**: 图片大小。 **约束限制**: 用户无需填写,系统自行提取。 **默认取值**: 不涉及。 - :type size: float + :type size: int :param mode: **参数解释**: 图片形态。 **约束限制**: 用户无需填写,系统自行提取。 **取值范围**: * Horizontal:横向 * Vertical:纵向 **默认取值**: 不涉及。 :type mode: str :param error_info: @@ -149,7 +149,7 @@ def size(self): **参数解释**: 图片大小。 **约束限制**: 用户无需填写,系统自行提取。 **默认取值**: 不涉及。 :return: The size of this ImageAssetMeta. - :rtype: float + :rtype: int """ return self._size @@ -160,7 +160,7 @@ def size(self, size): **参数解释**: 图片大小。 **约束限制**: 用户无需填写,系统自行提取。 **默认取值**: 不涉及。 :param size: The size of this ImageAssetMeta. - :type size: float + :type size: int """ self._size = size diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/inference_video_mark_info.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/inference_video_mark_info.py index ce44c8c0d7..45e2a15bff 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/inference_video_mark_info.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/inference_video_mark_info.py @@ -18,15 +18,19 @@ class InferenceVideoMarkInfo: openapi_types = { 'video_start_time': 'str', - 'video_end_time': 'str' + 'video_end_time': 'str', + 'chat_video_start_time': 'str', + 'chat_video_end_time': 'str' } attribute_map = { 'video_start_time': 'video_start_time', - 'video_end_time': 'video_end_time' + 'video_end_time': 'video_end_time', + 'chat_video_start_time': 'chat_video_start_time', + 'chat_video_end_time': 'chat_video_end_time' } - def __init__(self, video_start_time=None, video_end_time=None): + def __init__(self, video_start_time=None, video_end_time=None, chat_video_start_time=None, chat_video_end_time=None): """InferenceVideoMarkInfo The model defined in huaweicloud sdk @@ -35,18 +39,28 @@ def __init__(self, video_start_time=None, video_end_time=None): :type video_start_time: str :param video_end_time: 选取推理数据预处理视频结束时间。格式:“HH:MM:SS.mmm”。 :type video_end_time: str + :param chat_video_start_time: 选取推理数据预处理智能交互视频起始时间。格式:“HH:MM:SS.mmm”。 + :type chat_video_start_time: str + :param chat_video_end_time: 选取推理数据预处理智能交互视频结束时间。格式:“HH:MM:SS.mmm”。 + :type chat_video_end_time: str """ self._video_start_time = None self._video_end_time = None + self._chat_video_start_time = None + self._chat_video_end_time = None self.discriminator = None if video_start_time is not None: self.video_start_time = video_start_time if video_end_time is not None: self.video_end_time = video_end_time + if chat_video_start_time is not None: + self.chat_video_start_time = chat_video_start_time + if chat_video_end_time is not None: + self.chat_video_end_time = chat_video_end_time @property def video_start_time(self): @@ -92,6 +106,50 @@ def video_end_time(self, video_end_time): """ self._video_end_time = video_end_time + @property + def chat_video_start_time(self): + """Gets the chat_video_start_time of this InferenceVideoMarkInfo. + + 选取推理数据预处理智能交互视频起始时间。格式:“HH:MM:SS.mmm”。 + + :return: The chat_video_start_time of this InferenceVideoMarkInfo. + :rtype: str + """ + return self._chat_video_start_time + + @chat_video_start_time.setter + def chat_video_start_time(self, chat_video_start_time): + """Sets the chat_video_start_time of this InferenceVideoMarkInfo. + + 选取推理数据预处理智能交互视频起始时间。格式:“HH:MM:SS.mmm”。 + + :param chat_video_start_time: The chat_video_start_time of this InferenceVideoMarkInfo. + :type chat_video_start_time: str + """ + self._chat_video_start_time = chat_video_start_time + + @property + def chat_video_end_time(self): + """Gets the chat_video_end_time of this InferenceVideoMarkInfo. + + 选取推理数据预处理智能交互视频结束时间。格式:“HH:MM:SS.mmm”。 + + :return: The chat_video_end_time of this InferenceVideoMarkInfo. + :rtype: str + """ + return self._chat_video_end_time + + @chat_video_end_time.setter + def chat_video_end_time(self, chat_video_end_time): + """Sets the chat_video_end_time of this InferenceVideoMarkInfo. + + 选取推理数据预处理智能交互视频结束时间。格式:“HH:MM:SS.mmm”。 + + :param chat_video_end_time: The chat_video_end_time of this InferenceVideoMarkInfo. + :type chat_video_end_time: str + """ + self._chat_video_end_time = chat_video_end_time + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_assets_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_assets_request.py index d51acbbb06..73fb355301 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_assets_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_assets_request.py @@ -103,7 +103,7 @@ def __init__(self, x_app_user_id=None, limit=None, offset=None, name=None, tag=N :type start_time: str :param end_time: 结束时间。格式遵循:RFC 3339 如\"2021-01-10T10:43:17Z\"。 :type end_time: str - :param asset_type: 资产类型。多个类型使用英文逗号分割。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型(仅系统管理员可上传) * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * HUMAN_MODEL_2D: 2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 * AUDIO: 音频 + :param asset_type: 资产类型。多个类型使用英文逗号分隔。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型(仅系统管理员可上传) * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * HUMAN_MODEL_2D: 2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 * AUDIO: 音频 :type asset_type: str :param sort_key: 排序字段,支持的排序方式有: - 按创建时间排序:create_time - 按更新时间排序:update_time - 按资产排序:asset_order :type sort_key: str @@ -111,7 +111,7 @@ def __init__(self, x_app_user_id=None, limit=None, offset=None, name=None, tag=N :type sort_dir: str :param asset_source: 资产来源。 * SYSTEM:系统资产 * CUSTOMIZATION:租户资产 * ALL:所有资产 默认查询租户资产。 :type asset_source: str - :param asset_state: 资产状态。多个资产状态使用英文逗号分割。 * CREATING:资产创建中,主文件尚未上传 * FAILED:主文件上传失败 * UNACTIVED:主文件上传成功,资产未激活,资产不可用于其他业务(用户可更新状态) * ACTIVED:主文件上传成功,资产激活,资产可用于其他业务(用户可更新状态) * DELETING:资产删除中,资产不可用,资产可恢复 * DELETED:资产文件已删除,资产不可用,资产不可恢复 * BLOCK:资产被冻结,资产不可用,不可查看文件。 * WAITING_DELETE:资产将被下线 默认查询所有状态的资产。 + :param asset_state: 资产状态。多个资产状态使用英文逗号分隔。 * CREATING:资产创建中,主文件尚未上传 * FAILED:主文件上传失败 * UNACTIVED:主文件上传成功,资产未激活,资产不可用于其他业务(用户可更新状态) * ACTIVED:主文件上传成功,资产激活,资产可用于其他业务(用户可更新状态) * DELETING:资产删除中,资产不可用,资产可恢复 * DELETED:资产文件已删除,资产不可用,资产不可恢复 * BLOCK:资产被冻结,资产不可用,不可查看文件。 * WAITING_DELETE:资产将被下线 默认查询所有状态的资产。 :type asset_state: str :param style_id: 基于风格化ID查询关联资产。 * system_male_001:男性风格01 * system_female_001:女性风格01 * system_male_002:男性风格02 * system_female_002:女性风格02 :type style_id: str @@ -424,7 +424,7 @@ def end_time(self, end_time): def asset_type(self): """Gets the asset_type of this ListAssetsRequest. - 资产类型。多个类型使用英文逗号分割。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型(仅系统管理员可上传) * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * HUMAN_MODEL_2D: 2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 * AUDIO: 音频 + 资产类型。多个类型使用英文逗号分隔。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型(仅系统管理员可上传) * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * HUMAN_MODEL_2D: 2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 * AUDIO: 音频 :return: The asset_type of this ListAssetsRequest. :rtype: str @@ -435,7 +435,7 @@ def asset_type(self): def asset_type(self, asset_type): """Sets the asset_type of this ListAssetsRequest. - 资产类型。多个类型使用英文逗号分割。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型(仅系统管理员可上传) * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * HUMAN_MODEL_2D: 2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 * AUDIO: 音频 + 资产类型。多个类型使用英文逗号分隔。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型(仅系统管理员可上传) * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * HUMAN_MODEL_2D: 2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 * AUDIO: 音频 :param asset_type: The asset_type of this ListAssetsRequest. :type asset_type: str @@ -512,7 +512,7 @@ def asset_source(self, asset_source): def asset_state(self): """Gets the asset_state of this ListAssetsRequest. - 资产状态。多个资产状态使用英文逗号分割。 * CREATING:资产创建中,主文件尚未上传 * FAILED:主文件上传失败 * UNACTIVED:主文件上传成功,资产未激活,资产不可用于其他业务(用户可更新状态) * ACTIVED:主文件上传成功,资产激活,资产可用于其他业务(用户可更新状态) * DELETING:资产删除中,资产不可用,资产可恢复 * DELETED:资产文件已删除,资产不可用,资产不可恢复 * BLOCK:资产被冻结,资产不可用,不可查看文件。 * WAITING_DELETE:资产将被下线 默认查询所有状态的资产。 + 资产状态。多个资产状态使用英文逗号分隔。 * CREATING:资产创建中,主文件尚未上传 * FAILED:主文件上传失败 * UNACTIVED:主文件上传成功,资产未激活,资产不可用于其他业务(用户可更新状态) * ACTIVED:主文件上传成功,资产激活,资产可用于其他业务(用户可更新状态) * DELETING:资产删除中,资产不可用,资产可恢复 * DELETED:资产文件已删除,资产不可用,资产不可恢复 * BLOCK:资产被冻结,资产不可用,不可查看文件。 * WAITING_DELETE:资产将被下线 默认查询所有状态的资产。 :return: The asset_state of this ListAssetsRequest. :rtype: str @@ -523,7 +523,7 @@ def asset_state(self): def asset_state(self, asset_state): """Sets the asset_state of this ListAssetsRequest. - 资产状态。多个资产状态使用英文逗号分割。 * CREATING:资产创建中,主文件尚未上传 * FAILED:主文件上传失败 * UNACTIVED:主文件上传成功,资产未激活,资产不可用于其他业务(用户可更新状态) * ACTIVED:主文件上传成功,资产激活,资产可用于其他业务(用户可更新状态) * DELETING:资产删除中,资产不可用,资产可恢复 * DELETED:资产文件已删除,资产不可用,资产不可恢复 * BLOCK:资产被冻结,资产不可用,不可查看文件。 * WAITING_DELETE:资产将被下线 默认查询所有状态的资产。 + 资产状态。多个资产状态使用英文逗号分隔。 * CREATING:资产创建中,主文件尚未上传 * FAILED:主文件上传失败 * UNACTIVED:主文件上传成功,资产未激活,资产不可用于其他业务(用户可更新状态) * ACTIVED:主文件上传成功,资产激活,资产可用于其他业务(用户可更新状态) * DELETING:资产删除中,资产不可用,资产可恢复 * DELETED:资产文件已删除,资产不可用,资产不可恢复 * BLOCK:资产被冻结,资产不可用,不可查看文件。 * WAITING_DELETE:资产将被下线 默认查询所有状态的资产。 :param asset_state: The asset_state of this ListAssetsRequest. :type asset_state: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/operation_log_info.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/operation_log_info.py index 23d3e9d5a7..850ff55730 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/operation_log_info.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/operation_log_info.py @@ -37,7 +37,7 @@ def __init__(self, operate_time=None, log_type=None, log_description=None, opera :param operate_time: 操作时间,格式遵循:RFC 3339。 例 “2020-07-30T10:43:17Z” :type operate_time: str - :param log_type: 命令执行结果。 * USER_CREATE_JOD:用户开始分身数字人定制 * USER_VERIFYING_SUBMITTED:用户提交审核 * SYSTEM_VERIFY_FAILED:自动审核失败 * SYSTEM_VERIFY_SUCCESS:自动审核成功 * ADMIN_VERIFY_SUCCESS:人工审核通过 * ADMIN_VERIFY_FAILED:人工审核不通过 * SYSTEM_TRAIN_DATA_PREPROCESSING:训练数据预处理中 * SYSTEM_TRAIN_DATA_PREPROCESS_FAILED:训练数据预处理失败 * SYSTEM_TRAIN_DATA_PREPROCESS_SUCCESS:训练数据预处理成功 * SYSTEM_ACTION_GENERATE_DATA_PREPROCESSING:动作编排原子动作生成中 * SYSTEM_ACTION_GENERATE_DATA_SUCCESS:动作编排原子动作生成成功 * SYSTEM_ACTION_GENERATE_ORI_SUCCESS:动作编排资产数据生成成功 * SYSTEM_ACTION_GENERATE_DATA_FAILED:动作编排原子动作生成失败 * SYSTEM_ACTION_GENERATE_ORI_FAILED:动作编排资产数据生成失败 * SYSTEM_ACTION_GENERATE_ORI_PREPROCESSING:动作编排资产数据生成中 * SYSTEM_TRAINING:开始训练 * ADMIN_STOP_TRAINING_DATA_PREPROCESS:人工中止训练 * ADMIN_STOP_INFERENCE_DATA_PREPROCESS:人工中止推理预处理 * ADMIN_STOP_TRAIN:人工终止训练 * SYSTEM_TRAIN_FAILED:训练失败 * SYSTEM_TRAIN_SUCCESS:训练成功 * SYSTEM_INFERENCE_DATA_PREPROCESSING:推理数据预处理中 * SYSTEM_INFERENCE_DATA_PREPROCESS_FAILED:推理数据预处理失败 * SYSTEM_INFERENCE_DATA_PREPROCESS_SUCCESS:推理数据预处理成功 * SYSTEM_JOB_SUCCESS:任务处理完成 * ADMIN_MASK_UPLOADED:遮罩文件上传完成(已废弃) * ADMIN_UPDATE_VIDEO:管理员更换视频 * ADMIN_UPDATE_ACTION_VIDEO:管理员更换动作编排视频 * ADMIN_RESET:管理员一键重置 * ADMIN_ACCEPT:管理员通过 * USER_REPAIR:用户修复 * SYSTEM_UPDATE_COVER:更换封面 * ADMIN_SET_SILENCE_REPEAT_NUM:管理员设置静默轮数 * SYSTEM_MARKABLE_VIDEO:标记视频生成任务 * SYSTEM_MASK_VERIFY_VIDEO:校验视频生成任务 * SYSTEM_MASK_VERIFY_VIDEO_SUCCESS:校验视频生成成功 * SYSTEM_MASK_VERIFY_VIDEO_FAILED:校验视频生成失败 * SYSTEM_MARKABLE_VIDEO_SUCCESS:标记视频生成成功 * ADMIN_CONFIRM_ACTION:管理员确认动作 * ADMIN_STOP_ACTION_GENERATE_DATA_PREPROCESS:人工中止原子动作生成 * ADMIN_STOP_ACTION_GENERATE_ORI_PREPROCESS:人工中止动作编排 * SYSTEM_COMPILE_FAILED:转编译失败 * SYSTEM_COMPILE_SUCCESS:转编译成功 * SYSTEM_MARKABLE_VIDEO_FAILED:标记视频生成失败 * ADMIN_UPDATE_COMPILE:管理员更新转编译配置 * ADMIN_UPDATE_INFERENCE_DATA_PROCESS_VIDEO:管理员更新推理预处理时间段信息 * SYSTEM_EXECUTE_COMPILE:执行转编译 * SYSTEM_MASK_VIDEO_AND_ACTION_TIME_SUCCESS:自动标记成功 * SYSTEM_MASK_VIDEO_AND_ACTION_TIME_FAILED:自动标记失败 * USER_UPDATE_VIDEO:用户更换视频 * ADMIN_UPDATE_GENERAL_CONFIG:管理员更新通用配置 * ADMIN_MASK_ACTION_TIME:管理员标记 * STOP_COMPILE:人工中止转编译 + :param log_type: 命令执行结果。 * USER_CREATE_JOD:用户开始分身数字人定制 * USER_VERIFYING_SUBMITTED:用户提交审核 * SYSTEM_VERIFY_FAILED:自动审核失败 * ADMIN_UPDATE_BEAUTY_LEVEL:管理员更新美白等级 * SYSTEM_VERIFY_SUCCESS:自动审核成功 * ADMIN_VERIFY_SUCCESS:人工审核通过 * ADMIN_VERIFY_FAILED:人工审核不通过 * SYSTEM_TRAIN_DATA_PREPROCESSING:训练数据预处理中 * SYSTEM_TRAIN_DATA_PREPROCESS_FAILED:训练数据预处理失败 * SYSTEM_TRAIN_DATA_PREPROCESS_SUCCESS:训练数据预处理成功 * SYSTEM_ACTION_GENERATE_DATA_PREPROCESSING:动作编排原子动作生成中 * SYSTEM_ACTION_GENERATE_DATA_SUCCESS:动作编排原子动作生成成功 * SYSTEM_ACTION_GENERATE_ORI_SUCCESS:动作编排资产数据生成成功 * SYSTEM_ACTION_GENERATE_DATA_FAILED:动作编排原子动作生成失败 * SYSTEM_ACTION_GENERATE_ORI_FAILED:动作编排资产数据生成失败 * SYSTEM_ACTION_GENERATE_ORI_PREPROCESSING:动作编排资产数据生成中 * SYSTEM_TRAINING:开始训练 * ADMIN_STOP_TRAINING_DATA_PREPROCESS:人工中止训练 * ADMIN_STOP_BEAUTY_PREPROCESS:人工中止美白 * ADMIN_STOP_INFERENCE_DATA_PREPROCESS:人工中止推理预处理 * ADMIN_STOP_TRAIN:人工终止训练 * SYSTEM_TRAIN_FAILED:训练失败 * SYSTEM_TRAIN_SUCCESS:训练成功 * SYSTEM_INFERENCE_DATA_PREPROCESSING:推理数据预处理中 * SYSTEM_INFERENCE_DATA_PREPROCESS_FAILED:推理数据预处理失败 * SYSTEM_INFERENCE_DATA_PREPROCESS_SUCCESS:推理数据预处理成功 * SYSTEM_JOB_SUCCESS:任务处理完成 * ADMIN_MASK_UPLOADED:遮罩文件上传完成(已废弃) * ADMIN_UPDATE_VIDEO:管理员更换视频 * ADMIN_UPDATE_ACTION_VIDEO:管理员更换动作编排视频 * ADMIN_RESET:管理员一键重置 * ADMIN_ACCEPT:管理员通过 * USER_REPAIR:用户修复 * SYSTEM_UPDATE_COVER:更换封面 * ADMIN_SET_SILENCE_REPEAT_NUM:管理员设置静默轮数 * SYSTEM_MARKABLE_VIDEO:标记视频生成任务 * SYSTEM_MASK_VERIFY_VIDEO:校验视频生成任务 * SYSTEM_MASK_VERIFY_VIDEO_SUCCESS:校验视频生成成功 * SYSTEM_MASK_VERIFY_VIDEO_FAILED:校验视频生成失败 * SYSTEM_MARKABLE_VIDEO_SUCCESS:标记视频生成成功 * SYSTEM_BEAUTY_PREPROCESSING:美白处理中 * SYSTEM_BEAUTY_PREPROCESS_FAILED:美白处理失败 * ADMIN_CONFIRM_ACTION:管理员确认动作 * ADMIN_STOP_ACTION_GENERATE_DATA_PREPROCESS:人工中止原子动作生成 * ADMIN_STOP_ACTION_GENERATE_ORI_PREPROCESS:人工中止动作编排 * SYSTEM_BEAUTY_PREPROCESS_SUCCESS:美白视频训练预处理成功 * SYSTEM_COMPILE_FAILED:转编译失败 * SYSTEM_COMPILE_SUCCESS:转编译成功 * SYSTEM_MARKABLE_VIDEO_FAILED:标记视频生成失败 * ADMIN_UPDATE_COMPILE:管理员更新转编译配置 * ADMIN_UPDATE_INFERENCE_DATA_PROCESS_VIDEO:管理员更新推理预处理时间段信息 * SYSTEM_EXECUTE_COMPILE:执行转编译 * SYSTEM_EXECUTE_BEAUTY:执行美白处理 * SYSTEM_MASK_VIDEO_AND_ACTION_TIME_SUCCESS:自动标记成功 * SYSTEM_MASK_VIDEO_AND_ACTION_TIME_FAILED:自动标记失败 * USER_UPDATE_VIDEO:用户更换视频 * ADMIN_UPDATE_GENERAL_CONFIG:管理员更新通用配置 * ADMIN_MASK_ACTION_TIME:管理员标记 * STOP_COMPILE:人工中止转编译 :type log_type: str :param log_description: 日志描述。用于记录人工审核不通过时的审核意见和DHTS、DHPS上报的错误信息。 :type log_description: str @@ -88,7 +88,7 @@ def operate_time(self, operate_time): def log_type(self): """Gets the log_type of this OperationLogInfo. - 命令执行结果。 * USER_CREATE_JOD:用户开始分身数字人定制 * USER_VERIFYING_SUBMITTED:用户提交审核 * SYSTEM_VERIFY_FAILED:自动审核失败 * SYSTEM_VERIFY_SUCCESS:自动审核成功 * ADMIN_VERIFY_SUCCESS:人工审核通过 * ADMIN_VERIFY_FAILED:人工审核不通过 * SYSTEM_TRAIN_DATA_PREPROCESSING:训练数据预处理中 * SYSTEM_TRAIN_DATA_PREPROCESS_FAILED:训练数据预处理失败 * SYSTEM_TRAIN_DATA_PREPROCESS_SUCCESS:训练数据预处理成功 * SYSTEM_ACTION_GENERATE_DATA_PREPROCESSING:动作编排原子动作生成中 * SYSTEM_ACTION_GENERATE_DATA_SUCCESS:动作编排原子动作生成成功 * SYSTEM_ACTION_GENERATE_ORI_SUCCESS:动作编排资产数据生成成功 * SYSTEM_ACTION_GENERATE_DATA_FAILED:动作编排原子动作生成失败 * SYSTEM_ACTION_GENERATE_ORI_FAILED:动作编排资产数据生成失败 * SYSTEM_ACTION_GENERATE_ORI_PREPROCESSING:动作编排资产数据生成中 * SYSTEM_TRAINING:开始训练 * ADMIN_STOP_TRAINING_DATA_PREPROCESS:人工中止训练 * ADMIN_STOP_INFERENCE_DATA_PREPROCESS:人工中止推理预处理 * ADMIN_STOP_TRAIN:人工终止训练 * SYSTEM_TRAIN_FAILED:训练失败 * SYSTEM_TRAIN_SUCCESS:训练成功 * SYSTEM_INFERENCE_DATA_PREPROCESSING:推理数据预处理中 * SYSTEM_INFERENCE_DATA_PREPROCESS_FAILED:推理数据预处理失败 * SYSTEM_INFERENCE_DATA_PREPROCESS_SUCCESS:推理数据预处理成功 * SYSTEM_JOB_SUCCESS:任务处理完成 * ADMIN_MASK_UPLOADED:遮罩文件上传完成(已废弃) * ADMIN_UPDATE_VIDEO:管理员更换视频 * ADMIN_UPDATE_ACTION_VIDEO:管理员更换动作编排视频 * ADMIN_RESET:管理员一键重置 * ADMIN_ACCEPT:管理员通过 * USER_REPAIR:用户修复 * SYSTEM_UPDATE_COVER:更换封面 * ADMIN_SET_SILENCE_REPEAT_NUM:管理员设置静默轮数 * SYSTEM_MARKABLE_VIDEO:标记视频生成任务 * SYSTEM_MASK_VERIFY_VIDEO:校验视频生成任务 * SYSTEM_MASK_VERIFY_VIDEO_SUCCESS:校验视频生成成功 * SYSTEM_MASK_VERIFY_VIDEO_FAILED:校验视频生成失败 * SYSTEM_MARKABLE_VIDEO_SUCCESS:标记视频生成成功 * ADMIN_CONFIRM_ACTION:管理员确认动作 * ADMIN_STOP_ACTION_GENERATE_DATA_PREPROCESS:人工中止原子动作生成 * ADMIN_STOP_ACTION_GENERATE_ORI_PREPROCESS:人工中止动作编排 * SYSTEM_COMPILE_FAILED:转编译失败 * SYSTEM_COMPILE_SUCCESS:转编译成功 * SYSTEM_MARKABLE_VIDEO_FAILED:标记视频生成失败 * ADMIN_UPDATE_COMPILE:管理员更新转编译配置 * ADMIN_UPDATE_INFERENCE_DATA_PROCESS_VIDEO:管理员更新推理预处理时间段信息 * SYSTEM_EXECUTE_COMPILE:执行转编译 * SYSTEM_MASK_VIDEO_AND_ACTION_TIME_SUCCESS:自动标记成功 * SYSTEM_MASK_VIDEO_AND_ACTION_TIME_FAILED:自动标记失败 * USER_UPDATE_VIDEO:用户更换视频 * ADMIN_UPDATE_GENERAL_CONFIG:管理员更新通用配置 * ADMIN_MASK_ACTION_TIME:管理员标记 * STOP_COMPILE:人工中止转编译 + 命令执行结果。 * USER_CREATE_JOD:用户开始分身数字人定制 * USER_VERIFYING_SUBMITTED:用户提交审核 * SYSTEM_VERIFY_FAILED:自动审核失败 * ADMIN_UPDATE_BEAUTY_LEVEL:管理员更新美白等级 * SYSTEM_VERIFY_SUCCESS:自动审核成功 * ADMIN_VERIFY_SUCCESS:人工审核通过 * ADMIN_VERIFY_FAILED:人工审核不通过 * SYSTEM_TRAIN_DATA_PREPROCESSING:训练数据预处理中 * SYSTEM_TRAIN_DATA_PREPROCESS_FAILED:训练数据预处理失败 * SYSTEM_TRAIN_DATA_PREPROCESS_SUCCESS:训练数据预处理成功 * SYSTEM_ACTION_GENERATE_DATA_PREPROCESSING:动作编排原子动作生成中 * SYSTEM_ACTION_GENERATE_DATA_SUCCESS:动作编排原子动作生成成功 * SYSTEM_ACTION_GENERATE_ORI_SUCCESS:动作编排资产数据生成成功 * SYSTEM_ACTION_GENERATE_DATA_FAILED:动作编排原子动作生成失败 * SYSTEM_ACTION_GENERATE_ORI_FAILED:动作编排资产数据生成失败 * SYSTEM_ACTION_GENERATE_ORI_PREPROCESSING:动作编排资产数据生成中 * SYSTEM_TRAINING:开始训练 * ADMIN_STOP_TRAINING_DATA_PREPROCESS:人工中止训练 * ADMIN_STOP_BEAUTY_PREPROCESS:人工中止美白 * ADMIN_STOP_INFERENCE_DATA_PREPROCESS:人工中止推理预处理 * ADMIN_STOP_TRAIN:人工终止训练 * SYSTEM_TRAIN_FAILED:训练失败 * SYSTEM_TRAIN_SUCCESS:训练成功 * SYSTEM_INFERENCE_DATA_PREPROCESSING:推理数据预处理中 * SYSTEM_INFERENCE_DATA_PREPROCESS_FAILED:推理数据预处理失败 * SYSTEM_INFERENCE_DATA_PREPROCESS_SUCCESS:推理数据预处理成功 * SYSTEM_JOB_SUCCESS:任务处理完成 * ADMIN_MASK_UPLOADED:遮罩文件上传完成(已废弃) * ADMIN_UPDATE_VIDEO:管理员更换视频 * ADMIN_UPDATE_ACTION_VIDEO:管理员更换动作编排视频 * ADMIN_RESET:管理员一键重置 * ADMIN_ACCEPT:管理员通过 * USER_REPAIR:用户修复 * SYSTEM_UPDATE_COVER:更换封面 * ADMIN_SET_SILENCE_REPEAT_NUM:管理员设置静默轮数 * SYSTEM_MARKABLE_VIDEO:标记视频生成任务 * SYSTEM_MASK_VERIFY_VIDEO:校验视频生成任务 * SYSTEM_MASK_VERIFY_VIDEO_SUCCESS:校验视频生成成功 * SYSTEM_MASK_VERIFY_VIDEO_FAILED:校验视频生成失败 * SYSTEM_MARKABLE_VIDEO_SUCCESS:标记视频生成成功 * SYSTEM_BEAUTY_PREPROCESSING:美白处理中 * SYSTEM_BEAUTY_PREPROCESS_FAILED:美白处理失败 * ADMIN_CONFIRM_ACTION:管理员确认动作 * ADMIN_STOP_ACTION_GENERATE_DATA_PREPROCESS:人工中止原子动作生成 * ADMIN_STOP_ACTION_GENERATE_ORI_PREPROCESS:人工中止动作编排 * SYSTEM_BEAUTY_PREPROCESS_SUCCESS:美白视频训练预处理成功 * SYSTEM_COMPILE_FAILED:转编译失败 * SYSTEM_COMPILE_SUCCESS:转编译成功 * SYSTEM_MARKABLE_VIDEO_FAILED:标记视频生成失败 * ADMIN_UPDATE_COMPILE:管理员更新转编译配置 * ADMIN_UPDATE_INFERENCE_DATA_PROCESS_VIDEO:管理员更新推理预处理时间段信息 * SYSTEM_EXECUTE_COMPILE:执行转编译 * SYSTEM_EXECUTE_BEAUTY:执行美白处理 * SYSTEM_MASK_VIDEO_AND_ACTION_TIME_SUCCESS:自动标记成功 * SYSTEM_MASK_VIDEO_AND_ACTION_TIME_FAILED:自动标记失败 * USER_UPDATE_VIDEO:用户更换视频 * ADMIN_UPDATE_GENERAL_CONFIG:管理员更新通用配置 * ADMIN_MASK_ACTION_TIME:管理员标记 * STOP_COMPILE:人工中止转编译 :return: The log_type of this OperationLogInfo. :rtype: str @@ -99,7 +99,7 @@ def log_type(self): def log_type(self, log_type): """Sets the log_type of this OperationLogInfo. - 命令执行结果。 * USER_CREATE_JOD:用户开始分身数字人定制 * USER_VERIFYING_SUBMITTED:用户提交审核 * SYSTEM_VERIFY_FAILED:自动审核失败 * SYSTEM_VERIFY_SUCCESS:自动审核成功 * ADMIN_VERIFY_SUCCESS:人工审核通过 * ADMIN_VERIFY_FAILED:人工审核不通过 * SYSTEM_TRAIN_DATA_PREPROCESSING:训练数据预处理中 * SYSTEM_TRAIN_DATA_PREPROCESS_FAILED:训练数据预处理失败 * SYSTEM_TRAIN_DATA_PREPROCESS_SUCCESS:训练数据预处理成功 * SYSTEM_ACTION_GENERATE_DATA_PREPROCESSING:动作编排原子动作生成中 * SYSTEM_ACTION_GENERATE_DATA_SUCCESS:动作编排原子动作生成成功 * SYSTEM_ACTION_GENERATE_ORI_SUCCESS:动作编排资产数据生成成功 * SYSTEM_ACTION_GENERATE_DATA_FAILED:动作编排原子动作生成失败 * SYSTEM_ACTION_GENERATE_ORI_FAILED:动作编排资产数据生成失败 * SYSTEM_ACTION_GENERATE_ORI_PREPROCESSING:动作编排资产数据生成中 * SYSTEM_TRAINING:开始训练 * ADMIN_STOP_TRAINING_DATA_PREPROCESS:人工中止训练 * ADMIN_STOP_INFERENCE_DATA_PREPROCESS:人工中止推理预处理 * ADMIN_STOP_TRAIN:人工终止训练 * SYSTEM_TRAIN_FAILED:训练失败 * SYSTEM_TRAIN_SUCCESS:训练成功 * SYSTEM_INFERENCE_DATA_PREPROCESSING:推理数据预处理中 * SYSTEM_INFERENCE_DATA_PREPROCESS_FAILED:推理数据预处理失败 * SYSTEM_INFERENCE_DATA_PREPROCESS_SUCCESS:推理数据预处理成功 * SYSTEM_JOB_SUCCESS:任务处理完成 * ADMIN_MASK_UPLOADED:遮罩文件上传完成(已废弃) * ADMIN_UPDATE_VIDEO:管理员更换视频 * ADMIN_UPDATE_ACTION_VIDEO:管理员更换动作编排视频 * ADMIN_RESET:管理员一键重置 * ADMIN_ACCEPT:管理员通过 * USER_REPAIR:用户修复 * SYSTEM_UPDATE_COVER:更换封面 * ADMIN_SET_SILENCE_REPEAT_NUM:管理员设置静默轮数 * SYSTEM_MARKABLE_VIDEO:标记视频生成任务 * SYSTEM_MASK_VERIFY_VIDEO:校验视频生成任务 * SYSTEM_MASK_VERIFY_VIDEO_SUCCESS:校验视频生成成功 * SYSTEM_MASK_VERIFY_VIDEO_FAILED:校验视频生成失败 * SYSTEM_MARKABLE_VIDEO_SUCCESS:标记视频生成成功 * ADMIN_CONFIRM_ACTION:管理员确认动作 * ADMIN_STOP_ACTION_GENERATE_DATA_PREPROCESS:人工中止原子动作生成 * ADMIN_STOP_ACTION_GENERATE_ORI_PREPROCESS:人工中止动作编排 * SYSTEM_COMPILE_FAILED:转编译失败 * SYSTEM_COMPILE_SUCCESS:转编译成功 * SYSTEM_MARKABLE_VIDEO_FAILED:标记视频生成失败 * ADMIN_UPDATE_COMPILE:管理员更新转编译配置 * ADMIN_UPDATE_INFERENCE_DATA_PROCESS_VIDEO:管理员更新推理预处理时间段信息 * SYSTEM_EXECUTE_COMPILE:执行转编译 * SYSTEM_MASK_VIDEO_AND_ACTION_TIME_SUCCESS:自动标记成功 * SYSTEM_MASK_VIDEO_AND_ACTION_TIME_FAILED:自动标记失败 * USER_UPDATE_VIDEO:用户更换视频 * ADMIN_UPDATE_GENERAL_CONFIG:管理员更新通用配置 * ADMIN_MASK_ACTION_TIME:管理员标记 * STOP_COMPILE:人工中止转编译 + 命令执行结果。 * USER_CREATE_JOD:用户开始分身数字人定制 * USER_VERIFYING_SUBMITTED:用户提交审核 * SYSTEM_VERIFY_FAILED:自动审核失败 * ADMIN_UPDATE_BEAUTY_LEVEL:管理员更新美白等级 * SYSTEM_VERIFY_SUCCESS:自动审核成功 * ADMIN_VERIFY_SUCCESS:人工审核通过 * ADMIN_VERIFY_FAILED:人工审核不通过 * SYSTEM_TRAIN_DATA_PREPROCESSING:训练数据预处理中 * SYSTEM_TRAIN_DATA_PREPROCESS_FAILED:训练数据预处理失败 * SYSTEM_TRAIN_DATA_PREPROCESS_SUCCESS:训练数据预处理成功 * SYSTEM_ACTION_GENERATE_DATA_PREPROCESSING:动作编排原子动作生成中 * SYSTEM_ACTION_GENERATE_DATA_SUCCESS:动作编排原子动作生成成功 * SYSTEM_ACTION_GENERATE_ORI_SUCCESS:动作编排资产数据生成成功 * SYSTEM_ACTION_GENERATE_DATA_FAILED:动作编排原子动作生成失败 * SYSTEM_ACTION_GENERATE_ORI_FAILED:动作编排资产数据生成失败 * SYSTEM_ACTION_GENERATE_ORI_PREPROCESSING:动作编排资产数据生成中 * SYSTEM_TRAINING:开始训练 * ADMIN_STOP_TRAINING_DATA_PREPROCESS:人工中止训练 * ADMIN_STOP_BEAUTY_PREPROCESS:人工中止美白 * ADMIN_STOP_INFERENCE_DATA_PREPROCESS:人工中止推理预处理 * ADMIN_STOP_TRAIN:人工终止训练 * SYSTEM_TRAIN_FAILED:训练失败 * SYSTEM_TRAIN_SUCCESS:训练成功 * SYSTEM_INFERENCE_DATA_PREPROCESSING:推理数据预处理中 * SYSTEM_INFERENCE_DATA_PREPROCESS_FAILED:推理数据预处理失败 * SYSTEM_INFERENCE_DATA_PREPROCESS_SUCCESS:推理数据预处理成功 * SYSTEM_JOB_SUCCESS:任务处理完成 * ADMIN_MASK_UPLOADED:遮罩文件上传完成(已废弃) * ADMIN_UPDATE_VIDEO:管理员更换视频 * ADMIN_UPDATE_ACTION_VIDEO:管理员更换动作编排视频 * ADMIN_RESET:管理员一键重置 * ADMIN_ACCEPT:管理员通过 * USER_REPAIR:用户修复 * SYSTEM_UPDATE_COVER:更换封面 * ADMIN_SET_SILENCE_REPEAT_NUM:管理员设置静默轮数 * SYSTEM_MARKABLE_VIDEO:标记视频生成任务 * SYSTEM_MASK_VERIFY_VIDEO:校验视频生成任务 * SYSTEM_MASK_VERIFY_VIDEO_SUCCESS:校验视频生成成功 * SYSTEM_MASK_VERIFY_VIDEO_FAILED:校验视频生成失败 * SYSTEM_MARKABLE_VIDEO_SUCCESS:标记视频生成成功 * SYSTEM_BEAUTY_PREPROCESSING:美白处理中 * SYSTEM_BEAUTY_PREPROCESS_FAILED:美白处理失败 * ADMIN_CONFIRM_ACTION:管理员确认动作 * ADMIN_STOP_ACTION_GENERATE_DATA_PREPROCESS:人工中止原子动作生成 * ADMIN_STOP_ACTION_GENERATE_ORI_PREPROCESS:人工中止动作编排 * SYSTEM_BEAUTY_PREPROCESS_SUCCESS:美白视频训练预处理成功 * SYSTEM_COMPILE_FAILED:转编译失败 * SYSTEM_COMPILE_SUCCESS:转编译成功 * SYSTEM_MARKABLE_VIDEO_FAILED:标记视频生成失败 * ADMIN_UPDATE_COMPILE:管理员更新转编译配置 * ADMIN_UPDATE_INFERENCE_DATA_PROCESS_VIDEO:管理员更新推理预处理时间段信息 * SYSTEM_EXECUTE_COMPILE:执行转编译 * SYSTEM_EXECUTE_BEAUTY:执行美白处理 * SYSTEM_MASK_VIDEO_AND_ACTION_TIME_SUCCESS:自动标记成功 * SYSTEM_MASK_VIDEO_AND_ACTION_TIME_FAILED:自动标记失败 * USER_UPDATE_VIDEO:用户更换视频 * ADMIN_UPDATE_GENERAL_CONFIG:管理员更新通用配置 * ADMIN_MASK_ACTION_TIME:管理员标记 * STOP_COMPILE:人工中止转编译 :param log_type: The log_type of this OperationLogInfo. :type log_type: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show2d_model_training_job_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show2d_model_training_job_response.py index c1ebd160cd..43d2113c75 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show2d_model_training_job_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show2d_model_training_job_response.py @@ -34,11 +34,14 @@ class Show2dModelTrainingJobResponse(SdkResponse): 'model_resolution': 'str', 'app_user_id': 'str', 'is_flexus': 'bool', + 'is_only_human_model': 'bool', 'training_video_download_url': 'str', 'id_card_image1_download_url': 'str', 'id_card_image2_download_url': 'str', 'grant_file_download_url': 'str', + 'pre_beauty_image_download_url': 'str', 'action_video_download_url': 'str', + 'post_beauty_image_download_url': 'str', 'audio_file_download_url': 'str', 'operation_logs': 'list[OperationLogInfo]', 'verify_video_matting_info': 'list[VerifyVideoMattingInfo]', @@ -48,15 +51,19 @@ class Show2dModelTrainingJobResponse(SdkResponse): 'mask_file_download_url': 'str', 'verify_video_download_url': 'str', 'markable_video_download_url': 'str', + 'traning_video_mark_info': 'TrainingVideoMarkInfo', 'inference_data_process_video_mark_info': 'InferenceVideoMarkInfo', 'inference_data_process_action_mark_info': 'InferenceActionMarkInfo', + 'inference_data_process_chat_action_mark_info': 'InferenceActionMarkInfo', 'inference_data_process_eye_correction_mark_info': 'InferenceEyeCorrectionMarkInfo', 'is_background_replacement': 'bool', 'worker_type': 'list[str]', + 'beauty_level': 'int', 'voice_train_job_id': 'str', 'flexus_retry_count': 'int', 'audio_source_type': 'str', 'supported_service': 'list[SupportedServiceEnum]', + 'allocated_resource': 'TrainingAllocatedResource', 'x_request_id': 'str' } @@ -77,11 +84,14 @@ class Show2dModelTrainingJobResponse(SdkResponse): 'model_resolution': 'model_resolution', 'app_user_id': 'app_user_id', 'is_flexus': 'is_flexus', + 'is_only_human_model': 'is_only_human_model', 'training_video_download_url': 'training_video_download_url', 'id_card_image1_download_url': 'id_card_image1_download_url', 'id_card_image2_download_url': 'id_card_image2_download_url', 'grant_file_download_url': 'grant_file_download_url', + 'pre_beauty_image_download_url': 'pre_beauty_image_download_url', 'action_video_download_url': 'action_video_download_url', + 'post_beauty_image_download_url': 'post_beauty_image_download_url', 'audio_file_download_url': 'audio_file_download_url', 'operation_logs': 'operation_logs', 'verify_video_matting_info': 'verify_video_matting_info', @@ -91,19 +101,23 @@ class Show2dModelTrainingJobResponse(SdkResponse): 'mask_file_download_url': 'mask_file_download_url', 'verify_video_download_url': 'verify_video_download_url', 'markable_video_download_url': 'markable_video_download_url', + 'traning_video_mark_info': 'traning_video_mark_info', 'inference_data_process_video_mark_info': 'inference_data_process_video_mark_info', 'inference_data_process_action_mark_info': 'inference_data_process_action_mark_info', + 'inference_data_process_chat_action_mark_info': 'inference_data_process_chat_action_mark_info', 'inference_data_process_eye_correction_mark_info': 'inference_data_process_eye_correction_mark_info', 'is_background_replacement': 'is_background_replacement', 'worker_type': 'worker_type', + 'beauty_level': 'beauty_level', 'voice_train_job_id': 'voice_train_job_id', 'flexus_retry_count': 'flexus_retry_count', 'audio_source_type': 'audio_source_type', 'supported_service': 'supported_service', + 'allocated_resource': 'allocated_resource', 'x_request_id': 'X-Request-Id' } - def __init__(self, job_id=None, name=None, state=None, asset_id=None, project_id=None, cover_download_url=None, last_update_time=None, create_time=None, contact=None, batch_name=None, tags=None, model_version=None, matting_type=None, model_resolution=None, app_user_id=None, is_flexus=None, training_video_download_url=None, id_card_image1_download_url=None, id_card_image2_download_url=None, grant_file_download_url=None, action_video_download_url=None, audio_file_download_url=None, operation_logs=None, verify_video_matting_info=None, comment_logs=None, samples=None, is_mask_file_uploaded=None, mask_file_download_url=None, verify_video_download_url=None, markable_video_download_url=None, inference_data_process_video_mark_info=None, inference_data_process_action_mark_info=None, inference_data_process_eye_correction_mark_info=None, is_background_replacement=None, worker_type=None, voice_train_job_id=None, flexus_retry_count=None, audio_source_type=None, supported_service=None, x_request_id=None): + def __init__(self, job_id=None, name=None, state=None, asset_id=None, project_id=None, cover_download_url=None, last_update_time=None, create_time=None, contact=None, batch_name=None, tags=None, model_version=None, matting_type=None, model_resolution=None, app_user_id=None, is_flexus=None, is_only_human_model=None, training_video_download_url=None, id_card_image1_download_url=None, id_card_image2_download_url=None, grant_file_download_url=None, pre_beauty_image_download_url=None, action_video_download_url=None, post_beauty_image_download_url=None, audio_file_download_url=None, operation_logs=None, verify_video_matting_info=None, comment_logs=None, samples=None, is_mask_file_uploaded=None, mask_file_download_url=None, verify_video_download_url=None, markable_video_download_url=None, traning_video_mark_info=None, inference_data_process_video_mark_info=None, inference_data_process_action_mark_info=None, inference_data_process_chat_action_mark_info=None, inference_data_process_eye_correction_mark_info=None, is_background_replacement=None, worker_type=None, beauty_level=None, voice_train_job_id=None, flexus_retry_count=None, audio_source_type=None, supported_service=None, allocated_resource=None, x_request_id=None): """Show2dModelTrainingJobResponse The model defined in huaweicloud sdk @@ -112,7 +126,7 @@ def __init__(self, job_id=None, name=None, state=None, asset_id=None, project_id :type job_id: str :param name: 分身数字人模型名称。该名称会作为资产库中分身数字人模型资产名称。 :type name: str - :param state: 任务的状态。 与MetaStudio Console上用户看到的状态映射关系如下: - 待提交 * WAIT_FILE_UPLOAD: 待上传文件 - 系统审核中 * AUTO_VERIFYING: 自动审核中 * MANUAL_VERIFYING: 人工审核中 - 系统审核未通过 * AUTO_VERIFY_FAILED: 自动审核失败 * MANUAL_VERIFY_FAILED: 人工审核失败 - 算法训练中 > 算法训练中的状态仅管理员需要处理,普通用户仅需要显示“算法训练中”即可。 * MANUAL_VERIFY_SUCCESS: 审核通过,等待预处理资源 * WAIT_TRAINING_DATA_PREPROCESS: 等待训练数据预处理 * TRAINING_DATA_PREPROCESSING: 训练数据预处理中 * TRAINING_DATA_PREPROCESS_FAILED: 训练数据预处理失败 * TRAINING_DATA_PREPROCESS_SUCCESS: 训练数据预处理完成,等待训练资源中 * TRAINING: 训练中 * TRAIN_FAILED: 训练失败 * TRAIN_SUCCESS: 训练完成,等待预处理资源 * INFERENCE_DATA_PREPROCESSING: 推理数据预处理中 * INFERENCE_DATA_PREPROCESS_FAILED: 推理数据预处理失败 * WAIT_MAIN_FILE_UPLOAD: 等待主文件上传 * MANUAL_STOP_INFERENCE_DATA_PREPROCESS: 人工中止推理预处理 * MANUAL_STOP_TRAIN: 人工中止训练 * MANUAL_STOP_TRAINING_DATA_PREPROCESS: 人工中止训练预处理 * WAIT_ADMIN_CONFIRM: 等待管理员审核 * WAIT_COMPILE: 等待转编译 * COMPILING: 转编译中 * COMPILE_FAILED: 转编译失败 * WAIT_GENERATE_ACTION: 等待原子动作生成 * WAIT_ARRANGE: 等待编排 * ACTION_GENERATE_DATA_PROCESSING: 原子动作生成中 * MANUAL_STOP_ACTION_GENERATE_DATA_PROCESSING: 人工中止动作生成 * MANUAL_STOP_ACTION_GENERATE_ORI_PROCESSING: 人工中止动作编排 * ACTION_GENERATE_ORI_PROCESSING: 动作编排中 * ACTION_GENERATE_DATA_FAILED: 动作生成失败 * ACTION_GENERATE_ORI_FAILED: 生成动作编排资产失败 * ACTION_GENERATE_ORI_SUCCESS: 动作编排成功 * GENERATE_ACTION_PREPROCESS_FAILED: 生成动作编排原子动作失败 * WAIT_ADMIN_CALIBRATION: 等待管理员确认动作信息 - 待用户审核,仅NA白名单用户有该状态 * WAIT_USER_CONFIRM: 等待用户确认训练效果 - 用户驳回,仅NA白名单用户有该状态 * JOB_REJECT: 驳回任务 - 已完成 * JOB_SUCCESS: 训练任务完成(普通用户任务的完成状态,此时用户已经可以使用模型) * JOB_FINISH: 任务结束,是最终状态,不支持修改此状态(NA用户任务的完成状态,并且此状态表明模型效果已通过用户的验收) - 挂起,仅NA白名单用户有该状态 * JOB_PENDING: 挂起任务 + :param state: 任务的状态。 与MetaStudio Console上用户看到的状态映射关系如下: - 待提交 * WAIT_FILE_UPLOAD: 待上传文件 - 系统审核中 * AUTO_VERIFYING: 自动审核中 * MANUAL_VERIFYING: 人工审核中 - 系统审核未通过 * AUTO_VERIFY_FAILED: 自动审核失败 * MANUAL_VERIFY_FAILED: 人工审核失败 - 算法训练中 > 算法训练中的状态仅管理员需要处理,普通用户仅需要显示“算法训练中”即可。 * MANUAL_VERIFY_SUCCESS: 审核通过,等待预处理资源 * WAIT_TRAINING_DATA_PREPROCESS: 等待训练数据预处理 * TRAINING_DATA_PREPROCESSING: 训练数据预处理中 * TRAINING_DATA_PREPROCESS_FAILED: 训练数据预处理失败 * TRAINING_DATA_PREPROCESS_SUCCESS: 训练数据预处理完成,等待训练资源中 * TRAINING: 训练中 * TRAIN_FAILED: 训练失败 * TRAIN_SUCCESS: 训练完成,等待预处理资源 * INFERENCE_DATA_PREPROCESSING: 推理数据预处理中 * INFERENCE_DATA_PREPROCESS_FAILED: 推理数据预处理失败 * WAIT_MAIN_FILE_UPLOAD: 等待主文件上传 * MANUAL_STOP_INFERENCE_DATA_PREPROCESS: 人工中止推理预处理 * MANUAL_STOP_TRAIN: 人工中止训练 * MANUAL_STOP_TRAINING_DATA_PREPROCESS: 人工中止训练预处理 * WAIT_ADMIN_CONFIRM: 等待管理员审核 * WAIT_COMPILE: 等待转编译 * COMPILING: 转编译中 * COMPILE_FAILED: 转编译失败 * WAIT_GENERATE_ACTION: 等待原子动作生成 * WAIT_ARRANGE: 等待编排 * ACTION_GENERATE_DATA_PROCESSING: 原子动作生成中 * MANUAL_STOP_ACTION_GENERATE_DATA_PROCESSING: 人工中止动作生成 * MANUAL_STOP_ACTION_GENERATE_ORI_PROCESSING: 人工中止动作编排 * ACTION_GENERATE_ORI_PROCESSING: 动作编排中 * ACTION_GENERATE_DATA_FAILED: 动作生成失败 * ACTION_GENERATE_ORI_FAILED: 生成动作编排资产失败 * ACTION_GENERATE_ORI_SUCCESS: 动作编排成功 * GENERATE_ACTION_PREPROCESS_FAILED: 生成动作编排原子动作失败 * WAIT_ADMIN_CALIBRATION: 等待管理员确认动作信息 * WAIT_ASSET_SYNC: 等待资产同步 - 待用户审核,仅NA白名单用户有该状态 * WAIT_USER_CONFIRM: 等待用户确认训练效果 - 用户驳回,仅NA白名单用户有该状态 * JOB_REJECT: 驳回任务 - 已完成 * JOB_SUCCESS: 训练任务完成(普通用户任务的完成状态,此时用户已经可以使用模型) * JOB_FINISH: 任务结束,是最终状态,不支持修改此状态(NA用户任务的完成状态,并且此状态表明模型效果已通过用户的验收) - 挂起,仅NA白名单用户有该状态 * JOB_PENDING: 挂起任务 :type state: str :param asset_id: 模型资产ID。 :type asset_id: str @@ -140,6 +154,8 @@ def __init__(self, job_id=None, name=None, state=None, asset_id=None, project_id :type app_user_id: str :param is_flexus: 是否是基础版的形象训练 :type is_flexus: bool + :param is_only_human_model: 是否只训练形象模型,不训练声音模型。仅Flexus版本时有效,默认false。 + :type is_only_human_model: bool :param training_video_download_url: 分身数字人训练视频下载URL。24小时内有效。 :type training_video_download_url: str :param id_card_image1_download_url: 身份证正面照片下载URL。24小时内有效。 @@ -148,8 +164,12 @@ def __init__(self, job_id=None, name=None, state=None, asset_id=None, project_id :type id_card_image2_download_url: str :param grant_file_download_url: 授权书下载URL。24小时内有效。 :type grant_file_download_url: str + :param pre_beauty_image_download_url: 美白前图片下载url。 + :type pre_beauty_image_download_url: str :param action_video_download_url: 动作视频 :type action_video_download_url: str + :param post_beauty_image_download_url: 美白后图片下载url。 + :type post_beauty_image_download_url: str :param audio_file_download_url: 音频文件下载url。 :type audio_file_download_url: str :param operation_logs: 操作日志列表。 @@ -168,16 +188,22 @@ def __init__(self, job_id=None, name=None, state=None, asset_id=None, project_id :type verify_video_download_url: str :param markable_video_download_url: 标注视频url下载链接。24小时内有效。 :type markable_video_download_url: str + :param traning_video_mark_info: + :type traning_video_mark_info: :class:`huaweicloudsdkmetastudio.v1.TrainingVideoMarkInfo` :param inference_data_process_video_mark_info: :type inference_data_process_video_mark_info: :class:`huaweicloudsdkmetastudio.v1.InferenceVideoMarkInfo` :param inference_data_process_action_mark_info: :type inference_data_process_action_mark_info: :class:`huaweicloudsdkmetastudio.v1.InferenceActionMarkInfo` + :param inference_data_process_chat_action_mark_info: + :type inference_data_process_chat_action_mark_info: :class:`huaweicloudsdkmetastudio.v1.InferenceActionMarkInfo` :param inference_data_process_eye_correction_mark_info: :type inference_data_process_eye_correction_mark_info: :class:`huaweicloudsdkmetastudio.v1.InferenceEyeCorrectionMarkInfo` :param is_background_replacement: 分身数字人是否需要背景替换。需要背景替换的分身数字人训练视频需要绿幕拍摄。 :type is_background_replacement: bool :param worker_type: 转编译任务机型 :type worker_type: list[str] + :param beauty_level: 美白等级。默认值0,不美白。 + :type beauty_level: int :param voice_train_job_id: 声音训练任务id。 :type voice_train_job_id: str :param flexus_retry_count: flexus版本任务剩余可以重训的次数,每重训一次减1,减到0时不可再重训。 @@ -186,6 +212,8 @@ def __init__(self, job_id=None, name=None, state=None, asset_id=None, project_id :type audio_source_type: str :param supported_service: 该任务所生成的模型支持的业务类型,可多选 :type supported_service: list[:class:`huaweicloudsdkmetastudio.v1.SupportedServiceEnum`] + :param allocated_resource: + :type allocated_resource: :class:`huaweicloudsdkmetastudio.v1.TrainingAllocatedResource` :param x_request_id: :type x_request_id: str """ @@ -208,11 +236,14 @@ def __init__(self, job_id=None, name=None, state=None, asset_id=None, project_id self._model_resolution = None self._app_user_id = None self._is_flexus = None + self._is_only_human_model = None self._training_video_download_url = None self._id_card_image1_download_url = None self._id_card_image2_download_url = None self._grant_file_download_url = None + self._pre_beauty_image_download_url = None self._action_video_download_url = None + self._post_beauty_image_download_url = None self._audio_file_download_url = None self._operation_logs = None self._verify_video_matting_info = None @@ -222,15 +253,19 @@ def __init__(self, job_id=None, name=None, state=None, asset_id=None, project_id self._mask_file_download_url = None self._verify_video_download_url = None self._markable_video_download_url = None + self._traning_video_mark_info = None self._inference_data_process_video_mark_info = None self._inference_data_process_action_mark_info = None + self._inference_data_process_chat_action_mark_info = None self._inference_data_process_eye_correction_mark_info = None self._is_background_replacement = None self._worker_type = None + self._beauty_level = None self._voice_train_job_id = None self._flexus_retry_count = None self._audio_source_type = None self._supported_service = None + self._allocated_resource = None self._x_request_id = None self.discriminator = None @@ -263,6 +298,8 @@ def __init__(self, job_id=None, name=None, state=None, asset_id=None, project_id self.app_user_id = app_user_id if is_flexus is not None: self.is_flexus = is_flexus + if is_only_human_model is not None: + self.is_only_human_model = is_only_human_model if training_video_download_url is not None: self.training_video_download_url = training_video_download_url if id_card_image1_download_url is not None: @@ -271,8 +308,12 @@ def __init__(self, job_id=None, name=None, state=None, asset_id=None, project_id self.id_card_image2_download_url = id_card_image2_download_url if grant_file_download_url is not None: self.grant_file_download_url = grant_file_download_url + if pre_beauty_image_download_url is not None: + self.pre_beauty_image_download_url = pre_beauty_image_download_url if action_video_download_url is not None: self.action_video_download_url = action_video_download_url + if post_beauty_image_download_url is not None: + self.post_beauty_image_download_url = post_beauty_image_download_url if audio_file_download_url is not None: self.audio_file_download_url = audio_file_download_url if operation_logs is not None: @@ -291,16 +332,22 @@ def __init__(self, job_id=None, name=None, state=None, asset_id=None, project_id self.verify_video_download_url = verify_video_download_url if markable_video_download_url is not None: self.markable_video_download_url = markable_video_download_url + if traning_video_mark_info is not None: + self.traning_video_mark_info = traning_video_mark_info if inference_data_process_video_mark_info is not None: self.inference_data_process_video_mark_info = inference_data_process_video_mark_info if inference_data_process_action_mark_info is not None: self.inference_data_process_action_mark_info = inference_data_process_action_mark_info + if inference_data_process_chat_action_mark_info is not None: + self.inference_data_process_chat_action_mark_info = inference_data_process_chat_action_mark_info if inference_data_process_eye_correction_mark_info is not None: self.inference_data_process_eye_correction_mark_info = inference_data_process_eye_correction_mark_info if is_background_replacement is not None: self.is_background_replacement = is_background_replacement if worker_type is not None: self.worker_type = worker_type + if beauty_level is not None: + self.beauty_level = beauty_level if voice_train_job_id is not None: self.voice_train_job_id = voice_train_job_id if flexus_retry_count is not None: @@ -309,6 +356,8 @@ def __init__(self, job_id=None, name=None, state=None, asset_id=None, project_id self.audio_source_type = audio_source_type if supported_service is not None: self.supported_service = supported_service + if allocated_resource is not None: + self.allocated_resource = allocated_resource if x_request_id is not None: self.x_request_id = x_request_id @@ -360,7 +409,7 @@ def name(self, name): def state(self): """Gets the state of this Show2dModelTrainingJobResponse. - 任务的状态。 与MetaStudio Console上用户看到的状态映射关系如下: - 待提交 * WAIT_FILE_UPLOAD: 待上传文件 - 系统审核中 * AUTO_VERIFYING: 自动审核中 * MANUAL_VERIFYING: 人工审核中 - 系统审核未通过 * AUTO_VERIFY_FAILED: 自动审核失败 * MANUAL_VERIFY_FAILED: 人工审核失败 - 算法训练中 > 算法训练中的状态仅管理员需要处理,普通用户仅需要显示“算法训练中”即可。 * MANUAL_VERIFY_SUCCESS: 审核通过,等待预处理资源 * WAIT_TRAINING_DATA_PREPROCESS: 等待训练数据预处理 * TRAINING_DATA_PREPROCESSING: 训练数据预处理中 * TRAINING_DATA_PREPROCESS_FAILED: 训练数据预处理失败 * TRAINING_DATA_PREPROCESS_SUCCESS: 训练数据预处理完成,等待训练资源中 * TRAINING: 训练中 * TRAIN_FAILED: 训练失败 * TRAIN_SUCCESS: 训练完成,等待预处理资源 * INFERENCE_DATA_PREPROCESSING: 推理数据预处理中 * INFERENCE_DATA_PREPROCESS_FAILED: 推理数据预处理失败 * WAIT_MAIN_FILE_UPLOAD: 等待主文件上传 * MANUAL_STOP_INFERENCE_DATA_PREPROCESS: 人工中止推理预处理 * MANUAL_STOP_TRAIN: 人工中止训练 * MANUAL_STOP_TRAINING_DATA_PREPROCESS: 人工中止训练预处理 * WAIT_ADMIN_CONFIRM: 等待管理员审核 * WAIT_COMPILE: 等待转编译 * COMPILING: 转编译中 * COMPILE_FAILED: 转编译失败 * WAIT_GENERATE_ACTION: 等待原子动作生成 * WAIT_ARRANGE: 等待编排 * ACTION_GENERATE_DATA_PROCESSING: 原子动作生成中 * MANUAL_STOP_ACTION_GENERATE_DATA_PROCESSING: 人工中止动作生成 * MANUAL_STOP_ACTION_GENERATE_ORI_PROCESSING: 人工中止动作编排 * ACTION_GENERATE_ORI_PROCESSING: 动作编排中 * ACTION_GENERATE_DATA_FAILED: 动作生成失败 * ACTION_GENERATE_ORI_FAILED: 生成动作编排资产失败 * ACTION_GENERATE_ORI_SUCCESS: 动作编排成功 * GENERATE_ACTION_PREPROCESS_FAILED: 生成动作编排原子动作失败 * WAIT_ADMIN_CALIBRATION: 等待管理员确认动作信息 - 待用户审核,仅NA白名单用户有该状态 * WAIT_USER_CONFIRM: 等待用户确认训练效果 - 用户驳回,仅NA白名单用户有该状态 * JOB_REJECT: 驳回任务 - 已完成 * JOB_SUCCESS: 训练任务完成(普通用户任务的完成状态,此时用户已经可以使用模型) * JOB_FINISH: 任务结束,是最终状态,不支持修改此状态(NA用户任务的完成状态,并且此状态表明模型效果已通过用户的验收) - 挂起,仅NA白名单用户有该状态 * JOB_PENDING: 挂起任务 + 任务的状态。 与MetaStudio Console上用户看到的状态映射关系如下: - 待提交 * WAIT_FILE_UPLOAD: 待上传文件 - 系统审核中 * AUTO_VERIFYING: 自动审核中 * MANUAL_VERIFYING: 人工审核中 - 系统审核未通过 * AUTO_VERIFY_FAILED: 自动审核失败 * MANUAL_VERIFY_FAILED: 人工审核失败 - 算法训练中 > 算法训练中的状态仅管理员需要处理,普通用户仅需要显示“算法训练中”即可。 * MANUAL_VERIFY_SUCCESS: 审核通过,等待预处理资源 * WAIT_TRAINING_DATA_PREPROCESS: 等待训练数据预处理 * TRAINING_DATA_PREPROCESSING: 训练数据预处理中 * TRAINING_DATA_PREPROCESS_FAILED: 训练数据预处理失败 * TRAINING_DATA_PREPROCESS_SUCCESS: 训练数据预处理完成,等待训练资源中 * TRAINING: 训练中 * TRAIN_FAILED: 训练失败 * TRAIN_SUCCESS: 训练完成,等待预处理资源 * INFERENCE_DATA_PREPROCESSING: 推理数据预处理中 * INFERENCE_DATA_PREPROCESS_FAILED: 推理数据预处理失败 * WAIT_MAIN_FILE_UPLOAD: 等待主文件上传 * MANUAL_STOP_INFERENCE_DATA_PREPROCESS: 人工中止推理预处理 * MANUAL_STOP_TRAIN: 人工中止训练 * MANUAL_STOP_TRAINING_DATA_PREPROCESS: 人工中止训练预处理 * WAIT_ADMIN_CONFIRM: 等待管理员审核 * WAIT_COMPILE: 等待转编译 * COMPILING: 转编译中 * COMPILE_FAILED: 转编译失败 * WAIT_GENERATE_ACTION: 等待原子动作生成 * WAIT_ARRANGE: 等待编排 * ACTION_GENERATE_DATA_PROCESSING: 原子动作生成中 * MANUAL_STOP_ACTION_GENERATE_DATA_PROCESSING: 人工中止动作生成 * MANUAL_STOP_ACTION_GENERATE_ORI_PROCESSING: 人工中止动作编排 * ACTION_GENERATE_ORI_PROCESSING: 动作编排中 * ACTION_GENERATE_DATA_FAILED: 动作生成失败 * ACTION_GENERATE_ORI_FAILED: 生成动作编排资产失败 * ACTION_GENERATE_ORI_SUCCESS: 动作编排成功 * GENERATE_ACTION_PREPROCESS_FAILED: 生成动作编排原子动作失败 * WAIT_ADMIN_CALIBRATION: 等待管理员确认动作信息 * WAIT_ASSET_SYNC: 等待资产同步 - 待用户审核,仅NA白名单用户有该状态 * WAIT_USER_CONFIRM: 等待用户确认训练效果 - 用户驳回,仅NA白名单用户有该状态 * JOB_REJECT: 驳回任务 - 已完成 * JOB_SUCCESS: 训练任务完成(普通用户任务的完成状态,此时用户已经可以使用模型) * JOB_FINISH: 任务结束,是最终状态,不支持修改此状态(NA用户任务的完成状态,并且此状态表明模型效果已通过用户的验收) - 挂起,仅NA白名单用户有该状态 * JOB_PENDING: 挂起任务 :return: The state of this Show2dModelTrainingJobResponse. :rtype: str @@ -371,7 +420,7 @@ def state(self): def state(self, state): """Sets the state of this Show2dModelTrainingJobResponse. - 任务的状态。 与MetaStudio Console上用户看到的状态映射关系如下: - 待提交 * WAIT_FILE_UPLOAD: 待上传文件 - 系统审核中 * AUTO_VERIFYING: 自动审核中 * MANUAL_VERIFYING: 人工审核中 - 系统审核未通过 * AUTO_VERIFY_FAILED: 自动审核失败 * MANUAL_VERIFY_FAILED: 人工审核失败 - 算法训练中 > 算法训练中的状态仅管理员需要处理,普通用户仅需要显示“算法训练中”即可。 * MANUAL_VERIFY_SUCCESS: 审核通过,等待预处理资源 * WAIT_TRAINING_DATA_PREPROCESS: 等待训练数据预处理 * TRAINING_DATA_PREPROCESSING: 训练数据预处理中 * TRAINING_DATA_PREPROCESS_FAILED: 训练数据预处理失败 * TRAINING_DATA_PREPROCESS_SUCCESS: 训练数据预处理完成,等待训练资源中 * TRAINING: 训练中 * TRAIN_FAILED: 训练失败 * TRAIN_SUCCESS: 训练完成,等待预处理资源 * INFERENCE_DATA_PREPROCESSING: 推理数据预处理中 * INFERENCE_DATA_PREPROCESS_FAILED: 推理数据预处理失败 * WAIT_MAIN_FILE_UPLOAD: 等待主文件上传 * MANUAL_STOP_INFERENCE_DATA_PREPROCESS: 人工中止推理预处理 * MANUAL_STOP_TRAIN: 人工中止训练 * MANUAL_STOP_TRAINING_DATA_PREPROCESS: 人工中止训练预处理 * WAIT_ADMIN_CONFIRM: 等待管理员审核 * WAIT_COMPILE: 等待转编译 * COMPILING: 转编译中 * COMPILE_FAILED: 转编译失败 * WAIT_GENERATE_ACTION: 等待原子动作生成 * WAIT_ARRANGE: 等待编排 * ACTION_GENERATE_DATA_PROCESSING: 原子动作生成中 * MANUAL_STOP_ACTION_GENERATE_DATA_PROCESSING: 人工中止动作生成 * MANUAL_STOP_ACTION_GENERATE_ORI_PROCESSING: 人工中止动作编排 * ACTION_GENERATE_ORI_PROCESSING: 动作编排中 * ACTION_GENERATE_DATA_FAILED: 动作生成失败 * ACTION_GENERATE_ORI_FAILED: 生成动作编排资产失败 * ACTION_GENERATE_ORI_SUCCESS: 动作编排成功 * GENERATE_ACTION_PREPROCESS_FAILED: 生成动作编排原子动作失败 * WAIT_ADMIN_CALIBRATION: 等待管理员确认动作信息 - 待用户审核,仅NA白名单用户有该状态 * WAIT_USER_CONFIRM: 等待用户确认训练效果 - 用户驳回,仅NA白名单用户有该状态 * JOB_REJECT: 驳回任务 - 已完成 * JOB_SUCCESS: 训练任务完成(普通用户任务的完成状态,此时用户已经可以使用模型) * JOB_FINISH: 任务结束,是最终状态,不支持修改此状态(NA用户任务的完成状态,并且此状态表明模型效果已通过用户的验收) - 挂起,仅NA白名单用户有该状态 * JOB_PENDING: 挂起任务 + 任务的状态。 与MetaStudio Console上用户看到的状态映射关系如下: - 待提交 * WAIT_FILE_UPLOAD: 待上传文件 - 系统审核中 * AUTO_VERIFYING: 自动审核中 * MANUAL_VERIFYING: 人工审核中 - 系统审核未通过 * AUTO_VERIFY_FAILED: 自动审核失败 * MANUAL_VERIFY_FAILED: 人工审核失败 - 算法训练中 > 算法训练中的状态仅管理员需要处理,普通用户仅需要显示“算法训练中”即可。 * MANUAL_VERIFY_SUCCESS: 审核通过,等待预处理资源 * WAIT_TRAINING_DATA_PREPROCESS: 等待训练数据预处理 * TRAINING_DATA_PREPROCESSING: 训练数据预处理中 * TRAINING_DATA_PREPROCESS_FAILED: 训练数据预处理失败 * TRAINING_DATA_PREPROCESS_SUCCESS: 训练数据预处理完成,等待训练资源中 * TRAINING: 训练中 * TRAIN_FAILED: 训练失败 * TRAIN_SUCCESS: 训练完成,等待预处理资源 * INFERENCE_DATA_PREPROCESSING: 推理数据预处理中 * INFERENCE_DATA_PREPROCESS_FAILED: 推理数据预处理失败 * WAIT_MAIN_FILE_UPLOAD: 等待主文件上传 * MANUAL_STOP_INFERENCE_DATA_PREPROCESS: 人工中止推理预处理 * MANUAL_STOP_TRAIN: 人工中止训练 * MANUAL_STOP_TRAINING_DATA_PREPROCESS: 人工中止训练预处理 * WAIT_ADMIN_CONFIRM: 等待管理员审核 * WAIT_COMPILE: 等待转编译 * COMPILING: 转编译中 * COMPILE_FAILED: 转编译失败 * WAIT_GENERATE_ACTION: 等待原子动作生成 * WAIT_ARRANGE: 等待编排 * ACTION_GENERATE_DATA_PROCESSING: 原子动作生成中 * MANUAL_STOP_ACTION_GENERATE_DATA_PROCESSING: 人工中止动作生成 * MANUAL_STOP_ACTION_GENERATE_ORI_PROCESSING: 人工中止动作编排 * ACTION_GENERATE_ORI_PROCESSING: 动作编排中 * ACTION_GENERATE_DATA_FAILED: 动作生成失败 * ACTION_GENERATE_ORI_FAILED: 生成动作编排资产失败 * ACTION_GENERATE_ORI_SUCCESS: 动作编排成功 * GENERATE_ACTION_PREPROCESS_FAILED: 生成动作编排原子动作失败 * WAIT_ADMIN_CALIBRATION: 等待管理员确认动作信息 * WAIT_ASSET_SYNC: 等待资产同步 - 待用户审核,仅NA白名单用户有该状态 * WAIT_USER_CONFIRM: 等待用户确认训练效果 - 用户驳回,仅NA白名单用户有该状态 * JOB_REJECT: 驳回任务 - 已完成 * JOB_SUCCESS: 训练任务完成(普通用户任务的完成状态,此时用户已经可以使用模型) * JOB_FINISH: 任务结束,是最终状态,不支持修改此状态(NA用户任务的完成状态,并且此状态表明模型效果已通过用户的验收) - 挂起,仅NA白名单用户有该状态 * JOB_PENDING: 挂起任务 :param state: The state of this Show2dModelTrainingJobResponse. :type state: str @@ -664,6 +713,28 @@ def is_flexus(self, is_flexus): """ self._is_flexus = is_flexus + @property + def is_only_human_model(self): + """Gets the is_only_human_model of this Show2dModelTrainingJobResponse. + + 是否只训练形象模型,不训练声音模型。仅Flexus版本时有效,默认false。 + + :return: The is_only_human_model of this Show2dModelTrainingJobResponse. + :rtype: bool + """ + return self._is_only_human_model + + @is_only_human_model.setter + def is_only_human_model(self, is_only_human_model): + """Sets the is_only_human_model of this Show2dModelTrainingJobResponse. + + 是否只训练形象模型,不训练声音模型。仅Flexus版本时有效,默认false。 + + :param is_only_human_model: The is_only_human_model of this Show2dModelTrainingJobResponse. + :type is_only_human_model: bool + """ + self._is_only_human_model = is_only_human_model + @property def training_video_download_url(self): """Gets the training_video_download_url of this Show2dModelTrainingJobResponse. @@ -752,6 +823,28 @@ def grant_file_download_url(self, grant_file_download_url): """ self._grant_file_download_url = grant_file_download_url + @property + def pre_beauty_image_download_url(self): + """Gets the pre_beauty_image_download_url of this Show2dModelTrainingJobResponse. + + 美白前图片下载url。 + + :return: The pre_beauty_image_download_url of this Show2dModelTrainingJobResponse. + :rtype: str + """ + return self._pre_beauty_image_download_url + + @pre_beauty_image_download_url.setter + def pre_beauty_image_download_url(self, pre_beauty_image_download_url): + """Sets the pre_beauty_image_download_url of this Show2dModelTrainingJobResponse. + + 美白前图片下载url。 + + :param pre_beauty_image_download_url: The pre_beauty_image_download_url of this Show2dModelTrainingJobResponse. + :type pre_beauty_image_download_url: str + """ + self._pre_beauty_image_download_url = pre_beauty_image_download_url + @property def action_video_download_url(self): """Gets the action_video_download_url of this Show2dModelTrainingJobResponse. @@ -774,6 +867,28 @@ def action_video_download_url(self, action_video_download_url): """ self._action_video_download_url = action_video_download_url + @property + def post_beauty_image_download_url(self): + """Gets the post_beauty_image_download_url of this Show2dModelTrainingJobResponse. + + 美白后图片下载url。 + + :return: The post_beauty_image_download_url of this Show2dModelTrainingJobResponse. + :rtype: str + """ + return self._post_beauty_image_download_url + + @post_beauty_image_download_url.setter + def post_beauty_image_download_url(self, post_beauty_image_download_url): + """Sets the post_beauty_image_download_url of this Show2dModelTrainingJobResponse. + + 美白后图片下载url。 + + :param post_beauty_image_download_url: The post_beauty_image_download_url of this Show2dModelTrainingJobResponse. + :type post_beauty_image_download_url: str + """ + self._post_beauty_image_download_url = post_beauty_image_download_url + @property def audio_file_download_url(self): """Gets the audio_file_download_url of this Show2dModelTrainingJobResponse. @@ -972,6 +1087,24 @@ def markable_video_download_url(self, markable_video_download_url): """ self._markable_video_download_url = markable_video_download_url + @property + def traning_video_mark_info(self): + """Gets the traning_video_mark_info of this Show2dModelTrainingJobResponse. + + :return: The traning_video_mark_info of this Show2dModelTrainingJobResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.TrainingVideoMarkInfo` + """ + return self._traning_video_mark_info + + @traning_video_mark_info.setter + def traning_video_mark_info(self, traning_video_mark_info): + """Sets the traning_video_mark_info of this Show2dModelTrainingJobResponse. + + :param traning_video_mark_info: The traning_video_mark_info of this Show2dModelTrainingJobResponse. + :type traning_video_mark_info: :class:`huaweicloudsdkmetastudio.v1.TrainingVideoMarkInfo` + """ + self._traning_video_mark_info = traning_video_mark_info + @property def inference_data_process_video_mark_info(self): """Gets the inference_data_process_video_mark_info of this Show2dModelTrainingJobResponse. @@ -1008,6 +1141,24 @@ def inference_data_process_action_mark_info(self, inference_data_process_action_ """ self._inference_data_process_action_mark_info = inference_data_process_action_mark_info + @property + def inference_data_process_chat_action_mark_info(self): + """Gets the inference_data_process_chat_action_mark_info of this Show2dModelTrainingJobResponse. + + :return: The inference_data_process_chat_action_mark_info of this Show2dModelTrainingJobResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.InferenceActionMarkInfo` + """ + return self._inference_data_process_chat_action_mark_info + + @inference_data_process_chat_action_mark_info.setter + def inference_data_process_chat_action_mark_info(self, inference_data_process_chat_action_mark_info): + """Sets the inference_data_process_chat_action_mark_info of this Show2dModelTrainingJobResponse. + + :param inference_data_process_chat_action_mark_info: The inference_data_process_chat_action_mark_info of this Show2dModelTrainingJobResponse. + :type inference_data_process_chat_action_mark_info: :class:`huaweicloudsdkmetastudio.v1.InferenceActionMarkInfo` + """ + self._inference_data_process_chat_action_mark_info = inference_data_process_chat_action_mark_info + @property def inference_data_process_eye_correction_mark_info(self): """Gets the inference_data_process_eye_correction_mark_info of this Show2dModelTrainingJobResponse. @@ -1070,6 +1221,28 @@ def worker_type(self, worker_type): """ self._worker_type = worker_type + @property + def beauty_level(self): + """Gets the beauty_level of this Show2dModelTrainingJobResponse. + + 美白等级。默认值0,不美白。 + + :return: The beauty_level of this Show2dModelTrainingJobResponse. + :rtype: int + """ + return self._beauty_level + + @beauty_level.setter + def beauty_level(self, beauty_level): + """Sets the beauty_level of this Show2dModelTrainingJobResponse. + + 美白等级。默认值0,不美白。 + + :param beauty_level: The beauty_level of this Show2dModelTrainingJobResponse. + :type beauty_level: int + """ + self._beauty_level = beauty_level + @property def voice_train_job_id(self): """Gets the voice_train_job_id of this Show2dModelTrainingJobResponse. @@ -1158,6 +1331,24 @@ def supported_service(self, supported_service): """ self._supported_service = supported_service + @property + def allocated_resource(self): + """Gets the allocated_resource of this Show2dModelTrainingJobResponse. + + :return: The allocated_resource of this Show2dModelTrainingJobResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.TrainingAllocatedResource` + """ + return self._allocated_resource + + @allocated_resource.setter + def allocated_resource(self, allocated_resource): + """Sets the allocated_resource of this Show2dModelTrainingJobResponse. + + :param allocated_resource: The allocated_resource of this Show2dModelTrainingJobResponse. + :type allocated_resource: :class:`huaweicloudsdkmetastudio.v1.TrainingAllocatedResource` + """ + self._allocated_resource = allocated_resource + @property def x_request_id(self): """Gets the x_request_id of this Show2dModelTrainingJobResponse. diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/porn_moderation_result_detail.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_beauty_preview_job_request.py similarity index 55% rename from huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/porn_moderation_result_detail.py rename to huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_beauty_preview_job_request.py index 1c95255174..8cf2677073 100644 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/porn_moderation_result_detail.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_beauty_preview_job_request.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class PornModerationResultDetail: +class ShowBeautyPreviewJobRequest: """ Attributes: @@ -17,80 +17,79 @@ class PornModerationResultDetail: sensitive_list = [] openapi_types = { - 'confidence': 'float', - 'label': 'str' + 'job_id': 'str', + 'x_app_user_id': 'str' } attribute_map = { - 'confidence': 'confidence', - 'label': 'label' + 'job_id': 'job_id', + 'x_app_user_id': 'X-App-UserId' } - def __init__(self, confidence=None, label=None): - """PornModerationResultDetail + def __init__(self, job_id=None, x_app_user_id=None): + """ShowBeautyPreviewJobRequest The model defined in huaweicloud sdk - :param confidence: 置信度,取值范围 0-1。 - :type confidence: float - :param label: 当前支持label列表如下: - normal:正常 - porn:色情 - :type label: str + :param job_id: 任务ID。 + :type job_id: str + :param x_app_user_id: 第三方用户ID。不允许输入中文。 + :type x_app_user_id: str """ - self._confidence = None - self._label = None + self._job_id = None + self._x_app_user_id = None self.discriminator = None - if confidence is not None: - self.confidence = confidence - if label is not None: - self.label = label + self.job_id = job_id + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id @property - def confidence(self): - """Gets the confidence of this PornModerationResultDetail. + def job_id(self): + """Gets the job_id of this ShowBeautyPreviewJobRequest. - 置信度,取值范围 0-1。 + 任务ID。 - :return: The confidence of this PornModerationResultDetail. - :rtype: float + :return: The job_id of this ShowBeautyPreviewJobRequest. + :rtype: str """ - return self._confidence + return self._job_id - @confidence.setter - def confidence(self, confidence): - """Sets the confidence of this PornModerationResultDetail. + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this ShowBeautyPreviewJobRequest. - 置信度,取值范围 0-1。 + 任务ID。 - :param confidence: The confidence of this PornModerationResultDetail. - :type confidence: float + :param job_id: The job_id of this ShowBeautyPreviewJobRequest. + :type job_id: str """ - self._confidence = confidence + self._job_id = job_id @property - def label(self): - """Gets the label of this PornModerationResultDetail. + def x_app_user_id(self): + """Gets the x_app_user_id of this ShowBeautyPreviewJobRequest. - 当前支持label列表如下: - normal:正常 - porn:色情 + 第三方用户ID。不允许输入中文。 - :return: The label of this PornModerationResultDetail. + :return: The x_app_user_id of this ShowBeautyPreviewJobRequest. :rtype: str """ - return self._label + return self._x_app_user_id - @label.setter - def label(self, label): - """Sets the label of this PornModerationResultDetail. + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this ShowBeautyPreviewJobRequest. - 当前支持label列表如下: - normal:正常 - porn:色情 + 第三方用户ID。不允许输入中文。 - :param label: The label of this PornModerationResultDetail. - :type label: str + :param x_app_user_id: The x_app_user_id of this ShowBeautyPreviewJobRequest. + :type x_app_user_id: str """ - self._label = label + self._x_app_user_id = x_app_user_id def to_dict(self): """Returns the model properties as a dict""" @@ -134,7 +133,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, PornModerationResultDetail): + if not isinstance(other, ShowBeautyPreviewJobRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_beauty_preview_job_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_beauty_preview_job_response.py new file mode 100644 index 0000000000..cb522dfbf2 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_beauty_preview_job_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 ShowBeautyPreviewJobResponse(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 = { + 'state': 'str', + 'post_beauty_image_download_url': 'str', + 'x_request_id': 'str' + } + + attribute_map = { + 'state': 'state', + 'post_beauty_image_download_url': 'post_beauty_image_download_url', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, state=None, post_beauty_image_download_url=None, x_request_id=None): + """ShowBeautyPreviewJobResponse + + The model defined in huaweicloud sdk + + :param state: 任务的状态。 * WAIT_IMAGE_UPLOAD:待上传美白前图片 * WAITING:等待生成美白预览图 * PROCESSING:美白预览图生成中 * SUCCESS:美白预览图生成成功 * FAILED:美白预览图生成失败 + :type state: str + :param post_beauty_image_download_url: 美白后图片下载url。 + :type post_beauty_image_download_url: str + :param x_request_id: + :type x_request_id: str + """ + + super(ShowBeautyPreviewJobResponse, self).__init__() + + self._state = None + self._post_beauty_image_download_url = None + self._x_request_id = None + self.discriminator = None + + if state is not None: + self.state = state + if post_beauty_image_download_url is not None: + self.post_beauty_image_download_url = post_beauty_image_download_url + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def state(self): + """Gets the state of this ShowBeautyPreviewJobResponse. + + 任务的状态。 * WAIT_IMAGE_UPLOAD:待上传美白前图片 * WAITING:等待生成美白预览图 * PROCESSING:美白预览图生成中 * SUCCESS:美白预览图生成成功 * FAILED:美白预览图生成失败 + + :return: The state of this ShowBeautyPreviewJobResponse. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this ShowBeautyPreviewJobResponse. + + 任务的状态。 * WAIT_IMAGE_UPLOAD:待上传美白前图片 * WAITING:等待生成美白预览图 * PROCESSING:美白预览图生成中 * SUCCESS:美白预览图生成成功 * FAILED:美白预览图生成失败 + + :param state: The state of this ShowBeautyPreviewJobResponse. + :type state: str + """ + self._state = state + + @property + def post_beauty_image_download_url(self): + """Gets the post_beauty_image_download_url of this ShowBeautyPreviewJobResponse. + + 美白后图片下载url。 + + :return: The post_beauty_image_download_url of this ShowBeautyPreviewJobResponse. + :rtype: str + """ + return self._post_beauty_image_download_url + + @post_beauty_image_download_url.setter + def post_beauty_image_download_url(self, post_beauty_image_download_url): + """Sets the post_beauty_image_download_url of this ShowBeautyPreviewJobResponse. + + 美白后图片下载url。 + + :param post_beauty_image_download_url: The post_beauty_image_download_url of this ShowBeautyPreviewJobResponse. + :type post_beauty_image_download_url: str + """ + self._post_beauty_image_download_url = post_beauty_image_download_url + + @property + def x_request_id(self): + """Gets the x_request_id of this ShowBeautyPreviewJobResponse. + + :return: The x_request_id of this ShowBeautyPreviewJobResponse. + :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 ShowBeautyPreviewJobResponse. + + :param x_request_id: The x_request_id of this ShowBeautyPreviewJobResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_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, ShowBeautyPreviewJobResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_beauty_preview_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_beauty_preview_job_request.py new file mode 100644 index 0000000000..3670ab0966 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_beauty_preview_job_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartBeautyPreviewJobRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'job_id': 'str', + 'x_app_user_id': 'str' + } + + attribute_map = { + 'job_id': 'job_id', + 'x_app_user_id': 'X-App-UserId' + } + + def __init__(self, job_id=None, x_app_user_id=None): + """StartBeautyPreviewJobRequest + + The model defined in huaweicloud sdk + + :param job_id: 任务ID。 + :type job_id: str + :param x_app_user_id: 第三方用户ID。不允许输入中文。 + :type x_app_user_id: str + """ + + + + self._job_id = None + self._x_app_user_id = None + self.discriminator = None + + self.job_id = job_id + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + + @property + def job_id(self): + """Gets the job_id of this StartBeautyPreviewJobRequest. + + 任务ID。 + + :return: The job_id of this StartBeautyPreviewJobRequest. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this StartBeautyPreviewJobRequest. + + 任务ID。 + + :param job_id: The job_id of this StartBeautyPreviewJobRequest. + :type job_id: str + """ + self._job_id = job_id + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this StartBeautyPreviewJobRequest. + + 第三方用户ID。不允许输入中文。 + + :return: The x_app_user_id of this StartBeautyPreviewJobRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this StartBeautyPreviewJobRequest. + + 第三方用户ID。不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this StartBeautyPreviewJobRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_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, StartBeautyPreviewJobRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_image_moderation_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_beauty_preview_job_response.py similarity index 68% rename from huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_image_moderation_response.py rename to huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_beauty_preview_job_response.py index 23e7973035..3b13bfa46f 100644 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_image_moderation_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_beauty_preview_job_response.py @@ -6,7 +6,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RunImageModerationResponse(SdkResponse): +class StartBeautyPreviewJobResponse(SdkResponse): """ Attributes: @@ -18,47 +18,47 @@ class RunImageModerationResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'result': 'ImageDetectionResultBody' + 'x_request_id': 'str' } attribute_map = { - 'result': 'result' + 'x_request_id': 'X-Request-Id' } - def __init__(self, result=None): - """RunImageModerationResponse + def __init__(self, x_request_id=None): + """StartBeautyPreviewJobResponse The model defined in huaweicloud sdk - :param result: - :type result: :class:`huaweicloudsdkmoderation.v2.ImageDetectionResultBody` + :param x_request_id: + :type x_request_id: str """ - super(RunImageModerationResponse, self).__init__() + super(StartBeautyPreviewJobResponse, self).__init__() - self._result = None + self._x_request_id = None self.discriminator = None - if result is not None: - self.result = result + if x_request_id is not None: + self.x_request_id = x_request_id @property - def result(self): - """Gets the result of this RunImageModerationResponse. + def x_request_id(self): + """Gets the x_request_id of this StartBeautyPreviewJobResponse. - :return: The result of this RunImageModerationResponse. - :rtype: :class:`huaweicloudsdkmoderation.v2.ImageDetectionResultBody` + :return: The x_request_id of this StartBeautyPreviewJobResponse. + :rtype: str """ - return self._result + return self._x_request_id - @result.setter - def result(self, result): - """Sets the result of this RunImageModerationResponse. + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this StartBeautyPreviewJobResponse. - :param result: The result of this RunImageModerationResponse. - :type result: :class:`huaweicloudsdkmoderation.v2.ImageDetectionResultBody` + :param x_request_id: The x_request_id of this StartBeautyPreviewJobResponse. + :type x_request_id: str """ - self._result = result + self._x_request_id = x_request_id def to_dict(self): """Returns the model properties as a dict""" @@ -102,7 +102,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RunImageModerationResponse): + if not isinstance(other, StartBeautyPreviewJobResponse): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/system_property.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/system_property.py index e603b99668..623f6cb05b 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/system_property.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/system_property.py @@ -35,7 +35,7 @@ def __init__(self, action=None, key=None, value=None): :param action: **参数解释**: 操作。 **约束限制**: 系统属性仅为系统设置,普通用户无法修改。 **取值范围**: * ADD:增加 * DELETE:删除 **默认取值**: 不涉及 :type action: str - :param key: **参数解释**: 系统属性条目。 **约束限制**: 系统属性仅为系统设置,普通用户无法修改。 **取值范围**: 公共资产属性: * BACKGROUND_IMG:视频制作的背景图片。value设置成Yes * CREATED_BY_PLATFORM: 是否平台生成。 分身数字人资产属性: * MATERIAL_IMG:素材图片,用作图片图层。value设置成Yes。 * MATERIAL_VIDEO:素材视频,用作视频图层。value设置成Yes。 * DIGITAL_HUMAN_2D_VIDEO:分身数字人视频。 * DIGITAL_HUMAN_3D_VIDEO:3D数字人视频。 * BUSINESS_CARD_VIDEO:名片视频。 * BUSSINESS_CARD_VIDEO:名片视频(过期) * PHOTO_VIDEO:照片数字人视频。 视频翻译资产属性: * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes。 * TRANSLATED_VIDEO: 视频翻译后的视频 3D数字人资产属性: * STYLE_ID:风格Id。 * DH_ID:数字人ID(尚未启用)。 * PLATFORM_AVAILABLE:是否平台可用(尚未启用)。 * RENDER_ENGINE:引擎类型。value可选UE或MetaEngine。 * BACKGROUND_SCENE:视频制作的2D背景场景。value可选Horizontal(横屏)或者Vertical(竖屏)。 * LAYER_CONFIG_ENABLE: 可用前景图层配置 * MEITUAN_MATERIAL_APPROVED: 美团平台已审核标识,value设置成YES。 **默认取值**: 不涉及 + :param key: **参数解释**: 系统属性条目。 **约束限制**: 系统属性仅为系统设置,普通用户无法修改。 **取值范围**: 公共资产属性: * BACKGROUND_IMG:视频制作的背景图片。value设置成Yes * CREATED_BY_PLATFORM: 是否平台生成。 分身数字人资产属性: * MATERIAL_IMG:素材图片,用作图片图层。value设置成Yes,否则控制台视频制作、直播等界面的贴图区域,将无法看到此图片。 * MATERIAL_VIDEO:素材视频,用作视频图层。value设置成Yes,否则控制台视频制作、直播等界面的视频区域,将无法看到此视频。 * DIGITAL_HUMAN_2D_VIDEO:分身数字人视频。 * DIGITAL_HUMAN_3D_VIDEO:3D数字人视频。 * BUSINESS_CARD_VIDEO:名片视频。 * BUSSINESS_CARD_VIDEO:名片视频(过期) * PHOTO_VIDEO:照片数字人视频。 视频翻译资产属性: * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes。 * TRANSLATED_VIDEO: 视频翻译后的视频 3D数字人资产属性: * STYLE_ID:风格Id。 * DH_ID:数字人ID(尚未启用)。 * PLATFORM_AVAILABLE:是否平台可用(尚未启用)。 * RENDER_ENGINE:引擎类型。value可选UE或MetaEngine。 * BACKGROUND_SCENE:视频制作的2D背景场景。value可选Horizontal(横屏)或者Vertical(竖屏)。 * LAYER_CONFIG_ENABLE: 可用前景图层配置 * MEITUAN_MATERIAL_APPROVED: 美团平台已审核标识,value设置成YES。 **默认取值**: 不涉及 :type key: str :param value: **参数解释**: 系统属性属性值。 **约束限制**: 系统属性仅为系统设置,普通用户无法修改。 **取值范围**: 字符长度1-1024位 **默认取值** 不涉及 :type value: str @@ -81,7 +81,7 @@ def action(self, action): def key(self): """Gets the key of this SystemProperty. - **参数解释**: 系统属性条目。 **约束限制**: 系统属性仅为系统设置,普通用户无法修改。 **取值范围**: 公共资产属性: * BACKGROUND_IMG:视频制作的背景图片。value设置成Yes * CREATED_BY_PLATFORM: 是否平台生成。 分身数字人资产属性: * MATERIAL_IMG:素材图片,用作图片图层。value设置成Yes。 * MATERIAL_VIDEO:素材视频,用作视频图层。value设置成Yes。 * DIGITAL_HUMAN_2D_VIDEO:分身数字人视频。 * DIGITAL_HUMAN_3D_VIDEO:3D数字人视频。 * BUSINESS_CARD_VIDEO:名片视频。 * BUSSINESS_CARD_VIDEO:名片视频(过期) * PHOTO_VIDEO:照片数字人视频。 视频翻译资产属性: * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes。 * TRANSLATED_VIDEO: 视频翻译后的视频 3D数字人资产属性: * STYLE_ID:风格Id。 * DH_ID:数字人ID(尚未启用)。 * PLATFORM_AVAILABLE:是否平台可用(尚未启用)。 * RENDER_ENGINE:引擎类型。value可选UE或MetaEngine。 * BACKGROUND_SCENE:视频制作的2D背景场景。value可选Horizontal(横屏)或者Vertical(竖屏)。 * LAYER_CONFIG_ENABLE: 可用前景图层配置 * MEITUAN_MATERIAL_APPROVED: 美团平台已审核标识,value设置成YES。 **默认取值**: 不涉及 + **参数解释**: 系统属性条目。 **约束限制**: 系统属性仅为系统设置,普通用户无法修改。 **取值范围**: 公共资产属性: * BACKGROUND_IMG:视频制作的背景图片。value设置成Yes * CREATED_BY_PLATFORM: 是否平台生成。 分身数字人资产属性: * MATERIAL_IMG:素材图片,用作图片图层。value设置成Yes,否则控制台视频制作、直播等界面的贴图区域,将无法看到此图片。 * MATERIAL_VIDEO:素材视频,用作视频图层。value设置成Yes,否则控制台视频制作、直播等界面的视频区域,将无法看到此视频。 * DIGITAL_HUMAN_2D_VIDEO:分身数字人视频。 * DIGITAL_HUMAN_3D_VIDEO:3D数字人视频。 * BUSINESS_CARD_VIDEO:名片视频。 * BUSSINESS_CARD_VIDEO:名片视频(过期) * PHOTO_VIDEO:照片数字人视频。 视频翻译资产属性: * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes。 * TRANSLATED_VIDEO: 视频翻译后的视频 3D数字人资产属性: * STYLE_ID:风格Id。 * DH_ID:数字人ID(尚未启用)。 * PLATFORM_AVAILABLE:是否平台可用(尚未启用)。 * RENDER_ENGINE:引擎类型。value可选UE或MetaEngine。 * BACKGROUND_SCENE:视频制作的2D背景场景。value可选Horizontal(横屏)或者Vertical(竖屏)。 * LAYER_CONFIG_ENABLE: 可用前景图层配置 * MEITUAN_MATERIAL_APPROVED: 美团平台已审核标识,value设置成YES。 **默认取值**: 不涉及 :return: The key of this SystemProperty. :rtype: str @@ -92,7 +92,7 @@ def key(self): def key(self, key): """Sets the key of this SystemProperty. - **参数解释**: 系统属性条目。 **约束限制**: 系统属性仅为系统设置,普通用户无法修改。 **取值范围**: 公共资产属性: * BACKGROUND_IMG:视频制作的背景图片。value设置成Yes * CREATED_BY_PLATFORM: 是否平台生成。 分身数字人资产属性: * MATERIAL_IMG:素材图片,用作图片图层。value设置成Yes。 * MATERIAL_VIDEO:素材视频,用作视频图层。value设置成Yes。 * DIGITAL_HUMAN_2D_VIDEO:分身数字人视频。 * DIGITAL_HUMAN_3D_VIDEO:3D数字人视频。 * BUSINESS_CARD_VIDEO:名片视频。 * BUSSINESS_CARD_VIDEO:名片视频(过期) * PHOTO_VIDEO:照片数字人视频。 视频翻译资产属性: * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes。 * TRANSLATED_VIDEO: 视频翻译后的视频 3D数字人资产属性: * STYLE_ID:风格Id。 * DH_ID:数字人ID(尚未启用)。 * PLATFORM_AVAILABLE:是否平台可用(尚未启用)。 * RENDER_ENGINE:引擎类型。value可选UE或MetaEngine。 * BACKGROUND_SCENE:视频制作的2D背景场景。value可选Horizontal(横屏)或者Vertical(竖屏)。 * LAYER_CONFIG_ENABLE: 可用前景图层配置 * MEITUAN_MATERIAL_APPROVED: 美团平台已审核标识,value设置成YES。 **默认取值**: 不涉及 + **参数解释**: 系统属性条目。 **约束限制**: 系统属性仅为系统设置,普通用户无法修改。 **取值范围**: 公共资产属性: * BACKGROUND_IMG:视频制作的背景图片。value设置成Yes * CREATED_BY_PLATFORM: 是否平台生成。 分身数字人资产属性: * MATERIAL_IMG:素材图片,用作图片图层。value设置成Yes,否则控制台视频制作、直播等界面的贴图区域,将无法看到此图片。 * MATERIAL_VIDEO:素材视频,用作视频图层。value设置成Yes,否则控制台视频制作、直播等界面的视频区域,将无法看到此视频。 * DIGITAL_HUMAN_2D_VIDEO:分身数字人视频。 * DIGITAL_HUMAN_3D_VIDEO:3D数字人视频。 * BUSINESS_CARD_VIDEO:名片视频。 * BUSSINESS_CARD_VIDEO:名片视频(过期) * PHOTO_VIDEO:照片数字人视频。 视频翻译资产属性: * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes。 * TRANSLATED_VIDEO: 视频翻译后的视频 3D数字人资产属性: * STYLE_ID:风格Id。 * DH_ID:数字人ID(尚未启用)。 * PLATFORM_AVAILABLE:是否平台可用(尚未启用)。 * RENDER_ENGINE:引擎类型。value可选UE或MetaEngine。 * BACKGROUND_SCENE:视频制作的2D背景场景。value可选Horizontal(横屏)或者Vertical(竖屏)。 * LAYER_CONFIG_ENABLE: 可用前景图层配置 * MEITUAN_MATERIAL_APPROVED: 美团平台已审核标识,value设置成YES。 **默认取值**: 不涉及 :param key: The key of this SystemProperty. :type key: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/training_allocated_resource.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/training_allocated_resource.py new file mode 100644 index 0000000000..79239c7903 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/training_allocated_resource.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TrainingAllocatedResource: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'resource_id': 'str', + 'charge_mode': 'str', + 'expire_time': 'str' + } + + attribute_map = { + 'resource_id': 'resource_id', + 'charge_mode': 'charge_mode', + 'expire_time': 'expire_time' + } + + def __init__(self, resource_id=None, charge_mode=None, expire_time=None): + """TrainingAllocatedResource + + The model defined in huaweicloud sdk + + :param resource_id: 资源ID。 + :type resource_id: str + :param charge_mode: 资源计费类型。 * PERIODIC: 包周期 * ONE_TIME:一次性计费 > * 一次性计费包括:租户订购的一次性资源,SP管理员分配给租户的一次性资源。 + :type charge_mode: str + :param expire_time: 资源过期时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\" + :type expire_time: str + """ + + + + self._resource_id = None + self._charge_mode = None + self._expire_time = None + self.discriminator = None + + if resource_id is not None: + self.resource_id = resource_id + if charge_mode is not None: + self.charge_mode = charge_mode + if expire_time is not None: + self.expire_time = expire_time + + @property + def resource_id(self): + """Gets the resource_id of this TrainingAllocatedResource. + + 资源ID。 + + :return: The resource_id of this TrainingAllocatedResource. + :rtype: str + """ + return self._resource_id + + @resource_id.setter + def resource_id(self, resource_id): + """Sets the resource_id of this TrainingAllocatedResource. + + 资源ID。 + + :param resource_id: The resource_id of this TrainingAllocatedResource. + :type resource_id: str + """ + self._resource_id = resource_id + + @property + def charge_mode(self): + """Gets the charge_mode of this TrainingAllocatedResource. + + 资源计费类型。 * PERIODIC: 包周期 * ONE_TIME:一次性计费 > * 一次性计费包括:租户订购的一次性资源,SP管理员分配给租户的一次性资源。 + + :return: The charge_mode of this TrainingAllocatedResource. + :rtype: str + """ + return self._charge_mode + + @charge_mode.setter + def charge_mode(self, charge_mode): + """Sets the charge_mode of this TrainingAllocatedResource. + + 资源计费类型。 * PERIODIC: 包周期 * ONE_TIME:一次性计费 > * 一次性计费包括:租户订购的一次性资源,SP管理员分配给租户的一次性资源。 + + :param charge_mode: The charge_mode of this TrainingAllocatedResource. + :type charge_mode: str + """ + self._charge_mode = charge_mode + + @property + def expire_time(self): + """Gets the expire_time of this TrainingAllocatedResource. + + 资源过期时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\" + + :return: The expire_time of this TrainingAllocatedResource. + :rtype: str + """ + return self._expire_time + + @expire_time.setter + def expire_time(self, expire_time): + """Sets the expire_time of this TrainingAllocatedResource. + + 资源过期时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\" + + :param expire_time: The expire_time of this TrainingAllocatedResource. + :type expire_time: str + """ + self._expire_time = expire_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, TrainingAllocatedResource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/training_job_basic_info.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/training_job_basic_info.py index 54f994dd78..3eef8008d2 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/training_job_basic_info.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/training_job_basic_info.py @@ -32,7 +32,8 @@ class TrainingJobBasicInfo: 'matting_type': 'str', 'model_resolution': 'str', 'app_user_id': 'str', - 'is_flexus': 'bool' + 'is_flexus': 'bool', + 'is_only_human_model': 'bool' } attribute_map = { @@ -51,10 +52,11 @@ class TrainingJobBasicInfo: 'matting_type': 'matting_type', 'model_resolution': 'model_resolution', 'app_user_id': 'app_user_id', - 'is_flexus': 'is_flexus' + 'is_flexus': 'is_flexus', + 'is_only_human_model': 'is_only_human_model' } - def __init__(self, job_id=None, name=None, state=None, asset_id=None, project_id=None, cover_download_url=None, last_update_time=None, create_time=None, contact=None, batch_name=None, tags=None, model_version=None, matting_type=None, model_resolution=None, app_user_id=None, is_flexus=None): + def __init__(self, job_id=None, name=None, state=None, asset_id=None, project_id=None, cover_download_url=None, last_update_time=None, create_time=None, contact=None, batch_name=None, tags=None, model_version=None, matting_type=None, model_resolution=None, app_user_id=None, is_flexus=None, is_only_human_model=None): """TrainingJobBasicInfo The model defined in huaweicloud sdk @@ -63,7 +65,7 @@ def __init__(self, job_id=None, name=None, state=None, asset_id=None, project_id :type job_id: str :param name: 分身数字人模型名称。该名称会作为资产库中分身数字人模型资产名称。 :type name: str - :param state: 任务的状态。 与MetaStudio Console上用户看到的状态映射关系如下: - 待提交 * WAIT_FILE_UPLOAD: 待上传文件 - 系统审核中 * AUTO_VERIFYING: 自动审核中 * MANUAL_VERIFYING: 人工审核中 - 系统审核未通过 * AUTO_VERIFY_FAILED: 自动审核失败 * MANUAL_VERIFY_FAILED: 人工审核失败 - 算法训练中 > 算法训练中的状态仅管理员需要处理,普通用户仅需要显示“算法训练中”即可。 * MANUAL_VERIFY_SUCCESS: 审核通过,等待预处理资源 * WAIT_TRAINING_DATA_PREPROCESS: 等待训练数据预处理 * TRAINING_DATA_PREPROCESSING: 训练数据预处理中 * TRAINING_DATA_PREPROCESS_FAILED: 训练数据预处理失败 * TRAINING_DATA_PREPROCESS_SUCCESS: 训练数据预处理完成,等待训练资源中 * TRAINING: 训练中 * TRAIN_FAILED: 训练失败 * TRAIN_SUCCESS: 训练完成,等待预处理资源 * INFERENCE_DATA_PREPROCESSING: 推理数据预处理中 * INFERENCE_DATA_PREPROCESS_FAILED: 推理数据预处理失败 * WAIT_MAIN_FILE_UPLOAD: 等待主文件上传 * MANUAL_STOP_INFERENCE_DATA_PREPROCESS: 人工中止推理预处理 * MANUAL_STOP_TRAIN: 人工中止训练 * MANUAL_STOP_TRAINING_DATA_PREPROCESS: 人工中止训练预处理 * WAIT_ADMIN_CONFIRM: 等待管理员审核 * WAIT_COMPILE: 等待转编译 * COMPILING: 转编译中 * COMPILE_FAILED: 转编译失败 * WAIT_GENERATE_ACTION: 等待原子动作生成 * WAIT_ARRANGE: 等待编排 * ACTION_GENERATE_DATA_PROCESSING: 原子动作生成中 * MANUAL_STOP_ACTION_GENERATE_DATA_PROCESSING: 人工中止动作生成 * MANUAL_STOP_ACTION_GENERATE_ORI_PROCESSING: 人工中止动作编排 * ACTION_GENERATE_ORI_PROCESSING: 动作编排中 * ACTION_GENERATE_DATA_FAILED: 动作生成失败 * ACTION_GENERATE_ORI_FAILED: 生成动作编排资产失败 * ACTION_GENERATE_ORI_SUCCESS: 动作编排成功 * GENERATE_ACTION_PREPROCESS_FAILED: 生成动作编排原子动作失败 * WAIT_ADMIN_CALIBRATION: 等待管理员确认动作信息 - 待用户审核,仅NA白名单用户有该状态 * WAIT_USER_CONFIRM: 等待用户确认训练效果 - 用户驳回,仅NA白名单用户有该状态 * JOB_REJECT: 驳回任务 - 已完成 * JOB_SUCCESS: 训练任务完成(普通用户任务的完成状态,此时用户已经可以使用模型) * JOB_FINISH: 任务结束,是最终状态,不支持修改此状态(NA用户任务的完成状态,并且此状态表明模型效果已通过用户的验收) - 挂起,仅NA白名单用户有该状态 * JOB_PENDING: 挂起任务 + :param state: 任务的状态。 与MetaStudio Console上用户看到的状态映射关系如下: - 待提交 * WAIT_FILE_UPLOAD: 待上传文件 - 系统审核中 * AUTO_VERIFYING: 自动审核中 * MANUAL_VERIFYING: 人工审核中 - 系统审核未通过 * AUTO_VERIFY_FAILED: 自动审核失败 * MANUAL_VERIFY_FAILED: 人工审核失败 - 算法训练中 > 算法训练中的状态仅管理员需要处理,普通用户仅需要显示“算法训练中”即可。 * MANUAL_VERIFY_SUCCESS: 审核通过,等待预处理资源 * WAIT_TRAINING_DATA_PREPROCESS: 等待训练数据预处理 * TRAINING_DATA_PREPROCESSING: 训练数据预处理中 * TRAINING_DATA_PREPROCESS_FAILED: 训练数据预处理失败 * TRAINING_DATA_PREPROCESS_SUCCESS: 训练数据预处理完成,等待训练资源中 * TRAINING: 训练中 * TRAIN_FAILED: 训练失败 * TRAIN_SUCCESS: 训练完成,等待预处理资源 * INFERENCE_DATA_PREPROCESSING: 推理数据预处理中 * INFERENCE_DATA_PREPROCESS_FAILED: 推理数据预处理失败 * WAIT_MAIN_FILE_UPLOAD: 等待主文件上传 * MANUAL_STOP_INFERENCE_DATA_PREPROCESS: 人工中止推理预处理 * MANUAL_STOP_TRAIN: 人工中止训练 * MANUAL_STOP_TRAINING_DATA_PREPROCESS: 人工中止训练预处理 * WAIT_ADMIN_CONFIRM: 等待管理员审核 * WAIT_COMPILE: 等待转编译 * COMPILING: 转编译中 * COMPILE_FAILED: 转编译失败 * WAIT_GENERATE_ACTION: 等待原子动作生成 * WAIT_ARRANGE: 等待编排 * ACTION_GENERATE_DATA_PROCESSING: 原子动作生成中 * MANUAL_STOP_ACTION_GENERATE_DATA_PROCESSING: 人工中止动作生成 * MANUAL_STOP_ACTION_GENERATE_ORI_PROCESSING: 人工中止动作编排 * ACTION_GENERATE_ORI_PROCESSING: 动作编排中 * ACTION_GENERATE_DATA_FAILED: 动作生成失败 * ACTION_GENERATE_ORI_FAILED: 生成动作编排资产失败 * ACTION_GENERATE_ORI_SUCCESS: 动作编排成功 * GENERATE_ACTION_PREPROCESS_FAILED: 生成动作编排原子动作失败 * WAIT_ADMIN_CALIBRATION: 等待管理员确认动作信息 * WAIT_ASSET_SYNC: 等待资产同步 - 待用户审核,仅NA白名单用户有该状态 * WAIT_USER_CONFIRM: 等待用户确认训练效果 - 用户驳回,仅NA白名单用户有该状态 * JOB_REJECT: 驳回任务 - 已完成 * JOB_SUCCESS: 训练任务完成(普通用户任务的完成状态,此时用户已经可以使用模型) * JOB_FINISH: 任务结束,是最终状态,不支持修改此状态(NA用户任务的完成状态,并且此状态表明模型效果已通过用户的验收) - 挂起,仅NA白名单用户有该状态 * JOB_PENDING: 挂起任务 :type state: str :param asset_id: 模型资产ID。 :type asset_id: str @@ -91,6 +93,8 @@ def __init__(self, job_id=None, name=None, state=None, asset_id=None, project_id :type app_user_id: str :param is_flexus: 是否是基础版的形象训练 :type is_flexus: bool + :param is_only_human_model: 是否只训练形象模型,不训练声音模型。仅Flexus版本时有效,默认false。 + :type is_only_human_model: bool """ @@ -111,6 +115,7 @@ def __init__(self, job_id=None, name=None, state=None, asset_id=None, project_id self._model_resolution = None self._app_user_id = None self._is_flexus = None + self._is_only_human_model = None self.discriminator = None self.job_id = job_id @@ -142,6 +147,8 @@ def __init__(self, job_id=None, name=None, state=None, asset_id=None, project_id self.app_user_id = app_user_id if is_flexus is not None: self.is_flexus = is_flexus + if is_only_human_model is not None: + self.is_only_human_model = is_only_human_model @property def job_id(self): @@ -191,7 +198,7 @@ def name(self, name): def state(self): """Gets the state of this TrainingJobBasicInfo. - 任务的状态。 与MetaStudio Console上用户看到的状态映射关系如下: - 待提交 * WAIT_FILE_UPLOAD: 待上传文件 - 系统审核中 * AUTO_VERIFYING: 自动审核中 * MANUAL_VERIFYING: 人工审核中 - 系统审核未通过 * AUTO_VERIFY_FAILED: 自动审核失败 * MANUAL_VERIFY_FAILED: 人工审核失败 - 算法训练中 > 算法训练中的状态仅管理员需要处理,普通用户仅需要显示“算法训练中”即可。 * MANUAL_VERIFY_SUCCESS: 审核通过,等待预处理资源 * WAIT_TRAINING_DATA_PREPROCESS: 等待训练数据预处理 * TRAINING_DATA_PREPROCESSING: 训练数据预处理中 * TRAINING_DATA_PREPROCESS_FAILED: 训练数据预处理失败 * TRAINING_DATA_PREPROCESS_SUCCESS: 训练数据预处理完成,等待训练资源中 * TRAINING: 训练中 * TRAIN_FAILED: 训练失败 * TRAIN_SUCCESS: 训练完成,等待预处理资源 * INFERENCE_DATA_PREPROCESSING: 推理数据预处理中 * INFERENCE_DATA_PREPROCESS_FAILED: 推理数据预处理失败 * WAIT_MAIN_FILE_UPLOAD: 等待主文件上传 * MANUAL_STOP_INFERENCE_DATA_PREPROCESS: 人工中止推理预处理 * MANUAL_STOP_TRAIN: 人工中止训练 * MANUAL_STOP_TRAINING_DATA_PREPROCESS: 人工中止训练预处理 * WAIT_ADMIN_CONFIRM: 等待管理员审核 * WAIT_COMPILE: 等待转编译 * COMPILING: 转编译中 * COMPILE_FAILED: 转编译失败 * WAIT_GENERATE_ACTION: 等待原子动作生成 * WAIT_ARRANGE: 等待编排 * ACTION_GENERATE_DATA_PROCESSING: 原子动作生成中 * MANUAL_STOP_ACTION_GENERATE_DATA_PROCESSING: 人工中止动作生成 * MANUAL_STOP_ACTION_GENERATE_ORI_PROCESSING: 人工中止动作编排 * ACTION_GENERATE_ORI_PROCESSING: 动作编排中 * ACTION_GENERATE_DATA_FAILED: 动作生成失败 * ACTION_GENERATE_ORI_FAILED: 生成动作编排资产失败 * ACTION_GENERATE_ORI_SUCCESS: 动作编排成功 * GENERATE_ACTION_PREPROCESS_FAILED: 生成动作编排原子动作失败 * WAIT_ADMIN_CALIBRATION: 等待管理员确认动作信息 - 待用户审核,仅NA白名单用户有该状态 * WAIT_USER_CONFIRM: 等待用户确认训练效果 - 用户驳回,仅NA白名单用户有该状态 * JOB_REJECT: 驳回任务 - 已完成 * JOB_SUCCESS: 训练任务完成(普通用户任务的完成状态,此时用户已经可以使用模型) * JOB_FINISH: 任务结束,是最终状态,不支持修改此状态(NA用户任务的完成状态,并且此状态表明模型效果已通过用户的验收) - 挂起,仅NA白名单用户有该状态 * JOB_PENDING: 挂起任务 + 任务的状态。 与MetaStudio Console上用户看到的状态映射关系如下: - 待提交 * WAIT_FILE_UPLOAD: 待上传文件 - 系统审核中 * AUTO_VERIFYING: 自动审核中 * MANUAL_VERIFYING: 人工审核中 - 系统审核未通过 * AUTO_VERIFY_FAILED: 自动审核失败 * MANUAL_VERIFY_FAILED: 人工审核失败 - 算法训练中 > 算法训练中的状态仅管理员需要处理,普通用户仅需要显示“算法训练中”即可。 * MANUAL_VERIFY_SUCCESS: 审核通过,等待预处理资源 * WAIT_TRAINING_DATA_PREPROCESS: 等待训练数据预处理 * TRAINING_DATA_PREPROCESSING: 训练数据预处理中 * TRAINING_DATA_PREPROCESS_FAILED: 训练数据预处理失败 * TRAINING_DATA_PREPROCESS_SUCCESS: 训练数据预处理完成,等待训练资源中 * TRAINING: 训练中 * TRAIN_FAILED: 训练失败 * TRAIN_SUCCESS: 训练完成,等待预处理资源 * INFERENCE_DATA_PREPROCESSING: 推理数据预处理中 * INFERENCE_DATA_PREPROCESS_FAILED: 推理数据预处理失败 * WAIT_MAIN_FILE_UPLOAD: 等待主文件上传 * MANUAL_STOP_INFERENCE_DATA_PREPROCESS: 人工中止推理预处理 * MANUAL_STOP_TRAIN: 人工中止训练 * MANUAL_STOP_TRAINING_DATA_PREPROCESS: 人工中止训练预处理 * WAIT_ADMIN_CONFIRM: 等待管理员审核 * WAIT_COMPILE: 等待转编译 * COMPILING: 转编译中 * COMPILE_FAILED: 转编译失败 * WAIT_GENERATE_ACTION: 等待原子动作生成 * WAIT_ARRANGE: 等待编排 * ACTION_GENERATE_DATA_PROCESSING: 原子动作生成中 * MANUAL_STOP_ACTION_GENERATE_DATA_PROCESSING: 人工中止动作生成 * MANUAL_STOP_ACTION_GENERATE_ORI_PROCESSING: 人工中止动作编排 * ACTION_GENERATE_ORI_PROCESSING: 动作编排中 * ACTION_GENERATE_DATA_FAILED: 动作生成失败 * ACTION_GENERATE_ORI_FAILED: 生成动作编排资产失败 * ACTION_GENERATE_ORI_SUCCESS: 动作编排成功 * GENERATE_ACTION_PREPROCESS_FAILED: 生成动作编排原子动作失败 * WAIT_ADMIN_CALIBRATION: 等待管理员确认动作信息 * WAIT_ASSET_SYNC: 等待资产同步 - 待用户审核,仅NA白名单用户有该状态 * WAIT_USER_CONFIRM: 等待用户确认训练效果 - 用户驳回,仅NA白名单用户有该状态 * JOB_REJECT: 驳回任务 - 已完成 * JOB_SUCCESS: 训练任务完成(普通用户任务的完成状态,此时用户已经可以使用模型) * JOB_FINISH: 任务结束,是最终状态,不支持修改此状态(NA用户任务的完成状态,并且此状态表明模型效果已通过用户的验收) - 挂起,仅NA白名单用户有该状态 * JOB_PENDING: 挂起任务 :return: The state of this TrainingJobBasicInfo. :rtype: str @@ -202,7 +209,7 @@ def state(self): def state(self, state): """Sets the state of this TrainingJobBasicInfo. - 任务的状态。 与MetaStudio Console上用户看到的状态映射关系如下: - 待提交 * WAIT_FILE_UPLOAD: 待上传文件 - 系统审核中 * AUTO_VERIFYING: 自动审核中 * MANUAL_VERIFYING: 人工审核中 - 系统审核未通过 * AUTO_VERIFY_FAILED: 自动审核失败 * MANUAL_VERIFY_FAILED: 人工审核失败 - 算法训练中 > 算法训练中的状态仅管理员需要处理,普通用户仅需要显示“算法训练中”即可。 * MANUAL_VERIFY_SUCCESS: 审核通过,等待预处理资源 * WAIT_TRAINING_DATA_PREPROCESS: 等待训练数据预处理 * TRAINING_DATA_PREPROCESSING: 训练数据预处理中 * TRAINING_DATA_PREPROCESS_FAILED: 训练数据预处理失败 * TRAINING_DATA_PREPROCESS_SUCCESS: 训练数据预处理完成,等待训练资源中 * TRAINING: 训练中 * TRAIN_FAILED: 训练失败 * TRAIN_SUCCESS: 训练完成,等待预处理资源 * INFERENCE_DATA_PREPROCESSING: 推理数据预处理中 * INFERENCE_DATA_PREPROCESS_FAILED: 推理数据预处理失败 * WAIT_MAIN_FILE_UPLOAD: 等待主文件上传 * MANUAL_STOP_INFERENCE_DATA_PREPROCESS: 人工中止推理预处理 * MANUAL_STOP_TRAIN: 人工中止训练 * MANUAL_STOP_TRAINING_DATA_PREPROCESS: 人工中止训练预处理 * WAIT_ADMIN_CONFIRM: 等待管理员审核 * WAIT_COMPILE: 等待转编译 * COMPILING: 转编译中 * COMPILE_FAILED: 转编译失败 * WAIT_GENERATE_ACTION: 等待原子动作生成 * WAIT_ARRANGE: 等待编排 * ACTION_GENERATE_DATA_PROCESSING: 原子动作生成中 * MANUAL_STOP_ACTION_GENERATE_DATA_PROCESSING: 人工中止动作生成 * MANUAL_STOP_ACTION_GENERATE_ORI_PROCESSING: 人工中止动作编排 * ACTION_GENERATE_ORI_PROCESSING: 动作编排中 * ACTION_GENERATE_DATA_FAILED: 动作生成失败 * ACTION_GENERATE_ORI_FAILED: 生成动作编排资产失败 * ACTION_GENERATE_ORI_SUCCESS: 动作编排成功 * GENERATE_ACTION_PREPROCESS_FAILED: 生成动作编排原子动作失败 * WAIT_ADMIN_CALIBRATION: 等待管理员确认动作信息 - 待用户审核,仅NA白名单用户有该状态 * WAIT_USER_CONFIRM: 等待用户确认训练效果 - 用户驳回,仅NA白名单用户有该状态 * JOB_REJECT: 驳回任务 - 已完成 * JOB_SUCCESS: 训练任务完成(普通用户任务的完成状态,此时用户已经可以使用模型) * JOB_FINISH: 任务结束,是最终状态,不支持修改此状态(NA用户任务的完成状态,并且此状态表明模型效果已通过用户的验收) - 挂起,仅NA白名单用户有该状态 * JOB_PENDING: 挂起任务 + 任务的状态。 与MetaStudio Console上用户看到的状态映射关系如下: - 待提交 * WAIT_FILE_UPLOAD: 待上传文件 - 系统审核中 * AUTO_VERIFYING: 自动审核中 * MANUAL_VERIFYING: 人工审核中 - 系统审核未通过 * AUTO_VERIFY_FAILED: 自动审核失败 * MANUAL_VERIFY_FAILED: 人工审核失败 - 算法训练中 > 算法训练中的状态仅管理员需要处理,普通用户仅需要显示“算法训练中”即可。 * MANUAL_VERIFY_SUCCESS: 审核通过,等待预处理资源 * WAIT_TRAINING_DATA_PREPROCESS: 等待训练数据预处理 * TRAINING_DATA_PREPROCESSING: 训练数据预处理中 * TRAINING_DATA_PREPROCESS_FAILED: 训练数据预处理失败 * TRAINING_DATA_PREPROCESS_SUCCESS: 训练数据预处理完成,等待训练资源中 * TRAINING: 训练中 * TRAIN_FAILED: 训练失败 * TRAIN_SUCCESS: 训练完成,等待预处理资源 * INFERENCE_DATA_PREPROCESSING: 推理数据预处理中 * INFERENCE_DATA_PREPROCESS_FAILED: 推理数据预处理失败 * WAIT_MAIN_FILE_UPLOAD: 等待主文件上传 * MANUAL_STOP_INFERENCE_DATA_PREPROCESS: 人工中止推理预处理 * MANUAL_STOP_TRAIN: 人工中止训练 * MANUAL_STOP_TRAINING_DATA_PREPROCESS: 人工中止训练预处理 * WAIT_ADMIN_CONFIRM: 等待管理员审核 * WAIT_COMPILE: 等待转编译 * COMPILING: 转编译中 * COMPILE_FAILED: 转编译失败 * WAIT_GENERATE_ACTION: 等待原子动作生成 * WAIT_ARRANGE: 等待编排 * ACTION_GENERATE_DATA_PROCESSING: 原子动作生成中 * MANUAL_STOP_ACTION_GENERATE_DATA_PROCESSING: 人工中止动作生成 * MANUAL_STOP_ACTION_GENERATE_ORI_PROCESSING: 人工中止动作编排 * ACTION_GENERATE_ORI_PROCESSING: 动作编排中 * ACTION_GENERATE_DATA_FAILED: 动作生成失败 * ACTION_GENERATE_ORI_FAILED: 生成动作编排资产失败 * ACTION_GENERATE_ORI_SUCCESS: 动作编排成功 * GENERATE_ACTION_PREPROCESS_FAILED: 生成动作编排原子动作失败 * WAIT_ADMIN_CALIBRATION: 等待管理员确认动作信息 * WAIT_ASSET_SYNC: 等待资产同步 - 待用户审核,仅NA白名单用户有该状态 * WAIT_USER_CONFIRM: 等待用户确认训练效果 - 用户驳回,仅NA白名单用户有该状态 * JOB_REJECT: 驳回任务 - 已完成 * JOB_SUCCESS: 训练任务完成(普通用户任务的完成状态,此时用户已经可以使用模型) * JOB_FINISH: 任务结束,是最终状态,不支持修改此状态(NA用户任务的完成状态,并且此状态表明模型效果已通过用户的验收) - 挂起,仅NA白名单用户有该状态 * JOB_PENDING: 挂起任务 :param state: The state of this TrainingJobBasicInfo. :type state: str @@ -495,6 +502,28 @@ def is_flexus(self, is_flexus): """ self._is_flexus = is_flexus + @property + def is_only_human_model(self): + """Gets the is_only_human_model of this TrainingJobBasicInfo. + + 是否只训练形象模型,不训练声音模型。仅Flexus版本时有效,默认false。 + + :return: The is_only_human_model of this TrainingJobBasicInfo. + :rtype: bool + """ + return self._is_only_human_model + + @is_only_human_model.setter + def is_only_human_model(self, is_only_human_model): + """Sets the is_only_human_model of this TrainingJobBasicInfo. + + 是否只训练形象模型,不训练声音模型。仅Flexus版本时有效,默认false。 + + :param is_only_human_model: The is_only_human_model of this TrainingJobBasicInfo. + :type is_only_human_model: bool + """ + self._is_only_human_model = is_only_human_model + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/text_detection_items_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/training_video_mark_info.py similarity index 51% rename from huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/text_detection_items_req.py rename to huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/training_video_mark_info.py index 1d0b77cfa6..65aef43015 100644 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/text_detection_items_req.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/training_video_mark_info.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class TextDetectionItemsReq: +class TrainingVideoMarkInfo: """ Attributes: @@ -17,79 +17,80 @@ class TextDetectionItemsReq: sensitive_list = [] openapi_types = { - 'text': 'str', - 'type': 'str' + 'video_start_time': 'str', + 'video_end_time': 'str' } attribute_map = { - 'text': 'text', - 'type': 'type' + 'video_start_time': 'video_start_time', + 'video_end_time': 'video_end_time' } - def __init__(self, text=None, type=None): - """TextDetectionItemsReq + def __init__(self, video_start_time=None, video_end_time=None): + """TrainingVideoMarkInfo The model defined in huaweicloud sdk - :param text: 待检测文本,编码格式为“utf-8”,限定5000个字符以内,文本长度超过5000个字符时,只检测前5000个字符。 - :type text: str - :param type: 文本类型,默认为“content”,即正文内容,当前只支持“content”类型,未来会扩大支持类型范围。 - :type type: str + :param video_start_time: 训练视频起始时间。格式:“HH:MM:SS.mmm”。 + :type video_start_time: str + :param video_end_time: 训练视频结束时间。格式:“HH:MM:SS.mmm”。 + :type video_end_time: str """ - self._text = None - self._type = None + self._video_start_time = None + self._video_end_time = None self.discriminator = None - self.text = text - if type is not None: - self.type = type + if video_start_time is not None: + self.video_start_time = video_start_time + if video_end_time is not None: + self.video_end_time = video_end_time @property - def text(self): - """Gets the text of this TextDetectionItemsReq. + def video_start_time(self): + """Gets the video_start_time of this TrainingVideoMarkInfo. - 待检测文本,编码格式为“utf-8”,限定5000个字符以内,文本长度超过5000个字符时,只检测前5000个字符。 + 训练视频起始时间。格式:“HH:MM:SS.mmm”。 - :return: The text of this TextDetectionItemsReq. + :return: The video_start_time of this TrainingVideoMarkInfo. :rtype: str """ - return self._text + return self._video_start_time - @text.setter - def text(self, text): - """Sets the text of this TextDetectionItemsReq. + @video_start_time.setter + def video_start_time(self, video_start_time): + """Sets the video_start_time of this TrainingVideoMarkInfo. - 待检测文本,编码格式为“utf-8”,限定5000个字符以内,文本长度超过5000个字符时,只检测前5000个字符。 + 训练视频起始时间。格式:“HH:MM:SS.mmm”。 - :param text: The text of this TextDetectionItemsReq. - :type text: str + :param video_start_time: The video_start_time of this TrainingVideoMarkInfo. + :type video_start_time: str """ - self._text = text + self._video_start_time = video_start_time @property - def type(self): - """Gets the type of this TextDetectionItemsReq. + def video_end_time(self): + """Gets the video_end_time of this TrainingVideoMarkInfo. - 文本类型,默认为“content”,即正文内容,当前只支持“content”类型,未来会扩大支持类型范围。 + 训练视频结束时间。格式:“HH:MM:SS.mmm”。 - :return: The type of this TextDetectionItemsReq. + :return: The video_end_time of this TrainingVideoMarkInfo. :rtype: str """ - return self._type + return self._video_end_time - @type.setter - def type(self, type): - """Sets the type of this TextDetectionItemsReq. + @video_end_time.setter + def video_end_time(self, video_end_time): + """Sets the video_end_time of this TrainingVideoMarkInfo. - 文本类型,默认为“content”,即正文内容,当前只支持“content”类型,未来会扩大支持类型范围。 + 训练视频结束时间。格式:“HH:MM:SS.mmm”。 - :param type: The type of this TextDetectionItemsReq. - :type type: str + :param video_end_time: The video_end_time of this TrainingVideoMarkInfo. + :type video_end_time: str """ - self._type = type + self._video_end_time = video_end_time def to_dict(self): """Returns the model properties as a dict""" @@ -133,7 +134,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, TextDetectionItemsReq): + if not isinstance(other, TrainingVideoMarkInfo): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update2d_model_training_job_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update2d_model_training_job_req.py index b40b22f6f0..5b156e6851 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update2d_model_training_job_req.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update2d_model_training_job_req.py @@ -22,6 +22,7 @@ class Update2dModelTrainingJobReq: 'command_message': 'str', 'video_multipart_count': 'int', 'action_video_multipart_count': 'int', + 'beauty_level': 'int', 'is_background_replacement': 'bool', 'batch_name': 'str', 'tags': 'list[str]', @@ -36,6 +37,7 @@ class Update2dModelTrainingJobReq: 'command_message': 'command_message', 'video_multipart_count': 'video_multipart_count', 'action_video_multipart_count': 'action_video_multipart_count', + 'beauty_level': 'beauty_level', 'is_background_replacement': 'is_background_replacement', 'batch_name': 'batch_name', 'tags': 'tags', @@ -44,7 +46,7 @@ class Update2dModelTrainingJobReq: 'audio_source_type': 'audio_source_type' } - def __init__(self, name=None, contact=None, command_message=None, video_multipart_count=None, action_video_multipart_count=None, is_background_replacement=None, batch_name=None, tags=None, samples_basic_info=None, supported_service=None, audio_source_type=None): + def __init__(self, name=None, contact=None, command_message=None, video_multipart_count=None, action_video_multipart_count=None, beauty_level=None, is_background_replacement=None, batch_name=None, tags=None, samples_basic_info=None, supported_service=None, audio_source_type=None): """Update2dModelTrainingJobReq The model defined in huaweicloud sdk @@ -59,6 +61,8 @@ def __init__(self, name=None, contact=None, command_message=None, video_multipar :type video_multipart_count: int :param action_video_multipart_count: 动作视频上传分片数。 :type action_video_multipart_count: int + :param beauty_level: 美白等级。默认值0,不美白。 + :type beauty_level: int :param is_background_replacement: 分身数字人是否需要背景替换。需要背景替换的分身数字人训练视频需要绿幕拍摄。 :type is_background_replacement: bool :param batch_name: 分身数字人训练任务的批次名称。 @@ -80,6 +84,7 @@ def __init__(self, name=None, contact=None, command_message=None, video_multipar self._command_message = None self._video_multipart_count = None self._action_video_multipart_count = None + self._beauty_level = None self._is_background_replacement = None self._batch_name = None self._tags = None @@ -98,6 +103,8 @@ def __init__(self, name=None, contact=None, command_message=None, video_multipar self.video_multipart_count = video_multipart_count if action_video_multipart_count is not None: self.action_video_multipart_count = action_video_multipart_count + if beauty_level is not None: + self.beauty_level = beauty_level if is_background_replacement is not None: self.is_background_replacement = is_background_replacement if batch_name is not None: @@ -221,6 +228,28 @@ def action_video_multipart_count(self, action_video_multipart_count): """ self._action_video_multipart_count = action_video_multipart_count + @property + def beauty_level(self): + """Gets the beauty_level of this Update2dModelTrainingJobReq. + + 美白等级。默认值0,不美白。 + + :return: The beauty_level of this Update2dModelTrainingJobReq. + :rtype: int + """ + return self._beauty_level + + @beauty_level.setter + def beauty_level(self, beauty_level): + """Sets the beauty_level of this Update2dModelTrainingJobReq. + + 美白等级。默认值0,不美白。 + + :param beauty_level: The beauty_level of this Update2dModelTrainingJobReq. + :type beauty_level: int + """ + self._beauty_level = beauty_level + @property def is_background_replacement(self): """Gets the is_background_replacement of this Update2dModelTrainingJobReq. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update2d_model_training_job_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update2d_model_training_job_response.py index 4810ddebc6..62813a20eb 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update2d_model_training_job_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update2d_model_training_job_response.py @@ -26,6 +26,8 @@ class Update2dModelTrainingJobResponse(SdkResponse): 'id_card_image1_upload_url': 'str', 'id_card_image2_upload_url': 'str', 'grant_file_upload_url': 'str', + 'pre_beauty_image_upload_url': 'str', + 'post_beauty_image_upload_url': 'str', 'x_request_id': 'str' } @@ -38,30 +40,36 @@ class Update2dModelTrainingJobResponse(SdkResponse): 'id_card_image1_upload_url': 'id_card_image1_upload_url', 'id_card_image2_upload_url': 'id_card_image2_upload_url', 'grant_file_upload_url': 'grant_file_upload_url', + 'pre_beauty_image_upload_url': 'pre_beauty_image_upload_url', + 'post_beauty_image_upload_url': 'post_beauty_image_upload_url', 'x_request_id': 'X-Request-Id' } - def __init__(self, job_id=None, training_video_upload_url=None, action_video_upload_url=None, audio_upload_url=None, cover_upload_url=None, id_card_image1_upload_url=None, id_card_image2_upload_url=None, grant_file_upload_url=None, x_request_id=None): + def __init__(self, job_id=None, training_video_upload_url=None, action_video_upload_url=None, audio_upload_url=None, cover_upload_url=None, id_card_image1_upload_url=None, id_card_image2_upload_url=None, grant_file_upload_url=None, pre_beauty_image_upload_url=None, post_beauty_image_upload_url=None, x_request_id=None): """Update2dModelTrainingJobResponse The model defined in huaweicloud sdk :param job_id: 任务ID。 :type job_id: str - :param training_video_upload_url: 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 + :param training_video_upload_url: 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :type training_video_upload_url: list[str] - :param action_video_upload_url: 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 + :param action_video_upload_url: 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :type action_video_upload_url: list[str] - :param audio_upload_url: 音频数据训练上传URL。该url在文件上传成功后失效,只能上传一次 + :param audio_upload_url: 音频数据训练上传URL。该url在文件上传成功后失效,只能上传一次 > 通过该地址上传时,需设置content-type为application/zip。 :type audio_upload_url: str - :param cover_upload_url: 模型封面上传URL。该URL在文件上传成功后失效,只能上传一次。 + :param cover_upload_url: 模型封面上传URL。该URL在文件上传成功后失效,只能上传一次。 > 通过该地址上传时,需设置content-type为application/octet-stream :type cover_upload_url: str - :param id_card_image1_upload_url: 身份证正面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 + :param id_card_image1_upload_url: 身份证正面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :type id_card_image1_upload_url: str - :param id_card_image2_upload_url: 身份证反面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 + :param id_card_image2_upload_url: 身份证反面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :type id_card_image2_upload_url: str - :param grant_file_upload_url: 授权书上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 + :param grant_file_upload_url: 授权书上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :type grant_file_upload_url: str + :param pre_beauty_image_upload_url: 美白前图片上传url。 > 通过该地址上传时,需设置content-type为application/octet-stream + :type pre_beauty_image_upload_url: str + :param post_beauty_image_upload_url: 美白后图片上传url。 > 通过该地址上传时,需设置content-type为application/octet-stream + :type post_beauty_image_upload_url: str :param x_request_id: :type x_request_id: str """ @@ -76,6 +84,8 @@ def __init__(self, job_id=None, training_video_upload_url=None, action_video_upl self._id_card_image1_upload_url = None self._id_card_image2_upload_url = None self._grant_file_upload_url = None + self._pre_beauty_image_upload_url = None + self._post_beauty_image_upload_url = None self._x_request_id = None self.discriminator = None @@ -95,6 +105,10 @@ def __init__(self, job_id=None, training_video_upload_url=None, action_video_upl self.id_card_image2_upload_url = id_card_image2_upload_url if grant_file_upload_url is not None: self.grant_file_upload_url = grant_file_upload_url + if pre_beauty_image_upload_url is not None: + self.pre_beauty_image_upload_url = pre_beauty_image_upload_url + if post_beauty_image_upload_url is not None: + self.post_beauty_image_upload_url = post_beauty_image_upload_url if x_request_id is not None: self.x_request_id = x_request_id @@ -124,7 +138,7 @@ def job_id(self, job_id): def training_video_upload_url(self): """Gets the training_video_upload_url of this Update2dModelTrainingJobResponse. - 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 + 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :return: The training_video_upload_url of this Update2dModelTrainingJobResponse. :rtype: list[str] @@ -135,7 +149,7 @@ def training_video_upload_url(self): def training_video_upload_url(self, training_video_upload_url): """Sets the training_video_upload_url of this Update2dModelTrainingJobResponse. - 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 + 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :param training_video_upload_url: The training_video_upload_url of this Update2dModelTrainingJobResponse. :type training_video_upload_url: list[str] @@ -146,7 +160,7 @@ def training_video_upload_url(self, training_video_upload_url): def action_video_upload_url(self): """Gets the action_video_upload_url of this Update2dModelTrainingJobResponse. - 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 + 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :return: The action_video_upload_url of this Update2dModelTrainingJobResponse. :rtype: list[str] @@ -157,7 +171,7 @@ def action_video_upload_url(self): def action_video_upload_url(self, action_video_upload_url): """Sets the action_video_upload_url of this Update2dModelTrainingJobResponse. - 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 + 分身数字人训练视频上传URL。该url在文件上传成功后失效,只能上传一次。注意:视频必须是1080p或者4K分辨率(横、竖屏皆可)的mp4格式,视频长度须大于等于3分钟且小于等于10分钟,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :param action_video_upload_url: The action_video_upload_url of this Update2dModelTrainingJobResponse. :type action_video_upload_url: list[str] @@ -168,7 +182,7 @@ def action_video_upload_url(self, action_video_upload_url): def audio_upload_url(self): """Gets the audio_upload_url of this Update2dModelTrainingJobResponse. - 音频数据训练上传URL。该url在文件上传成功后失效,只能上传一次 + 音频数据训练上传URL。该url在文件上传成功后失效,只能上传一次 > 通过该地址上传时,需设置content-type为application/zip。 :return: The audio_upload_url of this Update2dModelTrainingJobResponse. :rtype: str @@ -179,7 +193,7 @@ def audio_upload_url(self): def audio_upload_url(self, audio_upload_url): """Sets the audio_upload_url of this Update2dModelTrainingJobResponse. - 音频数据训练上传URL。该url在文件上传成功后失效,只能上传一次 + 音频数据训练上传URL。该url在文件上传成功后失效,只能上传一次 > 通过该地址上传时,需设置content-type为application/zip。 :param audio_upload_url: The audio_upload_url of this Update2dModelTrainingJobResponse. :type audio_upload_url: str @@ -190,7 +204,7 @@ def audio_upload_url(self, audio_upload_url): def cover_upload_url(self): """Gets the cover_upload_url of this Update2dModelTrainingJobResponse. - 模型封面上传URL。该URL在文件上传成功后失效,只能上传一次。 + 模型封面上传URL。该URL在文件上传成功后失效,只能上传一次。 > 通过该地址上传时,需设置content-type为application/octet-stream :return: The cover_upload_url of this Update2dModelTrainingJobResponse. :rtype: str @@ -201,7 +215,7 @@ def cover_upload_url(self): def cover_upload_url(self, cover_upload_url): """Sets the cover_upload_url of this Update2dModelTrainingJobResponse. - 模型封面上传URL。该URL在文件上传成功后失效,只能上传一次。 + 模型封面上传URL。该URL在文件上传成功后失效,只能上传一次。 > 通过该地址上传时,需设置content-type为application/octet-stream :param cover_upload_url: The cover_upload_url of this Update2dModelTrainingJobResponse. :type cover_upload_url: str @@ -212,7 +226,7 @@ def cover_upload_url(self, cover_upload_url): def id_card_image1_upload_url(self): """Gets the id_card_image1_upload_url of this Update2dModelTrainingJobResponse. - 身份证正面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 + 身份证正面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :return: The id_card_image1_upload_url of this Update2dModelTrainingJobResponse. :rtype: str @@ -223,7 +237,7 @@ def id_card_image1_upload_url(self): def id_card_image1_upload_url(self, id_card_image1_upload_url): """Sets the id_card_image1_upload_url of this Update2dModelTrainingJobResponse. - 身份证正面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 + 身份证正面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :param id_card_image1_upload_url: The id_card_image1_upload_url of this Update2dModelTrainingJobResponse. :type id_card_image1_upload_url: str @@ -234,7 +248,7 @@ def id_card_image1_upload_url(self, id_card_image1_upload_url): def id_card_image2_upload_url(self): """Gets the id_card_image2_upload_url of this Update2dModelTrainingJobResponse. - 身份证反面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 + 身份证反面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :return: The id_card_image2_upload_url of this Update2dModelTrainingJobResponse. :rtype: str @@ -245,7 +259,7 @@ def id_card_image2_upload_url(self): def id_card_image2_upload_url(self, id_card_image2_upload_url): """Sets the id_card_image2_upload_url of this Update2dModelTrainingJobResponse. - 身份证反面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 + 身份证反面照片上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :param id_card_image2_upload_url: The id_card_image2_upload_url of this Update2dModelTrainingJobResponse. :type id_card_image2_upload_url: str @@ -256,7 +270,7 @@ def id_card_image2_upload_url(self, id_card_image2_upload_url): def grant_file_upload_url(self): """Gets the grant_file_upload_url of this Update2dModelTrainingJobResponse. - 授权书上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 + 授权书上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :return: The grant_file_upload_url of this Update2dModelTrainingJobResponse. :rtype: str @@ -267,13 +281,57 @@ def grant_file_upload_url(self): def grant_file_upload_url(self, grant_file_upload_url): """Sets the grant_file_upload_url of this Update2dModelTrainingJobResponse. - 授权书上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 + 授权书上传URL。该URL在文件上传成功后失效,只能上传一次。注意:非NA用户必须上传,否则审核会不通过。 > 通过该地址上传时,需设置content-type为application/octet-stream :param grant_file_upload_url: The grant_file_upload_url of this Update2dModelTrainingJobResponse. :type grant_file_upload_url: str """ self._grant_file_upload_url = grant_file_upload_url + @property + def pre_beauty_image_upload_url(self): + """Gets the pre_beauty_image_upload_url of this Update2dModelTrainingJobResponse. + + 美白前图片上传url。 > 通过该地址上传时,需设置content-type为application/octet-stream + + :return: The pre_beauty_image_upload_url of this Update2dModelTrainingJobResponse. + :rtype: str + """ + return self._pre_beauty_image_upload_url + + @pre_beauty_image_upload_url.setter + def pre_beauty_image_upload_url(self, pre_beauty_image_upload_url): + """Sets the pre_beauty_image_upload_url of this Update2dModelTrainingJobResponse. + + 美白前图片上传url。 > 通过该地址上传时,需设置content-type为application/octet-stream + + :param pre_beauty_image_upload_url: The pre_beauty_image_upload_url of this Update2dModelTrainingJobResponse. + :type pre_beauty_image_upload_url: str + """ + self._pre_beauty_image_upload_url = pre_beauty_image_upload_url + + @property + def post_beauty_image_upload_url(self): + """Gets the post_beauty_image_upload_url of this Update2dModelTrainingJobResponse. + + 美白后图片上传url。 > 通过该地址上传时,需设置content-type为application/octet-stream + + :return: The post_beauty_image_upload_url of this Update2dModelTrainingJobResponse. + :rtype: str + """ + return self._post_beauty_image_upload_url + + @post_beauty_image_upload_url.setter + def post_beauty_image_upload_url(self, post_beauty_image_upload_url): + """Sets the post_beauty_image_upload_url of this Update2dModelTrainingJobResponse. + + 美白后图片上传url。 > 通过该地址上传时,需设置content-type为application/octet-stream + + :param post_beauty_image_upload_url: The post_beauty_image_upload_url of this Update2dModelTrainingJobResponse. + :type post_beauty_image_upload_url: str + """ + self._post_beauty_image_upload_url = post_beauty_image_upload_url + @property def x_request_id(self): """Gets the x_request_id of this Update2dModelTrainingJobResponse. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/validate_robot_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/validate_robot_req.py index 2009559eed..90a383e990 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/validate_robot_req.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/validate_robot_req.py @@ -63,8 +63,7 @@ def __init__(self, app_type=None, huawei_ei_cbs=None, iflytek_aiui_config=None, self._mobvoi_config = None self.discriminator = None - if app_type is not None: - self.app_type = app_type + self.app_type = app_type if huawei_ei_cbs is not None: self.huawei_ei_cbs = huawei_ei_cbs if iflytek_aiui_config is not None: diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/voice_properties.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/voice_properties.py index 41b95ec2dc..3ab3c7f4ce 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/voice_properties.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/voice_properties.py @@ -33,11 +33,11 @@ def __init__(self, job_tag=None, sex=None, language=None): The model defined in huaweicloud sdk - :param job_tag: 任务标签。 * ECOMMERCE: 电商 * NEWS: 新闻 * MARKETING: 营销 + :param job_tag: 任务标签,为Flexus版声音的配置。 * ECOMMERCE: 电商 * NEWS: 新闻 * MARKETING: 营销 :type job_tag: str - :param sex: 语音性别,是男性声音还是女性声音。 * FEMALE: 女性 * MALE: 男性 + :param sex: 语音性别,是男性声音还是女性声音,为Flexus版声音的配置。 * FEMALE: 女性 * MALE: 男性 :type sex: str - :param language: 训练语言,当前仅支持中文。 * CN: 中文 * EN: 英文 + :param language: 训练语言,当前仅支持中文,为Flexus版声音的配置。 * CN: 中文 * EN: 英文 :type language: str """ @@ -56,7 +56,7 @@ def __init__(self, job_tag=None, sex=None, language=None): def job_tag(self): """Gets the job_tag of this VoiceProperties. - 任务标签。 * ECOMMERCE: 电商 * NEWS: 新闻 * MARKETING: 营销 + 任务标签,为Flexus版声音的配置。 * ECOMMERCE: 电商 * NEWS: 新闻 * MARKETING: 营销 :return: The job_tag of this VoiceProperties. :rtype: str @@ -67,7 +67,7 @@ def job_tag(self): def job_tag(self, job_tag): """Sets the job_tag of this VoiceProperties. - 任务标签。 * ECOMMERCE: 电商 * NEWS: 新闻 * MARKETING: 营销 + 任务标签,为Flexus版声音的配置。 * ECOMMERCE: 电商 * NEWS: 新闻 * MARKETING: 营销 :param job_tag: The job_tag of this VoiceProperties. :type job_tag: str @@ -78,7 +78,7 @@ def job_tag(self, job_tag): def sex(self): """Gets the sex of this VoiceProperties. - 语音性别,是男性声音还是女性声音。 * FEMALE: 女性 * MALE: 男性 + 语音性别,是男性声音还是女性声音,为Flexus版声音的配置。 * FEMALE: 女性 * MALE: 男性 :return: The sex of this VoiceProperties. :rtype: str @@ -89,7 +89,7 @@ def sex(self): def sex(self, sex): """Sets the sex of this VoiceProperties. - 语音性别,是男性声音还是女性声音。 * FEMALE: 女性 * MALE: 男性 + 语音性别,是男性声音还是女性声音,为Flexus版声音的配置。 * FEMALE: 女性 * MALE: 男性 :param sex: The sex of this VoiceProperties. :type sex: str @@ -100,7 +100,7 @@ def sex(self, sex): def language(self): """Gets the language of this VoiceProperties. - 训练语言,当前仅支持中文。 * CN: 中文 * EN: 英文 + 训练语言,当前仅支持中文,为Flexus版声音的配置。 * CN: 中文 * EN: 英文 :return: The language of this VoiceProperties. :rtype: str @@ -111,7 +111,7 @@ def language(self): def language(self, language): """Sets the language of this VoiceProperties. - 训练语言,当前仅支持中文。 * CN: 中文 * EN: 英文 + 训练语言,当前仅支持中文,为Flexus版声音的配置。 * CN: 中文 * EN: 英文 :param language: The language of this VoiceProperties. :type language: str diff --git a/huaweicloud-sdk-metastudio/requirements.txt b/huaweicloud-sdk-metastudio/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-metastudio/requirements.txt +++ b/huaweicloud-sdk-metastudio/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-metastudio/setup.py b/huaweicloud-sdk-metastudio/setup.py index 84fead2662..0888e3890f 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/__init__.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/__init__.py deleted file mode 100644 index fbf27ca83c..0000000000 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/__init__.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -from __future__ import absolute_import - -from huaweicloudsdkmoderation.v2.moderation_client import ModerationClient -from huaweicloudsdkmoderation.v2.moderation_async_client import ModerationAsyncClient - -from huaweicloudsdkmoderation.v2.model.check_result_items_body import CheckResultItemsBody -from huaweicloudsdkmoderation.v2.model.check_result_result_body import CheckResultResultBody -from huaweicloudsdkmoderation.v2.model.check_task_jobs_items_body import CheckTaskJobsItemsBody -from huaweicloudsdkmoderation.v2.model.image_batch_moderation_req import ImageBatchModerationReq -from huaweicloudsdkmoderation.v2.model.image_batch_moderation_result_body import ImageBatchModerationResultBody -from huaweicloudsdkmoderation.v2.model.image_detection_req import ImageDetectionReq -from huaweicloudsdkmoderation.v2.model.image_detection_result_ad_detail import ImageDetectionResultAdDetail -from huaweicloudsdkmoderation.v2.model.image_detection_result_body import ImageDetectionResultBody -from huaweicloudsdkmoderation.v2.model.image_detection_result_detail import ImageDetectionResultDetail -from huaweicloudsdkmoderation.v2.model.image_detection_result_detail_face_detail import ImageDetectionResultDetailFaceDetail -from huaweicloudsdkmoderation.v2.model.image_detection_result_detail_politics import ImageDetectionResultDetailPolitics -from huaweicloudsdkmoderation.v2.model.image_detection_result_simple_detail import ImageDetectionResultSimpleDetail -from huaweicloudsdkmoderation.v2.model.porn_moderation_result_detail import PornModerationResultDetail -from huaweicloudsdkmoderation.v2.model.run_check_result_request import RunCheckResultRequest -from huaweicloudsdkmoderation.v2.model.run_check_result_response import RunCheckResultResponse -from huaweicloudsdkmoderation.v2.model.run_check_task_jobs_request import RunCheckTaskJobsRequest -from huaweicloudsdkmoderation.v2.model.run_check_task_jobs_response import RunCheckTaskJobsResponse -from huaweicloudsdkmoderation.v2.model.run_image_batch_moderation_request import RunImageBatchModerationRequest -from huaweicloudsdkmoderation.v2.model.run_image_batch_moderation_response import RunImageBatchModerationResponse -from huaweicloudsdkmoderation.v2.model.run_image_moderation_request import RunImageModerationRequest -from huaweicloudsdkmoderation.v2.model.run_image_moderation_response import RunImageModerationResponse -from huaweicloudsdkmoderation.v2.model.run_moderation_audio_request import RunModerationAudioRequest -from huaweicloudsdkmoderation.v2.model.run_moderation_audio_request_body import RunModerationAudioRequestBody -from huaweicloudsdkmoderation.v2.model.run_moderation_audio_request_body_config import RunModerationAudioRequestBodyConfig -from huaweicloudsdkmoderation.v2.model.run_moderation_audio_response import RunModerationAudioResponse -from huaweicloudsdkmoderation.v2.model.run_moderation_audio_response_body_result import RunModerationAudioResponseBodyResult -from huaweicloudsdkmoderation.v2.model.run_moderation_audio_response_body_result_detail import RunModerationAudioResponseBodyResultDetail -from huaweicloudsdkmoderation.v2.model.run_moderation_audio_response_body_result_detail_audio import RunModerationAudioResponseBodyResultDetailAudio -from huaweicloudsdkmoderation.v2.model.run_task_sumbit_request import RunTaskSumbitRequest -from huaweicloudsdkmoderation.v2.model.run_task_sumbit_response import RunTaskSumbitResponse -from huaweicloudsdkmoderation.v2.model.run_text_moderation_request import RunTextModerationRequest -from huaweicloudsdkmoderation.v2.model.run_text_moderation_response import RunTextModerationResponse -from huaweicloudsdkmoderation.v2.model.task_sumbit_req import TaskSumbitReq -from huaweicloudsdkmoderation.v2.model.task_sumbit_response_result import TaskSumbitResponseResult -from huaweicloudsdkmoderation.v2.model.text_detection_items_req import TextDetectionItemsReq -from huaweicloudsdkmoderation.v2.model.text_detection_req import TextDetectionReq -from huaweicloudsdkmoderation.v2.model.text_detection_response_result import TextDetectionResponseResult - diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/__init__.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/__init__.py deleted file mode 100644 index 5388a2d3fe..0000000000 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/__init__.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -from __future__ import absolute_import - -# import models into model package -from huaweicloudsdkmoderation.v2.model.check_result_items_body import CheckResultItemsBody -from huaweicloudsdkmoderation.v2.model.check_result_result_body import CheckResultResultBody -from huaweicloudsdkmoderation.v2.model.check_task_jobs_items_body import CheckTaskJobsItemsBody -from huaweicloudsdkmoderation.v2.model.image_batch_moderation_req import ImageBatchModerationReq -from huaweicloudsdkmoderation.v2.model.image_batch_moderation_result_body import ImageBatchModerationResultBody -from huaweicloudsdkmoderation.v2.model.image_detection_req import ImageDetectionReq -from huaweicloudsdkmoderation.v2.model.image_detection_result_ad_detail import ImageDetectionResultAdDetail -from huaweicloudsdkmoderation.v2.model.image_detection_result_body import ImageDetectionResultBody -from huaweicloudsdkmoderation.v2.model.image_detection_result_detail import ImageDetectionResultDetail -from huaweicloudsdkmoderation.v2.model.image_detection_result_detail_face_detail import ImageDetectionResultDetailFaceDetail -from huaweicloudsdkmoderation.v2.model.image_detection_result_detail_politics import ImageDetectionResultDetailPolitics -from huaweicloudsdkmoderation.v2.model.image_detection_result_simple_detail import ImageDetectionResultSimpleDetail -from huaweicloudsdkmoderation.v2.model.porn_moderation_result_detail import PornModerationResultDetail -from huaweicloudsdkmoderation.v2.model.run_check_result_request import RunCheckResultRequest -from huaweicloudsdkmoderation.v2.model.run_check_result_response import RunCheckResultResponse -from huaweicloudsdkmoderation.v2.model.run_check_task_jobs_request import RunCheckTaskJobsRequest -from huaweicloudsdkmoderation.v2.model.run_check_task_jobs_response import RunCheckTaskJobsResponse -from huaweicloudsdkmoderation.v2.model.run_image_batch_moderation_request import RunImageBatchModerationRequest -from huaweicloudsdkmoderation.v2.model.run_image_batch_moderation_response import RunImageBatchModerationResponse -from huaweicloudsdkmoderation.v2.model.run_image_moderation_request import RunImageModerationRequest -from huaweicloudsdkmoderation.v2.model.run_image_moderation_response import RunImageModerationResponse -from huaweicloudsdkmoderation.v2.model.run_moderation_audio_request import RunModerationAudioRequest -from huaweicloudsdkmoderation.v2.model.run_moderation_audio_request_body import RunModerationAudioRequestBody -from huaweicloudsdkmoderation.v2.model.run_moderation_audio_request_body_config import RunModerationAudioRequestBodyConfig -from huaweicloudsdkmoderation.v2.model.run_moderation_audio_response import RunModerationAudioResponse -from huaweicloudsdkmoderation.v2.model.run_moderation_audio_response_body_result import RunModerationAudioResponseBodyResult -from huaweicloudsdkmoderation.v2.model.run_moderation_audio_response_body_result_detail import RunModerationAudioResponseBodyResultDetail -from huaweicloudsdkmoderation.v2.model.run_moderation_audio_response_body_result_detail_audio import RunModerationAudioResponseBodyResultDetailAudio -from huaweicloudsdkmoderation.v2.model.run_task_sumbit_request import RunTaskSumbitRequest -from huaweicloudsdkmoderation.v2.model.run_task_sumbit_response import RunTaskSumbitResponse -from huaweicloudsdkmoderation.v2.model.run_text_moderation_request import RunTextModerationRequest -from huaweicloudsdkmoderation.v2.model.run_text_moderation_response import RunTextModerationResponse -from huaweicloudsdkmoderation.v2.model.task_sumbit_req import TaskSumbitReq -from huaweicloudsdkmoderation.v2.model.task_sumbit_response_result import TaskSumbitResponseResult -from huaweicloudsdkmoderation.v2.model.text_detection_items_req import TextDetectionItemsReq -from huaweicloudsdkmoderation.v2.model.text_detection_req import TextDetectionReq -from huaweicloudsdkmoderation.v2.model.text_detection_response_result import TextDetectionResponseResult diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/check_result_items_body.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/check_result_items_body.py deleted file mode 100644 index ab93af1d08..0000000000 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/check_result_items_body.py +++ /dev/null @@ -1,285 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class CheckResultItemsBody: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'url': 'str', - 'suggestion': 'str', - 'detail': 'ImageDetectionResultDetail', - 'category_suggestions': 'dict(str, str)', - 'ocr_text': 'str', - 'error_code': 'str', - 'error_msg': 'str' - } - - attribute_map = { - 'url': 'url', - 'suggestion': 'suggestion', - 'detail': 'detail', - 'category_suggestions': 'category_suggestions', - 'ocr_text': 'ocr_text', - 'error_code': 'error_code', - 'error_msg': 'error_msg' - } - - def __init__(self, url=None, suggestion=None, detail=None, category_suggestions=None, ocr_text=None, error_code=None, error_msg=None): - """CheckResultItemsBody - - The model defined in huaweicloud sdk - - :param url: 图片的URL路径。 - :type url: str - :param suggestion: 检测结果是否通过。 - block:包含敏感信息,不通过 - pass:不包含敏感信息,通过 - review:需要人工复检 > 当同时检测多个场景时,suggestion的值以最可能包含敏感信息的场景为准。即任一场景出现了block则总的suggestion为block,所有场景都pass时suggestion为pass,这两种情况之外则一定有场景需要review,此时suggestion为review。 - :type suggestion: str - :param detail: - :type detail: :class:`huaweicloudsdkmoderation.v2.ImageDetectionResultDetail` - :param category_suggestions: 具体每个场景的检测结果。 block:包含敏感信息,不通过 pass:不包含敏感信息,通过 review:需要人工复检 - :type category_suggestions: dict(str, str) - :param ocr_text: ocr识别结果。 - :type ocr_text: str - :param error_code: 图像审核失败时错误码 - :type error_code: str - :param error_msg: 图像审核失败时错误信息 - :type error_msg: str - """ - - - - self._url = None - self._suggestion = None - self._detail = None - self._category_suggestions = None - self._ocr_text = None - self._error_code = None - self._error_msg = None - self.discriminator = None - - if url is not None: - self.url = url - if suggestion is not None: - self.suggestion = suggestion - if detail is not None: - self.detail = detail - if category_suggestions is not None: - self.category_suggestions = category_suggestions - if ocr_text is not None: - self.ocr_text = ocr_text - if error_code is not None: - self.error_code = error_code - if error_msg is not None: - self.error_msg = error_msg - - @property - def url(self): - """Gets the url of this CheckResultItemsBody. - - 图片的URL路径。 - - :return: The url of this CheckResultItemsBody. - :rtype: str - """ - return self._url - - @url.setter - def url(self, url): - """Sets the url of this CheckResultItemsBody. - - 图片的URL路径。 - - :param url: The url of this CheckResultItemsBody. - :type url: str - """ - self._url = url - - @property - def suggestion(self): - """Gets the suggestion of this CheckResultItemsBody. - - 检测结果是否通过。 - block:包含敏感信息,不通过 - pass:不包含敏感信息,通过 - review:需要人工复检 > 当同时检测多个场景时,suggestion的值以最可能包含敏感信息的场景为准。即任一场景出现了block则总的suggestion为block,所有场景都pass时suggestion为pass,这两种情况之外则一定有场景需要review,此时suggestion为review。 - - :return: The suggestion of this CheckResultItemsBody. - :rtype: str - """ - return self._suggestion - - @suggestion.setter - def suggestion(self, suggestion): - """Sets the suggestion of this CheckResultItemsBody. - - 检测结果是否通过。 - block:包含敏感信息,不通过 - pass:不包含敏感信息,通过 - review:需要人工复检 > 当同时检测多个场景时,suggestion的值以最可能包含敏感信息的场景为准。即任一场景出现了block则总的suggestion为block,所有场景都pass时suggestion为pass,这两种情况之外则一定有场景需要review,此时suggestion为review。 - - :param suggestion: The suggestion of this CheckResultItemsBody. - :type suggestion: str - """ - self._suggestion = suggestion - - @property - def detail(self): - """Gets the detail of this CheckResultItemsBody. - - :return: The detail of this CheckResultItemsBody. - :rtype: :class:`huaweicloudsdkmoderation.v2.ImageDetectionResultDetail` - """ - return self._detail - - @detail.setter - def detail(self, detail): - """Sets the detail of this CheckResultItemsBody. - - :param detail: The detail of this CheckResultItemsBody. - :type detail: :class:`huaweicloudsdkmoderation.v2.ImageDetectionResultDetail` - """ - self._detail = detail - - @property - def category_suggestions(self): - """Gets the category_suggestions of this CheckResultItemsBody. - - 具体每个场景的检测结果。 block:包含敏感信息,不通过 pass:不包含敏感信息,通过 review:需要人工复检 - - :return: The category_suggestions of this CheckResultItemsBody. - :rtype: dict(str, str) - """ - return self._category_suggestions - - @category_suggestions.setter - def category_suggestions(self, category_suggestions): - """Sets the category_suggestions of this CheckResultItemsBody. - - 具体每个场景的检测结果。 block:包含敏感信息,不通过 pass:不包含敏感信息,通过 review:需要人工复检 - - :param category_suggestions: The category_suggestions of this CheckResultItemsBody. - :type category_suggestions: dict(str, str) - """ - self._category_suggestions = category_suggestions - - @property - def ocr_text(self): - """Gets the ocr_text of this CheckResultItemsBody. - - ocr识别结果。 - - :return: The ocr_text of this CheckResultItemsBody. - :rtype: str - """ - return self._ocr_text - - @ocr_text.setter - def ocr_text(self, ocr_text): - """Sets the ocr_text of this CheckResultItemsBody. - - ocr识别结果。 - - :param ocr_text: The ocr_text of this CheckResultItemsBody. - :type ocr_text: str - """ - self._ocr_text = ocr_text - - @property - def error_code(self): - """Gets the error_code of this CheckResultItemsBody. - - 图像审核失败时错误码 - - :return: The error_code of this CheckResultItemsBody. - :rtype: str - """ - return self._error_code - - @error_code.setter - def error_code(self, error_code): - """Sets the error_code of this CheckResultItemsBody. - - 图像审核失败时错误码 - - :param error_code: The error_code of this CheckResultItemsBody. - :type error_code: str - """ - self._error_code = error_code - - @property - def error_msg(self): - """Gets the error_msg of this CheckResultItemsBody. - - 图像审核失败时错误信息 - - :return: The error_msg of this CheckResultItemsBody. - :rtype: str - """ - return self._error_msg - - @error_msg.setter - def error_msg(self, error_msg): - """Sets the error_msg of this CheckResultItemsBody. - - 图像审核失败时错误信息 - - :param error_msg: The error_msg of this CheckResultItemsBody. - :type error_msg: str - """ - self._error_msg = error_msg - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CheckResultItemsBody): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/check_result_result_body.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/check_result_result_body.py deleted file mode 100644 index cd43ded309..0000000000 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/check_result_result_body.py +++ /dev/null @@ -1,231 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class CheckResultResultBody: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the 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', - 'status': 'str', - 'create_time': 'str', - 'update_time': 'str', - 'items': 'list[CheckResultItemsBody]' - } - - attribute_map = { - 'job_id': 'job_id', - 'status': 'status', - 'create_time': 'create_time', - 'update_time': 'update_time', - 'items': 'items' - } - - def __init__(self, job_id=None, status=None, create_time=None, update_time=None, items=None): - """CheckResultResultBody - - The model defined in huaweicloud sdk - - :param job_id: 任务标识。 - :type job_id: str - :param status: 任务状态。 created:已创建 running:正在处理 finish:已完成 failed:处理失败 - :type status: str - :param create_time: 任务创建的时间。例如:2018-01-02T15:03:04Z - :type create_time: str - :param update_time: 任务最近更新的时间。例如:2018-01-02T15:03:04Z - :type update_time: str - :param items: 图片内容检测的结果列表。 - :type items: list[:class:`huaweicloudsdkmoderation.v2.CheckResultItemsBody`] - """ - - - - self._job_id = None - self._status = None - self._create_time = None - self._update_time = None - self._items = None - self.discriminator = None - - if job_id is not None: - self.job_id = job_id - if status is not None: - self.status = status - if create_time is not None: - self.create_time = create_time - if update_time is not None: - self.update_time = update_time - if items is not None: - self.items = items - - @property - def job_id(self): - """Gets the job_id of this CheckResultResultBody. - - 任务标识。 - - :return: The job_id of this CheckResultResultBody. - :rtype: str - """ - return self._job_id - - @job_id.setter - def job_id(self, job_id): - """Sets the job_id of this CheckResultResultBody. - - 任务标识。 - - :param job_id: The job_id of this CheckResultResultBody. - :type job_id: str - """ - self._job_id = job_id - - @property - def status(self): - """Gets the status of this CheckResultResultBody. - - 任务状态。 created:已创建 running:正在处理 finish:已完成 failed:处理失败 - - :return: The status of this CheckResultResultBody. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this CheckResultResultBody. - - 任务状态。 created:已创建 running:正在处理 finish:已完成 failed:处理失败 - - :param status: The status of this CheckResultResultBody. - :type status: str - """ - self._status = status - - @property - def create_time(self): - """Gets the create_time of this CheckResultResultBody. - - 任务创建的时间。例如:2018-01-02T15:03:04Z - - :return: The create_time of this CheckResultResultBody. - :rtype: str - """ - return self._create_time - - @create_time.setter - def create_time(self, create_time): - """Sets the create_time of this CheckResultResultBody. - - 任务创建的时间。例如:2018-01-02T15:03:04Z - - :param create_time: The create_time of this CheckResultResultBody. - :type create_time: str - """ - self._create_time = create_time - - @property - def update_time(self): - """Gets the update_time of this CheckResultResultBody. - - 任务最近更新的时间。例如:2018-01-02T15:03:04Z - - :return: The update_time of this CheckResultResultBody. - :rtype: str - """ - return self._update_time - - @update_time.setter - def update_time(self, update_time): - """Sets the update_time of this CheckResultResultBody. - - 任务最近更新的时间。例如:2018-01-02T15:03:04Z - - :param update_time: The update_time of this CheckResultResultBody. - :type update_time: str - """ - self._update_time = update_time - - @property - def items(self): - """Gets the items of this CheckResultResultBody. - - 图片内容检测的结果列表。 - - :return: The items of this CheckResultResultBody. - :rtype: list[:class:`huaweicloudsdkmoderation.v2.CheckResultItemsBody`] - """ - return self._items - - @items.setter - def items(self, items): - """Sets the items of this CheckResultResultBody. - - 图片内容检测的结果列表。 - - :param items: The items of this CheckResultResultBody. - :type items: list[:class:`huaweicloudsdkmoderation.v2.CheckResultItemsBody`] - """ - self._items = items - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CheckResultResultBody): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/check_task_jobs_items_body.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/check_task_jobs_items_body.py deleted file mode 100644 index 1bf85aecc5..0000000000 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/check_task_jobs_items_body.py +++ /dev/null @@ -1,202 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class CheckTaskJobsItemsBody: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the 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', - 'status': 'str', - 'create_time': 'str', - 'update_time': 'str' - } - - attribute_map = { - 'job_id': 'job_id', - 'status': 'status', - 'create_time': 'create_time', - 'update_time': 'update_time' - } - - def __init__(self, job_id=None, status=None, create_time=None, update_time=None): - """CheckTaskJobsItemsBody - - The model defined in huaweicloud sdk - - :param job_id: 任务标识。 - :type job_id: str - :param status: 任务状态如下: - created 已创建 - running 正在处理 - finish 已完成 - failed 处理失败 - :type status: str - :param create_time: 任务创建的时间。例如:2018-01-02T15:03:04Z - :type create_time: str - :param update_time: 任务最近更新的时间。例如:2018-01-02T15:03:04Z - :type update_time: str - """ - - - - self._job_id = None - self._status = None - self._create_time = None - self._update_time = None - self.discriminator = None - - if job_id is not None: - self.job_id = job_id - if status is not None: - self.status = status - if create_time is not None: - self.create_time = create_time - if update_time is not None: - self.update_time = update_time - - @property - def job_id(self): - """Gets the job_id of this CheckTaskJobsItemsBody. - - 任务标识。 - - :return: The job_id of this CheckTaskJobsItemsBody. - :rtype: str - """ - return self._job_id - - @job_id.setter - def job_id(self, job_id): - """Sets the job_id of this CheckTaskJobsItemsBody. - - 任务标识。 - - :param job_id: The job_id of this CheckTaskJobsItemsBody. - :type job_id: str - """ - self._job_id = job_id - - @property - def status(self): - """Gets the status of this CheckTaskJobsItemsBody. - - 任务状态如下: - created 已创建 - running 正在处理 - finish 已完成 - failed 处理失败 - - :return: The status of this CheckTaskJobsItemsBody. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this CheckTaskJobsItemsBody. - - 任务状态如下: - created 已创建 - running 正在处理 - finish 已完成 - failed 处理失败 - - :param status: The status of this CheckTaskJobsItemsBody. - :type status: str - """ - self._status = status - - @property - def create_time(self): - """Gets the create_time of this CheckTaskJobsItemsBody. - - 任务创建的时间。例如:2018-01-02T15:03:04Z - - :return: The create_time of this CheckTaskJobsItemsBody. - :rtype: str - """ - return self._create_time - - @create_time.setter - def create_time(self, create_time): - """Sets the create_time of this CheckTaskJobsItemsBody. - - 任务创建的时间。例如:2018-01-02T15:03:04Z - - :param create_time: The create_time of this CheckTaskJobsItemsBody. - :type create_time: str - """ - self._create_time = create_time - - @property - def update_time(self): - """Gets the update_time of this CheckTaskJobsItemsBody. - - 任务最近更新的时间。例如:2018-01-02T15:03:04Z - - :return: The update_time of this CheckTaskJobsItemsBody. - :rtype: str - """ - return self._update_time - - @update_time.setter - def update_time(self, update_time): - """Sets the update_time of this CheckTaskJobsItemsBody. - - 任务最近更新的时间。例如:2018-01-02T15:03:04Z - - :param update_time: The update_time of this CheckTaskJobsItemsBody. - :type update_time: str - """ - self._update_time = update_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, CheckTaskJobsItemsBody): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/image_batch_moderation_req.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/image_batch_moderation_req.py deleted file mode 100644 index fb2d4a203e..0000000000 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/image_batch_moderation_req.py +++ /dev/null @@ -1,259 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class ImageBatchModerationReq: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'urls': 'list[str]', - 'categories': 'list[str]', - 'threshold': 'float', - 'moderation_rule': 'str', - 'ad_categories': 'list[str]', - 'show_ocr_text': 'bool' - } - - attribute_map = { - 'urls': 'urls', - 'categories': 'categories', - 'threshold': 'threshold', - 'moderation_rule': 'moderation_rule', - 'ad_categories': 'ad_categories', - 'show_ocr_text': 'show_ocr_text' - } - - def __init__(self, urls=None, categories=None, threshold=None, moderation_rule=None, ad_categories=None, show_ocr_text=None): - """ImageBatchModerationReq - - The model defined in huaweicloud sdk - - :param urls: 图片的URL路径,目前支持: - 公网HTTP/HTTPS URL - 华为云OBS提供的URL,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权。详请参见[配置OBS访问权限](https://support.huaweicloud.com/api-moderation/moderation_03_0020.html)。 > 图片的URL路径列表最多支持10个URL地址。接口响应时间依赖图片的下载时间,如果图片下载时间过长,会返回接口调用失败。请保证被检测图片所在的存储服务稳定可靠,建议您使用华为云OBS存储。 - :type urls: list[str] - :param categories: 检测场景: - politics:是否涉及政治人物的检测。 - terrorism:是否包含涉政暴恐元素的检测。 - porn:是否包含涉黄内容元素的检测。 - ad:是否包含广告的检测(公测特性)。 - all:包含politics、terrorism和porn三种场景的检测。 可通过配置上述场景,来完对应场景元素的检测。 为空或无此参数表示politics和terrorism都检测,但不包含porn场景。 > 每个检测场景的检测次数会分类统计。 - :type categories: list[str] - :param threshold: - 结果过滤门限,只有置信度不低于此门限的结果才会呈现在detail的列表中,取值范围 0-1,当未设置此值时各个检测场景会使用各自的默认值。 - politics检测场景的默认值为0.95。 - terrorism检测场景的默认值为0。 - ad检测场景的默认值为0。 - 无特殊需求直接不传此参数或像示例中一样值设为空字符串即可。 > - 如果检测场景中的最高置信度也未达到threshold,则结果列表为空;反之threshold过小,则会使结果列表中内容过多。 > - threshold参数不支持porn场景筛选。 > - threshold参数不会影响响应中的suggestion。 - :type threshold: float - :param moderation_rule: 图像审核规则名称,默认使用default规则。 审核规则的创建和使用请参见[配置审核规则](https://support.huaweicloud.com/api-moderation/moderation_03_0063.html)。 - :type moderation_rule: str - :param ad_categories: 图文审核检测场景。当categories包含ad时,该参数生效。 当前支持的场景有系统场景和用户自定义场景: - 系统场景为: - qr_code:二维码 - politics:涉政 - porn:涉黄 - ad:广告 - abuse:辱骂 - contraband:违禁品 - 用户自定义场景为:自定义黑名单词库。 自定义词库的创建和使用请参见[配置自定义词库](https://support.huaweicloud.com/api-moderation/moderation_03_0027.html)。 - :type ad_categories: list[str] - :param show_ocr_text: 是否返回ocr识别的结果。 - :type show_ocr_text: bool - """ - - - - self._urls = None - self._categories = None - self._threshold = None - self._moderation_rule = None - self._ad_categories = None - self._show_ocr_text = None - self.discriminator = None - - self.urls = urls - if categories is not None: - self.categories = categories - if threshold is not None: - self.threshold = threshold - if moderation_rule is not None: - self.moderation_rule = moderation_rule - if ad_categories is not None: - self.ad_categories = ad_categories - if show_ocr_text is not None: - self.show_ocr_text = show_ocr_text - - @property - def urls(self): - """Gets the urls of this ImageBatchModerationReq. - - 图片的URL路径,目前支持: - 公网HTTP/HTTPS URL - 华为云OBS提供的URL,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权。详请参见[配置OBS访问权限](https://support.huaweicloud.com/api-moderation/moderation_03_0020.html)。 > 图片的URL路径列表最多支持10个URL地址。接口响应时间依赖图片的下载时间,如果图片下载时间过长,会返回接口调用失败。请保证被检测图片所在的存储服务稳定可靠,建议您使用华为云OBS存储。 - - :return: The urls of this ImageBatchModerationReq. - :rtype: list[str] - """ - return self._urls - - @urls.setter - def urls(self, urls): - """Sets the urls of this ImageBatchModerationReq. - - 图片的URL路径,目前支持: - 公网HTTP/HTTPS URL - 华为云OBS提供的URL,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权。详请参见[配置OBS访问权限](https://support.huaweicloud.com/api-moderation/moderation_03_0020.html)。 > 图片的URL路径列表最多支持10个URL地址。接口响应时间依赖图片的下载时间,如果图片下载时间过长,会返回接口调用失败。请保证被检测图片所在的存储服务稳定可靠,建议您使用华为云OBS存储。 - - :param urls: The urls of this ImageBatchModerationReq. - :type urls: list[str] - """ - self._urls = urls - - @property - def categories(self): - """Gets the categories of this ImageBatchModerationReq. - - 检测场景: - politics:是否涉及政治人物的检测。 - terrorism:是否包含涉政暴恐元素的检测。 - porn:是否包含涉黄内容元素的检测。 - ad:是否包含广告的检测(公测特性)。 - all:包含politics、terrorism和porn三种场景的检测。 可通过配置上述场景,来完对应场景元素的检测。 为空或无此参数表示politics和terrorism都检测,但不包含porn场景。 > 每个检测场景的检测次数会分类统计。 - - :return: The categories of this ImageBatchModerationReq. - :rtype: list[str] - """ - return self._categories - - @categories.setter - def categories(self, categories): - """Sets the categories of this ImageBatchModerationReq. - - 检测场景: - politics:是否涉及政治人物的检测。 - terrorism:是否包含涉政暴恐元素的检测。 - porn:是否包含涉黄内容元素的检测。 - ad:是否包含广告的检测(公测特性)。 - all:包含politics、terrorism和porn三种场景的检测。 可通过配置上述场景,来完对应场景元素的检测。 为空或无此参数表示politics和terrorism都检测,但不包含porn场景。 > 每个检测场景的检测次数会分类统计。 - - :param categories: The categories of this ImageBatchModerationReq. - :type categories: list[str] - """ - self._categories = categories - - @property - def threshold(self): - """Gets the threshold of this ImageBatchModerationReq. - - - 结果过滤门限,只有置信度不低于此门限的结果才会呈现在detail的列表中,取值范围 0-1,当未设置此值时各个检测场景会使用各自的默认值。 - politics检测场景的默认值为0.95。 - terrorism检测场景的默认值为0。 - ad检测场景的默认值为0。 - 无特殊需求直接不传此参数或像示例中一样值设为空字符串即可。 > - 如果检测场景中的最高置信度也未达到threshold,则结果列表为空;反之threshold过小,则会使结果列表中内容过多。 > - threshold参数不支持porn场景筛选。 > - threshold参数不会影响响应中的suggestion。 - - :return: The threshold of this ImageBatchModerationReq. - :rtype: float - """ - return self._threshold - - @threshold.setter - def threshold(self, threshold): - """Sets the threshold of this ImageBatchModerationReq. - - - 结果过滤门限,只有置信度不低于此门限的结果才会呈现在detail的列表中,取值范围 0-1,当未设置此值时各个检测场景会使用各自的默认值。 - politics检测场景的默认值为0.95。 - terrorism检测场景的默认值为0。 - ad检测场景的默认值为0。 - 无特殊需求直接不传此参数或像示例中一样值设为空字符串即可。 > - 如果检测场景中的最高置信度也未达到threshold,则结果列表为空;反之threshold过小,则会使结果列表中内容过多。 > - threshold参数不支持porn场景筛选。 > - threshold参数不会影响响应中的suggestion。 - - :param threshold: The threshold of this ImageBatchModerationReq. - :type threshold: float - """ - self._threshold = threshold - - @property - def moderation_rule(self): - """Gets the moderation_rule of this ImageBatchModerationReq. - - 图像审核规则名称,默认使用default规则。 审核规则的创建和使用请参见[配置审核规则](https://support.huaweicloud.com/api-moderation/moderation_03_0063.html)。 - - :return: The moderation_rule of this ImageBatchModerationReq. - :rtype: str - """ - return self._moderation_rule - - @moderation_rule.setter - def moderation_rule(self, moderation_rule): - """Sets the moderation_rule of this ImageBatchModerationReq. - - 图像审核规则名称,默认使用default规则。 审核规则的创建和使用请参见[配置审核规则](https://support.huaweicloud.com/api-moderation/moderation_03_0063.html)。 - - :param moderation_rule: The moderation_rule of this ImageBatchModerationReq. - :type moderation_rule: str - """ - self._moderation_rule = moderation_rule - - @property - def ad_categories(self): - """Gets the ad_categories of this ImageBatchModerationReq. - - 图文审核检测场景。当categories包含ad时,该参数生效。 当前支持的场景有系统场景和用户自定义场景: - 系统场景为: - qr_code:二维码 - politics:涉政 - porn:涉黄 - ad:广告 - abuse:辱骂 - contraband:违禁品 - 用户自定义场景为:自定义黑名单词库。 自定义词库的创建和使用请参见[配置自定义词库](https://support.huaweicloud.com/api-moderation/moderation_03_0027.html)。 - - :return: The ad_categories of this ImageBatchModerationReq. - :rtype: list[str] - """ - return self._ad_categories - - @ad_categories.setter - def ad_categories(self, ad_categories): - """Sets the ad_categories of this ImageBatchModerationReq. - - 图文审核检测场景。当categories包含ad时,该参数生效。 当前支持的场景有系统场景和用户自定义场景: - 系统场景为: - qr_code:二维码 - politics:涉政 - porn:涉黄 - ad:广告 - abuse:辱骂 - contraband:违禁品 - 用户自定义场景为:自定义黑名单词库。 自定义词库的创建和使用请参见[配置自定义词库](https://support.huaweicloud.com/api-moderation/moderation_03_0027.html)。 - - :param ad_categories: The ad_categories of this ImageBatchModerationReq. - :type ad_categories: list[str] - """ - self._ad_categories = ad_categories - - @property - def show_ocr_text(self): - """Gets the show_ocr_text of this ImageBatchModerationReq. - - 是否返回ocr识别的结果。 - - :return: The show_ocr_text of this ImageBatchModerationReq. - :rtype: bool - """ - return self._show_ocr_text - - @show_ocr_text.setter - def show_ocr_text(self, show_ocr_text): - """Sets the show_ocr_text of this ImageBatchModerationReq. - - 是否返回ocr识别的结果。 - - :param show_ocr_text: The show_ocr_text of this ImageBatchModerationReq. - :type show_ocr_text: bool - """ - self._show_ocr_text = show_ocr_text - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageBatchModerationReq): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/image_batch_moderation_result_body.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/image_batch_moderation_result_body.py deleted file mode 100644 index 8806c8506d..0000000000 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/image_batch_moderation_result_body.py +++ /dev/null @@ -1,285 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class ImageBatchModerationResultBody: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'url': 'str', - 'suggestion': 'str', - 'detail': 'ImageDetectionResultDetail', - 'category_suggestions': 'object', - 'ocr_text': 'str', - 'error_code': 'str', - 'error_msg': 'str' - } - - attribute_map = { - 'url': 'url', - 'suggestion': 'suggestion', - 'detail': 'detail', - 'category_suggestions': 'category_suggestions', - 'ocr_text': 'ocr_text', - 'error_code': 'error_code', - 'error_msg': 'error_msg' - } - - def __init__(self, url=None, suggestion=None, detail=None, category_suggestions=None, ocr_text=None, error_code=None, error_msg=None): - """ImageBatchModerationResultBody - - The model defined in huaweicloud sdk - - :param url: 图片的URL路径。 - :type url: str - :param suggestion: 检测结果是否通过。 - block:包含敏感信息,不通过 - pass:不包含敏感信息,通过 - review:需要人工复检 > 当同时检测多个场景时,suggestion的值以最可能包含敏感信息的场景为准。即任一场景出现了block则总的suggestion为block,所有场景都pass时suggestion为pass,这两种情况之外则一定有场景需要review,此时suggestion为review。 - :type suggestion: str - :param detail: - :type detail: :class:`huaweicloudsdkmoderation.v2.ImageDetectionResultDetail` - :param category_suggestions: 具体每个场景的检测结果。 block:包含敏感信息,不通过 pass:不包含敏感信息,通过 review:需要人工复检 - :type category_suggestions: object - :param ocr_text: ocr识别结果。 - :type ocr_text: str - :param error_code: 图像审核失败时错误码 - :type error_code: str - :param error_msg: 图像审核失败时错误信息 - :type error_msg: str - """ - - - - self._url = None - self._suggestion = None - self._detail = None - self._category_suggestions = None - self._ocr_text = None - self._error_code = None - self._error_msg = None - self.discriminator = None - - if url is not None: - self.url = url - if suggestion is not None: - self.suggestion = suggestion - if detail is not None: - self.detail = detail - if category_suggestions is not None: - self.category_suggestions = category_suggestions - if ocr_text is not None: - self.ocr_text = ocr_text - if error_code is not None: - self.error_code = error_code - if error_msg is not None: - self.error_msg = error_msg - - @property - def url(self): - """Gets the url of this ImageBatchModerationResultBody. - - 图片的URL路径。 - - :return: The url of this ImageBatchModerationResultBody. - :rtype: str - """ - return self._url - - @url.setter - def url(self, url): - """Sets the url of this ImageBatchModerationResultBody. - - 图片的URL路径。 - - :param url: The url of this ImageBatchModerationResultBody. - :type url: str - """ - self._url = url - - @property - def suggestion(self): - """Gets the suggestion of this ImageBatchModerationResultBody. - - 检测结果是否通过。 - block:包含敏感信息,不通过 - pass:不包含敏感信息,通过 - review:需要人工复检 > 当同时检测多个场景时,suggestion的值以最可能包含敏感信息的场景为准。即任一场景出现了block则总的suggestion为block,所有场景都pass时suggestion为pass,这两种情况之外则一定有场景需要review,此时suggestion为review。 - - :return: The suggestion of this ImageBatchModerationResultBody. - :rtype: str - """ - return self._suggestion - - @suggestion.setter - def suggestion(self, suggestion): - """Sets the suggestion of this ImageBatchModerationResultBody. - - 检测结果是否通过。 - block:包含敏感信息,不通过 - pass:不包含敏感信息,通过 - review:需要人工复检 > 当同时检测多个场景时,suggestion的值以最可能包含敏感信息的场景为准。即任一场景出现了block则总的suggestion为block,所有场景都pass时suggestion为pass,这两种情况之外则一定有场景需要review,此时suggestion为review。 - - :param suggestion: The suggestion of this ImageBatchModerationResultBody. - :type suggestion: str - """ - self._suggestion = suggestion - - @property - def detail(self): - """Gets the detail of this ImageBatchModerationResultBody. - - :return: The detail of this ImageBatchModerationResultBody. - :rtype: :class:`huaweicloudsdkmoderation.v2.ImageDetectionResultDetail` - """ - return self._detail - - @detail.setter - def detail(self, detail): - """Sets the detail of this ImageBatchModerationResultBody. - - :param detail: The detail of this ImageBatchModerationResultBody. - :type detail: :class:`huaweicloudsdkmoderation.v2.ImageDetectionResultDetail` - """ - self._detail = detail - - @property - def category_suggestions(self): - """Gets the category_suggestions of this ImageBatchModerationResultBody. - - 具体每个场景的检测结果。 block:包含敏感信息,不通过 pass:不包含敏感信息,通过 review:需要人工复检 - - :return: The category_suggestions of this ImageBatchModerationResultBody. - :rtype: object - """ - return self._category_suggestions - - @category_suggestions.setter - def category_suggestions(self, category_suggestions): - """Sets the category_suggestions of this ImageBatchModerationResultBody. - - 具体每个场景的检测结果。 block:包含敏感信息,不通过 pass:不包含敏感信息,通过 review:需要人工复检 - - :param category_suggestions: The category_suggestions of this ImageBatchModerationResultBody. - :type category_suggestions: object - """ - self._category_suggestions = category_suggestions - - @property - def ocr_text(self): - """Gets the ocr_text of this ImageBatchModerationResultBody. - - ocr识别结果。 - - :return: The ocr_text of this ImageBatchModerationResultBody. - :rtype: str - """ - return self._ocr_text - - @ocr_text.setter - def ocr_text(self, ocr_text): - """Sets the ocr_text of this ImageBatchModerationResultBody. - - ocr识别结果。 - - :param ocr_text: The ocr_text of this ImageBatchModerationResultBody. - :type ocr_text: str - """ - self._ocr_text = ocr_text - - @property - def error_code(self): - """Gets the error_code of this ImageBatchModerationResultBody. - - 图像审核失败时错误码 - - :return: The error_code of this ImageBatchModerationResultBody. - :rtype: str - """ - return self._error_code - - @error_code.setter - def error_code(self, error_code): - """Sets the error_code of this ImageBatchModerationResultBody. - - 图像审核失败时错误码 - - :param error_code: The error_code of this ImageBatchModerationResultBody. - :type error_code: str - """ - self._error_code = error_code - - @property - def error_msg(self): - """Gets the error_msg of this ImageBatchModerationResultBody. - - 图像审核失败时错误信息 - - :return: The error_msg of this ImageBatchModerationResultBody. - :rtype: str - """ - return self._error_msg - - @error_msg.setter - def error_msg(self, error_msg): - """Sets the error_msg of this ImageBatchModerationResultBody. - - 图像审核失败时错误信息 - - :param error_msg: The error_msg of this ImageBatchModerationResultBody. - :type error_msg: str - """ - self._error_msg = error_msg - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageBatchModerationResultBody): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/image_detection_req.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/image_detection_req.py deleted file mode 100644 index 00e5abae17..0000000000 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/image_detection_req.py +++ /dev/null @@ -1,289 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class ImageDetectionReq: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'url': 'str', - 'image': 'str', - 'moderation_rule': 'str', - 'categories': 'list[str]', - 'ad_categories': 'list[str]', - 'threshold': 'float', - 'show_ocr_text': 'bool' - } - - attribute_map = { - 'url': 'url', - 'image': 'image', - 'moderation_rule': 'moderation_rule', - 'categories': 'categories', - 'ad_categories': 'ad_categories', - 'threshold': 'threshold', - 'show_ocr_text': 'show_ocr_text' - } - - def __init__(self, url=None, image=None, moderation_rule=None, categories=None, ad_categories=None, threshold=None, show_ocr_text=None): - """ImageDetectionReq - - The model defined in huaweicloud sdk - - :param url: 与image二选一 图片的URL路径,目前支持: - 公网HTTP/HTTPS URL - 华为云OBS提供的URL,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权。详请参见[配置OBS访问权限](https://support.huaweicloud.com/api-moderation/moderation_03_0020.html)。 > - 接口响应时间依赖图片的下载时间,如果图片下载时间过长,会返回接口调用失败。请保证被检测图片所在的存储服务稳定可靠,建议您使用华为云OBS存储。 - :type url: str - :param image: 与url二选一 图片文件Base64编码字符串。要求base64编码后大小不超过10M。 政治人物检测人脸部分不小于50*50像素。 支持JPEG/PNG/BMP/WEBP/GIF格式。 - :type image: str - :param moderation_rule: 图像审核规则名称,默认使用default规则。 > 审核规则的创建和使用请参见[配置审核规则](https://support.huaweicloud.com/api-moderation/moderation_03_0063.html) - :type moderation_rule: str - :param categories: 检测场景: - politics:是否涉及政治人物的检测。 - terrorism:是否包含涉政暴恐元素的检测。 - porn:是否包含涉黄内容元素的检测。 - ad:是否包含广告的检测(公测特性)。 - all:包含politics、terrorism和porn三种场景的检测。 可通过配置上述场景,来完对应场景元素的检测。 为空或无此参数表示politics和terrorism都检测,但不包含porn场景。 > 每个检测场景的检测次数会分类统计。 - :type categories: list[str] - :param ad_categories: 图文审核检测场景。当categories包含ad时,该参数生效。 当前支持的场景有系统场景和用户自定义场景: - 系统场景为: - qr_code:二维码 - politics:涉政 - porn:涉黄 - ad:广告 - abuse:辱骂 - contraband:违禁品 - 用户自定义场景为:自定义黑名单词库。 > 自定义词库的创建和使用请参见[配置自定义词库](https://support.huaweicloud.com/api-moderation/moderation_03_0020.html)。 - :type ad_categories: list[str] - :param threshold: - 结果过滤门限,只有置信度不低于此门限的结果才会呈现在detail的列表中,取值范围 0-1,当未设置此值时各个检测场景会使用各自的默认值。 - politics检测场景的默认值为0.95。 - terrorism检测场景的默认值为0。 - ad检测场景的默认值为0。 - 无特殊需求直接不传此参数或像示例中一样值设为空字符串即可。 > - 如果检测场景中的最高置信度也未达到threshold,则结果列表为空;反之threshold过小,则会使结果列表中内容过多。 > - threshold参数不支持porn场景筛选。 > - threshold参数不会影响响应中的suggestion。 - :type threshold: float - :param show_ocr_text: 是否返回ocr识别结果,默认为false。 - :type show_ocr_text: bool - """ - - - - self._url = None - self._image = None - self._moderation_rule = None - self._categories = None - self._ad_categories = None - self._threshold = None - self._show_ocr_text = None - self.discriminator = None - - if url is not None: - self.url = url - if image is not None: - self.image = image - if moderation_rule is not None: - self.moderation_rule = moderation_rule - if categories is not None: - self.categories = categories - if ad_categories is not None: - self.ad_categories = ad_categories - if threshold is not None: - self.threshold = threshold - if show_ocr_text is not None: - self.show_ocr_text = show_ocr_text - - @property - def url(self): - """Gets the url of this ImageDetectionReq. - - 与image二选一 图片的URL路径,目前支持: - 公网HTTP/HTTPS URL - 华为云OBS提供的URL,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权。详请参见[配置OBS访问权限](https://support.huaweicloud.com/api-moderation/moderation_03_0020.html)。 > - 接口响应时间依赖图片的下载时间,如果图片下载时间过长,会返回接口调用失败。请保证被检测图片所在的存储服务稳定可靠,建议您使用华为云OBS存储。 - - :return: The url of this ImageDetectionReq. - :rtype: str - """ - return self._url - - @url.setter - def url(self, url): - """Sets the url of this ImageDetectionReq. - - 与image二选一 图片的URL路径,目前支持: - 公网HTTP/HTTPS URL - 华为云OBS提供的URL,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权。详请参见[配置OBS访问权限](https://support.huaweicloud.com/api-moderation/moderation_03_0020.html)。 > - 接口响应时间依赖图片的下载时间,如果图片下载时间过长,会返回接口调用失败。请保证被检测图片所在的存储服务稳定可靠,建议您使用华为云OBS存储。 - - :param url: The url of this ImageDetectionReq. - :type url: str - """ - self._url = url - - @property - def image(self): - """Gets the image of this ImageDetectionReq. - - 与url二选一 图片文件Base64编码字符串。要求base64编码后大小不超过10M。 政治人物检测人脸部分不小于50*50像素。 支持JPEG/PNG/BMP/WEBP/GIF格式。 - - :return: The image of this ImageDetectionReq. - :rtype: str - """ - return self._image - - @image.setter - def image(self, image): - """Sets the image of this ImageDetectionReq. - - 与url二选一 图片文件Base64编码字符串。要求base64编码后大小不超过10M。 政治人物检测人脸部分不小于50*50像素。 支持JPEG/PNG/BMP/WEBP/GIF格式。 - - :param image: The image of this ImageDetectionReq. - :type image: str - """ - self._image = image - - @property - def moderation_rule(self): - """Gets the moderation_rule of this ImageDetectionReq. - - 图像审核规则名称,默认使用default规则。 > 审核规则的创建和使用请参见[配置审核规则](https://support.huaweicloud.com/api-moderation/moderation_03_0063.html) - - :return: The moderation_rule of this ImageDetectionReq. - :rtype: str - """ - return self._moderation_rule - - @moderation_rule.setter - def moderation_rule(self, moderation_rule): - """Sets the moderation_rule of this ImageDetectionReq. - - 图像审核规则名称,默认使用default规则。 > 审核规则的创建和使用请参见[配置审核规则](https://support.huaweicloud.com/api-moderation/moderation_03_0063.html) - - :param moderation_rule: The moderation_rule of this ImageDetectionReq. - :type moderation_rule: str - """ - self._moderation_rule = moderation_rule - - @property - def categories(self): - """Gets the categories of this ImageDetectionReq. - - 检测场景: - politics:是否涉及政治人物的检测。 - terrorism:是否包含涉政暴恐元素的检测。 - porn:是否包含涉黄内容元素的检测。 - ad:是否包含广告的检测(公测特性)。 - all:包含politics、terrorism和porn三种场景的检测。 可通过配置上述场景,来完对应场景元素的检测。 为空或无此参数表示politics和terrorism都检测,但不包含porn场景。 > 每个检测场景的检测次数会分类统计。 - - :return: The categories of this ImageDetectionReq. - :rtype: list[str] - """ - return self._categories - - @categories.setter - def categories(self, categories): - """Sets the categories of this ImageDetectionReq. - - 检测场景: - politics:是否涉及政治人物的检测。 - terrorism:是否包含涉政暴恐元素的检测。 - porn:是否包含涉黄内容元素的检测。 - ad:是否包含广告的检测(公测特性)。 - all:包含politics、terrorism和porn三种场景的检测。 可通过配置上述场景,来完对应场景元素的检测。 为空或无此参数表示politics和terrorism都检测,但不包含porn场景。 > 每个检测场景的检测次数会分类统计。 - - :param categories: The categories of this ImageDetectionReq. - :type categories: list[str] - """ - self._categories = categories - - @property - def ad_categories(self): - """Gets the ad_categories of this ImageDetectionReq. - - 图文审核检测场景。当categories包含ad时,该参数生效。 当前支持的场景有系统场景和用户自定义场景: - 系统场景为: - qr_code:二维码 - politics:涉政 - porn:涉黄 - ad:广告 - abuse:辱骂 - contraband:违禁品 - 用户自定义场景为:自定义黑名单词库。 > 自定义词库的创建和使用请参见[配置自定义词库](https://support.huaweicloud.com/api-moderation/moderation_03_0020.html)。 - - :return: The ad_categories of this ImageDetectionReq. - :rtype: list[str] - """ - return self._ad_categories - - @ad_categories.setter - def ad_categories(self, ad_categories): - """Sets the ad_categories of this ImageDetectionReq. - - 图文审核检测场景。当categories包含ad时,该参数生效。 当前支持的场景有系统场景和用户自定义场景: - 系统场景为: - qr_code:二维码 - politics:涉政 - porn:涉黄 - ad:广告 - abuse:辱骂 - contraband:违禁品 - 用户自定义场景为:自定义黑名单词库。 > 自定义词库的创建和使用请参见[配置自定义词库](https://support.huaweicloud.com/api-moderation/moderation_03_0020.html)。 - - :param ad_categories: The ad_categories of this ImageDetectionReq. - :type ad_categories: list[str] - """ - self._ad_categories = ad_categories - - @property - def threshold(self): - """Gets the threshold of this ImageDetectionReq. - - - 结果过滤门限,只有置信度不低于此门限的结果才会呈现在detail的列表中,取值范围 0-1,当未设置此值时各个检测场景会使用各自的默认值。 - politics检测场景的默认值为0.95。 - terrorism检测场景的默认值为0。 - ad检测场景的默认值为0。 - 无特殊需求直接不传此参数或像示例中一样值设为空字符串即可。 > - 如果检测场景中的最高置信度也未达到threshold,则结果列表为空;反之threshold过小,则会使结果列表中内容过多。 > - threshold参数不支持porn场景筛选。 > - threshold参数不会影响响应中的suggestion。 - - :return: The threshold of this ImageDetectionReq. - :rtype: float - """ - return self._threshold - - @threshold.setter - def threshold(self, threshold): - """Sets the threshold of this ImageDetectionReq. - - - 结果过滤门限,只有置信度不低于此门限的结果才会呈现在detail的列表中,取值范围 0-1,当未设置此值时各个检测场景会使用各自的默认值。 - politics检测场景的默认值为0.95。 - terrorism检测场景的默认值为0。 - ad检测场景的默认值为0。 - 无特殊需求直接不传此参数或像示例中一样值设为空字符串即可。 > - 如果检测场景中的最高置信度也未达到threshold,则结果列表为空;反之threshold过小,则会使结果列表中内容过多。 > - threshold参数不支持porn场景筛选。 > - threshold参数不会影响响应中的suggestion。 - - :param threshold: The threshold of this ImageDetectionReq. - :type threshold: float - """ - self._threshold = threshold - - @property - def show_ocr_text(self): - """Gets the show_ocr_text of this ImageDetectionReq. - - 是否返回ocr识别结果,默认为false。 - - :return: The show_ocr_text of this ImageDetectionReq. - :rtype: bool - """ - return self._show_ocr_text - - @show_ocr_text.setter - def show_ocr_text(self, show_ocr_text): - """Sets the show_ocr_text of this ImageDetectionReq. - - 是否返回ocr识别结果,默认为false。 - - :param show_ocr_text: The show_ocr_text of this ImageDetectionReq. - :type show_ocr_text: bool - """ - self._show_ocr_text = show_ocr_text - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageDetectionReq): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/image_detection_result_ad_detail.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/image_detection_result_ad_detail.py deleted file mode 100644 index f2a8802819..0000000000 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/image_detection_result_ad_detail.py +++ /dev/null @@ -1,173 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class ImageDetectionResultAdDetail: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'confidence': 'float', - 'label': 'str', - 'hit_contexts': 'list[str]' - } - - attribute_map = { - 'confidence': 'confidence', - 'label': 'label', - 'hit_contexts': 'hit_contexts' - } - - def __init__(self, confidence=None, label=None, hit_contexts=None): - """ImageDetectionResultAdDetail - - The model defined in huaweicloud sdk - - :param confidence: 置信度,取值范围 0-1。 - :type confidence: float - :param label: ad:label为对应的广告识别结果信息 - 广告场景当前支持label列表如下: - normal:正常 - ad:广告 - 图文审核场景当前支持label列表如下: - normal:正常 - qr_code:二维 - politics:涉政 - porn:涉黄 - ad:广告 - abuse:辱骂 - contraband:违禁品 - 其他自定义黑库名称 - :type label: str - :param hit_contexts: 图文审核场景命中的文本列表。 - :type hit_contexts: list[str] - """ - - - - self._confidence = None - self._label = None - self._hit_contexts = None - self.discriminator = None - - if confidence is not None: - self.confidence = confidence - if label is not None: - self.label = label - if hit_contexts is not None: - self.hit_contexts = hit_contexts - - @property - def confidence(self): - """Gets the confidence of this ImageDetectionResultAdDetail. - - 置信度,取值范围 0-1。 - - :return: The confidence of this ImageDetectionResultAdDetail. - :rtype: float - """ - return self._confidence - - @confidence.setter - def confidence(self, confidence): - """Sets the confidence of this ImageDetectionResultAdDetail. - - 置信度,取值范围 0-1。 - - :param confidence: The confidence of this ImageDetectionResultAdDetail. - :type confidence: float - """ - self._confidence = confidence - - @property - def label(self): - """Gets the label of this ImageDetectionResultAdDetail. - - ad:label为对应的广告识别结果信息 - 广告场景当前支持label列表如下: - normal:正常 - ad:广告 - 图文审核场景当前支持label列表如下: - normal:正常 - qr_code:二维 - politics:涉政 - porn:涉黄 - ad:广告 - abuse:辱骂 - contraband:违禁品 - 其他自定义黑库名称 - - :return: The label of this ImageDetectionResultAdDetail. - :rtype: str - """ - return self._label - - @label.setter - def label(self, label): - """Sets the label of this ImageDetectionResultAdDetail. - - ad:label为对应的广告识别结果信息 - 广告场景当前支持label列表如下: - normal:正常 - ad:广告 - 图文审核场景当前支持label列表如下: - normal:正常 - qr_code:二维 - politics:涉政 - porn:涉黄 - ad:广告 - abuse:辱骂 - contraband:违禁品 - 其他自定义黑库名称 - - :param label: The label of this ImageDetectionResultAdDetail. - :type label: str - """ - self._label = label - - @property - def hit_contexts(self): - """Gets the hit_contexts of this ImageDetectionResultAdDetail. - - 图文审核场景命中的文本列表。 - - :return: The hit_contexts of this ImageDetectionResultAdDetail. - :rtype: list[str] - """ - return self._hit_contexts - - @hit_contexts.setter - def hit_contexts(self, hit_contexts): - """Sets the hit_contexts of this ImageDetectionResultAdDetail. - - 图文审核场景命中的文本列表。 - - :param hit_contexts: The hit_contexts of this ImageDetectionResultAdDetail. - :type hit_contexts: list[str] - """ - self._hit_contexts = hit_contexts - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageDetectionResultAdDetail): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/image_detection_result_body.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/image_detection_result_body.py deleted file mode 100644 index 21f4b6c5ad..0000000000 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/image_detection_result_body.py +++ /dev/null @@ -1,198 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class ImageDetectionResultBody: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'detail': 'ImageDetectionResultDetail', - 'suggestion': 'str', - 'category_suggestions': 'dict(str, str)', - 'ocr_text': 'str' - } - - attribute_map = { - 'detail': 'detail', - 'suggestion': 'suggestion', - 'category_suggestions': 'category_suggestions', - 'ocr_text': 'ocr_text' - } - - def __init__(self, detail=None, suggestion=None, category_suggestions=None, ocr_text=None): - """ImageDetectionResultBody - - The model defined in huaweicloud sdk - - :param detail: - :type detail: :class:`huaweicloudsdkmoderation.v2.ImageDetectionResultDetail` - :param suggestion: 检测结果是否通过。 - block:包含敏感信息,不通过 - pass:不包含敏感信息,通过 - review:需要人工复检 > 当同时检测多个场景时,suggestion的值以最可能包含敏感信息的场景为准。即任一场景出现了block则总的suggestion为block,所有场景都pass时suggestion为pass,这两种情况之外则一定有场景需要review,此时suggestion为review。 - :type suggestion: str - :param category_suggestions: 具体每个场景的检测结果。 block:包含敏感信息,不通过 pass:不包含敏感信息,通过 review:需要人工复检 - :type category_suggestions: dict(str, str) - :param ocr_text: 文本结果 - :type ocr_text: str - """ - - - - self._detail = None - self._suggestion = None - self._category_suggestions = None - self._ocr_text = None - self.discriminator = None - - if detail is not None: - self.detail = detail - if suggestion is not None: - self.suggestion = suggestion - if category_suggestions is not None: - self.category_suggestions = category_suggestions - if ocr_text is not None: - self.ocr_text = ocr_text - - @property - def detail(self): - """Gets the detail of this ImageDetectionResultBody. - - :return: The detail of this ImageDetectionResultBody. - :rtype: :class:`huaweicloudsdkmoderation.v2.ImageDetectionResultDetail` - """ - return self._detail - - @detail.setter - def detail(self, detail): - """Sets the detail of this ImageDetectionResultBody. - - :param detail: The detail of this ImageDetectionResultBody. - :type detail: :class:`huaweicloudsdkmoderation.v2.ImageDetectionResultDetail` - """ - self._detail = detail - - @property - def suggestion(self): - """Gets the suggestion of this ImageDetectionResultBody. - - 检测结果是否通过。 - block:包含敏感信息,不通过 - pass:不包含敏感信息,通过 - review:需要人工复检 > 当同时检测多个场景时,suggestion的值以最可能包含敏感信息的场景为准。即任一场景出现了block则总的suggestion为block,所有场景都pass时suggestion为pass,这两种情况之外则一定有场景需要review,此时suggestion为review。 - - :return: The suggestion of this ImageDetectionResultBody. - :rtype: str - """ - return self._suggestion - - @suggestion.setter - def suggestion(self, suggestion): - """Sets the suggestion of this ImageDetectionResultBody. - - 检测结果是否通过。 - block:包含敏感信息,不通过 - pass:不包含敏感信息,通过 - review:需要人工复检 > 当同时检测多个场景时,suggestion的值以最可能包含敏感信息的场景为准。即任一场景出现了block则总的suggestion为block,所有场景都pass时suggestion为pass,这两种情况之外则一定有场景需要review,此时suggestion为review。 - - :param suggestion: The suggestion of this ImageDetectionResultBody. - :type suggestion: str - """ - self._suggestion = suggestion - - @property - def category_suggestions(self): - """Gets the category_suggestions of this ImageDetectionResultBody. - - 具体每个场景的检测结果。 block:包含敏感信息,不通过 pass:不包含敏感信息,通过 review:需要人工复检 - - :return: The category_suggestions of this ImageDetectionResultBody. - :rtype: dict(str, str) - """ - return self._category_suggestions - - @category_suggestions.setter - def category_suggestions(self, category_suggestions): - """Sets the category_suggestions of this ImageDetectionResultBody. - - 具体每个场景的检测结果。 block:包含敏感信息,不通过 pass:不包含敏感信息,通过 review:需要人工复检 - - :param category_suggestions: The category_suggestions of this ImageDetectionResultBody. - :type category_suggestions: dict(str, str) - """ - self._category_suggestions = category_suggestions - - @property - def ocr_text(self): - """Gets the ocr_text of this ImageDetectionResultBody. - - 文本结果 - - :return: The ocr_text of this ImageDetectionResultBody. - :rtype: str - """ - return self._ocr_text - - @ocr_text.setter - def ocr_text(self, ocr_text): - """Sets the ocr_text of this ImageDetectionResultBody. - - 文本结果 - - :param ocr_text: The ocr_text of this ImageDetectionResultBody. - :type ocr_text: str - """ - self._ocr_text = ocr_text - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageDetectionResultBody): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/image_detection_result_detail.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/image_detection_result_detail.py deleted file mode 100644 index da5569b94c..0000000000 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/image_detection_result_detail.py +++ /dev/null @@ -1,202 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class ImageDetectionResultDetail: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'politics': 'list[ImageDetectionResultDetailPolitics]', - 'porn': 'list[ImageDetectionResultSimpleDetail]', - 'terrorism': 'list[ImageDetectionResultSimpleDetail]', - 'ad': 'list[ImageDetectionResultAdDetail]' - } - - attribute_map = { - 'politics': 'politics', - 'porn': 'porn', - 'terrorism': 'terrorism', - 'ad': 'ad' - } - - def __init__(self, politics=None, porn=None, terrorism=None, ad=None): - """ImageDetectionResultDetail - - The model defined in huaweicloud sdk - - :param politics: 涉政敏感人物检测结果。 - :type politics: list[:class:`huaweicloudsdkmoderation.v2.ImageDetectionResultDetailPolitics`] - :param porn: 涉黄检测结果。 - :type porn: list[:class:`huaweicloudsdkmoderation.v2.ImageDetectionResultSimpleDetail`] - :param terrorism: 涉政、暴恐检测结果。 - :type terrorism: list[:class:`huaweicloudsdkmoderation.v2.ImageDetectionResultSimpleDetail`] - :param ad: 广告检测结果。 - :type ad: list[:class:`huaweicloudsdkmoderation.v2.ImageDetectionResultAdDetail`] - """ - - - - self._politics = None - self._porn = None - self._terrorism = None - self._ad = None - self.discriminator = None - - if politics is not None: - self.politics = politics - if porn is not None: - self.porn = porn - if terrorism is not None: - self.terrorism = terrorism - if ad is not None: - self.ad = ad - - @property - def politics(self): - """Gets the politics of this ImageDetectionResultDetail. - - 涉政敏感人物检测结果。 - - :return: The politics of this ImageDetectionResultDetail. - :rtype: list[:class:`huaweicloudsdkmoderation.v2.ImageDetectionResultDetailPolitics`] - """ - return self._politics - - @politics.setter - def politics(self, politics): - """Sets the politics of this ImageDetectionResultDetail. - - 涉政敏感人物检测结果。 - - :param politics: The politics of this ImageDetectionResultDetail. - :type politics: list[:class:`huaweicloudsdkmoderation.v2.ImageDetectionResultDetailPolitics`] - """ - self._politics = politics - - @property - def porn(self): - """Gets the porn of this ImageDetectionResultDetail. - - 涉黄检测结果。 - - :return: The porn of this ImageDetectionResultDetail. - :rtype: list[:class:`huaweicloudsdkmoderation.v2.ImageDetectionResultSimpleDetail`] - """ - return self._porn - - @porn.setter - def porn(self, porn): - """Sets the porn of this ImageDetectionResultDetail. - - 涉黄检测结果。 - - :param porn: The porn of this ImageDetectionResultDetail. - :type porn: list[:class:`huaweicloudsdkmoderation.v2.ImageDetectionResultSimpleDetail`] - """ - self._porn = porn - - @property - def terrorism(self): - """Gets the terrorism of this ImageDetectionResultDetail. - - 涉政、暴恐检测结果。 - - :return: The terrorism of this ImageDetectionResultDetail. - :rtype: list[:class:`huaweicloudsdkmoderation.v2.ImageDetectionResultSimpleDetail`] - """ - return self._terrorism - - @terrorism.setter - def terrorism(self, terrorism): - """Sets the terrorism of this ImageDetectionResultDetail. - - 涉政、暴恐检测结果。 - - :param terrorism: The terrorism of this ImageDetectionResultDetail. - :type terrorism: list[:class:`huaweicloudsdkmoderation.v2.ImageDetectionResultSimpleDetail`] - """ - self._terrorism = terrorism - - @property - def ad(self): - """Gets the ad of this ImageDetectionResultDetail. - - 广告检测结果。 - - :return: The ad of this ImageDetectionResultDetail. - :rtype: list[:class:`huaweicloudsdkmoderation.v2.ImageDetectionResultAdDetail`] - """ - return self._ad - - @ad.setter - def ad(self, ad): - """Sets the ad of this ImageDetectionResultDetail. - - 广告检测结果。 - - :param ad: The ad of this ImageDetectionResultDetail. - :type ad: list[:class:`huaweicloudsdkmoderation.v2.ImageDetectionResultAdDetail`] - """ - self._ad = ad - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageDetectionResultDetail): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/image_detection_result_detail_face_detail.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/image_detection_result_detail_face_detail.py deleted file mode 100644 index aa2c6062a3..0000000000 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/image_detection_result_detail_face_detail.py +++ /dev/null @@ -1,202 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class ImageDetectionResultDetailFaceDetail: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'h': 'int', - 'w': 'int', - 'x': 'int', - 'y': 'int' - } - - attribute_map = { - 'h': 'h', - 'w': 'w', - 'x': 'x', - 'y': 'y' - } - - def __init__(self, h=None, w=None, x=None, y=None): - """ImageDetectionResultDetailFaceDetail - - The model defined in huaweicloud sdk - - :param h: 人脸区域高度。 - :type h: int - :param w: 人脸区域宽度。 - :type w: int - :param x: 人脸区域左上角到y轴距离。 - :type x: int - :param y: 人脸区域左上角到x轴距离。 - :type y: int - """ - - - - self._h = None - self._w = None - self._x = None - self._y = None - self.discriminator = None - - if h is not None: - self.h = h - if w is not None: - self.w = w - if x is not None: - self.x = x - if y is not None: - self.y = y - - @property - def h(self): - """Gets the h of this ImageDetectionResultDetailFaceDetail. - - 人脸区域高度。 - - :return: The h of this ImageDetectionResultDetailFaceDetail. - :rtype: int - """ - return self._h - - @h.setter - def h(self, h): - """Sets the h of this ImageDetectionResultDetailFaceDetail. - - 人脸区域高度。 - - :param h: The h of this ImageDetectionResultDetailFaceDetail. - :type h: int - """ - self._h = h - - @property - def w(self): - """Gets the w of this ImageDetectionResultDetailFaceDetail. - - 人脸区域宽度。 - - :return: The w of this ImageDetectionResultDetailFaceDetail. - :rtype: int - """ - return self._w - - @w.setter - def w(self, w): - """Sets the w of this ImageDetectionResultDetailFaceDetail. - - 人脸区域宽度。 - - :param w: The w of this ImageDetectionResultDetailFaceDetail. - :type w: int - """ - self._w = w - - @property - def x(self): - """Gets the x of this ImageDetectionResultDetailFaceDetail. - - 人脸区域左上角到y轴距离。 - - :return: The x of this ImageDetectionResultDetailFaceDetail. - :rtype: int - """ - return self._x - - @x.setter - def x(self, x): - """Sets the x of this ImageDetectionResultDetailFaceDetail. - - 人脸区域左上角到y轴距离。 - - :param x: The x of this ImageDetectionResultDetailFaceDetail. - :type x: int - """ - self._x = x - - @property - def y(self): - """Gets the y of this ImageDetectionResultDetailFaceDetail. - - 人脸区域左上角到x轴距离。 - - :return: The y of this ImageDetectionResultDetailFaceDetail. - :rtype: int - """ - return self._y - - @y.setter - def y(self, y): - """Sets the y of this ImageDetectionResultDetailFaceDetail. - - 人脸区域左上角到x轴距离。 - - :param y: The y of this ImageDetectionResultDetailFaceDetail. - :type y: int - """ - self._y = y - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageDetectionResultDetailFaceDetail): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/image_detection_result_detail_politics.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/image_detection_result_detail_politics.py deleted file mode 100644 index d4070110e4..0000000000 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/image_detection_result_detail_politics.py +++ /dev/null @@ -1,169 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class ImageDetectionResultDetailPolitics: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'confidence': 'float', - 'label': 'str', - 'face_detail': 'ImageDetectionResultDetailFaceDetail' - } - - attribute_map = { - 'confidence': 'confidence', - 'label': 'label', - 'face_detail': 'face_detail' - } - - def __init__(self, confidence=None, label=None, face_detail=None): - """ImageDetectionResultDetailPolitics - - The model defined in huaweicloud sdk - - :param confidence: 置信度,取值范围 0-1。 - :type confidence: float - :param label: 对应的政治人物信息。 - :type label: str - :param face_detail: - :type face_detail: :class:`huaweicloudsdkmoderation.v2.ImageDetectionResultDetailFaceDetail` - """ - - - - self._confidence = None - self._label = None - self._face_detail = None - self.discriminator = None - - if confidence is not None: - self.confidence = confidence - if label is not None: - self.label = label - if face_detail is not None: - self.face_detail = face_detail - - @property - def confidence(self): - """Gets the confidence of this ImageDetectionResultDetailPolitics. - - 置信度,取值范围 0-1。 - - :return: The confidence of this ImageDetectionResultDetailPolitics. - :rtype: float - """ - return self._confidence - - @confidence.setter - def confidence(self, confidence): - """Sets the confidence of this ImageDetectionResultDetailPolitics. - - 置信度,取值范围 0-1。 - - :param confidence: The confidence of this ImageDetectionResultDetailPolitics. - :type confidence: float - """ - self._confidence = confidence - - @property - def label(self): - """Gets the label of this ImageDetectionResultDetailPolitics. - - 对应的政治人物信息。 - - :return: The label of this ImageDetectionResultDetailPolitics. - :rtype: str - """ - return self._label - - @label.setter - def label(self, label): - """Sets the label of this ImageDetectionResultDetailPolitics. - - 对应的政治人物信息。 - - :param label: The label of this ImageDetectionResultDetailPolitics. - :type label: str - """ - self._label = label - - @property - def face_detail(self): - """Gets the face_detail of this ImageDetectionResultDetailPolitics. - - :return: The face_detail of this ImageDetectionResultDetailPolitics. - :rtype: :class:`huaweicloudsdkmoderation.v2.ImageDetectionResultDetailFaceDetail` - """ - return self._face_detail - - @face_detail.setter - def face_detail(self, face_detail): - """Sets the face_detail of this ImageDetectionResultDetailPolitics. - - :param face_detail: The face_detail of this ImageDetectionResultDetailPolitics. - :type face_detail: :class:`huaweicloudsdkmoderation.v2.ImageDetectionResultDetailFaceDetail` - """ - self._face_detail = face_detail - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageDetectionResultDetailPolitics): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/image_detection_result_simple_detail.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/image_detection_result_simple_detail.py deleted file mode 100644 index 7549c795f1..0000000000 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/image_detection_result_simple_detail.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class ImageDetectionResultSimpleDetail: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'confidence': 'float', - 'label': 'str' - } - - attribute_map = { - 'confidence': 'confidence', - 'label': 'label' - } - - def __init__(self, confidence=None, label=None): - """ImageDetectionResultSimpleDetail - - The model defined in huaweicloud sdk - - :param confidence: 置信度,取值范围 0-1。 - :type confidence: float - :param label: 每个检测结果的标签化说明: - terrorism:label为对应的涉政暴恐元素信息。 - 涉政暴恐场景当前支持label列表如下: - normal:正常 - knife:刀 - gun:枪 - fire:火灾 - bloody :血腥 - terrorist:暴恐组织及标志 - fascist:法西斯组织及标志 - cult:邪教组织及标志 - negative_politics :涉政负面组织及标志 - negative_political_events:涉政负面事件及标志 - special_characters :特殊文字 - kidnap:绑架 - corpse:尸体 - riot:暴乱事件 - parade :游行示威 - sensitive_landmarks:敏感地标 - military_weapon:军事武器 - army:警察部队 - positive_politics:涉政正面组织及标志 - crowd:人群聚集 - porn:label为对应的涉黄分类(涉黄、性感等)信息。 - 鉴黄场景当前支持label列表如下: - normal:正常 - porn:色情 - sexy:性感 - :type label: str - """ - - - - self._confidence = None - self._label = None - self.discriminator = None - - if confidence is not None: - self.confidence = confidence - if label is not None: - self.label = label - - @property - def confidence(self): - """Gets the confidence of this ImageDetectionResultSimpleDetail. - - 置信度,取值范围 0-1。 - - :return: The confidence of this ImageDetectionResultSimpleDetail. - :rtype: float - """ - return self._confidence - - @confidence.setter - def confidence(self, confidence): - """Sets the confidence of this ImageDetectionResultSimpleDetail. - - 置信度,取值范围 0-1。 - - :param confidence: The confidence of this ImageDetectionResultSimpleDetail. - :type confidence: float - """ - self._confidence = confidence - - @property - def label(self): - """Gets the label of this ImageDetectionResultSimpleDetail. - - 每个检测结果的标签化说明: - terrorism:label为对应的涉政暴恐元素信息。 - 涉政暴恐场景当前支持label列表如下: - normal:正常 - knife:刀 - gun:枪 - fire:火灾 - bloody :血腥 - terrorist:暴恐组织及标志 - fascist:法西斯组织及标志 - cult:邪教组织及标志 - negative_politics :涉政负面组织及标志 - negative_political_events:涉政负面事件及标志 - special_characters :特殊文字 - kidnap:绑架 - corpse:尸体 - riot:暴乱事件 - parade :游行示威 - sensitive_landmarks:敏感地标 - military_weapon:军事武器 - army:警察部队 - positive_politics:涉政正面组织及标志 - crowd:人群聚集 - porn:label为对应的涉黄分类(涉黄、性感等)信息。 - 鉴黄场景当前支持label列表如下: - normal:正常 - porn:色情 - sexy:性感 - - :return: The label of this ImageDetectionResultSimpleDetail. - :rtype: str - """ - return self._label - - @label.setter - def label(self, label): - """Sets the label of this ImageDetectionResultSimpleDetail. - - 每个检测结果的标签化说明: - terrorism:label为对应的涉政暴恐元素信息。 - 涉政暴恐场景当前支持label列表如下: - normal:正常 - knife:刀 - gun:枪 - fire:火灾 - bloody :血腥 - terrorist:暴恐组织及标志 - fascist:法西斯组织及标志 - cult:邪教组织及标志 - negative_politics :涉政负面组织及标志 - negative_political_events:涉政负面事件及标志 - special_characters :特殊文字 - kidnap:绑架 - corpse:尸体 - riot:暴乱事件 - parade :游行示威 - sensitive_landmarks:敏感地标 - military_weapon:军事武器 - army:警察部队 - positive_politics:涉政正面组织及标志 - crowd:人群聚集 - porn:label为对应的涉黄分类(涉黄、性感等)信息。 - 鉴黄场景当前支持label列表如下: - normal:正常 - porn:色情 - sexy:性感 - - :param label: The label of this ImageDetectionResultSimpleDetail. - :type label: str - """ - self._label = label - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageDetectionResultSimpleDetail): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_moderation_audio_request_body.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_moderation_audio_request_body.py deleted file mode 100644 index 08238ea0ce..0000000000 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_moderation_audio_request_body.py +++ /dev/null @@ -1,197 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class RunModerationAudioRequestBody: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'data': 'str', - 'url': 'str', - 'config': 'RunModerationAudioRequestBodyConfig', - 'categories': 'list[str]' - } - - attribute_map = { - 'data': 'data', - 'url': 'url', - 'config': 'config', - 'categories': 'categories' - } - - def __init__(self, data=None, url=None, config=None, categories=None): - """RunModerationAudioRequestBody - - The model defined in huaweicloud sdk - - :param data: 与url二选一 语音文件Base64编码字符串。要求base64编码后大小不超过4M。语音时长不超过1分钟。 - :type data: str - :param url: 与data二选一 语音的URL路径,目前支持对服务授权访问华为云上OBS的URL,华为云上OBS提供的临时授权访问的URL和匿名公开授权的URL。 OBS服务的访问权限设置请参见配置OBS访问权限。 出于安全的考虑,当前服务不支持从公网上任意URL读取数据。 - :type url: str - :param config: - :type config: :class:`huaweicloudsdkmoderation.v2.RunModerationAudioRequestBodyConfig` - :param categories: 审核场景。 当前支持的场景有默认场景和用户自定义场景: ● 默认场景为: – politics:涉政 – porn:涉黄 – ad:广告 – abuse:辱骂 – contraband:违禁品 ● 用户自定义场景为:自定义词库。 说明 自定义词库的创建和使用请参见配置自定义词库。 - :type categories: list[str] - """ - - - - self._data = None - self._url = None - self._config = None - self._categories = None - self.discriminator = None - - if data is not None: - self.data = data - if url is not None: - self.url = url - self.config = config - if categories is not None: - self.categories = categories - - @property - def data(self): - """Gets the data of this RunModerationAudioRequestBody. - - 与url二选一 语音文件Base64编码字符串。要求base64编码后大小不超过4M。语音时长不超过1分钟。 - - :return: The data of this RunModerationAudioRequestBody. - :rtype: str - """ - return self._data - - @data.setter - def data(self, data): - """Sets the data of this RunModerationAudioRequestBody. - - 与url二选一 语音文件Base64编码字符串。要求base64编码后大小不超过4M。语音时长不超过1分钟。 - - :param data: The data of this RunModerationAudioRequestBody. - :type data: str - """ - self._data = data - - @property - def url(self): - """Gets the url of this RunModerationAudioRequestBody. - - 与data二选一 语音的URL路径,目前支持对服务授权访问华为云上OBS的URL,华为云上OBS提供的临时授权访问的URL和匿名公开授权的URL。 OBS服务的访问权限设置请参见配置OBS访问权限。 出于安全的考虑,当前服务不支持从公网上任意URL读取数据。 - - :return: The url of this RunModerationAudioRequestBody. - :rtype: str - """ - return self._url - - @url.setter - def url(self, url): - """Sets the url of this RunModerationAudioRequestBody. - - 与data二选一 语音的URL路径,目前支持对服务授权访问华为云上OBS的URL,华为云上OBS提供的临时授权访问的URL和匿名公开授权的URL。 OBS服务的访问权限设置请参见配置OBS访问权限。 出于安全的考虑,当前服务不支持从公网上任意URL读取数据。 - - :param url: The url of this RunModerationAudioRequestBody. - :type url: str - """ - self._url = url - - @property - def config(self): - """Gets the config of this RunModerationAudioRequestBody. - - :return: The config of this RunModerationAudioRequestBody. - :rtype: :class:`huaweicloudsdkmoderation.v2.RunModerationAudioRequestBodyConfig` - """ - return self._config - - @config.setter - def config(self, config): - """Sets the config of this RunModerationAudioRequestBody. - - :param config: The config of this RunModerationAudioRequestBody. - :type config: :class:`huaweicloudsdkmoderation.v2.RunModerationAudioRequestBodyConfig` - """ - self._config = config - - @property - def categories(self): - """Gets the categories of this RunModerationAudioRequestBody. - - 审核场景。 当前支持的场景有默认场景和用户自定义场景: ● 默认场景为: – politics:涉政 – porn:涉黄 – ad:广告 – abuse:辱骂 – contraband:违禁品 ● 用户自定义场景为:自定义词库。 说明 自定义词库的创建和使用请参见配置自定义词库。 - - :return: The categories of this RunModerationAudioRequestBody. - :rtype: list[str] - """ - return self._categories - - @categories.setter - def categories(self, categories): - """Sets the categories of this RunModerationAudioRequestBody. - - 审核场景。 当前支持的场景有默认场景和用户自定义场景: ● 默认场景为: – politics:涉政 – porn:涉黄 – ad:广告 – abuse:辱骂 – contraband:违禁品 ● 用户自定义场景为:自定义词库。 说明 自定义词库的创建和使用请参见配置自定义词库。 - - :param categories: The categories of this RunModerationAudioRequestBody. - :type categories: list[str] - """ - self._categories = categories - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, RunModerationAudioRequestBody): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_moderation_audio_request_body_config.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_moderation_audio_request_body_config.py deleted file mode 100644 index 5ae4b19226..0000000000 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_moderation_audio_request_body_config.py +++ /dev/null @@ -1,142 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class RunModerationAudioRequestBodyConfig: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'format': 'str', - '_property': 'str' - } - - attribute_map = { - 'format': 'format', - '_property': 'property' - } - - def __init__(self, format=None, _property=None): - """RunModerationAudioRequestBodyConfig - - The model defined in huaweicloud sdk - - :param format: 支持的语音格式。 枚举值: - pcm16k16bit - pcm8k16bit - ulaw16k8bit - ulaw8k8bit - alaw16k8bit - alaw8k8bit - mp3 - aac - wav - amr - amrwb - :type format: str - :param _property: 所使用的模型特征串。通常是 “语种_采样率_领域”的形式。 采样率需要与音频采样率保持一致。 当前支持如下模型特征串: chinese_8k_common chinese_16k_common - :type _property: str - """ - - - - self._format = None - self.__property = None - self.discriminator = None - - self.format = format - self._property = _property - - @property - def format(self): - """Gets the format of this RunModerationAudioRequestBodyConfig. - - 支持的语音格式。 枚举值: - pcm16k16bit - pcm8k16bit - ulaw16k8bit - ulaw8k8bit - alaw16k8bit - alaw8k8bit - mp3 - aac - wav - amr - amrwb - - :return: The format of this RunModerationAudioRequestBodyConfig. - :rtype: str - """ - return self._format - - @format.setter - def format(self, format): - """Sets the format of this RunModerationAudioRequestBodyConfig. - - 支持的语音格式。 枚举值: - pcm16k16bit - pcm8k16bit - ulaw16k8bit - ulaw8k8bit - alaw16k8bit - alaw8k8bit - mp3 - aac - wav - amr - amrwb - - :param format: The format of this RunModerationAudioRequestBodyConfig. - :type format: str - """ - self._format = format - - @property - def _property(self): - """Gets the _property of this RunModerationAudioRequestBodyConfig. - - 所使用的模型特征串。通常是 “语种_采样率_领域”的形式。 采样率需要与音频采样率保持一致。 当前支持如下模型特征串: chinese_8k_common chinese_16k_common - - :return: The _property of this RunModerationAudioRequestBodyConfig. - :rtype: str - """ - return self.__property - - @_property.setter - def _property(self, _property): - """Sets the _property of this RunModerationAudioRequestBodyConfig. - - 所使用的模型特征串。通常是 “语种_采样率_领域”的形式。 采样率需要与音频采样率保持一致。 当前支持如下模型特征串: chinese_8k_common chinese_16k_common - - :param _property: The _property of this RunModerationAudioRequestBodyConfig. - :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, RunModerationAudioRequestBodyConfig): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_moderation_audio_response_body_result.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_moderation_audio_response_body_result.py deleted file mode 100644 index 6a76ee15c5..0000000000 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_moderation_audio_response_body_result.py +++ /dev/null @@ -1,140 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class RunModerationAudioResponseBodyResult: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'detail': 'RunModerationAudioResponseBodyResultDetail', - 'suggestion': 'str' - } - - attribute_map = { - 'detail': 'detail', - 'suggestion': 'suggestion' - } - - def __init__(self, detail=None, suggestion=None): - """RunModerationAudioResponseBodyResult - - The model defined in huaweicloud sdk - - :param detail: - :type detail: :class:`huaweicloudsdkmoderation.v2.RunModerationAudioResponseBodyResultDetail` - :param suggestion: 检测结果是否通过。 block:包含敏感信息,不通过。 pass:不包含敏感信息,通过。 review:需要人工复查 - :type suggestion: str - """ - - - - self._detail = None - self._suggestion = None - self.discriminator = None - - if detail is not None: - self.detail = detail - if suggestion is not None: - self.suggestion = suggestion - - @property - def detail(self): - """Gets the detail of this RunModerationAudioResponseBodyResult. - - :return: The detail of this RunModerationAudioResponseBodyResult. - :rtype: :class:`huaweicloudsdkmoderation.v2.RunModerationAudioResponseBodyResultDetail` - """ - return self._detail - - @detail.setter - def detail(self, detail): - """Sets the detail of this RunModerationAudioResponseBodyResult. - - :param detail: The detail of this RunModerationAudioResponseBodyResult. - :type detail: :class:`huaweicloudsdkmoderation.v2.RunModerationAudioResponseBodyResultDetail` - """ - self._detail = detail - - @property - def suggestion(self): - """Gets the suggestion of this RunModerationAudioResponseBodyResult. - - 检测结果是否通过。 block:包含敏感信息,不通过。 pass:不包含敏感信息,通过。 review:需要人工复查 - - :return: The suggestion of this RunModerationAudioResponseBodyResult. - :rtype: str - """ - return self._suggestion - - @suggestion.setter - def suggestion(self, suggestion): - """Sets the suggestion of this RunModerationAudioResponseBodyResult. - - 检测结果是否通过。 block:包含敏感信息,不通过。 pass:不包含敏感信息,通过。 review:需要人工复查 - - :param suggestion: The suggestion of this RunModerationAudioResponseBodyResult. - :type suggestion: str - """ - self._suggestion = suggestion - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, RunModerationAudioResponseBodyResult): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_moderation_audio_response_body_result_detail.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_moderation_audio_response_body_result_detail.py deleted file mode 100644 index df3beb9a00..0000000000 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_moderation_audio_response_body_result_detail.py +++ /dev/null @@ -1,140 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class RunModerationAudioResponseBodyResultDetail: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'text': 'object', - 'audio': 'RunModerationAudioResponseBodyResultDetailAudio' - } - - attribute_map = { - 'text': 'text', - 'audio': 'audio' - } - - def __init__(self, text=None, audio=None): - """RunModerationAudioResponseBodyResultDetail - - The model defined in huaweicloud sdk - - :param text: 返回的语音转文本后审核结果详细信息: ● politics:涉政敏感词列表。 ● porn:涉黄敏感词列表。 ● ad:广告敏感词列表。 ● abuse:辱骂敏感词列表。 ● contraband:违禁品敏感词列表 - :type text: object - :param audio: - :type audio: :class:`huaweicloudsdkmoderation.v2.RunModerationAudioResponseBodyResultDetailAudio` - """ - - - - self._text = None - self._audio = None - self.discriminator = None - - if text is not None: - self.text = text - if audio is not None: - self.audio = audio - - @property - def text(self): - """Gets the text of this RunModerationAudioResponseBodyResultDetail. - - 返回的语音转文本后审核结果详细信息: ● politics:涉政敏感词列表。 ● porn:涉黄敏感词列表。 ● ad:广告敏感词列表。 ● abuse:辱骂敏感词列表。 ● contraband:违禁品敏感词列表 - - :return: The text of this RunModerationAudioResponseBodyResultDetail. - :rtype: object - """ - return self._text - - @text.setter - def text(self, text): - """Sets the text of this RunModerationAudioResponseBodyResultDetail. - - 返回的语音转文本后审核结果详细信息: ● politics:涉政敏感词列表。 ● porn:涉黄敏感词列表。 ● ad:广告敏感词列表。 ● abuse:辱骂敏感词列表。 ● contraband:违禁品敏感词列表 - - :param text: The text of this RunModerationAudioResponseBodyResultDetail. - :type text: object - """ - self._text = text - - @property - def audio(self): - """Gets the audio of this RunModerationAudioResponseBodyResultDetail. - - :return: The audio of this RunModerationAudioResponseBodyResultDetail. - :rtype: :class:`huaweicloudsdkmoderation.v2.RunModerationAudioResponseBodyResultDetailAudio` - """ - return self._audio - - @audio.setter - def audio(self, audio): - """Sets the audio of this RunModerationAudioResponseBodyResultDetail. - - :param audio: The audio of this RunModerationAudioResponseBodyResultDetail. - :type audio: :class:`huaweicloudsdkmoderation.v2.RunModerationAudioResponseBodyResultDetailAudio` - """ - self._audio = audio - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, RunModerationAudioResponseBodyResultDetail): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_moderation_audio_response_body_result_detail_audio.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_moderation_audio_response_body_result_detail_audio.py deleted file mode 100644 index a5e175af6a..0000000000 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_moderation_audio_response_body_result_detail_audio.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class RunModerationAudioResponseBodyResultDetailAudio: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'porn': 'list[PornModerationResultDetail]' - } - - attribute_map = { - 'porn': 'porn' - } - - def __init__(self, porn=None): - """RunModerationAudioResponseBodyResultDetailAudio - - The model defined in huaweicloud sdk - - :param porn: 涉黄场景审核结果 - :type porn: list[:class:`huaweicloudsdkmoderation.v2.PornModerationResultDetail`] - """ - - - - self._porn = None - self.discriminator = None - - if porn is not None: - self.porn = porn - - @property - def porn(self): - """Gets the porn of this RunModerationAudioResponseBodyResultDetailAudio. - - 涉黄场景审核结果 - - :return: The porn of this RunModerationAudioResponseBodyResultDetailAudio. - :rtype: list[:class:`huaweicloudsdkmoderation.v2.PornModerationResultDetail`] - """ - return self._porn - - @porn.setter - def porn(self, porn): - """Sets the porn of this RunModerationAudioResponseBodyResultDetailAudio. - - 涉黄场景审核结果 - - :param porn: The porn of this RunModerationAudioResponseBodyResultDetailAudio. - :type porn: list[:class:`huaweicloudsdkmoderation.v2.PornModerationResultDetail`] - """ - self._porn = porn - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, RunModerationAudioResponseBodyResultDetailAudio): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_text_moderation_response.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_text_moderation_response.py deleted file mode 100644 index 3e8754dd04..0000000000 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_text_moderation_response.py +++ /dev/null @@ -1,112 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.sdk_response import SdkResponse -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class RunTextModerationResponse(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': 'TextDetectionResponseResult' - } - - attribute_map = { - 'result': 'result' - } - - def __init__(self, result=None): - """RunTextModerationResponse - - The model defined in huaweicloud sdk - - :param result: - :type result: :class:`huaweicloudsdkmoderation.v2.TextDetectionResponseResult` - """ - - super(RunTextModerationResponse, self).__init__() - - self._result = None - self.discriminator = None - - if result is not None: - self.result = result - - @property - def result(self): - """Gets the result of this RunTextModerationResponse. - - :return: The result of this RunTextModerationResponse. - :rtype: :class:`huaweicloudsdkmoderation.v2.TextDetectionResponseResult` - """ - return self._result - - @result.setter - def result(self, result): - """Sets the result of this RunTextModerationResponse. - - :param result: The result of this RunTextModerationResponse. - :type result: :class:`huaweicloudsdkmoderation.v2.TextDetectionResponseResult` - """ - self._result = result - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, RunTextModerationResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/task_sumbit_req.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/task_sumbit_req.py deleted file mode 100644 index eebf6f473f..0000000000 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/task_sumbit_req.py +++ /dev/null @@ -1,230 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class TaskSumbitReq: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'urls': 'list[str]', - 'categories': 'list[str]', - 'moderation_rule': 'str', - 'ad_categories': 'list[str]', - 'show_ocr_text': 'bool' - } - - attribute_map = { - 'urls': 'urls', - 'categories': 'categories', - 'moderation_rule': 'moderation_rule', - 'ad_categories': 'ad_categories', - 'show_ocr_text': 'show_ocr_text' - } - - def __init__(self, urls=None, categories=None, moderation_rule=None, ad_categories=None, show_ocr_text=None): - """TaskSumbitReq - - The model defined in huaweicloud sdk - - :param urls: 图片的URL路径,目前支持: - 公网HTTP/HTTPS URL - 华为云OBS提供的URL,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权。详请参见[配置OBS访问权限](https://support.huaweicloud.com/api-moderation/moderation_03_0020.html)。 > 图片的URL路径列表最多支持500个URL地址。接口响应时间依赖图片的下载时间,如果图片下载时间过长,会返回接口调用失败。请保证被检测图片所在的存储服务稳定可靠,建议您使用华为云OBS存储。 - :type urls: list[str] - :param categories: 检测场景。 - politics:是否涉及政治人物的检测。 - terrorism:是否包含涉政敏感人物、涉政暴恐元素的检测。 - porn:是否包含涉黄内容元素的检测。 可通过配置上述场景,来完成对应场景元素的检测。 为空或无此参数时默认检测politics和terrorism(不包含porn)。 - :type categories: list[str] - :param moderation_rule: 图像审核规则名称,默认使用default规则。 审核规则的创建和使用请参见[配置审核规则](https://support.huaweicloud.com/api-moderation/moderation_03_0063.html)。 - :type moderation_rule: str - :param ad_categories: 图文审核检测场景。当categories包含ad时,该参数生效。 当前支持的场景有系统场景和用户自定义场景: - 系统场景为: - qr_code:二维码 - politics:涉政 - porn:涉黄 - ad:广告 - abuse:辱骂 - contraband:违禁品 - 用户自定义场景为:自定义黑名单词库。 自定义词库的创建和使用请参见[配置自定义词库](https://support.huaweicloud.com/api-moderation/moderation_03_0027.html)。 - :type ad_categories: list[str] - :param show_ocr_text: 是否返回ocr识别的结果。 - :type show_ocr_text: bool - """ - - - - self._urls = None - self._categories = None - self._moderation_rule = None - self._ad_categories = None - self._show_ocr_text = None - self.discriminator = None - - self.urls = urls - if categories is not None: - self.categories = categories - if moderation_rule is not None: - self.moderation_rule = moderation_rule - if ad_categories is not None: - self.ad_categories = ad_categories - if show_ocr_text is not None: - self.show_ocr_text = show_ocr_text - - @property - def urls(self): - """Gets the urls of this TaskSumbitReq. - - 图片的URL路径,目前支持: - 公网HTTP/HTTPS URL - 华为云OBS提供的URL,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权。详请参见[配置OBS访问权限](https://support.huaweicloud.com/api-moderation/moderation_03_0020.html)。 > 图片的URL路径列表最多支持500个URL地址。接口响应时间依赖图片的下载时间,如果图片下载时间过长,会返回接口调用失败。请保证被检测图片所在的存储服务稳定可靠,建议您使用华为云OBS存储。 - - :return: The urls of this TaskSumbitReq. - :rtype: list[str] - """ - return self._urls - - @urls.setter - def urls(self, urls): - """Sets the urls of this TaskSumbitReq. - - 图片的URL路径,目前支持: - 公网HTTP/HTTPS URL - 华为云OBS提供的URL,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权。详请参见[配置OBS访问权限](https://support.huaweicloud.com/api-moderation/moderation_03_0020.html)。 > 图片的URL路径列表最多支持500个URL地址。接口响应时间依赖图片的下载时间,如果图片下载时间过长,会返回接口调用失败。请保证被检测图片所在的存储服务稳定可靠,建议您使用华为云OBS存储。 - - :param urls: The urls of this TaskSumbitReq. - :type urls: list[str] - """ - self._urls = urls - - @property - def categories(self): - """Gets the categories of this TaskSumbitReq. - - 检测场景。 - politics:是否涉及政治人物的检测。 - terrorism:是否包含涉政敏感人物、涉政暴恐元素的检测。 - porn:是否包含涉黄内容元素的检测。 可通过配置上述场景,来完成对应场景元素的检测。 为空或无此参数时默认检测politics和terrorism(不包含porn)。 - - :return: The categories of this TaskSumbitReq. - :rtype: list[str] - """ - return self._categories - - @categories.setter - def categories(self, categories): - """Sets the categories of this TaskSumbitReq. - - 检测场景。 - politics:是否涉及政治人物的检测。 - terrorism:是否包含涉政敏感人物、涉政暴恐元素的检测。 - porn:是否包含涉黄内容元素的检测。 可通过配置上述场景,来完成对应场景元素的检测。 为空或无此参数时默认检测politics和terrorism(不包含porn)。 - - :param categories: The categories of this TaskSumbitReq. - :type categories: list[str] - """ - self._categories = categories - - @property - def moderation_rule(self): - """Gets the moderation_rule of this TaskSumbitReq. - - 图像审核规则名称,默认使用default规则。 审核规则的创建和使用请参见[配置审核规则](https://support.huaweicloud.com/api-moderation/moderation_03_0063.html)。 - - :return: The moderation_rule of this TaskSumbitReq. - :rtype: str - """ - return self._moderation_rule - - @moderation_rule.setter - def moderation_rule(self, moderation_rule): - """Sets the moderation_rule of this TaskSumbitReq. - - 图像审核规则名称,默认使用default规则。 审核规则的创建和使用请参见[配置审核规则](https://support.huaweicloud.com/api-moderation/moderation_03_0063.html)。 - - :param moderation_rule: The moderation_rule of this TaskSumbitReq. - :type moderation_rule: str - """ - self._moderation_rule = moderation_rule - - @property - def ad_categories(self): - """Gets the ad_categories of this TaskSumbitReq. - - 图文审核检测场景。当categories包含ad时,该参数生效。 当前支持的场景有系统场景和用户自定义场景: - 系统场景为: - qr_code:二维码 - politics:涉政 - porn:涉黄 - ad:广告 - abuse:辱骂 - contraband:违禁品 - 用户自定义场景为:自定义黑名单词库。 自定义词库的创建和使用请参见[配置自定义词库](https://support.huaweicloud.com/api-moderation/moderation_03_0027.html)。 - - :return: The ad_categories of this TaskSumbitReq. - :rtype: list[str] - """ - return self._ad_categories - - @ad_categories.setter - def ad_categories(self, ad_categories): - """Sets the ad_categories of this TaskSumbitReq. - - 图文审核检测场景。当categories包含ad时,该参数生效。 当前支持的场景有系统场景和用户自定义场景: - 系统场景为: - qr_code:二维码 - politics:涉政 - porn:涉黄 - ad:广告 - abuse:辱骂 - contraband:违禁品 - 用户自定义场景为:自定义黑名单词库。 自定义词库的创建和使用请参见[配置自定义词库](https://support.huaweicloud.com/api-moderation/moderation_03_0027.html)。 - - :param ad_categories: The ad_categories of this TaskSumbitReq. - :type ad_categories: list[str] - """ - self._ad_categories = ad_categories - - @property - def show_ocr_text(self): - """Gets the show_ocr_text of this TaskSumbitReq. - - 是否返回ocr识别的结果。 - - :return: The show_ocr_text of this TaskSumbitReq. - :rtype: bool - """ - return self._show_ocr_text - - @show_ocr_text.setter - def show_ocr_text(self, show_ocr_text): - """Sets the show_ocr_text of this TaskSumbitReq. - - 是否返回ocr识别的结果。 - - :param show_ocr_text: The show_ocr_text of this TaskSumbitReq. - :type show_ocr_text: bool - """ - self._show_ocr_text = show_ocr_text - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, TaskSumbitReq): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/text_detection_req.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/text_detection_req.py deleted file mode 100644 index 4033c27502..0000000000 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/text_detection_req.py +++ /dev/null @@ -1,172 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class TextDetectionReq: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'categories': 'list[str]', - 'white_glossaries': 'list[str]', - 'items': 'list[TextDetectionItemsReq]' - } - - attribute_map = { - 'categories': 'categories', - 'white_glossaries': 'white_glossaries', - 'items': 'items' - } - - def __init__(self, categories=None, white_glossaries=None, items=None): - """TextDetectionReq - - The model defined in huaweicloud sdk - - :param categories: 检测场景。 当前支持的场景有默认场景和用户自定义场景: - 默认场景为: * politics:涉政 * porn:涉黄 * ad:广告 * abuse:辱骂 * contraband:违禁品 * flood:灌水 - 用户自定义场景为:自定义黑名单词库。 > - 自定义词库的创建和使用请参见[配置自定义词库](https://support.huaweicloud.com/api-moderation/moderation_03_0027.html)。 > - flood场景不支持使用自定义白名单词库。 - :type categories: list[str] - :param white_glossaries: 启用的白名单列表 当前白名单使用规则为: - 不传参数\"white_glossaries\": * 表示默认使用2022-09-02 16:00:00之前创建的白名单词库 - 传参数\"white_glossaries\": * 参数为空时不使用任何白名单词库 * 参数不为空时使用传入的白名单词库 > - 自定义词库的创建和使用请参见[[配置自定义词库](https://support.huaweicloud.com/api-moderation/moderation_03_0027.html)](tag:hc)。 - :type white_glossaries: list[str] - :param items: 待检测的文本列表,目前暂时每次只支持传一个item。 - :type items: list[:class:`huaweicloudsdkmoderation.v2.TextDetectionItemsReq`] - """ - - - - self._categories = None - self._white_glossaries = None - self._items = None - self.discriminator = None - - if categories is not None: - self.categories = categories - if white_glossaries is not None: - self.white_glossaries = white_glossaries - self.items = items - - @property - def categories(self): - """Gets the categories of this TextDetectionReq. - - 检测场景。 当前支持的场景有默认场景和用户自定义场景: - 默认场景为: * politics:涉政 * porn:涉黄 * ad:广告 * abuse:辱骂 * contraband:违禁品 * flood:灌水 - 用户自定义场景为:自定义黑名单词库。 > - 自定义词库的创建和使用请参见[配置自定义词库](https://support.huaweicloud.com/api-moderation/moderation_03_0027.html)。 > - flood场景不支持使用自定义白名单词库。 - - :return: The categories of this TextDetectionReq. - :rtype: list[str] - """ - return self._categories - - @categories.setter - def categories(self, categories): - """Sets the categories of this TextDetectionReq. - - 检测场景。 当前支持的场景有默认场景和用户自定义场景: - 默认场景为: * politics:涉政 * porn:涉黄 * ad:广告 * abuse:辱骂 * contraband:违禁品 * flood:灌水 - 用户自定义场景为:自定义黑名单词库。 > - 自定义词库的创建和使用请参见[配置自定义词库](https://support.huaweicloud.com/api-moderation/moderation_03_0027.html)。 > - flood场景不支持使用自定义白名单词库。 - - :param categories: The categories of this TextDetectionReq. - :type categories: list[str] - """ - self._categories = categories - - @property - def white_glossaries(self): - """Gets the white_glossaries of this TextDetectionReq. - - 启用的白名单列表 当前白名单使用规则为: - 不传参数\"white_glossaries\": * 表示默认使用2022-09-02 16:00:00之前创建的白名单词库 - 传参数\"white_glossaries\": * 参数为空时不使用任何白名单词库 * 参数不为空时使用传入的白名单词库 > - 自定义词库的创建和使用请参见[[配置自定义词库](https://support.huaweicloud.com/api-moderation/moderation_03_0027.html)](tag:hc)。 - - :return: The white_glossaries of this TextDetectionReq. - :rtype: list[str] - """ - return self._white_glossaries - - @white_glossaries.setter - def white_glossaries(self, white_glossaries): - """Sets the white_glossaries of this TextDetectionReq. - - 启用的白名单列表 当前白名单使用规则为: - 不传参数\"white_glossaries\": * 表示默认使用2022-09-02 16:00:00之前创建的白名单词库 - 传参数\"white_glossaries\": * 参数为空时不使用任何白名单词库 * 参数不为空时使用传入的白名单词库 > - 自定义词库的创建和使用请参见[[配置自定义词库](https://support.huaweicloud.com/api-moderation/moderation_03_0027.html)](tag:hc)。 - - :param white_glossaries: The white_glossaries of this TextDetectionReq. - :type white_glossaries: list[str] - """ - self._white_glossaries = white_glossaries - - @property - def items(self): - """Gets the items of this TextDetectionReq. - - 待检测的文本列表,目前暂时每次只支持传一个item。 - - :return: The items of this TextDetectionReq. - :rtype: list[:class:`huaweicloudsdkmoderation.v2.TextDetectionItemsReq`] - """ - return self._items - - @items.setter - def items(self, items): - """Sets the items of this TextDetectionReq. - - 待检测的文本列表,目前暂时每次只支持传一个item。 - - :param items: The items of this TextDetectionReq. - :type items: list[:class:`huaweicloudsdkmoderation.v2.TextDetectionItemsReq`] - """ - self._items = items - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, TextDetectionReq): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/text_detection_response_result.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/text_detection_response_result.py deleted file mode 100644 index 4661c46a48..0000000000 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/text_detection_response_result.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class TextDetectionResponseResult: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'suggestion': 'str', - 'detail': 'object' - } - - attribute_map = { - 'suggestion': 'suggestion', - 'detail': 'detail' - } - - def __init__(self, suggestion=None, detail=None): - """TextDetectionResponseResult - - The model defined in huaweicloud sdk - - :param suggestion: 检测结果是否通过。 block:包含敏感信息,不通过。 pass:不包含敏感信息,通过。 review:需要人工复查。 - :type suggestion: str - :param detail: 返回的相关检测结果详细信息: - politics:涉政敏感词列表。 - porn:涉黄敏感词列表。 - ad:广告敏感词列表。 - abuse:辱骂敏感词列表。 - contraband:违禁品敏感词列表。 - flood:灌水文本。 > - 灌水文本最多显示200个字符。 > - 每个场景的返回结果的详细信息是指命中词,不是返回全部文本。 - :type detail: object - """ - - - - self._suggestion = None - self._detail = None - self.discriminator = None - - if suggestion is not None: - self.suggestion = suggestion - if detail is not None: - self.detail = detail - - @property - def suggestion(self): - """Gets the suggestion of this TextDetectionResponseResult. - - 检测结果是否通过。 block:包含敏感信息,不通过。 pass:不包含敏感信息,通过。 review:需要人工复查。 - - :return: The suggestion of this TextDetectionResponseResult. - :rtype: str - """ - return self._suggestion - - @suggestion.setter - def suggestion(self, suggestion): - """Sets the suggestion of this TextDetectionResponseResult. - - 检测结果是否通过。 block:包含敏感信息,不通过。 pass:不包含敏感信息,通过。 review:需要人工复查。 - - :param suggestion: The suggestion of this TextDetectionResponseResult. - :type suggestion: str - """ - self._suggestion = suggestion - - @property - def detail(self): - """Gets the detail of this TextDetectionResponseResult. - - 返回的相关检测结果详细信息: - politics:涉政敏感词列表。 - porn:涉黄敏感词列表。 - ad:广告敏感词列表。 - abuse:辱骂敏感词列表。 - contraband:违禁品敏感词列表。 - flood:灌水文本。 > - 灌水文本最多显示200个字符。 > - 每个场景的返回结果的详细信息是指命中词,不是返回全部文本。 - - :return: The detail of this TextDetectionResponseResult. - :rtype: object - """ - return self._detail - - @detail.setter - def detail(self, detail): - """Sets the detail of this TextDetectionResponseResult. - - 返回的相关检测结果详细信息: - politics:涉政敏感词列表。 - porn:涉黄敏感词列表。 - ad:广告敏感词列表。 - abuse:辱骂敏感词列表。 - contraband:违禁品敏感词列表。 - flood:灌水文本。 > - 灌水文本最多显示200个字符。 > - 每个场景的返回结果的详细信息是指命中词,不是返回全部文本。 - - :param detail: The detail of this TextDetectionResponseResult. - :type detail: object - """ - self._detail = detail - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, TextDetectionResponseResult): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/moderation_async_client.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/moderation_async_client.py deleted file mode 100644 index b6cd4524c4..0000000000 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/moderation_async_client.py +++ /dev/null @@ -1,542 +0,0 @@ -# coding: utf-8 - -from __future__ import absolute_import - -import importlib -import warnings - -from huaweicloudsdkcore.client import Client, ClientBuilder -from huaweicloudsdkcore.utils import http_utils -from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest -try: - from huaweicloudsdkcore.invoker.invoker import AsyncInvoker -except ImportError as e: - warnings.warn(str(e) + ", please check if you are using the same versions of 'huaweicloudsdkcore' and 'huaweicloudsdkmoderation'") - - -class ModerationAsyncClient(Client): - def __init__(self): - super(ModerationAsyncClient, self).__init__() - self.model_package = importlib.import_module("huaweicloudsdkmoderation.v2.model") - - @classmethod - def new_builder(cls, clazz=None): - if not clazz: - client_builder = ClientBuilder(cls) - else: - if clazz.__name__ != "ModerationAsyncClient": - raise TypeError("client type error, support client type is ModerationAsyncClient") - client_builder = ClientBuilder(clazz) - - - - return client_builder - - def run_check_result_async(self, request): - """处理结果查询 - - 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。 - > 任务最长保留时间为30分钟,过期后会被清理掉。建议在任务提交后,每30s进行一次周期查询。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for RunCheckResult - :type request: :class:`huaweicloudsdkmoderation.v2.RunCheckResultRequest` - :rtype: :class:`huaweicloudsdkmoderation.v2.RunCheckResultResponse` - """ - http_info = self._run_check_result_http_info(request) - return self._call_api(**http_info) - - def run_check_result_async_invoker(self, request): - http_info = self._run_check_result_http_info(request) - return AsyncInvoker(self, http_info) - - def _run_check_result_http_info(self, request): - http_info = { - "method": "GET", - "resource_path": "/v2/{project_id}/moderation/image/batch", - "request_type": request.__class__.__name__, - "response_type": "RunCheckResultResponse" - } - - 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 'job_id' in local_var_params: - query_params.append(('job_id', local_var_params['job_id'])) - - header_params = {} - - form_params = {} - - body = None - if isinstance(request, SdkStreamRequest): - body = request.get_file_stream() - - response_headers = [] - - header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) - - auth_settings = [] - - http_info["cname"] = cname - http_info["collection_formats"] = collection_formats - http_info["path_params"] = path_params - http_info["query_params"] = query_params - http_info["header_params"] = header_params - http_info["post_params"] = form_params - http_info["body"] = body - http_info["response_headers"] = response_headers - - return http_info - - def run_check_task_jobs_async(self, request): - """任务列表查询 - - 查询批量图像内容审核任务列表,可通过指定任务状态查询来对任务列表进行过滤。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for RunCheckTaskJobs - :type request: :class:`huaweicloudsdkmoderation.v2.RunCheckTaskJobsRequest` - :rtype: :class:`huaweicloudsdkmoderation.v2.RunCheckTaskJobsResponse` - """ - http_info = self._run_check_task_jobs_http_info(request) - return self._call_api(**http_info) - - def run_check_task_jobs_async_invoker(self, request): - http_info = self._run_check_task_jobs_http_info(request) - return AsyncInvoker(self, http_info) - - def _run_check_task_jobs_http_info(self, request): - http_info = { - "method": "GET", - "resource_path": "/v2/{project_id}/moderation/image/batch/jobs", - "request_type": request.__class__.__name__, - "response_type": "RunCheckTaskJobsResponse" - } - - 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 'status' in local_var_params: - query_params.append(('status', local_var_params['status'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) - - header_params = {} - - form_params = {} - - body = 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 run_image_batch_moderation_async(self, request): - """图像内容审核(批量) - - 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for RunImageBatchModeration - :type request: :class:`huaweicloudsdkmoderation.v2.RunImageBatchModerationRequest` - :rtype: :class:`huaweicloudsdkmoderation.v2.RunImageBatchModerationResponse` - """ - http_info = self._run_image_batch_moderation_http_info(request) - return self._call_api(**http_info) - - def run_image_batch_moderation_async_invoker(self, request): - http_info = self._run_image_batch_moderation_http_info(request) - return AsyncInvoker(self, http_info) - - def _run_image_batch_moderation_http_info(self, request): - http_info = { - "method": "POST", - "resource_path": "/v2/{project_id}/moderation/image/batch", - "request_type": request.__class__.__name__, - "response_type": "RunImageBatchModerationResponse" - } - - 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 run_image_moderation_async(self, request): - """图像内容审核 - - 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for RunImageModeration - :type request: :class:`huaweicloudsdkmoderation.v2.RunImageModerationRequest` - :rtype: :class:`huaweicloudsdkmoderation.v2.RunImageModerationResponse` - """ - http_info = self._run_image_moderation_http_info(request) - return self._call_api(**http_info) - - def run_image_moderation_async_invoker(self, request): - http_info = self._run_image_moderation_http_info(request) - return AsyncInvoker(self, http_info) - - def _run_image_moderation_http_info(self, request): - http_info = { - "method": "POST", - "resource_path": "/v2/{project_id}/moderation/image", - "request_type": request.__class__.__name__, - "response_type": "RunImageModerationResponse" - } - - 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 run_moderation_audio_async(self, request): - """语音内容审核 - - 分析并识别用户上传的语音内容是否有敏感内容(如色情、政治等),并将识别结果 返回给用户。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for RunModerationAudio - :type request: :class:`huaweicloudsdkmoderation.v2.RunModerationAudioRequest` - :rtype: :class:`huaweicloudsdkmoderation.v2.RunModerationAudioResponse` - """ - http_info = self._run_moderation_audio_http_info(request) - return self._call_api(**http_info) - - def run_moderation_audio_async_invoker(self, request): - http_info = self._run_moderation_audio_http_info(request) - return AsyncInvoker(self, http_info) - - def _run_moderation_audio_http_info(self, request): - http_info = { - "method": "POST", - "resource_path": "/v2/{project_id}/moderation/voice", - "request_type": request.__class__.__name__, - "response_type": "RunModerationAudioResponse" - } - - 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 run_task_sumbit_async(self, request): - """任务提交 - - 提交批量图像内容审核任务,返回任务标识,任务标识可用于查询任务结果。此接口为异步接口,相对于批量接口,支持更大图片列表批次。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for RunTaskSumbit - :type request: :class:`huaweicloudsdkmoderation.v2.RunTaskSumbitRequest` - :rtype: :class:`huaweicloudsdkmoderation.v2.RunTaskSumbitResponse` - """ - http_info = self._run_task_sumbit_http_info(request) - return self._call_api(**http_info) - - def run_task_sumbit_async_invoker(self, request): - http_info = self._run_task_sumbit_http_info(request) - return AsyncInvoker(self, http_info) - - def _run_task_sumbit_http_info(self, request): - http_info = { - "method": "POST", - "resource_path": "/v2/{project_id}/moderation/image/batch/jobs", - "request_type": request.__class__.__name__, - "response_type": "RunTaskSumbitResponse" - } - - 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 run_text_moderation_async(self, request): - """文本内容审核 - - 分析并识别用户上传的文本内容是否有敏感内容(如色情、政治等),并将识别结果返回给用户。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for RunTextModeration - :type request: :class:`huaweicloudsdkmoderation.v2.RunTextModerationRequest` - :rtype: :class:`huaweicloudsdkmoderation.v2.RunTextModerationResponse` - """ - http_info = self._run_text_moderation_http_info(request) - return self._call_api(**http_info) - - def run_text_moderation_async_invoker(self, request): - http_info = self._run_text_moderation_http_info(request) - return AsyncInvoker(self, http_info) - - def _run_text_moderation_http_info(self, request): - http_info = { - "method": "POST", - "resource_path": "/v2/{project_id}/moderation/text", - "request_type": request.__class__.__name__, - "response_type": "RunTextModerationResponse" - } - - 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 _call_api(self, **kwargs): - try: - kwargs["async_request"] = True - return self.do_http_request(**kwargs) - except TypeError: - import inspect - params = inspect.signature(self.do_http_request).parameters - http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs} - return self.do_http_request(**http_info) - - def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, - post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None, - collection_formats=None, request_type=None): - """Makes the HTTP request and returns deserialized data. - - :param resource_path: Path to method endpoint. - :param method: Method to call. - :param path_params: Path parameters in the url. - :param query_params: Query parameters in the url. - :param header_params: Header parameters to be - placed in the request header. - :param body: Request body. - :param post_params: Request post form parameters, - for `application/x-www-form-urlencoded`, `multipart/form-data`. - :param cname: Used for obs endpoint. - :param auth_settings: Auth Settings names for the request. - :param response_type: Response data type. - :param response_headers: Header should be added to response data. - :param collection_formats: dict of collection formats for path, query, - header, and post parameters. - :param request_type: Request data type. - :return: - Return the response directly. - """ - return self.do_http_request( - method=method, - resource_path=resource_path, - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body, - post_params=post_params, - cname=cname, - response_type=response_type, - response_headers=response_headers, - collection_formats=collection_formats, - request_type=request_type, - async_request=True) diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/moderation_client.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/moderation_client.py deleted file mode 100644 index a25b0130eb..0000000000 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/moderation_client.py +++ /dev/null @@ -1,539 +0,0 @@ -# coding: utf-8 - -from __future__ import absolute_import - -import importlib -import warnings - -from huaweicloudsdkcore.client import Client, ClientBuilder -from huaweicloudsdkcore.utils import http_utils -from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest -try: - from huaweicloudsdkcore.invoker.invoker import SyncInvoker -except ImportError as e: - warnings.warn(str(e) + ", please check if you are using the same versions of 'huaweicloudsdkcore' and 'huaweicloudsdkmoderation'") - - -class ModerationClient(Client): - def __init__(self): - super(ModerationClient, self).__init__() - self.model_package = importlib.import_module("huaweicloudsdkmoderation.v2.model") - - @classmethod - def new_builder(cls, clazz=None): - if not clazz: - client_builder = ClientBuilder(cls) - else: - if clazz.__name__ != "ModerationClient": - raise TypeError("client type error, support client type is ModerationClient") - client_builder = ClientBuilder(clazz) - - - - return client_builder - - def run_check_result(self, request): - """处理结果查询 - - 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。 - > 任务最长保留时间为30分钟,过期后会被清理掉。建议在任务提交后,每30s进行一次周期查询。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for RunCheckResult - :type request: :class:`huaweicloudsdkmoderation.v2.RunCheckResultRequest` - :rtype: :class:`huaweicloudsdkmoderation.v2.RunCheckResultResponse` - """ - http_info = self._run_check_result_http_info(request) - return self._call_api(**http_info) - - def run_check_result_invoker(self, request): - http_info = self._run_check_result_http_info(request) - return SyncInvoker(self, http_info) - - @classmethod - def _run_check_result_http_info(cls, request): - http_info = { - "method": "GET", - "resource_path": "/v2/{project_id}/moderation/image/batch", - "request_type": request.__class__.__name__, - "response_type": "RunCheckResultResponse" - } - - 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 'job_id' in local_var_params: - query_params.append(('job_id', local_var_params['job_id'])) - - header_params = {} - - form_params = {} - - body = None - if isinstance(request, SdkStreamRequest): - body = request.get_file_stream() - - response_headers = [] - - header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) - - auth_settings = [] - - http_info["cname"] = cname - http_info["collection_formats"] = collection_formats - http_info["path_params"] = path_params - http_info["query_params"] = query_params - http_info["header_params"] = header_params - http_info["post_params"] = form_params - http_info["body"] = body - http_info["response_headers"] = response_headers - - return http_info - - def run_check_task_jobs(self, request): - """任务列表查询 - - 查询批量图像内容审核任务列表,可通过指定任务状态查询来对任务列表进行过滤。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for RunCheckTaskJobs - :type request: :class:`huaweicloudsdkmoderation.v2.RunCheckTaskJobsRequest` - :rtype: :class:`huaweicloudsdkmoderation.v2.RunCheckTaskJobsResponse` - """ - http_info = self._run_check_task_jobs_http_info(request) - return self._call_api(**http_info) - - def run_check_task_jobs_invoker(self, request): - http_info = self._run_check_task_jobs_http_info(request) - return SyncInvoker(self, http_info) - - @classmethod - def _run_check_task_jobs_http_info(cls, request): - http_info = { - "method": "GET", - "resource_path": "/v2/{project_id}/moderation/image/batch/jobs", - "request_type": request.__class__.__name__, - "response_type": "RunCheckTaskJobsResponse" - } - - 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 'status' in local_var_params: - query_params.append(('status', local_var_params['status'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) - - header_params = {} - - form_params = {} - - body = 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 run_image_batch_moderation(self, request): - """图像内容审核(批量) - - 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for RunImageBatchModeration - :type request: :class:`huaweicloudsdkmoderation.v2.RunImageBatchModerationRequest` - :rtype: :class:`huaweicloudsdkmoderation.v2.RunImageBatchModerationResponse` - """ - http_info = self._run_image_batch_moderation_http_info(request) - return self._call_api(**http_info) - - def run_image_batch_moderation_invoker(self, request): - http_info = self._run_image_batch_moderation_http_info(request) - return SyncInvoker(self, http_info) - - @classmethod - def _run_image_batch_moderation_http_info(cls, request): - http_info = { - "method": "POST", - "resource_path": "/v2/{project_id}/moderation/image/batch", - "request_type": request.__class__.__name__, - "response_type": "RunImageBatchModerationResponse" - } - - 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 run_image_moderation(self, request): - """图像内容审核 - - 分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for RunImageModeration - :type request: :class:`huaweicloudsdkmoderation.v2.RunImageModerationRequest` - :rtype: :class:`huaweicloudsdkmoderation.v2.RunImageModerationResponse` - """ - http_info = self._run_image_moderation_http_info(request) - return self._call_api(**http_info) - - def run_image_moderation_invoker(self, request): - http_info = self._run_image_moderation_http_info(request) - return SyncInvoker(self, http_info) - - @classmethod - def _run_image_moderation_http_info(cls, request): - http_info = { - "method": "POST", - "resource_path": "/v2/{project_id}/moderation/image", - "request_type": request.__class__.__name__, - "response_type": "RunImageModerationResponse" - } - - 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 run_moderation_audio(self, request): - """语音内容审核 - - 分析并识别用户上传的语音内容是否有敏感内容(如色情、政治等),并将识别结果 返回给用户。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for RunModerationAudio - :type request: :class:`huaweicloudsdkmoderation.v2.RunModerationAudioRequest` - :rtype: :class:`huaweicloudsdkmoderation.v2.RunModerationAudioResponse` - """ - http_info = self._run_moderation_audio_http_info(request) - return self._call_api(**http_info) - - def run_moderation_audio_invoker(self, request): - http_info = self._run_moderation_audio_http_info(request) - return SyncInvoker(self, http_info) - - @classmethod - def _run_moderation_audio_http_info(cls, request): - http_info = { - "method": "POST", - "resource_path": "/v2/{project_id}/moderation/voice", - "request_type": request.__class__.__name__, - "response_type": "RunModerationAudioResponse" - } - - 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 run_task_sumbit(self, request): - """任务提交 - - 提交批量图像内容审核任务,返回任务标识,任务标识可用于查询任务结果。此接口为异步接口,相对于批量接口,支持更大图片列表批次。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for RunTaskSumbit - :type request: :class:`huaweicloudsdkmoderation.v2.RunTaskSumbitRequest` - :rtype: :class:`huaweicloudsdkmoderation.v2.RunTaskSumbitResponse` - """ - http_info = self._run_task_sumbit_http_info(request) - return self._call_api(**http_info) - - def run_task_sumbit_invoker(self, request): - http_info = self._run_task_sumbit_http_info(request) - return SyncInvoker(self, http_info) - - @classmethod - def _run_task_sumbit_http_info(cls, request): - http_info = { - "method": "POST", - "resource_path": "/v2/{project_id}/moderation/image/batch/jobs", - "request_type": request.__class__.__name__, - "response_type": "RunTaskSumbitResponse" - } - - 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 run_text_moderation(self, request): - """文本内容审核 - - 分析并识别用户上传的文本内容是否有敏感内容(如色情、政治等),并将识别结果返回给用户。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for RunTextModeration - :type request: :class:`huaweicloudsdkmoderation.v2.RunTextModerationRequest` - :rtype: :class:`huaweicloudsdkmoderation.v2.RunTextModerationResponse` - """ - http_info = self._run_text_moderation_http_info(request) - return self._call_api(**http_info) - - def run_text_moderation_invoker(self, request): - http_info = self._run_text_moderation_http_info(request) - return SyncInvoker(self, http_info) - - @classmethod - def _run_text_moderation_http_info(cls, request): - http_info = { - "method": "POST", - "resource_path": "/v2/{project_id}/moderation/text", - "request_type": request.__class__.__name__, - "response_type": "RunTextModerationResponse" - } - - 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 _call_api(self, **kwargs): - try: - return self.do_http_request(**kwargs) - except TypeError: - import inspect - params = inspect.signature(self.do_http_request).parameters - http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs} - return self.do_http_request(**http_info) - - def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, - post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None, - collection_formats=None, request_type=None): - """Makes the HTTP request and returns deserialized data. - - :param resource_path: Path to method endpoint. - :param method: Method to call. - :param path_params: Path parameters in the url. - :param query_params: Query parameters in the url. - :param header_params: Header parameters to be placed in the request header. - :param body: Request body. - :param post_params: Request post form parameters, - for `application/x-www-form-urlencoded`, `multipart/form-data`. - :param cname: Used for obs endpoint. - :param auth_settings: Auth Settings names for the request. - :param response_type: Response data type. - :param response_headers: Header should be added to response data. - :param collection_formats: dict of collection formats for path, query, - header, and post parameters. - :param request_type: Request data type. - :return: - Return the response directly. - """ - return self.do_http_request( - method=method, - resource_path=resource_path, - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body, - post_params=post_params, - cname=cname, - response_type=response_type, - response_headers=response_headers, - collection_formats=collection_formats, - request_type=request_type) diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/region/__init__.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/region/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/region/moderation_region.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/region/moderation_region.py deleted file mode 100644 index aba7eec230..0000000000 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/region/moderation_region.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding: utf-8 - -from huaweicloudsdkcore.region.region import Region -from huaweicloudsdkcore.region.provider import RegionProviderChain - -class ModerationRegion: - _PROVIDER = RegionProviderChain.get_default_region_provider_chain("MODERATION") - - CN_NORTH_4 = Region("cn-north-4", - "https://moderation.cn-north-4.myhuaweicloud.com", - "https://moderation.cn-north-4.myhuaweicloud.cn") - CN_NORTH_1 = Region("cn-north-1", - "https://moderation.cn-north-1.myhuaweicloud.com", - "https://moderation.cn-north-1.myhuaweicloud.cn") - CN_EAST_3 = Region("cn-east-3", - "https://moderation.cn-east-3.myhuaweicloud.com", - "https://moderation.cn-east-3.myhuaweicloud.cn") - AP_SOUTHEAST_1 = Region("ap-southeast-1", - "https://moderation.ap-southeast-1.myhuaweicloud.com", - "https://moderation.ap-southeast-1.myhuaweicloud.cn") - AP_SOUTHEAST_3 = Region("ap-southeast-3", - "https://moderation.ap-southeast-3.myhuaweicloud.com", - "https://moderation.ap-southeast-3.myhuaweicloud.cn") - - static_fields = { - "cn-north-4": CN_NORTH_4, - "cn-north-1": CN_NORTH_1, - "cn-east-3": CN_EAST_3, - "ap-southeast-1": AP_SOUTHEAST_1, - "ap-southeast-3": AP_SOUTHEAST_3, - } - - @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 'Moderation': [%s]" % ( - region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-moderation/requirements.txt b/huaweicloud-sdk-moderation/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-moderation/requirements.txt +++ b/huaweicloud-sdk-moderation/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-moderation/setup.py b/huaweicloud-sdk-moderation/setup.py index f5ea8b6c5e..7257c456fc 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mpc/requirements.txt b/huaweicloud-sdk-mpc/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-mpc/requirements.txt +++ b/huaweicloud-sdk-mpc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-mpc/setup.py b/huaweicloud-sdk-mpc/setup.py index 0fd235824c..496549a72d 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mrs/requirements.txt b/huaweicloud-sdk-mrs/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-mrs/requirements.txt +++ b/huaweicloud-sdk-mrs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-mrs/setup.py b/huaweicloud-sdk-mrs/setup.py index d470337585..859e85cf30 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-msgsms/requirements.txt b/huaweicloud-sdk-msgsms/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-msgsms/requirements.txt +++ b/huaweicloud-sdk-msgsms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-msgsms/setup.py b/huaweicloud-sdk-msgsms/setup.py index 12b5a2f366..f38cc5b4c7 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mssi/requirements.txt b/huaweicloud-sdk-mssi/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-mssi/requirements.txt +++ b/huaweicloud-sdk-mssi/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-mssi/setup.py b/huaweicloud-sdk-mssi/setup.py index af1656dde4..8f55356c96 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-nat/requirements.txt b/huaweicloud-sdk-nat/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-nat/requirements.txt +++ b/huaweicloud-sdk-nat/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-nat/setup.py b/huaweicloud-sdk-nat/setup.py index 898ec6a77d..da304e0e8c 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-nlp/requirements.txt b/huaweicloud-sdk-nlp/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-nlp/requirements.txt +++ b/huaweicloud-sdk-nlp/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-nlp/setup.py b/huaweicloud-sdk-nlp/setup.py index 889e78ef7d..f86c2cb418 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-obs/requirements.txt b/huaweicloud-sdk-obs/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-obs/requirements.txt +++ b/huaweicloud-sdk-obs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-obs/setup.py b/huaweicloud-sdk-obs/setup.py index 89aa35c99e..d8a2f93da2 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ocr/requirements.txt b/huaweicloud-sdk-ocr/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-ocr/requirements.txt +++ b/huaweicloud-sdk-ocr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-ocr/setup.py b/huaweicloud-sdk-ocr/setup.py index 599989e96b..9db03830d1 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-octopus/requirements.txt b/huaweicloud-sdk-octopus/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-octopus/requirements.txt +++ b/huaweicloud-sdk-octopus/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-octopus/setup.py b/huaweicloud-sdk-octopus/setup.py index c7f91d949e..a3fd694e68 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-oms/requirements.txt b/huaweicloud-sdk-oms/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-oms/requirements.txt +++ b/huaweicloud-sdk-oms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-oms/setup.py b/huaweicloud-sdk-oms/setup.py index 742d791b2b..8bcd1c2515 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-optverse/requirements.txt b/huaweicloud-sdk-optverse/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-optverse/requirements.txt +++ b/huaweicloud-sdk-optverse/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-optverse/setup.py b/huaweicloud-sdk-optverse/setup.py index 66dc8a6ad5..c0909114b8 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-organizations/requirements.txt b/huaweicloud-sdk-organizations/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-organizations/requirements.txt +++ b/huaweicloud-sdk-organizations/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-organizations/setup.py b/huaweicloud-sdk-organizations/setup.py index 01bde29ec6..12edaae5f3 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-orgid/requirements.txt b/huaweicloud-sdk-orgid/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-orgid/requirements.txt +++ b/huaweicloud-sdk-orgid/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-orgid/setup.py b/huaweicloud-sdk-orgid/setup.py index 27dfa06fa4..9f7b30ab98 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-oroas/requirements.txt b/huaweicloud-sdk-oroas/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-oroas/requirements.txt +++ b/huaweicloud-sdk-oroas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-oroas/setup.py b/huaweicloud-sdk-oroas/setup.py index 15794f8b2e..6ebc09f30c 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-osm/requirements.txt b/huaweicloud-sdk-osm/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-osm/requirements.txt +++ b/huaweicloud-sdk-osm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-osm/setup.py b/huaweicloud-sdk-osm/setup.py index dd7a6bdb3a..4ffe08ca1e 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-pangulargemodels/requirements.txt b/huaweicloud-sdk-pangulargemodels/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-pangulargemodels/requirements.txt +++ b/huaweicloud-sdk-pangulargemodels/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-pangulargemodels/setup.py b/huaweicloud-sdk-pangulargemodels/setup.py index 23b9eda425..60cc5bc340 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-projectman/requirements.txt b/huaweicloud-sdk-projectman/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-projectman/requirements.txt +++ b/huaweicloud-sdk-projectman/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-projectman/setup.py b/huaweicloud-sdk-projectman/setup.py index 79aa61ac90..6f7413252b 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rabbitmq/requirements.txt b/huaweicloud-sdk-rabbitmq/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-rabbitmq/requirements.txt +++ b/huaweicloud-sdk-rabbitmq/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-rabbitmq/setup.py b/huaweicloud-sdk-rabbitmq/setup.py index 5c686350b2..939f3d5812 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ram/requirements.txt b/huaweicloud-sdk-ram/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-ram/requirements.txt +++ b/huaweicloud-sdk-ram/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-ram/setup.py b/huaweicloud-sdk-ram/setup.py index c45abbf88a..0c77d40347 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rds/requirements.txt b/huaweicloud-sdk-rds/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-rds/requirements.txt +++ b/huaweicloud-sdk-rds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-rds/setup.py b/huaweicloud-sdk-rds/setup.py index 4b85d15da7..7173be060d 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-res/requirements.txt b/huaweicloud-sdk-res/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-res/requirements.txt +++ b/huaweicloud-sdk-res/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-res/setup.py b/huaweicloud-sdk-res/setup.py index 0c14ff2e63..89384bac71 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rgc/requirements.txt b/huaweicloud-sdk-rgc/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-rgc/requirements.txt +++ b/huaweicloud-sdk-rgc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-rgc/setup.py b/huaweicloud-sdk-rgc/setup.py index 3968bacefe..f8bb0224ef 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rms/requirements.txt b/huaweicloud-sdk-rms/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-rms/requirements.txt +++ b/huaweicloud-sdk-rms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-rms/setup.py b/huaweicloud-sdk-rms/setup.py index a69e884108..b08bc2557f 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rocketmq/requirements.txt b/huaweicloud-sdk-rocketmq/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-rocketmq/requirements.txt +++ b/huaweicloud-sdk-rocketmq/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-rocketmq/setup.py b/huaweicloud-sdk-rocketmq/setup.py index 28e56f0100..f95eb8b9ad 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-roma/requirements.txt b/huaweicloud-sdk-roma/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-roma/requirements.txt +++ b/huaweicloud-sdk-roma/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-roma/setup.py b/huaweicloud-sdk-roma/setup.py index 642b044a5f..ccd1ac47de 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sa/requirements.txt b/huaweicloud-sdk-sa/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-sa/requirements.txt +++ b/huaweicloud-sdk-sa/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-sa/setup.py b/huaweicloud-sdk-sa/setup.py index eb0045ffeb..eef076cf03 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-scm/requirements.txt b/huaweicloud-sdk-scm/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-scm/requirements.txt +++ b/huaweicloud-sdk-scm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-scm/setup.py b/huaweicloud-sdk-scm/setup.py index c84c3c5816..c150d610b4 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sdrs/requirements.txt b/huaweicloud-sdk-sdrs/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-sdrs/requirements.txt +++ b/huaweicloud-sdk-sdrs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-sdrs/setup.py b/huaweicloud-sdk-sdrs/setup.py index 87c0efa9e7..d40018a157 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-secmaster/requirements.txt b/huaweicloud-sdk-secmaster/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-secmaster/requirements.txt +++ b/huaweicloud-sdk-secmaster/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-secmaster/setup.py b/huaweicloud-sdk-secmaster/setup.py index 34e8c94c31..ddb83cb49f 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-servicestage/requirements.txt b/huaweicloud-sdk-servicestage/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-servicestage/requirements.txt +++ b/huaweicloud-sdk-servicestage/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-servicestage/setup.py b/huaweicloud-sdk-servicestage/setup.py index b592ec71d7..787856f73c 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/__init__.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/__init__.py index f651e5eac9..c8dc5fea7c 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/__init__.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/__init__.py @@ -6,6 +6,7 @@ from huaweicloudsdksfsturbo.v1.sfsturbo_async_client import SFSTurboAsyncClient from huaweicloudsdksfsturbo.v1.model.action_progress import ActionProgress +from huaweicloudsdksfsturbo.v1.model.auto_export_policy import AutoExportPolicy from huaweicloudsdksfsturbo.v1.model.batch_add_shared_tags_request import BatchAddSharedTagsRequest from huaweicloudsdksfsturbo.v1.model.batch_add_shared_tags_request_body import BatchAddSharedTagsRequestBody from huaweicloudsdksfsturbo.v1.model.batch_add_shared_tags_response import BatchAddSharedTagsResponse @@ -19,7 +20,6 @@ from huaweicloudsdksfsturbo.v1.model.change_share_name_request import ChangeShareNameRequest from huaweicloudsdksfsturbo.v1.model.change_share_name_response import ChangeShareNameResponse from huaweicloudsdksfsturbo.v1.model.config_nas_target import ConfigNasTarget -from huaweicloudsdksfsturbo.v1.model.config_obs_target import ConfigObsTarget from huaweicloudsdksfsturbo.v1.model.create_backend_target_request import CreateBackendTargetRequest from huaweicloudsdksfsturbo.v1.model.create_backend_target_request_body import CreateBackendTargetRequestBody from huaweicloudsdksfsturbo.v1.model.create_backend_target_response import CreateBackendTargetResponse @@ -56,6 +56,8 @@ from huaweicloudsdksfsturbo.v1.model.delete_fs_dir_response import DeleteFsDirResponse from huaweicloudsdksfsturbo.v1.model.delete_fs_task_request import DeleteFsTaskRequest from huaweicloudsdksfsturbo.v1.model.delete_fs_task_response import DeleteFsTaskResponse +from huaweicloudsdksfsturbo.v1.model.delete_hpc_cache_task_request import DeleteHpcCacheTaskRequest +from huaweicloudsdksfsturbo.v1.model.delete_hpc_cache_task_response import DeleteHpcCacheTaskResponse from huaweicloudsdksfsturbo.v1.model.delete_ldap_config_request import DeleteLdapConfigRequest from huaweicloudsdksfsturbo.v1.model.delete_ldap_config_response import DeleteLdapConfigResponse from huaweicloudsdksfsturbo.v1.model.delete_perm_rule_request import DeletePermRuleRequest @@ -88,6 +90,8 @@ from huaweicloudsdksfsturbo.v1.model.list_shares_response import ListSharesResponse from huaweicloudsdksfsturbo.v1.model.metadata import Metadata from huaweicloudsdksfsturbo.v1.model.obs_data_repository import ObsDataRepository +from huaweicloudsdksfsturbo.v1.model.obs_data_repository_policy import ObsDataRepositoryPolicy +from huaweicloudsdksfsturbo.v1.model.obs_target_attributes import ObsTargetAttributes from huaweicloudsdksfsturbo.v1.model.one_fs_task_resp import OneFsTaskResp from huaweicloudsdksfsturbo.v1.model.one_hpc_cache_task_info_resp import OneHpcCacheTaskInfoResp from huaweicloudsdksfsturbo.v1.model.one_perm_rule_request_info import OnePermRuleRequestInfo @@ -100,6 +104,8 @@ from huaweicloudsdksfsturbo.v1.model.set_hpc_cache_backend_response import SetHpcCacheBackendResponse from huaweicloudsdksfsturbo.v1.model.share import Share from huaweicloudsdksfsturbo.v1.model.share_info import ShareInfo +from huaweicloudsdksfsturbo.v1.model.share_info_feature import ShareInfoFeature +from huaweicloudsdksfsturbo.v1.model.share_info_features import ShareInfoFeatures from huaweicloudsdksfsturbo.v1.model.share_name import ShareName from huaweicloudsdksfsturbo.v1.model.show_backend_target_info_request import ShowBackendTargetInfoRequest from huaweicloudsdksfsturbo.v1.model.show_backend_target_info_response import ShowBackendTargetInfoResponse @@ -134,6 +140,12 @@ from huaweicloudsdksfsturbo.v1.model.update_ldap_config_request import UpdateLdapConfigRequest from huaweicloudsdksfsturbo.v1.model.update_ldap_config_request_body import UpdateLdapConfigRequestBody from huaweicloudsdksfsturbo.v1.model.update_ldap_config_response import UpdateLdapConfigResponse +from huaweicloudsdksfsturbo.v1.model.update_obs_target_attributes_request import UpdateObsTargetAttributesRequest +from huaweicloudsdksfsturbo.v1.model.update_obs_target_attributes_request_body import UpdateObsTargetAttributesRequestBody +from huaweicloudsdksfsturbo.v1.model.update_obs_target_attributes_response import UpdateObsTargetAttributesResponse +from huaweicloudsdksfsturbo.v1.model.update_obs_target_policy_request import UpdateObsTargetPolicyRequest +from huaweicloudsdksfsturbo.v1.model.update_obs_target_policy_request_body import UpdateObsTargetPolicyRequestBody +from huaweicloudsdksfsturbo.v1.model.update_obs_target_policy_response import UpdateObsTargetPolicyResponse from huaweicloudsdksfsturbo.v1.model.update_perm_rule_request import UpdatePermRuleRequest from huaweicloudsdksfsturbo.v1.model.update_perm_rule_response import UpdatePermRuleResponse diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/__init__.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/__init__.py index 10e115949f..fbdcccb426 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/__init__.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/__init__.py @@ -4,6 +4,7 @@ # import models into model package from huaweicloudsdksfsturbo.v1.model.action_progress import ActionProgress +from huaweicloudsdksfsturbo.v1.model.auto_export_policy import AutoExportPolicy from huaweicloudsdksfsturbo.v1.model.batch_add_shared_tags_request import BatchAddSharedTagsRequest from huaweicloudsdksfsturbo.v1.model.batch_add_shared_tags_request_body import BatchAddSharedTagsRequestBody from huaweicloudsdksfsturbo.v1.model.batch_add_shared_tags_response import BatchAddSharedTagsResponse @@ -17,7 +18,6 @@ from huaweicloudsdksfsturbo.v1.model.change_share_name_request import ChangeShareNameRequest from huaweicloudsdksfsturbo.v1.model.change_share_name_response import ChangeShareNameResponse from huaweicloudsdksfsturbo.v1.model.config_nas_target import ConfigNasTarget -from huaweicloudsdksfsturbo.v1.model.config_obs_target import ConfigObsTarget from huaweicloudsdksfsturbo.v1.model.create_backend_target_request import CreateBackendTargetRequest from huaweicloudsdksfsturbo.v1.model.create_backend_target_request_body import CreateBackendTargetRequestBody from huaweicloudsdksfsturbo.v1.model.create_backend_target_response import CreateBackendTargetResponse @@ -54,6 +54,8 @@ from huaweicloudsdksfsturbo.v1.model.delete_fs_dir_response import DeleteFsDirResponse from huaweicloudsdksfsturbo.v1.model.delete_fs_task_request import DeleteFsTaskRequest from huaweicloudsdksfsturbo.v1.model.delete_fs_task_response import DeleteFsTaskResponse +from huaweicloudsdksfsturbo.v1.model.delete_hpc_cache_task_request import DeleteHpcCacheTaskRequest +from huaweicloudsdksfsturbo.v1.model.delete_hpc_cache_task_response import DeleteHpcCacheTaskResponse from huaweicloudsdksfsturbo.v1.model.delete_ldap_config_request import DeleteLdapConfigRequest from huaweicloudsdksfsturbo.v1.model.delete_ldap_config_response import DeleteLdapConfigResponse from huaweicloudsdksfsturbo.v1.model.delete_perm_rule_request import DeletePermRuleRequest @@ -86,6 +88,8 @@ from huaweicloudsdksfsturbo.v1.model.list_shares_response import ListSharesResponse from huaweicloudsdksfsturbo.v1.model.metadata import Metadata from huaweicloudsdksfsturbo.v1.model.obs_data_repository import ObsDataRepository +from huaweicloudsdksfsturbo.v1.model.obs_data_repository_policy import ObsDataRepositoryPolicy +from huaweicloudsdksfsturbo.v1.model.obs_target_attributes import ObsTargetAttributes from huaweicloudsdksfsturbo.v1.model.one_fs_task_resp import OneFsTaskResp from huaweicloudsdksfsturbo.v1.model.one_hpc_cache_task_info_resp import OneHpcCacheTaskInfoResp from huaweicloudsdksfsturbo.v1.model.one_perm_rule_request_info import OnePermRuleRequestInfo @@ -98,6 +102,8 @@ from huaweicloudsdksfsturbo.v1.model.set_hpc_cache_backend_response import SetHpcCacheBackendResponse from huaweicloudsdksfsturbo.v1.model.share import Share from huaweicloudsdksfsturbo.v1.model.share_info import ShareInfo +from huaweicloudsdksfsturbo.v1.model.share_info_feature import ShareInfoFeature +from huaweicloudsdksfsturbo.v1.model.share_info_features import ShareInfoFeatures from huaweicloudsdksfsturbo.v1.model.share_name import ShareName from huaweicloudsdksfsturbo.v1.model.show_backend_target_info_request import ShowBackendTargetInfoRequest from huaweicloudsdksfsturbo.v1.model.show_backend_target_info_response import ShowBackendTargetInfoResponse @@ -132,5 +138,11 @@ from huaweicloudsdksfsturbo.v1.model.update_ldap_config_request import UpdateLdapConfigRequest from huaweicloudsdksfsturbo.v1.model.update_ldap_config_request_body import UpdateLdapConfigRequestBody from huaweicloudsdksfsturbo.v1.model.update_ldap_config_response import UpdateLdapConfigResponse +from huaweicloudsdksfsturbo.v1.model.update_obs_target_attributes_request import UpdateObsTargetAttributesRequest +from huaweicloudsdksfsturbo.v1.model.update_obs_target_attributes_request_body import UpdateObsTargetAttributesRequestBody +from huaweicloudsdksfsturbo.v1.model.update_obs_target_attributes_response import UpdateObsTargetAttributesResponse +from huaweicloudsdksfsturbo.v1.model.update_obs_target_policy_request import UpdateObsTargetPolicyRequest +from huaweicloudsdksfsturbo.v1.model.update_obs_target_policy_request_body import UpdateObsTargetPolicyRequestBody +from huaweicloudsdksfsturbo.v1.model.update_obs_target_policy_response import UpdateObsTargetPolicyResponse from huaweicloudsdksfsturbo.v1.model.update_perm_rule_request import UpdatePermRuleRequest from huaweicloudsdksfsturbo.v1.model.update_perm_rule_response import UpdatePermRuleResponse diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/auto_export_policy.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/auto_export_policy.py new file mode 100644 index 0000000000..955de25000 --- /dev/null +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/auto_export_policy.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AutoExportPolicy: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'events': 'list[str]' + } + + attribute_map = { + 'events': 'events' + } + + def __init__(self, events=None): + """AutoExportPolicy + + The model defined in huaweicloud sdk + + :param events: 后端存储自动导出到OBS桶的数据更新类型。 - NEW:表示新增数据,SFS Turbo联动目录下创建的文件,及之后对这些文件进行的元数据和数据修改,会被自动同步到OBS桶里。 - CHANGED:表示修改数据,从OBS桶里导入到SFS Turbo联动目录下的文件,在SFS Turbo上对这些文件所进行的数据和元数据的修改,会被自动同步到OBS桶里。 - DELETED:表示删除数据,在SFS Turbo联动目录下删除文件,OBS桶对应的对象也会被删除,只有被SFS Turbo写入的OBS对象才会被删除。 + :type events: list[str] + """ + + + + self._events = None + self.discriminator = None + + if events is not None: + self.events = events + + @property + def events(self): + """Gets the events of this AutoExportPolicy. + + 后端存储自动导出到OBS桶的数据更新类型。 - NEW:表示新增数据,SFS Turbo联动目录下创建的文件,及之后对这些文件进行的元数据和数据修改,会被自动同步到OBS桶里。 - CHANGED:表示修改数据,从OBS桶里导入到SFS Turbo联动目录下的文件,在SFS Turbo上对这些文件所进行的数据和元数据的修改,会被自动同步到OBS桶里。 - DELETED:表示删除数据,在SFS Turbo联动目录下删除文件,OBS桶对应的对象也会被删除,只有被SFS Turbo写入的OBS对象才会被删除。 + + :return: The events of this AutoExportPolicy. + :rtype: list[str] + """ + return self._events + + @events.setter + def events(self, events): + """Sets the events of this AutoExportPolicy. + + 后端存储自动导出到OBS桶的数据更新类型。 - NEW:表示新增数据,SFS Turbo联动目录下创建的文件,及之后对这些文件进行的元数据和数据修改,会被自动同步到OBS桶里。 - CHANGED:表示修改数据,从OBS桶里导入到SFS Turbo联动目录下的文件,在SFS Turbo上对这些文件所进行的数据和元数据的修改,会被自动同步到OBS桶里。 - DELETED:表示删除数据,在SFS Turbo联动目录下删除文件,OBS桶对应的对象也会被删除,只有被SFS Turbo写入的OBS对象才会被删除。 + + :param events: The events of this AutoExportPolicy. + :type events: list[str] + """ + self._events = events + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AutoExportPolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/config_obs_target.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/config_obs_target.py deleted file mode 100644 index 562d7e70c5..0000000000 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/config_obs_target.py +++ /dev/null @@ -1,198 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class ConfigObsTarget: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the 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', - 'type': 'str', - 'url': 'str', - 'bucket': 'str' - } - - attribute_map = { - 'name': 'name', - 'type': 'type', - 'url': 'url', - 'bucket': 'bucket' - } - - def __init__(self, name=None, type=None, url=None, bucket=None): - """ConfigObsTarget - - The model defined in huaweicloud sdk - - :param name: obs 配置名 - :type name: str - :param type: obs 配置协议类型 - :type type: str - :param url: obs 桶 endpoint - :type url: str - :param bucket: obs 桶名 - :type bucket: str - """ - - - - self._name = None - self._type = None - self._url = None - self._bucket = None - self.discriminator = None - - self.name = name - self.type = type - self.url = url - self.bucket = bucket - - @property - def name(self): - """Gets the name of this ConfigObsTarget. - - obs 配置名 - - :return: The name of this ConfigObsTarget. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ConfigObsTarget. - - obs 配置名 - - :param name: The name of this ConfigObsTarget. - :type name: str - """ - self._name = name - - @property - def type(self): - """Gets the type of this ConfigObsTarget. - - obs 配置协议类型 - - :return: The type of this ConfigObsTarget. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this ConfigObsTarget. - - obs 配置协议类型 - - :param type: The type of this ConfigObsTarget. - :type type: str - """ - self._type = type - - @property - def url(self): - """Gets the url of this ConfigObsTarget. - - obs 桶 endpoint - - :return: The url of this ConfigObsTarget. - :rtype: str - """ - return self._url - - @url.setter - def url(self, url): - """Sets the url of this ConfigObsTarget. - - obs 桶 endpoint - - :param url: The url of this ConfigObsTarget. - :type url: str - """ - self._url = url - - @property - def bucket(self): - """Gets the bucket of this ConfigObsTarget. - - obs 桶名 - - :return: The bucket of this ConfigObsTarget. - :rtype: str - """ - return self._bucket - - @bucket.setter - def bucket(self, bucket): - """Sets the bucket of this ConfigObsTarget. - - obs 桶名 - - :param bucket: The bucket of this ConfigObsTarget. - :type bucket: str - """ - self._bucket = bucket - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ConfigObsTarget): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_backend_target_request_body.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_backend_target_request_body.py index 082894a753..27763e51bd 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_backend_target_request_body.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_backend_target_request_body.py @@ -31,7 +31,7 @@ def __init__(self, file_system_path=None, obs=None): The model defined in huaweicloud sdk - :param file_system_path: 联动目录名称,SFS Turbo会在文件系统根目录下以该名称创建一个子目录,该目录用于绑定后端存储。子目录名称不能重复,长度不能超过255个字符,子目录名称不能是“.”或“..”。不支持多层目录,不能包含字符'/'。 + :param file_system_path: 联动目录名称,SFS Turbo会在文件系统根目录下以该名称创建一个子目录,该目录用于绑定后端存储。 必须是文件系统根目录下不存在的目录名,长度不能超过63个字符,子目录名称不能是“.”或“..”。 不支持多层目录,不能包含字符'/'。 :type file_system_path: str :param obs: :type obs: :class:`huaweicloudsdksfsturbo.v1.ObsDataRepository` @@ -50,7 +50,7 @@ def __init__(self, file_system_path=None, obs=None): def file_system_path(self): """Gets the file_system_path of this CreateBackendTargetRequestBody. - 联动目录名称,SFS Turbo会在文件系统根目录下以该名称创建一个子目录,该目录用于绑定后端存储。子目录名称不能重复,长度不能超过255个字符,子目录名称不能是“.”或“..”。不支持多层目录,不能包含字符'/'。 + 联动目录名称,SFS Turbo会在文件系统根目录下以该名称创建一个子目录,该目录用于绑定后端存储。 必须是文件系统根目录下不存在的目录名,长度不能超过63个字符,子目录名称不能是“.”或“..”。 不支持多层目录,不能包含字符'/'。 :return: The file_system_path of this CreateBackendTargetRequestBody. :rtype: str @@ -61,7 +61,7 @@ def file_system_path(self): def file_system_path(self, file_system_path): """Sets the file_system_path of this CreateBackendTargetRequestBody. - 联动目录名称,SFS Turbo会在文件系统根目录下以该名称创建一个子目录,该目录用于绑定后端存储。子目录名称不能重复,长度不能超过255个字符,子目录名称不能是“.”或“..”。不支持多层目录,不能包含字符'/'。 + 联动目录名称,SFS Turbo会在文件系统根目录下以该名称创建一个子目录,该目录用于绑定后端存储。 必须是文件系统根目录下不存在的目录名,长度不能超过63个字符,子目录名称不能是“.”或“..”。 不支持多层目录,不能包含字符'/'。 :param file_system_path: The file_system_path of this CreateBackendTargetRequestBody. :type file_system_path: str diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_backend_target_response.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_backend_target_response.py index d844d9f7e7..f723613bae 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_backend_target_response.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_backend_target_response.py @@ -50,7 +50,7 @@ def __init__(self, target_id=None, creation_time=None, failure_details=None, fil :type failure_details: :class:`huaweicloudsdksfsturbo.v1.FailureDetailsMessage` :param file_system_path: 联动目录名称 :type file_system_path: str - :param lifecycle: 绑定状态。如果返回状态为CREATING,您需要通过获取后端存储详细信息接口去轮询绑定完成状态。 如果返回状态为AVAILABLE,代表绑定后端存储成功。如果返回状态MISCONFIGURED,代表绑定后端存储失败。DELETING 状态暂不支持。 + :param lifecycle: 绑定状态。 如果返回状态为CREATING,您需要通过获取后端存储详细信息接口去轮询绑定完成状态。 如果返回状态为AVAILABLE,代表绑定后端存储成功。 如果返回状态MISCONFIGURED,代表绑定后端存储失败。DELETING 状态暂不支持。 :type lifecycle: str :param obs: :type obs: :class:`huaweicloudsdksfsturbo.v1.ObsDataRepository` @@ -172,7 +172,7 @@ def file_system_path(self, file_system_path): def lifecycle(self): """Gets the lifecycle of this CreateBackendTargetResponse. - 绑定状态。如果返回状态为CREATING,您需要通过获取后端存储详细信息接口去轮询绑定完成状态。 如果返回状态为AVAILABLE,代表绑定后端存储成功。如果返回状态MISCONFIGURED,代表绑定后端存储失败。DELETING 状态暂不支持。 + 绑定状态。 如果返回状态为CREATING,您需要通过获取后端存储详细信息接口去轮询绑定完成状态。 如果返回状态为AVAILABLE,代表绑定后端存储成功。 如果返回状态MISCONFIGURED,代表绑定后端存储失败。DELETING 状态暂不支持。 :return: The lifecycle of this CreateBackendTargetResponse. :rtype: str @@ -183,7 +183,7 @@ def lifecycle(self): def lifecycle(self, lifecycle): """Sets the lifecycle of this CreateBackendTargetResponse. - 绑定状态。如果返回状态为CREATING,您需要通过获取后端存储详细信息接口去轮询绑定完成状态。 如果返回状态为AVAILABLE,代表绑定后端存储成功。如果返回状态MISCONFIGURED,代表绑定后端存储失败。DELETING 状态暂不支持。 + 绑定状态。 如果返回状态为CREATING,您需要通过获取后端存储详细信息接口去轮询绑定完成状态。 如果返回状态为AVAILABLE,代表绑定后端存储成功。 如果返回状态MISCONFIGURED,代表绑定后端存储失败。DELETING 状态暂不支持。 :param lifecycle: The lifecycle of this CreateBackendTargetResponse. :type lifecycle: str diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_request_body.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_request_body.py index 6672976559..0556eed863 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_request_body.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_request_body.py @@ -35,9 +35,9 @@ def __init__(self, path=None, capacity=None, inode=None): :param path: 合法的已存在的目录的全路径 :type path: str - :param capacity: 目录的容量大小,单位:MB + :param capacity: 目录的容量大小,单位:MB; 设置为0会导致数据无法写入目录; capacity和quota至少二选一 :type capacity: int - :param inode: 目录的inode数量限制 + :param inode: 目录的inode数量限制; 设置为0会导致数据无法写入目录; capacity和quota至少二选一 :type inode: int """ @@ -80,7 +80,7 @@ def path(self, path): def capacity(self): """Gets the capacity of this CreateFsDirQuotaRequestBody. - 目录的容量大小,单位:MB + 目录的容量大小,单位:MB; 设置为0会导致数据无法写入目录; capacity和quota至少二选一 :return: The capacity of this CreateFsDirQuotaRequestBody. :rtype: int @@ -91,7 +91,7 @@ def capacity(self): def capacity(self, capacity): """Sets the capacity of this CreateFsDirQuotaRequestBody. - 目录的容量大小,单位:MB + 目录的容量大小,单位:MB; 设置为0会导致数据无法写入目录; capacity和quota至少二选一 :param capacity: The capacity of this CreateFsDirQuotaRequestBody. :type capacity: int @@ -102,7 +102,7 @@ def capacity(self, capacity): def inode(self): """Gets the inode of this CreateFsDirQuotaRequestBody. - 目录的inode数量限制 + 目录的inode数量限制; 设置为0会导致数据无法写入目录; capacity和quota至少二选一 :return: The inode of this CreateFsDirQuotaRequestBody. :rtype: int @@ -113,7 +113,7 @@ def inode(self): def inode(self, inode): """Sets the inode of this CreateFsDirQuotaRequestBody. - 目录的inode数量限制 + 目录的inode数量限制; 设置为0会导致数据无法写入目录; capacity和quota至少二选一 :param inode: The inode of this CreateFsDirQuotaRequestBody. :type inode: int diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_response.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_response.py index 611e86c885..35d7577134 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_response.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_response.py @@ -44,9 +44,9 @@ def __init__(self, path=None, capacity=None, inode=None, used_capacity=None, use :type capacity: int :param inode: 目录的inode数量限制 :type inode: int - :param used_capacity: 目录已使用的容量大小,单位:MB。仅SFSTurbo HPC型返回该字段 + :param used_capacity: 目录已使用的容量大小,单位:MB。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段 :type used_capacity: int - :param used_inode: 目录的已使用的inode数量。仅SFSTurbo HPC型返回该字段 + :param used_inode: 目录的已使用的inode数量。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段 :type used_inode: int """ @@ -140,7 +140,7 @@ def inode(self, inode): def used_capacity(self): """Gets the used_capacity of this CreateFsDirQuotaResponse. - 目录已使用的容量大小,单位:MB。仅SFSTurbo HPC型返回该字段 + 目录已使用的容量大小,单位:MB。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段 :return: The used_capacity of this CreateFsDirQuotaResponse. :rtype: int @@ -151,7 +151,7 @@ def used_capacity(self): def used_capacity(self, used_capacity): """Sets the used_capacity of this CreateFsDirQuotaResponse. - 目录已使用的容量大小,单位:MB。仅SFSTurbo HPC型返回该字段 + 目录已使用的容量大小,单位:MB。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段 :param used_capacity: The used_capacity of this CreateFsDirQuotaResponse. :type used_capacity: int @@ -162,7 +162,7 @@ def used_capacity(self, used_capacity): def used_inode(self): """Gets the used_inode of this CreateFsDirQuotaResponse. - 目录的已使用的inode数量。仅SFSTurbo HPC型返回该字段 + 目录的已使用的inode数量。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段 :return: The used_inode of this CreateFsDirQuotaResponse. :rtype: int @@ -173,7 +173,7 @@ def used_inode(self): def used_inode(self, used_inode): """Sets the used_inode of this CreateFsDirQuotaResponse. - 目录的已使用的inode数量。仅SFSTurbo HPC型返回该字段 + 目录的已使用的inode数量。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段 :param used_inode: The used_inode of this CreateFsDirQuotaResponse. :type used_inode: int diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_fs_dir_request_body.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_fs_dir_request_body.py index 6e0ea1e12b..a1f37518d5 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_fs_dir_request_body.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_fs_dir_request_body.py @@ -37,7 +37,7 @@ def __init__(self, path=None, mode=None, uid=None, gid=None): :param path: 合法的的目录全路径 :type path: str - :param mode: 目录权限,默认值是755,取值范围是0到777。第一位表示目录所有者的权限,第二位表示目录所属用户组的权限,第三位表示其他用户的权限。目录所有者由uid指定,目录所属用户组由gid指定,不是目录所有者且不在目录所属用户组的用户为其他用户。例如:755中第一位7代表该目录所有者对该目录具有读、写、执行权限;第二位5代表该目录所属用户组对该目录具有读、执行权限;第三位5代表其他用户对该目录具有读、执行权限。 + :param mode: 目录权限,默认值是755,取值范围是0到777。第一位表示目录所有者的权限,取值范围是0到7;第二位表示目录所属用户组的权限,取值范围是0到7;第三位表示其他用户的权限,取值范围是0到7。目录所有者由uid指定,目录所属用户组由gid指定,不是目录所有者且不在目录所属用户组的用户为其他用户。例如:755中第一位7代表该目录所有者对该目录具有读、写、执行权限;第二位5代表该目录所属用户组对该目录具有读、执行权限;第三位5代表其他用户对该目录具有读、执行权限。 :type mode: int :param uid: 目录所有者的用户id,默认值是0,取值范围是0到4,294,967,294(即2^32-2)。 :type uid: int @@ -87,7 +87,7 @@ def path(self, path): def mode(self): """Gets the mode of this CreateFsDirRequestBody. - 目录权限,默认值是755,取值范围是0到777。第一位表示目录所有者的权限,第二位表示目录所属用户组的权限,第三位表示其他用户的权限。目录所有者由uid指定,目录所属用户组由gid指定,不是目录所有者且不在目录所属用户组的用户为其他用户。例如:755中第一位7代表该目录所有者对该目录具有读、写、执行权限;第二位5代表该目录所属用户组对该目录具有读、执行权限;第三位5代表其他用户对该目录具有读、执行权限。 + 目录权限,默认值是755,取值范围是0到777。第一位表示目录所有者的权限,取值范围是0到7;第二位表示目录所属用户组的权限,取值范围是0到7;第三位表示其他用户的权限,取值范围是0到7。目录所有者由uid指定,目录所属用户组由gid指定,不是目录所有者且不在目录所属用户组的用户为其他用户。例如:755中第一位7代表该目录所有者对该目录具有读、写、执行权限;第二位5代表该目录所属用户组对该目录具有读、执行权限;第三位5代表其他用户对该目录具有读、执行权限。 :return: The mode of this CreateFsDirRequestBody. :rtype: int @@ -98,7 +98,7 @@ def mode(self): def mode(self, mode): """Sets the mode of this CreateFsDirRequestBody. - 目录权限,默认值是755,取值范围是0到777。第一位表示目录所有者的权限,第二位表示目录所属用户组的权限,第三位表示其他用户的权限。目录所有者由uid指定,目录所属用户组由gid指定,不是目录所有者且不在目录所属用户组的用户为其他用户。例如:755中第一位7代表该目录所有者对该目录具有读、写、执行权限;第二位5代表该目录所属用户组对该目录具有读、执行权限;第三位5代表其他用户对该目录具有读、执行权限。 + 目录权限,默认值是755,取值范围是0到777。第一位表示目录所有者的权限,取值范围是0到7;第二位表示目录所属用户组的权限,取值范围是0到7;第三位表示其他用户的权限,取值范围是0到7。目录所有者由uid指定,目录所属用户组由gid指定,不是目录所有者且不在目录所属用户组的用户为其他用户。例如:755中第一位7代表该目录所有者对该目录具有读、写、执行权限;第二位5代表该目录所属用户组对该目录具有读、执行权限;第三位5代表其他用户对该目录具有读、执行权限。 :param mode: The mode of this CreateFsDirRequestBody. :type mode: int diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_fs_task_request.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_fs_task_request.py index 6709723cd9..c9843e5600 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_fs_task_request.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_fs_task_request.py @@ -35,7 +35,7 @@ def __init__(self, share_id=None, feature=None, body=None): :param share_id: 文件系统id :type share_id: str - :param feature: 任务类型。例,DU任务取值为dir-usage + :param feature: 任务类型。当前仅支持取值\"dir-usage\"。 :type feature: str :param body: Body of the CreateFsTaskRequest :type body: :class:`huaweicloudsdksfsturbo.v1.FsDirReq` @@ -79,7 +79,7 @@ def share_id(self, share_id): def feature(self): """Gets the feature of this CreateFsTaskRequest. - 任务类型。例,DU任务取值为dir-usage + 任务类型。当前仅支持取值\"dir-usage\"。 :return: The feature of this CreateFsTaskRequest. :rtype: str @@ -90,7 +90,7 @@ def feature(self): def feature(self, feature): """Sets the feature of this CreateFsTaskRequest. - 任务类型。例,DU任务取值为dir-usage + 任务类型。当前仅支持取值\"dir-usage\"。 :param feature: The feature of this CreateFsTaskRequest. :type feature: str diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_hpc_cache_task_req.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_hpc_cache_task_req.py index 12dbaf46eb..95c51c9082 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_hpc_cache_task_req.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_hpc_cache_task_req.py @@ -21,7 +21,8 @@ class CreateHpcCacheTaskReq: 'src_target': 'str', 'src_prefix': 'str', 'dest_target': 'str', - 'dest_prefix': 'str' + 'dest_prefix': 'str', + 'attributes': 'ObsTargetAttributes' } attribute_map = { @@ -29,24 +30,27 @@ class CreateHpcCacheTaskReq: 'src_target': 'src_target', 'src_prefix': 'src_prefix', 'dest_target': 'dest_target', - 'dest_prefix': 'dest_prefix' + 'dest_prefix': 'dest_prefix', + 'attributes': 'attributes' } - def __init__(self, type=None, src_target=None, src_prefix=None, dest_target=None, dest_prefix=None): + def __init__(self, type=None, src_target=None, src_prefix=None, dest_target=None, dest_prefix=None, attributes=None): """CreateHpcCacheTaskReq The model defined in huaweicloud sdk - :param type: 任务类型,当前支持import(附加元数据导入),import_metadata(快速导入),preload(数据预热),export(导出)。 附加元数据导入方式会导入OBS对象的元数据(名称、大小、最后修改时间)以及来源于SFS Turbo HPC型导出时的附加元数据(如uid、gid、mode)。 快速导入方式仅会导入OBS对象的元数据(名称、大小、最后修改时间),不会导入其它附加元数据(如uid、gid、mode),SFS Turbo会生成默认的附加元数据(uid:0、gid:0、目录权限:755、文件权限:644)。 数据预热功能会同时导入元数据和数据内容,数据预热中的元数据导入采用快速导入方式,不会导入其它附加元数据(如uid、gid、mode)。 数据导出功能会将您在联动目录里创建的文件,以及对从OBS导入后又做过修改的文件导出存储到OBS桶里。 + :param type: 任务类型,当前支持import(附加元数据导入),import_metadata(快速导入),preload(数据预热),export(导出)。 附加元数据导入方式会导入OBS对象的元数据(名称、大小、最后修改时间)以及来源于SFS Turbo 导出时的附加元数据(如uid、gid、mode)。 快速导入方式仅会导入OBS对象的元数据(名称、大小、最后修改时间),不会导入其它附加元数据(如uid、gid、mode),SFS Turbo会生成默认的附加元数据。 数据预热功能会同时导入元数据和数据内容,数据预热中的元数据导入采用快速导入方式,不会导入其它附加元数据(如uid、gid、mode)。 数据导出功能会将您在联动目录里创建的文件,以及对从OBS导入后又做过修改的文件导出存储到OBS桶里。 :type type: str :param src_target: 联动目录名称 :type src_target: str - :param src_prefix: 导入导出任务的源端路径前缀,导入时不需要包含OBS桶名,导出时不需要包含联动目录名称。 对于数据预热导入,携带源端路径前缀时必须是以“/”结尾的目录或具体到某个对象。 如果不带该字段,导入时会导入绑定OBS桶内的所有对象,导出时会导出联动目录下的所有文件。 + :param src_prefix: 导入导出任务的源端路径前缀,导入时不需要包含OBS桶名,导出时不需要包含联动目录名称。 对于数据预热导入,携带源端路径前缀时必须是以“/”结尾的目录或具体到某个对象。 如果不带该字段,导入时会导入绑定OBS桶内的所有对象,导出时会导出联动目录下的所有文件。 :type src_prefix: str :param dest_target: 目前只支持和src_target保持一致 :type dest_target: str :param dest_prefix: 目前只支持和src_prefix保持一致 :type dest_prefix: str + :param attributes: + :type attributes: :class:`huaweicloudsdksfsturbo.v1.ObsTargetAttributes` """ @@ -56,6 +60,7 @@ def __init__(self, type=None, src_target=None, src_prefix=None, dest_target=None self._src_prefix = None self._dest_target = None self._dest_prefix = None + self._attributes = None self.discriminator = None self.type = type @@ -65,12 +70,14 @@ def __init__(self, type=None, src_target=None, src_prefix=None, dest_target=None self.dest_target = dest_target if dest_prefix is not None: self.dest_prefix = dest_prefix + if attributes is not None: + self.attributes = attributes @property def type(self): """Gets the type of this CreateHpcCacheTaskReq. - 任务类型,当前支持import(附加元数据导入),import_metadata(快速导入),preload(数据预热),export(导出)。 附加元数据导入方式会导入OBS对象的元数据(名称、大小、最后修改时间)以及来源于SFS Turbo HPC型导出时的附加元数据(如uid、gid、mode)。 快速导入方式仅会导入OBS对象的元数据(名称、大小、最后修改时间),不会导入其它附加元数据(如uid、gid、mode),SFS Turbo会生成默认的附加元数据(uid:0、gid:0、目录权限:755、文件权限:644)。 数据预热功能会同时导入元数据和数据内容,数据预热中的元数据导入采用快速导入方式,不会导入其它附加元数据(如uid、gid、mode)。 数据导出功能会将您在联动目录里创建的文件,以及对从OBS导入后又做过修改的文件导出存储到OBS桶里。 + 任务类型,当前支持import(附加元数据导入),import_metadata(快速导入),preload(数据预热),export(导出)。 附加元数据导入方式会导入OBS对象的元数据(名称、大小、最后修改时间)以及来源于SFS Turbo 导出时的附加元数据(如uid、gid、mode)。 快速导入方式仅会导入OBS对象的元数据(名称、大小、最后修改时间),不会导入其它附加元数据(如uid、gid、mode),SFS Turbo会生成默认的附加元数据。 数据预热功能会同时导入元数据和数据内容,数据预热中的元数据导入采用快速导入方式,不会导入其它附加元数据(如uid、gid、mode)。 数据导出功能会将您在联动目录里创建的文件,以及对从OBS导入后又做过修改的文件导出存储到OBS桶里。 :return: The type of this CreateHpcCacheTaskReq. :rtype: str @@ -81,7 +88,7 @@ def type(self): def type(self, type): """Sets the type of this CreateHpcCacheTaskReq. - 任务类型,当前支持import(附加元数据导入),import_metadata(快速导入),preload(数据预热),export(导出)。 附加元数据导入方式会导入OBS对象的元数据(名称、大小、最后修改时间)以及来源于SFS Turbo HPC型导出时的附加元数据(如uid、gid、mode)。 快速导入方式仅会导入OBS对象的元数据(名称、大小、最后修改时间),不会导入其它附加元数据(如uid、gid、mode),SFS Turbo会生成默认的附加元数据(uid:0、gid:0、目录权限:755、文件权限:644)。 数据预热功能会同时导入元数据和数据内容,数据预热中的元数据导入采用快速导入方式,不会导入其它附加元数据(如uid、gid、mode)。 数据导出功能会将您在联动目录里创建的文件,以及对从OBS导入后又做过修改的文件导出存储到OBS桶里。 + 任务类型,当前支持import(附加元数据导入),import_metadata(快速导入),preload(数据预热),export(导出)。 附加元数据导入方式会导入OBS对象的元数据(名称、大小、最后修改时间)以及来源于SFS Turbo 导出时的附加元数据(如uid、gid、mode)。 快速导入方式仅会导入OBS对象的元数据(名称、大小、最后修改时间),不会导入其它附加元数据(如uid、gid、mode),SFS Turbo会生成默认的附加元数据。 数据预热功能会同时导入元数据和数据内容,数据预热中的元数据导入采用快速导入方式,不会导入其它附加元数据(如uid、gid、mode)。 数据导出功能会将您在联动目录里创建的文件,以及对从OBS导入后又做过修改的文件导出存储到OBS桶里。 :param type: The type of this CreateHpcCacheTaskReq. :type type: str @@ -114,7 +121,7 @@ def src_target(self, src_target): def src_prefix(self): """Gets the src_prefix of this CreateHpcCacheTaskReq. - 导入导出任务的源端路径前缀,导入时不需要包含OBS桶名,导出时不需要包含联动目录名称。 对于数据预热导入,携带源端路径前缀时必须是以“/”结尾的目录或具体到某个对象。 如果不带该字段,导入时会导入绑定OBS桶内的所有对象,导出时会导出联动目录下的所有文件。 + 导入导出任务的源端路径前缀,导入时不需要包含OBS桶名,导出时不需要包含联动目录名称。 对于数据预热导入,携带源端路径前缀时必须是以“/”结尾的目录或具体到某个对象。 如果不带该字段,导入时会导入绑定OBS桶内的所有对象,导出时会导出联动目录下的所有文件。 :return: The src_prefix of this CreateHpcCacheTaskReq. :rtype: str @@ -125,7 +132,7 @@ def src_prefix(self): def src_prefix(self, src_prefix): """Sets the src_prefix of this CreateHpcCacheTaskReq. - 导入导出任务的源端路径前缀,导入时不需要包含OBS桶名,导出时不需要包含联动目录名称。 对于数据预热导入,携带源端路径前缀时必须是以“/”结尾的目录或具体到某个对象。 如果不带该字段,导入时会导入绑定OBS桶内的所有对象,导出时会导出联动目录下的所有文件。 + 导入导出任务的源端路径前缀,导入时不需要包含OBS桶名,导出时不需要包含联动目录名称。 对于数据预热导入,携带源端路径前缀时必须是以“/”结尾的目录或具体到某个对象。 如果不带该字段,导入时会导入绑定OBS桶内的所有对象,导出时会导出联动目录下的所有文件。 :param src_prefix: The src_prefix of this CreateHpcCacheTaskReq. :type src_prefix: str @@ -176,6 +183,24 @@ def dest_prefix(self, dest_prefix): """ self._dest_prefix = dest_prefix + @property + def attributes(self): + """Gets the attributes of this CreateHpcCacheTaskReq. + + :return: The attributes of this CreateHpcCacheTaskReq. + :rtype: :class:`huaweicloudsdksfsturbo.v1.ObsTargetAttributes` + """ + return self._attributes + + @attributes.setter + def attributes(self, attributes): + """Sets the attributes of this CreateHpcCacheTaskReq. + + :param attributes: The attributes of this CreateHpcCacheTaskReq. + :type attributes: :class:`huaweicloudsdksfsturbo.v1.ObsTargetAttributes` + """ + self._attributes = attributes + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_ldap_config_request_body.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_ldap_config_request_body.py index a6d97a14fe..963e7defab 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_ldap_config_request_body.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_ldap_config_request_body.py @@ -22,7 +22,11 @@ class CreateLdapConfigRequestBody: 'user_dn': 'str', 'password': 'str', 'vpc_id': 'str', - 'filter_condition': 'str' + 'filter_condition': 'str', + 'backup_url': 'str', + 'schema': 'str', + 'search_timeout': 'int', + 'allow_local_user': 'str' } attribute_map = { @@ -31,15 +35,19 @@ class CreateLdapConfigRequestBody: 'user_dn': 'user_dn', 'password': 'password', 'vpc_id': 'vpc_id', - 'filter_condition': 'filter_condition' + 'filter_condition': 'filter_condition', + 'backup_url': 'backup_url', + 'schema': 'schema', + 'search_timeout': 'search_timeout', + 'allow_local_user': 'allow_local_user' } - def __init__(self, url=None, base_dn=None, user_dn=None, password=None, vpc_id=None, filter_condition=None): + def __init__(self, url=None, base_dn=None, user_dn=None, password=None, vpc_id=None, filter_condition=None, backup_url=None, schema=None, search_timeout=None, allow_local_user=None): """CreateLdapConfigRequestBody The model defined in huaweicloud sdk - :param url: ldap服务器的url + :param url: ldap服务器的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000 :type url: str :param base_dn: 数据库中的域 :type base_dn: str @@ -51,6 +59,14 @@ def __init__(self, url=None, base_dn=None, user_dn=None, password=None, vpc_id=N :type vpc_id: str :param filter_condition: 过滤条件。保留字段,暂不支持 :type filter_condition: str + :param backup_url: ldap备节点的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000 + :type backup_url: str + :param schema: ldap的schema,不填写则默认为RFC2307 + :type schema: str + :param search_timeout: ldap搜索的超时时间,单位为秒。不填写则默认为3秒 + :type search_timeout: int + :param allow_local_user: 访问ldap服务器失败后是否允许使用本地用户鉴权 + :type allow_local_user: str """ @@ -61,6 +77,10 @@ def __init__(self, url=None, base_dn=None, user_dn=None, password=None, vpc_id=N self._password = None self._vpc_id = None self._filter_condition = None + self._backup_url = None + self._schema = None + self._search_timeout = None + self._allow_local_user = None self.discriminator = None self.url = url @@ -73,12 +93,20 @@ def __init__(self, url=None, base_dn=None, user_dn=None, password=None, vpc_id=N self.vpc_id = vpc_id if filter_condition is not None: self.filter_condition = filter_condition + if backup_url is not None: + self.backup_url = backup_url + if schema is not None: + self.schema = schema + if search_timeout is not None: + self.search_timeout = search_timeout + if allow_local_user is not None: + self.allow_local_user = allow_local_user @property def url(self): """Gets the url of this CreateLdapConfigRequestBody. - ldap服务器的url + ldap服务器的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000 :return: The url of this CreateLdapConfigRequestBody. :rtype: str @@ -89,7 +117,7 @@ def url(self): def url(self, url): """Sets the url of this CreateLdapConfigRequestBody. - ldap服务器的url + ldap服务器的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000 :param url: The url of this CreateLdapConfigRequestBody. :type url: str @@ -206,6 +234,94 @@ def filter_condition(self, filter_condition): """ self._filter_condition = filter_condition + @property + def backup_url(self): + """Gets the backup_url of this CreateLdapConfigRequestBody. + + ldap备节点的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000 + + :return: The backup_url of this CreateLdapConfigRequestBody. + :rtype: str + """ + return self._backup_url + + @backup_url.setter + def backup_url(self, backup_url): + """Sets the backup_url of this CreateLdapConfigRequestBody. + + ldap备节点的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000 + + :param backup_url: The backup_url of this CreateLdapConfigRequestBody. + :type backup_url: str + """ + self._backup_url = backup_url + + @property + def schema(self): + """Gets the schema of this CreateLdapConfigRequestBody. + + ldap的schema,不填写则默认为RFC2307 + + :return: The schema of this CreateLdapConfigRequestBody. + :rtype: str + """ + return self._schema + + @schema.setter + def schema(self, schema): + """Sets the schema of this CreateLdapConfigRequestBody. + + ldap的schema,不填写则默认为RFC2307 + + :param schema: The schema of this CreateLdapConfigRequestBody. + :type schema: str + """ + self._schema = schema + + @property + def search_timeout(self): + """Gets the search_timeout of this CreateLdapConfigRequestBody. + + ldap搜索的超时时间,单位为秒。不填写则默认为3秒 + + :return: The search_timeout of this CreateLdapConfigRequestBody. + :rtype: int + """ + return self._search_timeout + + @search_timeout.setter + def search_timeout(self, search_timeout): + """Sets the search_timeout of this CreateLdapConfigRequestBody. + + ldap搜索的超时时间,单位为秒。不填写则默认为3秒 + + :param search_timeout: The search_timeout of this CreateLdapConfigRequestBody. + :type search_timeout: int + """ + self._search_timeout = search_timeout + + @property + def allow_local_user(self): + """Gets the allow_local_user of this CreateLdapConfigRequestBody. + + 访问ldap服务器失败后是否允许使用本地用户鉴权 + + :return: The allow_local_user of this CreateLdapConfigRequestBody. + :rtype: str + """ + return self._allow_local_user + + @allow_local_user.setter + def allow_local_user(self, allow_local_user): + """Sets the allow_local_user of this CreateLdapConfigRequestBody. + + 访问ldap服务器失败后是否允许使用本地用户鉴权 + + :param allow_local_user: The allow_local_user of this CreateLdapConfigRequestBody. + :type allow_local_user: str + """ + self._allow_local_user = allow_local_user + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_ldap_config_response.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_ldap_config_response.py index 79bd31ea31..b7fc91c75b 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_ldap_config_response.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/create_ldap_config_response.py @@ -30,7 +30,7 @@ def __init__(self, job_id=None): The model defined in huaweicloud sdk - :param job_id: 创建ldap异步任务的id + :param job_id: ldap异步任务的id。可通过查询job的状态详情接口查询job的执行状态。 :type job_id: str """ @@ -46,7 +46,7 @@ def __init__(self, job_id=None): def job_id(self): """Gets the job_id of this CreateLdapConfigResponse. - 创建ldap异步任务的id + ldap异步任务的id。可通过查询job的状态详情接口查询job的执行状态。 :return: The job_id of this CreateLdapConfigResponse. :rtype: str @@ -57,7 +57,7 @@ def job_id(self): def job_id(self, job_id): """Sets the job_id of this CreateLdapConfigResponse. - 创建ldap异步任务的id + ldap异步任务的id。可通过查询job的状态详情接口查询job的执行状态。 :param job_id: The job_id of this CreateLdapConfigResponse. :type job_id: str diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/delete_hpc_cache_task_request.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/delete_hpc_cache_task_request.py new file mode 100644 index 0000000000..0da349f2ef --- /dev/null +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/delete_hpc_cache_task_request.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteHpcCacheTaskRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'share_id': 'str', + 'task_id': 'str' + } + + attribute_map = { + 'share_id': 'share_id', + 'task_id': 'task_id' + } + + def __init__(self, share_id=None, task_id=None): + """DeleteHpcCacheTaskRequest + + The model defined in huaweicloud sdk + + :param share_id: 文件系统ID + :type share_id: str + :param task_id: 任务ID + :type task_id: str + """ + + + + self._share_id = None + self._task_id = None + self.discriminator = None + + self.share_id = share_id + self.task_id = task_id + + @property + def share_id(self): + """Gets the share_id of this DeleteHpcCacheTaskRequest. + + 文件系统ID + + :return: The share_id of this DeleteHpcCacheTaskRequest. + :rtype: str + """ + return self._share_id + + @share_id.setter + def share_id(self, share_id): + """Sets the share_id of this DeleteHpcCacheTaskRequest. + + 文件系统ID + + :param share_id: The share_id of this DeleteHpcCacheTaskRequest. + :type share_id: str + """ + self._share_id = share_id + + @property + def task_id(self): + """Gets the task_id of this DeleteHpcCacheTaskRequest. + + 任务ID + + :return: The task_id of this DeleteHpcCacheTaskRequest. + :rtype: str + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this DeleteHpcCacheTaskRequest. + + 任务ID + + :param task_id: The task_id of this DeleteHpcCacheTaskRequest. + :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, DeleteHpcCacheTaskRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_task_sumbit_response.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/delete_hpc_cache_task_response.py similarity index 68% rename from huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_task_sumbit_response.py rename to huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/delete_hpc_cache_task_response.py index c064ee3e25..c78510563a 100644 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/run_task_sumbit_response.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/delete_hpc_cache_task_response.py @@ -6,7 +6,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RunTaskSumbitResponse(SdkResponse): +class DeleteHpcCacheTaskResponse(SdkResponse): """ Attributes: @@ -18,47 +18,47 @@ class RunTaskSumbitResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'result': 'TaskSumbitResponseResult' + 'x_request_id': 'str' } attribute_map = { - 'result': 'result' + 'x_request_id': 'X-request-id' } - def __init__(self, result=None): - """RunTaskSumbitResponse + def __init__(self, x_request_id=None): + """DeleteHpcCacheTaskResponse The model defined in huaweicloud sdk - :param result: - :type result: :class:`huaweicloudsdkmoderation.v2.TaskSumbitResponseResult` + :param x_request_id: + :type x_request_id: str """ - super(RunTaskSumbitResponse, self).__init__() + super(DeleteHpcCacheTaskResponse, self).__init__() - self._result = None + self._x_request_id = None self.discriminator = None - if result is not None: - self.result = result + if x_request_id is not None: + self.x_request_id = x_request_id @property - def result(self): - """Gets the result of this RunTaskSumbitResponse. + def x_request_id(self): + """Gets the x_request_id of this DeleteHpcCacheTaskResponse. - :return: The result of this RunTaskSumbitResponse. - :rtype: :class:`huaweicloudsdkmoderation.v2.TaskSumbitResponseResult` + :return: The x_request_id of this DeleteHpcCacheTaskResponse. + :rtype: str """ - return self._result + return self._x_request_id - @result.setter - def result(self, result): - """Sets the result of this RunTaskSumbitResponse. + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this DeleteHpcCacheTaskResponse. - :param result: The result of this RunTaskSumbitResponse. - :type result: :class:`huaweicloudsdkmoderation.v2.TaskSumbitResponseResult` + :param x_request_id: The x_request_id of this DeleteHpcCacheTaskResponse. + :type x_request_id: str """ - self._result = result + self._x_request_id = x_request_id def to_dict(self): """Returns the model properties as a dict""" @@ -102,7 +102,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RunTaskSumbitResponse): + if not isinstance(other, DeleteHpcCacheTaskResponse): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/delete_ldap_config_response.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/delete_ldap_config_response.py index 4b84a99efa..ddf12eb2fe 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/delete_ldap_config_response.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/delete_ldap_config_response.py @@ -30,7 +30,7 @@ def __init__(self, job_id=None): The model defined in huaweicloud sdk - :param job_id: 创建ldap异步任务的id + :param job_id: ldap异步任务的id。可通过查询job的状态详情接口查询job的执行状态。 :type job_id: str """ @@ -46,7 +46,7 @@ def __init__(self, job_id=None): def job_id(self): """Gets the job_id of this DeleteLdapConfigResponse. - 创建ldap异步任务的id + ldap异步任务的id。可通过查询job的状态详情接口查询job的执行状态。 :return: The job_id of this DeleteLdapConfigResponse. :rtype: str @@ -57,7 +57,7 @@ def job_id(self): def job_id(self, job_id): """Sets the job_id of this DeleteLdapConfigResponse. - 创建ldap异步任务的id + ldap异步任务的id。可通过查询job的状态详情接口查询job的执行状态。 :param job_id: The job_id of this DeleteLdapConfigResponse. :type job_id: str diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/delete_shared_tag_request.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/delete_shared_tag_request.py index 97c13fd6ad..e0ac533c76 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/delete_shared_tag_request.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/delete_shared_tag_request.py @@ -33,7 +33,7 @@ def __init__(self, share_id=None, key=None): :param share_id: 共享ID :type share_id: str - :param key: 标签的键,最大长度36个字符。 key不能为空,不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。只能包含大写字母、小写字母、数字,特殊字符\"-\"和\"_\"。 说明:调用删除共享标签接口删除标签时,如果标签的键中存在不被URL直接解析的特殊字符,需要对标签的键进行URL转义处理。 + :param key: 标签的键,最大长度128个字符。 key不能为空,不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。只能包含大写字母、小写字母、数字,特殊字符\"-\"和\"_\"。 说明:调用删除共享标签接口删除标签时,如果标签的键中存在不被URL直接解析的特殊字符,需要对标签的键进行URL转义处理。 :type key: str """ @@ -72,7 +72,7 @@ def share_id(self, share_id): def key(self): """Gets the key of this DeleteSharedTagRequest. - 标签的键,最大长度36个字符。 key不能为空,不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。只能包含大写字母、小写字母、数字,特殊字符\"-\"和\"_\"。 说明:调用删除共享标签接口删除标签时,如果标签的键中存在不被URL直接解析的特殊字符,需要对标签的键进行URL转义处理。 + 标签的键,最大长度128个字符。 key不能为空,不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。只能包含大写字母、小写字母、数字,特殊字符\"-\"和\"_\"。 说明:调用删除共享标签接口删除标签时,如果标签的键中存在不被URL直接解析的特殊字符,需要对标签的键进行URL转义处理。 :return: The key of this DeleteSharedTagRequest. :rtype: str @@ -83,7 +83,7 @@ def key(self): def key(self, key): """Sets the key of this DeleteSharedTagRequest. - 标签的键,最大长度36个字符。 key不能为空,不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。只能包含大写字母、小写字母、数字,特殊字符\"-\"和\"_\"。 说明:调用删除共享标签接口删除标签时,如果标签的键中存在不被URL直接解析的特殊字符,需要对标签的键进行URL转义处理。 + 标签的键,最大长度128个字符。 key不能为空,不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。只能包含大写字母、小写字母、数字,特殊字符\"-\"和\"_\"。 说明:调用删除共享标签接口删除标签时,如果标签的键中存在不被URL直接解析的特殊字符,需要对标签的键进行URL转义处理。 :param key: The key of this DeleteSharedTagRequest. :type key: str diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/extend.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/extend.py index 3b442491d6..e226f63a16 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/extend.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/extend.py @@ -33,7 +33,7 @@ def __init__(self, new_size=None, new_bandwidth=None, bss_param=None): The model defined in huaweicloud sdk - :param new_size: 扩容后文件系统的新容量,以GiB为单位。 通用型-标准型和性能型,取值范围500~32768 GiB,扩容步长大于等于100 GiB。 通用型-标准型增强版和性能型增强版。容量范围是10240~327680 GiB。扩容步长大于等于100 GiB。 HPC型文件系统,容量范围是3686~1048576 GiB。HPC型文件系统的容量必须为1.2TiB的倍数,扩容步长需要大于等于1.2TiB,需要将目标容量换算为GiB后需要向下取整。如4.8TiB->4915GiB,8.4TiB->8601GiB。 HPC缓存型文件系统,容量范围是4096~1048576 GiB。扩容步长均为1TiB。需要将目标容量换算为GiB。 + :param new_size: 扩容后文件系统的新容量,以GiB为单位。 SFS Turbo上一代文件系统规格类型-标准型和性能型,取值范围500~32768 GiB,扩容步长大于等于100 GiB。 SFS Turbo上一代文件系统规格类型-标准型增强版和性能型增强版。容量范围是10240~327680 GiB。扩容步长大于等于100 GiB。 20MB/s/TiB,容量范围是3686~1048576 GiB。容量必须为1.2TiB的倍数,扩容步长需要大于等于1.2TiB,需要将目标容量换算为GiB后需要向下取整。如4.8TiB->4915GiB,8.4TiB->8601GiB。 40MB/s/TiB,容量范围是1228~1048576 GiB。容量必须为1.2TiB的倍数,扩容步长需要大于等于1.2TiB,需要将目标容量换算为GiB后需要向下取整。如4.8TiB->4915GiB,8.4TiB->8601GiB。 125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB与40MB/s/TiB的容量范围,扩容步长相同。 HPC缓存型文件系统,容量范围是4096~1048576 GiB。扩容步长均为1TiB。需要将目标容量换算为GiB。 :type new_size: int :param new_bandwidth: 带宽的目标值,单位:GB。仅HPC缓存型支持带宽扩缩。 支持的带宽值为:\"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"、\"48G\"。 :type new_bandwidth: int @@ -58,7 +58,7 @@ def __init__(self, new_size=None, new_bandwidth=None, bss_param=None): def new_size(self): """Gets the new_size of this Extend. - 扩容后文件系统的新容量,以GiB为单位。 通用型-标准型和性能型,取值范围500~32768 GiB,扩容步长大于等于100 GiB。 通用型-标准型增强版和性能型增强版。容量范围是10240~327680 GiB。扩容步长大于等于100 GiB。 HPC型文件系统,容量范围是3686~1048576 GiB。HPC型文件系统的容量必须为1.2TiB的倍数,扩容步长需要大于等于1.2TiB,需要将目标容量换算为GiB后需要向下取整。如4.8TiB->4915GiB,8.4TiB->8601GiB。 HPC缓存型文件系统,容量范围是4096~1048576 GiB。扩容步长均为1TiB。需要将目标容量换算为GiB。 + 扩容后文件系统的新容量,以GiB为单位。 SFS Turbo上一代文件系统规格类型-标准型和性能型,取值范围500~32768 GiB,扩容步长大于等于100 GiB。 SFS Turbo上一代文件系统规格类型-标准型增强版和性能型增强版。容量范围是10240~327680 GiB。扩容步长大于等于100 GiB。 20MB/s/TiB,容量范围是3686~1048576 GiB。容量必须为1.2TiB的倍数,扩容步长需要大于等于1.2TiB,需要将目标容量换算为GiB后需要向下取整。如4.8TiB->4915GiB,8.4TiB->8601GiB。 40MB/s/TiB,容量范围是1228~1048576 GiB。容量必须为1.2TiB的倍数,扩容步长需要大于等于1.2TiB,需要将目标容量换算为GiB后需要向下取整。如4.8TiB->4915GiB,8.4TiB->8601GiB。 125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB与40MB/s/TiB的容量范围,扩容步长相同。 HPC缓存型文件系统,容量范围是4096~1048576 GiB。扩容步长均为1TiB。需要将目标容量换算为GiB。 :return: The new_size of this Extend. :rtype: int @@ -69,7 +69,7 @@ def new_size(self): def new_size(self, new_size): """Sets the new_size of this Extend. - 扩容后文件系统的新容量,以GiB为单位。 通用型-标准型和性能型,取值范围500~32768 GiB,扩容步长大于等于100 GiB。 通用型-标准型增强版和性能型增强版。容量范围是10240~327680 GiB。扩容步长大于等于100 GiB。 HPC型文件系统,容量范围是3686~1048576 GiB。HPC型文件系统的容量必须为1.2TiB的倍数,扩容步长需要大于等于1.2TiB,需要将目标容量换算为GiB后需要向下取整。如4.8TiB->4915GiB,8.4TiB->8601GiB。 HPC缓存型文件系统,容量范围是4096~1048576 GiB。扩容步长均为1TiB。需要将目标容量换算为GiB。 + 扩容后文件系统的新容量,以GiB为单位。 SFS Turbo上一代文件系统规格类型-标准型和性能型,取值范围500~32768 GiB,扩容步长大于等于100 GiB。 SFS Turbo上一代文件系统规格类型-标准型增强版和性能型增强版。容量范围是10240~327680 GiB。扩容步长大于等于100 GiB。 20MB/s/TiB,容量范围是3686~1048576 GiB。容量必须为1.2TiB的倍数,扩容步长需要大于等于1.2TiB,需要将目标容量换算为GiB后需要向下取整。如4.8TiB->4915GiB,8.4TiB->8601GiB。 40MB/s/TiB,容量范围是1228~1048576 GiB。容量必须为1.2TiB的倍数,扩容步长需要大于等于1.2TiB,需要将目标容量换算为GiB后需要向下取整。如4.8TiB->4915GiB,8.4TiB->8601GiB。 125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB与40MB/s/TiB的容量范围,扩容步长相同。 HPC缓存型文件系统,容量范围是4096~1048576 GiB。扩容步长均为1TiB。需要将目标容量换算为GiB。 :param new_size: The new_size of this Extend. :type new_size: int diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/list_hpc_cache_tasks_request.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/list_hpc_cache_tasks_request.py index 565dff6a68..43632c6c5b 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/list_hpc_cache_tasks_request.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/list_hpc_cache_tasks_request.py @@ -21,7 +21,9 @@ class ListHpcCacheTasksRequest: 'type': 'str', 'status': 'str', 'offset': 'int', - 'limit': 'int' + 'limit': 'int', + 'start_time': 'str', + 'end_time': 'str' } attribute_map = { @@ -29,10 +31,12 @@ class ListHpcCacheTasksRequest: 'type': 'type', 'status': 'status', 'offset': 'offset', - 'limit': 'limit' + 'limit': 'limit', + 'start_time': 'start_time', + 'end_time': 'end_time' } - def __init__(self, share_id=None, type=None, status=None, offset=None, limit=None): + def __init__(self, share_id=None, type=None, status=None, offset=None, limit=None, start_time=None, end_time=None): """ListHpcCacheTasksRequest The model defined in huaweicloud sdk @@ -47,6 +51,10 @@ def __init__(self, share_id=None, type=None, status=None, offset=None, limit=Non :type offset: int :param limit: limit,默认值为 20 :type limit: int + :param start_time: start_time + :type start_time: str + :param end_time: end_time + :type end_time: str """ @@ -56,6 +64,8 @@ def __init__(self, share_id=None, type=None, status=None, offset=None, limit=Non self._status = None self._offset = None self._limit = None + self._start_time = None + self._end_time = None self.discriminator = None self.share_id = share_id @@ -67,6 +77,10 @@ def __init__(self, share_id=None, type=None, status=None, offset=None, limit=Non self.offset = offset if limit is not None: self.limit = limit + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time @property def share_id(self): @@ -178,6 +192,50 @@ def limit(self, limit): """ self._limit = limit + @property + def start_time(self): + """Gets the start_time of this ListHpcCacheTasksRequest. + + start_time + + :return: The start_time of this ListHpcCacheTasksRequest. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ListHpcCacheTasksRequest. + + start_time + + :param start_time: The start_time of this ListHpcCacheTasksRequest. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ListHpcCacheTasksRequest. + + end_time + + :return: The end_time of this ListHpcCacheTasksRequest. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ListHpcCacheTasksRequest. + + end_time + + :param end_time: The end_time of this ListHpcCacheTasksRequest. + :type end_time: str + """ + self._end_time = end_time + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/list_perm_rules_request.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/list_perm_rules_request.py index e5918f5a4f..d4257a5523 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/list_perm_rules_request.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/list_perm_rules_request.py @@ -17,28 +17,42 @@ class ListPermRulesRequest: sensitive_list = [] openapi_types = { - 'share_id': 'str' + 'share_id': 'str', + 'limit': 'int', + 'offset': 'int' } attribute_map = { - 'share_id': 'share_id' + 'share_id': 'share_id', + 'limit': 'limit', + 'offset': 'offset' } - def __init__(self, share_id=None): + def __init__(self, share_id=None, limit=None, offset=None): """ListPermRulesRequest The model defined in huaweicloud sdk :param share_id: 文件系统id :type share_id: str + :param limit: 返回的权限规则个数 + :type limit: int + :param offset: 返回的权限规则的偏移量 + :type offset: int """ self._share_id = None + self._limit = None + self._offset = None self.discriminator = None self.share_id = share_id + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset @property def share_id(self): @@ -62,6 +76,50 @@ def share_id(self, share_id): """ self._share_id = share_id + @property + def limit(self): + """Gets the limit of this ListPermRulesRequest. + + 返回的权限规则个数 + + :return: The limit of this ListPermRulesRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListPermRulesRequest. + + 返回的权限规则个数 + + :param limit: The limit of this ListPermRulesRequest. + :type limit: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this ListPermRulesRequest. + + 返回的权限规则的偏移量 + + :return: The offset of this ListPermRulesRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListPermRulesRequest. + + 返回的权限规则的偏移量 + + :param offset: The offset of this ListPermRulesRequest. + :type offset: int + """ + self._offset = offset + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/list_shared_tags_request.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/list_shared_tags_request.py index c43905991a..5b283d2d10 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/list_shared_tags_request.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/list_shared_tags_request.py @@ -17,21 +17,81 @@ class ListSharedTagsRequest: sensitive_list = [] openapi_types = { + 'limit': 'int', + 'offset': 'int' } attribute_map = { + 'limit': 'limit', + 'offset': 'offset' } - def __init__(self): + def __init__(self, limit=None, offset=None): """ListSharedTagsRequest The model defined in huaweicloud sdk + :param limit: 返回的标签个数 + :type limit: int + :param offset: 标签查询个数的偏移量 + :type offset: int """ + + self._limit = None + self._offset = None self.discriminator = None + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset + + @property + def limit(self): + """Gets the limit of this ListSharedTagsRequest. + + 返回的标签个数 + + :return: The limit of this ListSharedTagsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListSharedTagsRequest. + + 返回的标签个数 + + :param limit: The limit of this ListSharedTagsRequest. + :type limit: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this ListSharedTagsRequest. + + 标签查询个数的偏移量 + + :return: The offset of this ListSharedTagsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListSharedTagsRequest. + + 标签查询个数的偏移量 + + :param offset: The offset of this ListSharedTagsRequest. + :type offset: int + """ + self._offset = offset + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/list_shares_request.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/list_shares_request.py index 8ed7c3a5d6..5c9f3752b2 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/list_shares_request.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/list_shares_request.py @@ -31,9 +31,9 @@ def __init__(self, limit=None, offset=None): The model defined in huaweicloud sdk - :param limit: 返回的文件系统个数,最大值为200。 + :param limit: 设置返回的文件系统个数的最大值,不填默认为1000个 :type limit: int - :param offset: 文件系统查询个数的偏移量。 + :param offset: 设置返回的文件系统的偏移量。 :type offset: int """ @@ -52,7 +52,7 @@ def __init__(self, limit=None, offset=None): def limit(self): """Gets the limit of this ListSharesRequest. - 返回的文件系统个数,最大值为200。 + 设置返回的文件系统个数的最大值,不填默认为1000个 :return: The limit of this ListSharesRequest. :rtype: int @@ -63,7 +63,7 @@ def limit(self): def limit(self, limit): """Sets the limit of this ListSharesRequest. - 返回的文件系统个数,最大值为200。 + 设置返回的文件系统个数的最大值,不填默认为1000个 :param limit: The limit of this ListSharesRequest. :type limit: int @@ -74,7 +74,7 @@ def limit(self, limit): def offset(self): """Gets the offset of this ListSharesRequest. - 文件系统查询个数的偏移量。 + 设置返回的文件系统的偏移量。 :return: The offset of this ListSharesRequest. :rtype: int @@ -85,7 +85,7 @@ def offset(self): def offset(self, offset): """Sets the offset of this ListSharesRequest. - 文件系统查询个数的偏移量。 + 设置返回的文件系统的偏移量。 :param offset: The offset of this ListSharesRequest. :type offset: int diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/metadata.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/metadata.py index c19c34e97a..69d6b85baf 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/metadata.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/metadata.py @@ -43,9 +43,9 @@ def __init__(self, crypt_key_id=None, dedicated_flavor=None, dedicated_storage_i :type dedicated_flavor: str :param dedicated_storage_id: 创专属文件系统,要指定一个专属分布式存储的ID。 :type dedicated_storage_id: str - :param expand_type: 扩展类型。创建增强型/HPC型/HPC缓存型文件系统时,该参数必填。 创建增强型的文件系统,包括标准型-增强版和性能型-增强版,需要填写\"bandwidth\"。 创建HPC型文件系统,需要填写\"hpc\"。 创建HPC缓存型,需要填写\"hpc_cache\"。 + :param expand_type: 扩展类型;当文件系统正在创建时,该字段不返回。 - 创建增强型、20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统时,该参数必填。 - 创建增强型的文件系统,包括标准型-增强版和性能型-增强版,需要填写\"bandwidth\"。 - 创建20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB文件系统,需要填写\"hpc\"。 - 创建HPC缓存型,需要填写\"hpc_cache\"。 :type expand_type: str - :param hpc_bw: 文件系统的带宽规格。创建HPC型/HPC缓存型文件系统时,该参数必填。 HPC型,可以填写\"20M\"、\"40M\"、\"125M\"、\"250M\"、\"500M\"、\"1000M\"。 HPC缓存型,可以填写\"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"、\"48G\"。 + :param hpc_bw: 文件系统的带宽规格。 创建20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统时,该参数必填。 20MB/s/TiB,填写\"20M\"。 40MB/s/TiB,填写\"40M\"。 125MB/s/TiB,填写\"125M\"。 250MB/s/TiB,填写\"250M\"。 500MB/s/TiB,填写\"500M\"。 1000MB/s/TiB,填写\"1000M\"。 HPC缓存型,填写\"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"或\"48G\"。 :type hpc_bw: str """ @@ -139,7 +139,7 @@ def dedicated_storage_id(self, dedicated_storage_id): def expand_type(self): """Gets the expand_type of this Metadata. - 扩展类型。创建增强型/HPC型/HPC缓存型文件系统时,该参数必填。 创建增强型的文件系统,包括标准型-增强版和性能型-增强版,需要填写\"bandwidth\"。 创建HPC型文件系统,需要填写\"hpc\"。 创建HPC缓存型,需要填写\"hpc_cache\"。 + 扩展类型;当文件系统正在创建时,该字段不返回。 - 创建增强型、20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统时,该参数必填。 - 创建增强型的文件系统,包括标准型-增强版和性能型-增强版,需要填写\"bandwidth\"。 - 创建20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB文件系统,需要填写\"hpc\"。 - 创建HPC缓存型,需要填写\"hpc_cache\"。 :return: The expand_type of this Metadata. :rtype: str @@ -150,7 +150,7 @@ def expand_type(self): def expand_type(self, expand_type): """Sets the expand_type of this Metadata. - 扩展类型。创建增强型/HPC型/HPC缓存型文件系统时,该参数必填。 创建增强型的文件系统,包括标准型-增强版和性能型-增强版,需要填写\"bandwidth\"。 创建HPC型文件系统,需要填写\"hpc\"。 创建HPC缓存型,需要填写\"hpc_cache\"。 + 扩展类型;当文件系统正在创建时,该字段不返回。 - 创建增强型、20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统时,该参数必填。 - 创建增强型的文件系统,包括标准型-增强版和性能型-增强版,需要填写\"bandwidth\"。 - 创建20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB文件系统,需要填写\"hpc\"。 - 创建HPC缓存型,需要填写\"hpc_cache\"。 :param expand_type: The expand_type of this Metadata. :type expand_type: str @@ -161,7 +161,7 @@ def expand_type(self, expand_type): def hpc_bw(self): """Gets the hpc_bw of this Metadata. - 文件系统的带宽规格。创建HPC型/HPC缓存型文件系统时,该参数必填。 HPC型,可以填写\"20M\"、\"40M\"、\"125M\"、\"250M\"、\"500M\"、\"1000M\"。 HPC缓存型,可以填写\"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"、\"48G\"。 + 文件系统的带宽规格。 创建20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统时,该参数必填。 20MB/s/TiB,填写\"20M\"。 40MB/s/TiB,填写\"40M\"。 125MB/s/TiB,填写\"125M\"。 250MB/s/TiB,填写\"250M\"。 500MB/s/TiB,填写\"500M\"。 1000MB/s/TiB,填写\"1000M\"。 HPC缓存型,填写\"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"或\"48G\"。 :return: The hpc_bw of this Metadata. :rtype: str @@ -172,7 +172,7 @@ def hpc_bw(self): def hpc_bw(self, hpc_bw): """Sets the hpc_bw of this Metadata. - 文件系统的带宽规格。创建HPC型/HPC缓存型文件系统时,该参数必填。 HPC型,可以填写\"20M\"、\"40M\"、\"125M\"、\"250M\"、\"500M\"、\"1000M\"。 HPC缓存型,可以填写\"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"、\"48G\"。 + 文件系统的带宽规格。 创建20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统时,该参数必填。 20MB/s/TiB,填写\"20M\"。 40MB/s/TiB,填写\"40M\"。 125MB/s/TiB,填写\"125M\"。 250MB/s/TiB,填写\"250M\"。 500MB/s/TiB,填写\"500M\"。 1000MB/s/TiB,填写\"1000M\"。 HPC缓存型,填写\"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"或\"48G\"。 :param hpc_bw: The hpc_bw of this Metadata. :type hpc_bw: str diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/obs_data_repository.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/obs_data_repository.py index bf3832ebc1..6a02a7e25d 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/obs_data_repository.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/obs_data_repository.py @@ -18,15 +18,19 @@ class ObsDataRepository: openapi_types = { 'bucket': 'str', - 'endpoint': 'str' + 'endpoint': 'str', + 'policy': 'ObsDataRepositoryPolicy', + 'attributes': 'ObsTargetAttributes' } attribute_map = { 'bucket': 'bucket', - 'endpoint': 'endpoint' + 'endpoint': 'endpoint', + 'policy': 'policy', + 'attributes': 'attributes' } - def __init__(self, bucket=None, endpoint=None): + def __init__(self, bucket=None, endpoint=None, policy=None, attributes=None): """ObsDataRepository The model defined in huaweicloud sdk @@ -35,16 +39,26 @@ def __init__(self, bucket=None, endpoint=None): :type bucket: str :param endpoint: OBS桶所在的区域域名 :type endpoint: str + :param policy: + :type policy: :class:`huaweicloudsdksfsturbo.v1.ObsDataRepositoryPolicy` + :param attributes: + :type attributes: :class:`huaweicloudsdksfsturbo.v1.ObsTargetAttributes` """ self._bucket = None self._endpoint = None + self._policy = None + self._attributes = None self.discriminator = None self.bucket = bucket self.endpoint = endpoint + if policy is not None: + self.policy = policy + if attributes is not None: + self.attributes = attributes @property def bucket(self): @@ -90,6 +104,42 @@ def endpoint(self, endpoint): """ self._endpoint = endpoint + @property + def policy(self): + """Gets the policy of this ObsDataRepository. + + :return: The policy of this ObsDataRepository. + :rtype: :class:`huaweicloudsdksfsturbo.v1.ObsDataRepositoryPolicy` + """ + return self._policy + + @policy.setter + def policy(self, policy): + """Sets the policy of this ObsDataRepository. + + :param policy: The policy of this ObsDataRepository. + :type policy: :class:`huaweicloudsdksfsturbo.v1.ObsDataRepositoryPolicy` + """ + self._policy = policy + + @property + def attributes(self): + """Gets the attributes of this ObsDataRepository. + + :return: The attributes of this ObsDataRepository. + :rtype: :class:`huaweicloudsdksfsturbo.v1.ObsTargetAttributes` + """ + return self._attributes + + @attributes.setter + def attributes(self, attributes): + """Sets the attributes of this ObsDataRepository. + + :param attributes: The attributes of this ObsDataRepository. + :type attributes: :class:`huaweicloudsdksfsturbo.v1.ObsTargetAttributes` + """ + self._attributes = attributes + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/obs_data_repository_policy.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/obs_data_repository_policy.py new file mode 100644 index 0000000000..77d2470e11 --- /dev/null +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/obs_data_repository_policy.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ObsDataRepositoryPolicy: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'auto_export_policy': 'AutoExportPolicy' + } + + attribute_map = { + 'auto_export_policy': 'auto_export_policy' + } + + def __init__(self, auto_export_policy=None): + """ObsDataRepositoryPolicy + + The model defined in huaweicloud sdk + + :param auto_export_policy: + :type auto_export_policy: :class:`huaweicloudsdksfsturbo.v1.AutoExportPolicy` + """ + + + + self._auto_export_policy = None + self.discriminator = None + + if auto_export_policy is not None: + self.auto_export_policy = auto_export_policy + + @property + def auto_export_policy(self): + """Gets the auto_export_policy of this ObsDataRepositoryPolicy. + + :return: The auto_export_policy of this ObsDataRepositoryPolicy. + :rtype: :class:`huaweicloudsdksfsturbo.v1.AutoExportPolicy` + """ + return self._auto_export_policy + + @auto_export_policy.setter + def auto_export_policy(self, auto_export_policy): + """Sets the auto_export_policy of this ObsDataRepositoryPolicy. + + :param auto_export_policy: The auto_export_policy of this ObsDataRepositoryPolicy. + :type auto_export_policy: :class:`huaweicloudsdksfsturbo.v1.AutoExportPolicy` + """ + self._auto_export_policy = auto_export_policy + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ObsDataRepositoryPolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/obs_target_attributes.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/obs_target_attributes.py new file mode 100644 index 0000000000..1f1b08f07a --- /dev/null +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/obs_target_attributes.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ObsTargetAttributes: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'file_mode': 'int', + 'dir_mode': 'int', + 'uid': 'int', + 'gid': 'int' + } + + attribute_map = { + 'file_mode': 'file_mode', + 'dir_mode': 'dir_mode', + 'uid': 'uid', + 'gid': 'gid' + } + + def __init__(self, file_mode=None, dir_mode=None, uid=None, gid=None): + """ObsTargetAttributes + + The model defined in huaweicloud sdk + + :param file_mode: 导入的文件权限。取值范围是0到777。 第一位表示文件所有者的权限,取值范围是0到7;第二位表示文件所属用户组的权限,取值范围是0到7;第三位表示其他用户的权限,取值范围是0到7。文件所有者由uid指定,文件所属用户组由gid指定,不是文件所有者且不在文件所属用户组的用户为其他用户。 数字4、2、1分别表示读、写、执行权限,这些数字相加,即可得到所需的权限组合。例如:750中第一位7代表该文件所有者对该文件具有读、写、执行权限;第二位5代表该文件所属用户组对该文件具有读、执行权限;第三位0代表其他用户对该文件无权限。 + :type file_mode: int + :param dir_mode: 导入的目录权限。取值范围是0到777。 第一位表示目录所有者的权限,取值范围是0到7;第二位表示目录所属用户组的权限,取值范围是0到7;第三位表示其他用户的权限,取值范围是0到7。目录所有者由uid指定,目录所属用户组由gid指定,不是目录所有者且不在目录所属用户组的用户为其他用户。 数字4、2、1分别表示读、写、执行权限,这些数字相加,即可得到所需的权限组合。例如:750中第一位7代表该目录所有者对该目录具有读、写、执行权限;第二位5代表该目录所属用户组对该目录具有读、执行权限;第三位0代表其他用户对该文件无权限。 + :type dir_mode: int + :param uid: 导入对象所有者的用户id,默认值是0,取值范围是0到4,294,967,294(即2^32-2)。 + :type uid: int + :param gid: 导入对象所属用户组id,默认值是0,取值范围是0到4,294,967,294(即2^32-2)。 + :type gid: int + """ + + + + self._file_mode = None + self._dir_mode = None + self._uid = None + self._gid = None + self.discriminator = None + + if file_mode is not None: + self.file_mode = file_mode + if dir_mode is not None: + self.dir_mode = dir_mode + if uid is not None: + self.uid = uid + if gid is not None: + self.gid = gid + + @property + def file_mode(self): + """Gets the file_mode of this ObsTargetAttributes. + + 导入的文件权限。取值范围是0到777。 第一位表示文件所有者的权限,取值范围是0到7;第二位表示文件所属用户组的权限,取值范围是0到7;第三位表示其他用户的权限,取值范围是0到7。文件所有者由uid指定,文件所属用户组由gid指定,不是文件所有者且不在文件所属用户组的用户为其他用户。 数字4、2、1分别表示读、写、执行权限,这些数字相加,即可得到所需的权限组合。例如:750中第一位7代表该文件所有者对该文件具有读、写、执行权限;第二位5代表该文件所属用户组对该文件具有读、执行权限;第三位0代表其他用户对该文件无权限。 + + :return: The file_mode of this ObsTargetAttributes. + :rtype: int + """ + return self._file_mode + + @file_mode.setter + def file_mode(self, file_mode): + """Sets the file_mode of this ObsTargetAttributes. + + 导入的文件权限。取值范围是0到777。 第一位表示文件所有者的权限,取值范围是0到7;第二位表示文件所属用户组的权限,取值范围是0到7;第三位表示其他用户的权限,取值范围是0到7。文件所有者由uid指定,文件所属用户组由gid指定,不是文件所有者且不在文件所属用户组的用户为其他用户。 数字4、2、1分别表示读、写、执行权限,这些数字相加,即可得到所需的权限组合。例如:750中第一位7代表该文件所有者对该文件具有读、写、执行权限;第二位5代表该文件所属用户组对该文件具有读、执行权限;第三位0代表其他用户对该文件无权限。 + + :param file_mode: The file_mode of this ObsTargetAttributes. + :type file_mode: int + """ + self._file_mode = file_mode + + @property + def dir_mode(self): + """Gets the dir_mode of this ObsTargetAttributes. + + 导入的目录权限。取值范围是0到777。 第一位表示目录所有者的权限,取值范围是0到7;第二位表示目录所属用户组的权限,取值范围是0到7;第三位表示其他用户的权限,取值范围是0到7。目录所有者由uid指定,目录所属用户组由gid指定,不是目录所有者且不在目录所属用户组的用户为其他用户。 数字4、2、1分别表示读、写、执行权限,这些数字相加,即可得到所需的权限组合。例如:750中第一位7代表该目录所有者对该目录具有读、写、执行权限;第二位5代表该目录所属用户组对该目录具有读、执行权限;第三位0代表其他用户对该文件无权限。 + + :return: The dir_mode of this ObsTargetAttributes. + :rtype: int + """ + return self._dir_mode + + @dir_mode.setter + def dir_mode(self, dir_mode): + """Sets the dir_mode of this ObsTargetAttributes. + + 导入的目录权限。取值范围是0到777。 第一位表示目录所有者的权限,取值范围是0到7;第二位表示目录所属用户组的权限,取值范围是0到7;第三位表示其他用户的权限,取值范围是0到7。目录所有者由uid指定,目录所属用户组由gid指定,不是目录所有者且不在目录所属用户组的用户为其他用户。 数字4、2、1分别表示读、写、执行权限,这些数字相加,即可得到所需的权限组合。例如:750中第一位7代表该目录所有者对该目录具有读、写、执行权限;第二位5代表该目录所属用户组对该目录具有读、执行权限;第三位0代表其他用户对该文件无权限。 + + :param dir_mode: The dir_mode of this ObsTargetAttributes. + :type dir_mode: int + """ + self._dir_mode = dir_mode + + @property + def uid(self): + """Gets the uid of this ObsTargetAttributes. + + 导入对象所有者的用户id,默认值是0,取值范围是0到4,294,967,294(即2^32-2)。 + + :return: The uid of this ObsTargetAttributes. + :rtype: int + """ + return self._uid + + @uid.setter + def uid(self, uid): + """Sets the uid of this ObsTargetAttributes. + + 导入对象所有者的用户id,默认值是0,取值范围是0到4,294,967,294(即2^32-2)。 + + :param uid: The uid of this ObsTargetAttributes. + :type uid: int + """ + self._uid = uid + + @property + def gid(self): + """Gets the gid of this ObsTargetAttributes. + + 导入对象所属用户组id,默认值是0,取值范围是0到4,294,967,294(即2^32-2)。 + + :return: The gid of this ObsTargetAttributes. + :rtype: int + """ + return self._gid + + @gid.setter + def gid(self, gid): + """Sets the gid of this ObsTargetAttributes. + + 导入对象所属用户组id,默认值是0,取值范围是0到4,294,967,294(即2^32-2)。 + + :param gid: The gid of this ObsTargetAttributes. + :type gid: int + """ + self._gid = gid + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ObsTargetAttributes): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/one_perm_rule_request_info.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/one_perm_rule_request_info.py index 3ebe74a6e1..f16dc0e349 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/one_perm_rule_request_info.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/one_perm_rule_request_info.py @@ -35,9 +35,9 @@ def __init__(self, ip_cidr=None, rw_type=None, user_type=None): :param ip_cidr: 授权对象的IP地址或网段,设置后不支持修改 :type ip_cidr: str - :param rw_type: -| 授权对象的读写权限 rw:默认选项,以读写的方式共享 ro:以只读的方式共享 + :param rw_type: 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限 :type rw_type: str - :param user_type: -| 授权对象的系统用户对文件系统的访问权限。取值如下: no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。 + :param user_type: 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:默认选项。客户端使用包括root用户在内的任何用户,NFS服务器都保持客户端使用的用户,不做映射。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。客户端使用非root用户时,NFS服务器保持客户端使用的用户,不做映射。 - all_squash:所有访问NFS服务器的客户端的用户都映射为匿名用户。 :type user_type: str """ @@ -81,7 +81,7 @@ def ip_cidr(self, ip_cidr): def rw_type(self): """Gets the rw_type of this OnePermRuleRequestInfo. - -| 授权对象的读写权限 rw:默认选项,以读写的方式共享 ro:以只读的方式共享 + 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限 :return: The rw_type of this OnePermRuleRequestInfo. :rtype: str @@ -92,7 +92,7 @@ def rw_type(self): def rw_type(self, rw_type): """Sets the rw_type of this OnePermRuleRequestInfo. - -| 授权对象的读写权限 rw:默认选项,以读写的方式共享 ro:以只读的方式共享 + 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限 :param rw_type: The rw_type of this OnePermRuleRequestInfo. :type rw_type: str @@ -103,7 +103,7 @@ def rw_type(self, rw_type): def user_type(self): """Gets the user_type of this OnePermRuleRequestInfo. - -| 授权对象的系统用户对文件系统的访问权限。取值如下: no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。 + 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:默认选项。客户端使用包括root用户在内的任何用户,NFS服务器都保持客户端使用的用户,不做映射。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。客户端使用非root用户时,NFS服务器保持客户端使用的用户,不做映射。 - all_squash:所有访问NFS服务器的客户端的用户都映射为匿名用户。 :return: The user_type of this OnePermRuleRequestInfo. :rtype: str @@ -114,7 +114,7 @@ def user_type(self): def user_type(self, user_type): """Sets the user_type of this OnePermRuleRequestInfo. - -| 授权对象的系统用户对文件系统的访问权限。取值如下: no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。 + 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:默认选项。客户端使用包括root用户在内的任何用户,NFS服务器都保持客户端使用的用户,不做映射。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。客户端使用非root用户时,NFS服务器保持客户端使用的用户,不做映射。 - all_squash:所有访问NFS服务器的客户端的用户都映射为匿名用户。 :param user_type: The user_type of this OnePermRuleRequestInfo. :type user_type: str diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/one_perm_rule_response_info.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/one_perm_rule_response_info.py index ed2d9cc7ef..099b06d4fb 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/one_perm_rule_response_info.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/one_perm_rule_response_info.py @@ -39,9 +39,9 @@ def __init__(self, id=None, ip_cidr=None, rw_type=None, user_type=None): :type id: str :param ip_cidr: 授权对象的IP地址或网段 :type ip_cidr: str - :param rw_type: -| 授权对象的读写权限 rw:默认选项,以读写的方式共享 ro:以只读的方式共享 + :param rw_type: 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限 :type rw_type: str - :param user_type: -| 授权对象的系统用户对文件系统的访问权限。取值如下: no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。 + :param user_type: 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 - all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。' :type user_type: str """ @@ -106,7 +106,7 @@ def ip_cidr(self, ip_cidr): def rw_type(self): """Gets the rw_type of this OnePermRuleResponseInfo. - -| 授权对象的读写权限 rw:默认选项,以读写的方式共享 ro:以只读的方式共享 + 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限 :return: The rw_type of this OnePermRuleResponseInfo. :rtype: str @@ -117,7 +117,7 @@ def rw_type(self): def rw_type(self, rw_type): """Sets the rw_type of this OnePermRuleResponseInfo. - -| 授权对象的读写权限 rw:默认选项,以读写的方式共享 ro:以只读的方式共享 + 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限 :param rw_type: The rw_type of this OnePermRuleResponseInfo. :type rw_type: str @@ -128,7 +128,7 @@ def rw_type(self, rw_type): def user_type(self): """Gets the user_type of this OnePermRuleResponseInfo. - -| 授权对象的系统用户对文件系统的访问权限。取值如下: no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。 + 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 - all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。' :return: The user_type of this OnePermRuleResponseInfo. :rtype: str @@ -139,7 +139,7 @@ def user_type(self): def user_type(self, user_type): """Sets the user_type of this OnePermRuleResponseInfo. - -| 授权对象的系统用户对文件系统的访问权限。取值如下: no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。 + 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 - all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。' :param user_type: The user_type of this OnePermRuleResponseInfo. :type user_type: str diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/req_update_hpc_cache_data.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/req_update_hpc_cache_data.py index bd19cf0b01..a5d7bb1b63 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/req_update_hpc_cache_data.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/req_update_hpc_cache_data.py @@ -19,18 +19,16 @@ class ReqUpdateHpcCacheData: openapi_types = { 'gc_time': 'int', 'ck_time': 'int', - 'nas': 'list[ConfigNasTarget]', - 'obs': 'list[ConfigObsTarget]' + 'nas': 'list[ConfigNasTarget]' } attribute_map = { 'gc_time': 'gc_time', 'ck_time': 'ck_time', - 'nas': 'nas', - 'obs': 'obs' + 'nas': 'nas' } - def __init__(self, gc_time=None, ck_time=None, nas=None, obs=None): + def __init__(self, gc_time=None, ck_time=None, nas=None): """ReqUpdateHpcCacheData The model defined in huaweicloud sdk @@ -39,10 +37,8 @@ def __init__(self, gc_time=None, ck_time=None, nas=None, obs=None): :type gc_time: int :param ck_time: 后端校验时间。单位:秒。指定时间间隔进行线上缓存文件与后端存储文件比较,存在变化则自动更新。0表示文件进行实时校验。 :type ck_time: int - :param nas: 配置 nas 后端的信息, 和 obs 字段为二选一的关系 + :param nas: 配置 nas 后端的信息 :type nas: list[:class:`huaweicloudsdksfsturbo.v1.ConfigNasTarget`] - :param obs: 配置 obs 后端的信息, 和 nas 字段为二选一的关系 - :type obs: list[:class:`huaweicloudsdksfsturbo.v1.ConfigObsTarget`] """ @@ -50,15 +46,12 @@ def __init__(self, gc_time=None, ck_time=None, nas=None, obs=None): self._gc_time = None self._ck_time = None self._nas = None - self._obs = None self.discriminator = None self.gc_time = gc_time self.ck_time = ck_time if nas is not None: self.nas = nas - if obs is not None: - self.obs = obs @property def gc_time(self): @@ -108,7 +101,7 @@ def ck_time(self, ck_time): def nas(self): """Gets the nas of this ReqUpdateHpcCacheData. - 配置 nas 后端的信息, 和 obs 字段为二选一的关系 + 配置 nas 后端的信息 :return: The nas of this ReqUpdateHpcCacheData. :rtype: list[:class:`huaweicloudsdksfsturbo.v1.ConfigNasTarget`] @@ -119,35 +112,13 @@ def nas(self): def nas(self, nas): """Sets the nas of this ReqUpdateHpcCacheData. - 配置 nas 后端的信息, 和 obs 字段为二选一的关系 + 配置 nas 后端的信息 :param nas: The nas of this ReqUpdateHpcCacheData. :type nas: list[:class:`huaweicloudsdksfsturbo.v1.ConfigNasTarget`] """ self._nas = nas - @property - def obs(self): - """Gets the obs of this ReqUpdateHpcCacheData. - - 配置 obs 后端的信息, 和 nas 字段为二选一的关系 - - :return: The obs of this ReqUpdateHpcCacheData. - :rtype: list[:class:`huaweicloudsdksfsturbo.v1.ConfigObsTarget`] - """ - return self._obs - - @obs.setter - def obs(self, obs): - """Sets the obs of this ReqUpdateHpcCacheData. - - 配置 obs 后端的信息, 和 nas 字段为二选一的关系 - - :param obs: The obs of this ReqUpdateHpcCacheData. - :type obs: list[:class:`huaweicloudsdksfsturbo.v1.ConfigObsTarget`] - """ - self._obs = obs - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/resource_tag.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/resource_tag.py index e78277f202..42cead8bae 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/resource_tag.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/resource_tag.py @@ -31,9 +31,9 @@ def __init__(self, key=None, value=None): The model defined in huaweicloud sdk - :param key: 标签的键。 最大长度36个字符。 key不能为空,不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。只能包含大写字母、小写字母、数字,特殊字符\"-\"和\"_\"。 + :param key: 标签的键。 最大长度128个字符。 key不能为空,不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。只能包含大写字母、小写字母、数字,特殊字符\"-\"和\"_\"。 :type key: str - :param value: 标签的值。 每个值最大长度43个字符,可以为空字符串。 不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。只能包含大写字母、小写字母、数字,特殊字符\"-\"和\"_\"。 + :param value: 标签的值。 每个值最大长度255个字符,可以为空字符串。 不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。只能包含大写字母、小写字母、数字,特殊字符\"-\"和\"_\"。 :type value: str """ @@ -50,7 +50,7 @@ def __init__(self, key=None, value=None): def key(self): """Gets the key of this ResourceTag. - 标签的键。 最大长度36个字符。 key不能为空,不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。只能包含大写字母、小写字母、数字,特殊字符\"-\"和\"_\"。 + 标签的键。 最大长度128个字符。 key不能为空,不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。只能包含大写字母、小写字母、数字,特殊字符\"-\"和\"_\"。 :return: The key of this ResourceTag. :rtype: str @@ -61,7 +61,7 @@ def key(self): def key(self, key): """Sets the key of this ResourceTag. - 标签的键。 最大长度36个字符。 key不能为空,不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。只能包含大写字母、小写字母、数字,特殊字符\"-\"和\"_\"。 + 标签的键。 最大长度128个字符。 key不能为空,不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。只能包含大写字母、小写字母、数字,特殊字符\"-\"和\"_\"。 :param key: The key of this ResourceTag. :type key: str @@ -72,7 +72,7 @@ def key(self, key): def value(self): """Gets the value of this ResourceTag. - 标签的值。 每个值最大长度43个字符,可以为空字符串。 不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。只能包含大写字母、小写字母、数字,特殊字符\"-\"和\"_\"。 + 标签的值。 每个值最大长度255个字符,可以为空字符串。 不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。只能包含大写字母、小写字母、数字,特殊字符\"-\"和\"_\"。 :return: The value of this ResourceTag. :rtype: str @@ -83,7 +83,7 @@ def value(self): def value(self, value): """Sets the value of this ResourceTag. - 标签的值。 每个值最大长度43个字符,可以为空字符串。 不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。只能包含大写字母、小写字母、数字,特殊字符\"-\"和\"_\"。 + 标签的值。 每个值最大长度255个字符,可以为空字符串。 不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。只能包含大写字母、小写字母、数字,特殊字符\"-\"和\"_\"。 :param value: The value of this ResourceTag. :type value: str diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/share.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/share.py index 2250bfe559..cc19bf346c 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/share.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/share.py @@ -53,7 +53,7 @@ def __init__(self, availability_zone=None, description=None, enterprise_project_ The model defined in huaweicloud sdk - :param availability_zone: 文件系统所在可用区(az)的编码 + :param availability_zone: 文件系统所在可用区(az)的编码 :type availability_zone: str :param description: 文件系统描述信息,长度为0~255。当前不支持。 :type description: str @@ -63,17 +63,17 @@ def __init__(self, availability_zone=None, description=None, enterprise_project_ :type metadata: :class:`huaweicloudsdksfsturbo.v1.Metadata` :param name: SFS Turbo文件系统的名称。长度为4~64位,必须以字母开头,可以包含字母、数字、中划线、下划线,不能包含其他的特殊字符,不区分大小写。 :type name: str - :param security_group_id: 用户在某一区域下的安全组ID。 + :param security_group_id: 用户在某一区域下的安全组ID。 :type security_group_id: str :param share_proto: 文件系统共享协议,有效值为NFS。NFS(Network File System),即网络文件系统。一种使用于分散式文件系统的协议,通过网络让不同的机器、不同的操作系统能够彼此分享数据。 :type share_proto: str - :param share_type: 文件系统类型,有效值为STANDARD或者PERFORMANCE。 通用型:标准型和标准型增强版填写STANDARD,性能型和性能型增强版填写PERFORMANCE。 HPC型:不校验该字段,可填写STANDARD或者PERFORMANCE。 HPC缓存型:不校验该字段,可填写STANDARD或者PERFORMANCE。 + :param share_type: 文件系统类型,有效值为STANDARD或者PERFORMANCE。当文件系统正在创建时,该字段不返回。 - SFS Turbo上一代文件系统规格类型:标准型和标准型增强版填写STANDARD,性能型和性能型增强版填写PERFORMANCE。 - 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/TiB:不校验该字段,填写STANDARD或者PERFORMANCE。 - HPC缓存型:不校验该字段,填写STANDARD或者PERFORMANCE。 :type share_type: str - :param size: 通用型-普通文件系统容量,取值范围500~32768,单位GB。 通用型-增强版文件系统,即在“metadata”字段中设置了expand_type=\"bandwidth\",则容量范围是10240~327680,单位GiB。 HPC型文件系统,即在“metadata”字段中设置了expand_type=\"hpc\",则容量范围是3686(或1228)~1048576,单位GiB。对于20MB/s/TiB的规格,起步容量为3686GiB;对于HPC其他规格,起步容量为1228GiB。HPC型文件系统的容量必须为1.2TiB的倍数,换算为GiB后需要向下取整。如3.6TiB->3686GiB, 4.8TiB->4915GiB,8.4TiB->8601GiB。 HPC缓存型文件系统,即在“metadata”字段中设置了expand_type=\"hpc_cache\",则容量范围是4096~1048576,单位GiB。不同带宽,起步容量不一样,步长均为1TiB。如2GB/s带宽,起步容量为4TiB,即4096GiB;4GB/s带宽,起步容量为8TiB,即8192GiB;8GB/s带宽,起步容量为16TiB,即16384GiB。 + :param size: - SFS Turbo上一代文件系统规格类型-文件系统容量:取值范围为500~32768,单位为GiB。 - SFS Turbo上一代文件系统规格类型-增强版文件系统:在“metadata”字段中设置了expand_type=\"bandwidth\",则容量范围为10240~327680,单位为GiB。 - 20MB/s/TiB:在“metadata”字段中设置了expand_type=\"hpc\"、hpc_bw=\"20M\",则容量范围为3686~1048576,单位为GiB。容量必须为1.2TiB的倍数,换算为GiB后需要向下取整。如3.6TiB->3686GiB, 4.8TiB->4915GiB,8.4TiB->8601GiB。 - 40MB/s/TiB:在“metadata”字段中设置了expand_type=\"hpc\"、hpc_bw=\"40M\",则容量范围为1228~1048576,单位为GiB。容量必须为1.2TiB的倍数,换算为GiB后需要向下取整。如3.6TiB->3686GiB, 4.8TiB->4915GiB,8.4TiB->8601GiB。 - 125MB/s/TiB:在“metadata”字段中设置了expand_type=\"hpc\"、hpc_bw=\"125M\",则容量范围为1228~1048576,单位为GiB。容量必须为1.2TiB的倍数,换算为GiB后需要向下取整。如3.6TiB->3686GiB, 4.8TiB->4915GiB,8.4TiB->8601GiB。 - 250MB/s/TiB:在“metadata”字段中设置了expand_type=\"hpc\"、hpc_bw=\"250M\",则容量范围为1228~1048576,单位为GiB。容量必须为1.2TiB的倍数,换算为GiB后需要向下取整。如3.6TiB->3686GiB, 4.8TiB->4915GiB,8.4TiB->8601GiB。 - 500MB/s/TiB:在“metadata”字段中设置了expand_type=\"hpc\"、hpc_bw=\"500M\",则容量范围为1228~1048576,单位为GiB。容量必须为1.2TiB的倍数,换算为GiB后需要向下取整。如3.6TiB->3686GiB, 4.8TiB->4915GiB,8.4TiB->8601GiB。 - 1000MB/s/TiB:在“metadata”字段中设置了expand_type=\"hpc\"、hpc_bw=\"1000M\",则容量范围为1228~1048576,单位为GiB。容量必须为1.2TiB的倍数,换算为GiB后需要向下取整。如3.6TiB->3686GiB, 4.8TiB->4915GiB,8.4TiB->8601GiB。 - HPC缓存型文件系统:在“metadata”字段中设置了expand_type=\"hpc_cache\",则容量范围为4096~1048576,单位为GiB。不同带宽,起步容量不一样,步长均为1TiB。如2GB/s带宽,起步容量为4TiB,即4096GiB;4GB/s带宽,起步容量为8TiB,即8192GiB;8GB/s带宽,起步容量为16TiB,即16384GiB。 :type size: int - :param subnet_id: 用户在VPC下面的子网的网络ID。 + :param subnet_id: 用户在VPC下面的子网的网络ID。 :type subnet_id: str - :param vpc_id: 用户在某一区域下的VPC ID。 + :param vpc_id: 用户在某一区域下的VPC ID。 :type vpc_id: str :param backup_id: 备份ID,从备份创建文件系统时为必选。 :type backup_id: str @@ -121,7 +121,7 @@ def __init__(self, availability_zone=None, description=None, enterprise_project_ def availability_zone(self): """Gets the availability_zone of this Share. - 文件系统所在可用区(az)的编码 + 文件系统所在可用区(az)的编码 :return: The availability_zone of this Share. :rtype: str @@ -132,7 +132,7 @@ def availability_zone(self): def availability_zone(self, availability_zone): """Sets the availability_zone of this Share. - 文件系统所在可用区(az)的编码 + 文件系统所在可用区(az)的编码 :param availability_zone: The availability_zone of this Share. :type availability_zone: str @@ -227,7 +227,7 @@ def name(self, name): def security_group_id(self): """Gets the security_group_id of this Share. - 用户在某一区域下的安全组ID。 + 用户在某一区域下的安全组ID。 :return: The security_group_id of this Share. :rtype: str @@ -238,7 +238,7 @@ def security_group_id(self): def security_group_id(self, security_group_id): """Sets the security_group_id of this Share. - 用户在某一区域下的安全组ID。 + 用户在某一区域下的安全组ID。 :param security_group_id: The security_group_id of this Share. :type security_group_id: str @@ -271,7 +271,7 @@ def share_proto(self, share_proto): def share_type(self): """Gets the share_type of this Share. - 文件系统类型,有效值为STANDARD或者PERFORMANCE。 通用型:标准型和标准型增强版填写STANDARD,性能型和性能型增强版填写PERFORMANCE。 HPC型:不校验该字段,可填写STANDARD或者PERFORMANCE。 HPC缓存型:不校验该字段,可填写STANDARD或者PERFORMANCE。 + 文件系统类型,有效值为STANDARD或者PERFORMANCE。当文件系统正在创建时,该字段不返回。 - SFS Turbo上一代文件系统规格类型:标准型和标准型增强版填写STANDARD,性能型和性能型增强版填写PERFORMANCE。 - 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/TiB:不校验该字段,填写STANDARD或者PERFORMANCE。 - HPC缓存型:不校验该字段,填写STANDARD或者PERFORMANCE。 :return: The share_type of this Share. :rtype: str @@ -282,7 +282,7 @@ def share_type(self): def share_type(self, share_type): """Sets the share_type of this Share. - 文件系统类型,有效值为STANDARD或者PERFORMANCE。 通用型:标准型和标准型增强版填写STANDARD,性能型和性能型增强版填写PERFORMANCE。 HPC型:不校验该字段,可填写STANDARD或者PERFORMANCE。 HPC缓存型:不校验该字段,可填写STANDARD或者PERFORMANCE。 + 文件系统类型,有效值为STANDARD或者PERFORMANCE。当文件系统正在创建时,该字段不返回。 - SFS Turbo上一代文件系统规格类型:标准型和标准型增强版填写STANDARD,性能型和性能型增强版填写PERFORMANCE。 - 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/TiB:不校验该字段,填写STANDARD或者PERFORMANCE。 - HPC缓存型:不校验该字段,填写STANDARD或者PERFORMANCE。 :param share_type: The share_type of this Share. :type share_type: str @@ -293,7 +293,7 @@ def share_type(self, share_type): def size(self): """Gets the size of this Share. - 通用型-普通文件系统容量,取值范围500~32768,单位GB。 通用型-增强版文件系统,即在“metadata”字段中设置了expand_type=\"bandwidth\",则容量范围是10240~327680,单位GiB。 HPC型文件系统,即在“metadata”字段中设置了expand_type=\"hpc\",则容量范围是3686(或1228)~1048576,单位GiB。对于20MB/s/TiB的规格,起步容量为3686GiB;对于HPC其他规格,起步容量为1228GiB。HPC型文件系统的容量必须为1.2TiB的倍数,换算为GiB后需要向下取整。如3.6TiB->3686GiB, 4.8TiB->4915GiB,8.4TiB->8601GiB。 HPC缓存型文件系统,即在“metadata”字段中设置了expand_type=\"hpc_cache\",则容量范围是4096~1048576,单位GiB。不同带宽,起步容量不一样,步长均为1TiB。如2GB/s带宽,起步容量为4TiB,即4096GiB;4GB/s带宽,起步容量为8TiB,即8192GiB;8GB/s带宽,起步容量为16TiB,即16384GiB。 + - SFS Turbo上一代文件系统规格类型-文件系统容量:取值范围为500~32768,单位为GiB。 - SFS Turbo上一代文件系统规格类型-增强版文件系统:在“metadata”字段中设置了expand_type=\"bandwidth\",则容量范围为10240~327680,单位为GiB。 - 20MB/s/TiB:在“metadata”字段中设置了expand_type=\"hpc\"、hpc_bw=\"20M\",则容量范围为3686~1048576,单位为GiB。容量必须为1.2TiB的倍数,换算为GiB后需要向下取整。如3.6TiB->3686GiB, 4.8TiB->4915GiB,8.4TiB->8601GiB。 - 40MB/s/TiB:在“metadata”字段中设置了expand_type=\"hpc\"、hpc_bw=\"40M\",则容量范围为1228~1048576,单位为GiB。容量必须为1.2TiB的倍数,换算为GiB后需要向下取整。如3.6TiB->3686GiB, 4.8TiB->4915GiB,8.4TiB->8601GiB。 - 125MB/s/TiB:在“metadata”字段中设置了expand_type=\"hpc\"、hpc_bw=\"125M\",则容量范围为1228~1048576,单位为GiB。容量必须为1.2TiB的倍数,换算为GiB后需要向下取整。如3.6TiB->3686GiB, 4.8TiB->4915GiB,8.4TiB->8601GiB。 - 250MB/s/TiB:在“metadata”字段中设置了expand_type=\"hpc\"、hpc_bw=\"250M\",则容量范围为1228~1048576,单位为GiB。容量必须为1.2TiB的倍数,换算为GiB后需要向下取整。如3.6TiB->3686GiB, 4.8TiB->4915GiB,8.4TiB->8601GiB。 - 500MB/s/TiB:在“metadata”字段中设置了expand_type=\"hpc\"、hpc_bw=\"500M\",则容量范围为1228~1048576,单位为GiB。容量必须为1.2TiB的倍数,换算为GiB后需要向下取整。如3.6TiB->3686GiB, 4.8TiB->4915GiB,8.4TiB->8601GiB。 - 1000MB/s/TiB:在“metadata”字段中设置了expand_type=\"hpc\"、hpc_bw=\"1000M\",则容量范围为1228~1048576,单位为GiB。容量必须为1.2TiB的倍数,换算为GiB后需要向下取整。如3.6TiB->3686GiB, 4.8TiB->4915GiB,8.4TiB->8601GiB。 - HPC缓存型文件系统:在“metadata”字段中设置了expand_type=\"hpc_cache\",则容量范围为4096~1048576,单位为GiB。不同带宽,起步容量不一样,步长均为1TiB。如2GB/s带宽,起步容量为4TiB,即4096GiB;4GB/s带宽,起步容量为8TiB,即8192GiB;8GB/s带宽,起步容量为16TiB,即16384GiB。 :return: The size of this Share. :rtype: int @@ -304,7 +304,7 @@ def size(self): def size(self, size): """Sets the size of this Share. - 通用型-普通文件系统容量,取值范围500~32768,单位GB。 通用型-增强版文件系统,即在“metadata”字段中设置了expand_type=\"bandwidth\",则容量范围是10240~327680,单位GiB。 HPC型文件系统,即在“metadata”字段中设置了expand_type=\"hpc\",则容量范围是3686(或1228)~1048576,单位GiB。对于20MB/s/TiB的规格,起步容量为3686GiB;对于HPC其他规格,起步容量为1228GiB。HPC型文件系统的容量必须为1.2TiB的倍数,换算为GiB后需要向下取整。如3.6TiB->3686GiB, 4.8TiB->4915GiB,8.4TiB->8601GiB。 HPC缓存型文件系统,即在“metadata”字段中设置了expand_type=\"hpc_cache\",则容量范围是4096~1048576,单位GiB。不同带宽,起步容量不一样,步长均为1TiB。如2GB/s带宽,起步容量为4TiB,即4096GiB;4GB/s带宽,起步容量为8TiB,即8192GiB;8GB/s带宽,起步容量为16TiB,即16384GiB。 + - SFS Turbo上一代文件系统规格类型-文件系统容量:取值范围为500~32768,单位为GiB。 - SFS Turbo上一代文件系统规格类型-增强版文件系统:在“metadata”字段中设置了expand_type=\"bandwidth\",则容量范围为10240~327680,单位为GiB。 - 20MB/s/TiB:在“metadata”字段中设置了expand_type=\"hpc\"、hpc_bw=\"20M\",则容量范围为3686~1048576,单位为GiB。容量必须为1.2TiB的倍数,换算为GiB后需要向下取整。如3.6TiB->3686GiB, 4.8TiB->4915GiB,8.4TiB->8601GiB。 - 40MB/s/TiB:在“metadata”字段中设置了expand_type=\"hpc\"、hpc_bw=\"40M\",则容量范围为1228~1048576,单位为GiB。容量必须为1.2TiB的倍数,换算为GiB后需要向下取整。如3.6TiB->3686GiB, 4.8TiB->4915GiB,8.4TiB->8601GiB。 - 125MB/s/TiB:在“metadata”字段中设置了expand_type=\"hpc\"、hpc_bw=\"125M\",则容量范围为1228~1048576,单位为GiB。容量必须为1.2TiB的倍数,换算为GiB后需要向下取整。如3.6TiB->3686GiB, 4.8TiB->4915GiB,8.4TiB->8601GiB。 - 250MB/s/TiB:在“metadata”字段中设置了expand_type=\"hpc\"、hpc_bw=\"250M\",则容量范围为1228~1048576,单位为GiB。容量必须为1.2TiB的倍数,换算为GiB后需要向下取整。如3.6TiB->3686GiB, 4.8TiB->4915GiB,8.4TiB->8601GiB。 - 500MB/s/TiB:在“metadata”字段中设置了expand_type=\"hpc\"、hpc_bw=\"500M\",则容量范围为1228~1048576,单位为GiB。容量必须为1.2TiB的倍数,换算为GiB后需要向下取整。如3.6TiB->3686GiB, 4.8TiB->4915GiB,8.4TiB->8601GiB。 - 1000MB/s/TiB:在“metadata”字段中设置了expand_type=\"hpc\"、hpc_bw=\"1000M\",则容量范围为1228~1048576,单位为GiB。容量必须为1.2TiB的倍数,换算为GiB后需要向下取整。如3.6TiB->3686GiB, 4.8TiB->4915GiB,8.4TiB->8601GiB。 - HPC缓存型文件系统:在“metadata”字段中设置了expand_type=\"hpc_cache\",则容量范围为4096~1048576,单位为GiB。不同带宽,起步容量不一样,步长均为1TiB。如2GB/s带宽,起步容量为4TiB,即4096GiB;4GB/s带宽,起步容量为8TiB,即8192GiB;8GB/s带宽,起步容量为16TiB,即16384GiB。 :param size: The size of this Share. :type size: int @@ -315,7 +315,7 @@ def size(self, size): def subnet_id(self): """Gets the subnet_id of this Share. - 用户在VPC下面的子网的网络ID。 + 用户在VPC下面的子网的网络ID。 :return: The subnet_id of this Share. :rtype: str @@ -326,7 +326,7 @@ def subnet_id(self): def subnet_id(self, subnet_id): """Sets the subnet_id of this Share. - 用户在VPC下面的子网的网络ID。 + 用户在VPC下面的子网的网络ID。 :param subnet_id: The subnet_id of this Share. :type subnet_id: str @@ -337,7 +337,7 @@ def subnet_id(self, subnet_id): def vpc_id(self): """Gets the vpc_id of this Share. - 用户在某一区域下的VPC ID。 + 用户在某一区域下的VPC ID。 :return: The vpc_id of this Share. :rtype: str @@ -348,7 +348,7 @@ def vpc_id(self): def vpc_id(self, vpc_id): """Sets the vpc_id of this Share. - 用户在某一区域下的VPC ID。 + 用户在某一区域下的VPC ID。 :param vpc_id: The vpc_id of this Share. :type vpc_id: str diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/share_info.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/share_info.py index aed05ae277..93ce0ad094 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/share_info.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/share_info.py @@ -39,7 +39,13 @@ class ShareInfo: 'subnet_id': 'str', 'vpc_id': 'str', 'enterprise_project_id': 'str', - 'tags': 'list[ResourceTag]' + 'tags': 'list[ResourceTag]', + 'optional_endpoint': 'str', + 'hpc_bw': 'str', + 'instance_id': 'str', + 'instance_type': 'str', + 'status_detail': 'str', + 'features': 'ShareInfoFeatures' } attribute_map = { @@ -65,10 +71,16 @@ class ShareInfo: 'subnet_id': 'subnet_id', 'vpc_id': 'vpc_id', 'enterprise_project_id': 'enterprise_project_id', - 'tags': 'tags' + 'tags': 'tags', + 'optional_endpoint': 'optional_endpoint', + 'hpc_bw': 'hpc_bw', + 'instance_id': 'instanceId', + 'instance_type': 'instanceType', + 'status_detail': 'statusDetail', + 'features': 'features' } - def __init__(self, action_progress=None, version=None, avail_capacity=None, availability_zone=None, az_name=None, created_at=None, crypt_key_id=None, expand_type=None, export_location=None, id=None, name=None, pay_model=None, region=None, security_group_id=None, share_proto=None, share_type=None, size=None, status=None, sub_status=None, subnet_id=None, vpc_id=None, enterprise_project_id=None, tags=None): + def __init__(self, action_progress=None, version=None, avail_capacity=None, availability_zone=None, az_name=None, created_at=None, crypt_key_id=None, expand_type=None, export_location=None, id=None, name=None, pay_model=None, region=None, security_group_id=None, share_proto=None, share_type=None, size=None, status=None, sub_status=None, subnet_id=None, vpc_id=None, enterprise_project_id=None, tags=None, optional_endpoint=None, hpc_bw=None, instance_id=None, instance_type=None, status_detail=None, features=None): """ShareInfo The model defined in huaweicloud sdk @@ -87,15 +99,15 @@ def __init__(self, action_progress=None, version=None, avail_capacity=None, avai :type created_at: datetime :param crypt_key_id: 用户指定的加密密钥ID,非加密盘时不返回。 :type crypt_key_id: str - :param expand_type: 如果是增强型文件系统,该字段返回bandwidth,否则不返回。 + :param expand_type: 如果是增强版文件系统,该字段返回bandwidth;如果是20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB,该字段返回hpc;否则不返回。 :type expand_type: str - :param export_location: SFS Turbo文件系统的挂载端点。 + :param export_location: SFS Turbo文件系统的挂载端点。例如\"192.168.0.90:/\"。如果文件系统正在创建,该字段不返回。 :type export_location: str :param id: SFS Turbo的文件系统ID。 :type id: str :param name: 创建时指定的SFS Turbo文件系统名称。 :type name: str - :param pay_model: SFS Turbo文件系统的计费模式。'0'代表按需付费,'1'代表包周期计费。 + :param pay_model: SFS Turbo文件系统的计费模式。'0'代表按需付费,'1'代表包周期计费。如果文件系统正在创建,该字段不返回。 :type pay_model: str :param region: SFS Turbo文件系统所在区域。 :type region: str @@ -109,7 +121,7 @@ def __init__(self, action_progress=None, version=None, avail_capacity=None, avai :type size: str :param status: SFS Turbo文件系统的状态。'100'表示创建中,'200'表示可用,'303'表示创建失败,'800'表示实例被冻结。 :type status: str - :param sub_status: SFS Turbo文件系统的子状态。 '121'表示扩容中;'132'表示修改安全组中;'137'表示添加VPC中;'138'表示删除VPC中;'150'表示配置联动后端中;'151'表示删除联动后端配置中; '221'表示扩容成功;'232'表示修改安全组成功;'237'表示添加VPC成功;'238'表示删除VPC成功;'250'表示配置联动后端成功;'251'表示删除联动后端配置成功; '321'表示扩容失败;'332'表示修改安全组失败;'337'表示添加VPC失败;'338'表示删除VPC失败;'350'表示配置联动后端失败;'351'表示删除联动后端配置失败; + :param sub_status: SFS Turbo文件系统的子状态。当用户未对文件系统有修改类操作时,该字段不返回。 '121'表示扩容中;'132'表示修改安全组中;'137'表示添加VPC中;'138'表示删除VPC中;'150'表示配置联动后端中;'151'表示删除联动后端配置中。 '221'表示扩容成功;'232'表示修改安全组成功;'237'表示添加VPC成功;'238'表示删除VPC成功;'250'表示配置联动后端成功;'251'表示删除联动后端配置成功。 '321'表示扩容失败;'332'表示修改安全组失败;'337'表示添加VPC失败;'338'表示删除VPC失败;'350'表示配置联动后端失败;'351'表示删除联动后端配置失败。 :type sub_status: str :param subnet_id: 用户指定的子网的网络ID。 :type subnet_id: str @@ -119,6 +131,18 @@ def __init__(self, action_progress=None, version=None, avail_capacity=None, avai :type enterprise_project_id: str :param tags: tag标签的列表。 :type tags: list[:class:`huaweicloudsdksfsturbo.v1.ResourceTag`] + :param optional_endpoint: 可选的挂载IP地址。上一代文件系统规格类型不返回该字段。 + :type optional_endpoint: str + :param hpc_bw: 文件系统的带宽规格。 - \"20M\"表示20MB/s/TiB - \"40M\"表示40MB/s/TiB - \"125M\"表示125MB/s/TiB - \"250M\"表示250MB/s/TiB - \"500M\"表示500MB/s/TiB - \"1000M\"表示1000MB/s/TiB - \"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"或\"48G\"表示HPC缓存型的带宽规格。 + :type hpc_bw: str + :param instance_id: 文件系统规格的节点id,为预留字段,不具备实际含义。 + :type instance_id: str + :param instance_type: 文件系统规格的节点类型,为预留字段,不具备实际含义。 + :type instance_type: str + :param status_detail: 文件系统的请求ID,为预留字段,不具备实际含义。 + :type status_detail: str + :param features: + :type features: :class:`huaweicloudsdksfsturbo.v1.ShareInfoFeatures` """ @@ -146,6 +170,12 @@ def __init__(self, action_progress=None, version=None, avail_capacity=None, avai self._vpc_id = None self._enterprise_project_id = None self._tags = None + self._optional_endpoint = None + self._hpc_bw = None + self._instance_id = None + self._instance_type = None + self._status_detail = None + self._features = None self.discriminator = None if action_progress is not None: @@ -194,6 +224,18 @@ def __init__(self, action_progress=None, version=None, avail_capacity=None, avai self.enterprise_project_id = enterprise_project_id if tags is not None: self.tags = tags + if optional_endpoint is not None: + self.optional_endpoint = optional_endpoint + if hpc_bw is not None: + self.hpc_bw = hpc_bw + if instance_id is not None: + self.instance_id = instance_id + if instance_type is not None: + self.instance_type = instance_type + if status_detail is not None: + self.status_detail = status_detail + if features is not None: + self.features = features @property def action_progress(self): @@ -349,7 +391,7 @@ def crypt_key_id(self, crypt_key_id): def expand_type(self): """Gets the expand_type of this ShareInfo. - 如果是增强型文件系统,该字段返回bandwidth,否则不返回。 + 如果是增强版文件系统,该字段返回bandwidth;如果是20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB,该字段返回hpc;否则不返回。 :return: The expand_type of this ShareInfo. :rtype: str @@ -360,7 +402,7 @@ def expand_type(self): def expand_type(self, expand_type): """Sets the expand_type of this ShareInfo. - 如果是增强型文件系统,该字段返回bandwidth,否则不返回。 + 如果是增强版文件系统,该字段返回bandwidth;如果是20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB,该字段返回hpc;否则不返回。 :param expand_type: The expand_type of this ShareInfo. :type expand_type: str @@ -371,7 +413,7 @@ def expand_type(self, expand_type): def export_location(self): """Gets the export_location of this ShareInfo. - SFS Turbo文件系统的挂载端点。 + SFS Turbo文件系统的挂载端点。例如\"192.168.0.90:/\"。如果文件系统正在创建,该字段不返回。 :return: The export_location of this ShareInfo. :rtype: str @@ -382,7 +424,7 @@ def export_location(self): def export_location(self, export_location): """Sets the export_location of this ShareInfo. - SFS Turbo文件系统的挂载端点。 + SFS Turbo文件系统的挂载端点。例如\"192.168.0.90:/\"。如果文件系统正在创建,该字段不返回。 :param export_location: The export_location of this ShareInfo. :type export_location: str @@ -437,7 +479,7 @@ def name(self, name): def pay_model(self): """Gets the pay_model of this ShareInfo. - SFS Turbo文件系统的计费模式。'0'代表按需付费,'1'代表包周期计费。 + SFS Turbo文件系统的计费模式。'0'代表按需付费,'1'代表包周期计费。如果文件系统正在创建,该字段不返回。 :return: The pay_model of this ShareInfo. :rtype: str @@ -448,7 +490,7 @@ def pay_model(self): def pay_model(self, pay_model): """Sets the pay_model of this ShareInfo. - SFS Turbo文件系统的计费模式。'0'代表按需付费,'1'代表包周期计费。 + SFS Turbo文件系统的计费模式。'0'代表按需付费,'1'代表包周期计费。如果文件系统正在创建,该字段不返回。 :param pay_model: The pay_model of this ShareInfo. :type pay_model: str @@ -591,7 +633,7 @@ def status(self, status): def sub_status(self): """Gets the sub_status of this ShareInfo. - SFS Turbo文件系统的子状态。 '121'表示扩容中;'132'表示修改安全组中;'137'表示添加VPC中;'138'表示删除VPC中;'150'表示配置联动后端中;'151'表示删除联动后端配置中; '221'表示扩容成功;'232'表示修改安全组成功;'237'表示添加VPC成功;'238'表示删除VPC成功;'250'表示配置联动后端成功;'251'表示删除联动后端配置成功; '321'表示扩容失败;'332'表示修改安全组失败;'337'表示添加VPC失败;'338'表示删除VPC失败;'350'表示配置联动后端失败;'351'表示删除联动后端配置失败; + SFS Turbo文件系统的子状态。当用户未对文件系统有修改类操作时,该字段不返回。 '121'表示扩容中;'132'表示修改安全组中;'137'表示添加VPC中;'138'表示删除VPC中;'150'表示配置联动后端中;'151'表示删除联动后端配置中。 '221'表示扩容成功;'232'表示修改安全组成功;'237'表示添加VPC成功;'238'表示删除VPC成功;'250'表示配置联动后端成功;'251'表示删除联动后端配置成功。 '321'表示扩容失败;'332'表示修改安全组失败;'337'表示添加VPC失败;'338'表示删除VPC失败;'350'表示配置联动后端失败;'351'表示删除联动后端配置失败。 :return: The sub_status of this ShareInfo. :rtype: str @@ -602,7 +644,7 @@ def sub_status(self): def sub_status(self, sub_status): """Sets the sub_status of this ShareInfo. - SFS Turbo文件系统的子状态。 '121'表示扩容中;'132'表示修改安全组中;'137'表示添加VPC中;'138'表示删除VPC中;'150'表示配置联动后端中;'151'表示删除联动后端配置中; '221'表示扩容成功;'232'表示修改安全组成功;'237'表示添加VPC成功;'238'表示删除VPC成功;'250'表示配置联动后端成功;'251'表示删除联动后端配置成功; '321'表示扩容失败;'332'表示修改安全组失败;'337'表示添加VPC失败;'338'表示删除VPC失败;'350'表示配置联动后端失败;'351'表示删除联动后端配置失败; + SFS Turbo文件系统的子状态。当用户未对文件系统有修改类操作时,该字段不返回。 '121'表示扩容中;'132'表示修改安全组中;'137'表示添加VPC中;'138'表示删除VPC中;'150'表示配置联动后端中;'151'表示删除联动后端配置中。 '221'表示扩容成功;'232'表示修改安全组成功;'237'表示添加VPC成功;'238'表示删除VPC成功;'250'表示配置联动后端成功;'251'表示删除联动后端配置成功。 '321'表示扩容失败;'332'表示修改安全组失败;'337'表示添加VPC失败;'338'表示删除VPC失败;'350'表示配置联动后端失败;'351'表示删除联动后端配置失败。 :param sub_status: The sub_status of this ShareInfo. :type sub_status: str @@ -697,6 +739,134 @@ def tags(self, tags): """ self._tags = tags + @property + def optional_endpoint(self): + """Gets the optional_endpoint of this ShareInfo. + + 可选的挂载IP地址。上一代文件系统规格类型不返回该字段。 + + :return: The optional_endpoint of this ShareInfo. + :rtype: str + """ + return self._optional_endpoint + + @optional_endpoint.setter + def optional_endpoint(self, optional_endpoint): + """Sets the optional_endpoint of this ShareInfo. + + 可选的挂载IP地址。上一代文件系统规格类型不返回该字段。 + + :param optional_endpoint: The optional_endpoint of this ShareInfo. + :type optional_endpoint: str + """ + self._optional_endpoint = optional_endpoint + + @property + def hpc_bw(self): + """Gets the hpc_bw of this ShareInfo. + + 文件系统的带宽规格。 - \"20M\"表示20MB/s/TiB - \"40M\"表示40MB/s/TiB - \"125M\"表示125MB/s/TiB - \"250M\"表示250MB/s/TiB - \"500M\"表示500MB/s/TiB - \"1000M\"表示1000MB/s/TiB - \"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"或\"48G\"表示HPC缓存型的带宽规格。 + + :return: The hpc_bw of this ShareInfo. + :rtype: str + """ + return self._hpc_bw + + @hpc_bw.setter + def hpc_bw(self, hpc_bw): + """Sets the hpc_bw of this ShareInfo. + + 文件系统的带宽规格。 - \"20M\"表示20MB/s/TiB - \"40M\"表示40MB/s/TiB - \"125M\"表示125MB/s/TiB - \"250M\"表示250MB/s/TiB - \"500M\"表示500MB/s/TiB - \"1000M\"表示1000MB/s/TiB - \"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"或\"48G\"表示HPC缓存型的带宽规格。 + + :param hpc_bw: The hpc_bw of this ShareInfo. + :type hpc_bw: str + """ + self._hpc_bw = hpc_bw + + @property + def instance_id(self): + """Gets the instance_id of this ShareInfo. + + 文件系统规格的节点id,为预留字段,不具备实际含义。 + + :return: The instance_id of this ShareInfo. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShareInfo. + + 文件系统规格的节点id,为预留字段,不具备实际含义。 + + :param instance_id: The instance_id of this ShareInfo. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def instance_type(self): + """Gets the instance_type of this ShareInfo. + + 文件系统规格的节点类型,为预留字段,不具备实际含义。 + + :return: The instance_type of this ShareInfo. + :rtype: str + """ + return self._instance_type + + @instance_type.setter + def instance_type(self, instance_type): + """Sets the instance_type of this ShareInfo. + + 文件系统规格的节点类型,为预留字段,不具备实际含义。 + + :param instance_type: The instance_type of this ShareInfo. + :type instance_type: str + """ + self._instance_type = instance_type + + @property + def status_detail(self): + """Gets the status_detail of this ShareInfo. + + 文件系统的请求ID,为预留字段,不具备实际含义。 + + :return: The status_detail of this ShareInfo. + :rtype: str + """ + return self._status_detail + + @status_detail.setter + def status_detail(self, status_detail): + """Sets the status_detail of this ShareInfo. + + 文件系统的请求ID,为预留字段,不具备实际含义。 + + :param status_detail: The status_detail of this ShareInfo. + :type status_detail: str + """ + self._status_detail = status_detail + + @property + def features(self): + """Gets the features of this ShareInfo. + + :return: The features of this ShareInfo. + :rtype: :class:`huaweicloudsdksfsturbo.v1.ShareInfoFeatures` + """ + return self._features + + @features.setter + def features(self, features): + """Sets the features of this ShareInfo. + + :param features: The features of this ShareInfo. + :type features: :class:`huaweicloudsdksfsturbo.v1.ShareInfoFeatures` + """ + self._features = features + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/share_info_feature.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/share_info_feature.py new file mode 100644 index 0000000000..3ca4d5f2e4 --- /dev/null +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/share_info_feature.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShareInfoFeature: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'is_support': 'bool', + 'message': 'str', + 'msg_code': 'str' + } + + attribute_map = { + 'is_support': 'is_support', + 'message': 'message', + 'msg_code': 'msg_code' + } + + def __init__(self, is_support=None, message=None, msg_code=None): + """ShareInfoFeature + + The model defined in huaweicloud sdk + + :param is_support: 文件系统是否支持该特性 + :type is_support: bool + :param message: 文件系统是否支持该特性的详细信息 + :type message: str + :param msg_code: 文件系统是否支持该特性的详细信息 + :type msg_code: str + """ + + + + self._is_support = None + self._message = None + self._msg_code = None + self.discriminator = None + + if is_support is not None: + self.is_support = is_support + if message is not None: + self.message = message + if msg_code is not None: + self.msg_code = msg_code + + @property + def is_support(self): + """Gets the is_support of this ShareInfoFeature. + + 文件系统是否支持该特性 + + :return: The is_support of this ShareInfoFeature. + :rtype: bool + """ + return self._is_support + + @is_support.setter + def is_support(self, is_support): + """Sets the is_support of this ShareInfoFeature. + + 文件系统是否支持该特性 + + :param is_support: The is_support of this ShareInfoFeature. + :type is_support: bool + """ + self._is_support = is_support + + @property + def message(self): + """Gets the message of this ShareInfoFeature. + + 文件系统是否支持该特性的详细信息 + + :return: The message of this ShareInfoFeature. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ShareInfoFeature. + + 文件系统是否支持该特性的详细信息 + + :param message: The message of this ShareInfoFeature. + :type message: str + """ + self._message = message + + @property + def msg_code(self): + """Gets the msg_code of this ShareInfoFeature. + + 文件系统是否支持该特性的详细信息 + + :return: The msg_code of this ShareInfoFeature. + :rtype: str + """ + return self._msg_code + + @msg_code.setter + def msg_code(self, msg_code): + """Sets the msg_code of this ShareInfoFeature. + + 文件系统是否支持该特性的详细信息 + + :param msg_code: The msg_code of this ShareInfoFeature. + :type msg_code: str + """ + self._msg_code = msg_code + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShareInfoFeature): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/share_info_features.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/share_info_features.py new file mode 100644 index 0000000000..dcb14d8369 --- /dev/null +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/share_info_features.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShareInfoFeatures: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'backup': 'ShareInfoFeature' + } + + attribute_map = { + 'backup': 'backup' + } + + def __init__(self, backup=None): + """ShareInfoFeatures + + The model defined in huaweicloud sdk + + :param backup: + :type backup: :class:`huaweicloudsdksfsturbo.v1.ShareInfoFeature` + """ + + + + self._backup = None + self.discriminator = None + + if backup is not None: + self.backup = backup + + @property + def backup(self): + """Gets the backup of this ShareInfoFeatures. + + :return: The backup of this ShareInfoFeatures. + :rtype: :class:`huaweicloudsdksfsturbo.v1.ShareInfoFeature` + """ + return self._backup + + @backup.setter + def backup(self, backup): + """Sets the backup of this ShareInfoFeatures. + + :param backup: The backup of this ShareInfoFeatures. + :type backup: :class:`huaweicloudsdksfsturbo.v1.ShareInfoFeature` + """ + self._backup = backup + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShareInfoFeatures): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/show_fs_dir_quota_response.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/show_fs_dir_quota_response.py index b23ca3df27..6d76a2f9c3 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/show_fs_dir_quota_response.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/show_fs_dir_quota_response.py @@ -44,9 +44,9 @@ def __init__(self, path=None, capacity=None, inode=None, used_capacity=None, use :type capacity: int :param inode: 目录的inode数量限制 :type inode: int - :param used_capacity: 目录已使用的容量大小,单位:MB。仅SFSTurbo HPC型返回该字段 + :param used_capacity: 目录已使用的容量大小,单位:MB。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段。数据可能有延迟。 :type used_capacity: int - :param used_inode: 目录的已使用的inode数量。仅SFSTurbo HPC型返回该字段 + :param used_inode: 目录的已使用的inode数量。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段。数据可能有延迟。 :type used_inode: int """ @@ -140,7 +140,7 @@ def inode(self, inode): def used_capacity(self): """Gets the used_capacity of this ShowFsDirQuotaResponse. - 目录已使用的容量大小,单位:MB。仅SFSTurbo HPC型返回该字段 + 目录已使用的容量大小,单位:MB。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段。数据可能有延迟。 :return: The used_capacity of this ShowFsDirQuotaResponse. :rtype: int @@ -151,7 +151,7 @@ def used_capacity(self): def used_capacity(self, used_capacity): """Sets the used_capacity of this ShowFsDirQuotaResponse. - 目录已使用的容量大小,单位:MB。仅SFSTurbo HPC型返回该字段 + 目录已使用的容量大小,单位:MB。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段。数据可能有延迟。 :param used_capacity: The used_capacity of this ShowFsDirQuotaResponse. :type used_capacity: int @@ -162,7 +162,7 @@ def used_capacity(self, used_capacity): def used_inode(self): """Gets the used_inode of this ShowFsDirQuotaResponse. - 目录的已使用的inode数量。仅SFSTurbo HPC型返回该字段 + 目录的已使用的inode数量。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段。数据可能有延迟。 :return: The used_inode of this ShowFsDirQuotaResponse. :rtype: int @@ -173,7 +173,7 @@ def used_inode(self): def used_inode(self, used_inode): """Sets the used_inode of this ShowFsDirQuotaResponse. - 目录的已使用的inode数量。仅SFSTurbo HPC型返回该字段 + 目录的已使用的inode数量。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段。数据可能有延迟。 :param used_inode: The used_inode of this ShowFsDirQuotaResponse. :type used_inode: int diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/show_fs_dir_response.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/show_fs_dir_response.py index 4029c12f53..59882be334 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/show_fs_dir_response.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/show_fs_dir_response.py @@ -38,11 +38,11 @@ def __init__(self, path=None, mode=None, uid=None, gid=None): :param path: 目录全路径 :type path: str - :param mode: 目录权限,仅HPC型、缓存型文件系统返回该字段。第三位表示目录所有者的权限,第四位表示目录所属用户组的权限,第五位表示其他用户的权限。目录所有者由uid指定,目录所属用户组由gid指定,不是目录所有者且不在目录所属用户组的用户为其他用户。例如:40755中第三位7代表目录所有者对该目录具有读、写、执行权限;第四位5代表目录所属用户组对该目录具有读、执行权限;第五位5代表其他用户对该目录具有读、执行权限。 + :param mode: 目录权限,仅20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统返回该字段。第三位表示目录所有者的权限,第四位表示目录所属用户组的权限,第五位表示其他用户的权限。目录所有者由uid指定,目录所属用户组由gid指定,不是目录所有者且不在目录所属用户组的用户为其他用户。例如:40755中第三位7代表目录所有者对该目录具有读、写、执行权限;第四位5代表目录所属用户组对该目录具有读、执行权限;第五位5代表其他用户对该目录具有读、执行权限。 :type mode: int - :param uid: 目录所有者的用户id,仅HPC型、缓存型文件系统返回该字段。 + :param uid: 目录所有者的用户id,仅20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统返回该字段。 :type uid: int - :param gid: 目录所属用户组id,仅HPC型、缓存型文件系统返回该字段。 + :param gid: 目录所属用户组id,仅20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统返回该字段。 :type gid: int """ @@ -89,7 +89,7 @@ def path(self, path): def mode(self): """Gets the mode of this ShowFsDirResponse. - 目录权限,仅HPC型、缓存型文件系统返回该字段。第三位表示目录所有者的权限,第四位表示目录所属用户组的权限,第五位表示其他用户的权限。目录所有者由uid指定,目录所属用户组由gid指定,不是目录所有者且不在目录所属用户组的用户为其他用户。例如:40755中第三位7代表目录所有者对该目录具有读、写、执行权限;第四位5代表目录所属用户组对该目录具有读、执行权限;第五位5代表其他用户对该目录具有读、执行权限。 + 目录权限,仅20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统返回该字段。第三位表示目录所有者的权限,第四位表示目录所属用户组的权限,第五位表示其他用户的权限。目录所有者由uid指定,目录所属用户组由gid指定,不是目录所有者且不在目录所属用户组的用户为其他用户。例如:40755中第三位7代表目录所有者对该目录具有读、写、执行权限;第四位5代表目录所属用户组对该目录具有读、执行权限;第五位5代表其他用户对该目录具有读、执行权限。 :return: The mode of this ShowFsDirResponse. :rtype: int @@ -100,7 +100,7 @@ def mode(self): def mode(self, mode): """Sets the mode of this ShowFsDirResponse. - 目录权限,仅HPC型、缓存型文件系统返回该字段。第三位表示目录所有者的权限,第四位表示目录所属用户组的权限,第五位表示其他用户的权限。目录所有者由uid指定,目录所属用户组由gid指定,不是目录所有者且不在目录所属用户组的用户为其他用户。例如:40755中第三位7代表目录所有者对该目录具有读、写、执行权限;第四位5代表目录所属用户组对该目录具有读、执行权限;第五位5代表其他用户对该目录具有读、执行权限。 + 目录权限,仅20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统返回该字段。第三位表示目录所有者的权限,第四位表示目录所属用户组的权限,第五位表示其他用户的权限。目录所有者由uid指定,目录所属用户组由gid指定,不是目录所有者且不在目录所属用户组的用户为其他用户。例如:40755中第三位7代表目录所有者对该目录具有读、写、执行权限;第四位5代表目录所属用户组对该目录具有读、执行权限;第五位5代表其他用户对该目录具有读、执行权限。 :param mode: The mode of this ShowFsDirResponse. :type mode: int @@ -111,7 +111,7 @@ def mode(self, mode): def uid(self): """Gets the uid of this ShowFsDirResponse. - 目录所有者的用户id,仅HPC型、缓存型文件系统返回该字段。 + 目录所有者的用户id,仅20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统返回该字段。 :return: The uid of this ShowFsDirResponse. :rtype: int @@ -122,7 +122,7 @@ def uid(self): def uid(self, uid): """Sets the uid of this ShowFsDirResponse. - 目录所有者的用户id,仅HPC型、缓存型文件系统返回该字段。 + 目录所有者的用户id,仅20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统返回该字段。 :param uid: The uid of this ShowFsDirResponse. :type uid: int @@ -133,7 +133,7 @@ def uid(self, uid): def gid(self): """Gets the gid of this ShowFsDirResponse. - 目录所属用户组id,仅HPC型、缓存型文件系统返回该字段。 + 目录所属用户组id,仅20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统返回该字段。 :return: The gid of this ShowFsDirResponse. :rtype: int @@ -144,7 +144,7 @@ def gid(self): def gid(self, gid): """Sets the gid of this ShowFsDirResponse. - 目录所属用户组id,仅HPC型、缓存型文件系统返回该字段。 + 目录所属用户组id,仅20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB、HPC缓存型文件系统返回该字段。 :param gid: The gid of this ShowFsDirResponse. :type gid: int diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/show_ldap_config_response.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/show_ldap_config_response.py index c2bc1512b3..d61226c735 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/show_ldap_config_response.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/show_ldap_config_response.py @@ -21,17 +21,25 @@ class ShowLdapConfigResponse(SdkResponse): 'url': 'str', 'base_dn': 'str', 'user_dn': 'str', - 'filter_condition': 'str' + 'filter_condition': 'str', + 'backup_url': 'str', + 'schema': 'str', + 'search_timeout': 'int', + 'allow_local_user': 'str' } attribute_map = { 'url': 'url', 'base_dn': 'base_dn', 'user_dn': 'user_dn', - 'filter_condition': 'filter_condition' + 'filter_condition': 'filter_condition', + 'backup_url': 'backup_url', + 'schema': 'schema', + 'search_timeout': 'search_timeout', + 'allow_local_user': 'allow_local_user' } - def __init__(self, url=None, base_dn=None, user_dn=None, filter_condition=None): + def __init__(self, url=None, base_dn=None, user_dn=None, filter_condition=None, backup_url=None, schema=None, search_timeout=None, allow_local_user=None): """ShowLdapConfigResponse The model defined in huaweicloud sdk @@ -44,6 +52,14 @@ def __init__(self, url=None, base_dn=None, user_dn=None, filter_condition=None): :type user_dn: str :param filter_condition: 过滤条件。保留字段,暂不支持 :type filter_condition: str + :param backup_url: ldap备节点的url + :type backup_url: str + :param schema: ldap的schema,不填写则默认为RFC2307 + :type schema: str + :param search_timeout: ldap搜索的超时时间,单位为秒。不填写则默认为3秒 + :type search_timeout: int + :param allow_local_user: 访问ldap服务器失败后是否允许使用本地用户鉴权 + :type allow_local_user: str """ super(ShowLdapConfigResponse, self).__init__() @@ -52,6 +68,10 @@ def __init__(self, url=None, base_dn=None, user_dn=None, filter_condition=None): self._base_dn = None self._user_dn = None self._filter_condition = None + self._backup_url = None + self._schema = None + self._search_timeout = None + self._allow_local_user = None self.discriminator = None if url is not None: @@ -62,6 +82,14 @@ def __init__(self, url=None, base_dn=None, user_dn=None, filter_condition=None): self.user_dn = user_dn if filter_condition is not None: self.filter_condition = filter_condition + if backup_url is not None: + self.backup_url = backup_url + if schema is not None: + self.schema = schema + if search_timeout is not None: + self.search_timeout = search_timeout + if allow_local_user is not None: + self.allow_local_user = allow_local_user @property def url(self): @@ -151,6 +179,94 @@ def filter_condition(self, filter_condition): """ self._filter_condition = filter_condition + @property + def backup_url(self): + """Gets the backup_url of this ShowLdapConfigResponse. + + ldap备节点的url + + :return: The backup_url of this ShowLdapConfigResponse. + :rtype: str + """ + return self._backup_url + + @backup_url.setter + def backup_url(self, backup_url): + """Sets the backup_url of this ShowLdapConfigResponse. + + ldap备节点的url + + :param backup_url: The backup_url of this ShowLdapConfigResponse. + :type backup_url: str + """ + self._backup_url = backup_url + + @property + def schema(self): + """Gets the schema of this ShowLdapConfigResponse. + + ldap的schema,不填写则默认为RFC2307 + + :return: The schema of this ShowLdapConfigResponse. + :rtype: str + """ + return self._schema + + @schema.setter + def schema(self, schema): + """Sets the schema of this ShowLdapConfigResponse. + + ldap的schema,不填写则默认为RFC2307 + + :param schema: The schema of this ShowLdapConfigResponse. + :type schema: str + """ + self._schema = schema + + @property + def search_timeout(self): + """Gets the search_timeout of this ShowLdapConfigResponse. + + ldap搜索的超时时间,单位为秒。不填写则默认为3秒 + + :return: The search_timeout of this ShowLdapConfigResponse. + :rtype: int + """ + return self._search_timeout + + @search_timeout.setter + def search_timeout(self, search_timeout): + """Sets the search_timeout of this ShowLdapConfigResponse. + + ldap搜索的超时时间,单位为秒。不填写则默认为3秒 + + :param search_timeout: The search_timeout of this ShowLdapConfigResponse. + :type search_timeout: int + """ + self._search_timeout = search_timeout + + @property + def allow_local_user(self): + """Gets the allow_local_user of this ShowLdapConfigResponse. + + 访问ldap服务器失败后是否允许使用本地用户鉴权 + + :return: The allow_local_user of this ShowLdapConfigResponse. + :rtype: str + """ + return self._allow_local_user + + @allow_local_user.setter + def allow_local_user(self, allow_local_user): + """Sets the allow_local_user of this ShowLdapConfigResponse. + + 访问ldap服务器失败后是否允许使用本地用户鉴权 + + :param allow_local_user: The allow_local_user of this ShowLdapConfigResponse. + :type allow_local_user: str + """ + self._allow_local_user = allow_local_user + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/show_perm_rule_response.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/show_perm_rule_response.py index 4120538f45..392da8947d 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/show_perm_rule_response.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/show_perm_rule_response.py @@ -40,9 +40,9 @@ def __init__(self, id=None, ip_cidr=None, rw_type=None, user_type=None): :type id: str :param ip_cidr: 授权对象的IP地址或网段 :type ip_cidr: str - :param rw_type: -| 授权对象的读写权限 rw:默认选项,以读写的方式共享 ro:以只读的方式共享 + :param rw_type: 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限 :type rw_type: str - :param user_type: -| 授权对象的系统用户对文件系统的访问权限。取值如下: no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。 + :param user_type: 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 - all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。' :type user_type: str """ @@ -111,7 +111,7 @@ def ip_cidr(self, ip_cidr): def rw_type(self): """Gets the rw_type of this ShowPermRuleResponse. - -| 授权对象的读写权限 rw:默认选项,以读写的方式共享 ro:以只读的方式共享 + 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限 :return: The rw_type of this ShowPermRuleResponse. :rtype: str @@ -122,7 +122,7 @@ def rw_type(self): def rw_type(self, rw_type): """Sets the rw_type of this ShowPermRuleResponse. - -| 授权对象的读写权限 rw:默认选项,以读写的方式共享 ro:以只读的方式共享 + 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限 :param rw_type: The rw_type of this ShowPermRuleResponse. :type rw_type: str @@ -133,7 +133,7 @@ def rw_type(self, rw_type): def user_type(self): """Gets the user_type of this ShowPermRuleResponse. - -| 授权对象的系统用户对文件系统的访问权限。取值如下: no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。 + 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 - all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。' :return: The user_type of this ShowPermRuleResponse. :rtype: str @@ -144,7 +144,7 @@ def user_type(self): def user_type(self, user_type): """Sets the user_type of this ShowPermRuleResponse. - -| 授权对象的系统用户对文件系统的访问权限。取值如下: no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。 + 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 - all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。' :param user_type: The user_type of this ShowPermRuleResponse. :type user_type: str diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/show_share_response.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/show_share_response.py index 28c54b579b..410b6174b7 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/show_share_response.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/show_share_response.py @@ -40,7 +40,13 @@ class ShowShareResponse(SdkResponse): 'subnet_id': 'str', 'vpc_id': 'str', 'enterprise_project_id': 'str', - 'tags': 'list[ResourceTag]' + 'tags': 'list[ResourceTag]', + 'optional_endpoint': 'str', + 'hpc_bw': 'str', + 'instance_id': 'str', + 'instance_type': 'str', + 'status_detail': 'str', + 'features': 'ShareInfoFeatures' } attribute_map = { @@ -66,10 +72,16 @@ class ShowShareResponse(SdkResponse): 'subnet_id': 'subnet_id', 'vpc_id': 'vpc_id', 'enterprise_project_id': 'enterprise_project_id', - 'tags': 'tags' + 'tags': 'tags', + 'optional_endpoint': 'optional_endpoint', + 'hpc_bw': 'hpc_bw', + 'instance_id': 'instanceId', + 'instance_type': 'instanceType', + 'status_detail': 'statusDetail', + 'features': 'features' } - def __init__(self, action_progress=None, version=None, avail_capacity=None, availability_zone=None, az_name=None, created_at=None, crypt_key_id=None, expand_type=None, export_location=None, id=None, name=None, pay_model=None, region=None, security_group_id=None, share_proto=None, share_type=None, size=None, status=None, sub_status=None, subnet_id=None, vpc_id=None, enterprise_project_id=None, tags=None): + def __init__(self, action_progress=None, version=None, avail_capacity=None, availability_zone=None, az_name=None, created_at=None, crypt_key_id=None, expand_type=None, export_location=None, id=None, name=None, pay_model=None, region=None, security_group_id=None, share_proto=None, share_type=None, size=None, status=None, sub_status=None, subnet_id=None, vpc_id=None, enterprise_project_id=None, tags=None, optional_endpoint=None, hpc_bw=None, instance_id=None, instance_type=None, status_detail=None, features=None): """ShowShareResponse The model defined in huaweicloud sdk @@ -88,15 +100,15 @@ def __init__(self, action_progress=None, version=None, avail_capacity=None, avai :type created_at: datetime :param crypt_key_id: 用户指定的加密密钥ID,非加密盘时不返回。 :type crypt_key_id: str - :param expand_type: 如果是增强型文件系统,该字段返回bandwidth,否则不返回。 + :param expand_type: 如果是增强版文件系统,该字段返回bandwidth;如果是20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB,该字段返回hpc;否则不返回。 :type expand_type: str - :param export_location: SFS Turbo文件系统的挂载端点。 + :param export_location: SFS Turbo文件系统的挂载端点。例如\"192.168.0.90:/\"。如果文件系统正在创建,该字段不返回。 :type export_location: str :param id: SFS Turbo的文件系统ID。 :type id: str :param name: 创建时指定的SFS Turbo文件系统名称。 :type name: str - :param pay_model: SFS Turbo文件系统的计费模式。'0'代表按需付费,'1'代表包周期计费。 + :param pay_model: SFS Turbo文件系统的计费模式。'0'代表按需付费,'1'代表包周期计费。如果文件系统正在创建,该字段不返回。 :type pay_model: str :param region: SFS Turbo文件系统所在区域。 :type region: str @@ -110,7 +122,7 @@ def __init__(self, action_progress=None, version=None, avail_capacity=None, avai :type size: str :param status: SFS Turbo文件系统的状态。'100'表示创建中,'200'表示可用,'303'表示创建失败,'800'表示实例被冻结。 :type status: str - :param sub_status: SFS Turbo文件系统的子状态。 '121'表示扩容中;'132'表示修改安全组中;'137'表示添加VPC中;'138'表示删除VPC中;'150'表示配置联动后端中;'151'表示删除联动后端配置中; '221'表示扩容成功;'232'表示修改安全组成功;'237'表示添加VPC成功;'238'表示删除VPC成功;'250'表示配置联动后端成功;'251'表示删除联动后端配置成功; '321'表示扩容失败;'332'表示修改安全组失败;'337'表示添加VPC失败;'338'表示删除VPC失败;'350'表示配置联动后端失败;'351'表示删除联动后端配置失败; + :param sub_status: SFS Turbo文件系统的子状态。当用户未对文件系统有修改类操作时,该字段不返回。 '121'表示扩容中;'132'表示修改安全组中;'137'表示添加VPC中;'138'表示删除VPC中;'150'表示配置联动后端中;'151'表示删除联动后端配置中。 '221'表示扩容成功;'232'表示修改安全组成功;'237'表示添加VPC成功;'238'表示删除VPC成功;'250'表示配置联动后端成功;'251'表示删除联动后端配置成功。 '321'表示扩容失败;'332'表示修改安全组失败;'337'表示添加VPC失败;'338'表示删除VPC失败;'350'表示配置联动后端失败;'351'表示删除联动后端配置失败。 :type sub_status: str :param subnet_id: 用户指定的子网的网络ID。 :type subnet_id: str @@ -120,6 +132,18 @@ def __init__(self, action_progress=None, version=None, avail_capacity=None, avai :type enterprise_project_id: str :param tags: tag标签的列表。 :type tags: list[:class:`huaweicloudsdksfsturbo.v1.ResourceTag`] + :param optional_endpoint: 可选的挂载IP地址。上一代文件系统规格类型不返回该字段。 + :type optional_endpoint: str + :param hpc_bw: 文件系统的带宽规格。 - \"20M\"表示20MB/s/TiB - \"40M\"表示40MB/s/TiB - \"125M\"表示125MB/s/TiB - \"250M\"表示250MB/s/TiB - \"500M\"表示500MB/s/TiB - \"1000M\"表示1000MB/s/TiB - \"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"或\"48G\"表示HPC缓存型的带宽规格。 + :type hpc_bw: str + :param instance_id: 文件系统规格的节点id,为预留字段,不具备实际含义。 + :type instance_id: str + :param instance_type: 文件系统规格的节点类型,为预留字段,不具备实际含义。 + :type instance_type: str + :param status_detail: 文件系统的请求ID,为预留字段,不具备实际含义。 + :type status_detail: str + :param features: + :type features: :class:`huaweicloudsdksfsturbo.v1.ShareInfoFeatures` """ super(ShowShareResponse, self).__init__() @@ -147,6 +171,12 @@ def __init__(self, action_progress=None, version=None, avail_capacity=None, avai self._vpc_id = None self._enterprise_project_id = None self._tags = None + self._optional_endpoint = None + self._hpc_bw = None + self._instance_id = None + self._instance_type = None + self._status_detail = None + self._features = None self.discriminator = None if action_progress is not None: @@ -195,6 +225,18 @@ def __init__(self, action_progress=None, version=None, avail_capacity=None, avai self.enterprise_project_id = enterprise_project_id if tags is not None: self.tags = tags + if optional_endpoint is not None: + self.optional_endpoint = optional_endpoint + if hpc_bw is not None: + self.hpc_bw = hpc_bw + if instance_id is not None: + self.instance_id = instance_id + if instance_type is not None: + self.instance_type = instance_type + if status_detail is not None: + self.status_detail = status_detail + if features is not None: + self.features = features @property def action_progress(self): @@ -350,7 +392,7 @@ def crypt_key_id(self, crypt_key_id): def expand_type(self): """Gets the expand_type of this ShowShareResponse. - 如果是增强型文件系统,该字段返回bandwidth,否则不返回。 + 如果是增强版文件系统,该字段返回bandwidth;如果是20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB,该字段返回hpc;否则不返回。 :return: The expand_type of this ShowShareResponse. :rtype: str @@ -361,7 +403,7 @@ def expand_type(self): def expand_type(self, expand_type): """Sets the expand_type of this ShowShareResponse. - 如果是增强型文件系统,该字段返回bandwidth,否则不返回。 + 如果是增强版文件系统,该字段返回bandwidth;如果是20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB,该字段返回hpc;否则不返回。 :param expand_type: The expand_type of this ShowShareResponse. :type expand_type: str @@ -372,7 +414,7 @@ def expand_type(self, expand_type): def export_location(self): """Gets the export_location of this ShowShareResponse. - SFS Turbo文件系统的挂载端点。 + SFS Turbo文件系统的挂载端点。例如\"192.168.0.90:/\"。如果文件系统正在创建,该字段不返回。 :return: The export_location of this ShowShareResponse. :rtype: str @@ -383,7 +425,7 @@ def export_location(self): def export_location(self, export_location): """Sets the export_location of this ShowShareResponse. - SFS Turbo文件系统的挂载端点。 + SFS Turbo文件系统的挂载端点。例如\"192.168.0.90:/\"。如果文件系统正在创建,该字段不返回。 :param export_location: The export_location of this ShowShareResponse. :type export_location: str @@ -438,7 +480,7 @@ def name(self, name): def pay_model(self): """Gets the pay_model of this ShowShareResponse. - SFS Turbo文件系统的计费模式。'0'代表按需付费,'1'代表包周期计费。 + SFS Turbo文件系统的计费模式。'0'代表按需付费,'1'代表包周期计费。如果文件系统正在创建,该字段不返回。 :return: The pay_model of this ShowShareResponse. :rtype: str @@ -449,7 +491,7 @@ def pay_model(self): def pay_model(self, pay_model): """Sets the pay_model of this ShowShareResponse. - SFS Turbo文件系统的计费模式。'0'代表按需付费,'1'代表包周期计费。 + SFS Turbo文件系统的计费模式。'0'代表按需付费,'1'代表包周期计费。如果文件系统正在创建,该字段不返回。 :param pay_model: The pay_model of this ShowShareResponse. :type pay_model: str @@ -592,7 +634,7 @@ def status(self, status): def sub_status(self): """Gets the sub_status of this ShowShareResponse. - SFS Turbo文件系统的子状态。 '121'表示扩容中;'132'表示修改安全组中;'137'表示添加VPC中;'138'表示删除VPC中;'150'表示配置联动后端中;'151'表示删除联动后端配置中; '221'表示扩容成功;'232'表示修改安全组成功;'237'表示添加VPC成功;'238'表示删除VPC成功;'250'表示配置联动后端成功;'251'表示删除联动后端配置成功; '321'表示扩容失败;'332'表示修改安全组失败;'337'表示添加VPC失败;'338'表示删除VPC失败;'350'表示配置联动后端失败;'351'表示删除联动后端配置失败; + SFS Turbo文件系统的子状态。当用户未对文件系统有修改类操作时,该字段不返回。 '121'表示扩容中;'132'表示修改安全组中;'137'表示添加VPC中;'138'表示删除VPC中;'150'表示配置联动后端中;'151'表示删除联动后端配置中。 '221'表示扩容成功;'232'表示修改安全组成功;'237'表示添加VPC成功;'238'表示删除VPC成功;'250'表示配置联动后端成功;'251'表示删除联动后端配置成功。 '321'表示扩容失败;'332'表示修改安全组失败;'337'表示添加VPC失败;'338'表示删除VPC失败;'350'表示配置联动后端失败;'351'表示删除联动后端配置失败。 :return: The sub_status of this ShowShareResponse. :rtype: str @@ -603,7 +645,7 @@ def sub_status(self): def sub_status(self, sub_status): """Sets the sub_status of this ShowShareResponse. - SFS Turbo文件系统的子状态。 '121'表示扩容中;'132'表示修改安全组中;'137'表示添加VPC中;'138'表示删除VPC中;'150'表示配置联动后端中;'151'表示删除联动后端配置中; '221'表示扩容成功;'232'表示修改安全组成功;'237'表示添加VPC成功;'238'表示删除VPC成功;'250'表示配置联动后端成功;'251'表示删除联动后端配置成功; '321'表示扩容失败;'332'表示修改安全组失败;'337'表示添加VPC失败;'338'表示删除VPC失败;'350'表示配置联动后端失败;'351'表示删除联动后端配置失败; + SFS Turbo文件系统的子状态。当用户未对文件系统有修改类操作时,该字段不返回。 '121'表示扩容中;'132'表示修改安全组中;'137'表示添加VPC中;'138'表示删除VPC中;'150'表示配置联动后端中;'151'表示删除联动后端配置中。 '221'表示扩容成功;'232'表示修改安全组成功;'237'表示添加VPC成功;'238'表示删除VPC成功;'250'表示配置联动后端成功;'251'表示删除联动后端配置成功。 '321'表示扩容失败;'332'表示修改安全组失败;'337'表示添加VPC失败;'338'表示删除VPC失败;'350'表示配置联动后端失败;'351'表示删除联动后端配置失败。 :param sub_status: The sub_status of this ShowShareResponse. :type sub_status: str @@ -698,6 +740,134 @@ def tags(self, tags): """ self._tags = tags + @property + def optional_endpoint(self): + """Gets the optional_endpoint of this ShowShareResponse. + + 可选的挂载IP地址。上一代文件系统规格类型不返回该字段。 + + :return: The optional_endpoint of this ShowShareResponse. + :rtype: str + """ + return self._optional_endpoint + + @optional_endpoint.setter + def optional_endpoint(self, optional_endpoint): + """Sets the optional_endpoint of this ShowShareResponse. + + 可选的挂载IP地址。上一代文件系统规格类型不返回该字段。 + + :param optional_endpoint: The optional_endpoint of this ShowShareResponse. + :type optional_endpoint: str + """ + self._optional_endpoint = optional_endpoint + + @property + def hpc_bw(self): + """Gets the hpc_bw of this ShowShareResponse. + + 文件系统的带宽规格。 - \"20M\"表示20MB/s/TiB - \"40M\"表示40MB/s/TiB - \"125M\"表示125MB/s/TiB - \"250M\"表示250MB/s/TiB - \"500M\"表示500MB/s/TiB - \"1000M\"表示1000MB/s/TiB - \"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"或\"48G\"表示HPC缓存型的带宽规格。 + + :return: The hpc_bw of this ShowShareResponse. + :rtype: str + """ + return self._hpc_bw + + @hpc_bw.setter + def hpc_bw(self, hpc_bw): + """Sets the hpc_bw of this ShowShareResponse. + + 文件系统的带宽规格。 - \"20M\"表示20MB/s/TiB - \"40M\"表示40MB/s/TiB - \"125M\"表示125MB/s/TiB - \"250M\"表示250MB/s/TiB - \"500M\"表示500MB/s/TiB - \"1000M\"表示1000MB/s/TiB - \"2G\"、\"4G\"、\"8G\"、\"16G\"、\"24G\"、\"32G\"或\"48G\"表示HPC缓存型的带宽规格。 + + :param hpc_bw: The hpc_bw of this ShowShareResponse. + :type hpc_bw: str + """ + self._hpc_bw = hpc_bw + + @property + def instance_id(self): + """Gets the instance_id of this ShowShareResponse. + + 文件系统规格的节点id,为预留字段,不具备实际含义。 + + :return: The instance_id of this ShowShareResponse. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowShareResponse. + + 文件系统规格的节点id,为预留字段,不具备实际含义。 + + :param instance_id: The instance_id of this ShowShareResponse. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def instance_type(self): + """Gets the instance_type of this ShowShareResponse. + + 文件系统规格的节点类型,为预留字段,不具备实际含义。 + + :return: The instance_type of this ShowShareResponse. + :rtype: str + """ + return self._instance_type + + @instance_type.setter + def instance_type(self, instance_type): + """Sets the instance_type of this ShowShareResponse. + + 文件系统规格的节点类型,为预留字段,不具备实际含义。 + + :param instance_type: The instance_type of this ShowShareResponse. + :type instance_type: str + """ + self._instance_type = instance_type + + @property + def status_detail(self): + """Gets the status_detail of this ShowShareResponse. + + 文件系统的请求ID,为预留字段,不具备实际含义。 + + :return: The status_detail of this ShowShareResponse. + :rtype: str + """ + return self._status_detail + + @status_detail.setter + def status_detail(self, status_detail): + """Sets the status_detail of this ShowShareResponse. + + 文件系统的请求ID,为预留字段,不具备实际含义。 + + :param status_detail: The status_detail of this ShowShareResponse. + :type status_detail: str + """ + self._status_detail = status_detail + + @property + def features(self): + """Gets the features of this ShowShareResponse. + + :return: The features of this ShowShareResponse. + :rtype: :class:`huaweicloudsdksfsturbo.v1.ShareInfoFeatures` + """ + return self._features + + @features.setter + def features(self, features): + """Sets the features of this ShowShareResponse. + + :param features: The features of this ShowShareResponse. + :type features: :class:`huaweicloudsdksfsturbo.v1.ShareInfoFeatures` + """ + self._features = features + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/tag.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/tag.py index d57784ea64..b2bb82bf36 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/tag.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/tag.py @@ -31,7 +31,7 @@ def __init__(self, key=None, values=None): The model defined in huaweicloud sdk - :param key: 标签的键。 最大长度127个字符。 key不能为空。 + :param key: 标签的键。 最大长度128个字符。 key不能为空。 :type key: str :param values: 值列表。每个值最大长度255个字符,如果values为空列表,则表示匹配任意值value。value之间为或的关系。 :type values: list[str] @@ -50,7 +50,7 @@ def __init__(self, key=None, values=None): def key(self): """Gets the key of this Tag. - 标签的键。 最大长度127个字符。 key不能为空。 + 标签的键。 最大长度128个字符。 key不能为空。 :return: The key of this Tag. :rtype: str @@ -61,7 +61,7 @@ def key(self): def key(self, key): """Sets the key of this Tag. - 标签的键。 最大长度127个字符。 key不能为空。 + 标签的键。 最大长度128个字符。 key不能为空。 :param key: The key of this Tag. :type key: str diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_request_body.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_request_body.py index ff9996bd0e..b59a4cb7ca 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_request_body.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_request_body.py @@ -35,9 +35,9 @@ def __init__(self, path=None, capacity=None, inode=None): :param path: 合法的已存在的目录的全路径 :type path: str - :param capacity: 目录的容量大小,单位:MB + :param capacity: 目录的容量大小,单位:MB; 设置为0会导致数据无法写入目录; capacity和quota至少二选一 :type capacity: int - :param inode: 目录的inode数量限制 + :param inode: 目录的inode数量限制; 设置为0会导致数据无法写入目录; capacity和quota至少二选一 :type inode: int """ @@ -80,7 +80,7 @@ def path(self, path): def capacity(self): """Gets the capacity of this UpdateFsDirQuotaRequestBody. - 目录的容量大小,单位:MB + 目录的容量大小,单位:MB; 设置为0会导致数据无法写入目录; capacity和quota至少二选一 :return: The capacity of this UpdateFsDirQuotaRequestBody. :rtype: int @@ -91,7 +91,7 @@ def capacity(self): def capacity(self, capacity): """Sets the capacity of this UpdateFsDirQuotaRequestBody. - 目录的容量大小,单位:MB + 目录的容量大小,单位:MB; 设置为0会导致数据无法写入目录; capacity和quota至少二选一 :param capacity: The capacity of this UpdateFsDirQuotaRequestBody. :type capacity: int @@ -102,7 +102,7 @@ def capacity(self, capacity): def inode(self): """Gets the inode of this UpdateFsDirQuotaRequestBody. - 目录的inode数量限制 + 目录的inode数量限制; 设置为0会导致数据无法写入目录; capacity和quota至少二选一 :return: The inode of this UpdateFsDirQuotaRequestBody. :rtype: int @@ -113,7 +113,7 @@ def inode(self): def inode(self, inode): """Sets the inode of this UpdateFsDirQuotaRequestBody. - 目录的inode数量限制 + 目录的inode数量限制; 设置为0会导致数据无法写入目录; capacity和quota至少二选一 :param inode: The inode of this UpdateFsDirQuotaRequestBody. :type inode: int diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_response.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_response.py index 80689e2433..3a3e397f64 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_response.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_response.py @@ -44,9 +44,9 @@ def __init__(self, path=None, capacity=None, inode=None, used_capacity=None, use :type capacity: int :param inode: 目录的inode数量限制 :type inode: int - :param used_capacity: 目录已使用的容量大小,单位:MB。仅SFSTurbo HPC型返回该字段 + :param used_capacity: 目录已使用的容量大小,单位:MB。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段 :type used_capacity: int - :param used_inode: 目录的已使用的inode数量。仅SFSTurbo HPC型返回该字段 + :param used_inode: 目录的已使用的inode数量。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段 :type used_inode: int """ @@ -140,7 +140,7 @@ def inode(self, inode): def used_capacity(self): """Gets the used_capacity of this UpdateFsDirQuotaResponse. - 目录已使用的容量大小,单位:MB。仅SFSTurbo HPC型返回该字段 + 目录已使用的容量大小,单位:MB。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段 :return: The used_capacity of this UpdateFsDirQuotaResponse. :rtype: int @@ -151,7 +151,7 @@ def used_capacity(self): def used_capacity(self, used_capacity): """Sets the used_capacity of this UpdateFsDirQuotaResponse. - 目录已使用的容量大小,单位:MB。仅SFSTurbo HPC型返回该字段 + 目录已使用的容量大小,单位:MB。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段 :param used_capacity: The used_capacity of this UpdateFsDirQuotaResponse. :type used_capacity: int @@ -162,7 +162,7 @@ def used_capacity(self, used_capacity): def used_inode(self): """Gets the used_inode of this UpdateFsDirQuotaResponse. - 目录的已使用的inode数量。仅SFSTurbo HPC型返回该字段 + 目录的已使用的inode数量。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段 :return: The used_inode of this UpdateFsDirQuotaResponse. :rtype: int @@ -173,7 +173,7 @@ def used_inode(self): def used_inode(self, used_inode): """Sets the used_inode of this UpdateFsDirQuotaResponse. - 目录的已使用的inode数量。仅SFSTurbo HPC型返回该字段 + 目录的已使用的inode数量。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段 :param used_inode: The used_inode of this UpdateFsDirQuotaResponse. :type used_inode: int diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_hpc_share_request_body.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_hpc_share_request_body.py index 08b21b61de..b0681ca2e5 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_hpc_share_request_body.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_hpc_share_request_body.py @@ -31,7 +31,7 @@ def __init__(self, action=None, gc_time=None): The model defined in huaweicloud sdk - :param action: 更新 HPC 型文件系统的操作类型。当前仅支持取值 config_gc_time + :param action: 更新文件系统的操作类型。当前仅支持取值 config_gc_time :type action: str :param gc_time: 文件系统冷数据淘汰时间,单位为小时,取值范围 [1, 100000000]。系统默认为 60 小时 :type gc_time: int @@ -50,7 +50,7 @@ def __init__(self, action=None, gc_time=None): def action(self): """Gets the action of this UpdateHpcShareRequestBody. - 更新 HPC 型文件系统的操作类型。当前仅支持取值 config_gc_time + 更新文件系统的操作类型。当前仅支持取值 config_gc_time :return: The action of this UpdateHpcShareRequestBody. :rtype: str @@ -61,7 +61,7 @@ def action(self): def action(self, action): """Sets the action of this UpdateHpcShareRequestBody. - 更新 HPC 型文件系统的操作类型。当前仅支持取值 config_gc_time + 更新文件系统的操作类型。当前仅支持取值 config_gc_time :param action: The action of this UpdateHpcShareRequestBody. :type action: str diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_ldap_config_request_body.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_ldap_config_request_body.py index 6b1172c23c..2586af46d1 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_ldap_config_request_body.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_ldap_config_request_body.py @@ -22,7 +22,11 @@ class UpdateLdapConfigRequestBody: 'user_dn': 'str', 'password': 'str', 'vpc_id': 'str', - 'filter_condition': 'str' + 'filter_condition': 'str', + 'backup_url': 'str', + 'schema': 'str', + 'search_timeout': 'int', + 'allow_local_user': 'str' } attribute_map = { @@ -31,15 +35,19 @@ class UpdateLdapConfigRequestBody: 'user_dn': 'user_dn', 'password': 'password', 'vpc_id': 'vpc_id', - 'filter_condition': 'filter_condition' + 'filter_condition': 'filter_condition', + 'backup_url': 'backup_url', + 'schema': 'schema', + 'search_timeout': 'search_timeout', + 'allow_local_user': 'allow_local_user' } - def __init__(self, url=None, base_dn=None, user_dn=None, password=None, vpc_id=None, filter_condition=None): + def __init__(self, url=None, base_dn=None, user_dn=None, password=None, vpc_id=None, filter_condition=None, backup_url=None, schema=None, search_timeout=None, allow_local_user=None): """UpdateLdapConfigRequestBody The model defined in huaweicloud sdk - :param url: ldap服务器的url + :param url: ldap服务器的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000 :type url: str :param base_dn: 数据库中的域 :type base_dn: str @@ -51,6 +59,14 @@ def __init__(self, url=None, base_dn=None, user_dn=None, password=None, vpc_id=N :type vpc_id: str :param filter_condition: 过滤条件。保留字段,暂不支持 :type filter_condition: str + :param backup_url: ldap备节点的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000 + :type backup_url: str + :param schema: ldap的schema,不填写则默认为RFC2307 + :type schema: str + :param search_timeout: ldap搜索的超时时间,单位为秒。不填写则默认为3秒 + :type search_timeout: int + :param allow_local_user: 访问ldap服务器失败后是否允许使用本地用户鉴权 + :type allow_local_user: str """ @@ -61,6 +77,10 @@ def __init__(self, url=None, base_dn=None, user_dn=None, password=None, vpc_id=N self._password = None self._vpc_id = None self._filter_condition = None + self._backup_url = None + self._schema = None + self._search_timeout = None + self._allow_local_user = None self.discriminator = None if url is not None: @@ -75,12 +95,20 @@ def __init__(self, url=None, base_dn=None, user_dn=None, password=None, vpc_id=N self.vpc_id = vpc_id if filter_condition is not None: self.filter_condition = filter_condition + if backup_url is not None: + self.backup_url = backup_url + if schema is not None: + self.schema = schema + if search_timeout is not None: + self.search_timeout = search_timeout + if allow_local_user is not None: + self.allow_local_user = allow_local_user @property def url(self): """Gets the url of this UpdateLdapConfigRequestBody. - ldap服务器的url + ldap服务器的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000 :return: The url of this UpdateLdapConfigRequestBody. :rtype: str @@ -91,7 +119,7 @@ def url(self): def url(self, url): """Sets the url of this UpdateLdapConfigRequestBody. - ldap服务器的url + ldap服务器的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000 :param url: The url of this UpdateLdapConfigRequestBody. :type url: str @@ -208,6 +236,94 @@ def filter_condition(self, filter_condition): """ self._filter_condition = filter_condition + @property + def backup_url(self): + """Gets the backup_url of this UpdateLdapConfigRequestBody. + + ldap备节点的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000 + + :return: The backup_url of this UpdateLdapConfigRequestBody. + :rtype: str + """ + return self._backup_url + + @backup_url.setter + def backup_url(self, backup_url): + """Sets the backup_url of this UpdateLdapConfigRequestBody. + + ldap备节点的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000 + + :param backup_url: The backup_url of this UpdateLdapConfigRequestBody. + :type backup_url: str + """ + self._backup_url = backup_url + + @property + def schema(self): + """Gets the schema of this UpdateLdapConfigRequestBody. + + ldap的schema,不填写则默认为RFC2307 + + :return: The schema of this UpdateLdapConfigRequestBody. + :rtype: str + """ + return self._schema + + @schema.setter + def schema(self, schema): + """Sets the schema of this UpdateLdapConfigRequestBody. + + ldap的schema,不填写则默认为RFC2307 + + :param schema: The schema of this UpdateLdapConfigRequestBody. + :type schema: str + """ + self._schema = schema + + @property + def search_timeout(self): + """Gets the search_timeout of this UpdateLdapConfigRequestBody. + + ldap搜索的超时时间,单位为秒。不填写则默认为3秒 + + :return: The search_timeout of this UpdateLdapConfigRequestBody. + :rtype: int + """ + return self._search_timeout + + @search_timeout.setter + def search_timeout(self, search_timeout): + """Sets the search_timeout of this UpdateLdapConfigRequestBody. + + ldap搜索的超时时间,单位为秒。不填写则默认为3秒 + + :param search_timeout: The search_timeout of this UpdateLdapConfigRequestBody. + :type search_timeout: int + """ + self._search_timeout = search_timeout + + @property + def allow_local_user(self): + """Gets the allow_local_user of this UpdateLdapConfigRequestBody. + + 访问ldap服务器失败后是否允许使用本地用户鉴权 + + :return: The allow_local_user of this UpdateLdapConfigRequestBody. + :rtype: str + """ + return self._allow_local_user + + @allow_local_user.setter + def allow_local_user(self, allow_local_user): + """Sets the allow_local_user of this UpdateLdapConfigRequestBody. + + 访问ldap服务器失败后是否允许使用本地用户鉴权 + + :param allow_local_user: The allow_local_user of this UpdateLdapConfigRequestBody. + :type allow_local_user: str + """ + self._allow_local_user = allow_local_user + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_ldap_config_response.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_ldap_config_response.py index 2417e51236..d25c769fcb 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_ldap_config_response.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_ldap_config_response.py @@ -30,7 +30,7 @@ def __init__(self, job_id=None): The model defined in huaweicloud sdk - :param job_id: 创建ldap异步任务的id + :param job_id: ldap异步任务的id。可通过查询job的状态详情接口查询job的执行状态。 :type job_id: str """ @@ -46,7 +46,7 @@ def __init__(self, job_id=None): def job_id(self): """Gets the job_id of this UpdateLdapConfigResponse. - 创建ldap异步任务的id + ldap异步任务的id。可通过查询job的状态详情接口查询job的执行状态。 :return: The job_id of this UpdateLdapConfigResponse. :rtype: str @@ -57,7 +57,7 @@ def job_id(self): def job_id(self, job_id): """Sets the job_id of this UpdateLdapConfigResponse. - 创建ldap异步任务的id + ldap异步任务的id。可通过查询job的状态详情接口查询job的执行状态。 :param job_id: The job_id of this UpdateLdapConfigResponse. :type job_id: str diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_request.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_request.py new file mode 100644 index 0000000000..d5c3f4c608 --- /dev/null +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_request.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateObsTargetAttributesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'share_id': 'str', + 'target_id': 'str', + 'body': 'UpdateObsTargetAttributesRequestBody' + } + + attribute_map = { + 'share_id': 'share_id', + 'target_id': 'target_id', + 'body': 'body' + } + + def __init__(self, share_id=None, target_id=None, body=None): + """UpdateObsTargetAttributesRequest + + The model defined in huaweicloud sdk + + :param share_id: 文件系统id + :type share_id: str + :param target_id: 绑定关系id + :type target_id: str + :param body: Body of the UpdateObsTargetAttributesRequest + :type body: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetAttributesRequestBody` + """ + + + + self._share_id = None + self._target_id = None + self._body = None + self.discriminator = None + + self.share_id = share_id + self.target_id = target_id + if body is not None: + self.body = body + + @property + def share_id(self): + """Gets the share_id of this UpdateObsTargetAttributesRequest. + + 文件系统id + + :return: The share_id of this UpdateObsTargetAttributesRequest. + :rtype: str + """ + return self._share_id + + @share_id.setter + def share_id(self, share_id): + """Sets the share_id of this UpdateObsTargetAttributesRequest. + + 文件系统id + + :param share_id: The share_id of this UpdateObsTargetAttributesRequest. + :type share_id: str + """ + self._share_id = share_id + + @property + def target_id(self): + """Gets the target_id of this UpdateObsTargetAttributesRequest. + + 绑定关系id + + :return: The target_id of this UpdateObsTargetAttributesRequest. + :rtype: str + """ + return self._target_id + + @target_id.setter + def target_id(self, target_id): + """Sets the target_id of this UpdateObsTargetAttributesRequest. + + 绑定关系id + + :param target_id: The target_id of this UpdateObsTargetAttributesRequest. + :type target_id: str + """ + self._target_id = target_id + + @property + def body(self): + """Gets the body of this UpdateObsTargetAttributesRequest. + + :return: The body of this UpdateObsTargetAttributesRequest. + :rtype: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetAttributesRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateObsTargetAttributesRequest. + + :param body: The body of this UpdateObsTargetAttributesRequest. + :type body: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetAttributesRequestBody` + """ + 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, UpdateObsTargetAttributesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_request_body.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_request_body.py new file mode 100644 index 0000000000..3da94c2cf2 --- /dev/null +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_request_body.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateObsTargetAttributesRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'attributes': 'ObsTargetAttributes' + } + + attribute_map = { + 'attributes': 'attributes' + } + + def __init__(self, attributes=None): + """UpdateObsTargetAttributesRequestBody + + The model defined in huaweicloud sdk + + :param attributes: + :type attributes: :class:`huaweicloudsdksfsturbo.v1.ObsTargetAttributes` + """ + + + + self._attributes = None + self.discriminator = None + + self.attributes = attributes + + @property + def attributes(self): + """Gets the attributes of this UpdateObsTargetAttributesRequestBody. + + :return: The attributes of this UpdateObsTargetAttributesRequestBody. + :rtype: :class:`huaweicloudsdksfsturbo.v1.ObsTargetAttributes` + """ + return self._attributes + + @attributes.setter + def attributes(self, attributes): + """Sets the attributes of this UpdateObsTargetAttributesRequestBody. + + :param attributes: The attributes of this UpdateObsTargetAttributesRequestBody. + :type attributes: :class:`huaweicloudsdksfsturbo.v1.ObsTargetAttributes` + """ + self._attributes = attributes + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateObsTargetAttributesRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/model/show_url_auth_response.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_response.py similarity index 54% rename from huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/model/show_url_auth_response.py rename to huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_response.py index 3d89e832e4..b57a97188f 100644 --- a/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/model/show_url_auth_response.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_response.py @@ -6,7 +6,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class ShowUrlAuthResponse(SdkResponse): +class UpdateObsTargetAttributesResponse(SdkResponse): """ Attributes: @@ -18,98 +18,98 @@ class ShowUrlAuthResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'app_id': 'str', - 'authentication': 'AppAuth', + 'target_id': 'str', + 'attributes': 'ObsTargetAttributes', 'x_request_id': 'str' } attribute_map = { - 'app_id': 'app_id', - 'authentication': 'authentication', - 'x_request_id': 'X-request-Id' + 'target_id': 'target_id', + 'attributes': 'attributes', + 'x_request_id': 'X-request-id' } - def __init__(self, app_id=None, authentication=None, x_request_id=None): - """ShowUrlAuthResponse + def __init__(self, target_id=None, attributes=None, x_request_id=None): + """UpdateObsTargetAttributesResponse The model defined in huaweicloud sdk - :param app_id: 应用id - :type app_id: str - :param authentication: - :type authentication: :class:`huaweicloudsdkcloudrtc.v2.AppAuth` + :param target_id: 绑定关系Id + :type target_id: str + :param attributes: + :type attributes: :class:`huaweicloudsdksfsturbo.v1.ObsTargetAttributes` :param x_request_id: :type x_request_id: str """ - super(ShowUrlAuthResponse, self).__init__() + super(UpdateObsTargetAttributesResponse, self).__init__() - self._app_id = None - self._authentication = None + self._target_id = None + self._attributes = None self._x_request_id = None self.discriminator = None - if app_id is not None: - self.app_id = app_id - if authentication is not None: - self.authentication = authentication + if target_id is not None: + self.target_id = target_id + if attributes is not None: + self.attributes = attributes if x_request_id is not None: self.x_request_id = x_request_id @property - def app_id(self): - """Gets the app_id of this ShowUrlAuthResponse. + def target_id(self): + """Gets the target_id of this UpdateObsTargetAttributesResponse. - 应用id + 绑定关系Id - :return: The app_id of this ShowUrlAuthResponse. + :return: The target_id of this UpdateObsTargetAttributesResponse. :rtype: str """ - return self._app_id + return self._target_id - @app_id.setter - def app_id(self, app_id): - """Sets the app_id of this ShowUrlAuthResponse. + @target_id.setter + def target_id(self, target_id): + """Sets the target_id of this UpdateObsTargetAttributesResponse. - 应用id + 绑定关系Id - :param app_id: The app_id of this ShowUrlAuthResponse. - :type app_id: str + :param target_id: The target_id of this UpdateObsTargetAttributesResponse. + :type target_id: str """ - self._app_id = app_id + self._target_id = target_id @property - def authentication(self): - """Gets the authentication of this ShowUrlAuthResponse. + def attributes(self): + """Gets the attributes of this UpdateObsTargetAttributesResponse. - :return: The authentication of this ShowUrlAuthResponse. - :rtype: :class:`huaweicloudsdkcloudrtc.v2.AppAuth` + :return: The attributes of this UpdateObsTargetAttributesResponse. + :rtype: :class:`huaweicloudsdksfsturbo.v1.ObsTargetAttributes` """ - return self._authentication + return self._attributes - @authentication.setter - def authentication(self, authentication): - """Sets the authentication of this ShowUrlAuthResponse. + @attributes.setter + def attributes(self, attributes): + """Sets the attributes of this UpdateObsTargetAttributesResponse. - :param authentication: The authentication of this ShowUrlAuthResponse. - :type authentication: :class:`huaweicloudsdkcloudrtc.v2.AppAuth` + :param attributes: The attributes of this UpdateObsTargetAttributesResponse. + :type attributes: :class:`huaweicloudsdksfsturbo.v1.ObsTargetAttributes` """ - self._authentication = authentication + self._attributes = attributes @property def x_request_id(self): - """Gets the x_request_id of this ShowUrlAuthResponse. + """Gets the x_request_id of this UpdateObsTargetAttributesResponse. - :return: The x_request_id of this ShowUrlAuthResponse. + :return: The x_request_id of this UpdateObsTargetAttributesResponse. :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 ShowUrlAuthResponse. + """Sets the x_request_id of this UpdateObsTargetAttributesResponse. - :param x_request_id: The x_request_id of this ShowUrlAuthResponse. + :param x_request_id: The x_request_id of this UpdateObsTargetAttributesResponse. :type x_request_id: str """ self._x_request_id = x_request_id @@ -156,7 +156,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ShowUrlAuthResponse): + if not isinstance(other, UpdateObsTargetAttributesResponse): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_request.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_request.py new file mode 100644 index 0000000000..5b1b13762a --- /dev/null +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_request.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateObsTargetPolicyRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'share_id': 'str', + 'target_id': 'str', + 'body': 'UpdateObsTargetPolicyRequestBody' + } + + attribute_map = { + 'share_id': 'share_id', + 'target_id': 'target_id', + 'body': 'body' + } + + def __init__(self, share_id=None, target_id=None, body=None): + """UpdateObsTargetPolicyRequest + + The model defined in huaweicloud sdk + + :param share_id: 文件系统id + :type share_id: str + :param target_id: 绑定关系id + :type target_id: str + :param body: Body of the UpdateObsTargetPolicyRequest + :type body: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetPolicyRequestBody` + """ + + + + self._share_id = None + self._target_id = None + self._body = None + self.discriminator = None + + self.share_id = share_id + self.target_id = target_id + if body is not None: + self.body = body + + @property + def share_id(self): + """Gets the share_id of this UpdateObsTargetPolicyRequest. + + 文件系统id + + :return: The share_id of this UpdateObsTargetPolicyRequest. + :rtype: str + """ + return self._share_id + + @share_id.setter + def share_id(self, share_id): + """Sets the share_id of this UpdateObsTargetPolicyRequest. + + 文件系统id + + :param share_id: The share_id of this UpdateObsTargetPolicyRequest. + :type share_id: str + """ + self._share_id = share_id + + @property + def target_id(self): + """Gets the target_id of this UpdateObsTargetPolicyRequest. + + 绑定关系id + + :return: The target_id of this UpdateObsTargetPolicyRequest. + :rtype: str + """ + return self._target_id + + @target_id.setter + def target_id(self, target_id): + """Sets the target_id of this UpdateObsTargetPolicyRequest. + + 绑定关系id + + :param target_id: The target_id of this UpdateObsTargetPolicyRequest. + :type target_id: str + """ + self._target_id = target_id + + @property + def body(self): + """Gets the body of this UpdateObsTargetPolicyRequest. + + :return: The body of this UpdateObsTargetPolicyRequest. + :rtype: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetPolicyRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateObsTargetPolicyRequest. + + :param body: The body of this UpdateObsTargetPolicyRequest. + :type body: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetPolicyRequestBody` + """ + 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, UpdateObsTargetPolicyRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_request_body.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_request_body.py new file mode 100644 index 0000000000..3718f8203f --- /dev/null +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_request_body.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateObsTargetPolicyRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'ObsDataRepositoryPolicy' + } + + attribute_map = { + 'policy': 'policy' + } + + def __init__(self, policy=None): + """UpdateObsTargetPolicyRequestBody + + The model defined in huaweicloud sdk + + :param policy: + :type policy: :class:`huaweicloudsdksfsturbo.v1.ObsDataRepositoryPolicy` + """ + + + + self._policy = None + self.discriminator = None + + self.policy = policy + + @property + def policy(self): + """Gets the policy of this UpdateObsTargetPolicyRequestBody. + + :return: The policy of this UpdateObsTargetPolicyRequestBody. + :rtype: :class:`huaweicloudsdksfsturbo.v1.ObsDataRepositoryPolicy` + """ + return self._policy + + @policy.setter + def policy(self, policy): + """Sets the policy of this UpdateObsTargetPolicyRequestBody. + + :param policy: The policy of this UpdateObsTargetPolicyRequestBody. + :type policy: :class:`huaweicloudsdksfsturbo.v1.ObsDataRepositoryPolicy` + """ + self._policy = policy + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateObsTargetPolicyRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/model/update_url_auth_response.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_response.py similarity index 56% rename from huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/model/update_url_auth_response.py rename to huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_response.py index 18663fe42f..14df04283b 100644 --- a/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/model/update_url_auth_response.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_response.py @@ -6,7 +6,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class UpdateUrlAuthResponse(SdkResponse): +class UpdateObsTargetPolicyResponse(SdkResponse): """ Attributes: @@ -18,98 +18,98 @@ class UpdateUrlAuthResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'app_id': 'str', - 'authentication': 'AppAuth', + 'target_id': 'str', + 'policy': 'ObsDataRepositoryPolicy', 'x_request_id': 'str' } attribute_map = { - 'app_id': 'app_id', - 'authentication': 'authentication', - 'x_request_id': 'X-request-Id' + 'target_id': 'target_id', + 'policy': 'policy', + 'x_request_id': 'X-request-id' } - def __init__(self, app_id=None, authentication=None, x_request_id=None): - """UpdateUrlAuthResponse + def __init__(self, target_id=None, policy=None, x_request_id=None): + """UpdateObsTargetPolicyResponse The model defined in huaweicloud sdk - :param app_id: 应用id - :type app_id: str - :param authentication: - :type authentication: :class:`huaweicloudsdkcloudrtc.v2.AppAuth` + :param target_id: 绑定关系id + :type target_id: str + :param policy: + :type policy: :class:`huaweicloudsdksfsturbo.v1.ObsDataRepositoryPolicy` :param x_request_id: :type x_request_id: str """ - super(UpdateUrlAuthResponse, self).__init__() + super(UpdateObsTargetPolicyResponse, self).__init__() - self._app_id = None - self._authentication = None + self._target_id = None + self._policy = None self._x_request_id = None self.discriminator = None - if app_id is not None: - self.app_id = app_id - if authentication is not None: - self.authentication = authentication + if target_id is not None: + self.target_id = target_id + if policy is not None: + self.policy = policy if x_request_id is not None: self.x_request_id = x_request_id @property - def app_id(self): - """Gets the app_id of this UpdateUrlAuthResponse. + def target_id(self): + """Gets the target_id of this UpdateObsTargetPolicyResponse. - 应用id + 绑定关系id - :return: The app_id of this UpdateUrlAuthResponse. + :return: The target_id of this UpdateObsTargetPolicyResponse. :rtype: str """ - return self._app_id + return self._target_id - @app_id.setter - def app_id(self, app_id): - """Sets the app_id of this UpdateUrlAuthResponse. + @target_id.setter + def target_id(self, target_id): + """Sets the target_id of this UpdateObsTargetPolicyResponse. - 应用id + 绑定关系id - :param app_id: The app_id of this UpdateUrlAuthResponse. - :type app_id: str + :param target_id: The target_id of this UpdateObsTargetPolicyResponse. + :type target_id: str """ - self._app_id = app_id + self._target_id = target_id @property - def authentication(self): - """Gets the authentication of this UpdateUrlAuthResponse. + def policy(self): + """Gets the policy of this UpdateObsTargetPolicyResponse. - :return: The authentication of this UpdateUrlAuthResponse. - :rtype: :class:`huaweicloudsdkcloudrtc.v2.AppAuth` + :return: The policy of this UpdateObsTargetPolicyResponse. + :rtype: :class:`huaweicloudsdksfsturbo.v1.ObsDataRepositoryPolicy` """ - return self._authentication + return self._policy - @authentication.setter - def authentication(self, authentication): - """Sets the authentication of this UpdateUrlAuthResponse. + @policy.setter + def policy(self, policy): + """Sets the policy of this UpdateObsTargetPolicyResponse. - :param authentication: The authentication of this UpdateUrlAuthResponse. - :type authentication: :class:`huaweicloudsdkcloudrtc.v2.AppAuth` + :param policy: The policy of this UpdateObsTargetPolicyResponse. + :type policy: :class:`huaweicloudsdksfsturbo.v1.ObsDataRepositoryPolicy` """ - self._authentication = authentication + self._policy = policy @property def x_request_id(self): - """Gets the x_request_id of this UpdateUrlAuthResponse. + """Gets the x_request_id of this UpdateObsTargetPolicyResponse. - :return: The x_request_id of this UpdateUrlAuthResponse. + :return: The x_request_id of this UpdateObsTargetPolicyResponse. :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 UpdateUrlAuthResponse. + """Sets the x_request_id of this UpdateObsTargetPolicyResponse. - :param x_request_id: The x_request_id of this UpdateUrlAuthResponse. + :param x_request_id: The x_request_id of this UpdateObsTargetPolicyResponse. :type x_request_id: str """ self._x_request_id = x_request_id @@ -156,7 +156,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, UpdateUrlAuthResponse): + if not isinstance(other, UpdateObsTargetPolicyResponse): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_perm_rule_response.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_perm_rule_response.py index ab6844bd42..039c7be524 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_perm_rule_response.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/model/update_perm_rule_response.py @@ -40,9 +40,9 @@ def __init__(self, id=None, ip_cidr=None, rw_type=None, user_type=None): :type id: str :param ip_cidr: 授权对象的IP地址或网段 :type ip_cidr: str - :param rw_type: -| 授权对象的读写权限 rw:默认选项,以读写的方式共享 ro:以只读的方式共享 + :param rw_type: 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限 :type rw_type: str - :param user_type: -| 授权对象的系统用户对文件系统的访问权限。取值如下: no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。 + :param user_type: 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 - all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。' :type user_type: str """ @@ -111,7 +111,7 @@ def ip_cidr(self, ip_cidr): def rw_type(self): """Gets the rw_type of this UpdatePermRuleResponse. - -| 授权对象的读写权限 rw:默认选项,以读写的方式共享 ro:以只读的方式共享 + 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限 :return: The rw_type of this UpdatePermRuleResponse. :rtype: str @@ -122,7 +122,7 @@ def rw_type(self): def rw_type(self, rw_type): """Sets the rw_type of this UpdatePermRuleResponse. - -| 授权对象的读写权限 rw:默认选项,以读写的方式共享 ro:以只读的方式共享 + 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限 :param rw_type: The rw_type of this UpdatePermRuleResponse. :type rw_type: str @@ -133,7 +133,7 @@ def rw_type(self, rw_type): def user_type(self): """Gets the user_type of this UpdatePermRuleResponse. - -| 授权对象的系统用户对文件系统的访问权限。取值如下: no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。 + 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 - all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。' :return: The user_type of this UpdatePermRuleResponse. :rtype: str @@ -144,7 +144,7 @@ def user_type(self): def user_type(self, user_type): """Sets the user_type of this UpdatePermRuleResponse. - -| 授权对象的系统用户对文件系统的访问权限。取值如下: no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。 + 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 - all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。' :param user_type: The user_type of this UpdatePermRuleResponse. :type user_type: str diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/region/sfsturbo_region.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/region/sfsturbo_region.py index c8c893c7d3..103b8c17ea 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/region/sfsturbo_region.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/region/sfsturbo_region.py @@ -60,6 +60,10 @@ class SFSTurboRegion: "https://sfs-turbo.cn-east-4.myhuaweicloud.com") AE_AD_1 = Region("ae-ad-1", "https://sfs-turbo.ae-ad-1.myhuaweicloud.com") + CN_NORTH_11 = Region("cn-north-11", + "https://sfs-turbo.cn-north-11.myhuaweicloud.com") + AF_NORTH_1 = Region("af-north-1", + "https://sfs-turbo.af-north-1.myhuaweicloud.com") static_fields = { "eu-west-101": EU_WEST_101, @@ -89,6 +93,8 @@ class SFSTurboRegion: "my-kualalumpur-1": MY_KUALALUMPUR_1, "cn-east-4": CN_EAST_4, "ae-ad-1": AE_AD_1, + "cn-north-11": CN_NORTH_11, + "af-north-1": AF_NORTH_1, } @classmethod diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/sfsturbo_async_client.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/sfsturbo_async_client.py index 7c099a043f..6a118529bc 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/sfsturbo_async_client.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/sfsturbo_async_client.py @@ -37,7 +37,7 @@ def batch_add_shared_tags_async(self, request): 指定共享批量添加标签。 - 一个共享上最多有10个标签。 + 一个共享上最多有20个标签。 一个共享上的多个标签的key不允许重复。 此接口为幂等接口:如果要添加的key在共享上已存在,则覆盖更新标签。 @@ -240,7 +240,7 @@ def _change_share_name_http_info(self, request): def create_backend_target_async(self, request): """绑定后端存储 - 为SFS Turbo HPC型文件系统绑定后端存储 + 为SFS Turbo 文件系统绑定后端存储 Please refer to HUAWEI cloud API Explorer for details. @@ -441,7 +441,7 @@ def _create_fs_dir_quota_http_info(self, request): def create_fs_task_async(self, request): """创建文件系统异步任务 - 创建文件系统异步任务 + 创建文件系统异步任务,仅支持异步查询目录资源使用情况,API请求路径的feature取值为dir-usage,以下简称为DU任务。 Please refer to HUAWEI cloud API Explorer for details. @@ -577,7 +577,11 @@ def _create_hpc_cache_task_http_info(self, request): def create_ldap_config_async(self, request): """创建并绑定ldap配置 - 创建并绑定ldap配置 + 创建并绑定ldap配置。LDAP(Lightweight Directory Access Protocol),中文名称轻量级目录访问协议,是对目录服务器(Directory Server)进行访问、控制的一种标准协议。LDAP服务器可以集中式地管理用户和群组的归属关系,通过绑定LDAP服务器,当一个用户访问您的文件系统的文件时,SFS Turbo将会访问您的LDAP服务器以进行用户身份验证,并且获取用户和群组的归属关系,从而进行Linux标准的文件UGO权限的检查。要使用此功能,首先您需要搭建好LDAP服务器(当前SFS Turbo仅支持LDAP v3协议),常见提供LDAP协议访问的目录服务器实现有OpenLdap(Linux),Active Directory(Windows)等,不同目录服务器的实现细节有所差别,绑定时需要指定对应的Schema(Schema配置错误将会导致SFS Turbo无法正确获取用户以及群组信息,可能导致无权限访问文件系统内文件),当前SFS Turbo支持的Schema有: + 1. RFC2307(Openldap通常选择此Schema) + 2. MS-AD-BIS(Active Directory通常选择此Schema,支持RFC2307bis,支持嵌套的群组) + + SFS Turbo还支持配置主备LDAP服务器,当您的一台LDAP服务器故障无法访问后,SFS Turbo将会自动切换到备LDAP服务器访问,以免影响您的业务。同时,若您还选择将allow_local_user配置为Yes(默认为No),那么当您的LDAP服务器全部故障无法访问时,SFS Turbo将会使用您的本地用户以及群组信息,而非LDAP服务器中配置的信息进行身份验证和UGO权限检查,以最大程度减少故障影响面。 Please refer to HUAWEI cloud API Explorer for details. @@ -777,7 +781,7 @@ def create_shared_tag_async(self, request): """创建共享标签 指定共享添加一个标签。 - 一个共享上最多有10个标签。 + 一个共享上最多有20个标签。 一个共享上的多个标签的key不允许重复。 此接口为幂等接口:如果要添加的key在共享上已存在,则覆盖更新标签。 @@ -1049,7 +1053,7 @@ def _delete_fs_dir_quota_http_info(self, request): def delete_fs_task_async(self, request): """取消/删除文件系统异步任务 - 如果异步任务正在执行,则取消并删除任务;否则,删除任务。 + 如果异步任务正在执行,则取消并删除任务;否则,删除任务。仅支持删除目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。 Please refer to HUAWEI cloud API Explorer for details. @@ -1115,10 +1119,81 @@ def _delete_fs_task_http_info(self, request): return http_info + def delete_hpc_cache_task_async(self, request): + """删除数据导入导出任务 + + 删除数据导入导出任务 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteHpcCacheTask + :type request: :class:`huaweicloudsdksfsturbo.v1.DeleteHpcCacheTaskRequest` + :rtype: :class:`huaweicloudsdksfsturbo.v1.DeleteHpcCacheTaskResponse` + """ + http_info = self._delete_hpc_cache_task_http_info(request) + return self._call_api(**http_info) + + def delete_hpc_cache_task_async_invoker(self, request): + http_info = self._delete_hpc_cache_task_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_hpc_cache_task_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v1/{project_id}/sfs-turbo/{share_id}/hpc-cache/task/{task_id}", + "request_type": request.__class__.__name__, + "response_type": "DeleteHpcCacheTaskResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'share_id' in local_var_params: + path_params['share_id'] = local_var_params['share_id'] + if 'task_id' in local_var_params: + path_params['task_id'] = local_var_params['task_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-request-id", ] + + 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_ldap_config_async(self, request): """删除ldap配置 - 删除ldap配置 + 删除ldap配置。LDAP(Lightweight Directory Access Protocol),中文名称轻量级目录访问协议,是对目录服务器(Directory Server)进行访问、控制的一种标准协议。LDAP服务器可以集中式地管理用户和群组的归属关系,通过绑定LDAP服务器,当一个用户访问您的文件系统的文件时,SFS Turbo将会访问您的LDAP服务器以进行用户身份验证,并且获取用户和群组的归属关系,从而进行Linux标准的文件UGO权限的检查。要使用此功能,首先您需要搭建好LDAP服务器(当前SFS Turbo仅支持LDAP v3协议),常见提供LDAP协议访问的目录服务器实现有OpenLdap(Linux),Active Directory(Windows)等,不同目录服务器的实现细节有所差别,绑定时需要指定对应的Schema(Schema配置错误将会导致SFS Turbo无法正确获取用户以及群组信息,可能导致无权限访问文件系统内文件),当前SFS Turbo支持的Schema有: + 1. RFC2307(Openldap通常选择此Schema) + 2. MS-AD-BIS(Active Directory通常选择此Schema,支持RFC2307bis,支持嵌套的群组) + + SFS Turbo还支持配置主备LDAP服务器,当您的一台LDAP服务器故障无法访问后,SFS Turbo将会自动切换到备LDAP服务器访问,以免影响您的业务。同时,若您还选择将allow_local_user配置为Yes(默认为No),那么当您的LDAP服务器全部故障无法访问时,SFS Turbo将会使用您的本地用户以及群组信息,而非LDAP服务器中配置的信息进行身份验证和UGO权限检查,以最大程度减少故障影响面。 Please refer to HUAWEI cloud API Explorer for details. @@ -1518,7 +1593,7 @@ def _list_backend_targets_http_info(self, request): def list_fs_tasks_async(self, request): """获取文件系统异步任务列表 - 获取文件系统异步任务列表 + 获取文件系统异步任务列表。仅支持查询目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。 Please refer to HUAWEI cloud API Explorer for details. @@ -1632,6 +1707,10 @@ def _list_hpc_cache_tasks_http_info(self, request): query_params.append(('offset', local_var_params['offset'])) if 'limit' in local_var_params: query_params.append(('limit', local_var_params['limit'])) + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) header_params = {} @@ -1697,6 +1776,10 @@ def _list_perm_rules_http_info(self, request): path_params['share_id'] = local_var_params['share_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'])) header_params = {} @@ -1760,6 +1843,10 @@ def _list_shared_tags_http_info(self, request): path_params = {} query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) header_params = {} @@ -2058,7 +2145,7 @@ def _show_fs_dir_http_info(self, request): def show_fs_dir_quota_async(self, request): """查询目标文件夹quota - 查询目标文件夹quota + 查询目标文件夹quota。查询的used_capacity、used_inode数据可能有延迟。 Please refer to HUAWEI cloud API Explorer for details. @@ -2192,7 +2279,7 @@ def _show_fs_dir_usage_http_info(self, request): def show_fs_task_async(self, request): """获取文件系统异步任务详情 - 获取文件系统异步任务详情 + 获取文件系统异步任务详情。仅支持查询目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。 Please refer to HUAWEI cloud API Explorer for details. @@ -2328,7 +2415,7 @@ def _show_hpc_cache_task_http_info(self, request): def show_job_detail_async(self, request): """查询job的状态详情 - 查询job的执行状态。 可用于查询SFS Turbo异步API的执行状态。 + 查询job的执行状态。 可用于查询SFS Turbo异步API的执行状态。例如:可使用调用创建并绑定ldap配置接口时返回的jobId,通过该接口查询job的执行状态。 Please refer to HUAWEI cloud API Explorer for details. @@ -2393,7 +2480,11 @@ def _show_job_detail_http_info(self, request): def show_ldap_config_async(self, request): """查询Ldap的配置 - 查询Ldap的配置 + 查询Ldap的配置。LDAP(Lightweight Directory Access Protocol),中文名称轻量级目录访问协议,是对目录服务器(Directory Server)进行访问、控制的一种标准协议。LDAP服务器可以集中式地管理用户和群组的归属关系,通过绑定LDAP服务器,当一个用户访问您的文件系统的文件时,SFS Turbo将会访问您的LDAP服务器以进行用户身份验证,并且获取用户和群组的归属关系,从而进行Linux标准的文件UGO权限的检查。要使用此功能,首先您需要搭建好LDAP服务器(当前SFS Turbo仅支持LDAP v3协议),常见提供LDAP协议访问的目录服务器实现有OpenLdap(Linux),Active Directory(Windows)等,不同目录服务器的实现细节有所差别,绑定时需要指定对应的Schema(Schema配置错误将会导致SFS Turbo无法正确获取用户以及群组信息,可能导致无权限访问文件系统内文件),当前SFS Turbo支持的Schema有: + 1. RFC2307(Openldap通常选择此Schema) + 2. MS-AD-BIS(Active Directory通常选择此Schema,支持RFC2307bis,支持嵌套的群组) + + SFS Turbo还支持配置主备LDAP服务器,当您的一台LDAP服务器故障无法访问后,SFS Turbo将会自动切换到备LDAP服务器访问,以免影响您的业务。同时,若您还选择将allow_local_user配置为Yes(默认为No),那么当您的LDAP服务器全部故障无法访问时,SFS Turbo将会使用您的本地用户以及群组信息,而非LDAP服务器中配置的信息进行身份验证和UGO权限检查,以最大程度减少故障影响面。 Please refer to HUAWEI cloud API Explorer for details. @@ -2789,7 +2880,11 @@ def _update_hpc_share_http_info(self, request): def update_ldap_config_async(self, request): """修改ldap配置 - 修改ldap配置 + 修改ldap配置。LDAP(Lightweight Directory Access Protocol),中文名称轻量级目录访问协议,是对目录服务器(Directory Server)进行访问、控制的一种标准协议。LDAP服务器可以集中式地管理用户和群组的归属关系,通过绑定LDAP服务器,当一个用户访问您的文件系统的文件时,SFS Turbo将会访问您的LDAP服务器以进行用户身份验证,并且获取用户和群组的归属关系,从而进行Linux标准的文件UGO权限的检查。要使用此功能,首先您需要搭建好LDAP服务器(当前SFS Turbo仅支持LDAP v3协议),常见提供LDAP协议访问的目录服务器实现有OpenLdap(Linux),Active Directory(Windows)等,不同目录服务器的实现细节有所差别,绑定时需要指定对应的Schema(Schema配置错误将会导致SFS Turbo无法正确获取用户以及群组信息,可能导致无权限访问文件系统内文件),当前SFS Turbo支持的Schema有: + 1. RFC2307(Openldap通常选择此Schema) + 2. MS-AD-BIS(Active Directory通常选择此Schema,支持RFC2307bis,支持嵌套的群组) + + SFS Turbo还支持配置主备LDAP服务器,当您的一台LDAP服务器故障无法访问后,SFS Turbo将会自动切换到备LDAP服务器访问,以免影响您的业务。同时,若您还选择将allow_local_user配置为Yes(默认为No),那么当您的LDAP服务器全部故障无法访问时,SFS Turbo将会使用您的本地用户以及群组信息,而非LDAP服务器中配置的信息进行身份验证和UGO权限检查,以最大程度减少故障影响面。 Please refer to HUAWEI cloud API Explorer for details. @@ -2853,6 +2948,144 @@ def _update_ldap_config_http_info(self, request): return http_info + def update_obs_target_attributes_async(self, request): + """更新后端存储属性 + + 更新后端存储属性 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateObsTargetAttributes + :type request: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetAttributesRequest` + :rtype: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetAttributesResponse` + """ + http_info = self._update_obs_target_attributes_http_info(request) + return self._call_api(**http_info) + + def update_obs_target_attributes_async_invoker(self, request): + http_info = self._update_obs_target_attributes_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_obs_target_attributes_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/targets/{target_id}/attributes", + "request_type": request.__class__.__name__, + "response_type": "UpdateObsTargetAttributesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'share_id' in local_var_params: + path_params['share_id'] = local_var_params['share_id'] + if 'target_id' in local_var_params: + path_params['target_id'] = local_var_params['target_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 = ["X-request-id", ] + + 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_obs_target_policy_async(self, request): + """更新后端存储自动同步策略 + + 更新后端存储自动同步策略 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateObsTargetPolicy + :type request: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetPolicyRequest` + :rtype: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetPolicyResponse` + """ + http_info = self._update_obs_target_policy_http_info(request) + return self._call_api(**http_info) + + def update_obs_target_policy_async_invoker(self, request): + http_info = self._update_obs_target_policy_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_obs_target_policy_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/targets/{target_id}/policy", + "request_type": request.__class__.__name__, + "response_type": "UpdateObsTargetPolicyResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'share_id' in local_var_params: + path_params['share_id'] = local_var_params['share_id'] + if 'target_id' in local_var_params: + path_params['target_id'] = local_var_params['target_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 = ["X-request-id", ] + + 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_perm_rule_async(self, request): """修改权限规则 diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/sfsturbo_client.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/sfsturbo_client.py index 55eec105b0..4106e6fd3a 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/sfsturbo_client.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/sfsturbo_client.py @@ -37,7 +37,7 @@ def batch_add_shared_tags(self, request): 指定共享批量添加标签。 - 一个共享上最多有10个标签。 + 一个共享上最多有20个标签。 一个共享上的多个标签的key不允许重复。 此接口为幂等接口:如果要添加的key在共享上已存在,则覆盖更新标签。 @@ -240,7 +240,7 @@ def _change_share_name_http_info(cls, request): def create_backend_target(self, request): """绑定后端存储 - 为SFS Turbo HPC型文件系统绑定后端存储 + 为SFS Turbo 文件系统绑定后端存储 Please refer to HUAWEI cloud API Explorer for details. @@ -441,7 +441,7 @@ def _create_fs_dir_quota_http_info(cls, request): def create_fs_task(self, request): """创建文件系统异步任务 - 创建文件系统异步任务 + 创建文件系统异步任务,仅支持异步查询目录资源使用情况,API请求路径的feature取值为dir-usage,以下简称为DU任务。 Please refer to HUAWEI cloud API Explorer for details. @@ -577,7 +577,11 @@ def _create_hpc_cache_task_http_info(cls, request): def create_ldap_config(self, request): """创建并绑定ldap配置 - 创建并绑定ldap配置 + 创建并绑定ldap配置。LDAP(Lightweight Directory Access Protocol),中文名称轻量级目录访问协议,是对目录服务器(Directory Server)进行访问、控制的一种标准协议。LDAP服务器可以集中式地管理用户和群组的归属关系,通过绑定LDAP服务器,当一个用户访问您的文件系统的文件时,SFS Turbo将会访问您的LDAP服务器以进行用户身份验证,并且获取用户和群组的归属关系,从而进行Linux标准的文件UGO权限的检查。要使用此功能,首先您需要搭建好LDAP服务器(当前SFS Turbo仅支持LDAP v3协议),常见提供LDAP协议访问的目录服务器实现有OpenLdap(Linux),Active Directory(Windows)等,不同目录服务器的实现细节有所差别,绑定时需要指定对应的Schema(Schema配置错误将会导致SFS Turbo无法正确获取用户以及群组信息,可能导致无权限访问文件系统内文件),当前SFS Turbo支持的Schema有: + 1. RFC2307(Openldap通常选择此Schema) + 2. MS-AD-BIS(Active Directory通常选择此Schema,支持RFC2307bis,支持嵌套的群组) + + SFS Turbo还支持配置主备LDAP服务器,当您的一台LDAP服务器故障无法访问后,SFS Turbo将会自动切换到备LDAP服务器访问,以免影响您的业务。同时,若您还选择将allow_local_user配置为Yes(默认为No),那么当您的LDAP服务器全部故障无法访问时,SFS Turbo将会使用您的本地用户以及群组信息,而非LDAP服务器中配置的信息进行身份验证和UGO权限检查,以最大程度减少故障影响面。 Please refer to HUAWEI cloud API Explorer for details. @@ -777,7 +781,7 @@ def create_shared_tag(self, request): """创建共享标签 指定共享添加一个标签。 - 一个共享上最多有10个标签。 + 一个共享上最多有20个标签。 一个共享上的多个标签的key不允许重复。 此接口为幂等接口:如果要添加的key在共享上已存在,则覆盖更新标签。 @@ -1049,7 +1053,7 @@ def _delete_fs_dir_quota_http_info(cls, request): def delete_fs_task(self, request): """取消/删除文件系统异步任务 - 如果异步任务正在执行,则取消并删除任务;否则,删除任务。 + 如果异步任务正在执行,则取消并删除任务;否则,删除任务。仅支持删除目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。 Please refer to HUAWEI cloud API Explorer for details. @@ -1115,10 +1119,81 @@ def _delete_fs_task_http_info(cls, request): return http_info + def delete_hpc_cache_task(self, request): + """删除数据导入导出任务 + + 删除数据导入导出任务 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteHpcCacheTask + :type request: :class:`huaweicloudsdksfsturbo.v1.DeleteHpcCacheTaskRequest` + :rtype: :class:`huaweicloudsdksfsturbo.v1.DeleteHpcCacheTaskResponse` + """ + http_info = self._delete_hpc_cache_task_http_info(request) + return self._call_api(**http_info) + + def delete_hpc_cache_task_invoker(self, request): + http_info = self._delete_hpc_cache_task_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_hpc_cache_task_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v1/{project_id}/sfs-turbo/{share_id}/hpc-cache/task/{task_id}", + "request_type": request.__class__.__name__, + "response_type": "DeleteHpcCacheTaskResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'share_id' in local_var_params: + path_params['share_id'] = local_var_params['share_id'] + if 'task_id' in local_var_params: + path_params['task_id'] = local_var_params['task_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-request-id", ] + + 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_ldap_config(self, request): """删除ldap配置 - 删除ldap配置 + 删除ldap配置。LDAP(Lightweight Directory Access Protocol),中文名称轻量级目录访问协议,是对目录服务器(Directory Server)进行访问、控制的一种标准协议。LDAP服务器可以集中式地管理用户和群组的归属关系,通过绑定LDAP服务器,当一个用户访问您的文件系统的文件时,SFS Turbo将会访问您的LDAP服务器以进行用户身份验证,并且获取用户和群组的归属关系,从而进行Linux标准的文件UGO权限的检查。要使用此功能,首先您需要搭建好LDAP服务器(当前SFS Turbo仅支持LDAP v3协议),常见提供LDAP协议访问的目录服务器实现有OpenLdap(Linux),Active Directory(Windows)等,不同目录服务器的实现细节有所差别,绑定时需要指定对应的Schema(Schema配置错误将会导致SFS Turbo无法正确获取用户以及群组信息,可能导致无权限访问文件系统内文件),当前SFS Turbo支持的Schema有: + 1. RFC2307(Openldap通常选择此Schema) + 2. MS-AD-BIS(Active Directory通常选择此Schema,支持RFC2307bis,支持嵌套的群组) + + SFS Turbo还支持配置主备LDAP服务器,当您的一台LDAP服务器故障无法访问后,SFS Turbo将会自动切换到备LDAP服务器访问,以免影响您的业务。同时,若您还选择将allow_local_user配置为Yes(默认为No),那么当您的LDAP服务器全部故障无法访问时,SFS Turbo将会使用您的本地用户以及群组信息,而非LDAP服务器中配置的信息进行身份验证和UGO权限检查,以最大程度减少故障影响面。 Please refer to HUAWEI cloud API Explorer for details. @@ -1518,7 +1593,7 @@ def _list_backend_targets_http_info(cls, request): def list_fs_tasks(self, request): """获取文件系统异步任务列表 - 获取文件系统异步任务列表 + 获取文件系统异步任务列表。仅支持查询目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。 Please refer to HUAWEI cloud API Explorer for details. @@ -1632,6 +1707,10 @@ def _list_hpc_cache_tasks_http_info(cls, request): query_params.append(('offset', local_var_params['offset'])) if 'limit' in local_var_params: query_params.append(('limit', local_var_params['limit'])) + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) header_params = {} @@ -1697,6 +1776,10 @@ def _list_perm_rules_http_info(cls, request): path_params['share_id'] = local_var_params['share_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'])) header_params = {} @@ -1760,6 +1843,10 @@ def _list_shared_tags_http_info(cls, request): path_params = {} query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) header_params = {} @@ -2058,7 +2145,7 @@ def _show_fs_dir_http_info(cls, request): def show_fs_dir_quota(self, request): """查询目标文件夹quota - 查询目标文件夹quota + 查询目标文件夹quota。查询的used_capacity、used_inode数据可能有延迟。 Please refer to HUAWEI cloud API Explorer for details. @@ -2192,7 +2279,7 @@ def _show_fs_dir_usage_http_info(cls, request): def show_fs_task(self, request): """获取文件系统异步任务详情 - 获取文件系统异步任务详情 + 获取文件系统异步任务详情。仅支持查询目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。 Please refer to HUAWEI cloud API Explorer for details. @@ -2328,7 +2415,7 @@ def _show_hpc_cache_task_http_info(cls, request): def show_job_detail(self, request): """查询job的状态详情 - 查询job的执行状态。 可用于查询SFS Turbo异步API的执行状态。 + 查询job的执行状态。 可用于查询SFS Turbo异步API的执行状态。例如:可使用调用创建并绑定ldap配置接口时返回的jobId,通过该接口查询job的执行状态。 Please refer to HUAWEI cloud API Explorer for details. @@ -2393,7 +2480,11 @@ def _show_job_detail_http_info(cls, request): def show_ldap_config(self, request): """查询Ldap的配置 - 查询Ldap的配置 + 查询Ldap的配置。LDAP(Lightweight Directory Access Protocol),中文名称轻量级目录访问协议,是对目录服务器(Directory Server)进行访问、控制的一种标准协议。LDAP服务器可以集中式地管理用户和群组的归属关系,通过绑定LDAP服务器,当一个用户访问您的文件系统的文件时,SFS Turbo将会访问您的LDAP服务器以进行用户身份验证,并且获取用户和群组的归属关系,从而进行Linux标准的文件UGO权限的检查。要使用此功能,首先您需要搭建好LDAP服务器(当前SFS Turbo仅支持LDAP v3协议),常见提供LDAP协议访问的目录服务器实现有OpenLdap(Linux),Active Directory(Windows)等,不同目录服务器的实现细节有所差别,绑定时需要指定对应的Schema(Schema配置错误将会导致SFS Turbo无法正确获取用户以及群组信息,可能导致无权限访问文件系统内文件),当前SFS Turbo支持的Schema有: + 1. RFC2307(Openldap通常选择此Schema) + 2. MS-AD-BIS(Active Directory通常选择此Schema,支持RFC2307bis,支持嵌套的群组) + + SFS Turbo还支持配置主备LDAP服务器,当您的一台LDAP服务器故障无法访问后,SFS Turbo将会自动切换到备LDAP服务器访问,以免影响您的业务。同时,若您还选择将allow_local_user配置为Yes(默认为No),那么当您的LDAP服务器全部故障无法访问时,SFS Turbo将会使用您的本地用户以及群组信息,而非LDAP服务器中配置的信息进行身份验证和UGO权限检查,以最大程度减少故障影响面。 Please refer to HUAWEI cloud API Explorer for details. @@ -2789,7 +2880,11 @@ def _update_hpc_share_http_info(cls, request): def update_ldap_config(self, request): """修改ldap配置 - 修改ldap配置 + 修改ldap配置。LDAP(Lightweight Directory Access Protocol),中文名称轻量级目录访问协议,是对目录服务器(Directory Server)进行访问、控制的一种标准协议。LDAP服务器可以集中式地管理用户和群组的归属关系,通过绑定LDAP服务器,当一个用户访问您的文件系统的文件时,SFS Turbo将会访问您的LDAP服务器以进行用户身份验证,并且获取用户和群组的归属关系,从而进行Linux标准的文件UGO权限的检查。要使用此功能,首先您需要搭建好LDAP服务器(当前SFS Turbo仅支持LDAP v3协议),常见提供LDAP协议访问的目录服务器实现有OpenLdap(Linux),Active Directory(Windows)等,不同目录服务器的实现细节有所差别,绑定时需要指定对应的Schema(Schema配置错误将会导致SFS Turbo无法正确获取用户以及群组信息,可能导致无权限访问文件系统内文件),当前SFS Turbo支持的Schema有: + 1. RFC2307(Openldap通常选择此Schema) + 2. MS-AD-BIS(Active Directory通常选择此Schema,支持RFC2307bis,支持嵌套的群组) + + SFS Turbo还支持配置主备LDAP服务器,当您的一台LDAP服务器故障无法访问后,SFS Turbo将会自动切换到备LDAP服务器访问,以免影响您的业务。同时,若您还选择将allow_local_user配置为Yes(默认为No),那么当您的LDAP服务器全部故障无法访问时,SFS Turbo将会使用您的本地用户以及群组信息,而非LDAP服务器中配置的信息进行身份验证和UGO权限检查,以最大程度减少故障影响面。 Please refer to HUAWEI cloud API Explorer for details. @@ -2853,6 +2948,144 @@ def _update_ldap_config_http_info(cls, request): return http_info + def update_obs_target_attributes(self, request): + """更新后端存储属性 + + 更新后端存储属性 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateObsTargetAttributes + :type request: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetAttributesRequest` + :rtype: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetAttributesResponse` + """ + http_info = self._update_obs_target_attributes_http_info(request) + return self._call_api(**http_info) + + def update_obs_target_attributes_invoker(self, request): + http_info = self._update_obs_target_attributes_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_obs_target_attributes_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/targets/{target_id}/attributes", + "request_type": request.__class__.__name__, + "response_type": "UpdateObsTargetAttributesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'share_id' in local_var_params: + path_params['share_id'] = local_var_params['share_id'] + if 'target_id' in local_var_params: + path_params['target_id'] = local_var_params['target_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 = ["X-request-id", ] + + 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_obs_target_policy(self, request): + """更新后端存储自动同步策略 + + 更新后端存储自动同步策略 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateObsTargetPolicy + :type request: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetPolicyRequest` + :rtype: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetPolicyResponse` + """ + http_info = self._update_obs_target_policy_http_info(request) + return self._call_api(**http_info) + + def update_obs_target_policy_invoker(self, request): + http_info = self._update_obs_target_policy_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_obs_target_policy_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/targets/{target_id}/policy", + "request_type": request.__class__.__name__, + "response_type": "UpdateObsTargetPolicyResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'share_id' in local_var_params: + path_params['share_id'] = local_var_params['share_id'] + if 'target_id' in local_var_params: + path_params['target_id'] = local_var_params['target_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 = ["X-request-id", ] + + 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_perm_rule(self, request): """修改权限规则 diff --git a/huaweicloud-sdk-sfsturbo/requirements.txt b/huaweicloud-sdk-sfsturbo/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-sfsturbo/requirements.txt +++ b/huaweicloud-sdk-sfsturbo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-sfsturbo/setup.py b/huaweicloud-sdk-sfsturbo/setup.py index bee7f7734f..9a79eac927 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sis/requirements.txt b/huaweicloud-sdk-sis/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-sis/requirements.txt +++ b/huaweicloud-sdk-sis/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-sis/setup.py b/huaweicloud-sdk-sis/setup.py index a39d4b9b5d..54fc77d6aa 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-smn/requirements.txt b/huaweicloud-sdk-smn/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-smn/requirements.txt +++ b/huaweicloud-sdk-smn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-smn/setup.py b/huaweicloud-sdk-smn/setup.py index 0fb2e59672..261e9f9164 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sms/requirements.txt b/huaweicloud-sdk-sms/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-sms/requirements.txt +++ b/huaweicloud-sdk-sms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-sms/setup.py b/huaweicloud-sdk-sms/setup.py index 0c5750e076..ff4c274a0b 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sts/requirements.txt b/huaweicloud-sdk-sts/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-sts/requirements.txt +++ b/huaweicloud-sdk-sts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-sts/setup.py b/huaweicloud-sdk-sts/setup.py index ba0280ec26..68398907e5 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-swr/requirements.txt b/huaweicloud-sdk-swr/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-swr/requirements.txt +++ b/huaweicloud-sdk-swr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-swr/setup.py b/huaweicloud-sdk-swr/setup.py index ba4b3e6a55..354639b354 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-tics/requirements.txt b/huaweicloud-sdk-tics/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-tics/requirements.txt +++ b/huaweicloud-sdk-tics/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-tics/setup.py b/huaweicloud-sdk-tics/setup.py index 2cd7967808..03f4401d5d 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-tms/huaweicloudsdktms/v1/model/list_providers_request.py b/huaweicloud-sdk-tms/huaweicloudsdktms/v1/model/list_providers_request.py index d9f1c432c4..f16d533660 100644 --- a/huaweicloud-sdk-tms/huaweicloudsdktms/v1/model/list_providers_request.py +++ b/huaweicloud-sdk-tms/huaweicloudsdktms/v1/model/list_providers_request.py @@ -37,7 +37,7 @@ def __init__(self, locale=None, limit=None, offset=None, provider=None): :param locale: 指定显示语言 :type locale: str - :param limit: 查询记录数默认为200,limit最多为200,最小值为1。 + :param limit: 查询记录数默认为10,limit最多为200,最小值为1。 :type limit: int :param offset: 索引位置,从offset指定的下一条数据开始查询,必须为数字,不能为负数,默认为0。 :type offset: int @@ -88,7 +88,7 @@ def locale(self, locale): def limit(self): """Gets the limit of this ListProvidersRequest. - 查询记录数默认为200,limit最多为200,最小值为1。 + 查询记录数默认为10,limit最多为200,最小值为1。 :return: The limit of this ListProvidersRequest. :rtype: int @@ -99,7 +99,7 @@ def limit(self): def limit(self, limit): """Sets the limit of this ListProvidersRequest. - 查询记录数默认为200,limit最多为200,最小值为1。 + 查询记录数默认为10,limit最多为200,最小值为1。 :param limit: The limit of this ListProvidersRequest. :type limit: int diff --git a/huaweicloud-sdk-tms/requirements.txt b/huaweicloud-sdk-tms/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-tms/requirements.txt +++ b/huaweicloud-sdk-tms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-tms/setup.py b/huaweicloud-sdk-tms/setup.py index c96d51a5e6..27a9d2f97d 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ugo/requirements.txt b/huaweicloud-sdk-ugo/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-ugo/requirements.txt +++ b/huaweicloud-sdk-ugo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-ugo/setup.py b/huaweicloud-sdk-ugo/setup.py index 7b49dacdfc..3f77ccb2a5 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vas/requirements.txt b/huaweicloud-sdk-vas/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-vas/requirements.txt +++ b/huaweicloud-sdk-vas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-vas/setup.py b/huaweicloud-sdk-vas/setup.py index 8e98e0abfb..ee99391d64 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vcm/requirements.txt b/huaweicloud-sdk-vcm/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-vcm/requirements.txt +++ b/huaweicloud-sdk-vcm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-vcm/setup.py b/huaweicloud-sdk-vcm/setup.py index c80084bc6f..744ef27b9b 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vod/requirements.txt b/huaweicloud-sdk-vod/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-vod/requirements.txt +++ b/huaweicloud-sdk-vod/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-vod/setup.py b/huaweicloud-sdk-vod/setup.py index db146765fa..501bc97af3 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpc/requirements.txt b/huaweicloud-sdk-vpc/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-vpc/requirements.txt +++ b/huaweicloud-sdk-vpc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-vpc/setup.py b/huaweicloud-sdk-vpc/setup.py index d6fe8b51e3..89dbd341a8 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpcep/requirements.txt b/huaweicloud-sdk-vpcep/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-vpcep/requirements.txt +++ b/huaweicloud-sdk-vpcep/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-vpcep/setup.py b/huaweicloud-sdk-vpcep/setup.py index bb2cc5283a..186bc2c3dc 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpn/requirements.txt b/huaweicloud-sdk-vpn/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-vpn/requirements.txt +++ b/huaweicloud-sdk-vpn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-vpn/setup.py b/huaweicloud-sdk-vpn/setup.py index a5dd57e62b..1159a99aa0 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-waf/requirements.txt b/huaweicloud-sdk-waf/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-waf/requirements.txt +++ b/huaweicloud-sdk-waf/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-waf/setup.py b/huaweicloud-sdk-waf/setup.py index 388c8888e9..2377e5afb9 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/model/list_used_desktop_info_req.py b/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/model/list_used_desktop_info_req.py index 8c6d01d932..5a22fec2eb 100644 --- a/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/model/list_used_desktop_info_req.py +++ b/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/model/list_used_desktop_info_req.py @@ -51,7 +51,7 @@ def __init__(self, desktop_ids=None, start_time=None, end_time=None, group_by_ty :type group_by_type: str :param desktop_username: 若传桌面的用户名,则查询使用时间只有该用户的使用时间。 :type desktop_username: str - :param offset: 从查询结果中的第几条数据开始返回,用于分页查询,取值范围0-2000,默认从0开始。 + :param offset: 从查询结果中的第几条数据开始返回,用于分页查询,取值范围0-2147483647,默认从0开始。 :type offset: int :param limit: 查询结果中想要返回的信息条目数量,用于分页查询,取值范围0-100,默认值100。 :type limit: int @@ -197,7 +197,7 @@ def desktop_username(self, desktop_username): def offset(self): """Gets the offset of this ListUsedDesktopInfoReq. - 从查询结果中的第几条数据开始返回,用于分页查询,取值范围0-2000,默认从0开始。 + 从查询结果中的第几条数据开始返回,用于分页查询,取值范围0-2147483647,默认从0开始。 :return: The offset of this ListUsedDesktopInfoReq. :rtype: int @@ -208,7 +208,7 @@ def offset(self): def offset(self, offset): """Sets the offset of this ListUsedDesktopInfoReq. - 从查询结果中的第几条数据开始返回,用于分页查询,取值范围0-2000,默认从0开始。 + 从查询结果中的第几条数据开始返回,用于分页查询,取值范围0-2147483647,默认从0开始。 :param offset: The offset of this ListUsedDesktopInfoReq. :type offset: int diff --git a/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/workspace_async_client.py b/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/workspace_async_client.py index 273c04480f..233bb838e7 100644 --- a/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/workspace_async_client.py +++ b/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/workspace_async_client.py @@ -2482,7 +2482,7 @@ def _update_desktop_name_policy_http_info(self, request): def list_unused_desktops_async(self, request): """查询在指定时间段未使用的桌面 - 查询在指定时间段未使用的桌面。 + 查询在指定时间段未使用的桌面。已废弃,不推荐使用。统计数据推荐使用[查询桌面使用情况统计数据接口](https://console.huaweicloud.com/apiexplorer/#/openapi/Workspace/doc?api=ListDesktopUsageMetric)和[查询用户使用统计数据接口](https://console.huaweicloud.com/apiexplorer/#/openapi/Workspace/doc?api=ListUserUsageMetric)。 Please refer to HUAWEI cloud API Explorer for details. @@ -2553,7 +2553,7 @@ def _list_unused_desktops_http_info(self, request): def list_used_desktop_info_async(self, request): """查询使用桌面的时长 - 查询使用桌面的时长。 + 查询使用桌面的时长。已废弃,不推荐使用。统计数据推荐使用[查询桌面使用情况统计数据接口](https://console.huaweicloud.com/apiexplorer/#/openapi/Workspace/doc?api=ListDesktopUsageMetric)和[查询用户使用统计数据接口](https://console.huaweicloud.com/apiexplorer/#/openapi/Workspace/doc?api=ListUserUsageMetric)。 Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/workspace_client.py b/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/workspace_client.py index 3d8a46f295..2bf7107608 100644 --- a/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/workspace_client.py +++ b/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/workspace_client.py @@ -2482,7 +2482,7 @@ def _update_desktop_name_policy_http_info(cls, request): def list_unused_desktops(self, request): """查询在指定时间段未使用的桌面 - 查询在指定时间段未使用的桌面。 + 查询在指定时间段未使用的桌面。已废弃,不推荐使用。统计数据推荐使用[查询桌面使用情况统计数据接口](https://console.huaweicloud.com/apiexplorer/#/openapi/Workspace/doc?api=ListDesktopUsageMetric)和[查询用户使用统计数据接口](https://console.huaweicloud.com/apiexplorer/#/openapi/Workspace/doc?api=ListUserUsageMetric)。 Please refer to HUAWEI cloud API Explorer for details. @@ -2553,7 +2553,7 @@ def _list_unused_desktops_http_info(cls, request): def list_used_desktop_info(self, request): """查询使用桌面的时长 - 查询使用桌面的时长。 + 查询使用桌面的时长。已废弃,不推荐使用。统计数据推荐使用[查询桌面使用情况统计数据接口](https://console.huaweicloud.com/apiexplorer/#/openapi/Workspace/doc?api=ListDesktopUsageMetric)和[查询用户使用统计数据接口](https://console.huaweicloud.com/apiexplorer/#/openapi/Workspace/doc?api=ListUserUsageMetric)。 Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-workspace/requirements.txt b/huaweicloud-sdk-workspace/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-workspace/requirements.txt +++ b/huaweicloud-sdk-workspace/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-workspace/setup.py b/huaweicloud-sdk-workspace/setup.py index aa67c44d32..5f3d8b814d 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-workspaceapp/requirements.txt b/huaweicloud-sdk-workspaceapp/requirements.txt index 6aa3b75aae..e6666c3ca6 100644 --- a/huaweicloud-sdk-workspaceapp/requirements.txt +++ b/huaweicloud-sdk-workspaceapp/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.121 \ No newline at end of file +huaweicloudsdkcore >= 3.1.122 \ No newline at end of file diff --git a/huaweicloud-sdk-workspaceapp/setup.py b/huaweicloud-sdk-workspaceapp/setup.py index 201f796e36..9745214734 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.121" +VERSION = "3.1.122" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.121"] +REQUIRES = ["huaweicloudsdkcore>=3.1.122"] OPTIONS = { 'bdist_wheel': {